diff --git a/src/lib/UI/NativeDOM.js b/src/lib/UI/NativeDOM.js index 5284bac..5055fc4 100644 --- a/src/lib/UI/NativeDOM.js +++ b/src/lib/UI/NativeDOM.js @@ -35,7 +35,20 @@ export default class NativeDOM extends UI { } window.addEventListener('popstate', () => { - this.trigger('go'); + const url = location.pathname; + + if (url.endsWith('/')) { + return this.trigger('go'); + } + + const parts = url.split(/\//), + // file = parts.pop(), + path = parts.join('/') + ; + + this.trigger('go', path); + + // trigger opening file }); if (supportsDragDrop) { @@ -196,5 +209,8 @@ export default class NativeDOM extends UI { document.title = `${decodeURIComponent(path)} | WebDAV`; }); + + this.on('preview:opened', (entry) => history.pushState(history.state, entry.fullPath, entry.fullPath)); + this.on('preview:closed', (entry) => history.pushState(history.state, entry.path, entry.path)); } } diff --git a/src/lib/UI/NativeDOM/List/Item.js b/src/lib/UI/NativeDOM/List/Item.js index 8182fab..620493c 100644 --- a/src/lib/UI/NativeDOM/List/Item.js +++ b/src/lib/UI/NativeDOM/List/Item.js @@ -194,11 +194,16 @@ export default class Item extends Element { onShow(lightbox); } }, - onClose: () => document.removeEventListener('keydown', escapeListener) + onClose: () => { + document.removeEventListener('keydown', escapeListener); + this.trigger('preview:closed', this.#entry); + } }) ; lightbox.show(); + + this.trigger('preview:opened', this.#entry); }; if (['video', 'audio', 'image', 'font', 'pdf'].includes(entry.type)) { diff --git a/src/webdav-min.js b/src/webdav-min.js index 67f3a2f..fbb5015 100644 --- a/src/webdav-min.js +++ b/src/webdav-min.js @@ -1 +1 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=273)}([function(t,e){t.exports=function(t,e){var n=e.get(t);if(!n)throw new TypeError("attempted to get private field on non-instance");return n.get?n.get.call(t):n.value}},function(t,e,n){var r=n(7),o=n(41),i=n(30),a=n(31),u=n(42),c=function(t,e,n){var s,f,l,h,p=t&c.F,v=t&c.G,d=t&c.S,y=t&c.P,g=t&c.B,m=v?r:d?r[e]||(r[e]={}):(r[e]||{}).prototype,b=v?o:o[e]||(o[e]={}),w=b.prototype||(b.prototype={});for(s in v&&(n=e),n)l=((f=!p&&m&&void 0!==m[s])?m:n)[s],h=g&&f?u(l,r):y&&"function"==typeof l?u(Function.call,l):l,m&&a(m,s,l,t&c.U),b[s]!=l&&i(b,s,h),y&&w[s]!=l&&(w[s]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){t.exports=function(t,e,n){var r=e.get(t);if(!r)throw new TypeError("attempted to set private field on non-instance");if(r.set)r.set.call(t,n);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=n}return n}},function(t,e,n){t.exports=n(490)},function(t,e,n){var r=n(9);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var r=n(93)("wks"),o=n(68),i=n(7).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(44),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){function n(t,e){for(var n=0;n"+o+""};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){var r=n(180),o=n(54),i=n(485);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){var r=n(487),o=n(488),i=n(259),a=n(489);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(94),o=n(50);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(95),o=n(67),i=n(36),a=n(49),u=n(35),c=n(195),s=Object.getOwnPropertyDescriptor;e.f=n(17)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(35),o=n(24),i=n(144)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(19),o=n(79),i=n(80),a=n(25),u=n(23),c=n(101),s=n(486),f=n(13),l=o("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!h)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var o=n.prototype,f=c(u(o)?o:Object.prototype),v=Function.apply.call(t,f,e);return u(v)?v:f}})},function(t,e,n){"use strict";var r=n(54),o=n(25),i=n(13),a=n(184),u=RegExp.prototype,c=u.toString,s=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f="toString"!=c.name;(s||f)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in u)?a.call(t):n)}),{unsafe:!0})},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(26);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(125),o=n(78);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(46),o=n(252),i=n(106),a=n(61),u=n(182),c=a.set,s=a.getterFor("Array Iterator");t.exports=u(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(1),o=n(41),i=n(8);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(t,e,n){var r=n(42),o=n(94),i=n(24),a=n(12),u=n(160);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l,p=e||u;return function(e,u,v){for(var d,y,g=i(e),m=o(g),b=r(u,v,3),w=a(m.length),x=0,S=n?p(e,w):c?p(e,0):void 0;w>x;x++)if((h||x in m)&&(y=b(d=m[x],x,g),t))if(n)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return x;case 2:S.push(d)}else if(f)return!1;return l?-1:s||f?f:S}}},function(t,e,n){var r=n(27),o=n(29),i=n(98);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(18),o=n(53),i=n(28),a=n(171),u=n(172),c=n(61),s=c.get,f=c.enforce,l=String(String).split("String");(t.exports=function(t,e,n,u){var c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,h=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(c?!h&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},function(t,e,n){var r=n(89),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(257).charAt,o=n(61),i=n(182),a=o.set,u=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(18),o=n(258),i=n(47),a=n(53),u=n(20),c=u("iterator"),s=u("toStringTag"),f=i.values;for(var l in o){var h=r[l],p=h&&h.prototype;if(p){if(p[c]!==f)try{a(p,c,f)}catch(t){p[c]=f}if(p[s]||a(p,s,l),o[l])for(var v in i)if(p[v]!==i[v])try{a(p,v,i[v])}catch(t){p[v]=i[v]}}}},function(t,e,n){"use strict";if(n(17)){var r=n(62),o=n(7),i=n(8),a=n(1),u=n(120),c=n(168),s=n(42),f=n(74),l=n(67),h=n(30),p=n(76),v=n(44),d=n(12),y=n(223),g=n(70),m=n(49),b=n(35),w=n(84),x=n(9),S=n(24),E=n(157),O=n(71),k=n(38),_=n(72).f,P=n(159),j=n(68),A=n(11),F=n(52),M=n(110),T=n(97),L=n(162),R=n(86),I=n(115),D=n(73),C=n(161),N=n(212),W=n(22),U=n(37),B=W.f,z=U.f,$=o.RangeError,G=o.TypeError,q=o.Uint8Array,V=Array.prototype,H=c.ArrayBuffer,Y=c.DataView,K=F(0),X=F(2),J=F(3),Z=F(4),Q=F(5),tt=F(6),et=M(!0),nt=M(!1),rt=L.values,ot=L.keys,it=L.entries,at=V.lastIndexOf,ut=V.reduce,ct=V.reduceRight,st=V.join,ft=V.sort,lt=V.slice,ht=V.toString,pt=V.toLocaleString,vt=A("iterator"),dt=A("toStringTag"),yt=j("typed_constructor"),gt=j("def_constructor"),mt=u.CONSTR,bt=u.TYPED,wt=u.VIEW,xt=F(1,(function(t,e){return _t(T(t,t[gt]),e)})),St=i((function(){return 1===new q(new Uint16Array([1]).buffer)[0]})),Et=!!q&&!!q.prototype.set&&i((function(){new q(1).set({})})),Ot=function(t,e){var n=v(t);if(n<0||n%e)throw $("Wrong offset!");return n},kt=function(t){if(x(t)&&bt in t)return t;throw G(t+" is not a typed array!")},_t=function(t,e){if(!x(t)||!(yt in t))throw G("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return jt(T(t,t[gt]),e)},jt=function(t,e){for(var n=0,r=e.length,o=_t(t,r);r>n;)o[n]=e[n++];return o},At=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Ft=function(t){var e,n,r,o,i,a,u=S(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=P(u);if(null!=h&&!E(h)){for(a=h.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(l&&c>2&&(f=s(f,arguments[2],2)),e=0,n=d(u.length),o=_t(this,n);n>e;e++)o[e]=l?f(u[e],e):u[e];return o},Mt=function(){for(var t=0,e=arguments.length,n=_t(this,e);e>t;)n[t]=arguments[t++];return n},Tt=!!q&&i((function(){pt.call(new q(1))})),Lt=function(){return pt.apply(Tt?lt.call(kt(this)):kt(this),arguments)},Rt={copyWithin:function(t,e){return N.call(kt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(kt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(kt(this),arguments)},filter:function(t){return Pt(this,X(kt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(kt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(kt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(kt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(kt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(kt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return st.apply(kt(this),arguments)},lastIndexOf:function(t){return at.apply(kt(this),arguments)},map:function(t){return xt(kt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(kt(this),arguments)},reduceRight:function(t){return ct.apply(kt(this),arguments)},reverse:function(){for(var t,e=kt(this).length,n=Math.floor(e/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return ft.call(kt(this),t)},subarray:function(t,e){var n=kt(this),r=n.length,o=g(t,r);return new(T(n,n[gt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,d((void 0===e?r:g(e,r))-o))}},It=function(t,e){return Pt(this,lt.call(kt(this),t,e))},Dt=function(t){kt(this);var e=Ot(arguments[1],1),n=this.length,r=S(t),o=d(r.length),i=0;if(o+e>n)throw $("Wrong length!");for(;i255?255:255&r),o.v[p](n*e+o.o,r,St)}(this,n,t)},enumerable:!0})};b?(v=n((function(t,n,r,o){f(t,v,s,"_d");var i,a,u,c,l=0,p=0;if(x(n)){if(!(n instanceof H||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return bt in n?jt(v,n):Ft.call(v,n);i=n,p=Ot(r,e);var g=n.byteLength;if(void 0===o){if(g%e)throw $("Wrong length!");if((a=g-p)<0)throw $("Wrong length!")}else if((a=d(o)*e)+p>g)throw $("Wrong length!");u=a/e}else u=y(n),i=new H(a=u*e);for(h(t,"_d",{b:i,o:p,l:a,e:u,v:new Y(i)});ldocument.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(197),o=n(145).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(7),o=n(22),i=n(17),a=n(11)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(42),o=n(210),i=n(157),a=n(5),u=n(12),c=n(159),s={},f={};(e=t.exports=function(t,e,n,l,h){var p,v,d,y,g=h?function(){return t}:c(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=u(t.length);p>b;b++)if((y=e?m(a(v=t[b])[0],v[1]):m(t[b]))===s||y===f)return y}else for(d=g.call(t);!(v=d.next()).done;)if((y=o(d,m,v.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e,n){var r=n(31);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(236),o=n(18),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){"use strict";var r=n(19),o=n(247);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(27),o=n(29).f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(t){return""}}})},function(t,e,n){var r=n(22).f,o=n(35),i=n(11)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(43),o=n(11)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(1),o=n(50),i=n(8),a=n(148),u="["+a+"]",c=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),f=function(t,e,n){var o={},u=i((function(){return!!a[t]()||"​…"!="​…"[t]()})),c=o[t]=u?e(l):a[t];n&&(o[n]=c),r(r.P+r.F*u,"String",o)},l=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(s,"")),t};t.exports=f},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(19),o=n(18),i=n(79),a=n(99),u=n(27),c=n(175),s=n(241),f=n(13),l=n(28),h=n(131),p=n(23),v=n(25),d=n(65),y=n(46),g=n(126),m=n(98),b=n(101),w=n(132),x=n(129),S=n(480),E=n(240),O=n(88),k=n(29),_=n(169),P=n(53),j=n(54),A=n(173),F=n(127),M=n(100),T=n(128),L=n(20),R=n(243),I=n(244),D=n(102),C=n(61),N=n(103).forEach,W=F("hidden"),U=L("toPrimitive"),B=C.set,z=C.getterFor("Symbol"),$=Object.prototype,G=o.Symbol,q=i("JSON","stringify"),V=O.f,H=k.f,Y=S.f,K=_.f,X=A("symbols"),J=A("op-symbols"),Z=A("string-to-symbol-registry"),Q=A("symbol-to-string-registry"),tt=A("wks"),et=o.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=u&&f((function(){return 7!=b(H({},"a",{get:function(){return H(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=V($,e);r&&delete $[e],H(t,e,n),r&&t!==$&&H($,e,r)}:H,ot=function(t,e){var n=X[t]=b(G.prototype);return B(n,{type:"Symbol",tag:t,description:e}),u||(n.description=e),n},it=s?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof G},at=function(t,e,n){t===$&&at(J,e,n),v(t);var r=g(e,!0);return v(n),l(X,r)?(n.enumerable?(l(t,W)&&t[W][r]&&(t[W][r]=!1),n=b(n,{enumerable:m(0,!1)})):(l(t,W)||H(t,W,m(1,{})),t[W][r]=!0),rt(t,r,n)):H(t,r,n)},ut=function(t,e){v(t);var n=y(e),r=w(n).concat(lt(n));return N(r,(function(e){u&&!ct.call(n,e)||at(t,e,n[e])})),t},ct=function(t){var e=g(t,!0),n=K.call(this,e);return!(this===$&&l(X,e)&&!l(J,e))&&(!(n||!l(this,e)||!l(X,e)||l(this,W)&&this[W][e])||n)},st=function(t,e){var n=y(t),r=g(e,!0);if(n!==$||!l(X,r)||l(J,r)){var o=V(n,r);return!o||!l(X,r)||l(n,W)&&n[W][r]||(o.enumerable=!0),o}},ft=function(t){var e=Y(y(t)),n=[];return N(e,(function(t){l(X,t)||l(M,t)||n.push(t)})),n},lt=function(t){var e=t===$,n=Y(e?J:y(t)),r=[];return N(n,(function(t){!l(X,t)||e&&!l($,t)||r.push(X[t])})),r};(c||(j((G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=T(t),n=function(t){this===$&&n.call(J,t),l(this,W)&&l(this[W],e)&&(this[W][e]=!1),rt(this,e,m(1,t))};return u&&nt&&rt($,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return z(this).tag})),j(G,"withoutSetter",(function(t){return ot(T(t),t)})),_.f=ct,k.f=at,O.f=st,x.f=S.f=ft,E.f=lt,R.f=function(t){return ot(L(t),t)},u&&(H(G.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||j($,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),N(w(tt),(function(t){I(t)})),r({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=String(t);if(l(Z,e))return Z[e];var n=G(e);return Z[e]=n,Q[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(Q,t))return Q[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?b(t):ut(b(t),e)},defineProperty:at,defineProperties:ut,getOwnPropertyDescriptor:st}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:f((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(d(t))}}),q)&&r({target:"JSON",stat:!0,forced:!c||f((function(){var t=G();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(p(e)||void 0!==t)&&!it(t))return h(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!it(e))return e}),o[1]=e,q.apply(null,o)}});G.prototype[U]||P(G.prototype,U,G.prototype.valueOf),D(G,"Symbol"),M[W]=!0},function(t,e,n){var r=n(27),o=n(169),i=n(98),a=n(46),u=n(126),c=n(28),s=n(231),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=u(e,!0),s)try{return f(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(27),o=n(13),i=n(28),a=Object.defineProperty,u={},c=function(t){throw t};t.exports=function(t,e){if(i(u,t))return u[t];e||(e={});var n=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,f=i(e,0)?e[0]:c,l=i(e,1)?e[1]:void 0;return u[t]=!!n&&!o((function(){if(s&&!r)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:c}):t[1]=1,n.call(t,f,l)}))}},function(t,e,n){"use strict";var r=n(19),o=n(137);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){var r=n(493),o=n(494),i=n(259),a=n(495);t.exports=function(t){return r(t)||o(t)||i(t)||a()}},function(t,e,n){var r=n(41),o=n(7),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(62)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(43);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var r=n(5);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(5),o=n(26),i=n(11)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!1},function(t,e){t.exports={}},function(t,e,n){var r,o=n(25),i=n(479),a=n(174),u=n(100),c=n(242),s=n(170),f=n(127),l=f("IE_PROTO"),h=function(){},p=function(t){return"