6 lines
15 KiB
JavaScript
6 lines
15 KiB
JavaScript
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3812],{72535:(t,e,n)=>{"use strict";var r=n(56237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(t){return r.isMemo(t)?a:u[t.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,p=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var o=h(n);o&&o!==d&&t(e,o,r)}var a=p(n);l&&(a=a.concat(l(n)));for(var u=c(e),v=c(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||u&&u[y])){var g=f(n,y);try{s(e,y,g)}catch(t){}}}}return e}},70901:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},27720:(t,e,n)=>{var r=n(70901);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return u(i(t,e),e)},t.exports.tokensToFunction=u,t.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,u="",p=e&&e.delimiter||"/";null!=(n=o.exec(t));){var l=n[0],f=n[1],h=n.index;if(u+=t.slice(a,h),a=h+l.length,f)u+=f[1];else{var d=t[a],v=n[2],m=n[3],y=n[4],g=n[5],x=n[6],b=n[7];u&&(r.push(u),u="");var w=null!=v&&null!=d&&d!==v,E="+"===x||"*"===x,C="?"===x||"*"===x,P=n[2]||p,A=y||g;r.push({name:m||i++,prefix:v||"",delimiter:P,optional:C,repeat:E,partial:w,asterisk:!!b,pattern:A?s(A):b?".*":"[^"+c(P)+"]+?"})}}return a<t.length&&(u+=t.substr(a)),u&&r.push(u),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function u(t,e){for(var n=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(n[o]=new RegExp("^(?:"+t[o].pattern+")$",l(e)));return function(e,o){for(var i="",u=e||{},c=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var p=t[s];if("string"!=typeof p){var l,f=u[p.name];if(null==f){if(p.optional){p.partial&&(i+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(r(f)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(l=c(f[h]),!n[s].test(l))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?p.prefix:p.delimiter)+l}}else{if(l=p.asterisk?encodeURI(f).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):c(f),
|
|
!n[s].test(l))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+l+'"');i+=p.prefix+l}}else i+=p}return i}}function c(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function p(t,e){return t.keys=e,t}function l(t){return t&&t.sensitive?"":"i"}function f(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",u=0;u<t.length;u++){var s=t[u];if("string"==typeof s)a+=c(s);else{var f=c(s.prefix),h="(?:"+s.pattern+")";e.push(s),s.repeat&&(h+="(?:"+f+h+")*"),a+=h=s.optional?s.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}var d=c(n.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",p(new RegExp("^"+a,l(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return p(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(h(t[o],e,n).source);return p(new RegExp("(?:"+r.join("|")+")",l(n)),e)}(t,e,n):function(t,e,n){return f(i(t,n),e,n)}(t,e,n)}},83812:(t,e,n)=>{"use strict";n.d(e,{MemoryRouter:()=>k,Redirect:()=>S,Route:()=>I,Switch:()=>V,useHistory:()=>J,useParams:()=>G});var r=n(55682),o=n(59496),i=n(19036),a=n.n(i),u=n(19624);function c(t){return"/"===t.charAt(0)}function s(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const p=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&c(t),a=e&&c(e),u=i||a;if(t&&c(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var p=o[o.length-1];n="."===p||".."===p||""===p}else n=!1;for(var l=0,f=o.length;f>=0;f--){var h=o[f];"."===h?s(o,f):".."===h?(s(o,f),l++):l&&(s(o,f),l--)}if(!u)for(;l--;l)o.unshift("..");!u||""===o[0]||o[0]&&c(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function l(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const f=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=l(e),o=l(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};function h(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function d(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=(0,u.default)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",
|
|
o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function v(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}"undefined"==typeof window||!window.document||window.document.createElement;function m(t,e,n){return Math.min(Math.max(t,e),n)}function y(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,o=void 0===r?["/"]:r,i=e.initialIndex,a=void 0===i?0:i,c=e.keyLength,s=void 0===c?6:c,p=v();function l(t){(0,u.default)(w,t),w.length=w.entries.length,p.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,s)}var y=m(a,0,o.length-1),g=o.map((function(t){return d(t,void 0,"string"==typeof t?f():t.key||f())})),x=h;function b(t){var e=m(w.index+t,0,w.entries.length-1),r=w.entries[e];p.confirmTransitionTo(r,"POP",n,(function(t){t?l({action:"POP",location:r,index:e}):l()}))}var w={length:g.length,action:"POP",location:g[y],index:y,entries:g,createHref:x,push:function(t,e){var r=d(t,e,f(),w.location);p.confirmTransitionTo(r,"PUSH",n,(function(t){if(t){var e=w.index+1,n=w.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),l({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=d(t,e,f(),w.location);p.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(w.entries[w.index]=r,l({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=w.index+t;return e>=0&&e<w.entries.length},block:function(t){return void 0===t&&(t=!1),p.setPrompt(t)},listen:function(t){return p.appendListener(t)}};return w}var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function x(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}const b=o.createContext||function(t,e){var n,i,u="__create-react-context-"+function(){var t="__global_unique_id__";return g[t]=(g[t]||0)+1}()+"__",c=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=x(e.props.value),e}(0,r.default)(n,t);var o=n.prototype
|
|
;return o.getChildContext=function(){var t;return(t={})[u]=this.emitter,t},o.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof e?e(r,o):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var i,a},o.render=function(){return this.props.children},n}(o.Component);c.childContextTypes=((n={})[u]=a().object.isRequired,n);var s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}(0,r.default)(n,e);var o=n.prototype;return o.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?1073741823:e},o.componentDidMount=function(){this.context[u]&&this.context[u].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?1073741823:t},o.componentWillUnmount=function(){this.context[u]&&this.context[u].off(this.onUpdate)},o.getValue=function(){return this.context[u]?this.context[u].get():t},o.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(o.Component);return s.contextTypes=((i={})[u]=a().object,i),{Provider:c,Consumer:s}};var w="Invariant failed";function E(t,e){if(!t)throw new Error(w)}var C=n(27720),P=n.n(C),A=(n(56237),n(20042)),O=(n(72535),function(t){var e=b();return e.displayName=t,e}("Router-History")),T=function(t){var e=b();return e.displayName=t,e}("Router"),R=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}(0,r.default)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.createElement(T.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(O.Provider,{children:this.props.children||null,value:this.props.history}))},e}(o.Component);var k=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).history=y(e.props),e}return(0,r.default)(e,t),e.prototype.render=function(){return o.createElement(R,{history:this.history,children:this.props.children})},e}(o.Component);var U=function(t){function e(){return t.apply(this,arguments)||this}(0,r.default)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},
|
|
n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(o.Component);var M={},j=0;function _(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(M[t])return M[t];var e=P().compile(t);return j<1e4&&(M[t]=e,j++),e}(t)(e,{pretty:!0})}function S(t){var e=t.computedMatch,n=t.to,r=t.push,i=void 0!==r&&r;return o.createElement(T.Consumer,null,(function(t){t||E(!1);var r=t.history,a=t.staticContext,c=i?r.push:r.replace,s=d(e?"string"==typeof n?_(n,e.params):(0,u.default)({},n,{pathname:_(n.pathname,e.params)}):n);return a?(c(s),null):o.createElement(U,{onMount:function(){c(s)},onUpdate:function(t,e){var n,r,o=d(e.to);n=o,r=(0,u.default)({},s,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&f(n.state,r.state)||c(s)},to:n})}))}var $={},L=0;function D(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,u=void 0!==a&&a,c=n.sensitive,s=void 0!==c&&c;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=$[n]||($[n]={});if(r[t])return r[t];var o=[],i={regexp:P()(t,o,e),keys:o};return L<1e4&&(r[t]=i,L++),i}(n,{end:i,strict:u,sensitive:s}),o=r.regexp,a=r.keys,c=o.exec(t);if(!c)return null;var p=c[0],l=c.slice(1),f=t===p;return i&&!f?null:{path:n,url:"/"===n&&""===p?"/":p,isExact:f,params:a.reduce((function(t,e,n){return t[e.name]=l[n],t}),{})}}),null)}var I=function(t){function e(){return t.apply(this,arguments)||this}return(0,r.default)(e,t),e.prototype.render=function(){var t=this;return o.createElement(T.Consumer,null,(function(e){e||E(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?D(n.pathname,t.props):e.match,i=(0,u.default)({},e,{location:n,match:r}),a=t.props,c=a.children,s=a.component,p=a.render;return Array.isArray(c)&&0===c.length&&(c=null),o.createElement(T.Provider,{value:i},i.match?c?"function"==typeof c?c(i):c:s?o.createElement(s,i):p?p(i):null:"function"==typeof c?c(i):null)}))},e}(o.Component);function N(t){return"/"===t.charAt(0)?t:"/"+t}function B(t,e){if(!t)return e;var n=N(t);return 0!==e.pathname.indexOf(n)?e:(0,u.default)({},e,{pathname:e.pathname.substr(n.length)})}function F(t){return"string"==typeof t?t:h(t)}function H(t){return function(){E(!1)}}function W(){}o.Component;var V=function(t){function e(){return t.apply(this,arguments)||this}return(0,r.default)(e,t),e.prototype.render=function(){var t=this;return o.createElement(T.Consumer,null,(function(e){e||E(!1);var n,r,i=t.props.location||e.location;return o.Children.forEach(t.props.children,(function(t){if(null==r&&o.isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?D(i.pathname,(0,u.default)({},t.props,{path:a})):e.match}})),r?o.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(o.Component);var q=o.useContext;function J(){return q(O)}function G(){var t=q(T).match;return t?t.params:{}}},
|
|
55682:(t,e,n)=>{"use strict";n.d(e,{default:()=>o});var r=n(11430);function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,r.default)(t,e)}}}]); |