New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

plait

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plait - npm Package Compare versions

Comparing version 0.5.0 to 0.6.1

4

dist/plait.min.js

@@ -1,3 +0,3 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.plait=e()}}(function(){return function e(t,n,r){function o(u,a){if(!n[u]){if(!t[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.init,n=e.update,r=e.view,o=a(t),u=c(o,2),s=u[0],f=u[1],l=k(function(){var e=arguments.length<=0||void 0===arguments[0]?s:arguments[0],t=arguments[1],r=n(e,t);return"undefined"==typeof r?e:r}),d=function(e){return function(t){t&&(e.event=t),l.dispatch(e)}};f&&l.dispatch(f);var p=r(s,d),v=(0,m["default"])(p);return l.subscribe(function(){p=i(v,p,r(l.getState(),d))}),v}function i(e,t,n){return(0,y["default"])(e,(0,v["default"])(t,n)),n}function u(e){var t=e.init;return a(t)[0]}function a(e){var t=e(),n=Array.isArray(t)?t:[t];return[new x["default"](n[0]),n[1]]}function s(e,t,n,r){var o=function(){return t};return function(i){return e("function"==typeof i?function(){i(s(e,t,n,r),o).then(function(e){return e(r(n,i))})}:r(n,i))}}var c=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a["return"]&&a["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();Object.defineProperty(n,"__esModule",{value:!0}),n.start=o,n.initializeComponent=u,n.forwardDispatch=s;var f=e("redux"),l=e("redux-thunk"),d=r(l),p=e("virtual-dom/diff"),v=r(p),h=e("virtual-dom/patch"),y=r(h),g=e("virtual-dom/create-element"),m=r(g),w=e("dom-delegator"),b=r(w),_=e("./Map"),x=r(_),k=((0,b["default"])(),(0,f.applyMiddleware)(d["default"])(f.createStore))},{"./Map":2,"dom-delegator":10,redux:30,"redux-thunk":28,"virtual-dom/create-element":38,"virtual-dom/diff":39,"virtual-dom/patch":40}],2:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(n,"__esModule",{value:!0});var a=e("ramda/src/assocPath"),s=r(a),c=e("./utils/clone"),f=r(c),l=e("ramda/src/path"),d=r(l),p=function(){function e(t){if(i(this,e),"object"!==("undefined"==typeof t?"undefined":o(t)))throw new TypeError(t,"is not an object");this.obj=t,this["@@Plait/Map"]=1}return u(e,[{key:"clone",value:function(){return new e(this.toObject())}},{key:"toObject",value:function(){return(0,f["default"])(this.obj)}},{key:"set",value:function(t,n){var r=this.toObject();return r[t]=n,new e(r)}},{key:"get",value:function(e){var t=this.toObject();return t[e]}},{key:"update",value:function(e,t){return this.set(e,t(this.get(e)))}},{key:"setIn",value:function(t,n){var r=(0,s["default"])(t,n,this.obj);return new e(r)}},{key:"getIn",value:function(e){return(0,d["default"])(e,this.obj)}}]),e}();n["default"]=p},{"./utils/clone":4,"ramda/src/assocPath":21,"ramda/src/path":27}],3:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Map=n.App=void 0;var o=e("./App"),i=r(o),u=e("./Map"),a=r(u);n.App=i["default"],n.Map=a["default"]},{"./App":1,"./Map":2}],4:[function(e,t,n){"use strict";function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function o(e){var t=[];for(var n in e){var i=e[n];"object"===("undefined"==typeof i?"undefined":r(i))?i.hasOwnProperty("@@Plait/Map")?t[n]=i.clone():t[n]=o(i):t[n]=i}return t}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=o},{}],5:[function(e,t,n){},{}],6:[function(e,t,n){function r(){f=!1,a.length?c=a.concat(c):l=-1,c.length&&o()}function o(){if(!f){var e=setTimeout(r);f=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,f=!1,clearTimeout(e)}}function i(e,t){this.fun=e,this.array=t}function u(){}var a,s=t.exports={},c=[],f=!1,l=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new i(e,t)),1!==c.length||f||setTimeout(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=u,s.addListener=u,s.once=u,s.off=u,s.removeListener=u,s.removeAllListeners=u,s.emit=u,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],7:[function(e,t,n){!function(e){"use strict";var n="cuid",r=0,o=4,i=36,u=Math.pow(i,o),a=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},s=function(){return a((Math.random()*u<<0).toString(i),o)},c=function(){return r=u>r?r:0,r++,r-1},f=function(){var e,t="c",n=(new Date).getTime().toString(i),r=f.fingerprint(),u=s()+s();return e=a(c().toString(i),o),t+n+e+r+u};f.slug=function(){var e,t=(new Date).getTime().toString(36),n=f.fingerprint().slice(0,1)+f.fingerprint().slice(-1),r=s().slice(-2);return e=c().toString(36).slice(-4),t.slice(-2)+e+n+r},f.globalCount=function(){var e=function(){var e,t=0;for(e in window)t++;return t}();return f.globalCount=function(){return e},e},f.fingerprint=function(){return a((navigator.mimeTypes.length+navigator.userAgent.length).toString(36)+f.globalCount().toString(36),4)},e.register?e.register(n,f):"undefined"!=typeof t?t.exports=f:e[n]=f}(this.applitude||this)},{}],8:[function(e,t,n){function r(e,t,n){var r=o(e),i=r[t];i?Array.isArray(i)?-1===i.indexOf(n)&&i.push(n):i!==n&&(r[t]=[i,n]):r[t]=n}var o=e("ev-store");t.exports=r},{"ev-store":14}],9:[function(e,t,n){function r(e){return this instanceof r?(e=e||f,this.target=e.documentElement,this.events={},this.rawEventListeners={},void(this.globalListeners={})):new r(e)}function o(e,t){function n(t){var n=r[e]||[];if(n.length>0){var u=new h(t);u.currentTarget=o,a(n,u)}i(t.target,t,e)}var r=t.globalListeners,o=t.target;return n}function i(e,t,n){var r=u(e,n);if(r&&r.handlers.length>0){var o=new h(t);if(o.currentTarget=r.currentTarget,a(r.handlers,o),o._bubbles){var s=r.currentTarget.parentNode;i(s,t,n)}}}function u(e,t){if(null===e||"undefined"==typeof e)return null;var n=l(e),r=n[t],o=n.event;if(!r&&!o)return u(e.parentNode,t);var i=[].concat(r||[],o||[]);return new s(e,i)}function a(e,t){e.forEach(function(n){if("function"==typeof n)n(t);else if("function"==typeof n.handleEvent)n.handleEvent(t);else{if("dom-delegator-handle"!==n.type)throw new Error("dom-delegator: unknown handler found: "+JSON.stringify(e));y(n).func(t)}})}function s(e,t){this.currentTarget=e,this.handlers=t}function c(){this.type="dom-delegator-handle"}var f=e("global/document"),l=e("ev-store"),d=e("weakmap-shim/create-store"),p=e("./add-event.js"),v=e("./remove-event.js"),h=e("./proxy-event.js"),y=d();t.exports=r,r.prototype.addEventListener=p,r.prototype.removeEventListener=v,r.allocateHandle=function(e){var t=new c;return y(t).func=e,t},r.transformHandle=function(e,t){var n=y(e).func;return this.allocateHandle(function(e){t(e,n)})},r.prototype.addGlobalEventListener=function(e,t){var n=this.globalListeners[e]||[];-1===n.indexOf(t)&&n.push(t),this.globalListeners[e]=n},r.prototype.removeGlobalEventListener=function(e,t){var n=this.globalListeners[e]||[],r=n.indexOf(t);-1!==r&&n.splice(r,1)},r.prototype.listenTo=function(e){if(e in this.events||(this.events[e]=0),this.events[e]++,1===this.events[e]){var t=this.rawEventListeners[e];t||(t=this.rawEventListeners[e]=o(e,this)),this.target.addEventListener(e,t,!0)}},r.prototype.unlistenTo=function(e){if(e in this.events||(this.events[e]=0),0===this.events[e])throw new Error("already unlistened to event.");if(this.events[e]--,0===this.events[e]){var t=this.rawEventListeners[e];if(!t)throw new Error("dom-delegator#unlistenTo: cannot unlisten to "+e);this.target.removeEventListener(e,t,!0)}}},{"./add-event.js":8,"./proxy-event.js":12,"./remove-event.js":13,"ev-store":14,"global/document":15,"weakmap-shim/create-store":57}],10:[function(e,t,n){function r(e){e=e||{};var t=e.document||u,n=t[f];n||(n=t[f]=i());var r=l.delegators[n];if(r||(r=l.delegators[n]=new a(t)),e.defaultEvents!==!1)for(var o=0;o<d.length;o++)r.listenTo(d[o]);return r}var o=e("individual"),i=e("cuid"),u=e("global/document"),a=e("./dom-delegator.js"),s="13",c="__DOM_DELEGATOR_CACHE@"+s,f="__DOM_DELEGATOR_CACHE_TOKEN@"+s,l=o(c,{delegators:{}}),d=["blur","change","click","contextmenu","dblclick","error","focus","focusin","focusout","input","keydown","keypress","keyup","load","mousedown","mouseup","resize","select","submit","touchcancel","touchend","touchstart","unload"];t.exports=r,r.allocateHandle=a.allocateHandle,r.transformHandle=a.transformHandle},{"./dom-delegator.js":9,cuid:7,"global/document":15,individual:11}],11:[function(e,t,n){(function(e){function n(e,t){return r[e]?r[e]:(Object.defineProperty(r,e,{value:t,configurable:!0}),t)}var r="undefined"!=typeof window?window:"undefined"!=typeof e?e:{};t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(e,t,n){function r(e){if(!(this instanceof r))return new r(e);if(f.test(e.type))return new i(e);if(l.test(e.type))return new o(e);for(var t=0;t<a.length;t++){var n=a[t];this[n]=e[n]}this._rawEvent=e,this._bubbles=!1}function o(e){for(var t=0;t<a.length;t++){var n=a[t];this[n]=e[n]}for(var r=0;r<c.length;r++){var o=c[r];this[o]=e[o]}this._rawEvent=e}function i(e){for(var t=0;t<a.length;t++){var n=a[t];this[n]=e[n]}for(var r=0;r<s.length;r++){var o=s[r];this[o]=e[o]}this._rawEvent=e}var u=e("inherits"),a=["altKey","bubbles","cancelable","ctrlKey","eventPhase","metaKey","relatedTarget","shiftKey","target","timeStamp","type","view","which"],s=["char","charCode","key","keyCode"],c=["button","buttons","clientX","clientY","layerX","layerY","offsetX","offsetY","pageX","pageY","screenX","screenY","toElement"],f=/^key|input/,l=/^(?:mouse|pointer|contextmenu)|click/;t.exports=r,r.prototype.preventDefault=function(){this._rawEvent.preventDefault()},r.prototype.startPropagation=function(){this._bubbles=!0},u(o,r),u(i,r)},{inherits:18}],13:[function(e,t,n){function r(e,t,n){var r=o(e),i=r[t];if(i)if(Array.isArray(i)){var u=i.indexOf(n);-1!==u&&i.splice(u,1)}else i===n&&(r[t]=null)}var o=e("ev-store");t.exports=r},{"ev-store":14}],14:[function(e,t,n){"use strict";function r(e){var t=e[u];return t||(t=e[u]={}),t}var o=e("individual/one-version"),i="7";o("ev-store",i);var u="__EV_STORE_KEY@"+i;t.exports=r},{"individual/one-version":17}],15:[function(e,t,n){(function(n){var r="undefined"!=typeof n?n:"undefined"!=typeof window?window:{},o=e("min-document");if("undefined"!=typeof document)t.exports=document;else{var i=r["__GLOBAL_DOCUMENT_CACHE@4"];i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":5}],16:[function(e,t,n){(function(e){"use strict";function n(e,t){return e in r?r[e]:(r[e]=t,t)}var r="undefined"!=typeof window?window:"undefined"!=typeof e?e:{};t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(e,t,n){"use strict";function r(e,t,n){var r="__INDIVIDUAL_ONE_VERSION_"+e,i=r+"_ENFORCE_SINGLETON",u=o(i,t);if(u!==t)throw new Error("Can only have one copy of "+e+".\nYou already have version "+u+" installed.\nThis means you cannot install version "+t);return o(r,n)}var o=e("./index.js");t.exports=r},{"./index.js":16}],18:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],19:[function(e,t,n){"use strict";t.exports=function(e){return"object"==typeof e&&null!==e}},{}],20:[function(e,t,n){var r=e("./internal/_curry3");t.exports=r(function(e,t,n){var r={};for(var o in n)r[o]=n[o];return r[e]=t,r})},{"./internal/_curry3":24}],21:[function(e,t,n){var r=e("./internal/_curry3"),o=e("./internal/_slice"),i=e("./assoc");t.exports=r(function u(e,t,n){switch(e.length){case 0:return t;case 1:return i(e[0],t,n);default:return i(e[0],u(o(e,1),t,Object(n[e[0]])),n)}})},{"./assoc":20,"./internal/_curry3":24,"./internal/_slice":26}],22:[function(e,t,n){var r=e("./_isPlaceholder");t.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},{"./_isPlaceholder":25}],23:[function(e,t,n){var r=e("./_curry1"),o=e("./_isPlaceholder");t.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r(function(t){return e(n,t)});default:return o(n)&&o(i)?t:o(n)?r(function(t){return e(t,i)}):o(i)?r(function(t){return e(n,t)}):e(n,i)}}}},{"./_curry1":22,"./_isPlaceholder":25}],24:[function(e,t,n){var r=e("./_curry1"),o=e("./_curry2"),i=e("./_isPlaceholder");t.exports=function(e){return function t(n,u,a){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o(function(t,r){return e(n,t,r)});case 2:return i(n)&&i(u)?t:i(n)?o(function(t,n){return e(t,u,n)}):i(u)?o(function(t,r){return e(n,t,r)}):r(function(t){return e(n,u,t)});default:return i(n)&&i(u)&&i(a)?t:i(n)&&i(u)?o(function(t,n){return e(t,n,a)}):i(n)&&i(a)?o(function(t,n){return e(t,u,n)}):i(u)&&i(a)?o(function(t,r){return e(n,t,r)}):i(n)?r(function(t){return e(t,u,a)}):i(u)?r(function(t){return e(n,t,a)}):i(a)?r(function(t){return e(n,u,t)}):e(n,u,a)}}}},{"./_curry1":22,"./_curry2":23,"./_isPlaceholder":25}],25:[function(e,t,n){t.exports=function(e){return null!=e&&"object"==typeof e&&e["@@functional/placeholder"]===!0}},{}],26:[function(e,t,n){t.exports=function r(e,t,n){switch(arguments.length){case 1:return r(e,0,e.length);case 2:return r(e,t,e.length);default:for(var o=[],i=0,u=Math.max(0,Math.min(e.length,n)-t);u>i;)o[i]=e[t+i],i+=1;return o}}},{}],27:[function(e,t,n){var r=e("./internal/_curry2");t.exports=r(function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n})},{"./internal/_curry2":23}],28:[function(e,t,n){"use strict";function r(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}t.exports=r},{}],29:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(){return c}function r(e){f.push(e);var t=!0;return function(){if(t){t=!1;var n=f.indexOf(e);f.splice(n,1)}}}function o(e){if(!u["default"](e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,c=s(c,e)}finally{l=!1}return f.slice().forEach(function(e){return e()}),e}function i(e){s=e,o({type:a.INIT})}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,c=t,f=[],l=!1;return o({type:a.INIT}),{dispatch:o,subscribe:r,getState:n,replaceReducer:i}}n.__esModule=!0,n["default"]=o;var i=e("./utils/isPlainObject"),u=r(i),a={INIT:"@@redux/INIT"};n.ActionTypes=a},{"./utils/isPlainObject":35}],30:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var o=e("./createStore"),i=r(o),u=e("./utils/combineReducers"),a=r(u),s=e("./utils/bindActionCreators"),c=r(s),f=e("./utils/applyMiddleware"),l=r(f),d=e("./utils/compose"),p=r(d);n.createStore=i["default"],n.combineReducers=a["default"],n.bindActionCreators=c["default"],n.applyMiddleware=l["default"],n.compose=p["default"]},{"./createStore":29,"./utils/applyMiddleware":31,"./utils/bindActionCreators":32,"./utils/combineReducers":33,"./utils/compose":34}],31:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(n,r){var o=e(n,r),u=o.dispatch,s=[],c={getState:o.getState,dispatch:function(e){return u(e)}};return s=t.map(function(e){return e(c)}),u=a["default"].apply(void 0,s)(o.dispatch),i({},o,{dispatch:u})}}}n.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n["default"]=o;var u=e("./compose"),a=r(u);t.exports=n["default"]},{"./compose":34}],32:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(){return t(e.apply(void 0,arguments))}}function i(e,t){if("function"==typeof e)return o(e,t);if("object"!=typeof e||null===e||void 0===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return a["default"](e,function(e){return o(e,t)})}n.__esModule=!0,n["default"]=i;var u=e("./mapValues"),a=r(u);t.exports=n["default"]},{"./mapValues":36}],33:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return'Reducer "'+e+'" returned undefined handling '+r+". To ignore an action, you must explicitly return the previous state."}function u(e,t,n){var r=Object.keys(t),o=n&&n.type===c.ActionTypes.INIT?"initialState argument passed to createStore":"previous state received by the reducer";if(0===r.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!l["default"](e))return"The "+o+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+r.join('", "')+'"');var i=Object.keys(e).filter(function(e){return r.indexOf(e)<0});return i.length>0?"Unexpected "+(i.length>1?"keys":"key")+" "+('"'+i.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:c.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+c.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){var t,n=h["default"](e,function(e){return"function"==typeof e});try{a(n)}catch(o){t=o}var s=p["default"](n,function(){});return function(e,o){if(void 0===e&&(e=s),t)throw t;var a=!1,c=p["default"](n,function(t,n){var r=e[n],u=t(r,o);if("undefined"==typeof u){var s=i(n,o);throw new Error(s)}return a=a||u!==r,u});if("production"!==r.env.NODE_ENV){var f=u(e,c,o);f&&console.error(f)}return a?c:e}}n.__esModule=!0,n["default"]=s;var c=e("../createStore"),f=e("./isPlainObject"),l=o(f),d=e("./mapValues"),p=o(d),v=e("./pick"),h=o(v);t.exports=n["default"]}).call(this,e("_process"))},{"../createStore":29,"./isPlainObject":35,"./mapValues":36,"./pick":37,_process:6}],34:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],35:[function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&o(n)===i}n.__esModule=!0,n["default"]=r;var o=function(e){return Function.prototype.toString.call(e)},i=o(Object);t.exports=n["default"]},{}],36:[function(e,t,n){"use strict";function r(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r],r),n},{})}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],37:[function(e,t,n){"use strict";function r(e,t){return Object.keys(e).reduce(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{})}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],38:[function(e,t,n){var r=e("./vdom/create-element.js");t.exports=r},{"./vdom/create-element.js":42}],39:[function(e,t,n){var r=e("./vtree/diff.js");t.exports=r},{"./vtree/diff.js":56}],40:[function(e,t,n){var r=e("./vdom/patch.js");t.exports=r},{"./vdom/patch.js":45}],41:[function(e,t,n){function r(e,t,n){for(var r in t){var u=t[r];void 0===u?o(e,r,u,n):s(u)?(o(e,r,u,n),u.hook&&u.hook(e,r,n?n[r]:void 0)):a(u)?i(e,t,n,r,u):e[r]=u}}function o(e,t,n,r){if(r){var o=r[t];if(s(o))o.unhook&&o.unhook(e,t,n);else if("attributes"===t)for(var i in o)e.removeAttribute(i);else if("style"===t)for(var u in o)e.style[u]="";else"string"==typeof o?e[t]="":e[t]=null}}function i(e,t,n,r,o){var i=n?n[r]:void 0;if("attributes"!==r){if(i&&a(i)&&u(i)!==u(o))return void(e[r]=o);a(e[r])||(e[r]={});var s="style"===r?"":void 0;for(var c in o){var f=o[c];e[r][c]=void 0===f?s:f}}else for(var l in o){var d=o[l];void 0===d?e.removeAttribute(l):e.setAttribute(l,d)}}function u(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var a=e("is-object"),s=e("../vnode/is-vhook.js");t.exports=r},{"../vnode/is-vhook.js":49,"is-object":19}],42:[function(e,t,n){function r(e,t){var n=t?t.document||o:o,f=t?t.warn:null;if(e=c(e).a,s(e))return e.init();if(a(e))return n.createTextNode(e.text);if(!u(e))return f&&f("Item is not a valid virtual dom node",e),null;var l=null===e.namespace?n.createElement(e.tagName):n.createElementNS(e.namespace,e.tagName),d=e.properties;i(l,d);for(var p=e.children,v=0;v<p.length;v++){var h=r(p[v],t);h&&l.appendChild(h)}return l}var o=e("global/document"),i=e("./apply-properties"),u=e("../vnode/is-vnode.js"),a=e("../vnode/is-vtext.js"),s=e("../vnode/is-widget.js"),c=e("../vnode/handle-thunk.js");t.exports=r},{"../vnode/handle-thunk.js":47,"../vnode/is-vnode.js":50,"../vnode/is-vtext.js":51,"../vnode/is-widget.js":52,"./apply-properties":41,"global/document":15}],43:[function(e,t,n){function r(e,t,n,r){return n&&0!==n.length?(n.sort(u),o(e,t,n,r,0)):{}}function o(e,t,n,r,u){if(r=r||{},e){i(n,u,u)&&(r[u]=e);var s=t.children;if(s)for(var c=e.childNodes,f=0;f<t.children.length;f++){u+=1;var l=s[f]||a,d=u+(l.count||0);i(n,u,d)&&o(c[f],l,n,r,u),u=d}}return r}function i(e,t,n){if(0===e.length)return!1;for(var r,o,i=0,u=e.length-1;u>=i;){if(r=(u+i)/2>>0,o=e[r],i===u)return o>=t&&n>=o;if(t>o)i=r+1;else{if(!(o>n))return!0;u=r-1}}return!1}function u(e,t){return e>t?1:-1}var a={};t.exports=r},{}],44:[function(e,t,n){function r(e,t,n){var r=e.type,c=e.vNode,p=e.patch;switch(r){case v.REMOVE:return o(t,c);case v.INSERT:return i(t,p,n);case v.VTEXT:return u(t,c,p,n);case v.WIDGET:return a(t,c,p,n);case v.VNODE:return s(t,c,p,n);case v.ORDER:return f(t,p),t;case v.PROPS:return d(t,p,c.properties),t;case v.THUNK:return l(t,n.patch(t,p,n));default:return t}}function o(e,t){var n=e.parentNode;return n&&n.removeChild(e),c(e,t),null}function i(e,t,n){var r=n.render(t,n);return e&&e.appendChild(r),e}function u(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var i=e.parentNode;o=r.render(n,r),i&&o!==e&&i.replaceChild(o,e)}return o}function a(e,t,n,r){var o,i=h(t,n);o=i?n.update(t,e)||e:r.render(n,r);var u=e.parentNode;return u&&o!==e&&u.replaceChild(o,e),i||c(e,t),o}function s(e,t,n,r){var o=e.parentNode,i=r.render(n,r);return o&&i!==e&&o.replaceChild(i,e),i}function c(e,t){"function"==typeof t.destroy&&p(t)&&t.destroy(e)}function f(e,t){for(var n,r,o,i=e.childNodes,u={},a=0;a<t.removes.length;a++)r=t.removes[a],n=i[r.from],r.key&&(u[r.key]=n),e.removeChild(n);for(var s=i.length,c=0;c<t.inserts.length;c++)o=t.inserts[c],n=u[o.key],e.insertBefore(n,o.to>=s++?null:i[o.to])}function l(e,t){return e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e),t}var d=e("./apply-properties"),p=e("../vnode/is-widget.js"),v=e("../vnode/vpatch.js"),h=e("./update-widget");t.exports=r},{"../vnode/is-widget.js":52,"../vnode/vpatch.js":54,"./apply-properties":41,"./update-widget":46}],45:[function(e,t,n){function r(e,t,n){return n=n||{},n.patch=n.patch&&n.patch!==r?n.patch:o,n.render=n.render||c,n.patch(e,t,n)}function o(e,t,n){var r=u(t);if(0===r.length)return e;var o=f(e,t.a,r),s=e.ownerDocument;n.document||s===a||(n.document=s);for(var c=0;c<r.length;c++){var l=r[c];e=i(e,o[l],t[l],n)}return e}function i(e,t,n,r){if(!t)return e;var o;if(s(n))for(var i=0;i<n.length;i++)o=l(n[i],t,r),t===e&&(e=o);else o=l(n,t,r),t===e&&(e=o);return e}function u(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}var a=e("global/document"),s=e("x-is-array"),c=e("./create-element"),f=e("./dom-index"),l=e("./patch-op");t.exports=r},{"./create-element":42,"./dom-index":43,"./patch-op":44,"global/document":15,"x-is-array":59}],46:[function(e,t,n){function r(e,t){return o(e)&&o(t)?"name"in e&&"name"in t?e.id===t.id:e.init===t.init:!1}var o=e("../vnode/is-widget.js");t.exports=r},{"../vnode/is-widget.js":52}],47:[function(e,t,n){function r(e,t){var n=e,r=t;return s(t)&&(r=o(t,e)),s(e)&&(n=o(e,null)),{a:n,b:r}}function o(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(i(n)||u(n)||a(n)))throw new Error("thunk did not return a valid node");return n}var i=e("./is-vnode"),u=e("./is-vtext"),a=e("./is-widget"),s=e("./is-thunk");t.exports=r},{"./is-thunk":48,"./is-vnode":50,"./is-vtext":51,"./is-widget":52}],48:[function(e,t,n){function r(e){return e&&"Thunk"===e.type}t.exports=r},{}],49:[function(e,t,n){function r(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))}t.exports=r},{}],50:[function(e,t,n){function r(e){return e&&"VirtualNode"===e.type&&e.version===o}var o=e("./version");t.exports=r},{"./version":53}],51:[function(e,t,n){function r(e){return e&&"VirtualText"===e.type&&e.version===o}var o=e("./version");t.exports=r},{"./version":53}],52:[function(e,t,n){function r(e){return e&&"Widget"===e.type}t.exports=r},{}],53:[function(e,t,n){t.exports="2"},{}],54:[function(e,t,n){function r(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}var o=e("./version");r.NONE=0,r.VTEXT=1,r.VNODE=2,r.WIDGET=3,r.PROPS=4,r.ORDER=5,r.INSERT=6,r.REMOVE=7,r.THUNK=8,t.exports=r,r.prototype.version=o,r.prototype.type="VirtualPatch"},{"./version":53}],55:[function(e,t,n){function r(e,t){var n;for(var a in e){a in t||(n=n||{},n[a]=void 0);var s=e[a],c=t[a];if(s!==c)if(i(s)&&i(c))if(o(c)!==o(s))n=n||{},n[a]=c;else if(u(c))n=n||{},n[a]=c;else{var f=r(s,c);f&&(n=n||{},n[a]=f)}else n=n||{},n[a]=c}for(var l in t)l in e||(n=n||{},n[l]=t[l]);return n}function o(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var i=e("is-object"),u=e("../vnode/is-vhook");t.exports=r},{"../vnode/is-vhook":49,"is-object":19}],56:[function(e,t,n){function r(e,t){var n={a:e};return o(e,t,n,0),n}function o(e,t,n,r){if(e!==t){var o=n[r],a=!1;if(_(e)||_(t))s(e,t,n,r);else if(null==t)b(e)||(u(e,n,r),o=n[r]),o=h(o,new g(g.REMOVE,e,t));else if(m(t))if(m(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var c=k(e.properties,t.properties);c&&(o=h(o,new g(g.PROPS,e,c))),o=i(e,t,n,o,r)}else o=h(o,new g(g.VNODE,e,t)),a=!0;else o=h(o,new g(g.VNODE,e,t)),a=!0;else w(t)?w(e)?e.text!==t.text&&(o=h(o,new g(g.VTEXT,e,t))):(o=h(o,new g(g.VTEXT,e,t)),a=!0):b(t)&&(b(e)||(a=!0),o=h(o,new g(g.WIDGET,e,t)));o&&(n[r]=o),a&&u(e,n,r)}}function i(e,t,n,r,i){for(var u=e.children,a=d(u,t.children),s=a.children,c=u.length,f=s.length,l=c>f?c:f,p=0;l>p;p++){var v=u[p],y=s[p];i+=1,v?o(v,y,n,i):y&&(r=h(r,new g(g.INSERT,null,y))),m(v)&&v.count&&(i+=v.count)}return a.moves&&(r=h(r,new g(g.ORDER,e,a.moves))),r}function u(e,t,n){f(e,t,n),a(e,t,n)}function a(e,t,n){if(b(e))"function"==typeof e.destroy&&(t[n]=h(t[n],new g(g.REMOVE,e,null)));else if(m(e)&&(e.hasWidgets||e.hasThunks))for(var r=e.children,o=r.length,i=0;o>i;i++){var u=r[i];n+=1,a(u,t,n),m(u)&&u.count&&(n+=u.count)}else _(e)&&s(e,null,t,n)}function s(e,t,n,o){var i=x(e,t),u=r(i.a,i.b);c(u)&&(n[o]=new g(g.THUNK,null,u))}function c(e){for(var t in e)if("a"!==t)return!0;return!1}function f(e,t,n){if(m(e)){if(e.hooks&&(t[n]=h(t[n],new g(g.PROPS,e,l(e.hooks)))),e.descendantHooks||e.hasThunks)for(var r=e.children,o=r.length,i=0;o>i;i++){var u=r[i];n+=1,f(u,t,n),m(u)&&u.count&&(n+=u.count)}}else _(e)&&s(e,null,t,n)}function l(e){var t={};for(var n in e)t[n]=void 0;return t}function d(e,t){var n=v(t),r=n.keys,o=n.free;if(o.length===t.length)return{children:t,moves:null};var i=v(e),u=i.keys,a=i.free;if(a.length===e.length)return{children:t,moves:null};for(var s=[],c=0,f=o.length,l=0,d=0;d<e.length;d++){var h,y=e[d];y.key?r.hasOwnProperty(y.key)?(h=r[y.key],s.push(t[h])):(h=d-l++,s.push(null)):f>c?(h=o[c++],s.push(t[h])):(h=d-l++,s.push(null))}for(var g=c>=o.length?t.length:o[c],m=0;m<t.length;m++){var w=t[m];w.key?u.hasOwnProperty(w.key)||s.push(w):m>=g&&s.push(w)}for(var b,_=s.slice(),x=0,k=[],E=[],j=0;j<t.length;){var O=t[j];for(b=_[x];null===b&&_.length;)k.push(p(_,x,null)),b=_[x];b&&b.key===O.key?(x++,j++):O.key?(b&&b.key&&r[b.key]!==j+1?(k.push(p(_,x,b.key)),b=_[x],b&&b.key===O.key?x++:E.push({key:O.key,to:j})):E.push({key:O.key,to:j}),j++):b&&b.key&&k.push(p(_,x,b.key))}for(;x<_.length;)b=_[x],k.push(p(_,x,b&&b.key));return k.length!==l||E.length?{children:s,moves:{removes:k,inserts:E}}:{children:s,moves:null}}function p(e,t,n){return e.splice(t,1),{from:t,key:n}}function v(e){for(var t={},n=[],r=e.length,o=0;r>o;o++){var i=e[o];i.key?t[i.key]=o:n.push(o)}return{keys:t,free:n}}function h(e,t){return e?(y(e)?e.push(t):e=[e,t],e):t}var y=e("x-is-array"),g=e("../vnode/vpatch"),m=e("../vnode/is-vnode"),w=e("../vnode/is-vtext"),b=e("../vnode/is-widget"),_=e("../vnode/is-thunk"),x=e("../vnode/handle-thunk"),k=e("./diff-props");t.exports=r},{"../vnode/handle-thunk":47,"../vnode/is-thunk":48,"../vnode/is-vnode":50,"../vnode/is-vtext":51,"../vnode/is-widget":52,"../vnode/vpatch":54,"./diff-props":55,"x-is-array":59}],57:[function(e,t,n){function r(){var e={};return function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)throw new Error("Weakmap-shim: Key must be object");
var n=t.valueOf(e);return n&&n.identity===e?n:o(t,e)}}var o=e("./hidden-store.js");t.exports=r},{"./hidden-store.js":58}],58:[function(e,t,n){function r(e,t){var n={identity:t},r=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?r.apply(this,arguments):n},writable:!0}),n}t.exports=r},{}],59:[function(e,t,n){function r(e){return"[object Array]"===i.call(e)}var o=Array.isArray,i=Object.prototype.toString;t.exports=o||r},{}]},{},[3])(3)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.plait=e()}}(function(){return function e(t,n,r){function o(u,a){if(!n[u]){if(!t[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.init,n=e.update,r=e.view,o=a(t),u=s(o,2),c=u[0],f=u[1],l=function(e){return e},d=E(function(){var e=arguments.length<=0||void 0===arguments[0]?c:arguments[0],t=arguments[1],r=n(e,t,l);return"undefined"==typeof r?e:r});l=function(e){return function(t){t&&(e.event=t),d.dispatch(e)}},f&&d.dispatch(f);var p=r(c,l),v=(0,w["default"])(p);return d.subscribe(function(){p=i(v,p,r(d.getState(),l))}),v}function i(e,t,n){return(0,g["default"])(e,(0,h["default"])(t,n)),n}function u(e,t){var n=e.init,r=a(n),o=s(r,2),i=o[0],u=o[1];return t&&u&&t(i)(u)(),i}function a(e){var t=e(),n=Array.isArray(t)?t:[t];return[new k["default"](n[0]),n[1]]}var s=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a["return"]&&a["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();Object.defineProperty(n,"__esModule",{value:!0}),n.forwardDispatch=void 0,n.start=o,n.initializeComponent=u;var c=e("ramda/src/curry"),f=r(c),l=e("redux"),d=e("redux-thunk"),p=r(d),v=e("virtual-dom/diff"),h=r(v),y=e("virtual-dom/patch"),g=r(y),m=e("virtual-dom/create-element"),w=r(m),b=e("dom-delegator"),_=r(b),x=e("./Map"),k=r(x),E=((0,_["default"])(),(0,l.applyMiddleware)(p["default"])(l.createStore)),j=n.forwardDispatch=(0,f["default"])(function(e,t,n,r){return function(o){var i=t.bind(void 0,e,o);return n("function"==typeof o?function(n){var i=function(){return r},u=j(e,t,n,r);o(u,i)}:i())}})},{"./Map":2,"dom-delegator":10,"ramda/src/curry":22,redux:34,"redux-thunk":32,"virtual-dom/create-element":42,"virtual-dom/diff":43,"virtual-dom/patch":44}],2:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(n,"__esModule",{value:!0});var a=e("ramda/src/assocPath"),s=r(a),c=e("./utils/clone"),f=r(c),l=e("ramda/src/path"),d=r(l),p=function(){function e(t){if(i(this,e),"object"!==("undefined"==typeof t?"undefined":o(t)))throw new TypeError(t,"is not an object");this.obj=t,this["@@Plait/Map"]=1}return u(e,[{key:"clone",value:function(){return new e(this.toObject())}},{key:"toObject",value:function(){return(0,f["default"])(this.obj)}},{key:"set",value:function(t,n){var r=this.toObject();return r[t]=n,new e(r)}},{key:"get",value:function(e){var t=this.toObject();return t[e]}},{key:"update",value:function(e,t){return this.set(e,t(this.get(e)))}},{key:"setIn",value:function(t,n){var r=(0,s["default"])(t,n,this.obj);return new e(r)}},{key:"getIn",value:function(e){return(0,d["default"])(e,this.obj)}}]),e}();n["default"]=p},{"./utils/clone":4,"ramda/src/assocPath":21,"ramda/src/path":31}],3:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}Object.defineProperty(n,"__esModule",{value:!0}),n.Map=n.App=void 0;var i=e("./App"),u=o(i),a=e("./Map"),s=r(a);n.App=u,n.Map=s["default"]},{"./App":1,"./Map":2}],4:[function(e,t,n){"use strict";function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function o(e){var t=[];for(var n in e){var i=e[n];"object"===("undefined"==typeof i?"undefined":r(i))?i.hasOwnProperty("@@Plait/Map")?t[n]=i.clone():t[n]=o(i):t[n]=i}return t}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=o},{}],5:[function(e,t,n){},{}],6:[function(e,t,n){function r(){f=!1,a.length?c=a.concat(c):l=-1,c.length&&o()}function o(){if(!f){var e=setTimeout(r);f=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,f=!1,clearTimeout(e)}}function i(e,t){this.fun=e,this.array=t}function u(){}var a,s=t.exports={},c=[],f=!1,l=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new i(e,t)),1!==c.length||f||setTimeout(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=u,s.addListener=u,s.once=u,s.off=u,s.removeListener=u,s.removeAllListeners=u,s.emit=u,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],7:[function(e,t,n){!function(e){"use strict";var n="cuid",r=0,o=4,i=36,u=Math.pow(i,o),a=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},s=function(){return a((Math.random()*u<<0).toString(i),o)},c=function(){return r=u>r?r:0,r++,r-1},f=function(){var e,t="c",n=(new Date).getTime().toString(i),r=f.fingerprint(),u=s()+s();return e=a(c().toString(i),o),t+n+e+r+u};f.slug=function(){var e,t=(new Date).getTime().toString(36),n=f.fingerprint().slice(0,1)+f.fingerprint().slice(-1),r=s().slice(-2);return e=c().toString(36).slice(-4),t.slice(-2)+e+n+r},f.globalCount=function(){var e=function(){var e,t=0;for(e in window)t++;return t}();return f.globalCount=function(){return e},e},f.fingerprint=function(){return a((navigator.mimeTypes.length+navigator.userAgent.length).toString(36)+f.globalCount().toString(36),4)},e.register?e.register(n,f):"undefined"!=typeof t?t.exports=f:e[n]=f}(this.applitude||this)},{}],8:[function(e,t,n){function r(e,t,n){var r=o(e),i=r[t];i?Array.isArray(i)?-1===i.indexOf(n)&&i.push(n):i!==n&&(r[t]=[i,n]):r[t]=n}var o=e("ev-store");t.exports=r},{"ev-store":14}],9:[function(e,t,n){function r(e){return this instanceof r?(e=e||f,this.target=e.documentElement,this.events={},this.rawEventListeners={},void(this.globalListeners={})):new r(e)}function o(e,t){function n(t){var n=r[e]||[];if(n.length>0){var u=new h(t);u.currentTarget=o,a(n,u)}i(t.target,t,e)}var r=t.globalListeners,o=t.target;return n}function i(e,t,n){var r=u(e,n);if(r&&r.handlers.length>0){var o=new h(t);if(o.currentTarget=r.currentTarget,a(r.handlers,o),o._bubbles){var s=r.currentTarget.parentNode;i(s,t,n)}}}function u(e,t){if(null===e||"undefined"==typeof e)return null;var n=l(e),r=n[t],o=n.event;if(!r&&!o)return u(e.parentNode,t);var i=[].concat(r||[],o||[]);return new s(e,i)}function a(e,t){e.forEach(function(n){if("function"==typeof n)n(t);else if("function"==typeof n.handleEvent)n.handleEvent(t);else{if("dom-delegator-handle"!==n.type)throw new Error("dom-delegator: unknown handler found: "+JSON.stringify(e));y(n).func(t)}})}function s(e,t){this.currentTarget=e,this.handlers=t}function c(){this.type="dom-delegator-handle"}var f=e("global/document"),l=e("ev-store"),d=e("weakmap-shim/create-store"),p=e("./add-event.js"),v=e("./remove-event.js"),h=e("./proxy-event.js"),y=d();t.exports=r,r.prototype.addEventListener=p,r.prototype.removeEventListener=v,r.allocateHandle=function(e){var t=new c;return y(t).func=e,t},r.transformHandle=function(e,t){var n=y(e).func;return this.allocateHandle(function(e){t(e,n)})},r.prototype.addGlobalEventListener=function(e,t){var n=this.globalListeners[e]||[];-1===n.indexOf(t)&&n.push(t),this.globalListeners[e]=n},r.prototype.removeGlobalEventListener=function(e,t){var n=this.globalListeners[e]||[],r=n.indexOf(t);-1!==r&&n.splice(r,1)},r.prototype.listenTo=function(e){if(e in this.events||(this.events[e]=0),this.events[e]++,1===this.events[e]){var t=this.rawEventListeners[e];t||(t=this.rawEventListeners[e]=o(e,this)),this.target.addEventListener(e,t,!0)}},r.prototype.unlistenTo=function(e){if(e in this.events||(this.events[e]=0),0===this.events[e])throw new Error("already unlistened to event.");if(this.events[e]--,0===this.events[e]){var t=this.rawEventListeners[e];if(!t)throw new Error("dom-delegator#unlistenTo: cannot unlisten to "+e);this.target.removeEventListener(e,t,!0)}}},{"./add-event.js":8,"./proxy-event.js":12,"./remove-event.js":13,"ev-store":14,"global/document":15,"weakmap-shim/create-store":61}],10:[function(e,t,n){function r(e){e=e||{};var t=e.document||u,n=t[f];n||(n=t[f]=i());var r=l.delegators[n];if(r||(r=l.delegators[n]=new a(t)),e.defaultEvents!==!1)for(var o=0;o<d.length;o++)r.listenTo(d[o]);return r}var o=e("individual"),i=e("cuid"),u=e("global/document"),a=e("./dom-delegator.js"),s="13",c="__DOM_DELEGATOR_CACHE@"+s,f="__DOM_DELEGATOR_CACHE_TOKEN@"+s,l=o(c,{delegators:{}}),d=["blur","change","click","contextmenu","dblclick","error","focus","focusin","focusout","input","keydown","keypress","keyup","load","mousedown","mouseup","resize","select","submit","touchcancel","touchend","touchstart","unload"];t.exports=r,r.allocateHandle=a.allocateHandle,r.transformHandle=a.transformHandle},{"./dom-delegator.js":9,cuid:7,"global/document":15,individual:11}],11:[function(e,t,n){(function(e){function n(e,t){return r[e]?r[e]:(Object.defineProperty(r,e,{value:t,configurable:!0}),t)}var r="undefined"!=typeof window?window:"undefined"!=typeof e?e:{};t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(e,t,n){function r(e){if(!(this instanceof r))return new r(e);if(f.test(e.type))return new i(e);if(l.test(e.type))return new o(e);for(var t=0;t<a.length;t++){var n=a[t];this[n]=e[n]}this._rawEvent=e,this._bubbles=!1}function o(e){for(var t=0;t<a.length;t++){var n=a[t];this[n]=e[n]}for(var r=0;r<c.length;r++){var o=c[r];this[o]=e[o]}this._rawEvent=e}function i(e){for(var t=0;t<a.length;t++){var n=a[t];this[n]=e[n]}for(var r=0;r<s.length;r++){var o=s[r];this[o]=e[o]}this._rawEvent=e}var u=e("inherits"),a=["altKey","bubbles","cancelable","ctrlKey","eventPhase","metaKey","relatedTarget","shiftKey","target","timeStamp","type","view","which"],s=["char","charCode","key","keyCode"],c=["button","buttons","clientX","clientY","layerX","layerY","offsetX","offsetY","pageX","pageY","screenX","screenY","toElement"],f=/^key|input/,l=/^(?:mouse|pointer|contextmenu)|click/;t.exports=r,r.prototype.preventDefault=function(){this._rawEvent.preventDefault()},r.prototype.startPropagation=function(){this._bubbles=!0},u(o,r),u(i,r)},{inherits:18}],13:[function(e,t,n){function r(e,t,n){var r=o(e),i=r[t];if(i)if(Array.isArray(i)){var u=i.indexOf(n);-1!==u&&i.splice(u,1)}else i===n&&(r[t]=null)}var o=e("ev-store");t.exports=r},{"ev-store":14}],14:[function(e,t,n){"use strict";function r(e){var t=e[u];return t||(t=e[u]={}),t}var o=e("individual/one-version"),i="7";o("ev-store",i);var u="__EV_STORE_KEY@"+i;t.exports=r},{"individual/one-version":17}],15:[function(e,t,n){(function(n){var r="undefined"!=typeof n?n:"undefined"!=typeof window?window:{},o=e("min-document");if("undefined"!=typeof document)t.exports=document;else{var i=r["__GLOBAL_DOCUMENT_CACHE@4"];i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":5}],16:[function(e,t,n){(function(e){"use strict";function n(e,t){return e in r?r[e]:(r[e]=t,t)}var r="undefined"!=typeof window?window:"undefined"!=typeof e?e:{};t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(e,t,n){"use strict";function r(e,t,n){var r="__INDIVIDUAL_ONE_VERSION_"+e,i=r+"_ENFORCE_SINGLETON",u=o(i,t);if(u!==t)throw new Error("Can only have one copy of "+e+".\nYou already have version "+u+" installed.\nThis means you cannot install version "+t);return o(r,n)}var o=e("./index.js");t.exports=r},{"./index.js":16}],18:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],19:[function(e,t,n){"use strict";t.exports=function(e){return"object"==typeof e&&null!==e}},{}],20:[function(e,t,n){var r=e("./internal/_curry3");t.exports=r(function(e,t,n){var r={};for(var o in n)r[o]=n[o];return r[e]=t,r})},{"./internal/_curry3":27}],21:[function(e,t,n){var r=e("./internal/_curry3"),o=e("./internal/_slice"),i=e("./assoc");t.exports=r(function u(e,t,n){switch(e.length){case 0:return t;case 1:return i(e[0],t,n);default:return i(e[0],u(o(e,1),t,Object(n[e[0]])),n)}})},{"./assoc":20,"./internal/_curry3":27,"./internal/_slice":30}],22:[function(e,t,n){var r=e("./internal/_curry1"),o=e("./curryN");t.exports=r(function(e){return o(e.length,e)})},{"./curryN":23,"./internal/_curry1":25}],23:[function(e,t,n){var r=e("./internal/_arity"),o=e("./internal/_curry1"),i=e("./internal/_curry2"),u=e("./internal/_curryN");t.exports=i(function(e,t){return 1===e?o(t):r(e,u(e,[],t))})},{"./internal/_arity":24,"./internal/_curry1":25,"./internal/_curry2":26,"./internal/_curryN":28}],24:[function(e,t,n){t.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,u){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,u,a){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,u,a,s){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,u,a,s,c){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,u,a,s,c,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},{}],25:[function(e,t,n){var r=e("./_isPlaceholder");t.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},{"./_isPlaceholder":29}],26:[function(e,t,n){var r=e("./_curry1"),o=e("./_isPlaceholder");t.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r(function(t){return e(n,t)});default:return o(n)&&o(i)?t:o(n)?r(function(t){return e(t,i)}):o(i)?r(function(t){return e(n,t)}):e(n,i)}}}},{"./_curry1":25,"./_isPlaceholder":29}],27:[function(e,t,n){var r=e("./_curry1"),o=e("./_curry2"),i=e("./_isPlaceholder");t.exports=function(e){return function t(n,u,a){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o(function(t,r){return e(n,t,r)});case 2:return i(n)&&i(u)?t:i(n)?o(function(t,n){return e(t,u,n)}):i(u)?o(function(t,r){return e(n,t,r)}):r(function(t){return e(n,u,t)});default:return i(n)&&i(u)&&i(a)?t:i(n)&&i(u)?o(function(t,n){return e(t,n,a)}):i(n)&&i(a)?o(function(t,n){return e(t,u,n)}):i(u)&&i(a)?o(function(t,r){return e(n,t,r)}):i(n)?r(function(t){return e(t,u,a)}):i(u)?r(function(t){return e(n,t,a)}):i(a)?r(function(t){return e(n,u,t)}):e(n,u,a)}}}},{"./_curry1":25,"./_curry2":26,"./_isPlaceholder":29}],28:[function(e,t,n){var r=e("./_arity"),o=e("./_isPlaceholder");t.exports=function i(e,t,n){return function(){for(var u=[],a=0,s=e,c=0;c<t.length||a<arguments.length;){var f;c<t.length&&(!o(t[c])||a>=arguments.length)?f=t[c]:(f=arguments[a],a+=1),u[c]=f,o(f)||(s-=1),c+=1}return 0>=s?n.apply(this,u):r(s,i(e,u,n))}}},{"./_arity":24,"./_isPlaceholder":29}],29:[function(e,t,n){t.exports=function(e){return null!=e&&"object"==typeof e&&e["@@functional/placeholder"]===!0}},{}],30:[function(e,t,n){t.exports=function r(e,t,n){switch(arguments.length){case 1:return r(e,0,e.length);case 2:return r(e,t,e.length);default:for(var o=[],i=0,u=Math.max(0,Math.min(e.length,n)-t);u>i;)o[i]=e[t+i],i+=1;return o}}},{}],31:[function(e,t,n){var r=e("./internal/_curry2");t.exports=r(function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n})},{"./internal/_curry2":26}],32:[function(e,t,n){"use strict";function r(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}t.exports=r},{}],33:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(){return c}function r(e){f.push(e);var t=!0;return function(){if(t){t=!1;var n=f.indexOf(e);f.splice(n,1)}}}function o(e){if(!u["default"](e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,c=s(c,e)}finally{l=!1}return f.slice().forEach(function(e){return e()}),e}function i(e){s=e,o({type:a.INIT})}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,c=t,f=[],l=!1;return o({type:a.INIT}),{dispatch:o,subscribe:r,getState:n,replaceReducer:i}}n.__esModule=!0,n["default"]=o;var i=e("./utils/isPlainObject"),u=r(i),a={INIT:"@@redux/INIT"};n.ActionTypes=a},{"./utils/isPlainObject":39}],34:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var o=e("./createStore"),i=r(o),u=e("./utils/combineReducers"),a=r(u),s=e("./utils/bindActionCreators"),c=r(s),f=e("./utils/applyMiddleware"),l=r(f),d=e("./utils/compose"),p=r(d);n.createStore=i["default"],n.combineReducers=a["default"],n.bindActionCreators=c["default"],n.applyMiddleware=l["default"],n.compose=p["default"]},{"./createStore":33,"./utils/applyMiddleware":35,"./utils/bindActionCreators":36,"./utils/combineReducers":37,"./utils/compose":38}],35:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(n,r){var o=e(n,r),u=o.dispatch,s=[],c={getState:o.getState,dispatch:function(e){return u(e)}};return s=t.map(function(e){return e(c)}),u=a["default"].apply(void 0,s)(o.dispatch),i({},o,{dispatch:u})}}}n.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n["default"]=o;var u=e("./compose"),a=r(u);t.exports=n["default"]},{"./compose":38}],36:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(){return t(e.apply(void 0,arguments))}}function i(e,t){if("function"==typeof e)return o(e,t);if("object"!=typeof e||null===e||void 0===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return a["default"](e,function(e){return o(e,t)})}n.__esModule=!0,n["default"]=i;var u=e("./mapValues"),a=r(u);t.exports=n["default"]},{"./mapValues":40}],37:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return'Reducer "'+e+'" returned undefined handling '+r+". To ignore an action, you must explicitly return the previous state."}function u(e,t,n){var r=Object.keys(t),o=n&&n.type===c.ActionTypes.INIT?"initialState argument passed to createStore":"previous state received by the reducer";if(0===r.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!l["default"](e))return"The "+o+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+r.join('", "')+'"');var i=Object.keys(e).filter(function(e){return r.indexOf(e)<0});return i.length>0?"Unexpected "+(i.length>1?"keys":"key")+" "+('"'+i.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:c.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+c.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){var t,n=h["default"](e,function(e){return"function"==typeof e});try{a(n)}catch(o){t=o}var s=p["default"](n,function(){});return function(e,o){if(void 0===e&&(e=s),t)throw t;var a=!1,c=p["default"](n,function(t,n){var r=e[n],u=t(r,o);if("undefined"==typeof u){var s=i(n,o);throw new Error(s)}return a=a||u!==r,u});if("production"!==r.env.NODE_ENV){var f=u(e,c,o);f&&console.error(f)}return a?c:e}}n.__esModule=!0,n["default"]=s;var c=e("../createStore"),f=e("./isPlainObject"),l=o(f),d=e("./mapValues"),p=o(d),v=e("./pick"),h=o(v);t.exports=n["default"]}).call(this,e("_process"))},{"../createStore":33,"./isPlainObject":39,"./mapValues":40,"./pick":41,_process:6}],38:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],39:[function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&o(n)===i}n.__esModule=!0,n["default"]=r;var o=function(e){return Function.prototype.toString.call(e)},i=o(Object);t.exports=n["default"]},{}],40:[function(e,t,n){"use strict";function r(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r],r),n},{})}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],41:[function(e,t,n){"use strict";function r(e,t){return Object.keys(e).reduce(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{})}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],42:[function(e,t,n){var r=e("./vdom/create-element.js");t.exports=r},{"./vdom/create-element.js":46}],43:[function(e,t,n){var r=e("./vtree/diff.js");t.exports=r},{"./vtree/diff.js":60}],44:[function(e,t,n){var r=e("./vdom/patch.js");t.exports=r},{"./vdom/patch.js":49}],45:[function(e,t,n){function r(e,t,n){for(var r in t){var u=t[r];void 0===u?o(e,r,u,n):s(u)?(o(e,r,u,n),u.hook&&u.hook(e,r,n?n[r]:void 0)):a(u)?i(e,t,n,r,u):e[r]=u}}function o(e,t,n,r){if(r){var o=r[t];if(s(o))o.unhook&&o.unhook(e,t,n);else if("attributes"===t)for(var i in o)e.removeAttribute(i);else if("style"===t)for(var u in o)e.style[u]="";else"string"==typeof o?e[t]="":e[t]=null}}function i(e,t,n,r,o){var i=n?n[r]:void 0;if("attributes"!==r){if(i&&a(i)&&u(i)!==u(o))return void(e[r]=o);a(e[r])||(e[r]={});var s="style"===r?"":void 0;for(var c in o){var f=o[c];e[r][c]=void 0===f?s:f}}else for(var l in o){var d=o[l];void 0===d?e.removeAttribute(l):e.setAttribute(l,d)}}function u(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var a=e("is-object"),s=e("../vnode/is-vhook.js");t.exports=r},{"../vnode/is-vhook.js":53,"is-object":19}],46:[function(e,t,n){function r(e,t){var n=t?t.document||o:o,f=t?t.warn:null;if(e=c(e).a,s(e))return e.init();if(a(e))return n.createTextNode(e.text);if(!u(e))return f&&f("Item is not a valid virtual dom node",e),null;var l=null===e.namespace?n.createElement(e.tagName):n.createElementNS(e.namespace,e.tagName),d=e.properties;i(l,d);for(var p=e.children,v=0;v<p.length;v++){var h=r(p[v],t);h&&l.appendChild(h)}return l}var o=e("global/document"),i=e("./apply-properties"),u=e("../vnode/is-vnode.js"),a=e("../vnode/is-vtext.js"),s=e("../vnode/is-widget.js"),c=e("../vnode/handle-thunk.js");t.exports=r},{"../vnode/handle-thunk.js":51,"../vnode/is-vnode.js":54,"../vnode/is-vtext.js":55,"../vnode/is-widget.js":56,"./apply-properties":45,"global/document":15}],47:[function(e,t,n){function r(e,t,n,r){return n&&0!==n.length?(n.sort(u),o(e,t,n,r,0)):{}}function o(e,t,n,r,u){if(r=r||{},e){i(n,u,u)&&(r[u]=e);var s=t.children;if(s)for(var c=e.childNodes,f=0;f<t.children.length;f++){u+=1;var l=s[f]||a,d=u+(l.count||0);i(n,u,d)&&o(c[f],l,n,r,u),u=d}}return r}function i(e,t,n){if(0===e.length)return!1;for(var r,o,i=0,u=e.length-1;u>=i;){if(r=(u+i)/2>>0,o=e[r],i===u)return o>=t&&n>=o;if(t>o)i=r+1;else{if(!(o>n))return!0;u=r-1}}return!1}function u(e,t){return e>t?1:-1}var a={};t.exports=r},{}],48:[function(e,t,n){function r(e,t,n){var r=e.type,c=e.vNode,p=e.patch;switch(r){case v.REMOVE:return o(t,c);case v.INSERT:return i(t,p,n);case v.VTEXT:return u(t,c,p,n);case v.WIDGET:return a(t,c,p,n);case v.VNODE:return s(t,c,p,n);case v.ORDER:return f(t,p),t;case v.PROPS:return d(t,p,c.properties),t;case v.THUNK:return l(t,n.patch(t,p,n));default:return t}}function o(e,t){var n=e.parentNode;return n&&n.removeChild(e),c(e,t),null}function i(e,t,n){var r=n.render(t,n);return e&&e.appendChild(r),e}function u(e,t,n,r){var o;if(3===e.nodeType)e.replaceData(0,e.length,n.text),o=e;else{var i=e.parentNode;o=r.render(n,r),i&&o!==e&&i.replaceChild(o,e)}return o}function a(e,t,n,r){var o,i=h(t,n);o=i?n.update(t,e)||e:r.render(n,r);var u=e.parentNode;return u&&o!==e&&u.replaceChild(o,e),i||c(e,t),o}function s(e,t,n,r){var o=e.parentNode,i=r.render(n,r);return o&&i!==e&&o.replaceChild(i,e),i}function c(e,t){"function"==typeof t.destroy&&p(t)&&t.destroy(e)}function f(e,t){for(var n,r,o,i=e.childNodes,u={},a=0;a<t.removes.length;a++)r=t.removes[a],n=i[r.from],r.key&&(u[r.key]=n),e.removeChild(n);for(var s=i.length,c=0;c<t.inserts.length;c++)o=t.inserts[c],n=u[o.key],e.insertBefore(n,o.to>=s++?null:i[o.to])}function l(e,t){return e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e),t}var d=e("./apply-properties"),p=e("../vnode/is-widget.js"),v=e("../vnode/vpatch.js"),h=e("./update-widget");t.exports=r},{"../vnode/is-widget.js":56,"../vnode/vpatch.js":58,"./apply-properties":45,"./update-widget":50}],49:[function(e,t,n){function r(e,t,n){return n=n||{},n.patch=n.patch&&n.patch!==r?n.patch:o,n.render=n.render||c,n.patch(e,t,n)}function o(e,t,n){var r=u(t);if(0===r.length)return e;var o=f(e,t.a,r),s=e.ownerDocument;n.document||s===a||(n.document=s);for(var c=0;c<r.length;c++){var l=r[c];e=i(e,o[l],t[l],n)}return e}function i(e,t,n,r){if(!t)return e;var o;if(s(n))for(var i=0;i<n.length;i++)o=l(n[i],t,r),t===e&&(e=o);else o=l(n,t,r),t===e&&(e=o);return e}function u(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}var a=e("global/document"),s=e("x-is-array"),c=e("./create-element"),f=e("./dom-index"),l=e("./patch-op");t.exports=r},{"./create-element":46,"./dom-index":47,"./patch-op":48,"global/document":15,"x-is-array":63}],50:[function(e,t,n){function r(e,t){return o(e)&&o(t)?"name"in e&&"name"in t?e.id===t.id:e.init===t.init:!1}var o=e("../vnode/is-widget.js");t.exports=r},{"../vnode/is-widget.js":56}],51:[function(e,t,n){function r(e,t){var n=e,r=t;return s(t)&&(r=o(t,e)),s(e)&&(n=o(e,null)),{a:n,b:r}}function o(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(i(n)||u(n)||a(n)))throw new Error("thunk did not return a valid node");return n}var i=e("./is-vnode"),u=e("./is-vtext"),a=e("./is-widget"),s=e("./is-thunk");t.exports=r},{"./is-thunk":52,"./is-vnode":54,"./is-vtext":55,"./is-widget":56}],52:[function(e,t,n){function r(e){return e&&"Thunk"===e.type}t.exports=r},{}],53:[function(e,t,n){function r(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))}t.exports=r},{}],54:[function(e,t,n){function r(e){return e&&"VirtualNode"===e.type&&e.version===o}var o=e("./version");t.exports=r},{"./version":57}],55:[function(e,t,n){function r(e){return e&&"VirtualText"===e.type&&e.version===o}var o=e("./version");t.exports=r},{"./version":57}],56:[function(e,t,n){function r(e){return e&&"Widget"===e.type}t.exports=r},{}],57:[function(e,t,n){t.exports="2"},{}],58:[function(e,t,n){function r(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}var o=e("./version");r.NONE=0,r.VTEXT=1,r.VNODE=2,r.WIDGET=3,r.PROPS=4,r.ORDER=5,r.INSERT=6,r.REMOVE=7,r.THUNK=8,t.exports=r,r.prototype.version=o,r.prototype.type="VirtualPatch"},{"./version":57}],59:[function(e,t,n){function r(e,t){var n;for(var a in e){a in t||(n=n||{},n[a]=void 0);var s=e[a],c=t[a];if(s!==c)if(i(s)&&i(c))if(o(c)!==o(s))n=n||{},n[a]=c;else if(u(c))n=n||{},n[a]=c;else{var f=r(s,c);f&&(n=n||{},n[a]=f)}else n=n||{},n[a]=c}for(var l in t)l in e||(n=n||{},n[l]=t[l]);return n}function o(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var i=e("is-object"),u=e("../vnode/is-vhook");t.exports=r},{"../vnode/is-vhook":53,"is-object":19}],60:[function(e,t,n){function r(e,t){var n={a:e};return o(e,t,n,0),n}function o(e,t,n,r){if(e!==t){var o=n[r],a=!1;if(_(e)||_(t))s(e,t,n,r);else if(null==t)b(e)||(u(e,n,r),o=n[r]),o=h(o,new g(g.REMOVE,e,t));else if(m(t))if(m(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var c=k(e.properties,t.properties);c&&(o=h(o,new g(g.PROPS,e,c))),o=i(e,t,n,o,r)}else o=h(o,new g(g.VNODE,e,t)),a=!0;else o=h(o,new g(g.VNODE,e,t)),a=!0;else w(t)?w(e)?e.text!==t.text&&(o=h(o,new g(g.VTEXT,e,t))):(o=h(o,new g(g.VTEXT,e,t)),a=!0):b(t)&&(b(e)||(a=!0),o=h(o,new g(g.WIDGET,e,t)));o&&(n[r]=o),a&&u(e,n,r)}}function i(e,t,n,r,i){for(var u=e.children,a=d(u,t.children),s=a.children,c=u.length,f=s.length,l=c>f?c:f,p=0;l>p;p++){var v=u[p],y=s[p];i+=1,v?o(v,y,n,i):y&&(r=h(r,new g(g.INSERT,null,y))),m(v)&&v.count&&(i+=v.count)}return a.moves&&(r=h(r,new g(g.ORDER,e,a.moves))),r}function u(e,t,n){f(e,t,n),a(e,t,n)}function a(e,t,n){if(b(e))"function"==typeof e.destroy&&(t[n]=h(t[n],new g(g.REMOVE,e,null)));else if(m(e)&&(e.hasWidgets||e.hasThunks))for(var r=e.children,o=r.length,i=0;o>i;i++){var u=r[i];n+=1,a(u,t,n),m(u)&&u.count&&(n+=u.count)}else _(e)&&s(e,null,t,n)}function s(e,t,n,o){var i=x(e,t),u=r(i.a,i.b);c(u)&&(n[o]=new g(g.THUNK,null,u))}function c(e){for(var t in e)if("a"!==t)return!0;
return!1}function f(e,t,n){if(m(e)){if(e.hooks&&(t[n]=h(t[n],new g(g.PROPS,e,l(e.hooks)))),e.descendantHooks||e.hasThunks)for(var r=e.children,o=r.length,i=0;o>i;i++){var u=r[i];n+=1,f(u,t,n),m(u)&&u.count&&(n+=u.count)}}else _(e)&&s(e,null,t,n)}function l(e){var t={};for(var n in e)t[n]=void 0;return t}function d(e,t){var n=v(t),r=n.keys,o=n.free;if(o.length===t.length)return{children:t,moves:null};var i=v(e),u=i.keys,a=i.free;if(a.length===e.length)return{children:t,moves:null};for(var s=[],c=0,f=o.length,l=0,d=0;d<e.length;d++){var h,y=e[d];y.key?r.hasOwnProperty(y.key)?(h=r[y.key],s.push(t[h])):(h=d-l++,s.push(null)):f>c?(h=o[c++],s.push(t[h])):(h=d-l++,s.push(null))}for(var g=c>=o.length?t.length:o[c],m=0;m<t.length;m++){var w=t[m];w.key?u.hasOwnProperty(w.key)||s.push(w):m>=g&&s.push(w)}for(var b,_=s.slice(),x=0,k=[],E=[],j=0;j<t.length;){var O=t[j];for(b=_[x];null===b&&_.length;)k.push(p(_,x,null)),b=_[x];b&&b.key===O.key?(x++,j++):O.key?(b&&b.key&&r[b.key]!==j+1?(k.push(p(_,x,b.key)),b=_[x],b&&b.key===O.key?x++:E.push({key:O.key,to:j})):E.push({key:O.key,to:j}),j++):b&&b.key&&k.push(p(_,x,b.key))}for(;x<_.length;)b=_[x],k.push(p(_,x,b&&b.key));return k.length!==l||E.length?{children:s,moves:{removes:k,inserts:E}}:{children:s,moves:null}}function p(e,t,n){return e.splice(t,1),{from:t,key:n}}function v(e){for(var t={},n=[],r=e.length,o=0;r>o;o++){var i=e[o];i.key?t[i.key]=o:n.push(o)}return{keys:t,free:n}}function h(e,t){return e?(y(e)?e.push(t):e=[e,t],e):t}var y=e("x-is-array"),g=e("../vnode/vpatch"),m=e("../vnode/is-vnode"),w=e("../vnode/is-vtext"),b=e("../vnode/is-widget"),_=e("../vnode/is-thunk"),x=e("../vnode/handle-thunk"),k=e("./diff-props");t.exports=r},{"../vnode/handle-thunk":51,"../vnode/is-thunk":52,"../vnode/is-vnode":54,"../vnode/is-vtext":55,"../vnode/is-widget":56,"../vnode/vpatch":58,"./diff-props":59,"x-is-array":63}],61:[function(e,t,n){function r(){var e={};return function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)throw new Error("Weakmap-shim: Key must be object");var n=t.valueOf(e);return n&&n.identity===e?n:o(t,e)}}var o=e("./hidden-store.js");t.exports=r},{"./hidden-store.js":62}],62:[function(e,t,n){function r(e,t){var n={identity:t},r=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?r.apply(this,arguments):n},writable:!0}),n}t.exports=r},{}],63:[function(e,t,n){function r(e){return"[object Array]"===i.call(e)}var o=Array.isArray,i=Object.prototype.toString;t.exports=o||r},{}]},{},[3])(3)});
//# sourceMappingURL=plait.min.js.map

