Directory: /nas/content/live/barnevernshje1
Go to Parent Directory
File: /nas/content/live/barnevernshje1/wp-content/plugins/assistant/build/vendor-react-router-dom.js
/*! For license information please see vendor-react-router-dom.js.LICENSE.txt */
(()=>{var t={4146:(t,e,n)=>{"use strict";var r=n(3404),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},c={};function u(t){return r.isMemo(t)?a:c[t.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=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=f(n);l&&(a=a.concat(l(n)));for(var c=u(e),v=u(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var g=p(n,y);try{s(e,y,g)}catch(t){}}}}return e}},3072:(t,e)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,l=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case v:case u:return t;default:return e}}case o:return e}}}function P(t){return x(t)===l}e.AsyncMode=f,e.ConcurrentMode=l,e.ContextConsumer=s,e.ContextProvider=u,e.Element=r,e.ForwardRef=p,e.Fragment=i,e.Lazy=m,e.Memo=v,e.Portal=o,e.Profiler=c,e.StrictMode=a,e.Suspense=h,e.isAsyncMode=function(t){return P(t)||x(t)===f},e.isConcurrentMode=P,e.isContextConsumer=function(t){return x(t)===s},e.isContextProvider=function(t){return x(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return x(t)===p},e.isFragment=function(t){return x(t)===i},e.isLazy=function(t){return x(t)===m},e.isMemo=function(t){return x(t)===v},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===c},e.isStrictMode=function(t){return x(t)===a},e.isSuspense=function(t){return x(t)===h},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===w||t.$$typeof===b||t.$$typeof===y)},e.typeOf=x},3404:(t,e,n)=>{"use strict";t.exports=n(3072)},4634:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},5302:(t,e,n)=>{var r=n(4634);t.exports=d,t.exports.parse=i,t.exports.compile=function(t,e){return u(i(t,e),e)},t.exports.tokensToFunction=u,t.exports.tokensToRegExp=h;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,c=0,u="",s=e&&e.delimiter||"/";null!=(n=o.exec(t));){var l=n[0],p=n[1],h=n.index;if(u+=t.slice(c,h),c=h+l.length,p)u+=p[1];else{var d=t[c],v=n[2],m=n[3],y=n[4],g=n[5],w=n[6],b=n[7];u&&(r.push(u),u="");var x=null!=v&&null!=d&&d!==v,P="+"===w||"*"===w,O="?"===w||"*"===w,S=v||s,E=y||g,C=v||("string"==typeof r[r.length-1]?r[r.length-1]:"");r.push({name:m||i++,prefix:v||"",delimiter:S,optional:O,repeat:P,partial:x,asterisk:!!b,pattern:E?f(E):b?".*":a(S,C)})}}return c<t.length&&(u+=t.substr(c)),u&&r.push(u),r}function a(t,e){return!e||e.indexOf(t)>-1?"[^"+s(t)+"]+?":s(e)+"|(?:(?!"+s(e)+")[^"+s(t)+"])+?"}function c(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+")$",p(e)));return function(e,o){for(var i="",a=e||{},u=(o||{}).pretty?c:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=a[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!n[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!n[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function s(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function f(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function l(t,e){return t.keys=e,t}function p(t){return t&&t.sensitive?"":"i"}function h(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<t.length;c++){var u=t[c];if("string"==typeof u)a+=s(u);else{var f=s(u.prefix),h="(?:"+u.pattern+")";e.push(u),u.repeat&&(h+="(?:"+f+h+")*"),a+=h=u.optional?u.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}var d=s(n.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",l(new RegExp("^"+a,p(n)),e)}function d(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 l(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(d(t[o],e,n).source);return l(new RegExp("(?:"+r.join("|")+")",p(n)),e)}(t,e,n):function(t,e,n){return h(i(t,n),e,n)}(t,e,n)}},2694:(t,e,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(t,e,n)=>{t.exports=n(2694)()},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4912:(t,e)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,l=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case v:case u:return t;default:return e}}case o:return e}}}function P(t){return x(t)===l}},7564:(t,e,n)=>{"use strict";n(4912)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}function r(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,e(t,n)}n.r(t),n.d(t,{BrowserRouter:()=>St,HashRouter:()=>Et,Link:()=>_t,MemoryRouter:()=>M,NavLink:()=>Lt,Prompt:()=>j,Redirect:()=>B,Route:()=>q,Router:()=>$,StaticRouter:()=>Q,Switch:()=>X,generatePath:()=>F,matchPath:()=>V,useHistory:()=>et,useLocation:()=>nt,useParams:()=>rt,useRouteMatch:()=>ot,withRouter:()=>Z});const o=React;var i=n.n(o),a=n(5556),c=n.n(a);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(null,arguments)}function s(t){return"/"===t.charAt(0)}function f(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 l=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&s(t),a=e&&s(e),c=i||a;if(t&&s(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?f(o,p):".."===h?(f(o,p),l++):l&&(f(o,p),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function p(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const h=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=p(e),o=p(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 d(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 v(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),o.state=e):(void 0===(o=u({},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=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function m(){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 y(t,e,n){return Math.min(Math.max(t,e),n)}var g=!0,w="Invariant failed";function b(t,e){if(!t){if(g)throw new Error(w);var n="function"==typeof e?e():e,r=n?"".concat(w,": ").concat(n):w;throw new Error(r)}}var x=n(5302),P=n.n(x);n(7564);function O(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}var S=n(4146),E=n.n(S),C=1073741823,R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var T=i().createContext||function(t,e){var n,o,a="__create-react-context-"+function(){var t="__global_unique_id__";return R[t]=(R[t]||0)+1}()+"__",u=function(t){function n(){for(var e,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))||this).emitter=(n=e.props.value,r=[],{on:function(t){r.push(t)},off:function(t){r=r.filter((function(e){return e!==t}))},get:function(){return n},set:function(t,e){n=t,r.forEach((function(t){return t(n,e)}))}}),e}r(n,t);var o=n.prototype;return o.getChildContext=function(){var t;return(t={})[a]=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):C,0!==(n|=0)&&this.emitter.set(t.value,n))}var i,a},o.render=function(){return this.props.children},n}(i().Component);u.childContextTypes=((n={})[a]=c().object.isRequired,n);var s=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).observedBits=void 0,t.state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}r(n,e);var o=n.prototype;return o.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?C:e},o.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?C:t},o.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},o.getValue=function(){return this.context[a]?this.context[a].get():t},o.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(i().Component);return s.contextTypes=((o={})[a]=c().object,o),{Provider:u,Consumer:s}},A=function(t){var e=T();return e.displayName=t,e},k=A("Router-History"),_=A("Router"),$=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._pendingLocation=t}))),n}r(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){var t=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(e){t._isMounted&&t.setState({location:e})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i().createElement(_.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i().createElement(k.Provider,{children:this.props.children||null,value:this.props.history}))},e}(i().Component);var M=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=function(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,f=m();function l(t){u(x,t),x.length=x.entries.length,f.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,s)}var h=y(a,0,o.length-1),g=o.map((function(t){return v(t,void 0,"string"==typeof t?p():t.key||p())})),w=d;function b(t){var e=y(x.index+t,0,x.entries.length-1),r=x.entries[e];f.confirmTransitionTo(r,"POP",n,(function(t){t?l({action:"POP",location:r,index:e}):l()}))}var x={length:g.length,action:"POP",location:g[h],index:h,entries:g,createHref:w,push:function(t,e){var r="PUSH",o=v(t,e,p(),x.location);f.confirmTransitionTo(o,r,n,(function(t){if(t){var e=x.index+1,n=x.entries.slice(0);n.length>e?n.splice(e,n.length-e,o):n.push(o),l({action:r,location:o,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",o=v(t,e,p(),x.location);f.confirmTransitionTo(o,r,n,(function(t){t&&(x.entries[x.index]=o,l({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=x.index+t;return e>=0&&e<x.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return x}(e.props),e}return r(e,t),e.prototype.render=function(){return i().createElement($,{history:this.history,children:this.props.children})},e}(i().Component);var L=function(t){function e(){return t.apply(this,arguments)||this}r(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}(i().Component);function j(t){var e=t.message,n=t.when,r=void 0===n||n;return i().createElement(_.Consumer,null,(function(t){if(t||b(!1),!r||t.staticContext)return null;var n=t.history.block;return i().createElement(L,{onMount:function(t){t.release=n(e)},onUpdate:function(t,r){r.message!==e&&(t.release(),t.release=n(e))},onUnmount:function(t){t.release()},message:e})}))}var U={},I=1e4,N=0;function F(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(U[t])return U[t];var e=P().compile(t);return N<I&&(U[t]=e,N++),e}(t)(e,{pretty:!0})}function B(t){var e=t.computedMatch,n=t.to,r=t.push,o=void 0!==r&&r;return i().createElement(_.Consumer,null,(function(t){t||b(!1);var r=t.history,a=t.staticContext,c=o?r.push:r.replace,s=v(e?"string"==typeof n?F(n,e.params):u({},n,{pathname:F(n.pathname,e.params)}):n);return a?(c(s),null):i().createElement(L,{onMount:function(){c(s)},onUpdate:function(t,e){var n,r,o=v(e.to);n=o,r=u({},s,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&h(n.state,r.state)||c(s)},to:n})}))}var D={},H=1e4,W=0;function V(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,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;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=D[n]||(D[n]={});if(r[t])return r[t];var o=[],i={regexp:P()(t,o,e),keys:o};return W<H&&(r[t]=i,W++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=l[n],t}),{})}}),null)}var q=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this;return i().createElement(_.Consumer,null,(function(e){e||b(!1);var n=t.props.location||e.location,r=u({},e,{location:n,match:t.props.computedMatch?t.props.computedMatch:t.props.path?V(n.pathname,t.props):e.match}),o=t.props,a=o.children,c=o.component,s=o.render;return Array.isArray(a)&&function(t){return 0===i().Children.count(t)}(a)&&(a=null),i().createElement(_.Provider,{value:r},r.match?a?"function"==typeof a?a(r):a:c?i().createElement(c,r):s?s(r):null:"function"==typeof a?a(r):null)}))},e}(i().Component);function z(t){return"/"===t.charAt(0)?t:"/"+t}function K(t,e){if(!t)return e;var n=z(t);return 0!==e.pathname.indexOf(n)?e:u({},e,{pathname:e.pathname.substr(n.length)})}function J(t){return"string"==typeof t?t:d(t)}function G(t){return function(){b(!1)}}function Y(){}var Q=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).handlePush=function(t){return e.navigateTo(t,"PUSH")},e.handleReplace=function(t){return e.navigateTo(t,"REPLACE")},e.handleListen=function(){return Y},e.handleBlock=function(){return Y},e}r(e,t);var n=e.prototype;return n.navigateTo=function(t,e){var n=this.props,r=n.basename,o=void 0===r?"":r,i=n.context,a=void 0===i?{}:i;a.action=e,a.location=function(t,e){return t?u({},e,{pathname:z(t)+e.pathname}):e}(o,v(t)),a.url=J(a.location)},n.render=function(){var t=this.props,e=t.basename,n=void 0===e?"":e,r=t.context,o=void 0===r?{}:r,a=t.location,c=void 0===a?"/":a,s=O(t,["basename","context","location"]),f={createHref:function(t){return z(n+J(t))},action:"POP",location:K(n,v(c)),push:this.handlePush,replace:this.handleReplace,go:G(),goBack:G(),goForward:G(),listen:this.handleListen,block:this.handleBlock};return i().createElement($,u({},s,{history:f,staticContext:o}))},e}(i().Component);var X=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this;return i().createElement(_.Consumer,null,(function(e){e||b(!1);var n,r,o=t.props.location||e.location;return i().Children.forEach(t.props.children,(function(t){if(null==r&&i().isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?V(o.pathname,u({},t.props,{path:a})):e.match}})),r?i().cloneElement(n,{location:o,computedMatch:r}):null}))},e}(i().Component);function Z(t){var e="withRouter("+(t.displayName||t.name)+")",n=function(e){var n=e.wrappedComponentRef,r=O(e,["wrappedComponentRef"]);return i().createElement(_.Consumer,null,(function(e){return e||b(!1),i().createElement(t,u({},r,e,{ref:n}))}))};return n.displayName=e,n.WrappedComponent=t,E()(n,t)}var tt=i().useContext;function et(){return tt(k)}function nt(){return tt(_).location}function rt(){var t=tt(_).match;return t?t.params:{}}function ot(t){var e=nt(),n=tt(_).match;return t?V(e.pathname,t):n}function it(t){return"/"===t.charAt(0)?t:"/"+t}function at(t){return"/"===t.charAt(0)?t.substr(1):t}function ct(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function ut(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function st(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 ft(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),o.state=e):(void 0===(o=u({},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=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function lt(){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)}))}}}var pt=!("undefined"==typeof window||!window.document||!window.document.createElement);function ht(t,e){e(window.confirm(t))}var dt="popstate",vt="hashchange";function mt(){try{return window.history.state||{}}catch(t){return{}}}function yt(t){void 0===t&&(t={}),pt||b(!1);var e,n=window.history,r=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,a=i.forceRefresh,c=void 0!==a&&a,s=i.getUserConfirmation,f=void 0===s?ht:s,l=i.keyLength,p=void 0===l?6:l,h=t.basename?ut(it(t.basename)):"";function d(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return h&&(i=ct(i,h)),ft(i,r,n)}function v(){return Math.random().toString(36).substr(2,p)}var m=lt();function y(t){u(k,t),k.length=n.length,m.notifyListeners(k.location,k.action)}function g(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||P(d(t.state))}function w(){P(d(mt()))}var x=!1;function P(t){if(x)x=!1,y();else{m.confirmTransitionTo(t,"POP",f,(function(e){e?y({action:"POP",location:t}):function(t){var e=k.location,n=S.indexOf(e.key);-1===n&&(n=0);var r=S.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(x=!0,C(o))}(t)}))}}var O=d(mt()),S=[O.key];function E(t){return h+st(t)}function C(t){n.go(t)}var R=0;function T(t){1===(R+=t)&&1===t?(window.addEventListener(dt,g),o&&window.addEventListener(vt,w)):0===R&&(window.removeEventListener(dt,g),o&&window.removeEventListener(vt,w))}var A=!1;var k={length:n.length,action:"POP",location:O,createHref:E,push:function(t,e){var o="PUSH",i=ft(t,e,v(),k.location);m.confirmTransitionTo(i,o,f,(function(t){if(t){var e=E(i),a=i.key,u=i.state;if(r)if(n.pushState({key:a,state:u},null,e),c)window.location.href=e;else{var s=S.indexOf(k.location.key),f=S.slice(0,s+1);f.push(i.key),S=f,y({action:o,location:i})}else window.location.href=e}}))},replace:function(t,e){var o="REPLACE",i=ft(t,e,v(),k.location);m.confirmTransitionTo(i,o,f,(function(t){if(t){var e=E(i),a=i.key,u=i.state;if(r)if(n.replaceState({key:a,state:u},null,e),c)window.location.replace(e);else{var s=S.indexOf(k.location.key);-1!==s&&(S[s]=i.key),y({action:o,location:i})}else window.location.replace(e)}}))},go:C,goBack:function(){C(-1)},goForward:function(){C(1)},block:function(t){void 0===t&&(t=!1);var e=m.setPrompt(t);return A||(T(1),A=!0),function(){return A&&(A=!1,T(-1)),e()}},listen:function(t){var e=m.appendListener(t);return T(1),function(){T(-1),e()}}};return k}var gt="hashchange",wt={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+at(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:at,decodePath:it},slash:{encodePath:it,decodePath:it}};function bt(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function xt(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function Pt(t){window.location.replace(bt(window.location.href)+"#"+t)}function Ot(t){void 0===t&&(t={}),pt||b(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,o=void 0===r?ht:r,i=n.hashType,a=void 0===i?"slash":i,c=t.basename?ut(it(t.basename)):"",s=wt[a],f=s.encodePath,l=s.decodePath;function p(){var t=l(xt());return c&&(t=ct(t,c)),ft(t)}var h=lt();function d(t){u(R,t),R.length=e.length,h.notifyListeners(R.location,R.action)}var v=!1,m=null;function y(){var t,e,n=xt(),r=f(n);if(n!==r)Pt(r);else{var i=p(),a=R.location;if(!v&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(m===st(i))return;m=null,function(t){if(v)v=!1,d();else{var e="POP";h.confirmTransitionTo(t,e,o,(function(n){n?d({action:e,location:t}):function(t){var e=R.location,n=P.lastIndexOf(st(e));-1===n&&(n=0);var r=P.lastIndexOf(st(t));-1===r&&(r=0);var o=n-r;o&&(v=!0,O(o))}(t)}))}}(i)}}var g=xt(),w=f(g);g!==w&&Pt(w);var x=p(),P=[st(x)];function O(t){e.go(t)}var S=0;function E(t){1===(S+=t)&&1===t?window.addEventListener(gt,y):0===S&&window.removeEventListener(gt,y)}var C=!1;var R={length:e.length,action:"POP",location:x,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=bt(window.location.href)),n+"#"+f(c+st(t))},push:function(t,e){var n="PUSH",r=ft(t,void 0,void 0,R.location);h.confirmTransitionTo(r,n,o,(function(t){if(t){var e=st(r),o=f(c+e);if(xt()!==o){m=e,function(t){window.location.hash=t}(o);var i=P.lastIndexOf(st(R.location)),a=P.slice(0,i+1);a.push(e),P=a,d({action:n,location:r})}else d()}}))},replace:function(t,e){var n="REPLACE",r=ft(t,void 0,void 0,R.location);h.confirmTransitionTo(r,n,o,(function(t){if(t){var e=st(r),o=f(c+e);xt()!==o&&(m=e,Pt(o));var i=P.indexOf(st(R.location));-1!==i&&(P[i]=e),d({action:n,location:r})}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(t){void 0===t&&(t=!1);var e=h.setPrompt(t);return C||(E(1),C=!0),function(){return C&&(C=!1,E(-1)),e()}},listen:function(t){var e=h.appendListener(t);return E(1),function(){E(-1),e()}}};return R}var St=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=yt(e.props),e}return r(e,t),e.prototype.render=function(){return i().createElement($,{history:this.history,children:this.props.children})},e}(i().Component);var Et=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=Ot(e.props),e}return r(e,t),e.prototype.render=function(){return i().createElement($,{history:this.history,children:this.props.children})},e}(i().Component);var Ct=function(t,e){return"function"==typeof t?t(e):t},Rt=function(t,e){return"string"==typeof t?ft(t,null,null,e):t},Tt=function(t){return t},At=i().forwardRef;void 0===At&&(At=Tt);var kt=At((function(t,e){var n=t.innerRef,r=t.navigate,o=t.onClick,a=O(t,["innerRef","navigate","onClick"]),c=a.target,s=u({},a,{onClick:function(t){try{o&&o(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||c&&"_self"!==c||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=Tt!==At&&e||n,i().createElement("a",s)}));var _t=At((function(t,e){var n=t.component,r=void 0===n?kt:n,o=t.replace,a=t.to,c=t.innerRef,s=O(t,["component","replace","to","innerRef"]);return i().createElement(_.Consumer,null,(function(t){t||b(!1);var n=t.history,f=Rt(Ct(a,t.location),t.location),l=f?n.createHref(f):"",p=u({},s,{href:l,navigate:function(){var e=Ct(a,t.location),r=st(t.location)===st(Rt(e));(o||r?n.replace:n.push)(e)}});return Tt!==At?p.ref=e||c:p.innerRef=c,i().createElement(r,p)}))})),$t=function(t){return t},Mt=i().forwardRef;void 0===Mt&&(Mt=$t);var Lt=Mt((function(t,e){var n=t["aria-current"],r=void 0===n?"page":n,o=t.activeClassName,a=void 0===o?"active":o,c=t.activeStyle,s=t.className,f=t.exact,l=t.isActive,p=t.location,h=t.sensitive,d=t.strict,v=t.style,m=t.to,y=t.innerRef,g=O(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i().createElement(_.Consumer,null,(function(t){t||b(!1);var n=p||t.location,o=Rt(Ct(m,n),n),w=o.pathname,x=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=x?V(n.pathname,{path:x,exact:f,sensitive:h,strict:d}):null,O=!!(l?l(P,n):P),S="function"==typeof s?s(O):s,E="function"==typeof v?v(O):v;O&&(S=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(S,a),E=u({},E,c));var C=u({"aria-current":O&&r||null,className:S,style:E,to:o},g);return $t!==Mt?C.ref=e||y:C.innerRef=y,i().createElement(_t,C)}))}));window.ReactRouterDOM=window.ReactRouterDOM||t})()})();
Upload Encrypted File