umi-history
Version:
Manage session history with JavaScript
6 lines • 19.2 kB
JavaScript
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.History=n():t.History=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0,n.createPath=n.parsePath=n.locationsAreEqual=n.createLocation=n.createMemoryHistory=n.createHashHistory=n.createBrowserHistory=void 0;var o=e(2);Object.defineProperty(n,"createLocation",{enumerable:!0,get:function(){return o.createLocation}}),Object.defineProperty(n,"locationsAreEqual",{enumerable:!0,get:function(){return o.locationsAreEqual}});var i=e(1);Object.defineProperty(n,"parsePath",{enumerable:!0,get:function(){return i.parsePath}}),Object.defineProperty(n,"createPath",{enumerable:!0,get:function(){return i.createPath}});var a=e(7),c=r(a),u=e(8),s=r(u),f=e(9),l=r(f);n.createBrowserHistory=c.default,n.createHashHistory=s.default,n.createMemoryHistory=l.default},function(t,n){"use strict";n.__esModule=!0;var e=(n.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},n.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},n.hasBasename=function(t,n){return new RegExp("^"+n+"(\\/|\\?|#|$)","i").test(t)});n.stripBasename=function(t,n){return e(t,n)?t.substr(n.length):t},n.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},n.parsePath=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");o!==-1&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return i!==-1&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}},n.createPath=function(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0,n.locationsAreEqual=n.createLocation=void 0;var o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},i=e(13),a=r(i),c=e(15),u=r(c),s=e(1),f=e(12),l=r(f);n.createLocation=function(t,n,e,r){var i=void 0;"string"==typeof t?(i=(0,s.parsePath)(t),i.query=i.search?l.default.parse(i.search):{},i.state=n):(i=o({},t),void 0===i.pathname&&(i.pathname=""),i.search?("?"!==i.search.charAt(0)&&(i.search="?"+i.search),i.query=l.default.parse(i.search)):(i.search=i.query?l.default.stringify(i.query):"",i.query=i.query||{}),i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==n&&void 0===i.state&&(i.state=n));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return e&&(i.key=e),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},n.locationsAreEqual=function(t,n){return t.pathname===n.pathname&&t.search===n.search&&t.hash===n.hash&&t.key===n.key&&(0,u.default)(t.state,n.state)}},function(t,n,e){"use strict";var r=function(){};t.exports=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(3),i=(r(o),function(){var t=null,n=function(n){return t=n,function(){t===n&&(t=null)}},e=function(n,e,r,o){if(null!=t){var i="function"==typeof t?t(n,e):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(i!==!1)}else o(!0)},r=[],o=function(t){var n=!0,e=function(){n&&t.apply(void 0,arguments)};return r.push(e),function(){n=!1,r=r.filter(function(t){return t!==e})}},i=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];r.forEach(function(t){return t.apply(void 0,n)})};return{setPrompt:n,confirmTransitionTo:e,appendListener:o,notifyListeners:i}});n.default=i},function(t,n){"use strict";n.__esModule=!0;n.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),n.getConfirmation=function(t,n){return n(window.confirm(t))},n.supportsHistory=function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},n.supportsPopStateOnHashChange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},n.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},n.isExtraneousPopstateEvent=function(t){return void 0===t.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(t,n,e){"use strict";var r=function(t,n,e,r,o,i,a,c){if(!t){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[e,r,o,i,a,c],f=0;u=new Error(n.replace(/%s/g,function(){return s[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}),i=e(3),a=(r(i),e(6)),c=r(a),u=e(2),s=e(1),f=e(4),l=r(f),d=e(5),h="popstate",p="hashchange",v=function(){try{return window.history.state||{}}catch(t){return{}}},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.canUseDOM?void 0:(0,c.default)(!1);var n=window.history,e=(0,d.supportsHistory)(),r=!(0,d.supportsPopStateOnHashChange)(),i=t.forceRefresh,a=void 0!==i&&i,f=t.getUserConfirmation,y=void 0===f?d.getConfirmation:f,g=t.keyLength,m=void 0===g?6:g,b=t.basename?(0,s.stripTrailingSlash)((0,s.addLeadingSlash)(t.basename)):"",w=function(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname,a=o.search,c=o.hash,f=i+a+c;return b&&(f=(0,s.stripBasename)(f,b)),(0,u.createLocation)(f,r,e)},O=function(){return Math.random().toString(36).substr(2,m)},P=(0,l.default)(),x=function(t){o(N,t),N.length=n.length,P.notifyListeners(N.location,N.action)},j=function(t){(0,d.isExtraneousPopstateEvent)(t)||E(w(t.state))},L=function(){E(w(v()))},S=!1,E=function(t){if(S)S=!1,x();else{var n="POP";P.confirmTransitionTo(t,n,y,function(e){e?x({action:n,location:t}):A(t)})}},A=function(t){var n=N.location,e=_.indexOf(n.key);e===-1&&(e=0);var r=_.indexOf(t.key);r===-1&&(r=0);var o=e-r;o&&(S=!0,H(o))},k=w(v()),_=[k.key],T=function(t){return b+(0,s.createPath)(t)},M=function(t,r){var o="PUSH",i=(0,u.createLocation)(t,r,O(),N.location);P.confirmTransitionTo(i,o,y,function(t){if(t){var r=T(i),c=i.key,u=i.state;if(e)if(n.pushState({key:c,state:u},null,r),a)window.location.href=r;else{var s=_.indexOf(N.location.key),f=_.slice(0,s===-1?0:s+1);f.push(i.key),_=f,x({action:o,location:i})}else window.location.href=r}})},C=function(t,r){var o="REPLACE",i=(0,u.createLocation)(t,r,O(),N.location);P.confirmTransitionTo(i,o,y,function(t){if(t){var r=T(i),c=i.key,u=i.state;if(e)if(n.replaceState({key:c,state:u},null,r),a)window.location.replace(r);else{var s=_.indexOf(N.location.key);s!==-1&&(_[s]=i.key),x({action:o,location:i})}else window.location.replace(r)}})},H=function(t){n.go(t)},U=function(){return H(-1)},R=function(){return H(1)},I=0,q=function(t){I+=t,1===I?(window.addEventListener(h,j),r&&window.addEventListener(p,L)):0===I&&(window.removeEventListener(h,j),r&&window.removeEventListener(p,L))},F=!1,B=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=P.setPrompt(t);return F||(q(1),F=!0),function(){return F&&(F=!1,q(-1)),n()}},$=function(t){var n=P.appendListener(t);return q(1),function(){q(-1),n()}},N={length:n.length,action:"POP",location:k,createHref:T,push:M,replace:C,go:H,goBack:U,goForward:R,block:B,listen:$};return N};n.default=y},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},i=e(3),a=(r(i),e(6)),c=r(a),u=e(2),s=e(1),f=e(4),l=r(f),d=e(5),h="hashchange",p={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,s.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:s.stripLeadingSlash,decodePath:s.addLeadingSlash},slash:{encodePath:s.addLeadingSlash,decodePath:s.addLeadingSlash}},v=function(){var t=window.location.href,n=t.indexOf("#");return n===-1?"":t.substring(n+1)},y=function(t){return window.location.hash=t},g=function(t){var n=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,n>=0?n:0)+"#"+t)},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.canUseDOM?void 0:(0,c.default)(!1);var n=window.history,e=((0,d.supportsGoWithoutReloadUsingHash)(),t.getUserConfirmation),r=void 0===e?d.getConfirmation:e,i=t.hashType,a=void 0===i?"slash":i,f=t.basename?(0,s.stripTrailingSlash)((0,s.addLeadingSlash)(t.basename)):"",m=p[a],b=m.encodePath,w=m.decodePath,O=function(){var t=w(v());return f&&(t=(0,s.stripBasename)(t,f)),(0,u.createLocation)(t)},P=(0,l.default)(),x=function(t){o(G,t),G.length=n.length,P.notifyListeners(G.location,G.action)},j=!1,L=null,S=function(){var t=v(),n=b(t);if(t!==n)g(n);else{var e=O(),r=G.location;if(!j&&(0,u.locationsAreEqual)(r,e))return;if(L===(0,s.createPath)(e))return;L=null,E(e)}},E=function(t){if(j)j=!1,x();else{var n="POP";P.confirmTransitionTo(t,n,r,function(e){e?x({action:n,location:t}):A(t)})}},A=function(t){var n=G.location,e=M.lastIndexOf((0,s.createPath)(n));e===-1&&(e=0);var r=M.lastIndexOf((0,s.createPath)(t));r===-1&&(r=0);var o=e-r;o&&(j=!0,R(o))},k=v(),_=b(k);k!==_&&g(_);var T=O(),M=[(0,s.createPath)(T)],C=function(t){return"#"+b(f+(0,s.createPath)(t))},H=function(t,n){var e="PUSH",o=(0,u.createLocation)(t,void 0,void 0,G.location);P.confirmTransitionTo(o,e,r,function(t){if(t){var n=(0,s.createPath)(o),r=b(f+n),i=v()!==r;if(i){L=n,y(r);var a=M.lastIndexOf((0,s.createPath)(G.location)),c=M.slice(0,a===-1?0:a+1);c.push(n),M=c,x({action:e,location:o})}else x()}})},U=function(t,n){var e="REPLACE",o=(0,u.createLocation)(t,void 0,void 0,G.location);P.confirmTransitionTo(o,e,r,function(t){if(t){var n=(0,s.createPath)(o),r=b(f+n),i=v()!==r;i&&(L=n,g(r));var a=M.indexOf((0,s.createPath)(G.location));a!==-1&&(M[a]=n),x({action:e,location:o})}})},R=function(t){n.go(t)},I=function(){return R(-1)},q=function(){return R(1)},F=0,B=function(t){F+=t,1===F?window.addEventListener(h,S):0===F&&window.removeEventListener(h,S)},$=!1,N=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=P.setPrompt(t);return $||(B(1),$=!0),function(){return $&&($=!1,B(-1)),n()}},D=function(t){var n=P.appendListener(t);return B(1),function(){B(-1),n()}},G={length:n.length,action:"POP",location:T,createHref:C,push:H,replace:U,go:R,goBack:I,goForward:q,block:N,listen:D};return G};n.default=m},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}),i=e(3),a=(r(i),e(1)),c=e(2),u=e(4),s=r(u),f=function(t,n,e){return Math.min(Math.max(t,n),e)},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getUserConfirmation,e=t.initialEntries,r=void 0===e?["/"]:e,i=t.initialIndex,u=void 0===i?0:i,l=t.keyLength,d=void 0===l?6:l,h=(0,s.default)(),p=function(t){o(E,t),E.length=E.entries.length,h.notifyListeners(E.location,E.action)},v=function(){return Math.random().toString(36).substr(2,d)},y=f(u,0,r.length-1),g=r.map(function(t){return"string"==typeof t?(0,c.createLocation)(t,void 0,v()):(0,c.createLocation)(t,void 0,t.key||v())}),m=a.createPath,b=function(t,e){var r="PUSH",o=(0,c.createLocation)(t,e,v(),E.location);h.confirmTransitionTo(o,r,n,function(t){if(t){var n=E.index,e=n+1,i=E.entries.slice(0);i.length>e?i.splice(e,i.length-e,o):i.push(o),p({action:r,location:o,index:e,entries:i})}})},w=function(t,e){var r="REPLACE",o=(0,c.createLocation)(t,e,v(),E.location);h.confirmTransitionTo(o,r,n,function(t){t&&(E.entries[E.index]=o,p({action:r,location:o}))})},O=function(t){var e=f(E.index+t,0,E.entries.length-1),r="POP",o=E.entries[e];h.confirmTransitionTo(o,r,n,function(t){t?p({action:r,location:o,index:e}):p()})},P=function(){return O(-1)},x=function(){return O(1)},j=function(t){var n=E.index+t;return n>=0&&n<E.entries.length},L=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return h.setPrompt(t)},S=function(t){return h.appendListener(t)},E={length:g.length,action:"POP",location:g[y],index:y,entries:g,createHref:m,push:b,replace:w,go:O,goBack:P,goForward:x,canGo:j,block:L,listen:S};return E};n.default=l},function(t,n){"use strict";function e(t,n){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;n=n||1;var r=t.slice(0,n),o=t.slice(n);return Array.prototype.concat.call([],e(r),e(o))}function r(t){try{return decodeURIComponent(t)}catch(o){for(var n=t.match(a),r=1;r<n.length;r++)t=e(n,r).join(""),n=t.match(a);return t}}function o(t){for(var n={"%FE%FF":"��","%FF%FE":"��"},e=c.exec(t);e;){try{n[e[0]]=decodeURIComponent(e[0])}catch(t){var o=r(e[0]);o!==e[0]&&(n[e[0]]=o)}e=c.exec(t)}n["%C2"]="�";for(var i=Object.keys(n),a=0;a<i.length;a++){var u=i[a];t=t.replace(new RegExp(u,"g"),n[u])}return t}var i="%[a-f0-9]{2}",a=new RegExp(i,"gi"),c=new RegExp("("+i+")+","gi");t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(n){return o(t)}}},function(t,n){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
;function e(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;var r=Object.getOwnPropertyNames(n).map(function(t){return n[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,n){for(var r,c,u=e(t),s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var f in r)i.call(r,f)&&(u[f]=r[f]);if(o){c=o(r);for(var l=0;l<c.length;l++)a.call(r,c[l])&&(u[c[l]]=r[c[l]])}}return u}},function(t,n,e){"use strict";function r(t){switch(t.arrayFormat){case"index":return function(n,e,r){return null===e?[i(n,t),"[",r,"]"].join(""):[i(n,t),"[",i(r,t),"]=",i(e,t)].join("")};case"bracket":return function(n,e){return null===e?i(n,t):[i(n,t),"[]=",i(e,t)].join("")};default:return function(n,e){return null===e?i(n,t):[i(n,t),"=",i(e,t)].join("")}}}function o(t){var n;switch(t.arrayFormat){case"index":return function(t,e,r){return n=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),n?(void 0===r[t]&&(r[t]={}),void(r[t][n[1]]=e)):void(r[t]=e)};case"bracket":return function(t,e,r){return n=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),n?void 0===r[t]?void(r[t]=[e]):void(r[t]=[].concat(r[t],e)):void(r[t]=e)};default:return function(t,n,e){return void 0===e[t]?void(e[t]=n):void(e[t]=[].concat(e[t],n))}}}function i(t,n){return n.encode?n.strict?c(t):encodeURIComponent(t):t}function a(t){return Array.isArray(t)?t.sort():"object"==typeof t?a(Object.keys(t)).sort(function(t,n){return Number(t)-Number(n)}).map(function(n){return t[n]}):t}var c=e(14),u=e(11),s=e(10);n.extract=function(t){var n=t.indexOf("?");return n===-1?"":t.slice(n+1)},n.parse=function(t,n){n=u({arrayFormat:"none"},n);var e=o(n),r=Object.create(null);return"string"!=typeof t?r:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),o=n.shift(),i=n.length>0?n.join("="):void 0;i=void 0===i?null:s(i),e(s(o),i,r)}),Object.keys(r).sort().reduce(function(t,n){var e=r[n];return Boolean(e)&&"object"==typeof e&&!Array.isArray(e)?t[n]=a(e):t[n]=e,t},Object.create(null))):r},n.stringify=function(t,n){var e={encode:!0,strict:!0,arrayFormat:"none"};n=u(e,n);var o=r(n);return t?Object.keys(t).sort().map(function(e){var r=t[e];if(void 0===r)return"";if(null===r)return i(e,n);if(Array.isArray(r)){var a=[];return r.slice().forEach(function(t){void 0!==t&&a.push(o(e,t,a.length))}),a.join("&")}return i(e,n)+"="+i(r,n)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,n){"use strict";function e(t){return"/"===t.charAt(0)}function r(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}function o(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=t&&t.split("/")||[],i=n&&n.split("/")||[],a=t&&e(t),c=n&&e(n),u=a||c;if(t&&e(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var s=void 0;if(i.length){var f=i[i.length-1];s="."===f||".."===f||""===f}else s=!1;for(var l=0,d=i.length;d>=0;d--){var h=i[d];"."===h?r(i,d):".."===h?(r(i,d),l++):l&&(r(i,d),l--)}if(!u)for(;l--;l)i.unshift("..");!u||""===i[0]||i[0]&&e(i[0])||i.unshift("");var p=i.join("/");return s&&"/"!==p.substr(-1)&&(p+="/"),p}n.__esModule=!0,n.default=o,t.exports=n.default},function(t,n){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,n){"use strict";function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var o="undefined"==typeof t?"undefined":r(t),i="undefined"==typeof n?"undefined":r(n);if(o!==i)return!1;if("object"===o){var a=t.valueOf(),c=n.valueOf();if(a!==t||c!==n)return e(a,c);var u=Object.keys(t),s=Object.keys(n);return u.length===s.length&&u.every(function(r){return e(t[r],n[r])})}return!1}n.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n.default=e,t.exports=n.default}])});