1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6885,9120,4666],{35777:function(e,n,t){t.d(n,{Z:function(){return a}});var r=t(17816),o=t(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},c=t(19913),u=function(e,n){return o.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:i}))};var a=o.forwardRef(u)},75713:function(e,n,t){t.d(n,{Z:function(){return l}});var r=t(50959),o=t(98338),i=t(96946),c=t(55488),u=t(74830);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var f=!1;var l=function(e){var n=(e||{}).originTicker,t=(0,r.useContext)(i.MX),l=t[0],s=t[1],p=(0,r.useMemo)((function(){return!l.basisTimeZone}),[l.basisTimeZone]),v=(0,r.useCallback)((function(e,n){var t;(t={params:{timeZone:e}},u.XtAxios4.get("/fapi/market/v1/public/q/openprice",t)).then((function(t){var r={};t.map((function(e){r[e.symbol]=e.openPrice})),s({payload:{basisTimeZone:e/60/60+"",fapiOpenPrice:r}}),n&&n(!1,r)})).catch((function(){n&&n(!0)}))}),[]),b=(0,r.useCallback)((function(){var e=o.Z.get("basisTimeZone");return e&&/^-?([0-9]|1[0-2])$/.test(e)?e:""}),[]),h=(0,r.useCallback)((function(e,n){if(!e||!/^-?([0-9]|1[0-2])$/.test(e))return o.Z.set("basisTimeZone",""),s({payload:{basisTimeZone:"",fapiOpenPrice:null}}),void(n&&n(!1));v(60*+e*60,(function(t,r){!t&&o.Z.set("basisTimeZone",e),n&&n(t,r)}))}),[v]),d=(0,r.useCallback)((function(e){var n=b();h(n,e)}),[h]),m=(0,r.useCallback)((function(e){if(!l.fapiOpenPrice)return"0";var n=e.s,t=e.c,r=l.fapiOpenPrice[n];return r&&+r?(0,c.p)(t||0).minus(r).div(r).toFixed():"0"}),[l.fapiOpenPrice]),y=(0,r.useCallback)((function(e){if(e){if(!b())return e;var n=m(e),t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){a(e,n,t[n])}))}return e}({},e,{cr:n,r:n}),r=e.s,o=e.c,i=e.cv;if(l.fapiOpenPrice&&l.fapiOpenPrice[r]){var u=l.fapiOpenPrice[r];u&&(t.o=u,i&&(t.cv=(0,c.p)(o||0).minus(u).toFixed()))}return t}}),[b,m,l.fapiOpenPrice]),g=(0,r.useMemo)((function(){return y(n)}),[n,y]);return(0,r.useEffect)((function(){(l.fapiOpenPrice||null===l.fapiOpenPrice)&&(f=!1)}),[l.fapiOpenPrice]),(0,r.useEffect)((function(){b()&&(l.fapiOpenPrice||f||(f=!0,d((function(e){e&&(f=!1)}))))}),[]),{is24h:p,ticker:g,getTicker:y,getRate:m,getTimeZone:b,changeTimeZone:h,refreshKlineOpenPrice:d}}},76918:function(e,n,t){t.d(n,{Z:function(){return l}});var r=t(50959),o=t(98338),i=t(96946),c=t(55488),u=t(74830);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var f=!1;var l=function(e){var n=(e||{}).originTicker,t=(0,r.useContext)(i.MX),l=t[0],s=t[1],p=(0,r.useMemo)((function(){return!l.basisTimeZone}),[l.basisTimeZone]),v=(0,r.useCallback)((function(e,n){var t;(t={params:{timeZone:e}},u.XtAxios4.get("/sapi/v4/market/public/kline/open-price",t)).then((function(t){var r={};t.map((function(e){r[e.symbol]=e.openToday})),s({payload:{basisTimeZone:e/60/60+"",klineOpenPrice:r}}),n&&n(!1,r)})).catch((function(){n&&n(!0)}))}),[]),b=(0,r.useCallback)((function(){var e=o.Z.get("basisTimeZone");return e&&/^-?([0-9]|1[0-2])$/.test(e)?e:""}),[]),h=(0,r.useCallback)((function(e,n){if(!e||!/^-?([0-9]|1[0-2])$/.test(e))return o.Z.set("basisTimeZone",""),s({payload:{basisTimeZone:"",klineOpenPrice:null}}),void(n&&n(!1));v(60*+e*60,(function(t,r){!t&&o.Z.set("basisTimeZone",e),n&&n(t,r)}))}),[v]),d=(0,r.useCallback)((function(e){var n=b();h(n,e)}),[h]),m=(0,r.useCallback)((function(e){if(!l.klineOpenPrice)return"0";var n=e.s,t=e.c,r=l.klineOpenPrice[n];return r&&+r?(0,c.p)(t||0).minus(r).div(r).toFixed():"0"}),[l.klineOpenPrice]),y=(0,r.useCallback)((function(e){if(e){if(!b())return e;var n=m(e),t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){a(e,n,t[n])}))}return e}({},e,{cr:n,r:n}),r=e.s,o=e.c,i=e.cv;if(l.klineOpenPrice&&l.klineOpenPrice[r]){var u=l.klineOpenPrice[r];u&&(t.o=u,i&&(t.cv=(0,c.p)(o||0).minus(u).toFixed()))}return t}}),[b,m,l.klineOpenPrice]),g=(0,r.useMemo)((function(){return y(n)}),[n,y]);return(0,r.useEffect)((function(){(l.klineOpenPrice||null===l.klineOpenPrice)&&(f=!1)}),[l.klineOpenPrice]),(0,r.useEffect)((function(){b()&&(l.klineOpenPrice||f||(f=!0,d((function(e){e&&(f=!1)}))))}),[]),{is24h:p,ticker:g,getTicker:y,getRate:m,getTimeZone:b,changeTimeZone:h,refreshKlineOpenPrice:d}}},98338:function(e,n){var t={basisTimeZone:"basisTimeZone"};n.Z={keyList:t,get:function(e){var n=t[e];if(!n)return console.log("%c$storage.get \u952e\u540d\u4e0d\u5728\u5217\u8868\u5185: %c"+e,"color: #ac2925","color: red");var r,o=localStorage.getItem(n);try{r=JSON.parse(o)}catch(i){r=o}return r&&"object"===typeof r&&r.expire?r.expire>Date.parse(new Date)?r.value:(this.remove(e),""):"[object Object]"===r?(this.remove(e),null):r},set:function(e,n,r){var o=t[e];if(!o)return console.log("%c$storage.set \u952e\u540d\u4e0d\u5728\u5217\u8868\u5185: %c"+e,"color: #ac2925","color: red");try{if(r)return localStorage.setItem(o,JSON.stringify({value:n,expire:r}));localStorage.setItem(o,JSON.stringify(n))}catch(i){}},remove:function(e){var n=t[e];if(!n)return console.log("%c$storage.remove \u952e\u540d\u4e0d\u5728\u5217\u8868\u5185: %c"+e,"color: #ac2925","color: red");localStorage.removeItem(n)},clear:function(){return localStorage.clear(),!0}}},63451:function(e,n,t){t.d(n,{F:function(){return u},Z:function(){return c}});var r=t(75621),o=t(82187),i=t.n(o);(0,t(84866).b)("warning","error","");function c(e,n,t){return i()((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(e,"-status-success"),"success"===n),"".concat(e,"-status-warning"),"warning"===n),"".concat(e,"-status-error"),"error"===n),"".concat(e,"-status-validating"),"validating"===n),"".concat(e,"-has-feedback"),t))}var u=function(e,n){return n||e}},57644:function(e,n,t){t.d(n,{Z:function(){return P}});var r=t(45929),o=t(50959),i=t(31288),c=(t(79680),t(17816)),u=t(79869),a=t(6849),f=t(7860),l=o.createContext(null);var s=t(73023),p=new Map;var v=new s.default((function(e){e.forEach((function(e){var n,t=e.target;
1null===(n=p.get(t))||void 0===n||n.forEach((function(e){return e(t)}))}))}));var b=t(30917),h=t(87660),d=t(34867),m=t(64675),y=function(e){(0,d.Z)(t,e);var n=(0,m.Z)(t);function t(){return(0,b.Z)(this,t),n.apply(this,arguments)}return(0,h.Z)(t,[{key:"render",value:function(){return this.props.children}}]),t}(o.Component);function g(e,n){var t=e.children,r=e.disabled,i=o.useRef(null),s=o.useRef(null),b=o.useContext(l),h="function"===typeof t,d=h?t(i):t,m=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!h&&o.isValidElement(d)&&(0,f.Yr)(d),O=g?(0,f.C4)(d):null,Z=(0,f.x1)(O,i),k=function(){var e;return(0,a.ZP)(i.current)||(i.current&&"object"===(0,u.Z)(i.current)?(0,a.ZP)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,a.ZP)(s.current)};o.useImperativeHandle(n,(function(){return k()}));var P=o.useRef(e);P.current=e;var w=o.useCallback((function(e){var n=P.current,t=n.onResize,r=n.data,o=e.getBoundingClientRect(),i=o.width,u=o.height,a=e.offsetWidth,f=e.offsetHeight,l=Math.floor(i),s=Math.floor(u);if(m.current.width!==l||m.current.height!==s||m.current.offsetWidth!==a||m.current.offsetHeight!==f){var p={width:l,height:s,offsetWidth:a,offsetHeight:f};m.current=p;var v=a===Math.round(i)?i:a,h=f===Math.round(u)?u:f,d=(0,c.Z)((0,c.Z)({},p),{},{offsetWidth:v,offsetHeight:h});null===b||void 0===b||b(d,e,r),t&&Promise.resolve().then((function(){t(d,e)}))}}),[]);return o.useEffect((function(){var e,n,t=k();return t&&!r&&(e=t,n=w,p.has(e)||(p.set(e,new Set),v.observe(e)),p.get(e).add(n)),function(){return function(e,n){p.has(e)&&(p.get(e).delete(n),p.get(e).size||(v.unobserve(e),p.delete(e)))}(t,w)}}),[i.current,r]),o.createElement(y,{ref:s},g?o.cloneElement(d,{ref:Z}):d)}var O=o.forwardRef(g);function Z(e,n){var t=e.children;return("function"===typeof t?[t]:(0,i.Z)(t)).map((function(t,i){var c=(null===t||void 0===t?void 0:t.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(O,(0,r.Z)({},e,{key:c,ref:0===i?n:void 0}),t)}))}var k=o.forwardRef(Z);k.Collection=function(e){var n=e.children,t=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),c=o.useContext(l),u=o.useCallback((function(e,n,o){r.current+=1;var u=r.current;i.current.push({size:e,element:n,data:o}),Promise.resolve().then((function(){u===r.current&&(null===t||void 0===t||t(i.current),i.current=[])})),null===c||void 0===c||c(e,n,o)}),[t,c]);return o.createElement(l.Provider,{value:u},n)};var P=k},15767:function(e,n,t){t.d(n,{Jh:function(){return a},ZT:function(){return o},_T:function(){return c},mG:function(){return u},pi:function(){return i}});var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},r(e,n)};function o(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var i=function(){return i=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},i.apply(this,arguments)};function c(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function u(e,n,t,r){return new(t||(t=Promise))((function(o,i){function c(e){try{a(r.next(e))}catch(n){i(n)}}function u(e){try{a(r.throw(e))}catch(n){i(n)}}function a(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,u)}a((r=r.apply(e,n||[])).next())}))}function a(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"===typeof Iterator?Iterator:Object).prototype);return c.next=u(0),c.throw=u(1),c.return=u(2),"function"===typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(a){u=[6,a],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.