PageSourceSearch

https://app.opus1.io/releases/20260925T143842Z-e1befdfb692b/lib-router.c939b010.js

js opus1.io collected 2026-09-25 18:52:28 UTC 18,393 bytes, 2 lines download raw bytes

1!function(){try{var n="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},t=(new n.Error).stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="09c994d3-eda4-4efe-8ffd-e9e88fcf5fa8",n._sentryDebugIdIdentifier="sentry-dbid-09c994d3-eda4-4efe-8ffd-e9e88fcf5fa8")}catch(n){}}();var _global="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};_global.SENTRY_RELEASE={id:"e1befdfb692b28496829f71c2490b06d48ba02c9"};"use strict";(self.webpackChunkopus1io=self.webpackChunkopus1io||[]).push([["79535"],{44499:function(n,t,e){e.d(t,{AO:function(){return l},Fu:function(){return p},TM:function(){return k},sC:function(){return _},yJ:function(){return h},zR:function(){return x}});var o=e(58168),r=e(34307),i=e(78783),a=e(11561);function c(n){return"/"===n.charAt(0)?n:"/"+n}function u(n){return"/"===n.charAt(0)?n.substr(1):n}function s(n,t){return 0===n.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(n.charAt(t.length))?n.substr(t.length):n}function f(n){return"/"===n.charAt(n.length-1)?n.slice(0,-1):n}function l(n){var t=n.pathname,e=n.search,o=n.hash,r=t||"/";return e&&"?"!==e&&(r+="?"===e.charAt(0)?e:"?"+e),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function h(n,t,e,i){var a,c,u,s,f,l;"string"==typeof n?(u="",s="",-1!==(f=(c=n||"/").indexOf("#"))&&(s=c.substr(f),c=c.substr(0,f)),-1!==(l=c.indexOf("?"))&&(u=c.substr(l),c=c.substr(0,l)),(a={pathname:c,search:"?"===u?"":u,hash:"#"===s?"":s}).state=t):(void 0===(a=(0,o.default)({},n)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(n){if(n instanceof URIError)throw URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.');throw n}return e&&(a.key=e),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,r.A)(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a}function p(n,t){return n.pathname===t.pathname&&n.search===t.search&&n.hash===t.hash&&n.key===t.key&&(0,i.A)(n.state,t.state)}function d(){var n=null,t=[];return{setPrompt:function(t){return n=t,function(){n===t&&(n=null)}},confirmTransitionTo:function(t,e,o,r){if(null!=n){var i="function"==typeof n?n(t,e):n;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(n){var e=!0;function o(){e&&n.apply(void 0,arguments)}return t.push(o),function(){e=!1,t=t.filter(function(n){return n!==o})}},notifyListeners:function(){for(var n=arguments.length,e=Array(n),o=0;o<n;o++)e[o]=arguments[o];t.forEach(function(n){return n.apply(void 0,e)})}}}var v=!!("u">typeof window&&window.document&&window.document.createElement);function m(n,t){t(window.confirm(n))}var y="popstate",g="hashchange";function w(){try{return window.history.state||{}}catch(n){return{}}}function x(n){void 0===n&&(n={}),v||(0,a.A)(!1);var t,e=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=-1!==window.navigator.userAgent.indexOf("Trident"),u=n,p=u.forceRefresh,x=void 0!==p&&p,b=u.getUserConfirmation,A=void 0===b?m:b,C=u.keyLength,P=void 0===C?6:C,E=n.basename?f(c(n.basename)):"";function k(n){var t=n||{},e=t.key,o=t.state,r=window.location,i=r.pathname+r.search+r.hash;return E&&(i=s(i,E)),h(i,o,e)}function O(){return Math.random().toString(36).substr(2,P)}var _=d();function R(n){(0,o.default)(F,n),F.length=e.length,_.notifyListeners(F.location,F.action)}function T(n){(void 0!==n.state||-1!==navigator.userAgent.indexOf("CriOS"))&&U(k(n.state))}function L(){U(k(w()))}var M=!1;function U(n){M?(M=!1,R()):_.confirmTransitionTo(n,"POP",A,function(t){var e,o,r,i,a;t?R({action:"POP",location:n}):(e=n,o=F.location,-1===(r=I.indexOf(o.key))&&(r=0),-1===(i=I.indexOf(e.key))&&(i=0),(a=r-i)&&(M=!0,D(a)))})}var S=k(w()),I=[S.key];function B(n){return E+l(n)}function D(n){e.go(n)}var N=0;function W(n){1===(N+=n)&&1===n?(window.addEventListener(y,T),i&&window.addEventListener(g,L)):0===N&&(window.removeEventListener(y,T),i&&window.removeEventListener(g,L))}var H=!1,F={length:e.length,action:"POP",location:S,createHref:B,push:function(n,t){var o="PUSH",i=h(n,t,O(),F.location);_.confirmTransitionTo(i,o,A,function(n){if(n){var t=B(i),a=i.key,c=i.state;if(r)if(e.pushState({key:a,state:c},null,t),x)window.location.href=t;else{var u=I.indexOf(F.location.key),s=I.slice(0,u+1);s.push(i.key),I=s,R({action:o,location:i})}else window.location.href=t}})},replace:function(n,t){var o="REPLACE",i=h(n,t,O(),F.location);_.confirmTransitionTo(i,o,A,function(n){if(n){var t=B(i),a=i.key,c=i.state;if(r)if(e.replaceState({key:a,state:c},null,t),x)window.location.replace(t);else{var u=I.indexOf(F.location.key);-1!==u&&(I[u]=i.key),R({action:o,location:i})}else window.location.replace(t)}})},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(n){void 0===n&&(n=!1);var t=_.setPrompt(n);return H||(W(1),H=!0),function(){return H&&(H=!1,W(-1)),t()}},listen:function(n){var t=_.appendListener(n);return W(1),function(){W(-1),t()}}};return F}var b="hashchange",A={hashbang:{encodePath:function(n){return"!"===n.charAt(0)?n:"!/"+u(n)},decodePath:function(n){return"!"===n.charAt(0)?n.substr(1):n}},noslash:{encodePath:u,decodePath:c},slash:{encodePath:c,decodePath:c}};function C(n){var t=n.indexOf("#");return -1===t?n:n.slice(0,t)}function P(){var n=window.location.href,t=n.indexOf("#");return -1===t?"":n.substring(t+1)}function E(n){window.location.replace(C(window.location.href)+"#"+n)}function k(n){void 0===n&&(n={}),v||(0,a.A)(!1);var t=window.history;window.navigator.userAgent.indexOf("Firefox");var e=n,r=e.getUserConfirmation,i=void 0===r?m:r,u=e.hashType,p=n.basename?f(c(n.basename)):"",y=A[void 0===u?"slash":u],g=y.encodePath,w=y.decodePath;function x(){var n=w(P());return p&&(n=s(n,p)),h(n)}var k=d();
1function O(n){(0,o.default)(W,n),W.length=t.length,k.notifyListeners(W.location,W.action)}var _=!1,R=null;function T(){var n=P(),t=g(n);if(n!==t)E(t);else{var e,o=x(),r=W.location;if(!_&&r.pathname===o.pathname&&r.search===o.search&&r.hash===o.hash||R===l(o))return;R=null,e=o,_?(_=!1,O()):k.confirmTransitionTo(e,"POP",i,function(n){var t,o,r,i,a;n?O({action:"POP",location:e}):(t=e,o=W.location,-1===(r=S.lastIndexOf(l(o)))&&(r=0),-1===(i=S.lastIndexOf(l(t)))&&(i=0),(a=r-i)&&(_=!0,I(a)))})}}var L=P(),M=g(L);L!==M&&E(M);var U=x(),S=[l(U)];function I(n){t.go(n)}var B=0;function D(n){1===(B+=n)&&1===n?window.addEventListener(b,T):0===B&&window.removeEventListener(b,T)}var N=!1,W={length:t.length,action:"POP",location:U,createHref:function(n){var t=document.querySelector("base"),e="";return t&&t.getAttribute("href")&&(e=C(window.location.href)),e+"#"+g(p+l(n))},push:function(n,t){var e="PUSH",o=h(n,void 0,void 0,W.location);k.confirmTransitionTo(o,e,i,function(n){if(n){var t=l(o),r=g(p+t);if(P()!==r){R=t,window.location.hash=r;var i=S.lastIndexOf(l(W.location)),a=S.slice(0,i+1);a.push(t),S=a,O({action:e,location:o})}else O()}})},replace:function(n,t){var e="REPLACE",o=h(n,void 0,void 0,W.location);k.confirmTransitionTo(o,e,i,function(n){if(n){var t=l(o),r=g(p+t);P()!==r&&(R=t,E(r));var i=S.indexOf(l(W.location));-1!==i&&(S[i]=t),O({action:e,location:o})}})},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(n){void 0===n&&(n=!1);var t=k.setPrompt(n);return N||(D(1),N=!0),function(){return N&&(N=!1,D(-1)),t()}},listen:function(n){var t=k.appendListener(n);return D(1),function(){D(-1),t()}}};return W}function O(n,t,e){return Math.min(Math.max(n,t),e)}function _(n){void 0===n&&(n={});var t=n,e=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,a=t.initialIndex,c=t.keyLength,u=void 0===c?6:c,s=d();function f(n){(0,o.default)(g,n),g.length=g.entries.length,s.notifyListeners(g.location,g.action)}function p(){return Math.random().toString(36).substr(2,u)}var v=O(void 0===a?0:a,0,i.length-1),m=i.map(function(n){return"string"==typeof n?h(n,void 0,p()):h(n,void 0,n.key||p())});function y(n){var t=O(g.index+n,0,g.entries.length-1),o=g.entries[t];s.confirmTransitionTo(o,"POP",e,function(n){n?f({action:"POP",location:o,index:t}):f()})}var g={length:m.length,action:"POP",location:m[v],index:v,entries:m,createHref:l,push:function(n,t){var o="PUSH",r=h(n,t,p(),g.location);s.confirmTransitionTo(r,o,e,function(n){if(n){var t=g.index+1,e=g.entries.slice(0);e.length>t?e.splice(t,e.length-t,r):e.push(r),f({action:o,location:r,index:t,entries:e})}})},replace:function(n,t){var o="REPLACE",r=h(n,t,p(),g.location);s.confirmTransitionTo(r,o,e,function(n){n&&(g.entries[g.index]=r,f({action:o,location:r}))})},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(n){var t=g.index+n;return t>=0&&t<g.entries.length},block:function(n){return void 0===n&&(n=!1),s.setPrompt(n)},listen:function(n){return s.appendListener(n)}};return g}},54625:function(n,t,e){e.d(t,{N_:function(){return d}});var o=e(56347);e(77387);var r=e(96540),i=e(44499),a=e(58168),c=e(98587),u=e(11561);r.Component,r.Component;var s=function(n,t){return"function"==typeof n?n(t):n},f=function(n,t){return"string"==typeof n?(0,i.yJ)(n,null,null,t):n},l=function(n){return n},h=r.forwardRef;void 0===h&&(h=l);var p=h(function(n,t){var e=n.innerRef,o=n.navigate,i=n.onClick,u=(0,c.default)(n,["innerRef","navigate","onClick"]),s=u.target,f=(0,a.default)({},u,{onClick:function(n){try{i&&i(n)}catch(t){throw n.preventDefault(),t}n.defaultPrevented||0!==n.button||s&&"_self"!==s||n.metaKey||n.altKey||n.ctrlKey||n.shiftKey||(n.preventDefault(),o())}});return l!==h?f.ref=t||e:f.ref=e,r.createElement("a",f)}),d=h(function(n,t){var e=n.component,d=void 0===e?p:e,v=n.replace,m=n.to,y=n.innerRef,g=(0,c.default)(n,["component","replace","to","innerRef"]);return r.createElement(o.XZ.Consumer,null,function(n){n||(0,u.A)(!1);var e=n.history,o=f(s(m,n.location),n.location),c=o?e.createHref(o):"",p=(0,a.default)({},g,{href:c,navigate:function(){var t=s(m,n.location),o=(0,i.AO)(n.location)===(0,i.AO)(f(t));(v||o?e.replace:e.push)(t)}});return l!==h?p.ref=t||y:p.innerRef=y,r.createElement(d,p)})}),v=function(n){return n},m=r.forwardRef;void 0===m&&(m=v),m(function(n,t){var e=n["aria-current"],i=void 0===e?"page":e,l=n.activeClassName,h=void 0===l?"active":l,p=n.activeStyle,y=n.className,g=n.exact,w=n.isActive,x=n.location,b=n.sensitive,A=n.strict,C=n.style,P=n.to,E=n.innerRef,k=(0,c.default)(n,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r.createElement(o.XZ.Consumer,null,function(n){n||(0,u.A)(!1);var e=x||n.location,c=f(s(P,e),e),l=c.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=O?(0,o.B6)(e.pathname,{path:O,exact:g,sensitive:b,strict:A}):null,R=!!(w?w(_,e):_),T="function"==typeof y?y(R):y,L="function"==typeof C?C(R):C;R&&(T=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return t.filter(function(n){return n}).join(" ")}(T,h),L=(0,a.default)({},L,p));var M=(0,a.default)({"aria-current":R&&i||null,className:T,style:L,to:c},k);return v!==m?M.ref=t||E:M.innerRef=E,r.createElement(d,M)})})},56347:function(n,t,e){e.d(t,{B6:function(){return _},Ix:function(){return x},W5:function(){return B},W6:function(){return U},XZ:function(){return w},dO:function(){return T},g:function(){return I},qh:function(){return R},rd:function(){return E},y:function(){return L},zy:function(){return S}});var o=e(77387),r=e(96540),i=e(5556),a=e.n(i),c=e(44499),u=e(11561),s=e(58168),f=e(35302),l=e.n(f);e(44363);var h=e(98587),p=e(4146),d=e.n(p),v="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==e.g?e.g:{},m=r.createContext||function(n,t){var e,i,c="__create-react-context-"+(v.__global_unique_id__=(v.__global_unique_id__||0)+1)+"__",u=function(n){function e(){for(var t,e,o,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=(t=n.call.apply(n,[this].concat(i))||this).props.value,o=[],t.emitter={on:function(n){o.push(n)},off:function(n){o=o.filter(function(t){return t!==n})},get:function(){return e},set:function(n,t){e=n,o.forEach(function(n){return n(e,t)})}},t}(0,o.A)(e,n);var r=e.prototype;return r.getChildContext=function(){var n;return(n={})[c]=this.emitter,n},r.componentWillReceiveProps=function(n){if(this.props.value!==n.value){var e,o=this.props.value,r=n.value;(o===r?0!==o||1/o==1/r:o!=o&&r!=r)?e=0:0!=(e=("function"==typeof t?t(o,r):0x3fffffff)|0)&&this.emitter.set(n.value,e)}},r.render=function(){return this.props.children},e}(r.Component);(e={})[c]=a().object.isRequired,u.childContextTypes=e;var s=function(t){function e(){for(var n,e=arguments.length,o=Array(e),r=0;r<e;r++)o[r]=arguments[r];return(n=t.call.apply(t,[this].concat(o))||this).observedBits=void 0,n.state={value:n.getValue()},n.onUpdate=function(t,e){(n.observedBits&e)!=0&&n.setState({value:n.getValue()})},n}(0,o.A)(e,t);var r=e.prototype;return r.componentWillReceiveProps=function(n){var t=n.observedBits;this.observedBits=null==t?0x3fffffff:t},r.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var n=this.props.observedBits;this.observedBits=null==n?0x3fffffff:n},r.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},r.getValue=function(){return this.context[c]?this.context[c].get():n},r.render=function(){var n;return(Array.isArray(n=this.props.children)?n[0]:n)(this.state.value)},e}(r.Component);return(i={})[c]=a().object,s.contextTypes=i,{Provider:u,Consumer:s}},y=function(n){var t=m();return t.displayName=n,t},g=y("Router-History"),w=y("Router"),x=function(n){function t(t){var e;return(e=n.call(this,t)||this).state={location:t.history.location},e._isMounted=!1,e._pendingLocation=null,t.staticContext||(e.unlisten=t.history.listen(function(n){e._pendingLocation=n})),e}(0,o.A)(t,n),t.computeRootMatch=function(n){return{path:"/",url:"/",params:{},isExact:"/"===n}};var e=t.prototype;return e.componentDidMount=function(){var n=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(t){n._isMounted&&n.setState({location:t})}
1)),this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},e.render=function(){return r.createElement(w.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r.createElement(g.Provider,{children:this.props.children||null,value:this.props.history}))},t}(r.Component);r.Component;var b=function(n){function t(){return n.apply(this,arguments)||this}(0,o.A)(t,n);var e=t.prototype;return e.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.componentDidUpdate=function(n){this.props.onUpdate&&this.props.onUpdate.call(this,this,n)},e.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.render=function(){return null},t}(r.Component),A={},C=0;function P(n,t){return void 0===n&&(n="/"),void 0===t&&(t={}),"/"===n?n:(function(n){if(A[n])return A[n];var t=l().compile(n);return C<1e4&&(A[n]=t,C++),t})(n)(t,{pretty:!0})}function E(n){var t=n.computedMatch,e=n.to,o=n.push,i=void 0!==o&&o;return r.createElement(w.Consumer,null,function(n){n||(0,u.A)(!1);var o=n.history,a=n.staticContext,f=i?o.push:o.replace,l=(0,c.yJ)(t?"string"==typeof e?P(e,t.params):(0,s.default)({},e,{pathname:P(e.pathname,t.params)}):e);return a?(f(l),null):r.createElement(b,{onMount:function(){f(l)},onUpdate:function(n,t){var e=(0,c.yJ)(t.to);(0,c.Fu)(e,(0,s.default)({},l,{key:e.key}))||f(l)},to:e})})}var k={},O=0;function _(n,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var e=t,o=e.path,r=e.exact,i=void 0!==r&&r,a=e.strict,c=void 0!==a&&a,u=e.sensitive,s=void 0!==u&&u;return[].concat(o).reduce(function(t,e){if(!e&&""!==e)return null;if(t)return t;var o=function(n,t){var e=""+t.end+t.strict+t.sensitive,o=k[e]||(k[e]={});if(o[n])return o[n];var r=[],i={regexp:l()(n,r,t),keys:r};return O<1e4&&(o[n]=i,O++),i}(e,{end:i,strict:c,sensitive:s}),r=o.regexp,a=o.keys,u=r.exec(n);if(!u)return null;var f=u[0],h=u.slice(1),p=n===f;return i&&!p?null:{path:e,url:"/"===e&&""===f?"/":f,isExact:p,params:a.reduce(function(n,t,e){return n[t.name]=h[e],n},{})}},null)}var R=function(n){function t(){return n.apply(this,arguments)||this}return(0,o.A)(t,n),t.prototype.render=function(){var n=this;return r.createElement(w.Consumer,null,function(t){t||(0,u.A)(!1);var e,o=n.props.location||t.location,i=n.props.computedMatch?n.props.computedMatch:n.props.path?_(o.pathname,n.props):t.match,a=(0,s.default)({},t,{location:o,match:i}),c=n.props,f=c.children,l=c.component,h=c.render;return Array.isArray(f)&&(e=f,0===r.Children.count(e))&&(f=null),r.createElement(w.Provider,{value:a},a.match?f?"function"==typeof f?f(a):f:l?r.createElement(l,a):h?h(a):null:"function"==typeof f?f(a):null)})},t}(r.Component);r.Component;var T=function(n){function t(){return n.apply(this,arguments)||this}return(0,o.A)(t,n),t.prototype.render=function(){var n=this;return r.createElement(w.Consumer,null,function(t){t||(0,u.A)(!1);var e,o,i=n.props.location||t.location;return r.Children.forEach(n.props.children,function(n){if(null==o&&r.isValidElement(n)){e=n;var a=n.props.path||n.props.from;o=a?_(i.pathname,(0,s.default)({},n.props,{path:a})):t.match}}),o?r.cloneElement(e,{location:i,computedMatch:o}):null})},t}(r.Component);function L(n){var t="withRouter("+(n.displayName||n.name)+")",e=function(t){var e=t.wrappedComponentRef,o=(0,h.default)(t,["wrappedComponentRef"]);return r.createElement(w.Consumer,null,function(t){return t||(0,u.A)(!1),r.createElement(n,(0,s.default)({},o,t,{ref:e}))})};return e.displayName=t,e.WrappedComponent=n,d()(e,n)}var M=r.useContext;function U(){return M(g)}function S(){return M(w).location}function I(){var n=M(w).match;return n?n.params:{}}function B(n){var t=S(),e=M(w).match;return n?_(t.pathname,n):e}}}]);
2//# sourceMappingURL=lib-router.c939b010.js.map

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.