-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
10 lines (10 loc) · 61 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e){return"string"==typeof e}function s(e){return Array.isArray(e)}var p=Object.prototype.toString;function d(e){return"[object Object]"===p.call(e)}function v(e){return e&&"function"==typeof e}function h(e){return null!=e}var y,b=Object.prototype.hasOwnProperty;function g(e,t){return b.call(e,t)}function m(e,t,n){Object.defineProperty(e,t,{configurable:!0,writable:!n})}function j(e,t){for(var n in e){if(g(e,n))if(Object.getOwnPropertyDescriptor(e,n).configurable){var r=e[n];m(e,n,t),d(r)&&j(r,t)}}}var w=new WeakMap,O=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t(this,e),o(this,"fn",void 0),o(this,"scheduler",void 0),o(this,"deps",[]),o(this,"parent",void 0),this.fn=n,this.scheduler=r}return r(e,[{key:"run",value:function(){for(var e=y,t=_;e;){if(e===this)return;e=e.parent}try{return this.parent=y,y=this,_=!0,this.fn()}finally{y=this.parent,this.parent=void 0,_=t}}}]),e}(),_=!0,k=[];function x(){k.push(_),_=!1}function P(){var e=k.pop();_=void 0===e||e}function A(e,t){if(_&&y){var n=w.get(e);n||w.set(e,n=new Map);var r=n.get(t);r||n.set(t,r=new Set),o=r,y&&!o.has(y)&&(o.add(y),y.deps.push(o))}var o}function S(e){var t,n=f(s(e)?e:a(e));try{for(n.s();!(t=n.n()).done;){var r=t.value;r!==y&&(r.scheduler?r.scheduler():r.run())}}catch(e){n.e(e)}finally{n.f()}}var E,D=new WeakMap,I=(E={},["push","pop","shift","unshift","splice"].forEach((function(e){E[e]=function(){x();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=this.__raw[e].apply(this,n);return P(),o}})),E);var C={get:function(t,n,r){if("_is_reactive"===n&&D.get(t))return!0;if("__raw"===n)return t;if(Array.isArray(t)&&g(I,n))return Reflect.get(I,n,r);var o=Reflect.get(t,n,r);return A(t,n),o&&"object"===e(o)?N(o):o},set:function(e,t,n,r){if(function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!!n&&!n.writable}(e,t))return!1;var o=Reflect.set(e,t,n,r);return function(e,t,n){var r=w.get(e);if(r){var o=[];if("length"===t&&s(e)?r.forEach((function(e,t){"length"===t&&o.push(e)})):o.push(r.get(t)),1===o.length)o[0]&&S(o[0]);else{var i,u=[],c=f(o);try{for(c.s();!(i=c.n()).done;){var l=i.value;l&&u.push.apply(u,a(l))}}catch(e){c.e(e)}finally{c.f()}S(new Set(u))}}}(e,t),o},has:function(e,t){return Reflect.has(e,t)},deleteProperty:function(e,t){return!0},ownKeys:function(e){return Reflect.ownKeys(e)},apply:function(e,t,n){return e.apply(t,n)}};function N(e,t){var n=D.get(e);if(n)return n;t&&j(e,t);var r=new Proxy(e,C);return D.set(e,r),r}var T=function(){function e(n){t(this,e),o(this,"_value",void 0),o(this,"_is_ref",void 0),this._value=N({value:n}),this._is_ref=!0}return r(e,[{key:"value",get:function(){return this._value.value},set:function(e){this._value.value=e}}]),e}();function M(e){return e&&e._is_dnode}var L=Symbol("Text"),R=Symbol("Element"),F=Symbol("Comment"),z=Symbol("Fragment");function U(e,t,n){return{type:R,_is_dnode:!0,tag:e,context:t,children:n}}function B(e,t,n){return{type:e,context:t,children:n,_is_dnode:!0}}function W(e){return M(e)?e:null==e||"boolean"==typeof e?B(F):Array.isArray(e)?B(z,null,e.slice()):B(L,null,String(e))}function $(e){for(var t=s(e.children)?e.children:[e.children],n=0;n<t.length;n++){var r=W(t[n]);r.parent=e,r._parent||!e._el&&!e._parent||(r._parent=e._el||e._parent),t[n]=r}return t}function K(){var e;(e=console).warn.apply(e,arguments)}function V(e,t,n,r){var o;try{o=r?e.apply(void 0,a(r)):e()}catch(e){!function(){var e;(e=console).error.apply(e,arguments)}(e,t,n)}return o}function q(t,n){var r,o=t.type;(function(t){return t&&"object"===e(t)})(o)&&o.render&&(r=o.render),v(o)&&(r=o),t.context&&(n.props=t.context.props),n.dnode=t,n.render=r}var X=0;function H(e){var t,n=e.render,r=e.setup;if(e.mounted?n=r||n:e.mounted=!0,v(n)){var o=function(e){var t,n=Object.assign({},(null===(t=e.props)||void 0===t?void 0:t.props)||{},e.props,{children:e.dnode.children});return delete n.props,delete n.on,n}(e),i=V(n,e,"render",[o,e.ctx]);v(i)&&(e.setup=i,i=V(i,e,"setup",[o,e.ctx]));var a=M(i)?i:W(i);a.parent=e.dnode,a._root=e.dnode._root,a.context=a.context||{},a.context.props=Object.assign(a.context.props||{},e.props),t=a}else t=e.dnode;return t}function G(e,t,n){n&&t.contains(n)?t.insertBefore(e,n):function(e,t){t.appendChild(e)}(e,t)}function J(e){return document.createTextNode(e)}var Q=[],Y=Promise.resolve();function Z(){try{Q.sort((function(e,t){return e.id-t.id}));for(var e=0;e<Q.length;e++){V(Q[e],null,"scheduler")}}finally{Q.length=0}}function ee(e,t,n){if(n)for(var r in n)if(t&&t[r]){if(t[r]===n[r])continue;e.removeEventListener(r,t[r]),e.addEventListener(r,n[r])}else e.addEventListener(r,n[r])}function te(e,t,n,r){if("style"===t)for(var o=0,a=Object.entries(r);o<a.length;o++){var u=i(a[o],2),c=u[0],f=u[1];e.style[c]=f}else if("class"===t)!function(e,t){null==t?e.removeAttribute("class"):e.className=t}(e,r);else try{e[t]=r}catch(e){K("patchProps key ".concat(t,", value ").concat(r))}}function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ye(null,e,t,n,r)}function re(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=r;o<e.length;o++){var i=W(e[o]);e[o]=i,ne(i,t,n)}}function oe(e){var t,n=e._el,r=e._parent;r&&r.contains(n)?(t=n,r.removeChild(t)):K("parent not found. el is ",n,"parent is ",r)}function ie(e,t,n,r){for(var o=e.length,i=t.length,a=Math.min(o,i),u=0;u<a;u++){var c=W(t[u]);ye(e[u],c,n,r)}o>i?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t<e.length;t++)oe(e[t])}(e,a):re(t,n,r,a)}function ae(e,t,n,r,o){e.children=$(e),t.children=$(t);var i,a=e.children,u=t.children;s(a)&&s(u)&&(h(null===(i=u[0])||void 0===i?void 0:i.key)||ie(a,u,(t._el=e._el)||n,r));if(!s(a)&&!s(u)){var c=W(a),f=W(u);c._el||(c._el=e._el),ye(c,f,n,r,o)}}function ue(e,t,n){var r=function(e,t){return document.createElement(e,t)}(e.tag,e.is);return e._el=r,e._parent=t,function(e,t){if(t.contextCache||(t.contextCache=new Map),t.context&&(t.context.on&&ee(e,null,t.context.on),t.context.props)){var n=t.context.props;for(var r in n)te(e,r,0,n[r])}}(r,e),h(e.children)&&(e.children=$(e),re(e.children,r,n)),G(r,t,n),r}function ce(e,t,n,r,o){if(e.type!==t.type)oe(e),ue(t,n,r);else{var i=t._el=e._el;ae(e,t,n,r,o),function(e,t,n){for(var r in n.context){var o,i;if("on"===r&&ee(e,null===(o=t.context)||void 0===o?void 0:o.on,null===(i=n.context)||void 0===i?void 0:i.on),"props"===r)for(var a in n.context.props){var u,c,f,l;null===(u=t.context)||void 0===u||null===(c=u.props)||void 0===c||c[a],te(e,a,0,null===(f=n.context)||void 0===f||null===(l=f.props)||void 0===l?void 0:l[a])}}}(i,e,t)}}function fe(e){var t=e.effect=new O((function(){if(e.mounted){var t=e.subTree,n=H(e);e.subTree=n;var r=t._parent,o=t._el,i=t._anchor;r||o?ye(t,n,r||o,i,e):K("container not found",t,n)}else{var a=e.dnode,u=a._parent,c=a._anchor,f=H(e);e.subTree=f,ye(null,f,u,c,e)}}),(function(){return function(e){if(null===e.id)Q.push(e);else{var t=Q.findIndex((function(t){return t.id===e.id}));t>=0?Q.splice(t,1,e):Q.push(e)}Y.then(Z)}(e.update)})),n=e.update=t.run.bind(t);n.id=e.uid,n()}function le(e,t,n,r){var o=e.component=function(e,t){var n={uid:X++,mounted:!1,parent:t,subTree:null,dnode:null,type:e.type,effect:null,update:null,render:null,setup:null,props:null,ctx:null};return q(e,n),n}(e,r);e._root||(e._root=t),fe(o)}function se(e,t,n,r,o){null===e?(t._parent=n,le(t,n,0,o)):function(e,t){var n=t.component=e.component;e.type!==t.type&&(n.type=t.type),q(t,n),n.update()}(e,t)}function pe(e,t,n,r,o){null===e?ue(t,n,r):ce(e,t,n,r,o)}function de(e,t,n,r,o){var i=t._anchor=e?e._anchor:J("");null===e?(t._anchor=i,G(i,n,r),t.children=$(t),re(t.children,n,i)):ae(e,t,n,i,o)}function ve(e,t,n,r,o){if(null===e){var i=(a=t.children||"",document.createComment(a));t._el=i,t._parent=n,G(i,n,r)}else t._el=e._el;var a}function he(e,t,n,r){null===e?function(e,t,n){var r=J(e.children);e._el=r,e._parent=t,G(r,t,n)}(t,n,r):function(e,t){var n=String(e.children),r=String(t.children),o=t._el=e._el;n!==r&&(o.textContent=r)}(e,t)}function ye(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(e!==t){e&&e.type!==t.type&&(oe(e),e=null);var i=t.type;switch(i){case L:he(e,t,n,r);break;case F:ve(e,t,n,r);break;case R:pe(e,t,n,r,o);break;case z:de(e,t,n,r,o);break;default:se(e,t,n,0,o)}}}function be(e){var t={container:null,mount:function(n){n&&(l(n)?t.container=document.querySelector(n):t.container=n),t.container&&t.container&&(t.container.innerHTML="",function(e,t){ye(null,e,t)}(e,t.container))},unmount:function(){t.container&&(t.container.innerHTML="")}};return t}function ge(e,t,n){if(e)return M(e)?e:function(e,t,n){var r=t?{props:t}:null;return l(e)?U(e,r,n):{type:e,_is_dnode:!0,context:r,children:n}}(e,t,n)}function me(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function je(e){return!!e&&!!e[at]}function we(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ut}(e)||Array.isArray(e)||!!e[it]||!!e.constructor[it]||Ae(e)||Se(e))}function Oe(e,t,n){void 0===n&&(n=!1),0===_e(e)?(n?Object.keys:ct)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function _e(e){var t=e[at];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ae(e)?2:Se(e)?3:0}function ke(e,t){return 2===_e(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xe(e,t,n){var r=_e(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Pe(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ae(e){return tt&&e instanceof Map}function Se(e){return nt&&e instanceof Set}function Ee(e){return e.o||e.t}function De(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ft(e);delete t[at];for(var n=ct(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ie(e,t){return void 0===t&&(t=!1),Ne(e)||je(e)||!we(e)||(_e(e)>1&&(e.set=e.add=e.clear=e.delete=Ce),Object.freeze(e),t&&Oe(e,(function(e,t){return Ie(t,!0)}),!0)),e}function Ce(){me(2)}function Ne(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Te(e){var t=lt[e];return t||me(18,e),t}function Me(){return Ze}function Le(e,t){t&&(Te("Patches"),e.u=[],e.s=[],e.v=t)}function Re(e){Fe(e),e.p.forEach(Ue),e.p=null}function Fe(e){e===Ze&&(Ze=e.l)}function ze(e){return Ze={p:[],l:Ze,h:e,m:!0,_:0}}function Ue(e){var t=e[at];0===t.i||1===t.i?t.j():t.O=!0}function Be(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Te("ES5").S(t,e,r),r?(n[at].P&&(Re(t),me(4)),we(e)&&(e=We(t,e),t.l||Ke(t,e)),t.u&&Te("Patches").M(n[at].t,e,t.u,t.s)):e=We(t,n,[]),Re(t),t.u&&t.v(t.u,t.s),e!==ot?e:void 0}function We(e,t,n){if(Ne(t))return t;var r=t[at];if(!r)return Oe(t,(function(o,i){return $e(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Ke(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=De(r.k):r.o;Oe(3===r.i?new Set(o):o,(function(t,i){return $e(e,r,o,t,i,n)})),Ke(e,o,!1),n&&e.u&&Te("Patches").R(r,n,e.u,e.s)}return r.o}function $e(e,t,n,r,o,i){if(je(o)){var a=We(e,o,i&&t&&3!==t.i&&!ke(t.D,r)?i.concat(r):void 0);if(xe(n,r,a),!je(a))return;e.m=!1}if(we(o)&&!Ne(o)){if(!e.h.F&&e._<1)return;We(e,o),t&&t.A.l||Ke(e,o)}}function Ke(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Ie(t,n)}function Ve(e,t){var n=e[at];return(n?Ee(n):e)[t]}function qe(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Xe(e){e.P||(e.P=!0,e.l&&Xe(e.l))}function He(e){e.o||(e.o=De(e.t))}function Ge(e,t,n){var r=Ae(t)?Te("MapSet").N(t,n):Se(t)?Te("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Me(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=st;n&&(o=[r],i=pt);var a=Proxy.revocable(o,i),u=a.revoke,c=a.proxy;return r.k=c,r.j=u,c}(t,n):Te("ES5").J(t,n);return(n?n.A:Me()).p.push(r),r}function Je(e){return je(e)||me(22,e),function e(t){if(!we(t))return t;var n,r=t[at],o=_e(t);if(r){if(!r.P&&(r.i<4||!Te("ES5").K(r)))return r.t;r.I=!0,n=Qe(t,o),r.I=!1}else n=Qe(t,o);return Oe(n,(function(t,o){r&&function(e,t){return 2===_e(e)?e.get(t):e[t]}(r.t,t)===o||xe(n,t,e(o))})),3===o?new Set(n):n}(e)}function Qe(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return De(e)}var Ye,Ze,et="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),tt="undefined"!=typeof Map,nt="undefined"!=typeof Set,rt="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ot=et?Symbol.for("immer-nothing"):((Ye={})["immer-nothing"]=!0,Ye),it=et?Symbol.for("immer-draftable"):"__$immer_draftable",at=et?Symbol.for("immer-state"):"__$immer_state",ut=""+Object.prototype.constructor,ct="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ft=Object.getOwnPropertyDescriptors||function(e){var t={};return ct(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},lt={},st={get:function(e,t){if(t===at)return e;var n=Ee(e);if(!ke(n,t))return function(e,t,n){var r,o=qe(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!we(r)?r:r===Ve(e.t,t)?(He(e),e.o[t]=Ge(e.A.h,r,e)):r},has:function(e,t){return t in Ee(e)},ownKeys:function(e){return Reflect.ownKeys(Ee(e))},set:function(e,t,n){var r=qe(Ee(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Ve(Ee(e),t),i=null==o?void 0:o[at];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Pe(n,o)&&(void 0!==n||ke(e.t,t)))return!0;He(e),Xe(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Ve(e.t,t)||t in e.t?(e.D[t]=!1,He(e),Xe(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ee(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){me(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){me(12)}},pt={};Oe(st,(function(e,t){pt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),pt.deleteProperty=function(e,t){return pt.set.call(this,e,t,void 0)},pt.set=function(e,t,n){return st.set.call(this,e[0],t,n,e[0])};var dt=function(){function e(e){var t=this;this.g=rt,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&me(6),void 0!==r&&"function"!=typeof r&&me(7),we(e)){var u=ze(t),c=Ge(t,e,void 0),f=!0;try{a=n(c),f=!1}finally{f?Re(u):Fe(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Le(u,r),Be(e,u)}),(function(e){throw Re(u),e})):(Le(u,r),Be(a,u))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===ot&&(a=void 0),t.F&&Ie(a,!0),r){var l=[],s=[];Te("Patches").M(e,a,l,s),r(l,s)}return a}me(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){we(e)||me(8),je(e)&&(e=Je(e));var t=ze(this),n=Ge(this,e,void 0);return n[at].C=!0,Fe(t),n},t.finishDraft=function(e,t){var n=(e&&e[at]).A;return Le(n,t),Be(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!rt&&me(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Te("Patches").$;return je(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),vt=new dt,ht=vt.produce;vt.produceWithPatches.bind(vt),vt.setAutoFreeze.bind(vt),vt.setUseProxies.bind(vt),vt.applyPatches.bind(vt),vt.createDraft.bind(vt),vt.finishDraft.bind(vt);var yt=ht;function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var wt="function"==typeof Symbol&&Symbol.observable||"@@observable",Ot=function(){return Math.random().toString(36).substring(7).split("").join(".")},_t={INIT:"@@redux/INIT"+Ot(),REPLACE:"@@redux/REPLACE"+Ot(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ot()}};function kt(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function xt(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(jt(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(jt(1));return n(xt)(e,t)}if("function"!=typeof e)throw new Error(jt(2));var o=e,i=t,a=[],u=a,c=!1;function f(){u===a&&(u=a.slice())}function l(){if(c)throw new Error(jt(3));return i}function s(e){if("function"!=typeof e)throw new Error(jt(4));if(c)throw new Error(jt(5));var t=!0;return f(),u.push(e),function(){if(t){if(c)throw new Error(jt(6));t=!1,f();var n=u.indexOf(e);u.splice(n,1),a=null}}}function p(e){if(!kt(e))throw new Error(jt(7));if(void 0===e.type)throw new Error(jt(8));if(c)throw new Error(jt(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=u,n=0;n<t.length;n++){(0,t[n])()}return e}function d(e){if("function"!=typeof e)throw new Error(jt(10));o=e,p({type:_t.REPLACE})}function v(){var e,t=s;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(jt(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[wt]=function(){return this},e}return p({type:_t.INIT}),(r={dispatch:p,subscribe:s,getState:l,replaceReducer:d})[wt]=v,r}function Pt(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:_t.INIT}))throw new Error(jt(12));if(void 0===n(void 0,{type:_t.PROBE_UNKNOWN_ACTION()}))throw new Error(jt(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},u=0;u<a.length;u++){var c=a[u],f=n[c],l=e[c],s=f(l,t);if(void 0===s)throw t&&t.type,new Error(jt(14));o[c]=s,r=r||s!==l}return(r=r||a.length!==Object.keys(e).length)?o:e}}function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function St(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(jt(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=At.apply(void 0,i)(n.dispatch),mt(mt({},n),{},{dispatch:r})}}}function Et(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Dt=Et();Dt.withExtraArgument=Et;var It,Ct=Dt,Nt=(It=function(e,t){return It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},It(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}It(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Tt=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Mt=Object.defineProperty,Lt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,zt=function(e,t,n){return t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ut=function(e,t){for(var n in t||(t={}))Rt.call(t,n)&&zt(e,n,t[n]);if(Lt)for(var r=0,o=Lt(t);r<o.length;r++){n=o[r];Ft.call(t,n)&&zt(e,n,t[n])}return e},Bt="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?At:At.apply(null,arguments)};var Wt=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Nt(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Tt([void 0],e[0].concat(this)))):new(t.bind.apply(t,Tt([void 0],e.concat(this))))},t}(Array);function $t(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t;e.immutableCheck,e.serializableCheck;var r=new Wt;n&&(!function(e){return"boolean"==typeof e}(n)?r.push(Ct.withExtraArgument(n.extraArgument)):r.push(Ct));return r}(e)}}function Kt(e){var t,n=$t(),r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,u=void 0===a?n():a,c=r.devTools,f=void 0===c||c,l=r.preloadedState,s=void 0===l?void 0:l,p=r.enhancers,d=void 0===p?void 0:p;if("function"==typeof i)t=i;else{if(!function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Pt(i)}var v=u;"function"==typeof v&&(v=v(n));var h=St.apply(void 0,v),y=At;f&&(y=Bt(Ut({trace:!1},"object"==typeof f&&f)));var b=[h];return Array.isArray(d)?b=Tt([h],d):"function"==typeof d&&(b=d(b)),xt(t,s,y.apply(void 0,b))}function Vt(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Ut(Ut({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function qt(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}var Xt="listenerMiddleware";Vt(Xt+"/add"),Vt(Xt+"/removeAll"),Vt(Xt+"/remove"),function(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[at];return st.get(t,e)},set:function(t){var n=this[at];st.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][at];if(!o.P)switch(o.i){case 5:r(o)&&Xe(o);break;case 4:n(o)&&Xe(o)}}}function n(e){for(var t=e.t,n=e.k,r=ct(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==at){var a=t[i];if(void 0===a&&!ke(t,i))return!0;var u=n[i],c=u&&u[at];if(c?c.t!==a:!Pe(u,a))return!0}}var f=!!t[at];return r.length!==ct(t).length+(f?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};!function(e,t){lt[e]||(lt[e]=t)}("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=ft(n);delete i[at];for(var a=ct(i),u=0;u<a.length;u++){var c=a[u];i[c]=e(c,t||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:Me(),P:!1,I:!1,D:{},l:n,t:t,k:o,o:null,O:!1,C:!1};return Object.defineProperty(o,at,{value:i,writable:!0}),o},S:function(e,n,o){o?je(n)&&n[at].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[at];if(n){var o=n.t,i=n.k,a=n.D,u=n.i;if(4===u)Oe(i,(function(t){t!==at&&(void 0!==o[t]||ke(o,t)?a[t]||e(i[t]):(a[t]=!0,Xe(n)))})),Oe(o,(function(e){void 0!==i[e]||ke(i,e)||(a[e]=!1,Xe(n))}));else if(5===u){if(r(n)&&(Xe(n),a.length=!0),i.length<o.length)for(var c=i.length;c<o.length;c++)a[c]=!1;else for(var f=o.length;f<i.length;f++)a[f]=!0;for(var l=Math.min(i.length,o.length),s=0;s<l;s++)i.hasOwnProperty(s)||(a[s]=!0),void 0===a[s]&&e(i[s])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}();var Ht="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jt,Qt={exports:{}};Jt=Qt,function(e,t){var n=function(e){var t=["N","E","A","D"];function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function o(e,t,n){o.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function u(e,t,n){u.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function c(e,t,n){var r=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,r),e}function f(e){var t=typeof e;return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function l(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function s(e){var t=0,n=f(e);if("array"===n)return e.forEach((function(e){t+=s(e)})),t+l("[type: array, hash: "+t+"]");if("object"===n){for(var r in e)if(e.hasOwnProperty(r)){var o="[ type: object, key: "+r+", value hash: "+s(e[r])+"]";t+=l(o)}return t}return t+l("[ type: "+n+" ; value: "+e+"]")}function p(e,t,n,r,c,l,d,v){n=n||[],d=d||[];var h=(c=c||[]).slice(0);if(null!=l){if(r){if("function"==typeof r&&r(h,l))return;if("object"==typeof r){if(r.prefilter&&r.prefilter(h,l))return;if(r.normalize){var y=r.normalize(h,l,e,t);y&&(e=y[0],t=y[1])}}}h.push(l)}"regexp"===f(e)&&"regexp"===f(t)&&(e=e.toString(),t=t.toString());var b,g,m,j,w=typeof e,O=typeof t,_="undefined"!==w||d&&d.length>0&&d[d.length-1].lhs&&Object.getOwnPropertyDescriptor(d[d.length-1].lhs,l),k="undefined"!==O||d&&d.length>0&&d[d.length-1].rhs&&Object.getOwnPropertyDescriptor(d[d.length-1].rhs,l);if(!_&&k)n.push(new i(h,t));else if(!k&&_)n.push(new a(h,e));else if(f(e)!==f(t))n.push(new o(h,e,t));else if("date"===f(e)&&e-t!=0)n.push(new o(h,e,t));else if("object"===w&&null!==e&&null!==t){for(b=d.length-1;b>-1;--b)if(d[b].lhs===e){j=!0;break}if(j)e!==t&&n.push(new o(h,e,t));else{if(d.push({lhs:e,rhs:t}),Array.isArray(e)){for(v&&(e.sort((function(e,t){return s(e)-s(t)})),t.sort((function(e,t){return s(e)-s(t)}))),b=t.length-1,g=e.length-1;b>g;)n.push(new u(h,b,new i(void 0,t[b--])));for(;g>b;)n.push(new u(h,g,new a(void 0,e[g--])));for(;b>=0;--b)p(e[b],t[b],n,r,h,b,d,v)}else{var x=Object.keys(e),P=Object.keys(t);for(b=0;b<x.length;++b)m=x[b],(j=P.indexOf(m))>=0?(p(e[m],t[m],n,r,h,m,d,v),P[j]=null):p(e[m],void 0,n,r,h,m,d,v);for(b=0;b<P.length;++b)(m=P[b])&&p(void 0,t[m],n,r,h,m,d,v)}d.length=d.length-1}}else e!==t&&("number"===w&&isNaN(e)&&isNaN(t)||n.push(new o(h,e,t)))}function d(e,t,n,r,o){var i=[];if(p(e,t,i,r,null,null,null,o),n)for(var a=0;a<i.length;++a)n(i[a]);return i}function v(e,t,n,r,o,i,a){return p(e,t,n,r,o,i,a,!0)}function h(e,t,n,r){var o=d(e,t,r?function(e){e&&r.push(e)}:void 0,n);return r||(o.length?o:void 0)}function y(e,t,n,r){var o=d(e,t,r?function(e){e&&r.push(e)}:void 0,n,!0);return r||(o.length?o:void 0)}function b(e,t,n){if(n.path&&n.path.length){var r,o=e[t],i=n.path.length-1;for(r=0;r<i;r++)o=o[n.path[r]];switch(n.kind){case"A":b(o[n.path[r]],n.index,n.item);break;case"D":delete o[n.path[r]];break;case"E":case"N":o[n.path[r]]=n.rhs}}else switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e=c(e,t);break;case"E":case"N":e[t]=n.rhs}return e}function g(e,n,r){if(void 0===r&&n&&~t.indexOf(n.kind)&&(r=n),e&&r&&r.kind){for(var o=e,i=-1,a=r.path?r.path.length-1:0;++i<a;)void 0===o[r.path[i]]&&(o[r.path[i]]=void 0!==r.path[i+1]&&"number"==typeof r.path[i+1]?[]:{}),o=o[r.path[i]];switch(r.kind){case"A":r.path&&void 0===o[r.path[i]]&&(o[r.path[i]]=[]),b(r.path?o[r.path[i]]:o,r.index,r.item);break;case"D":delete o[r.path[i]];break;case"E":case"N":o[r.path[i]]=r.rhs}}}function m(e,t,n){if(n.path&&n.path.length){var r,o=e[t],i=n.path.length-1;for(r=0;r<i;r++)o=o[n.path[r]];switch(n.kind){case"A":m(o[n.path[r]],n.index,n.item);break;case"D":case"E":o[n.path[r]]=n.lhs;break;case"N":delete o[n.path[r]]}}else switch(n.kind){case"A":m(e[t],n.index,n.item);break;case"D":case"E":e[t]=n.lhs;break;case"N":e=c(e,t)}return e}function j(e,t,n){if(e&&t&&n&&n.kind){var r,o,i=e;for(o=n.path.length-1,r=0;r<o;r++)void 0===i[n.path[r]]&&(i[n.path[r]]={}),i=i[n.path[r]];switch(n.kind){case"A":m(i[n.path[r]],n.index,n.item);break;case"D":case"E":i[n.path[r]]=n.lhs;break;case"N":delete i[n.path[r]]}}}function w(e,t,n){e&&t&&d(e,t,(function(r){n&&!n(e,t,r)||g(e,t,r)}))}return n(o,r),n(i,r),n(a,r),n(u,r),Object.defineProperties(h,{diff:{value:h,enumerable:!0},orderIndependentDiff:{value:y,enumerable:!0},observableDiff:{value:d,enumerable:!0},orderIndependentObservableDiff:{value:v,enumerable:!0},orderIndepHash:{value:s,enumerable:!0},applyDiff:{value:w,enumerable:!0},applyChange:{value:g,enumerable:!0},revertChange:{value:j,enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),h.DeepDiff=h,e&&(e.DeepDiff=h),h}(Ht);Jt.exports=n}();var Yt=function(){this.__data__=[],this.size=0};var Zt=function(e,t){return e===t||e!=e&&t!=t},en=Zt;var tn=function(e,t){for(var n=e.length;n--;)if(en(e[n][0],t))return n;return-1},nn=tn,rn=Array.prototype.splice;var on=tn;var an=tn;var un=tn;var cn=Yt,fn=function(e){var t=this.__data__,n=nn(t,e);return!(n<0)&&(n==t.length-1?t.pop():rn.call(t,n,1),--this.size,!0)},ln=function(e){var t=this.__data__,n=on(t,e);return n<0?void 0:t[n][1]},sn=function(e){return an(this.__data__,e)>-1},pn=function(e,t){var n=this.__data__,r=un(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}dn.prototype.clear=cn,dn.prototype.delete=fn,dn.prototype.get=ln,dn.prototype.has=sn,dn.prototype.set=pn;var vn=dn,hn=vn;var yn=function(){this.__data__=new hn,this.size=0};var bn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var gn=function(e){return this.__data__.get(e)};var mn=function(e){return this.__data__.has(e)},jn="object"==typeof Ht&&Ht&&Ht.Object===Object&&Ht,wn=jn,On="object"==typeof self&&self&&self.Object===Object&&self,_n=wn||On||Function("return this")(),kn=_n.Symbol,xn=kn,Pn=Object.prototype,An=Pn.hasOwnProperty,Sn=Pn.toString,En=xn?xn.toStringTag:void 0;var Dn=function(e){var t=An.call(e,En),n=e[En];try{e[En]=void 0;var r=!0}catch(e){}var o=Sn.call(e);return r&&(t?e[En]=n:delete e[En]),o},In=Object.prototype.toString;var Cn=Dn,Nn=function(e){return In.call(e)},Tn=kn?kn.toStringTag:void 0;var Mn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Tn&&Tn in Object(e)?Cn(e):Nn(e)};var Ln=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Rn=Mn,Fn=Ln;var zn=function(e){if(!Fn(e))return!1;var t=Rn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Un=_n["__core-js_shared__"],Bn=function(){var e=/[^.]+$/.exec(Un&&Un.keys&&Un.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var Wn=function(e){return!!Bn&&Bn in e},$n=Function.prototype.toString;var Kn=function(e){if(null!=e){try{return $n.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Vn=zn,qn=Wn,Xn=Ln,Hn=Kn,Gn=/^\[object .+?Constructor\]$/,Jn=Function.prototype,Qn=Object.prototype,Yn=Jn.toString,Zn=Qn.hasOwnProperty,er=RegExp("^"+Yn.call(Zn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var tr=function(e){return!(!Xn(e)||qn(e))&&(Vn(e)?er:Gn).test(Hn(e))},nr=function(e,t){return null==e?void 0:e[t]};var rr=function(e,t){var n=nr(e,t);return tr(n)?n:void 0},or=rr(_n,"Map"),ir=rr(Object,"create"),ar=ir;var ur=function(){this.__data__=ar?ar(null):{},this.size=0};var cr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fr=ir,lr=Object.prototype.hasOwnProperty;var sr=function(e){var t=this.__data__;if(fr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return lr.call(t,e)?t[e]:void 0},pr=ir,dr=Object.prototype.hasOwnProperty;var vr=ir;var hr=ur,yr=cr,br=sr,gr=function(e){var t=this.__data__;return pr?void 0!==t[e]:dr.call(t,e)},mr=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vr&&void 0===t?"__lodash_hash_undefined__":t,this};function jr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jr.prototype.clear=hr,jr.prototype.delete=yr,jr.prototype.get=br,jr.prototype.has=gr,jr.prototype.set=mr;var wr=jr,Or=vn,_r=or;var kr=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var xr=function(e,t){var n=e.__data__;return kr(t)?n["string"==typeof t?"string":"hash"]:n.map},Pr=xr;var Ar=xr;var Sr=xr;var Er=xr;var Dr=function(){this.size=0,this.__data__={hash:new wr,map:new(_r||Or),string:new wr}},Ir=function(e){var t=Pr(this,e).delete(e);return this.size-=t?1:0,t},Cr=function(e){return Ar(this,e).get(e)},Nr=function(e){return Sr(this,e).has(e)},Tr=function(e,t){var n=Er(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mr.prototype.clear=Dr,Mr.prototype.delete=Ir,Mr.prototype.get=Cr,Mr.prototype.has=Nr,Mr.prototype.set=Tr;var Lr=vn,Rr=or,Fr=Mr;var zr=vn,Ur=yn,Br=bn,Wr=gn,$r=mn,Kr=function(e,t){var n=this.__data__;if(n instanceof Lr){var r=n.__data__;if(!Rr||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fr(r)}return n.set(e,t),this.size=n.size,this};function Vr(e){var t=this.__data__=new zr(e);this.size=t.size}Vr.prototype.clear=Ur,Vr.prototype.delete=Br,Vr.prototype.get=Wr,Vr.prototype.has=$r,Vr.prototype.set=Kr;var qr=Vr;var Xr=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Hr=rr,Gr=function(){try{var e=Hr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Jr=function(e,t,n){"__proto__"==t&&Gr?Gr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Qr=Jr,Yr=Zt,Zr=Object.prototype.hasOwnProperty;var eo=function(e,t,n){var r=e[t];Zr.call(e,t)&&Yr(r,n)&&(void 0!==n||t in e)||Qr(e,t,n)},to=eo,no=Jr;var ro=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),o?no(n,u,c):to(n,u,c)}return n};var oo=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var io=function(e){return null!=e&&"object"==typeof e},ao=Mn,uo=io;var co=function(e){return uo(e)&&"[object Arguments]"==ao(e)},fo=io,lo=Object.prototype,so=lo.hasOwnProperty,po=lo.propertyIsEnumerable,vo=co(function(){return arguments}())?co:function(e){return fo(e)&&so.call(e,"callee")&&!po.call(e,"callee")},ho=Array.isArray,yo={exports:{}};var bo=function(){return!1};!function(e,t){var n=_n,r=bo,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r;e.exports=u}(yo,yo.exports);var go=/^(?:0|[1-9]\d*)$/;var mo=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&go.test(e))&&e>-1&&e%1==0&&e<t};var jo=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},wo=Mn,Oo=jo,_o=io,ko={};ko["[object Float32Array]"]=ko["[object Float64Array]"]=ko["[object Int8Array]"]=ko["[object Int16Array]"]=ko["[object Int32Array]"]=ko["[object Uint8Array]"]=ko["[object Uint8ClampedArray]"]=ko["[object Uint16Array]"]=ko["[object Uint32Array]"]=!0,ko["[object Arguments]"]=ko["[object Array]"]=ko["[object ArrayBuffer]"]=ko["[object Boolean]"]=ko["[object DataView]"]=ko["[object Date]"]=ko["[object Error]"]=ko["[object Function]"]=ko["[object Map]"]=ko["[object Number]"]=ko["[object Object]"]=ko["[object RegExp]"]=ko["[object Set]"]=ko["[object String]"]=ko["[object WeakMap]"]=!1;var xo=function(e){return _o(e)&&Oo(e.length)&&!!ko[wo(e)]};var Po=function(e){return function(t){return e(t)}},Ao={exports:{}};!function(e,t){var n=jn,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Ao,Ao.exports);var So=xo,Eo=Po,Do=Ao.exports,Io=Do&&Do.isTypedArray,Co=Io?Eo(Io):So,No=oo,To=vo,Mo=ho,Lo=yo.exports,Ro=mo,Fo=Co,zo=Object.prototype.hasOwnProperty;var Uo=function(e,t){var n=Mo(e),r=!n&&To(e),o=!n&&!r&&Lo(e),i=!n&&!r&&!o&&Fo(e),a=n||r||o||i,u=a?No(e.length,String):[],c=u.length;for(var f in e)!t&&!zo.call(e,f)||a&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Ro(f,c))||u.push(f);return u},Bo=Object.prototype;var Wo=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Bo)};var $o=function(e,t){return function(n){return e(t(n))}},Ko=$o(Object.keys,Object),Vo=Wo,qo=Ko,Xo=Object.prototype.hasOwnProperty;var Ho=zn,Go=jo;var Jo=function(e){return null!=e&&Go(e.length)&&!Ho(e)},Qo=Uo,Yo=function(e){if(!Vo(e))return qo(e);var t=[];for(var n in Object(e))Xo.call(e,n)&&"constructor"!=n&&t.push(n);return t},Zo=Jo;var ei=function(e){return Zo(e)?Qo(e):Yo(e)},ti=ro,ni=ei;var ri=function(e,t){return e&&ti(t,ni(t),e)};var oi=Ln,ii=Wo,ai=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ui=Object.prototype.hasOwnProperty;var ci=Uo,fi=function(e){if(!oi(e))return ai(e);var t=ii(e),n=[];for(var r in e)("constructor"!=r||!t&&ui.call(e,r))&&n.push(r);return n},li=Jo;var si=function(e){return li(e)?ci(e,!0):fi(e)},pi=ro,di=si;var vi=function(e,t){return e&&pi(t,di(t),e)},hi={exports:{}};!function(e,t){var n=_n,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(hi,hi.exports);var yi=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var bi=function(){return[]},gi=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},mi=bi,ji=Object.prototype.propertyIsEnumerable,wi=Object.getOwnPropertySymbols,Oi=wi?function(e){return null==e?[]:(e=Object(e),gi(wi(e),(function(t){return ji.call(e,t)})))}:mi,_i=ro,ki=Oi;var xi=function(e,t){return _i(e,ki(e),t)};var Pi=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Ai=$o(Object.getPrototypeOf,Object),Si=Pi,Ei=Ai,Di=Oi,Ii=bi,Ci=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Si(t,Di(e)),e=Ei(e);return t}:Ii,Ni=ro,Ti=Ci;var Mi=function(e,t){return Ni(e,Ti(e),t)},Li=Pi,Ri=ho;var Fi=function(e,t,n){var r=t(e);return Ri(e)?r:Li(r,n(e))},zi=Fi,Ui=Oi,Bi=ei;var Wi=function(e){return zi(e,Bi,Ui)},$i=Fi,Ki=Ci,Vi=si;var qi=function(e){return $i(e,Vi,Ki)},Xi=rr(_n,"DataView"),Hi=or,Gi=rr(_n,"Promise"),Ji=rr(_n,"Set"),Qi=rr(_n,"WeakMap"),Yi=Mn,Zi=Kn,ea=Zi(Xi),ta=Zi(Hi),na=Zi(Gi),ra=Zi(Ji),oa=Zi(Qi),ia=Yi;(Xi&&"[object DataView]"!=ia(new Xi(new ArrayBuffer(1)))||Hi&&"[object Map]"!=ia(new Hi)||Gi&&"[object Promise]"!=ia(Gi.resolve())||Ji&&"[object Set]"!=ia(new Ji)||Qi&&"[object WeakMap]"!=ia(new Qi))&&(ia=function(e){var t=Yi(e),n="[object Object]"==t?e.constructor:void 0,r=n?Zi(n):"";if(r)switch(r){case ea:return"[object DataView]";case ta:return"[object Map]";case na:return"[object Promise]";case ra:return"[object Set]";case oa:return"[object WeakMap]"}return t});var aa=ia,ua=Object.prototype.hasOwnProperty;var ca=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ua.call(e,"index")&&(n.index=e.index,n.input=e.input),n},fa=_n.Uint8Array;var la=function(e){var t=new e.constructor(e.byteLength);return new fa(t).set(new fa(e)),t},sa=la;var pa=function(e,t){var n=t?sa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},da=/\w*$/;var va=function(e){var t=new e.constructor(e.source,da.exec(e));return t.lastIndex=e.lastIndex,t},ha=kn?kn.prototype:void 0,ya=ha?ha.valueOf:void 0;var ba=la;var ga=la,ma=pa,ja=va,wa=function(e){return ya?Object(ya.call(e)):{}},Oa=function(e,t){var n=t?ba(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var _a=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return ga(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return ma(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Oa(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return ja(e);case"[object Symbol]":return wa(e)}},ka=Ln,xa=Object.create,Pa=function(){function e(){}return function(t){if(!ka(t))return{};if(xa)return xa(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Aa=Ai,Sa=Wo;var Ea=function(e){return"function"!=typeof e.constructor||Sa(e)?{}:Pa(Aa(e))},Da=aa,Ia=io;var Ca=function(e){return Ia(e)&&"[object Map]"==Da(e)},Na=Po,Ta=Ao.exports,Ma=Ta&&Ta.isMap,La=Ma?Na(Ma):Ca,Ra=aa,Fa=io;var za=function(e){return Fa(e)&&"[object Set]"==Ra(e)},Ua=Po,Ba=Ao.exports,Wa=Ba&&Ba.isSet,$a=Wa?Ua(Wa):za,Ka=qr,Va=Xr,qa=eo,Xa=ri,Ha=vi,Ga=hi.exports,Ja=yi,Qa=xi,Ya=Mi,Za=Wi,eu=qi,tu=aa,nu=ca,ru=_a,ou=Ea,iu=ho,au=yo.exports,uu=La,cu=Ln,fu=$a,lu=ei,su=si,pu={};pu["[object Arguments]"]=pu["[object Array]"]=pu["[object ArrayBuffer]"]=pu["[object DataView]"]=pu["[object Boolean]"]=pu["[object Date]"]=pu["[object Float32Array]"]=pu["[object Float64Array]"]=pu["[object Int8Array]"]=pu["[object Int16Array]"]=pu["[object Int32Array]"]=pu["[object Map]"]=pu["[object Number]"]=pu["[object Object]"]=pu["[object RegExp]"]=pu["[object Set]"]=pu["[object String]"]=pu["[object Symbol]"]=pu["[object Uint8Array]"]=pu["[object Uint8ClampedArray]"]=pu["[object Uint16Array]"]=pu["[object Uint32Array]"]=!0,pu["[object Error]"]=pu["[object Function]"]=pu["[object WeakMap]"]=!1;var du=function e(t,n,r,o,i,a){var u,c=1&n,f=2&n,l=4&n;if(r&&(u=i?r(t,o,i,a):r(t)),void 0!==u)return u;if(!cu(t))return t;var s=iu(t);if(s){if(u=nu(t),!c)return Ja(t,u)}else{var p=tu(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(au(t))return Ga(t,c);if("[object Object]"==p||"[object Arguments]"==p||d&&!i){if(u=f||d?{}:ou(t),!c)return f?Ya(t,Ha(u,t)):Qa(t,Xa(u,t))}else{if(!pu[p])return i?t:{};u=ru(t,p,c)}}a||(a=new Ka);var v=a.get(t);if(v)return v;a.set(t,u),fu(t)?t.forEach((function(o){u.add(e(o,n,r,o,t,a))})):uu(t)&&t.forEach((function(o,i){u.set(i,e(o,n,r,i,t,a))}));var h=s?void 0:(l?f?eu:Za:f?su:lu)(t);return Va(h||t,(function(o,i){h&&(o=t[i=o]),qa(u,i,e(o,n,r,i,t,a))})),u},vu=du;var hu,yu=function(e){return vu(e,5)};function bu(e,t,n){e.reduce((function(t,r,o){return o===e.length-1&&n(t,r),t[r]}),t)}function gu(){}var mu=N({},!0);function ju(e){return v(e)?e(mu):e?mu[e]:mu}var wu=function(e){return e.getState,function(e){return function(t){return e(t)}}};var Ou,_u=function(e){var t=e.children;return function(e){hu=e}(e.store),function(){return t}},ku=function(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:yt(e.initialState,(function(){})),o=e.reducers||{},i=Object.keys(o),a={},u={},c={};function f(){var t="function"==typeof e.extraReducers?qt(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,i=t[1],a=void 0===i?[]:i,c=t[2],f=void 0===c?void 0:c,l=Ut(Ut({},o),u);return function(e,t,n,r){void 0===n&&(n=[]);var o,i="function"==typeof t?qt(t):[t,n,r],a=i[0],u=i[1],c=i[2];if(function(e){return"function"==typeof e}(e))o=function(){return yt(e(),(function(){}))};else{var f=yt(e,(function(){}));o=function(){return f}}function l(e,t){void 0===e&&(e=o());var n=Tt([a[t.type]],u.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[c]),n.reduce((function(e,n){if(n){var r;if(je(e))return void 0===(r=n(e,t))?e:r;if(we(e))return yt(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return l.getInitialState=o,l}(r,l,a,f)}return i.forEach((function(e){var n,r,i=o[e],f=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[e]=n,u[f]=n,c[e]=r?Vt(f,r):Vt(f)})),{name:t,reducer:function(e,t){return n||(n=f()),n(e,t)},actions:c,caseReducers:a,getInitialState:function(){return n||(n=f()),n.getInitialState()}}}({name:"Demo",initialState:{count:0,checked:!1},reducers:{increment:function(e){e.count++},toggle:function(e){e.checked=!e.checked}}}),xu=ku.actions,Pu=xu.increment,Au=xu.toggle,Su=function(e){var t=Object.assign({},e,{middleware:function(e){return e().concat(wu)}}),n=Kt(t),r=n.getState();return mu=N(yu(r||{}),!0),n.subscribe((function(){var e=n.getState(),t=Qt.exports.diff(mu,e);x(),j(mu,!1),t.forEach((function(e){var t=e.kind,n=e.path;"E"===t&&bu(n,mu,(function(t,n){t[n]=e.rhs})),"A"===t&&bu(n,mu,(function(t,n){"N"===e.item.kind&&t[n].push(e.item.rhs)}))})),function(e){j(e,!0)}(mu),P()})),n}({reducer:{Demo:ku.reducer}}),Eu={exports:{}};"undefined"!=typeof self&&self,Ou=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/index.js")}({"./src/darkmode.js":
/*!*************************!*\
!*** ./src/darkmode.js ***!
\*************************/
/*! no static exports found */function(e,t,n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.IS_BROWSER=void 0;var o="undefined"!=typeof window;t.IS_BROWSER=o;var i=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o){t=Object.assign({},{bottom:"32px",right:"32px",left:"unset",time:"0.3s",mixColor:"#fff",backgroundColor:"#fff",buttonColorDark:"#100f2c",buttonColorLight:"#fff",label:"",saveInCookies:!0,autoMatchOsTheme:!0},t);var n="\n .darkmode-layer {\n position: fixed;\n pointer-events: none;\n background: ".concat(t.mixColor,";\n transition: all ").concat(t.time," ease;\n mix-blend-mode: difference;\n }\n\n .darkmode-layer--button {\n width: 2.9rem;\n height: 2.9rem;\n border-radius: 50%;\n right: ").concat(t.right,";\n bottom: ").concat(t.bottom,";\n left: ").concat(t.left,";\n }\n\n .darkmode-layer--simple {\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transform: scale(1) !important;\n }\n\n .darkmode-layer--expanded {\n transform: scale(100);\n border-radius: 0;\n }\n\n .darkmode-layer--no-transition {\n transition: none;\n }\n\n .darkmode-toggle {\n background: ").concat(t.buttonColorDark,";\n width: 3rem;\n height: 3rem;\n position: fixed;\n border-radius: 50%;\n border:none;\n right: ").concat(t.right,";\n bottom: ").concat(t.bottom,";\n left: ").concat(t.left,";\n cursor: pointer;\n transition: all 0.5s ease;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .darkmode-toggle--white {\n background: ").concat(t.buttonColorLight,";\n }\n\n .darkmode-toggle--inactive {\n display: none;\n }\n\n .darkmode-background {\n background: ").concat(t.backgroundColor,";\n position: fixed;\n pointer-events: none;\n z-index: -10;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n }\n\n img, .darkmode-ignore {\n isolation: isolate;\n display: inline-block;\n }\n\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .darkmode-toggle {display: none !important}\n }\n\n @supports (-ms-ime-align:auto), (-ms-accelerator:true) {\n .darkmode-toggle {display: none !important}\n }\n "),r=document.createElement("div"),i=document.createElement("button"),a=document.createElement("div");i.innerHTML=t.label,i.classList.add("darkmode-toggle--inactive"),r.classList.add("darkmode-layer"),a.classList.add("darkmode-background");var u="true"===window.localStorage.getItem("darkmode"),c=t.autoMatchOsTheme&&window.matchMedia("(prefers-color-scheme: dark)").matches,f=null===window.localStorage.getItem("darkmode");(!0===u&&t.saveInCookies||f&&c)&&(r.classList.add("darkmode-layer--expanded","darkmode-layer--simple","darkmode-layer--no-transition"),i.classList.add("darkmode-toggle--white"),document.body.classList.add("darkmode--activated")),document.body.insertBefore(i,document.body.firstChild),document.body.insertBefore(r,document.body.firstChild),document.body.insertBefore(a,document.body.firstChild),this.addStyle(n),this.button=i,this.layer=r,this.saveInCookies=t.saveInCookies,this.time=t.time}}var t,n,i;return t=e,(n=[{key:"addStyle",value:function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href","data:text/css;charset=UTF-8,"+encodeURIComponent(e)),document.head.appendChild(t)}},{key:"showWidget",value:function(){var e=this;if(o){var t=this.button,n=this.layer,r=1e3*parseFloat(this.time);t.classList.add("darkmode-toggle"),t.classList.remove("darkmode-toggle--inactive"),t.setAttribute("aria-label","Activate dark mode"),t.setAttribute("aria-checked","false"),t.setAttribute("role","checkbox"),n.classList.add("darkmode-layer--button"),t.addEventListener("click",(function(){var o=e.isActivated();o?(n.classList.remove("darkmode-layer--simple"),t.setAttribute("disabled",!0),setTimeout((function(){n.classList.remove("darkmode-layer--no-transition"),n.classList.remove("darkmode-layer--expanded"),t.removeAttribute("disabled")}),1)):(n.classList.add("darkmode-layer--expanded"),t.setAttribute("disabled",!0),setTimeout((function(){n.classList.add("darkmode-layer--no-transition"),n.classList.add("darkmode-layer--simple"),t.removeAttribute("disabled")}),r)),t.classList.toggle("darkmode-toggle--white"),document.body.classList.toggle("darkmode--activated"),window.localStorage.setItem("darkmode",!o)}))}}},{key:"toggle",value:function(){if(o){var e=this.layer,t=this.isActivated(),n=this.button;e.classList.toggle("darkmode-layer--simple"),document.body.classList.toggle("darkmode--activated"),window.localStorage.setItem("darkmode",!t),n.setAttribute("aria-label","De-activate dark mode"),n.setAttribute("aria-checked","true")}}},{key:"isActivated",value:function(){return o?document.body.classList.contains("darkmode--activated"):null}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i},"./src/index.js":
/*!**********************!*\
!*** ./src/index.js ***!
\**********************/
/*! no static exports found */function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(/*! ./darkmode */"./src/darkmode.js")),o=r.default;t.default=o,r.IS_BROWSER&&function(e){e.Darkmode=r.default}(window),e.exports=t.default}})};var Du=Gt(Eu.exports=Ou()),Iu=function(e){return U("h1",{},[e.msg])},Cu=function(){var e=[{name:"Do",url:"https://github.com/Linkontoask/do"},{name:"Link",url:"https://github.com/Linkontoask"},{name:"Redux DevTools",url:"https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd"}];return function(t){return U("div",{props:{className:"block"}},["\n ",t.children,"\n ",U("ul",{},["\n ",e.map((function(e){return U("li",{},["\n (",e.name,")\n ",U("a",{props:{href:e.url,style:{marginLeft:"10px"}}},["\n ",e.url,"\n "]),"\n "])})),"\n "]),"\n "])}};function Nu(){var e=ju(),t=new T(!1),n=function(){try{e.Demo.count++}catch(e){t.value=!0}};return function(){return U("span",{on:{click:n}},["\n (",e.Demo.count,")\n ",t.value&&U("span",{on:{click:function(e){e.stopPropagation(),t.value=!1}},props:{className:"error"}},["\n 不允许直接修改 dox 中的数据,请使用 redux dispatch\n "]),"\n "])}}function Tu(){var e=ju((function(e){return e.Demo})),t=hu?hu.dispatch:(console.warn("Please use the Provider component to register the store, and then use the hook function provided by dox"),gu);return function(){return U("div",{props:{className:"block text-left"}},["\n ",U("h6",{},["\n 下面是使用 ",U("em",{props:{className:"tag"}},["Do"])," 这个框架制作的一些 Demo,你可以在 redux devtools\n 看到状态变化并进行时光旅行。想进行更多的尝试可以 clone 本项目后按照 README\n 文档进行本地调试。\n "]),"\n ",U("ul",{},["\n ",U("li",{},["\n ",U("div",{props:{className:"flex items-center"}},["\n 这是一个累加器按钮\n ",ge(Nu,{},[]),"\n ",U("button",{on:{click:function(){t(Pu())}},props:{style:{margin:"4px"}}},["\n ",e.count,"\n "]),"\n "]),"\n "]),"\n ",U("li",{},["\n ",U("div",{props:{className:"flex items-center"}},["\n ",U("label",{},["\n 这是一个 checkbox 选择框 (",e.checked?"开":"关",")\n ",U("input",{on:{change:function(){t(Au())}},props:{type:"checkbox",checked:e.checked}},[]),"\n "]),"\n "]),"\n "]),"\n "]),"\n "])}}var Mu;function Lu(){new Du({label:"🌓"}).showWidget();var e=N({msg:'I "Do"'});return function(){return U("div",{props:{id:"app"}},["\n ",ge(Iu,{props:{msg:e.msg}},[]),"\n ",ge(Cu,{},["\n ",U("h5",{},["\n ",U("em",{props:{className:"tag"}},["Do"])," 是一款极简版的响应式框架。\n "]),"\n "]),"\n ",ge(Tu,{},[]),"\n "])}}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("body {\n margin: 0;\n}\n#app {\n text-align: center;\n line-height: 2;\n margin: 2em auto;\n}\nbutton {\n padding: 4px 20px;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n}\nul {\n text-align: left;\n}\nh6 {\n padding-left: 26px;\n font-weight: 400;\n}\n.flex {\n display: flex;\n}\n.items-center {\n align-items: center;\n}\n.justify-center {\n justify-content: center;\n}\n.tag {\n font-style: normal;\n padding: 2px 4px;\n background: #faebd7;\n border-radius: 2px;\n}\n.mr-4 {\n margin-top: 1em;\n}\n.block + .block {\n border-top: 1px dashed #eee;\n}\n.text-left {\n text-align: left;\n}\n.error {\n color: #d41e0e;\n}\n"),Mu=document.querySelector("#root"),be(ge(_u,{props:{store:Su}},["\n ",ge(Lu,{},[]),"\n "])).mount(Mu);
//# sourceMappingURL=index.js.map