PageSourceSearch

https://www.kreditbee.in/react/npm.react-router.8947a92493b05b0c5c55.js

js kreditbee.in collected 2026-09-24 09:17:33 UTC 20,366 bytes, 1 lines download raw bytes

1(self.webpackChunkkbyp_web=self.webpackChunkkbyp_web||[]).push([[3617],{f60cb9e0938cb2fabf29:(t,e,o)=>{"use strict";e.__esModule=!0;var n=c(o("2bb73d69683d2cade437")),r=c(o("69084d01d3449fc1bc27")),a=c(o("f1f2954cff54795efe74")),u=o("573eb5dd3385fe391af1"),i=c(o("55af88bb670d6d214f6a"));function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){var o,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return o=n=s(this,t.call.apply(t,[this].concat(a))),n.history=(0,u.createMemoryHistory)(n.props),s(n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){(0,n.default)(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return r.default.createElement(i.default,{history:this.history,children:this.props.children})},e}(r.default.Component);l.propTypes={initialEntries:a.default.array,initialIndex:a.default.number,getUserConfirmation:a.default.func,keyLength:a.default.number,children:a.default.node},e.default=l},"97f29b55408372d007fb":(t,e,o)=>{"use strict";e.__esModule=!0;var n=u(o("69084d01d3449fc1bc27")),r=u(o("f1f2954cff54795efe74")),a=u(o("38951ce49973bdc0ba03"));function u(t){return t&&t.__esModule?t:{default:t}}var i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){(0,a.default)(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(n.default.Component);i.propTypes={when:r.default.bool,message:r.default.oneOfType([r.default.func,r.default.string]).isRequired},i.defaultProps={when:!0},i.contextTypes={router:r.default.shape({history:r.default.shape({block:r.default.func.isRequired}).isRequired}).isRequired},e.default=i},"6a67034bba0d5a3319ce":(t,e,o)=>{"use strict";e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},r=l(o("69084d01d3449fc1bc27")),a=l(o("f1f2954cff54795efe74")),u=l(o("2bb73d69683d2cade437")),i=l(o("38951ce49973bdc0ba03")),c=o("573eb5dd3385fe391af1"),s=l(o("ec3985304bb7db7a07eb"));function l(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){(0,i.default)(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=(0,c.createLocation)(t.to),o=(0,c.createLocation)(this.props.to);(0,c.locationsAreEqual)(e,o)?(0,u.default)(!1,"You tried to redirect to the same route you're currently on: \""+o.pathname+o.search+'"'):this.perform()},e.prototype.computeTo=function(t){var e=t.computedMatch,o=t.to;return e?"string"==typeof o?(0,s.default)(o,e.params):n({},o,{pathname:(0,s.default)(o.pathname,e.params)}):o},e.prototype.perform=function(){var t=this.context.router.history,e=this.props.push,o=this.computeTo(this.props);e?t.push(o):t.replace(o)},e.prototype.render=function(){return null},e}(r.default.Component);f.propTypes={computedMatch:a.default.object,push:a.default.bool,from:a.default.string,to:a.default.oneOfType([a.default.string,a.default.object]).isRequired},f.defaultProps={push:!1},f.contextTypes={router:a.default.shape({history:a.default.shape({push:a.default.func.isRequired,replace:a.default.func.isRequired}).isRequired,staticContext:a.default.object}).isRequired},e.default=f},"0de484746f39ce4c59ab":(t,e,o)=>{"use strict";
1e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},r=s(o("2bb73d69683d2cade437")),a=s(o("38951ce49973bdc0ba03")),u=s(o("69084d01d3449fc1bc27")),i=s(o("f1f2954cff54795efe74")),c=s(o("77e61a14a641d9546cbc"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var f=function(t){return 0===u.default.Children.count(t)},p=function(t){function e(){var o,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=Array(r),u=0;u<r;u++)a[u]=arguments[u];return o=n=l(this,t.call.apply(t,[this].concat(a))),n.state={match:n.computeMatch(n.props,n.context.router)},l(n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:n({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var o=t.computedMatch,n=t.location,r=t.path,u=t.strict,i=t.exact,s=t.sensitive;if(o)return o;(0,a.default)(e,"You should not use <Route> or withRouter() outside a <Router>");var l=e.route,f=(n||l.location).pathname;return(0,c.default)(f,{path:r,strict:u,exact:i,sensitive:s},l.match)},e.prototype.componentWillMount=function(){(0,r.default)(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),(0,r.default)(!(this.props.component&&this.props.children&&!f(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),(0,r.default)(!(this.props.render&&this.props.children&&!f(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){(0,r.default)(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,r.default)(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,o=e.children,n=e.component,r=e.render,a=this.context.router,i=a.history,c=a.route,s=a.staticContext,l={match:t,location:this.props.location||c.location,history:i,staticContext:s};return n?t?u.default.createElement(n,l):null:r?t?r(l):null:"function"==typeof o?o(l):o&&!f(o)?u.default.Children.only(o):null},e}(u.default.Component);p.propTypes={computedMatch:i.default.object,path:i.default.string,exact:i.default.bool,strict:i.default.bool,sensitive:i.default.bool,component:i.default.func,render:i.default.func,children:i.default.oneOfType([i.default.func,i.default.node]),location:i.default.object},p.contextTypes={router:i.default.shape({history:i.default.object.isRequired,route:i.default.object.isRequired,staticContext:i.default.object})},p.childContextTypes={router:i.default.object.isRequired},e.default=p},"55af88bb670d6d214f6a":(t,e,o)=>{"use strict";e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},r=c(o("2bb73d69683d2cade437")),a=c(o("38951ce49973bdc0ba03")),u=c(o("69084d01d3449fc1bc27")),i=c(o("f1f2954cff54795efe74"));function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){var o,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=Array(r),u=0;u<r;u++)a[u]=arguments[u];return o=n=s(this,t.call.apply(t,[this].concat(a))),n.state={match:n.computeMatch(n.props.history.location.pathname)},s(n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:n({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,o=e.children,n=e.history;(0,a.default)(null==o||1===u.default.Children.count(o),"A <Router> may have only one child element"),this.unlisten=n.listen(function(){t.setState({match:t.computeMatch(n.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){(0,r.default)(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?u.default.Children.only(t):null},e}(u.default.Component);l.propTypes={history:i.default.object.isRequired,children:i.default.node},l.contextTypes={router:i.default.object},l.childContextTypes={router:i.default.object.isRequired},e.default=l},"11924bbcb68dbfd07736":(t,e,o)=>{"use strict";
1e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},r=l(o("2bb73d69683d2cade437")),a=l(o("38951ce49973bdc0ba03")),u=l(o("69084d01d3449fc1bc27")),i=l(o("f1f2954cff54795efe74")),c=o("573eb5dd3385fe391af1"),s=l(o("55af88bb670d6d214f6a"));function l(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var p=function(t){return"/"===t.charAt(0)?t:"/"+t},d=function(t,e){return t?n({},e,{pathname:p(t)+e.pathname}):e},h=function(t,e){if(!t)return e;var o=p(t);return 0!==e.pathname.indexOf(o)?e:n({},e,{pathname:e.pathname.substr(o.length)})},b=function(t){return"string"==typeof t?t:(0,c.createPath)(t)},y=function(t){return function(){(0,a.default)(!1,"You cannot %s with <StaticRouter>",t)}},m=function(){},v=function(t){function e(){var o,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=Array(r),u=0;u<r;u++)a[u]=arguments[u];return o=n=f(this,t.call.apply(t,[this].concat(a))),n.createHref=function(t){return p(n.props.basename+b(t))},n.handlePush=function(t){var e=n.props,o=e.basename,r=e.context;r.action="PUSH",r.location=d(o,(0,c.createLocation)(t)),r.url=b(r.location)},n.handleReplace=function(t){var e=n.props,o=e.basename,r=e.context;r.action="REPLACE",r.location=d(o,(0,c.createLocation)(t)),r.url=b(r.location)},n.handleListen=function(){return m},n.handleBlock=function(){return m},f(n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.componentWillMount=function(){(0,r.default)(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,o=(t.context,t.location),r=function(t,e){var o={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}(t,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:h(e,(0,c.createLocation)(o)),push:this.handlePush,replace:this.handleReplace,go:y("go"),goBack:y("goBack"),goForward:y("goForward"),listen:this.handleListen,block:this.handleBlock};return u.default.createElement(s.default,n({},r,{history:a}))},e}(u.default.Component);v.propTypes={basename:i.default.string,context:i.default.object.isRequired,location:i.default.oneOfType([i.default.string,i.default.object])},v.defaultProps={basename:"",location:"/"},v.childContextTypes={router:i.default.object.isRequired},e.default=v},"9691904d1e6e2a62995a":(t,e,o)=>{"use strict";e.__esModule=!0;var n=c(o("69084d01d3449fc1bc27")),r=c(o("f1f2954cff54795efe74")),a=c(o("2bb73d69683d2cade437")),u=c(o("38951ce49973bdc0ba03")),i=c(o("77e61a14a641d9546cbc"));function c(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){(0,u.default)(this.context.router,"You should not use <Switch> outside a <Router>")},e.prototype.componentWillReceiveProps=function(t){(0,a.default)(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,a.default)(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,o=this.props.location||t.location,r=void 0,a=void 0;
1return n.default.Children.forEach(e,function(e){if(null==r&&n.default.isValidElement(e)){var u=e.props,c=u.path,s=u.exact,l=u.strict,f=u.sensitive,p=u.from,d=c||p;a=e,r=(0,i.default)(o.pathname,{path:d,exact:s,strict:l,sensitive:f},t.match)}}),r?n.default.cloneElement(a,{location:o,computedMatch:r}):null},e}(n.default.Component);s.contextTypes={router:r.default.shape({route:r.default.object.isRequired}).isRequired},s.propTypes={children:r.default.node,location:r.default.object},e.default=s},ec3985304bb7db7a07eb:(t,e,o)=>{"use strict";e.__esModule=!0;var n,r=(n=o("2262d927185b5f4b5f16"))&&n.__esModule?n:{default:n},a={},u=0;e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("/"===t)return t;var o=function(t){var e=t,o=a[e]||(a[e]={});if(o[t])return o[t];var n=r.default.compile(t);return u<1e4&&(o[t]=n,u++),n}(t);return o(e,{pretty:!0})}},"52a786c70de20e5377c1":(t,e,o)=>{"use strict";e.__esModule=!0,e.withRouter=e.matchPath=e.generatePath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.MemoryRouter=void 0;var n=d(o("f60cb9e0938cb2fabf29")),r=d(o("97f29b55408372d007fb")),a=d(o("6a67034bba0d5a3319ce")),u=d(o("0de484746f39ce4c59ab")),i=d(o("55af88bb670d6d214f6a")),c=d(o("11924bbcb68dbfd07736")),s=d(o("9691904d1e6e2a62995a")),l=d(o("ec3985304bb7db7a07eb")),f=d(o("77e61a14a641d9546cbc")),p=d(o("604fc29599cb90dd478b"));function d(t){return t&&t.__esModule?t:{default:t}}e.MemoryRouter=n.default,e.Prompt=r.default,e.Redirect=a.default,e.Route=u.default,e.Router=i.default,e.StaticRouter=c.default,e.Switch=s.default,e.generatePath=l.default,e.matchPath=f.default,e.withRouter=p.default},"77e61a14a641d9546cbc":(t,e,o)=>{"use strict";e.__esModule=!0;var n,r=(n=o("2262d927185b5f4b5f16"))&&n.__esModule?n:{default:n},a={},u=0;e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2];"string"==typeof e&&(e={path:e});var n=e,i=n.path,c=n.exact,s=void 0!==c&&c,l=n.strict,f=void 0!==l&&l,p=n.sensitive;if(null==i)return o;var d=function(t,e){var o=""+e.end+e.strict+e.sensitive,n=a[o]||(a[o]={});if(n[t])return n[t];var i=[],c={re:(0,r.default)(t,i,e),keys:i};return u<1e4&&(n[t]=c,u++),c}(i,{end:s,strict:f,sensitive:void 0!==p&&p}),h=d.re,b=d.keys,y=h.exec(t);if(!y)return null;var m=y[0],v=y.slice(1),w=t===m;return s&&!w?null:{path:i,url:"/"===i&&""===m?"/":m,isExact:w,params:b.reduce(function(t,e,o){return t[e.name]=v[o],t},{})}}},"2bb73d69683d2cade437":t=>{"use strict";t.exports=function(){}},"604fc29599cb90dd478b":(t,e,o)=>{"use strict";e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},r=c(o("69084d01d3449fc1bc27")),a=c(o("f1f2954cff54795efe74")),u=c(o("2106e7bd2f7fd79838ac")),i=c(o("0de484746f39ce4c59ab"));function c(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e=function(e){var o=e.wrappedComponentRef,a=function(t,e){var o={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}(e,["wrappedComponentRef"]);return r.default.createElement(i.default,{children:function(e){return r.default.createElement(t,n({},a,e,{ref:o}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:a.default.func},(0,u.default)(e,t)}}}]);

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.