react-komik
Version:
ReactJS based comic strip creator
8 lines • 514 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Komik=e():t.Komik=e()}(this,function(){return function(t){function e(t){var e=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=f.p+""+t+"."+y+".hot-update.js",e.appendChild(n)}function n(t){if("undefined"==typeof XMLHttpRequest)return t(new Error("No browser support"));try{var e=new XMLHttpRequest,n=f.p+""+y+".hot-update.json";e.open("GET",n,!0),e.timeout=1e4,e.send(null)}catch(r){return t(r)}e.onreadystatechange=function(){if(4===e.readyState)if(0===e.status)t(new Error("Manifest request to "+n+" timed out."));else if(404===e.status)t();else if(200!==e.status&&304!==e.status)t(new Error("Manifest request to "+n+" failed."));else{try{var r=JSON.parse(e.responseText)}catch(i){return void t(i)}t(null,r)}}}function r(t){var e=D[t];if(!e)return f;var n=function(n){return e.hot.active?D[n]?(D[n].parents.indexOf(t)<0&&D[n].parents.push(t),e.children.indexOf(n)<0&&e.children.push(n)):_=[t]:(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),_=[]),f(n)};for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&(n[r]=f[r]);return n.e=function(t,e){"ready"===x&&o("prepare"),E++,f.e(t,function(){function r(){E--,"prepare"===x&&(S[t]||u(t),0===E&&0===w&&l())}try{e.call(null,n)}finally{r()}})},n}function i(t){var e={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],active:!0,accept:function(t,n){if("undefined"==typeof t)e._selfAccepted=!0;else if("function"==typeof t)e._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)e._acceptedDependencies[t[r]]=n;else e._acceptedDependencies[t]=n},decline:function(t){if("undefined"==typeof t)e._selfDeclined=!0;else if("number"==typeof t)e._declinedDependencies[t]=!0;else for(var n=0;n<t.length;n++)e._declinedDependencies[t[n]]=!0},dispose:function(t){e._disposeHandlers.push(t)},addDisposeHandler:function(t){e._disposeHandlers.push(t)},removeDisposeHandler:function(t){var n=e._disposeHandlers.indexOf(t);n>=0&&e._disposeHandlers.splice(n,1)},check:a,apply:h,status:function(t){return t?void C.push(t):x},addStatusHandler:function(t){C.push(t)},removeStatusHandler:function(t){var e=C.indexOf(t);e>=0&&C.splice(e,1)},data:b[t]};return e}function o(t){x=t;for(var e=0;e<C.length;e++)C[e].call(null,t)}function s(t){var e=+t+""===t;return e?+t:t}function a(t,e){if("idle"!==x)throw new Error("check() is only allowed in idle status");"function"==typeof t?(m=!1,e=t):(m=t,e=e||function(t){if(t)throw t}),o("check"),n(function(t,n){if(t)return e(t);if(!n)return o("idle"),void e(null,null);O={},T={},S={};for(var r=0;r<n.c.length;r++)T[n.c[r]]=!0;v=n.h,o("prepare"),d=e,g={};var i=0;u(i),"prepare"===x&&0===E&&0===w&&l()})}function c(t,e){if(T[t]&&O[t]){O[t]=!1;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(g[n]=e[n]);0===--w&&0===E&&l()}}function u(t){T[t]?(O[t]=!0,w++,e(t)):S[t]=!0}function l(){o("ready");var t=d;if(d=null,t)if(m)h(m,t);else{var e=[];for(var n in g)Object.prototype.hasOwnProperty.call(g,n)&&e.push(s(n));t(null,e)}}function h(e,n){function r(t){for(var e=[t],n={},r=e.slice();r.length>0;){var o=r.pop(),t=D[o];if(t&&!t.hot._selfAccepted){if(t.hot._selfDeclined)return new Error("Aborted because of self decline: "+o);if(0===o)return;for(var s=0;s<t.parents.length;s++){var a=t.parents[s],c=D[a];if(c.hot._declinedDependencies[o])return new Error("Aborted because of declined dependency: "+o+" in "+a);e.indexOf(a)>=0||(c.hot._acceptedDependencies[o]?(n[a]||(n[a]=[]),i(n[a],[o])):(delete n[a],e.push(a),r.push(a)))}}}return[e,n]}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];t.indexOf(r)<0&&t.push(r)}}if("ready"!==x)throw new Error("apply() is only allowed in ready status");"function"==typeof e?(n=e,e={}):e&&"object"==typeof e?n=n||function(t){if(t)throw t}:(e={},n=n||function(t){if(t)throw t});var a={},c=[],u={};for(var l in g)if(Object.prototype.hasOwnProperty.call(g,l)){var h=s(l),p=r(h);if(!p){if(e.ignoreUnaccepted)continue;return o("abort"),n(new Error("Aborted because "+h+" is not accepted"))}if(p instanceof Error)return o("abort"),n(p);u[h]=g[h],i(c,p[0]);for(var h in p[1])Object.prototype.hasOwnProperty.call(p[1],h)&&(a[h]||(a[h]=[]),i(a[h],p[1][h]))}for(var d=[],m=0;m<c.length;m++){var h=c[m];D[h]&&D[h].hot._selfAccepted&&d.push({module:h,errorHandler:D[h].hot._selfAccepted})}o("dispose");for(var C=c.slice();C.length>0;){var h=C.pop(),w=D[h];if(w){for(var E={},S=w.hot._disposeHandlers,O=0;O<S.length;O++){var T=S[O];T(E)}b[h]=E,w.hot.active=!1,delete D[h];for(var O=0;O<w.children.length;O++){var N=D[w.children[O]];if(N){var k=N.parents.indexOf(h);k>=0&&N.parents.splice(k,1)}}}}for(var h in a)if(Object.prototype.hasOwnProperty.call(a,h))for(var w=D[h],M=a[h],O=0;O<M.length;O++){var I=M[O],k=w.children.indexOf(I);k>=0&&w.children.splice(k,1)}o("apply"),y=v;for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(t[h]=u[h]);var P=null;for(var h in a)if(Object.prototype.hasOwnProperty.call(a,h)){for(var w=D[h],M=a[h],A=[],m=0;m<M.length;m++){var I=M[m],T=w.hot._acceptedDependencies[I];A.indexOf(T)>=0||A.push(T)}for(var m=0;m<A.length;m++){var T=A[m];try{T(a)}catch(R){P||(P=R)}}}for(var m=0;m<d.length;m++){var j=d[m],h=j.module;_=[h];try{f(h)}catch(R){if("function"==typeof j.errorHandler)try{j.errorHandler(R)}catch(R){P||(P=R)}else P||(P=R)}}return P?(o("fail"),n(P)):(o("idle"),void n(null,c))}function f(e){if(D[e])return D[e].exports;var n=D[e]={exports:{},id:e,loaded:!1,hot:i(e),parents:_,children:[]};return t[e].call(n.exports,n,n.exports,r(e)),n.loaded=!0,n.exports}var p=this.webpackHotUpdateKomik;this.webpackHotUpdateKomik=function(t,e){c(t,e),p&&p(t,e)};var d,g,v,m=!0,y="78c7b0894edca569f430",b={},_=[],C=[],x="idle",w=0,E=0,S={},O={},T={},D={};return f.m=t,f.c=D,f.p="/",f.h=function(){return y},r(0)(0)}([function(t,e,n){t.exports=n(102)},function(t,e){function n(){u=!1,s.length?c=s.concat(c):l=-1,c.length&&r()}function r(){if(!u){var t=setTimeout(n);u=!0;for(var e=c.length;e;){for(s=c,c=[];++l<e;)s&&s[l].run();l=-1,e=c.length}s=null,u=!1,clearTimeout(t)}}function i(t,e){this.fun=t,this.array=e}function o(){}var s,a=t.exports={},c=[],u=!1,l=-1;a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new i(t,e)),1!==c.length||u||setTimeout(r,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=o,a.addListener=o,a.once=o,a.off=o,a.removeListener=o,a.removeAllListeners=o,a.emit=o,a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";var n=function(t,n,r,i,o,s,a,c){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,i,o,s,a,c],h=0;u=new Error("Invariant Violation: "+n.replace(/%s/g,function(){return l[h++]}))}throw u.framesToPop=1,u}};t.exports=n}).call(e,n(1))},function(t,e){"use strict";function n(t,e){if(null==t)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(t),r=Object.prototype.hasOwnProperty,i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o){var s=Object(o);for(var a in s)r.call(s,a)&&(n[a]=s[a])}}return n}t.exports=n},function(t,e,n){(function(e){"use strict";var r=n(10),i=r;"production"!==e.env.NODE_ENV&&(i=function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){var o=0,s="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(s);try{throw new Error(s)}catch(a){}}}),t.exports=i}).call(e,n(1))},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,e){for(var n=Math.min(t.length,e.length),r=0;n>r;r++)if(t.charAt(r)!==e.charAt(r))return r;return t.length===e.length?-1:n}function i(t){return t?t.nodeType===X?t.documentElement:t.firstChild:null}function o(t){var e=i(t);return e&&tt.getID(e)}function s(t){var n=a(t);if(n)if(Y.hasOwnProperty(n)){var r=Y[n];r!==t&&(h(r,n)?"production"!==e.env.NODE_ENV?L(!1,"ReactMount: Two valid but unequal nodes with the same `%s`: %s",W,n):L(!1):void 0,Y[n]=t)}else Y[n]=t;return n}function a(t){return t&&t.getAttribute&&t.getAttribute(W)||""}function c(t,e){var n=a(t);n!==e&&delete Y[n],t.setAttribute(W,e),Y[e]=t}function u(t){return Y.hasOwnProperty(t)&&h(Y[t],t)||(Y[t]=tt.findReactNodeByID(t)),Y[t]}function l(t){var e=T.get(t)._rootNodeID;return S.isNullComponentID(e)?null:(Y.hasOwnProperty(e)&&h(Y[e],e)||(Y[e]=tt.findReactNodeByID(e)),Y[e])}function h(t,n){if(t){a(t)!==n?"production"!==e.env.NODE_ENV?L(!1,"ReactMount: Unexpected modification of `%s`",W):L(!1):void 0;var r=tt.findReactContainerForID(n);if(r&&R(r,t))return!0}return!1}function f(t){delete Y[t]}function p(t){var e=Y[t];return e&&h(e,t)?void(Q=e):!1}function d(t){Q=null,O.traverseAncestors(t,p);var e=Q;return Q=null,e}function g(t,n,r,i,o,s){if(w.useCreateElement&&(s=P({},s),r.nodeType===X?s[H]=r:s[H]=r.ownerDocument),"production"!==e.env.NODE_ENV){s===A&&(s={});var a=r.nodeName.toLowerCase();s[U.ancestorInfoContextKey]=U.updatedAncestorInfo(null,a,null)}var c=k.mountComponent(t,n,i,s);t._renderedComponent._topLevelWrapper=t,tt._mountImageIntoNode(c,r,o,i)}function v(t,e,n,r,i){var o=I.ReactReconcileTransaction.getPooled(r);o.perform(g,null,t,e,n,o,r,i),I.ReactReconcileTransaction.release(o)}function m(t,e){for(k.unmountComponent(t),e.nodeType===X&&(e=e.documentElement);e.lastChild;)e.removeChild(e.lastChild)}function y(t){var e=o(t);return e?e!==O.getReactRootIDFromNodeID(e):!1}function b(t){for(;t&&t.parentNode!==t;t=t.parentNode)if(1===t.nodeType){var e=a(t);if(e){var n,r=O.getReactRootIDFromNodeID(e),i=t;do if(n=a(i),i=i.parentNode,null==i)return null;while(n!==r);if(i===K[r])return t}}return null}var _=n(15),C=n(30),x=n(12),w=n(70),E=n(7),S=n(77),O=n(19),T=n(23),D=n(80),N=n(8),k=n(16),M=n(46),I=n(9),P=n(3),A=n(25),R=n(92),j=n(53),L=n(2),V=n(37),B=n(56),U=n(58),F=n(4),W=_.ID_ATTRIBUTE_NAME,Y={},z=1,X=9,G=11,H="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),q={},K={};if("production"!==e.env.NODE_ENV)var $={};var J=[],Q=null,Z=function(){};Z.prototype.isReactComponent={},"production"!==e.env.NODE_ENV&&(Z.displayName="TopLevelWrapper"),Z.prototype.render=function(){return this.props};var tt={TopLevelWrapper:Z,_instancesByReactRootID:q,scrollMonitor:function(t,e){e()},_updateRootComponent:function(t,n,r,s){return tt.scrollMonitor(r,function(){M.enqueueElementInternal(t,n),s&&M.enqueueCallbackInternal(t,s)}),"production"!==e.env.NODE_ENV&&($[o(r)]=i(r)),t},_registerComponent:function(t,n){!n||n.nodeType!==z&&n.nodeType!==X&&n.nodeType!==G?"production"!==e.env.NODE_ENV?L(!1,"_registerComponent(...): Target container is not a DOM element."):L(!1):void 0,C.ensureScrollValueMonitoring();var r=tt.registerContainer(n);return q[r]=t,r},_renderNewRootComponent:function(t,n,r,o){"production"!==e.env.NODE_ENV?F(null==x.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",x.current&&x.current.getName()||"ReactCompositeComponent"):void 0;var s=j(t,null),a=tt._registerComponent(s,n);return I.batchedUpdates(v,s,a,n,r,o),"production"!==e.env.NODE_ENV&&($[a]=i(n)),s},renderSubtreeIntoContainer:function(t,n,r,i){return null==t||null==t._reactInternalInstance?"production"!==e.env.NODE_ENV?L(!1,"parentComponent must be a valid React Component"):L(!1):void 0,tt._renderSubtreeIntoContainer(t,n,r,i)},_renderSubtreeIntoContainer:function(t,n,r,s){E.isValidElement(n)?void 0:"production"!==e.env.NODE_ENV?L(!1,"ReactDOM.render(): Invalid component element.%s","string"==typeof n?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof n?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=n&&void 0!==n.props?" This may be caused by unintentionally loading two independent copies of React.":""):L(!1),"production"!==e.env.NODE_ENV?F(!r||!r.tagName||"BODY"!==r.tagName.toUpperCase(),"render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app."):void 0;var c=new E(Z,null,null,null,null,null,n),u=q[o(r)];if(u){var l=u._currentElement,h=l.props;if(B(h,n)){var f=u._renderedComponent.getPublicInstance(),p=s&&function(){s.call(f)};return tt._updateRootComponent(u,c,r,p),f}tt.unmountComponentAtNode(r)}var d=i(r),g=d&&!!a(d),v=y(r);if("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?F(!v,"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."):void 0,!g||d.nextSibling))for(var m=d;m;){if(a(m)){"production"!==e.env.NODE_ENV?F(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):void 0;break}m=m.nextSibling}var b=g&&!u&&!v,_=tt._renderNewRootComponent(c,r,b,null!=t?t._reactInternalInstance._processChildContext(t._reactInternalInstance._context):A)._renderedComponent.getPublicInstance();return s&&s.call(_),_},render:function(t,e,n){return tt._renderSubtreeIntoContainer(null,t,e,n)},registerContainer:function(t){var e=o(t);return e&&(e=O.getReactRootIDFromNodeID(e)),e||(e=O.createReactRootID()),K[e]=t,e},unmountComponentAtNode:function(t){"production"!==e.env.NODE_ENV?F(null==x.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",x.current&&x.current.getName()||"ReactCompositeComponent"):void 0,!t||t.nodeType!==z&&t.nodeType!==X&&t.nodeType!==G?"production"!==e.env.NODE_ENV?L(!1,"unmountComponentAtNode(...): Target container is not a DOM element."):L(!1):void 0;var n=o(t),r=q[n];if(!r){var i=y(t),s=a(t),c=s&&s===O.getReactRootIDFromNodeID(s);return"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?F(!i,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",c?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."):void 0),!1}return I.batchedUpdates(m,r,t),delete q[n],delete K[n],"production"!==e.env.NODE_ENV&&delete $[n],!0},findReactContainerForID:function(t){var n=O.getReactRootIDFromNodeID(t),r=K[n];if("production"!==e.env.NODE_ENV){var i=$[n];if(i&&i.parentNode!==r){"production"!==e.env.NODE_ENV?F(a(i)===n,"ReactMount: Root element ID differed from reactRootID."):void 0;var o=r.firstChild;o&&n===a(o)?$[n]=o:"production"!==e.env.NODE_ENV?F(!1,"ReactMount: Root element has been removed from its original container. New container: %s",i.parentNode):void 0}}return r},findReactNodeByID:function(t){var e=tt.findReactContainerForID(t);return tt.findComponentRoot(e,t)},getFirstReactDOM:function(t){return b(t)},findComponentRoot:function(t,n){var r=J,i=0,o=d(n)||t;for("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?F(null!=o,"React can't find the root component node for data-reactid value `%s`. If you're seeing this message, it probably means that you've loaded two copies of React on the page. At this time, only a single copy of React can be loaded at a time.",n):void 0),r[0]=o.firstChild,r.length=1;i<r.length;){for(var s,a=r[i++];a;){var c=tt.getID(a);c?n===c?s=a:O.isAncestorIDOf(c,n)&&(r.length=i=0,r.push(a.firstChild)):r.push(a.firstChild),a=a.nextSibling}if(s)return r.length=0,s}r.length=0,"production"!==e.env.NODE_ENV?L(!1,"findComponentRoot(..., %s): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",n,tt.getID(t)):L(!1)},_mountImageIntoNode:function(t,n,o,s){if(!n||n.nodeType!==z&&n.nodeType!==X&&n.nodeType!==G?"production"!==e.env.NODE_ENV?L(!1,"mountComponentIntoNode(...): Target container is not valid."):L(!1):void 0,o){var a=i(n);if(D.canReuseMarkup(t,a))return;var c=a.getAttribute(D.CHECKSUM_ATTR_NAME);a.removeAttribute(D.CHECKSUM_ATTR_NAME);var u=a.outerHTML;a.setAttribute(D.CHECKSUM_ATTR_NAME,c);var l=t;if("production"!==e.env.NODE_ENV){var h;n.nodeType===z?(h=document.createElement("div"),h.innerHTML=t,l=h.innerHTML):(h=document.createElement("iframe"),document.body.appendChild(h),h.contentDocument.write(t),l=h.contentDocument.documentElement.outerHTML,document.body.removeChild(h))}var f=r(l,u),p=" (client) "+l.substring(f-20,f+20)+"\n (server) "+u.substring(f-20,f+20);n.nodeType===X?"production"!==e.env.NODE_ENV?L(!1,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",p):L(!1):void 0,"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?F(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",p):void 0)}if(n.nodeType===X?"production"!==e.env.NODE_ENV?L(!1,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering."):L(!1):void 0,s.useCreateElement){for(;n.lastChild;)n.removeChild(n.lastChild);n.appendChild(t)}else V(n,t)},ownerDocumentContextKey:H,getReactRootID:o,getID:s,setID:c,getNode:u,getNodeFromInstance:l,isValid:h,purgeID:f};N.measureMethods(tt,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=tt}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var r=n(12),i=n(3),o=n(35),s="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,a={key:!0,ref:!0,__self:!0,__source:!0},c=function(t,n,r,i,a,c,u){var l={$$typeof:s,type:t,key:n,ref:r,props:u,_owner:c};return"production"!==e.env.NODE_ENV&&(l._store={},o?(Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a})):(l._store.validated=!1,l._self=i,l._source=a),Object.freeze(l.props),Object.freeze(l)),l};c.createElement=function(t,e,n){var i,o={},s=null,u=null,l=null,h=null;if(null!=e){u=void 0===e.ref?null:e.ref,s=void 0===e.key?null:""+e.key,l=void 0===e.__self?null:e.__self,h=void 0===e.__source?null:e.__source;for(i in e)e.hasOwnProperty(i)&&!a.hasOwnProperty(i)&&(o[i]=e[i])}var f=arguments.length-2;if(1===f)o.children=n;else if(f>1){for(var p=Array(f),d=0;f>d;d++)p[d]=arguments[d+2];o.children=p}if(t&&t.defaultProps){var g=t.defaultProps;for(i in g)"undefined"==typeof o[i]&&(o[i]=g[i])}return c(t,s,u,l,h,r.current,o)},c.createFactory=function(t){var e=c.createElement.bind(null,t);return e.type=t,e},c.cloneAndReplaceKey=function(t,e){var n=c(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},c.cloneAndReplaceProps=function(t,n){var r=c(t.type,t.key,t.ref,t._self,t._source,t._owner,n);return"production"!==e.env.NODE_ENV&&(r._store.validated=t._store.validated),r},c.cloneElement=function(t,e,n){var o,s=i({},t.props),u=t.key,l=t.ref,h=t._self,f=t._source,p=t._owner;if(null!=e){void 0!==e.ref&&(l=e.ref,p=r.current),void 0!==e.key&&(u=""+e.key);for(o in e)e.hasOwnProperty(o)&&!a.hasOwnProperty(o)&&(s[o]=e[o])}var d=arguments.length-2;if(1===d)s.children=n;else if(d>1){for(var g=Array(d),v=0;d>v;v++)g[v]=arguments[v+2];s.children=g}return c(t.type,u,l,h,f,p,s)},c.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===s},t.exports=c}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function n(t,e,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(t,n,i){if("production"!==e.env.NODE_ENV)for(var o in i)i.hasOwnProperty(o)&&(t[o]=r.measure(n,i[o],t[o]))},measure:function(t,n,i){if("production"!==e.env.NODE_ENV){var o=null,s=function(){return r.enableMeasure?(o||(o=r.storedMeasure(t,n,i)),o.apply(this,arguments)):i.apply(this,arguments)};return s.displayName=t+"_"+n,s}return i},injection:{injectMeasure:function(t){r.storedMeasure=t}}};t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(){O.ReactReconcileTransaction&&_?void 0:"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):v(!1)}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!1)}function o(t,e,n,i,o,s){r(),_.batchedUpdates(t,e,n,i,o,s)}function s(t,e){return t._mountOrder-e._mountOrder}function a(t){var n=t.dirtyComponentsLength;n!==m.length?"production"!==e.env.NODE_ENV?v(!1,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",n,m.length):v(!1):void 0,m.sort(s);for(var r=0;n>r;r++){var i=m[r],o=i._pendingCallbacks;if(i._pendingCallbacks=null,p.performUpdateIfNecessary(i,t.reconcileTransaction),o)for(var a=0;a<o.length;a++)t.callbackQueue.enqueue(o[a],i.getPublicInstance())}}function c(t){return r(),_.isBatchingUpdates?void m.push(t):void _.batchedUpdates(c,t)}function u(t,n){_.isBatchingUpdates?void 0:"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):v(!1),y.enqueue(t,n),b=!0}var l=n(40),h=n(13),f=n(8),p=n(16),d=n(34),g=n(3),v=n(2),m=[],y=l.getPooled(),b=!1,_=null,C={initialize:function(){this.dirtyComponentsLength=m.length},close:function(){this.dirtyComponentsLength!==m.length?(m.splice(0,this.dirtyComponentsLength),E()):m.length=0}},x={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},w=[C,x];g(i.prototype,d.Mixin,{getTransactionWrappers:function(){return w},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(t,e,n){return d.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,t,e,n)}}),h.addPoolingTo(i);var E=function(){for(;m.length||b;){if(m.length){var t=i.getPooled();t.perform(a,null,t),i.release(t)}if(b){b=!1;var e=y;y=l.getPooled(),e.notifyAll(),l.release(e)}}};E=f.measure("ReactUpdates","flushBatchedUpdates",E);var S={injectReconcileTransaction:function(t){t?void 0:"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must provide a reconcile transaction class"):v(!1),O.ReactReconcileTransaction=t},injectBatchingStrategy:function(t){t?void 0:"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must provide a batching strategy"):v(!1),"function"!=typeof t.batchedUpdates?"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must provide a batchedUpdates() function"):v(!1):void 0,"boolean"!=typeof t.isBatchingUpdates?"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):v(!1):void 0,_=t}},O={ReactReconcileTransaction:null,batchedUpdates:o,enqueueUpdate:c,flushBatchedUpdates:E,injection:S,asap:u};t.exports=O}).call(e,n(1))},function(t,e){"use strict";function n(t){return function(){return t}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";var r=n(38),i=r({bubbled:null,captured:null}),o=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),s={topLevelTypes:o,PropagationPhases:i};t.exports=s},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e,n){(function(e){"use strict";var r=n(2),i=function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)},o=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},s=function(t,e,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n),i}return new r(t,e,n)},a=function(t,e,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,t,e,n,r),o}return new i(t,e,n,r)},c=function(t,e,n,r,i){var o=this;if(o.instancePool.length){var s=o.instancePool.pop();return o.call(s,t,e,n,r,i),s}return new o(t,e,n,r,i)},u=function(t){var n=this;t instanceof n?void 0:"production"!==e.env.NODE_ENV?r(!1,"Trying to release an instance into a pool of a different type."):r(!1),t.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(t)},l=10,h=i,f=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||h,n.poolSize||(n.poolSize=l),n.release=u,n},p={addPoolingTo:f,oneArgumentPooler:i,twoArgumentPooler:o,threeArgumentPooler:s,fourArgumentPooler:a,fiveArgumentPooler:c};t.exports=p}).call(e,n(1))},function(t,e){"use strict";var n=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null};t.exports=n},function(t,e,n){(function(e){"use strict";function r(t,e){return(t&e)===e}var i=n(2),o={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(t){var n=o,s=t.Properties||{},c=t.DOMAttributeNamespaces||{},u=t.DOMAttributeNames||{},l=t.DOMPropertyNames||{},h=t.DOMMutationMethods||{};t.isCustomAttribute&&a._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var f in s){a.properties.hasOwnProperty(f)?"production"!==e.env.NODE_ENV?i(!1,"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",f):i(!1):void 0;var p=f.toLowerCase(),d=s[f],g={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(d,n.MUST_USE_ATTRIBUTE),mustUseProperty:r(d,n.MUST_USE_PROPERTY),hasSideEffects:r(d,n.HAS_SIDE_EFFECTS),hasBooleanValue:r(d,n.HAS_BOOLEAN_VALUE),hasNumericValue:r(d,n.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(d,n.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(d,n.HAS_OVERLOADED_BOOLEAN_VALUE)};if(g.mustUseAttribute&&g.mustUseProperty?"production"!==e.env.NODE_ENV?i(!1,"DOMProperty: Cannot require using both attribute and property: %s",f):i(!1):void 0,!g.mustUseProperty&&g.hasSideEffects?"production"!==e.env.NODE_ENV?i(!1,"DOMProperty: Properties that have side effects must use property: %s",f):i(!1):void 0,g.hasBooleanValue+g.hasNumericValue+g.hasOverloadedBooleanValue<=1?void 0:"production"!==e.env.NODE_ENV?i(!1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",f):i(!1),"production"!==e.env.NODE_ENV&&(a.getPossibleStandardName[p]=f),u.hasOwnProperty(f)){var v=u[f];g.attributeName=v,"production"!==e.env.NODE_ENV&&(a.getPossibleStandardName[v]=f)}c.hasOwnProperty(f)&&(g.attributeNamespace=c[f]),l.hasOwnProperty(f)&&(g.propertyName=l[f]),h.hasOwnProperty(f)&&(g.mutationMethod=h[f]),a.properties[f]=g}}},s={},a={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:"production"!==e.env.NODE_ENV?{}:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e<a._isCustomAttributeFunctions.length;e++){var n=a._isCustomAttributeFunctions[e];if(n(t))return!0}return!1},getDefaultValueForProperty:function(t,e){var n,r=s[t];return r||(s[t]=r={}),e in r||(n=document.createElement(t),r[e]=n[e]),r[e]},injection:o};t.exports=a}).call(e,n(1))},function(t,e,n){"use strict";function r(){i.attachRefs(this,this._currentElement)}var i=n(141),o={mountComponent:function(t,e,n,i){var o=t.mountComponent(e,n,i);return t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(r,t),o},unmountComponent:function(t){i.detachRefs(t,t._currentElement),t.unmountComponent()},receiveComponent:function(t,e,n,o){var s=t._currentElement;if(e!==s||o!==t._context){var a=i.shouldUpdateRefs(s,e);a&&i.detachRefs(t,s),t.receiveComponent(e,n,o),a&&t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(r,t)}},performUpdateIfNecessary:function(t,e){t.performUpdateIfNecessary(e)}};t.exports=o},function(t,e,n){(function(e){"use strict";function r(t,e,n,r){this.dispatchConfig=t,this.dispatchMarker=e,this.nativeEvent=n,this.target=r,this.currentTarget=r;var i=this.constructor.Interface;for(var o in i)if(i.hasOwnProperty(o)){
var a=i[o];a?this[o]=a(n):this[o]=n[o]}var c=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;c?this.isDefaultPrevented=s.thatReturnsTrue:this.isDefaultPrevented=s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse}var i=n(13),o=n(3),s=n(10),a=n(4),c={type:null,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?a(t,"This synthetic event is reused for performance reasons. If you're seeing this, you're calling `preventDefault` on a released/nullified synthetic event. This is a no-op. See https://fb.me/react-event-pooling for more information."):void 0),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1,this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?a(t,"This synthetic event is reused for performance reasons. If you're seeing this, you're calling `stopPropagation` on a released/nullified synthetic event. This is a no-op. See https://fb.me/react-event-pooling for more information."):void 0),t&&(t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=c,r.augmentClass=function(t,e){var n=this,r=Object.create(n.prototype);o(r,t.prototype),t.prototype=r,t.prototype.constructor=t,t.Interface=o({},n.Interface,e),t.augmentClass=n.augmentClass,i.addPoolingTo(t,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){function r(t){return this instanceof r?(c.call(this,t),u.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",i)):new r(t)}function i(){this.allowHalfOpen||this._writableState.ended||e.nextTick(this.end.bind(this))}function o(t,e){for(var n=0,r=t.length;r>n;n++)e(t[n],n)}t.exports=r;var s=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},a=n(27);a.inherits=n(28);var c=n(99),u=n(61);a.inherits(r,c),o(s(u.prototype),function(t){r.prototype[t]||(r.prototype[t]=u.prototype[t])})}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t){return p+t.toString(36)}function i(t,e){return t.charAt(e)===p||e===t.length}function o(t){return""===t||t.charAt(0)===p&&t.charAt(t.length-1)!==p}function s(t,e){return 0===e.indexOf(t)&&i(e,t.length)}function a(t){return t?t.substr(0,t.lastIndexOf(p)):""}function c(t,n){if(o(t)&&o(n)?void 0:"production"!==e.env.NODE_ENV?f(!1,"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",t,n):f(!1),s(t,n)?void 0:"production"!==e.env.NODE_ENV?f(!1,"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",t,n):f(!1),t===n)return t;var r,a=t.length+d;for(r=a;r<n.length&&!i(n,r);r++);return n.substr(0,r)}function u(t,n){var r=Math.min(t.length,n.length);if(0===r)return"";for(var s=0,a=0;r>=a;a++)if(i(t,a)&&i(n,a))s=a;else if(t.charAt(a)!==n.charAt(a))break;var c=t.substr(0,s);return o(c)?void 0:"production"!==e.env.NODE_ENV?f(!1,"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",t,n,c):f(!1),c}function l(t,n,r,i,o,u){t=t||"",n=n||"",t===n?"production"!==e.env.NODE_ENV?f(!1,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",t):f(!1):void 0;var l=s(n,t);l||s(t,n)?void 0:"production"!==e.env.NODE_ENV?f(!1,"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",t,n):f(!1);for(var h=0,p=l?a:c,d=t;;d=p(d,n)){var v;if(o&&d===t||u&&d===n||(v=r(d,l,i)),v===!1||d===n)break;h++<g?void 0:"production"!==e.env.NODE_ENV?f(!1,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",t,n,d):f(!1)}}var h=n(85),f=n(2),p=".",d=p.length,g=1e4,v={createReactRootID:function(){return r(h.createReactRootIndex())},createReactID:function(t,e){return t+e},getReactRootIDFromNodeID:function(t){if(t&&t.charAt(0)===p&&t.length>1){var e=t.indexOf(p,1);return e>-1?t.substr(0,e):t}return null},traverseEnterLeave:function(t,e,n,r,i){var o=u(t,e);o!==t&&l(t,o,n,r,!1,!0),o!==e&&l(o,e,n,i,!0,!1)},traverseTwoPhase:function(t,e,n){t&&(l("",t,e,n,!0,!1),l(t,"",e,n,!1,!0))},traverseTwoPhaseSkipTarget:function(t,e,n){t&&(l("",t,e,n,!0,!0),l(t,"",e,n,!0,!0))},traverseAncestors:function(t,e,n){l("",t,e,n,!0,!1)},getFirstCommonAncestorID:u,_getNextDescendantID:c,isAncestorIDOf:s,SEPARATOR:p};t.exports=v}).call(e,n(1))},function(t,e,n){(function(t,r){function i(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(n){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(this.length=0,this.parent=void 0,"number"==typeof e?s(this,e):"string"==typeof e?a(this,e,arguments.length>1?arguments[1]:"utf8"):c(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function s(e,n){if(e=g(e,0>n?0:0|v(n)),!t.TYPED_ARRAY_SUPPORT)for(var r=0;n>r;r++)e[r]=0;return e}function a(t,e,n){("string"!=typeof n||""===n)&&(n="utf8");var r=0|y(e,n);return t=g(t,r),t.write(e,n),t}function c(e,n){if(t.isBuffer(n))return u(e,n);if($(n))return l(e,n);if(null==n)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(n.buffer instanceof ArrayBuffer)return h(e,n);if(n instanceof ArrayBuffer)return f(e,n)}return n.length?p(e,n):d(e,n)}function u(t,e){var n=0|v(e.length);return t=g(t,n),e.copy(t,0,0,n),t}function l(t,e){var n=0|v(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function h(t,e){var n=0|v(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function f(e,n){return t.TYPED_ARRAY_SUPPORT?(n.byteLength,e=t._augment(new Uint8Array(n))):e=h(e,new Uint8Array(n)),e}function p(t,e){var n=0|v(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function d(t,e){var n,r=0;"Buffer"===e.type&&$(e.data)&&(n=e.data,r=0|v(n.length)),t=g(t,r);for(var i=0;r>i;i+=1)t[i]=255&n[i];return t}function g(e,n){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(n)),e.__proto__=t.prototype):(e.length=n,e._isBuffer=!0);var r=0!==n&&n<=t.poolSize>>>1;return r&&(e.parent=J),e}function v(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function m(e,n){if(!(this instanceof m))return new m(e,n);var r=new t(e,n);return delete r.parent,r}function y(t,e){"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(r)return Y(t).length;e=(""+e).toLowerCase(),r=!0}}function b(t,e,n){var r=!1;if(e=0|e,n=void 0===n||n===1/0?this.length:0|n,t||(t="utf8"),0>e&&(e=0),n>this.length&&(n=this.length),e>=n)return"";for(;;)switch(t){case"hex":return M(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return N(this,e,n);case"binary":return k(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new Error("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;s++){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[n+s]=a}return s}function C(t,e,n,r){return H(Y(e,t.length-n),t,n,r)}function x(t,e,n,r){return H(z(e),t,n,r)}function w(t,e,n,r){return x(t,e,n,r)}function E(t,e,n,r){return H(G(e),t,n,r)}function S(t,e,n,r){return H(X(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?q.fromByteArray(t):q.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;n>i;){var o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(n>=i+a){var c,u,l,h;switch(a){case 1:128>o&&(s=o);break;case 2:c=t[i+1],128===(192&c)&&(h=(31&o)<<6|63&c,h>127&&(s=h));break;case 3:c=t[i+1],u=t[i+2],128===(192&c)&&128===(192&u)&&(h=(15&o)<<12|(63&c)<<6|63&u,h>2047&&(55296>h||h>57343)&&(s=h));break;case 4:c=t[i+1],u=t[i+2],l=t[i+3],128===(192&c)&&128===(192&u)&&128===(192&l)&&(h=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&l,h>65535&&1114112>h&&(s=h))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return D(r)}function D(t){var e=t.length;if(Q>=e)return String.fromCharCode.apply(String,t);for(var n="",r=0;e>r;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Q));return n}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;i++)r+=String.fromCharCode(127&t[i]);return r}function k(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;i++)r+=String.fromCharCode(t[i]);return r}function M(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=e;n>o;o++)i+=W(t[o]);return i}function I(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(t,e,n){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function A(e,n,r,i,o,s){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(n>o||s>n)throw new RangeError("value is out of bounds");if(r+i>e.length)throw new RangeError("index out of range")}function R(t,e,n,r){0>e&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);o>i;i++)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(t,e,n,r){0>e&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);o>i;i++)t[n+i]=e>>>8*(r?i:3-i)&255}function L(t,e,n,r,i,o){if(e>i||o>e)throw new RangeError("value is out of bounds");if(n+r>t.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function V(t,e,n,r,i){return i||L(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function B(t,e,n,r,i){return i||L(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function U(t){if(t=F(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function F(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return 16>t?"0"+t.toString(16):t.toString(16)}function Y(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;r>s;s++){if(n=t.charCodeAt(s),n>55295&&57344>n){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(56320>n){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,128>n){if((e-=1)<0)break;o.push(n)}else if(2048>n){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(65536>n){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function X(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);s++)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function G(t){return q.toByteArray(U(t))}function H(t,e,n,r){for(var i=0;r>i&&!(i+n>=e.length||i>=t.length);i++)e[i+n]=t[i];return i}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var q=n(181),K=n(182),$=n(183);e.Buffer=t,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var J={};t.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:i(),t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,i=n.length,o=0,s=Math.min(r,i);s>o&&e[o]===n[o];)++o;return o!==s&&(r=e[o],i=n[o]),i>r?-1:r>i?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!$(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var r;if(void 0===n)for(n=0,r=0;r<e.length;r++)n+=e[r].length;var i=new t(n),o=0;for(r=0;r<e.length;r++){var s=e[r];s.copy(i,o),o+=s.length}return i},t.byteLength=y,t.prototype.length=void 0,t.prototype.parent=void 0,t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):b.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===t.compare(this,e)},t.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,n){function r(t,e,n){for(var r=-1,i=0;n+i<t.length;i++)if(t[n+i]===e[-1===r?0:i-r]){if(-1===r&&(r=i),i-r+1===e.length)return n+r}else r=-1;return-1}if(n>2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),n>>=0,0===this.length)return-1;if(n>=this.length)return-1;if(0>n&&(n=Math.max(this.length+n,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,n);if(t.isBuffer(e))return r(this,e,n);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,n):r(this,[e],n);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var i=r;r=e,e=0|n,n=i}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(0>n||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return C(this,t,e,n);case"ascii":return x(this,t,e,n);case"binary":return w(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;t.prototype.slice=function(e,n){var r=this.length;e=~~e,n=void 0===n?r:~~n,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>n?(n+=r,0>n&&(n=0)):n>r&&(n=r),e>n&&(n=e);var i;if(t.TYPED_ARRAY_SUPPORT)i=t._augment(this.subarray(e,n));else{var o=n-e;i=new t(o,void 0);for(var s=0;o>s;s++)i[s]=this[s+e]}return i.length&&(i.parent=this.parent||this),i},t.prototype.readUIntLE=function(t,e,n){t=0|t,e=0|e,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},t.prototype.readUIntBE=function(t,e,n){t=0|t,e=0|e,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},t.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},t.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},t.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),K.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||P(t