Build 589089stable
Module 806163
2,927 characters · in 24668.bd0e49cef66c7169.js, 12008.4aa0c96447cffb6e.jsDependencies
Required by (42)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,r){"use strict";r.d(t,{B6:()=>v});var n=r(750573),o=r(582128),i=r(655972),a=r.n(i),s=(r(830845),r(258635),r(542113),r(353719)),u=r.n(s);r(53635),r(725664),r(833871);var p="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==r.g?r.g:{},l=o.createContext||function(e,t){var r,i,s="__create-react-context-"+(p.__global_unique_id__=(p.__global_unique_id__||0)+1)+"__",u=function(e){function r(){for(var t,r,n,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=(t=e.call.apply(e,[this].concat(i))||this).props.value,n=[],t.emitter={on:function(e){n.push(e)},off:function(e){n=n.filter(function(t){return t!==e})},get:function(){return r},set:function(e,t){r=e,n.forEach(function(e){return e(r,t)})}},t}(0,n.A)(r,e);var o=r.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var r,n=this.props.value,o=e.value;(n===o?0!==n||1/n==1/o:n!=n&&o!=o)?r=0:0!=(r=("function"==typeof t?t(n,o):0x3fffffff)|0)&&this.emitter.set(e.value,r)}},o.render=function(){return this.props.children},r}(o.Component);(r={})[s]=a().object.isRequired,u.childContextTypes=r;var l=function(t){function r(){for(var e,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,r){(e.observedBits&r)!=0&&e.setState({value:e.getValue()})},e}(0,n.A)(r,t);var o=r.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?0x3fffffff:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?0x3fffffff:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){var e;return(Array.isArray(e=this.props.children)?e[0]:e)(this.state.value)},r}(o.Component);return(i={})[s]=a().object,l.contextTypes=i,{Provider:u,Consumer:l}},f=function(e){var t=l();return t.displayName=e,t};o.Component,o.Component,o.Component;var c={},h=0;function v(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,o=r.exact,i=void 0!==o&&o,a=r.strict,s=void 0!==a&&a,p=r.sensitive,l=void 0!==p&&p;return[].concat(n).reduce(function(t,r){if(!r&&""!==r)return null;if(t)return t;var n=function(e,t){var r=""+t.end+t.strict+t.sensitive,n=c[r]||(c[r]={});if(n[e])return n[e];var o=[],i={regexp:u()(e,o,t),keys:o};return h<1e4&&(n[e]=i,h++),i}(r,{end:i,strict:s,sensitive:l}),o=n.regexp,a=n.keys,p=o.exec(e);if(!p)return null;var f=p[0],v=p.slice(1),d=e===f;return i&&!d?null:{path:r,url:"/"===r&&""===f?"/":f,isExact:d,params:a.reduce(function(e,t,r){return e[t.name]=v[r],e},{})}},null)}o.Component;o.Component,o.Component,o.useContext}