@@ -8,6 +8,10 @@ 'use strict';

});
exports.forwardDispatch = undefined;
exports.start = start;
exports.initializeComponent = initializeComponent;
exports.forwardDispatch = forwardDispatch;
var _curry = require('ramda/src/curry');
var _curry2 = _interopRequireDefault(_curry);
var _redux = require('redux');

@@ -63,2 +67,8 @@

// Initial call to update() will be @@redux/INIT so bogus dispatch() is okay
var dispatch = function dispatch(x) {
return x;
};
var store = createStoreWithMiddleware(function () {

@@ -68,3 +78,3 @@ var state = arguments.length <= 0 || arguments[0] === undefined ? initialState : arguments[0];

var newState = update(state, action);
var newState = update(state, action, dispatch);

@@ -74,3 +84,3 @@ return typeof newState === 'undefined' ? state : newState;

var dispatch = function dispatch(action) {
dispatch = function (action) {
return function (event) {

@@ -107,6 +117,17 @@ if (event) {

// initializeComponent :: Component -> Map
function initializeComponent(_ref) {
function initializeComponent(_ref, dispatch) {
var init = _ref.init;
return handleInit(init)[0];
var _handleInit3 = handleInit(init);
var _handleInit4 = _slicedToArray(_handleInit3, 2);
var initialState = _handleInit4[0];
var initialAction = _handleInit4[1];
if (dispatch && initialAction) {
dispatch(initialState)(initialAction)();
}
return initialState;
}

@@ -122,19 +143,25 @@

// forwardDispatch :: Action a => (a -> (_ -> IO ())) -> a -> (a -> a -> a) -> ...
function forwardDispatch(dispatch, state, action, modifier) {
var getState = function getState() {
return state;
};
// Wrap a dispatcher, allowing actions to be modified before they are dispatched.
// Usually used by parent components to capture actions from child components.
var forwardDispatch = exports.forwardDispatch = (0, _curry2.default)(function (action, modifier, dispatch, state) {
return function (forwardAction) {
var modify = modifier.bind(undefined, action, forwardAction);
return function (forwardAction) {
if (typeof forwardAction === 'function') {
return dispatch(function () {
forwardAction(forwardDispatch(dispatch, state, action, modifier), getState).then(function (dispatch) {
return dispatch(modifier(action, forwardAction));
});
// In order to forward thunks, an intermediate thunk needs to be returned
// to gain access to the raw `action => <dispatch>` dispatcher rather than
// the application's wrapped `action => event => <dispatch>` dispatcher.
return dispatch(function (rawDispatch) {
var getState = function getState() {
return state;
};
var fwd = forwardDispatch(action, modifier, rawDispatch, state);
forwardAction(fwd, getState);
});
} else {
return dispatch(modifier(action, forwardAction));
}
// Modify and then dispatch a simple action object
return dispatch(modify());
};
}
});

@@ -10,3 +10,3 @@ 'use strict';

var _App2 = _interopRequireDefault(_App);
var App = _interopRequireWildcard(_App);

@@ -19,3 +19,5 @@ var _Map = require('./Map');

exports.App = _App2.default;
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
exports.App = App;
exports.Map = _Map2.default;
{
"name": "plait",
"version": "0.5.0",
"version": "0.6.1",
"description": "A minimal JavaScript framework for building reactive web components",

@@ -5,0 +5,0 @@ "main": "lib/index",

@@ -0,1 +1,3 @@

import curry from 'ramda/src/curry'
import { createStore, applyMiddleware } from 'redux'

@@ -28,4 +30,7 @@ import thunk from 'redux-thunk'

// Initial call to update() will be @@redux/INIT so bogus dispatch() is okay
let dispatch = x => x
const store = createStoreWithMiddleware((state = initialState, action) => {
const newState = update(state, action)
const newState = update(state, action, dispatch)

@@ -35,3 +40,3 @@ return (typeof newState === 'undefined') ? state : newState

const dispatch = action => {
dispatch = action => {
return event => {

@@ -74,4 +79,10 @@ if (event) {

// initializeComponent :: Component -> Map
export function initializeComponent ({ init }) {
return handleInit(init)[0]
export function initializeComponent ({ init }, dispatch) {
const [initialState, initialAction] = handleInit(init)
if (dispatch && initialAction) {
dispatch(initialState)(initialAction)()
}
return initialState
}

@@ -88,16 +99,24 @@

// forwardDispatch :: Action a => (a -> (_ -> IO ())) -> a -> (a -> a -> a) -> ...
export function forwardDispatch (dispatch, state, action, modifier) {
const getState = () => state
// Wrap a dispatcher, allowing actions to be modified before they are dispatched.
// Usually used by parent components to capture actions from child components.
export const forwardDispatch = curry((action, modifier, dispatch, state) => {
return forwardAction => {
const modify = modifier.bind(this, action, forwardAction)
if (typeof forwardAction === 'function') {
return dispatch(() => {
forwardAction(forwardDispatch(dispatch, state, action, modifier), getState)
.then(dispatch => dispatch(modifier(action, forwardAction)))
// In order to forward thunks, an intermediate thunk needs to be returned
// to gain access to the raw `action => <dispatch>` dispatcher rather than
// the application's wrapped `action => event => <dispatch>` dispatcher.
return dispatch((rawDispatch) => {
const getState = () => state
const fwd = forwardDispatch(action, modifier, rawDispatch, state)
forwardAction(fwd, getState)
})
} else {
return dispatch(modifier(action, forwardAction))
}
// Modify and then dispatch a simple action object
return dispatch(modify())
}
}
})

@@ -1,4 +0,4 @@

import App from './App'
import * as App from './App'
import Map from './Map'
export { App, Map }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc