"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[18646],{231683:(n,t,e)=>{e.d(t,{createBrowserHistory:()=>k,createHashHistory:()=>S,createLocation:()=>w,createMemoryHistory:()=>U,createPath:()=>p,locationsAreEqual:()=>g,parsePath:()=>v});var o=e(925773);function r(n){return"/"===n.charAt(0)}function i(n,t){for(var e=t,o=e+1,r=n.length;o<r;e+=1,o+=1)n[e]=n[o];n.pop()}const a=function(n,t){void 0===t&&(t="");var e,o=n&&n.split("/")||[],a=t&&t.split("/")||[],c=n&&r(n),u=t&&r(t),f=c||u;if(n&&r(n)?a=o:o.length&&(a.pop(),a=a.concat(o)),!a.length)return"/";if(a.length){var s=a[a.length-1];e="."===s||".."===s||""===s}else e=!1;for(var h=0,l=a.length;l>=0;l--){var d=a[l];"."===d?i(a,l):".."===d?(i(a,l),h++):h&&(i(a,l),h--)}if(!f)for(;h--;h)a.unshift("..");!f||""===a[0]||a[0]&&r(a[0])||a.unshift("");var v=a.join("/");return e&&"/"!==v.substr(-1)&&(v+="/"),v};function c(n){return n.valueOf?n.valueOf():Object.prototype.valueOf.call(n)}const u=function n(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every((function(t,o){return n(t,e[o])}));if("object"===typeof t||"object"===typeof e){var o=c(t),r=c(e);return o!==t||r!==e?n(o,r):Object.keys(Object.assign({},t,e)).every((function(o){return n(t[o],e[o])}))}return!1};var f=e(401115);function s(n){return"/"===n.charAt(0)?n:"/"+n}function h(n){return"/"===n.charAt(0)?n.substr(1):n}function l(n,t){return function(n,t){return 0===n.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(n.charAt(t.length))}(n,t)?n.substr(t.length):n}function d(n){return"/"===n.charAt(n.length-1)?n.slice(0,-1):n}function v(n){var t=n||"/",e="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(e=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===e?"":e,hash:"#"===o?"":o}}function p(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 w(n,t,e,r){var i;"string"===typeof n?(i=v(n)).state=t:(void 0===(i=(0,o.default)({},n)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(n){throw n instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):n}return e&&(i.key=e),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function g(n,t){return n.pathname===t.pathname&&n.search===t.search&&n.hash===t.hash&&n.key===t.key&&u(n.state,t.state)}function m(){var n=null;var 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=new Array(n),o=0;o<n;o++)e[o]=arguments[o];t.forEach((function(n){return n.apply(void 0,e)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function P(n,t){t(window.confirm(n))}var O="popstate",x="hashchange";function b(){try{return window.history.state||{}}catch(n){return{}}}function k(n){void 0===n&&(n={}),y||(0,f.default)(!1);var t=window.history,e=function(){var n=window.navigator.userAgent;return(-1===n.indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=n,a=i.forceRefresh,c=void 0!==a&&a,u=i.getUserConfirmation,h=void 0===u?P:u,v=i.keyLength,g=void 0===v?6:v,k=n.basename?d(s(n.basename)):"";function A(n){var t=n||{},e=t.key,o=t.state,r=window.location,i=r.pathname+r.search+r.hash;return k&&(i=l(i,k)),w(i,o,e)}function T(){return Math.random().toString(36).substr(2,g)}var L=m();function E(n){(0,o.default)(G,n),G.length=t.length,L.notifyListeners(G.location,G.action)}function C(n){(function(n){return void 0===n.state&&-1===navigator.userAgent.indexOf("CriOS")})(n)||U(A(n.state))}function S(){U(A(b()))}var H=!1;function U(n){if(H)H=!1,E();else{L.confirmTransitionTo(n,"POP",h,(function(t){t?E({action:"POP",location:n}):function(n){var t=G.location,e=R.indexOf(t.key);-1===e&&(e=0);var o=R.indexOf(n.key);-1===o&&(o=0);var r=e-o;r&&(H=!0,M(r))}(n)}))}}var I=A(b()),R=[I.key];function j(n){return k+p(n)}function M(n){t.go(n)}var B=0;function F(n){1===(B+=n)&&1===n?(window.addEventListener(O,C),r&&window.addEventListener(x,S)):0===B&&(window.removeEventListener(O,C),r&&window.removeEventListener(x,S))}var q=!1;var G={length:t.length,action:"POP",location:I,createHref:j,push:function(n,o){var r="PUSH",i=w(n,o,T(),G.location);L.confirmTransitionTo(i,r,h,(function(n){if(n){var o=j(i),a=i.key,u=i.state;if(e)if(t.pushState({key:a,state:u},null,o),c)window.location.href=o;else{var f=R.indexOf(G.location.key),s=R.slice(0,f+1);s.push(i.key),R=s,E({action:r,location:i})}else window.location.href=o}}))},replace:function(n,o){var r="REPLACE",i=w(n,o,T(),G.location);L.confirmTransitionTo(i,r,h,(function(n){if(n){var o=j(i),a=i.key,u=i.state;if(e)if(t.replaceState({key:a,state:u},null,o),c)window.location.replace(o);else{var f=R.indexOf(G.location.key);-1!==f&&(R[f]=i.key),E({action:r,location:i})}else window.location.replace(o)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(n){void 0===n&&(n=!1);var t=L.setPrompt(n);return q||(F(1),q=!0),function(){return q&&(q=!1,F(-1)),t()}},listen:function(n){var t=L.appendListener(n);return F(1),function(){F(-1),t()}}};return G}var A="hashchange",T={hashbang:{encodePath:function(n){return"!"===n.charAt(0)?n:"!/"+h(n)},decodePath:function(n){return"!"===n.charAt(0)?n.substr(1):n}},noslash:{encodePath:h,decodePath:s},slash:{encodePath:s,decodePath:s}};function L(n){var t=n.indexOf("#");return-1===t?n:n.slice(0,t)}function E(){var n=window.location.href,t=n.indexOf("#");return-1===t?"":n.substring(t+1)}function C(n){window.location.replace(L(window.location.href)+"#"+n)}function S(n){void 0===n&&(n={}),y||(0,f.default)(!1);var t=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),n),r=e.getUserConfirmation,i=void 0===r?P:r,a=e.hashType,c=void 0===a?"slash":a,u=n.basename?d(s(n.basename)):"",h=T[c],v=h.encodePath,g=h.decodePath;function O(){var n=g(E());return u&&(n=l(n,u)),w(n)}var x=m();function b(n){(0,o.default)(G,n),G.length=t.length,x.notifyListeners(G.location,G.action)}var k=!1,S=null;function H(){var n,t,e=E(),o=v(e);if(e!==o)C(o);else{var r=O(),a=G.location;if(!k&&(t=r,(n=a).pathname===t.pathname&&n.search===t.search&&n.hash===t.hash))return;if(S===p(r))return;S=null,function(n){if(k)k=!1,b();else{var t="POP";x.confirmTransitionTo(n,t,i,(function(e){e?b({action:t,location:n}):function(n){var t=G.location,e=j.lastIndexOf(p(t));-1===e&&(e=0);var o=j.lastIndexOf(p(n));-1===o&&(o=0);var r=e-o;r&&(k=!0,M(r))}(n)}))}}(r)}}var U=E(),I=v(U);U!==I&&C(I);var R=O(),j=[p(R)];function M(n){t.go(n)}var B=0;function F(n){1===(B+=n)&&1===n?window.addEventListener(A,H):0===B&&window.removeEventListener(A,H)}var q=!1;var G={length:t.length,action:"POP",location:R,createHref:function(n){var t=document.querySelector("base"),e="";return t&&t.getAttribute("href")&&(e=L(window.location.href)),e+"#"+v(u+p(n))},push:function(n,t){var e="PUSH",o=w(n,void 0,void 0,G.location);x.confirmTransitionTo(o,e,i,(function(n){if(n){var t=p(o),r=v(u+t);if(E()!==r){S=t,function(n){window.location.hash=n}(r);var i=j.lastIndexOf(p(G.location)),a=j.slice(0,i+1);a.push(t),j=a,b({action:e,location:o})}else b()}}))},replace:function(n,t){var e="REPLACE",o=w(n,void 0,void 0,G.location);x.confirmTransitionTo(o,e,i,(function(n){if(n){var t=p(o),r=v(u+t);E()!==r&&(S=t,C(r));var i=j.indexOf(p(G.location));-1!==i&&(j[i]=t),b({action:e,location:o})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(n){void 0===n&&(n=!1);var t=x.setPrompt(n);return q||(F(1),q=!0),function(){return q&&(q=!1,F(-1)),t()}},listen:function(n){var t=x.appendListener(n);return F(1),function(){F(-1),t()}}};return G}function H(n,t,e){return Math.min(Math.max(n,t),e)}function U(n){void 0===n&&(n={});var t=n,e=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,a=t.initialIndex,c=void 0===a?0:a,u=t.keyLength,f=void 0===u?6:u,s=m();function h(n){(0,o.default)(P,n),P.length=P.entries.length,s.notifyListeners(P.location,P.action)}function l(){return Math.random().toString(36).substr(2,f)}var d=H(c,0,i.length-1),v=i.map((function(n){return w(n,void 0,"string"===typeof n?l():n.key||l())})),g=p;function y(n){var t=H(P.index+n,0,P.entries.length-1),o=P.entries[t];s.confirmTransitionTo(o,"POP",e,(function(n){n?h({action:"POP",location:o,index:t}):h()}))}var P={length:v.length,action:"POP",location:v[d],index:d,entries:v,createHref:g,push:function(n,t){var o="PUSH",r=w(n,t,l(),P.location);s.confirmTransitionTo(r,o,e,(function(n){if(n){var t=P.index+1,e=P.entries.slice(0);e.length>t?e.splice(t,e.length-t,r):e.push(r),h({action:o,location:r,index:t,entries:e})}}))},replace:function(n,t){var o="REPLACE",r=w(n,t,l(),P.location);s.confirmTransitionTo(r,o,e,(function(n){n&&(P.entries[P.index]=r,h({action:o,location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(n){var t=P.index+n;return t>=0&&t<P.entries.length},block:function(n){return void 0===n&&(n=!1),s.setPrompt(n)},listen:function(n){return s.appendListener(n)}};return P}},401115:(n,t,e)=>{e.d(t,{default:()=>r});var o="Invariant failed";function r(n,t){if(!n)throw new Error(o)}}}]); //# sourceMappingURL=https://miro.com/app/static/vendor~LearninCenter~auth~root.store.8f04d2fbe61a2f1d.js.map