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

@cycle/dom

Package Overview
Dependencies
Maintainers
2
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cycle/dom - npm Package Compare versions

Comparing version 10.0.3 to 10.0.4

2

dist/cycle-dom.min.js

@@ -1,2 +0,2 @@

!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.CycleDOM=e()}}(function(){return function e(t,n,r){function o(i,u){if(!n[i]){if(!t[i]){var s="function"==typeof require&&require;if(!u&&s)return s(i,!0);if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[i]={exports:{}};t[i][0].call(f.exports,function(e){var n=t[i][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(e)}var o,a=e("./ScopeChecker"),i=e("./utils");try{o=e("matches-selector")}catch(u){o=Function.prototype}var s=function(){function e(e,t){this.namespace=e,this.isolateModule=t}return e.prototype.call=function(e){var t=this.namespace;if(""===t.join(""))return e;var n=i.getScope(t),u=new a.ScopeChecker(n,this.isolateModule),s=i.getSelectors(t),l=e,f=[];return n.length>0&&(l=this.isolateModule.getIsolatedElement(n)||e,s&&o(l,s)&&f.push(l)),r(l.querySelectorAll(s)).filter(u.isStrictlyInRootScope,u).concat(f)},e}();n.ElementFinder=s},{"./ScopeChecker":5,"./utils":18,"matches-selector":40}],2:[function(e,t,n){"use strict";var r,o=e("./ScopeChecker"),a=e("./utils");try{r=e("matches-selector")}catch(i){r=Function.prototype}var u=function(){function e(e,t,n,r){var o=this;this.topElement=e,this.eventType=t,this.useCapture=n,this.isolateModule=r,this.destinations=[],this.roof=e.parentElement,n?this.domListener=function(e){return o.capture(e)}:this.domListener=function(e){return o.bubble(e)},e.addEventListener(t,this.domListener,n)}return e.prototype.bubble=function(e){if(document.body.contains(e.currentTarget))for(var t=this.patchEvent(e),n=t.target;n&&n!==this.roof;n=n.parentElement){if(t.propagationHasBeenStopped)return;this.matchEventAgainstDestinations(n,t)}},e.prototype.matchEventAgainstDestinations=function(e,t){for(var n=0,o=this.destinations.length;o>n;n++){var a=this.destinations[n];a.scopeChecker.isStrictlyInRootScope(e)&&r(e,a.selector)&&(this.mutateEventCurrentTarget(t,e),a.subject._n(t))}},e.prototype.capture=function(e){for(var t=0,n=this.destinations.length;n>t;t++){var o=this.destinations[t];r(e.target,o.selector)&&o.subject._n(e)}},e.prototype.addDestination=function(e,t){var n=a.getScope(t),r=a.getSelectors(t),i=new o.ScopeChecker(n,this.isolateModule);this.destinations.push({subject:e,scopeChecker:i,selector:r})},e.prototype.patchEvent=function(e){var t=e;t.propagationHasBeenStopped=!1;var n=t.stopPropagation;return t.stopPropagation=function(){n.call(this),this.propagationHasBeenStopped=!0},t},e.prototype.mutateEventCurrentTarget=function(e,t){try{Object.defineProperty(e,"currentTarget",{value:t,configurable:!0})}catch(n){console.log("please use event.ownerTarget")}e.ownerTarget=t},e.prototype.updateTopElement=function(e){this.topElement.removeEventListener(this.eventType,this.domListener,this.useCapture),e.addEventListener(this.eventType,this.domListener,this.useCapture),this.topElement=e},e}();n.EventDelegator=u},{"./ScopeChecker":5,"./utils":18,"matches-selector":40}],3:[function(e,t,n){(function(t){"use strict";var r="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null,o=e("@cycle/xstream-adapter"),a=function(){function e(e,t){this.runSA=t,this._html$=e,this._empty$=t.adapt(r["default"].empty(),o["default"].streamSubscribe)}return e.prototype.elements=function(){return this.runSA.adapt(this._html$,o["default"].streamSubscribe)},e.prototype.select=function(t){return new e(r["default"].empty(),this.runSA)},e.prototype.events=function(e,t){return this._empty$},e}();n.HTMLSource=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@cycle/xstream-adapter":19}],4:[function(e,t,n){(function(t){"use strict";function r(e,t){var n=!1;return"boolean"==typeof t.useCapture&&(n=t.useCapture),-1!==p.indexOf(e)&&(n=!0),n}var o,a=e("@cycle/xstream-adapter"),i="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null,u=e("./ElementFinder"),s=e("./fromEvent"),l=e("./isolate"),f=e("./EventDelegator"),d=e("./utils");try{o=e("matches-selector")}catch(c){o=Function.prototype}var p=["blur","canplay","canplaythrough","change","durationchange","emptied","ended","focus","load","loadeddata","loadedmetadata","mouseenter","mouseleave","pause","play","playing","ratechange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeupdate","unload","volumechange","waiting"],h=function(){function e(e,t,n,r,o){void 0===n&&(n=[]),this._rootElement$=e,this._runStreamAdapter=t,this._namespace=n,this._isolateModule=r,this._delegators=o,this.isolateSource=l.isolateSource,this.isolateSink=l.isolateSink}return e.prototype.elements=function(){var e;if(0===this._namespace.length)e=this._rootElement$;else{var t=new u.ElementFinder(this._namespace,this._isolateModule);e=this._rootElement$.map(function(e){return t.call(e)})}var n=this._runStreamAdapter;return n.remember(n.adapt(e,a["default"].streamSubscribe))},Object.defineProperty(e.prototype,"namespace",{get:function(){return this._namespace},enumerable:!0,configurable:!0}),e.prototype.select=function(t){if("string"!=typeof t)throw new Error("DOM driver's select() expects the argument to be a string as a CSS selector");var n=t.trim(),r=":root"===n?this._namespace:this._namespace.concat(n);return new e(this._rootElement$,this._runStreamAdapter,r,this._isolateModule,this._delegators)},e.prototype.events=function(e,t){if(void 0===t&&(t={}),"string"!=typeof e)throw new Error("DOM driver's events() expects argument to be a string representing the event type to listen for.");var n=r(e,t),o=this._namespace,u=d.getScope(o),l=[e,n];u&&l.push(u);var c,p=l.join("~"),h=this;if(u){var m=!1;c=this._rootElement$.filter(function(e){var t=!!h._isolateModule.getIsolatedElement(u),n=t&&!m;return m=t,n})}else c=this._rootElement$.take(2);var v=c.map(function(t){if(!o||0===o.length)return s.fromEvent(t,e,n);var r,a=h._delegators,l=u?h._isolateModule.getIsolatedElement(u):t;a.has(p)?(r=a.get(p),r.updateTopElement(l)):(r=new f.EventDelegator(l,e,n,h._isolateModule),a.set(p,r));var d=i["default"].create();return u&&h._isolateModule.addEventDelegator(u,r),r.addDestination(d,o),d}).flatten();return this._runStreamAdapter.adapt(v,a["default"].streamSubscribe)},e.prototype.dispose=function(){this._isolateModule.reset()},e}();n.MainDOMSource=h}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ElementFinder":1,"./EventDelegator":2,"./fromEvent":7,"./isolate":11,"./utils":18,"@cycle/xstream-adapter":19,"matches-selector":40}],5:[function(e,t,n){"use strict";var r=function(){function e(e,t){this.scope=e,this.isolateModule=t}return e.prototype.isStrictlyInRootScope=function(e){for(var t=e;t;t=t.parentElement){var n=this.isolateModule.isIsolatedElement(t);if(n&&n!==this.scope)return!1;if(n)return!0}return!0},e}();n.ScopeChecker=r},{}],6:[function(e,t,n){"use strict";var r=e("./hyperscript"),o=e("snabbdom-selector/lib/classNameFromVNode"),a=e("snabbdom-selector/lib/selectorParser"),i=function(){function e(e){this.rootElement=e}return e.prototype.call=function(e){var t=a["default"](e.sel),n=t.tagName,i=t.id,u=o["default"](e),s=e.data||{},l=s.props||{},f=l.id,d=void 0===f?i:f,c=d.toUpperCase()===this.rootElement.id.toUpperCase()&&n.toUpperCase()===this.rootElement.tagName.toUpperCase()&&u.toUpperCase()===this.rootElement.className.toUpperCase();if(c)return e;var p=this.rootElement,h=p.tagName,m=p.id,v=p.className,y=m?"#"+m:"",g=v?"."+v.split(" ").join("."):"";return r.h(""+h+y+g,{},[e])},e}();n.VNodeWrapper=i},{"./hyperscript":9,"snabbdom-selector/lib/classNameFromVNode":41,"snabbdom-selector/lib/selectorParser":42}],7:[function(e,t,n){(function(e){"use strict";function t(e,t,n){return void 0===n&&(n=!1),r.Stream.create({element:e,next:null,start:function(e){this.next=function(t){e.next(t)},this.element.addEventListener(t,this.next,n)},stop:function(){this.element.removeEventListener(t,this.next,n)}})}var r="undefined"!=typeof window?window.xstream:"undefined"!=typeof e?e.xstream:null;n.fromEvent=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,n){"use strict";function r(e){return"string"==typeof e&&e.length>0}function o(e){return r(e)&&("."===e[0]||"#"===e[0])}function a(e){return function(t,n,r){return o(t)?n&&r?i.h(e+t,n,r):n?i.h(e+t,n):i.h(e+t,{}):n?i.h(e,t,n):t?i.h(e,t):i.h(e,{})}}var i=e("./hyperscript"),u=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","colorProfile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotlight","feTile","feTurbulence","filter","font","fontFace","fontFaceFormat","fontFaceName","fontFaceSrc","fontFaceUri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missingGlyph","mpath","path","pattern","polygon","polyling","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],s=a("svg");u.forEach(function(e){s[e]=a(e)});var l=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","dfn","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","meta","nav","noscript","object","ol","optgroup","option","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","u","ul","video"],f={SVG_TAG_NAMES:u,TAG_NAMES:l,svg:s,isSelector:o,createTagFunction:a};l.forEach(function(e){f[e]=a(e)}),Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=f},{"./hyperscript":9}],9:[function(e,t,n){"use strict";function r(e){return!Array.isArray(e)&&"function"==typeof e.map}function o(e){return a(e.data,e.children),e}function a(e,t){if(e.ns="http://www.w3.org/2000/svg","undefined"!=typeof t&&u.array(t))for(var n=0;n<t.length;++n)r(t[n])?t[n]=t[n].map(o):a(t[n].data,t[n].children)}function i(e,t,n){var r,o,i,l={};if(3===arguments.length?(l=t,u.array(n)?r=n:u.primitive(n)&&(o=n)):2===arguments.length&&(u.array(t)?r=t:u.primitive(t)?o=t:l=t),u.array(r))for(r=r.filter(function(e){return e}),i=0;i<r.length;++i)u.primitive(r[i])&&(r[i]=s(void 0,void 0,void 0,r[i]));return"s"===e[0]&&"v"===e[1]&&"g"===e[2]&&a(l,r),s(e,l,r,o,void 0)}var u=e("snabbdom/is"),s=e("snabbdom/vnode");n.h=i},{"snabbdom/is":52,"snabbdom/vnode":61}],10:[function(e,t,n){"use strict";var r=e("snabbdom/thunk");n.thunk=r;var o=e("./makeDOMDriver");n.makeDOMDriver=o.makeDOMDriver;var a=e("./makeHTMLDriver");n.makeHTMLDriver=a.makeHTMLDriver;var i=e("./mockDOMSource");n.mockDOMSource=i.mockDOMSource;var u=e("./hyperscript");n.h=u.h;var s=e("./hyperscript-helpers");n.svg=s["default"].svg,n.a=s["default"].a,n.abbr=s["default"].abbr,n.address=s["default"].address,n.area=s["default"].area,n.article=s["default"].article,n.aside=s["default"].aside,n.audio=s["default"].audio,n.b=s["default"].b,n.base=s["default"].base,n.bdi=s["default"].bdi,n.bdo=s["default"].bdo,n.blockquote=s["default"].blockquote,n.body=s["default"].body,n.br=s["default"].br,n.button=s["default"].button,n.canvas=s["default"].canvas,n.caption=s["default"].caption,n.cite=s["default"].cite,n.code=s["default"].code,n.col=s["default"].col,n.colgroup=s["default"].colgroup,n.dd=s["default"].dd,n.del=s["default"].del,n.dfn=s["default"].dfn,n.dir=s["default"].dir,n.div=s["default"].div,n.dl=s["default"].dl,n.dt=s["default"].dt,n.em=s["default"].em,n.embed=s["default"].embed,n.fieldset=s["default"].fieldset,n.figcaption=s["default"].figcaption,n.figure=s["default"].figure,n.footer=s["default"].footer,n.form=s["default"].form,n.h1=s["default"].h1,n.h2=s["default"].h2,n.h3=s["default"].h3,n.h4=s["default"].h4,n.h5=s["default"].h5,n.h6=s["default"].h6,n.head=s["default"].head,n.header=s["default"].header,n.hgroup=s["default"].hgroup,n.hr=s["default"].hr,n.html=s["default"].html,n.i=s["default"].i,n.iframe=s["default"].iframe,n.img=s["default"].img,n.input=s["default"].input,n.ins=s["default"].ins,n.kbd=s["default"].kbd,n.keygen=s["default"].keygen,n.label=s["default"].label,n.legend=s["default"].legend,n.li=s["default"].li,n.link=s["default"].link,n.main=s["default"].main,n.map=s["default"].map,n.mark=s["default"].mark,n.menu=s["default"].menu,n.meta=s["default"].meta,n.nav=s["default"].nav,n.noscript=s["default"].noscript,n.object=s["default"].object,n.ol=s["default"].ol,n.optgroup=s["default"].optgroup,n.option=s["default"].option,n.p=s["default"].p,n.param=s["default"].param,n.pre=s["default"].pre,n.progress=s["default"].progress,n.q=s["default"].q,n.rp=s["default"].rp,n.rt=s["default"].rt,n.ruby=s["default"].ruby,n.s=s["default"].s,n.samp=s["default"].samp,n.script=s["default"].script,n.section=s["default"].section,n.select=s["default"].select,n.small=s["default"].small,n.source=s["default"].source,n.span=s["default"].span,n.strong=s["default"].strong,n.style=s["default"].style,n.sub=s["default"].sub,n.sup=s["default"].sup,n.table=s["default"].table,n.tbody=s["default"].tbody,n.td=s["default"].td,n.textarea=s["default"].textarea,n.tfoot=s["default"].tfoot,n.th=s["default"].th,n.thead=s["default"].thead,n.title=s["default"].title,n.tr=s["default"].tr,n.u=s["default"].u,n.ul=s["default"].ul,n.video=s["default"].video},{"./hyperscript":9,"./hyperscript-helpers":8,"./makeDOMDriver":13,"./makeHTMLDriver":14,"./mockDOMSource":15,"snabbdom/thunk":60}],11:[function(e,t,n){"use strict";function r(e,t){return e.select(a.SCOPE_PREFIX+t)}function o(e,t){return e.map(function(e){if(e.data.isolate){var n=parseInt(e.data.isolate.split(a.SCOPE_PREFIX+"cycle")[1]),r=parseInt(t.split("cycle")[1]);if(Number.isNaN(n)||Number.isNaN(r)||n>r)return e}return e.data.isolate=a.SCOPE_PREFIX+t,e})}var a=e("./utils");n.isolateSource=r,n.isolateSink=o},{"./utils":18}],12:[function(e,t,n){"use strict";var r=function(){function e(e){this.isolatedElements=e,this.eventDelegators=new Map}return e.prototype.setScope=function(e,t){this.isolatedElements.set(t,e)},e.prototype.removeScope=function(e){this.isolatedElements["delete"](e)},e.prototype.getIsolatedElement=function(e){return this.isolatedElements.get(e)},e.prototype.isIsolatedElement=function(e){for(var t=Array.from(this.isolatedElements.entries()),n=0;n<t.length;++n)if(e===t[n][1])return t[n][0];return!1},e.prototype.addEventDelegator=function(e,t){var n=this.eventDelegators.get(e);n||(n=[],this.eventDelegators.set(e,n)),n[n.length]=t},e.prototype.reset=function(){this.isolatedElements.clear()},e.prototype.createModule=function(){var e=this;return{create:function(t,n){var r=t.data,o=void 0===r?{}:r,a=n.elm,i=n.data,u=void 0===i?{}:i,s=o.isolate||"",l=u.isolate||"";if(l){s&&e.removeScope(s),e.setScope(a,l);var f=e.eventDelegators.get(l);if(f)for(var d=0,c=f.length;c>d;++d)f[d].updateTopElement(a);else void 0===f&&e.eventDelegators.set(l,[])}s&&!l&&e.removeScope(l)},update:function(t,n){var r=t.data,o=void 0===r?{}:r,a=n.elm,i=n.data,u=void 0===i?{}:i,s=o.isolate||"",l=u.isolate||"";l&&(s&&e.removeScope(s),e.setScope(a,l)),s&&!l&&e.removeScope(l)},remove:function(t,n){var r=t.data;r=r||{};var o=r.isolate;o&&(e.removeScope(o),e.eventDelegators.get(o)&&e.eventDelegators.set(o,[])),n()},destroy:function(t){var n=t.data;n=n||{};var r=n.isolate;r&&(e.removeScope(r),e.eventDelegators.get(r)&&e.eventDelegators.set(r,[]))}}},e}();n.IsolateModule=r},{}],13:[function(e,t,n){(function(t){"use strict";function r(e){if(!Array.isArray(e))throw new Error("Optional modules option must be an array for snabbdom modules")}function o(e){if(!e||"function"!=typeof e.addListener||"function"!=typeof e.fold)throw new Error("The DOM driver function expects as input a Stream of virtual DOM elements")}function a(e,t){function n(e,t){o(e);var n=p.makeTransposeVNode(t),r=a?e.map(n).flatten():e,i=r.map(function(e){return b.call(e)}).fold(y,g).drop(1).map(function(e){return e.elm}).compose(function(e){return u["default"].merge(e,u["default"].never())}).startWith(g);return i.addListener({next:function(){},error:function(){},complete:function(){}}),new s.MainDOMSource(i,t,[],v,x)}t||(t={});var a=t.transposition||!1,m=t.modules||d["default"],v=new c.IsolateModule(new Map),y=i.init([v.createModule()].concat(m)),g=f.getElement(e),b=new l.VNodeWrapper(g),x=new Map;return r(m),n.streamAdapter=h["default"],n}var i=e("snabbdom"),u="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null,s=e("./MainDOMSource"),l=e("./VNodeWrapper"),f=e("./utils"),d=e("./modules"),c=e("./isolateModule"),p=e("./transposition"),h=e("@cycle/xstream-adapter");n.makeDOMDriver=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./MainDOMSource":4,"./VNodeWrapper":6,"./isolateModule":12,"./modules":16,"./transposition":17,"./utils":18,"@cycle/xstream-adapter":19,snabbdom:59}],14:[function(e,t,n){"use strict";function r(e,t){function n(t,n){var o=a.makeTransposeVNode(n),l=r?t.map(o).flatten():t,f=l.last().map(u);return f.addListener({next:e||s,error:s,complete:s}),new i.HTMLSource(f,n)}t||(t={});var r=t.transposition||!1;return n.streamAdapter=o["default"],n}var o=e("@cycle/xstream-adapter"),a=e("./transposition"),i=e("./HTMLSource"),u=e("snabbdom-to-html"),s=function(){};n.makeHTMLDriver=r},{"./HTMLSource":3,"./transposition":17,"@cycle/xstream-adapter":19,"snabbdom-to-html":44}],15:[function(e,t,n){(function(t){"use strict";function r(e,t){return new i(e,t)}var o=e("@cycle/xstream-adapter"),a="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null,i=function(){function e(e,t){this._streamAdapter=e,this._mockConfig=t,t.elements?this._elements=t.elements:this._elements=e.adapt(a["default"].empty(),o["default"].streamSubscribe)}return e.prototype.elements=function(){return this._elements},e.prototype.events=function(e,t){for(var n=this._mockConfig,r=Object.keys(n),i=r.length,u=0;i>u;u++){var s=r[u];if(s===e)return n[s]}return this._streamAdapter.adapt(a["default"].empty(),o["default"].streamSubscribe)},e.prototype.select=function(t){for(var n=this._mockConfig,r=Object.keys(n),o=r.length,a=0;o>a;a++){var i=r[a];if(i===t)return new e(this._streamAdapter,n[i])}return new e(this._streamAdapter,{})},e}();n.MockedDOMSource=i,n.mockDOMSource=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@cycle/xstream-adapter":19}],16:[function(e,t,n){"use strict";var r=e("snabbdom/modules/class");n.ClassModule=r;var o=e("snabbdom/modules/props");n.PropsModule=o;var a=e("snabbdom/modules/attributes");n.AttrsModule=a;var i=e("snabbdom/modules/eventlisteners");n.EventsModule=i;var u=e("snabbdom/modules/style");n.StyleModule=u;var s=e("snabbdom/modules/hero");n.HeroModule=s,Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=[u,r,o,a]},{"snabbdom/modules/attributes":53,"snabbdom/modules/class":54,"snabbdom/modules/eventlisteners":55,"snabbdom/modules/hero":56,"snabbdom/modules/props":57,"snabbdom/modules/style":58}],17:[function(e,t,n){(function(t){"use strict";function r(e,t){return{sel:e.sel,data:e.data,text:e.text,elm:e.elm,key:e.key,children:t}}function o(e){return function t(n){if(n){if(n&&"object"===a(n.data)&&n.data["static"])return u["default"].of(n);if(e.isValidStream(n)){var o=i["default"].adapt(n,e.streamSubscribe);return o.map(t).flatten()}if("object"===("undefined"==typeof n?"undefined":a(n))){if(!n.children||0===n.children.length)return u["default"].of(n);var s=n.children.map(t).filter(function(e){return null!==e});return 0===s.length?u["default"].of(r(n,[])):u["default"].combine.apply(u["default"],s).map(function(e){return r(n,e.slice())})}throw new Error("Unhandled vTree Value")}return null}}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=e("@cycle/xstream-adapter"),u="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null;n.makeTransposeVNode=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@cycle/xstream-adapter":19}],18:[function(e,t,n){"use strict";function r(e){return"object"===("undefined"==typeof HTMLElement?"undefined":u(HTMLElement))?e instanceof HTMLElement||e instanceof DocumentFragment:e&&"object"===("undefined"==typeof e?"undefined":u(e))&&null!==e&&(1===e.nodeType||11===e.nodeType)&&"string"==typeof e.nodeName}function o(e){var t="string"==typeof e?document.querySelector(e):e;if("string"==typeof e&&null===t)throw new Error("Cannot render into unknown element `"+e+"`");if(!r(t))throw new Error("Given container is not a DOM element neither a selector string.");return t}function a(e){return e.filter(function(e){return e.indexOf(n.SCOPE_PREFIX)>-1}).slice(-1).join("")}function i(e){return e.filter(function(e){return-1===e.indexOf(n.SCOPE_PREFIX)}).join(" ")}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};n.SCOPE_PREFIX="$$CYCLEDOM$$-",n.getElement=o,n.getScope=a,n.getSelectors=i},{}],19:[function(e,t,n){(function(e){"use strict";var t="undefined"!=typeof window?window.xstream:"undefined"!=typeof e?e.xstream:null,r={adapt:function(e,n){if(r.isValidStream(e))return e;var o=null;return t["default"].create({start:function(t){var r=t;o=n(e,r)},stop:function(){"function"==typeof o&&o()}})},makeSubject:function(){var e=t["default"].create(),n={next:function(t){e.shamefullySendNext(t)},error:function(t){e.shamefullySendError(t)},complete:function(){e.shamefullySendComplete()}};return{observer:n,stream:e}},remember:function(e){return e.remember()},isValidStream:function(e){return"function"==typeof e.addListener&&"function"==typeof e.shamefullySendNext},streamSubscribe:function(e,t){return e.addListener(t),function(){return e.removeListener(t)}}};Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,t,n){t.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,o,a){if("[object RegExp]"!==Object.prototype.toString.call(o))return n.call(t,o,a);var i,u,s,l,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.extended?"x":"")+(o.sticky?"y":""),c=0,o=new RegExp(o.source,d+"g");for(t+="",r||(i=new RegExp("^"+o.source+"$(?!\\s)",d)),a=a===e?-1>>>0:a>>>0;(u=o.exec(t))&&(s=u.index+u[0].length,!(s>c&&(f.push(t.slice(c,u.index)),!r&&u.length>1&&u[0].replace(i,function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(u[t]=e)}),u.length>1&&u.index<t.length&&Array.prototype.push.apply(f,u.slice(1)),l=u[0].length,c=s,f.length>=a)));)o.lastIndex===u.index&&o.lastIndex++;return c===t.length?(l||!o.test(""))&&f.push(""):f.push(t.slice(c)),f.length>a?f.slice(0,a):f}}()},{}],21:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function a(e,t,n,i){i||(i=[]);for(var s=-1,d=e.length;++s<d;){var c=e[s];r(c)&&u(c)&&(n||f(c)||l(c))?t?a(c,t,n,i):o(i,c):n||(i[i.length]=c)}return i}function i(e){return function(t){return null==t?void 0:t[e]}}function u(e){return null!=e&&s(c(e))}function s(e){return"number"==typeof e&&e>-1&&e%1==0&&d>=e}var l=e("lodash.isarguments"),f=e("lodash.isarray"),d=9007199254740991,c=i("length");t.exports=a},{"lodash.isarguments":33,"lodash.isarray":34}],22:[function(e,t,n){function r(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),u=i.length;u--;){var s=i[e?u:++o];if(n(a[s],s,a)===!1)break}return t}}var o=r();t.exports=o},{}],23:[function(e,t,n){function r(e,t,n){if(t!==t)return o(e,n);for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function o(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var a=e[o];if(a!==a)return o}return-1}t.exports=r},{}],24:[function(e,t,n){function r(e,t){var n=-1,r=o,s=e.length,l=!0,f=l&&s>=u,d=f?i():null,c=[];d?(r=a,l=!1):(f=!1,d=t?[]:c);e:for(;++n<s;){var p=e[n],h=t?t(p,n,e):p;if(l&&p===p){for(var m=d.length;m--;)if(d[m]===h)continue e;t&&d.push(h),c.push(p)}else r(d,h,0)<0&&((t||f)&&d.push(h),c.push(p))}return c}var o=e("lodash._baseindexof"),a=e("lodash._cacheindexof"),i=e("lodash._createcache"),u=200;t.exports=r},{"lodash._baseindexof":23,"lodash._cacheindexof":26,"lodash._createcache":27}],25:[function(e,t,n){function r(e,t,n){if("function"!=typeof e)return o;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,a){return e.call(t,n,r,o,a)};case 5:return function(n,r,o,a,i){return e.call(t,n,r,o,a,i)}}return function(){return e.apply(t,arguments)}}function o(e){return e}t.exports=r},{}],26:[function(e,t,n){function r(e,t){var n=e.data,r="string"==typeof t||o(t)?n.set.has(t):n.hash[t];return r?0:-1}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=r},{}],27:[function(e,t,n){(function(n){function r(e){var t=e?e.length:0;for(this.data={hash:l(null),set:new s};t--;)this.push(e[t])}function o(e){var t=this.data;"string"==typeof e||i(e)?t.set.add(e):t.hash[e]=!0}function a(e){return l&&s?new r(e):null}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var u=e("lodash._getnative"),s=u(n,"Set"),l=u(Object,"create");r.prototype.push=o,t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"lodash._getnative":28}],28:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){var n=null==e?void 0:e[t];return u(n)?n:void 0}function a(e){return i(e)&&p.call(e)==s}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function u(e){return null==e?!1:a(e)?h.test(d.call(e)):r(e)&&l.test(e)}var s="[object Function]",l=/^\[object .+?Constructor\]$/,f=Object.prototype,d=Function.prototype.toString,c=f.hasOwnProperty,p=f.toString,h=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},{}],29:[function(e,t,n){(function(e){function r(e){return e&&e.Object===Object?e:null}var o={"function":!0,object:!0},a=o[typeof n]&&n&&!n.nodeType?n:void 0,i=o[typeof t]&&t&&!t.nodeType?t:void 0,u=r(a&&i&&"object"==typeof e&&e),s=r(o[typeof self]&&self),l=r(o[typeof window]&&window),f=r(o[typeof this]&&this),d=u||l!==(f&&f.window)&&l||s||f||Function("return this")();t.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],30:[function(e,t,n){function r(e){return v[e]}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&g.call(e)==f}function i(e){if("string"==typeof e)return e;if(null==e)return"";if(a(e))return b?w.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}function u(e){return e=i(e),e&&e.replace(d,r).replace(m,"")}var s=e("lodash._root"),l=1/0,f="[object Symbol]",d=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,c="\\u0300-\\u036f\\ufe20-\\ufe23",p="\\u20d0-\\u20f0",h="["+c+p+"]",m=RegExp(h,"g"),v={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},y=Object.prototype,g=y.toString,b=s.Symbol,x=b?b.prototype:void 0,w=b?x.toString:void 0;t.exports=u},{"lodash._root":29}],31:[function(e,t,n){function r(e){return p[e]}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&m.call(e)==f}function i(e){if("string"==typeof e)return e;if(null==e)return"";if(a(e))return v?g.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}function u(e){return e=i(e),e&&c.test(e)?e.replace(d,r):e}var s=e("lodash._root"),l=1/0,f="[object Symbol]",d=/[&<>"'`]/g,c=RegExp(d.source),p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},h=Object.prototype,m=h.toString,v=s.Symbol,y=v?v.prototype:void 0,g=v?y.toString:void 0;t.exports=u},{"lodash._root":29}],32:[function(e,t,n){function r(e,t){return a(e,t,u)}function o(e){return function(t,n,r){return("function"!=typeof n||void 0!==r)&&(n=i(n,r,3)),e(t,n)}}var a=e("lodash._basefor"),i=e("lodash._bindcallback"),u=e("lodash.keys"),s=o(r);t.exports=s},{"lodash._basefor":22,"lodash._bindcallback":25,"lodash.keys":36}],33:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}function o(e){return i(e)&&v.call(e,"callee")&&(!g.call(e,"callee")||y.call(e)==c)}function a(e){return null!=e&&s(b(e))&&!u(e)}function i(e){return f(e)&&a(e)}function u(e){var t=l(e)?y.call(e):"";return t==p||t==h}function s(e){return"number"==typeof e&&e>-1&&e%1==0&&d>=e}function l(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){return!!e&&"object"==typeof e}var d=9007199254740991,c="[object Arguments]",p="[object Function]",h="[object GeneratorFunction]",m=Object.prototype,v=m.hasOwnProperty,y=m.toString,g=m.propertyIsEnumerable,b=r("length");t.exports=o},{}],34:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){var n=null==e?void 0:e[t];return s(n)?n:void 0}function a(e){return"number"==typeof e&&e>-1&&e%1==0&&g>=e}function i(e){return u(e)&&m.call(e)==f}function u(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function s(e){return null==e?!1:i(e)?v.test(p.call(e)):r(e)&&d.test(e)}var l="[object Array]",f="[object Function]",d=/^\[object .+?Constructor\]$/,c=Object.prototype,p=Function.prototype.toString,h=c.hasOwnProperty,m=c.toString,v=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=o(Array,"isArray"),g=9007199254740991,b=y||function(e){return r(e)&&a(e.length)&&m.call(e)==l};t.exports=b},{}],35:[function(e,t,n){function r(e,t,n,r){var o=-1,a=e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function o(e){return function(t){return r(i(a(t)),e,"")}}var a=e("lodash.deburr"),i=e("lodash.words"),u=o(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});t.exports=u},{"lodash.deburr":30,"lodash.words":39}],36:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}function o(e){return null!=e&&i(g(e))}function a(e,t){return e="number"==typeof e||p.test(e)?+e:-1,t=null==t?y:t,e>-1&&e%1==0&&t>e}function i(e){return"number"==typeof e&&e>-1&&e%1==0&&y>=e}function u(e){for(var t=l(e),n=t.length,r=n&&e.length,o=!!r&&i(r)&&(c(e)||d(e)),u=-1,s=[];++u<n;){
!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.CycleDOM=e()}}(function(){return function e(t,n,r){function o(i,u){if(!n[i]){if(!t[i]){var s="function"==typeof require&&require;if(!u&&s)return s(i,!0);if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[i]={exports:{}};t[i][0].call(f.exports,function(e){var n=t[i][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(e)}var o,a=e("./ScopeChecker"),i=e("./utils");try{o=e("matches-selector")}catch(u){o=Function.prototype}var s=function(){function e(e,t){this.namespace=e,this.isolateModule=t}return e.prototype.call=function(e){var t=this.namespace;if(""===t.join(""))return e;var n=i.getScope(t),u=new a.ScopeChecker(n,this.isolateModule),s=i.getSelectors(t),l=e,f=[];return n.length>0&&(l=this.isolateModule.getIsolatedElement(n)||e,s&&o(l,s)&&f.push(l)),r(l.querySelectorAll(s)).filter(u.isStrictlyInRootScope,u).concat(f)},e}();n.ElementFinder=s},{"./ScopeChecker":5,"./utils":18,"matches-selector":40}],2:[function(e,t,n){"use strict";var r,o=e("./ScopeChecker"),a=e("./utils");try{r=e("matches-selector")}catch(i){r=Function.prototype}var u=function(){function e(e,t,n,r){var o=this;this.topElement=e,this.eventType=t,this.useCapture=n,this.isolateModule=r,this.destinations=[],this.roof=e.parentElement,n?this.domListener=function(e){return o.capture(e)}:this.domListener=function(e){return o.bubble(e)},e.addEventListener(t,this.domListener,n)}return e.prototype.bubble=function(e){if(document.body.contains(e.currentTarget))for(var t=this.patchEvent(e),n=t.target;n&&n!==this.roof;n=n.parentElement){if(t.propagationHasBeenStopped)return;this.matchEventAgainstDestinations(n,t)}},e.prototype.matchEventAgainstDestinations=function(e,t){for(var n=0,o=this.destinations.length;o>n;n++){var a=this.destinations[n];a.scopeChecker.isStrictlyInRootScope(e)&&r(e,a.selector)&&(this.mutateEventCurrentTarget(t,e),a.subject._n(t))}},e.prototype.capture=function(e){for(var t=0,n=this.destinations.length;n>t;t++){var o=this.destinations[t];r(e.target,o.selector)&&o.subject._n(e)}},e.prototype.addDestination=function(e,t){var n=a.getScope(t),r=a.getSelectors(t),i=new o.ScopeChecker(n,this.isolateModule);this.destinations.push({subject:e,scopeChecker:i,selector:r})},e.prototype.patchEvent=function(e){var t=e;t.propagationHasBeenStopped=!1;var n=t.stopPropagation;return t.stopPropagation=function(){n.call(this),this.propagationHasBeenStopped=!0},t},e.prototype.mutateEventCurrentTarget=function(e,t){try{Object.defineProperty(e,"currentTarget",{value:t,configurable:!0})}catch(n){console.log("please use event.ownerTarget")}e.ownerTarget=t},e.prototype.updateTopElement=function(e){this.topElement.removeEventListener(this.eventType,this.domListener,this.useCapture),e.addEventListener(this.eventType,this.domListener,this.useCapture),this.topElement=e},e}();n.EventDelegator=u},{"./ScopeChecker":5,"./utils":18,"matches-selector":40}],3:[function(e,t,n){(function(t){"use strict";var r="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null,o=e("@cycle/xstream-adapter"),a=function(){function e(e,t){this.runSA=t,this._html$=e,this._empty$=t.adapt(r["default"].empty(),o["default"].streamSubscribe)}return e.prototype.elements=function(){return this.runSA.adapt(this._html$,o["default"].streamSubscribe)},e.prototype.select=function(t){return new e(r["default"].empty(),this.runSA)},e.prototype.events=function(e,t){return this._empty$},e}();n.HTMLSource=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@cycle/xstream-adapter":19}],4:[function(e,t,n){(function(t){"use strict";function r(e,t){var n=!1;return"boolean"==typeof t.useCapture&&(n=t.useCapture),-1!==p.indexOf(e)&&(n=!0),n}var o,a=e("@cycle/xstream-adapter"),i="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null,u=e("./ElementFinder"),s=e("./fromEvent"),l=e("./isolate"),f=e("./EventDelegator"),d=e("./utils");try{o=e("matches-selector")}catch(c){o=Function.prototype}var p=["blur","canplay","canplaythrough","change","durationchange","emptied","ended","focus","load","loadeddata","loadedmetadata","mouseenter","mouseleave","pause","play","playing","ratechange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeupdate","unload","volumechange","waiting"],h=function(){function e(e,t,n,r,o){void 0===n&&(n=[]),this._rootElement$=e,this._runStreamAdapter=t,this._namespace=n,this._isolateModule=r,this._delegators=o,this.isolateSource=l.isolateSource,this.isolateSink=l.isolateSink}return e.prototype.elements=function(){var e;if(0===this._namespace.length)e=this._rootElement$;else{var t=new u.ElementFinder(this._namespace,this._isolateModule);e=this._rootElement$.map(function(e){return t.call(e)})}var n=this._runStreamAdapter;return n.remember(n.adapt(e,a["default"].streamSubscribe))},Object.defineProperty(e.prototype,"namespace",{get:function(){return this._namespace},enumerable:!0,configurable:!0}),e.prototype.select=function(t){if("string"!=typeof t)throw new Error("DOM driver's select() expects the argument to be a string as a CSS selector");var n=t.trim(),r=":root"===n?this._namespace:this._namespace.concat(n);return new e(this._rootElement$,this._runStreamAdapter,r,this._isolateModule,this._delegators)},e.prototype.events=function(e,t){if(void 0===t&&(t={}),"string"!=typeof e)throw new Error("DOM driver's events() expects argument to be a string representing the event type to listen for.");var n=r(e,t),o=this._namespace,u=d.getScope(o),l=[e,n];u&&l.push(u);var c,p=l.join("~"),h=this;if(u){var m=!1;c=this._rootElement$.filter(function(e){var t=!!h._isolateModule.getIsolatedElement(u),n=t&&!m;return m=t,n})}else c=this._rootElement$.take(2);var v=c.map(function(t){if(!o||0===o.length)return s.fromEvent(t,e,n);var r,a=h._delegators,l=u?h._isolateModule.getIsolatedElement(u):t;a.has(p)?(r=a.get(p),r.updateTopElement(l)):(r=new f.EventDelegator(l,e,n,h._isolateModule),a.set(p,r));var d=i["default"].create();return u&&h._isolateModule.addEventDelegator(u,r),r.addDestination(d,o),d}).flatten();return this._runStreamAdapter.adapt(v,a["default"].streamSubscribe)},e.prototype.dispose=function(){this._isolateModule.reset()},e}();n.MainDOMSource=h}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ElementFinder":1,"./EventDelegator":2,"./fromEvent":7,"./isolate":11,"./utils":18,"@cycle/xstream-adapter":19,"matches-selector":40}],5:[function(e,t,n){"use strict";var r=function(){function e(e,t){this.scope=e,this.isolateModule=t}return e.prototype.isStrictlyInRootScope=function(e){for(var t=e;t;t=t.parentElement){var n=this.isolateModule.isIsolatedElement(t);if(n&&n!==this.scope)return!1;if(n)return!0}return!0},e}();n.ScopeChecker=r},{}],6:[function(e,t,n){"use strict";var r=e("./hyperscript"),o=e("snabbdom-selector/lib/classNameFromVNode"),a=e("snabbdom-selector/lib/selectorParser"),i=function(){function e(e){this.rootElement=e}return e.prototype.call=function(e){var t=a["default"](e.sel),n=t.tagName,i=t.id,u=o["default"](e),s=e.data||{},l=s.props||{},f=l.id,d=void 0===f?i:f,c=d.toUpperCase()===this.rootElement.id.toUpperCase()&&n.toUpperCase()===this.rootElement.tagName.toUpperCase()&&u.toUpperCase()===this.rootElement.className.toUpperCase();if(c)return e;var p=this.rootElement,h=p.tagName,m=p.id,v=p.className,y=m?"#"+m:"",g=v?"."+v.split(" ").join("."):"";return r.h(""+h+y+g,{},[e])},e}();n.VNodeWrapper=i},{"./hyperscript":9,"snabbdom-selector/lib/classNameFromVNode":41,"snabbdom-selector/lib/selectorParser":42}],7:[function(e,t,n){(function(e){"use strict";function t(e,t,n){return void 0===n&&(n=!1),r.Stream.create({element:e,next:null,start:function(e){this.next=function(t){e.next(t)},this.element.addEventListener(t,this.next,n)},stop:function(){this.element.removeEventListener(t,this.next,n)}})}var r="undefined"!=typeof window?window.xstream:"undefined"!=typeof e?e.xstream:null;n.fromEvent=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,n){"use strict";function r(e){return"string"==typeof e&&e.length>0}function o(e){return r(e)&&("."===e[0]||"#"===e[0])}function a(e){return function(t,n,r){return o(t)?n&&r?i.h(e+t,n,r):n?i.h(e+t,n):i.h(e+t,{}):n?i.h(e,t,n):t?i.h(e,t):i.h(e,{})}}var i=e("./hyperscript"),u=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","colorProfile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotlight","feTile","feTurbulence","filter","font","fontFace","fontFaceFormat","fontFaceName","fontFaceSrc","fontFaceUri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missingGlyph","mpath","path","pattern","polygon","polyling","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],s=a("svg");u.forEach(function(e){s[e]=a(e)});var l=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","dfn","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","meta","nav","noscript","object","ol","optgroup","option","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","u","ul","video"],f={SVG_TAG_NAMES:u,TAG_NAMES:l,svg:s,isSelector:o,createTagFunction:a};l.forEach(function(e){f[e]=a(e)}),Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=f},{"./hyperscript":9}],9:[function(e,t,n){"use strict";function r(e){return!Array.isArray(e)&&"function"==typeof e.map}function o(e){return a(e.data,e.children),e}function a(e,t){if(e.ns="http://www.w3.org/2000/svg","undefined"!=typeof t&&u.array(t))for(var n=0;n<t.length;++n)r(t[n])?t[n]=t[n].map(o):a(t[n].data,t[n].children)}function i(e,t,n){var r,o,i,l={};if(3===arguments.length?(l=t,u.array(n)?r=n:u.primitive(n)&&(o=n)):2===arguments.length&&(u.array(t)?r=t:u.primitive(t)?o=t:l=t),u.array(r))for(r=r.filter(function(e){return e}),i=0;i<r.length;++i)u.primitive(r[i])&&(r[i]=s(void 0,void 0,void 0,r[i]));return"s"===e[0]&&"v"===e[1]&&"g"===e[2]&&a(l,r),s(e,l,r,o,void 0)}var u=e("snabbdom/is"),s=e("snabbdom/vnode");n.h=i},{"snabbdom/is":52,"snabbdom/vnode":61}],10:[function(e,t,n){"use strict";var r=e("snabbdom/thunk");n.thunk=r;var o=e("./makeDOMDriver");n.makeDOMDriver=o.makeDOMDriver;var a=e("./makeHTMLDriver");n.makeHTMLDriver=a.makeHTMLDriver;var i=e("./mockDOMSource");n.mockDOMSource=i.mockDOMSource;var u=e("./hyperscript");n.h=u.h;var s=e("./hyperscript-helpers");n.svg=s["default"].svg,n.a=s["default"].a,n.abbr=s["default"].abbr,n.address=s["default"].address,n.area=s["default"].area,n.article=s["default"].article,n.aside=s["default"].aside,n.audio=s["default"].audio,n.b=s["default"].b,n.base=s["default"].base,n.bdi=s["default"].bdi,n.bdo=s["default"].bdo,n.blockquote=s["default"].blockquote,n.body=s["default"].body,n.br=s["default"].br,n.button=s["default"].button,n.canvas=s["default"].canvas,n.caption=s["default"].caption,n.cite=s["default"].cite,n.code=s["default"].code,n.col=s["default"].col,n.colgroup=s["default"].colgroup,n.dd=s["default"].dd,n.del=s["default"].del,n.dfn=s["default"].dfn,n.dir=s["default"].dir,n.div=s["default"].div,n.dl=s["default"].dl,n.dt=s["default"].dt,n.em=s["default"].em,n.embed=s["default"].embed,n.fieldset=s["default"].fieldset,n.figcaption=s["default"].figcaption,n.figure=s["default"].figure,n.footer=s["default"].footer,n.form=s["default"].form,n.h1=s["default"].h1,n.h2=s["default"].h2,n.h3=s["default"].h3,n.h4=s["default"].h4,n.h5=s["default"].h5,n.h6=s["default"].h6,n.head=s["default"].head,n.header=s["default"].header,n.hgroup=s["default"].hgroup,n.hr=s["default"].hr,n.html=s["default"].html,n.i=s["default"].i,n.iframe=s["default"].iframe,n.img=s["default"].img,n.input=s["default"].input,n.ins=s["default"].ins,n.kbd=s["default"].kbd,n.keygen=s["default"].keygen,n.label=s["default"].label,n.legend=s["default"].legend,n.li=s["default"].li,n.link=s["default"].link,n.main=s["default"].main,n.map=s["default"].map,n.mark=s["default"].mark,n.menu=s["default"].menu,n.meta=s["default"].meta,n.nav=s["default"].nav,n.noscript=s["default"].noscript,n.object=s["default"].object,n.ol=s["default"].ol,n.optgroup=s["default"].optgroup,n.option=s["default"].option,n.p=s["default"].p,n.param=s["default"].param,n.pre=s["default"].pre,n.progress=s["default"].progress,n.q=s["default"].q,n.rp=s["default"].rp,n.rt=s["default"].rt,n.ruby=s["default"].ruby,n.s=s["default"].s,n.samp=s["default"].samp,n.script=s["default"].script,n.section=s["default"].section,n.select=s["default"].select,n.small=s["default"].small,n.source=s["default"].source,n.span=s["default"].span,n.strong=s["default"].strong,n.style=s["default"].style,n.sub=s["default"].sub,n.sup=s["default"].sup,n.table=s["default"].table,n.tbody=s["default"].tbody,n.td=s["default"].td,n.textarea=s["default"].textarea,n.tfoot=s["default"].tfoot,n.th=s["default"].th,n.thead=s["default"].thead,n.title=s["default"].title,n.tr=s["default"].tr,n.u=s["default"].u,n.ul=s["default"].ul,n.video=s["default"].video},{"./hyperscript":9,"./hyperscript-helpers":8,"./makeDOMDriver":13,"./makeHTMLDriver":14,"./mockDOMSource":15,"snabbdom/thunk":60}],11:[function(e,t,n){"use strict";function r(e,t){return e.select(a.SCOPE_PREFIX+t)}function o(e,t){return e.map(function(e){if(e.data.isolate){var n=parseInt(e.data.isolate.split(a.SCOPE_PREFIX+"cycle")[1]),r=parseInt(t.split("cycle")[1]);if(Number.isNaN(n)||Number.isNaN(r)||n>r)return e}return e.data.isolate=a.SCOPE_PREFIX+t,e})}var a=e("./utils");n.isolateSource=r,n.isolateSink=o},{"./utils":18}],12:[function(e,t,n){"use strict";var r=function(){function e(e){this.isolatedElements=e,this.eventDelegators=new Map}return e.prototype.setScope=function(e,t){this.isolatedElements.set(t,e)},e.prototype.removeScope=function(e){this.isolatedElements["delete"](e)},e.prototype.getIsolatedElement=function(e){return this.isolatedElements.get(e)},e.prototype.isIsolatedElement=function(e){for(var t=Array.from(this.isolatedElements.entries()),n=0;n<t.length;++n)if(e===t[n][1])return t[n][0];return!1},e.prototype.addEventDelegator=function(e,t){var n=this.eventDelegators.get(e);n||(n=[],this.eventDelegators.set(e,n)),n[n.length]=t},e.prototype.reset=function(){this.isolatedElements.clear()},e.prototype.createModule=function(){var e=this;return{create:function(t,n){var r=t.data,o=void 0===r?{}:r,a=n.elm,i=n.data,u=void 0===i?{}:i,s=o.isolate||"",l=u.isolate||"";if(l){s&&e.removeScope(s),e.setScope(a,l);var f=e.eventDelegators.get(l);if(f)for(var d=0,c=f.length;c>d;++d)f[d].updateTopElement(a);else void 0===f&&e.eventDelegators.set(l,[])}s&&!l&&e.removeScope(l)},update:function(t,n){var r=t.data,o=void 0===r?{}:r,a=n.elm,i=n.data,u=void 0===i?{}:i,s=o.isolate||"",l=u.isolate||"";l&&l!==s&&(s&&e.removeScope(s),e.setScope(a,l)),s&&!l&&e.removeScope(l)},remove:function(t,n){var r=t.data;r=r||{};var o=r.isolate;o&&(e.removeScope(o),e.eventDelegators.get(o)&&e.eventDelegators.set(o,[])),n()},destroy:function(t){var n=t.data;n=n||{};var r=n.isolate;r&&(e.removeScope(r),e.eventDelegators.get(r)&&e.eventDelegators.set(r,[]))}}},e}();n.IsolateModule=r},{}],13:[function(e,t,n){(function(t){"use strict";function r(e){if(!Array.isArray(e))throw new Error("Optional modules option must be an array for snabbdom modules")}function o(e){if(!e||"function"!=typeof e.addListener||"function"!=typeof e.fold)throw new Error("The DOM driver function expects as input a Stream of virtual DOM elements")}function a(e,t){function n(e,t){o(e);var n=p.makeTransposeVNode(t),r=a?e.map(n).flatten():e,i=r.map(function(e){return b.call(e)}).fold(y,g).drop(1).map(function(e){return e.elm}).compose(function(e){return u["default"].merge(e,u["default"].never())}).startWith(g);return i.addListener({next:function(){},error:function(){},complete:function(){}}),new s.MainDOMSource(i,t,[],v,x)}t||(t={});var a=t.transposition||!1,m=t.modules||d["default"],v=new c.IsolateModule(new Map),y=i.init([v.createModule()].concat(m)),g=f.getElement(e),b=new l.VNodeWrapper(g),x=new Map;return r(m),n.streamAdapter=h["default"],n}var i=e("snabbdom"),u="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null,s=e("./MainDOMSource"),l=e("./VNodeWrapper"),f=e("./utils"),d=e("./modules"),c=e("./isolateModule"),p=e("./transposition"),h=e("@cycle/xstream-adapter");n.makeDOMDriver=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./MainDOMSource":4,"./VNodeWrapper":6,"./isolateModule":12,"./modules":16,"./transposition":17,"./utils":18,"@cycle/xstream-adapter":19,snabbdom:59}],14:[function(e,t,n){"use strict";function r(e,t){function n(t,n){var o=a.makeTransposeVNode(n),l=r?t.map(o).flatten():t,f=l.last().map(u);return f.addListener({next:e||s,error:s,complete:s}),new i.HTMLSource(f,n)}t||(t={});var r=t.transposition||!1;return n.streamAdapter=o["default"],n}var o=e("@cycle/xstream-adapter"),a=e("./transposition"),i=e("./HTMLSource"),u=e("snabbdom-to-html"),s=function(){};n.makeHTMLDriver=r},{"./HTMLSource":3,"./transposition":17,"@cycle/xstream-adapter":19,"snabbdom-to-html":44}],15:[function(e,t,n){(function(t){"use strict";function r(e,t){return new i(e,t)}var o=e("@cycle/xstream-adapter"),a="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null,i=function(){function e(e,t){this._streamAdapter=e,this._mockConfig=t,t.elements?this._elements=t.elements:this._elements=e.adapt(a["default"].empty(),o["default"].streamSubscribe)}return e.prototype.elements=function(){return this._elements},e.prototype.events=function(e,t){for(var n=this._mockConfig,r=Object.keys(n),i=r.length,u=0;i>u;u++){var s=r[u];if(s===e)return n[s]}return this._streamAdapter.adapt(a["default"].empty(),o["default"].streamSubscribe)},e.prototype.select=function(t){for(var n=this._mockConfig,r=Object.keys(n),o=r.length,a=0;o>a;a++){var i=r[a];if(i===t)return new e(this._streamAdapter,n[i])}return new e(this._streamAdapter,{})},e}();n.MockedDOMSource=i,n.mockDOMSource=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@cycle/xstream-adapter":19}],16:[function(e,t,n){"use strict";var r=e("snabbdom/modules/class");n.ClassModule=r;var o=e("snabbdom/modules/props");n.PropsModule=o;var a=e("snabbdom/modules/attributes");n.AttrsModule=a;var i=e("snabbdom/modules/eventlisteners");n.EventsModule=i;var u=e("snabbdom/modules/style");n.StyleModule=u;var s=e("snabbdom/modules/hero");n.HeroModule=s,Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=[u,r,o,a]},{"snabbdom/modules/attributes":53,"snabbdom/modules/class":54,"snabbdom/modules/eventlisteners":55,"snabbdom/modules/hero":56,"snabbdom/modules/props":57,"snabbdom/modules/style":58}],17:[function(e,t,n){(function(t){"use strict";function r(e,t){return{sel:e.sel,data:e.data,text:e.text,elm:e.elm,key:e.key,children:t}}function o(e){return function t(n){if(n){if(n&&"object"===a(n.data)&&n.data["static"])return u["default"].of(n);if(e.isValidStream(n)){var o=i["default"].adapt(n,e.streamSubscribe);return o.map(t).flatten()}if("object"===("undefined"==typeof n?"undefined":a(n))){if(!n.children||0===n.children.length)return u["default"].of(n);var s=n.children.map(t).filter(function(e){return null!==e});return 0===s.length?u["default"].of(r(n,[])):u["default"].combine.apply(u["default"],s).map(function(e){return r(n,e.slice())})}throw new Error("Unhandled vTree Value")}return null}}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=e("@cycle/xstream-adapter"),u="undefined"!=typeof window?window.xstream:"undefined"!=typeof t?t.xstream:null;n.makeTransposeVNode=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@cycle/xstream-adapter":19}],18:[function(e,t,n){"use strict";function r(e){return"object"===("undefined"==typeof HTMLElement?"undefined":u(HTMLElement))?e instanceof HTMLElement||e instanceof DocumentFragment:e&&"object"===("undefined"==typeof e?"undefined":u(e))&&null!==e&&(1===e.nodeType||11===e.nodeType)&&"string"==typeof e.nodeName}function o(e){var t="string"==typeof e?document.querySelector(e):e;if("string"==typeof e&&null===t)throw new Error("Cannot render into unknown element `"+e+"`");if(!r(t))throw new Error("Given container is not a DOM element neither a selector string.");return t}function a(e){return e.filter(function(e){return e.indexOf(n.SCOPE_PREFIX)>-1}).slice(-1).join("")}function i(e){return e.filter(function(e){return-1===e.indexOf(n.SCOPE_PREFIX)}).join(" ")}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};n.SCOPE_PREFIX="$$CYCLEDOM$$-",n.getElement=o,n.getScope=a,n.getSelectors=i},{}],19:[function(e,t,n){(function(e){"use strict";var t="undefined"!=typeof window?window.xstream:"undefined"!=typeof e?e.xstream:null,r={adapt:function(e,n){if(r.isValidStream(e))return e;var o=null;return t["default"].create({start:function(t){var r=t;o=n(e,r)},stop:function(){"function"==typeof o&&o()}})},makeSubject:function(){var e=t["default"].create(),n={next:function(t){e.shamefullySendNext(t)},error:function(t){e.shamefullySendError(t)},complete:function(){e.shamefullySendComplete()}};return{observer:n,stream:e}},remember:function(e){return e.remember()},isValidStream:function(e){return"function"==typeof e.addListener&&"function"==typeof e.shamefullySendNext},streamSubscribe:function(e,t){return e.addListener(t),function(){return e.removeListener(t)}}};Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,t,n){t.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,o,a){if("[object RegExp]"!==Object.prototype.toString.call(o))return n.call(t,o,a);var i,u,s,l,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.extended?"x":"")+(o.sticky?"y":""),c=0,o=new RegExp(o.source,d+"g");for(t+="",r||(i=new RegExp("^"+o.source+"$(?!\\s)",d)),a=a===e?-1>>>0:a>>>0;(u=o.exec(t))&&(s=u.index+u[0].length,!(s>c&&(f.push(t.slice(c,u.index)),!r&&u.length>1&&u[0].replace(i,function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(u[t]=e)}),u.length>1&&u.index<t.length&&Array.prototype.push.apply(f,u.slice(1)),l=u[0].length,c=s,f.length>=a)));)o.lastIndex===u.index&&o.lastIndex++;return c===t.length?(l||!o.test(""))&&f.push(""):f.push(t.slice(c)),f.length>a?f.slice(0,a):f}}()},{}],21:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function a(e,t,n,i){i||(i=[]);for(var s=-1,d=e.length;++s<d;){var c=e[s];r(c)&&u(c)&&(n||f(c)||l(c))?t?a(c,t,n,i):o(i,c):n||(i[i.length]=c)}return i}function i(e){return function(t){return null==t?void 0:t[e]}}function u(e){return null!=e&&s(c(e))}function s(e){return"number"==typeof e&&e>-1&&e%1==0&&d>=e}var l=e("lodash.isarguments"),f=e("lodash.isarray"),d=9007199254740991,c=i("length");t.exports=a},{"lodash.isarguments":33,"lodash.isarray":34}],22:[function(e,t,n){function r(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),u=i.length;u--;){var s=i[e?u:++o];if(n(a[s],s,a)===!1)break}return t}}var o=r();t.exports=o},{}],23:[function(e,t,n){function r(e,t,n){if(t!==t)return o(e,n);for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function o(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var a=e[o];if(a!==a)return o}return-1}t.exports=r},{}],24:[function(e,t,n){function r(e,t){var n=-1,r=o,s=e.length,l=!0,f=l&&s>=u,d=f?i():null,c=[];d?(r=a,l=!1):(f=!1,d=t?[]:c);e:for(;++n<s;){var p=e[n],h=t?t(p,n,e):p;if(l&&p===p){for(var m=d.length;m--;)if(d[m]===h)continue e;t&&d.push(h),c.push(p)}else r(d,h,0)<0&&((t||f)&&d.push(h),c.push(p))}return c}var o=e("lodash._baseindexof"),a=e("lodash._cacheindexof"),i=e("lodash._createcache"),u=200;t.exports=r},{"lodash._baseindexof":23,"lodash._cacheindexof":26,"lodash._createcache":27}],25:[function(e,t,n){function r(e,t,n){if("function"!=typeof e)return o;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,a){return e.call(t,n,r,o,a)};case 5:return function(n,r,o,a,i){return e.call(t,n,r,o,a,i)}}return function(){return e.apply(t,arguments)}}function o(e){return e}t.exports=r},{}],26:[function(e,t,n){function r(e,t){var n=e.data,r="string"==typeof t||o(t)?n.set.has(t):n.hash[t];return r?0:-1}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=r},{}],27:[function(e,t,n){(function(n){function r(e){var t=e?e.length:0;for(this.data={hash:l(null),set:new s};t--;)this.push(e[t])}function o(e){var t=this.data;"string"==typeof e||i(e)?t.set.add(e):t.hash[e]=!0}function a(e){return l&&s?new r(e):null}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var u=e("lodash._getnative"),s=u(n,"Set"),l=u(Object,"create");r.prototype.push=o,t.exports=a}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"lodash._getnative":28}],28:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){var n=null==e?void 0:e[t];return u(n)?n:void 0}function a(e){return i(e)&&p.call(e)==s}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function u(e){return null==e?!1:a(e)?h.test(d.call(e)):r(e)&&l.test(e)}var s="[object Function]",l=/^\[object .+?Constructor\]$/,f=Object.prototype,d=Function.prototype.toString,c=f.hasOwnProperty,p=f.toString,h=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},{}],29:[function(e,t,n){(function(e){function r(e){return e&&e.Object===Object?e:null}var o={"function":!0,object:!0},a=o[typeof n]&&n&&!n.nodeType?n:void 0,i=o[typeof t]&&t&&!t.nodeType?t:void 0,u=r(a&&i&&"object"==typeof e&&e),s=r(o[typeof self]&&self),l=r(o[typeof window]&&window),f=r(o[typeof this]&&this),d=u||l!==(f&&f.window)&&l||s||f||Function("return this")();t.exports=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],30:[function(e,t,n){function r(e){return v[e]}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&g.call(e)==f}function i(e){if("string"==typeof e)return e;if(null==e)return"";if(a(e))return b?w.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}function u(e){return e=i(e),e&&e.replace(d,r).replace(m,"")}var s=e("lodash._root"),l=1/0,f="[object Symbol]",d=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,c="\\u0300-\\u036f\\ufe20-\\ufe23",p="\\u20d0-\\u20f0",h="["+c+p+"]",m=RegExp(h,"g"),v={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},y=Object.prototype,g=y.toString,b=s.Symbol,x=b?b.prototype:void 0,w=b?x.toString:void 0;t.exports=u},{"lodash._root":29}],31:[function(e,t,n){function r(e){return p[e]}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&m.call(e)==f}function i(e){if("string"==typeof e)return e;if(null==e)return"";if(a(e))return v?g.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}function u(e){return e=i(e),e&&c.test(e)?e.replace(d,r):e}var s=e("lodash._root"),l=1/0,f="[object Symbol]",d=/[&<>"'`]/g,c=RegExp(d.source),p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},h=Object.prototype,m=h.toString,v=s.Symbol,y=v?v.prototype:void 0,g=v?y.toString:void 0;t.exports=u},{"lodash._root":29}],32:[function(e,t,n){function r(e,t){return a(e,t,u)}function o(e){return function(t,n,r){return("function"!=typeof n||void 0!==r)&&(n=i(n,r,3)),e(t,n)}}var a=e("lodash._basefor"),i=e("lodash._bindcallback"),u=e("lodash.keys"),s=o(r);t.exports=s},{"lodash._basefor":22,"lodash._bindcallback":25,"lodash.keys":36}],33:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}function o(e){return i(e)&&v.call(e,"callee")&&(!g.call(e,"callee")||y.call(e)==c)}function a(e){return null!=e&&s(b(e))&&!u(e)}function i(e){return f(e)&&a(e)}function u(e){var t=l(e)?y.call(e):"";return t==p||t==h}function s(e){return"number"==typeof e&&e>-1&&e%1==0&&d>=e}function l(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){return!!e&&"object"==typeof e}var d=9007199254740991,c="[object Arguments]",p="[object Function]",h="[object GeneratorFunction]",m=Object.prototype,v=m.hasOwnProperty,y=m.toString,g=m.propertyIsEnumerable,b=r("length");t.exports=o},{}],34:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){var n=null==e?void 0:e[t];return s(n)?n:void 0}function a(e){return"number"==typeof e&&e>-1&&e%1==0&&g>=e}function i(e){return u(e)&&m.call(e)==f}function u(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function s(e){return null==e?!1:i(e)?v.test(p.call(e)):r(e)&&d.test(e)}var l="[object Array]",f="[object Function]",d=/^\[object .+?Constructor\]$/,c=Object.prototype,p=Function.prototype.toString,h=c.hasOwnProperty,m=c.toString,v=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=o(Array,"isArray"),g=9007199254740991,b=y||function(e){return r(e)&&a(e.length)&&m.call(e)==l};t.exports=b},{}],35:[function(e,t,n){function r(e,t,n,r){var o=-1,a=e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function o(e){return function(t){return r(i(a(t)),e,"")}}var a=e("lodash.deburr"),i=e("lodash.words"),u=o(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});t.exports=u},{"lodash.deburr":30,"lodash.words":39}],36:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}function o(e){return null!=e&&i(g(e))}function a(e,t){return e="number"==typeof e||p.test(e)?+e:-1,t=null==t?y:t,e>-1&&e%1==0&&t>e}function i(e){return"number"==typeof e&&e>-1&&e%1==0&&y>=e}function u(e){for(var t=l(e),n=t.length,r=n&&e.length,o=!!r&&i(r)&&(c(e)||d(e)),u=-1,s=[];++u<n;){
var f=t[u];(o&&a(f,r)||m.call(e,f))&&s.push(f)}return s}function s(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function l(e){if(null==e)return[];s(e)||(e=Object(e));var t=e.length;t=t&&i(t)&&(c(e)||d(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,u=Array(t),l=t>0;++r<t;)u[r]=r+"";for(var f in e)l&&a(f,t)||"constructor"==f&&(o||!m.call(e,f))||u.push(f);return u}var f=e("lodash._getnative"),d=e("lodash.isarguments"),c=e("lodash.isarray"),p=/^\d+$/,h=Object.prototype,m=h.hasOwnProperty,v=f(Object,"keys"),y=9007199254740991,g=r("length"),b=v?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&o(e)?u(e):s(e)?v(e):[]}:u;t.exports=b},{"lodash._getnative":28,"lodash.isarguments":33,"lodash.isarray":34}],37:[function(e,t,n){function r(e,t){if("function"!=typeof e)throw new TypeError(o);return t=a(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=a(n.length-t,0),i=Array(o);++r<o;)i[r]=n[t+r];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,n[0],i);case 2:return e.call(this,n[0],n[1],i)}var u=Array(t+1);for(r=-1;++r<t;)u[r]=n[r];return u[t]=i,e.apply(this,u)}}var o="Expected a function",a=Math.max;t.exports=r},{}],38:[function(e,t,n){var r=e("lodash._baseflatten"),o=e("lodash._baseuniq"),a=e("lodash.restparam"),i=a(function(e){return o(r(e,!1,!0))});t.exports=i},{"lodash._baseflatten":21,"lodash._baseuniq":24,"lodash.restparam":37}],39:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&z.call(e)==l}function a(e){if("string"==typeof e)return e;if(null==e)return"";if(o(e))return Z?W.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}function i(e,t,n){return e=a(e),t=n?void 0:t,void 0===t&&(t=V.test(e)?U:H),e.match(t)||[]}var u=e("lodash._root"),s=1/0,l="[object Symbol]",f="\\ud800-\\udfff",d="\\u0300-\\u036f\\ufe20-\\ufe23",c="\\u20d0-\\u20f0",p="\\u2700-\\u27bf",h="a-z\\xdf-\\xf6\\xf8-\\xff",m="\\xac\\xb1\\xd7\\xf7",v="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",y="\\u2018\\u2019\\u201c\\u201d",g=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",b="A-Z\\xc0-\\xd6\\xd8-\\xde",x="\\ufe0e\\ufe0f",w=m+v+y+g,S="["+w+"]",E="["+d+c+"]",k="\\d+",M="["+p+"]",_="["+h+"]",j="[^"+f+w+k+p+h+b+"]",O="\\ud83c[\\udffb-\\udfff]",C="(?:"+E+"|"+O+")",N="[^"+f+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",T="[\\ud800-\\udbff][\\udc00-\\udfff]",D="["+b+"]",F="\\u200d",L="(?:"+_+"|"+j+")",P="(?:"+D+"|"+j+")",I=C+"?",R="["+x+"]?",$="(?:"+F+"(?:"+[N,A,T].join("|")+")"+R+I+")*",q=R+I+$,B="(?:"+[M,A,T].join("|")+")"+q,H=/[a-zA-Z0-9]+/g,U=RegExp([D+"?"+_+"+(?="+[S,D,"$"].join("|")+")",P+"+(?="+[S,D+L,"$"].join("|")+")",D+"?"+L+"+",D+"+",k,B].join("|"),"g"),V=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G=Object.prototype,z=G.toString,Z=u.Symbol,X=Z?Z.prototype:void 0,W=Z?X.toString:void 0;t.exports=i},{"lodash._root":29}],40:[function(e,t,n){"use strict";function r(e,t){if(a)return a.call(e,t);for(var n=e.parentNode.querySelectorAll(t),r=0;r<n.length;r++)if(n[r]==e)return!0;return!1}var o=Element.prototype,a=o.matches||o.matchesSelector||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector;t.exports=r},{}],41:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=(0,i["default"])(e.sel),n=t.className;if(!e.data)return n;var r=e.data,o=r["class"],a=r.props;if(o){var u=Object.keys(e.data["class"]).filter(function(t){return e.data["class"][t]});n+=" "+u.join(" ")}return a&&a.className&&(n+=" "+a.className),n.trim()}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=o;var a=e("./selectorParser"),i=r(a)},{"./selectorParser":42}],42:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=void 0,n="",r=[],o=(0,i["default"])(e,u);(s.test(o[1])||""===e)&&(t="div");var a=void 0,l=void 0,f=void 0;for(f=0;f<o.length;f++)a=o[f],a&&(l=a.charAt(0),t?"."===l?r.push(a.substring(1,a.length)):"#"===l&&(n=a.substring(1,a.length)):t=a);return{tagName:t,id:n,className:r.join(" ")}}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=o;var a=e("browser-split"),i=r(a),u=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,s=/^\.|#/},{"browser-split":20}],43:[function(e,t,n){t.exports={a:!0,defs:!0,glyph:!0,g:!0,marker:!0,mask:!0,"missing-glyph":!0,pattern:!0,svg:!0,"switch":!0,symbol:!0,desc:!0,metadata:!0,title:!0}},{}],44:[function(e,t,n){var r=e("./init");t.exports=r([e("./modules/attributes"),e("./modules/style")])},{"./init":45,"./modules/attributes":46,"./modules/style":47}],45:[function(e,t,n){var r=e("./parse-selector"),o=e("./void-elements"),a=e("./container-elements");t.exports=function(e){function t(t){return e.reduce(function(e,n){return e.push(n(t)),e},[]).filter(function(e){return""!==e})}return function n(e){if(!e.sel&&e.text)return e.text;e.data=e.data||{},"string"==typeof e.sel&&"thunk"===e.sel.slice(0,5)&&(e=e.data.fn.apply(null,e.data.args));var i=r(e.sel).tagName,u=t(e),s="http://www.w3.org/2000/svg"===e.data.ns,l=[];return l.push("<"+i),u.length&&l.push(" "+u.join(" ")),s&&a[i]!==!0&&l.push(" /"),l.push(">"),(o[i]!==!0&&!s||s&&a[i]===!0)&&(e.data.props&&e.data.props.innerHTML?l.push(e.data.props.innerHTML):e.text?l.push(e.text):e.children&&e.children.forEach(function(e){l.push(n(e))}),l.push("</"+i+">")),l.join("")}}},{"./container-elements":43,"./parse-selector":48,"./void-elements":49}],46:[function(e,t,n){function r(e,t){o(e,function(e,n){return"htmlFor"===n?void(t["for"]=e):"className"===n?void(t["class"]=e.split(" ")):void("innerHTML"!==n&&(t[n]=e))})}var o=e("lodash.forown"),a=e("lodash.escape"),i=e("lodash.union"),u=e("../parse-selector");t.exports=function s(e){var t=u(e.sel),n=t.className.split(" "),s=[],l=[],f={};return t.id&&(f.id=t.id),r(e.data.props,f),r(e.data.attrs,f),e.data["class"]&&(f["class"]=void 0),o(e.data["class"],function(e,t){e===!0&&l.push(t)}),l=i(l,f["class"],n).filter(function(e){return""!==e}),l.length&&(f["class"]=l.join(" ")),o(f,function(e,t){s.push(e===!0?t:t+'="'+a(e)+'"')}),s.length?s.join(" "):""}},{"../parse-selector":48,"lodash.escape":31,"lodash.forown":32,"lodash.union":38}],47:[function(e,t,n){var r=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},o=e("lodash.forown"),a=e("lodash.escape"),i=e("lodash.kebabcase");t.exports=function u(e){var t=[],u=e.data.style||{};return u.delayed&&r(u,u.delayed),o(u,function(e,n){"string"==typeof e&&t.push(i(n)+": "+a(e))}),t.length?'style="'+t.join("; ")+'"':""}},{"lodash.escape":31,"lodash.forown":32,"lodash.kebabcase":35}],48:[function(e,t,n){var r=e("browser-split"),o=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,a=/^\.|#/;t.exports=function(e,t){e=e||"";var n,i="",u=[],s=r(e,o);(a.test(s[1])||""===e)&&(n="div");var l,f,d;for(d=0;d<s.length;d++)l=s[d],l&&(f=l.charAt(0),n?"."===f?u.push(l.substring(1,l.length)):"#"===f&&(i=l.substring(1,l.length)):n=l);return{tagName:t===!0?n.toUpperCase():n,id:i,className:u.join(" ")}}},{"browser-split":20}],49:[function(e,t,n){t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},{}],50:[function(e,t,n){function r(e,t){if(e.ns="http://www.w3.org/2000/svg",void 0!==t)for(var n=0;n<t.length;++n)r(t[n].data,t[n].children)}var o=e("./vnode"),a=e("./is");t.exports=function(e,t,n){var i,u,s,l={};if(3===arguments.length?(l=t,a.array(n)?i=n:a.primitive(n)&&(u=n)):2===arguments.length&&(a.array(t)?i=t:a.primitive(t)?u=t:l=t),a.array(i))for(s=0;s<i.length;++s)a.primitive(i[s])&&(i[s]=o(void 0,void 0,void 0,i[s]));return"s"===e[0]&&"v"===e[1]&&"g"===e[2]&&r(l,i),o(e,l,i,u,void 0)}},{"./is":52,"./vnode":61}],51:[function(e,t,n){function r(e){return document.createElement(e)}function o(e,t){return document.createElementNS(e,t)}function a(e){return document.createTextNode(e)}function i(e,t,n){e.insertBefore(t,n)}function u(e,t){e.removeChild(t)}function s(e,t){e.appendChild(t)}function l(e){return e.parentElement}function f(e){return e.nextSibling}function d(e){return e.tagName}function c(e,t){e.textContent=t}t.exports={createElement:r,createElementNS:o,createTextNode:a,appendChild:s,removeChild:u,insertBefore:i,parentNode:l,nextSibling:f,tagName:d,setTextContent:c}},{}],52:[function(e,t,n){t.exports={array:Array.isArray,primitive:function(e){return"string"==typeof e||"number"==typeof e}}},{}],53:[function(e,t,n){function r(e,t){var n,r,o,i=t.elm,u=e.data.attrs||{},s=t.data.attrs||{};for(n in s)r=s[n],o=u[n],o!==r&&(!r&&a[n]?i.removeAttribute(n):i.setAttribute(n,r));for(n in u)n in s||i.removeAttribute(n)}for(var o=["allowfullscreen","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","draggable","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","spellcheck","translate","truespeed","typemustmatch","visible"],a={},i=0,u=o.length;u>i;i++)a[o[i]]=!0;t.exports={create:r,update:r}},{}],54:[function(e,t,n){function r(e,t){var n,r,o=t.elm,a=e.data["class"]||{},i=t.data["class"]||{};for(r in a)i[r]||o.classList.remove(r);for(r in i)n=i[r],n!==a[r]&&o.classList[n?"add":"remove"](r)}t.exports={create:r,update:r}},{}],55:[function(e,t,n){function r(e){return function(){2===e.length?e[0](e[1]):e[0].apply(void 0,e.slice(1))}}function o(e){return function(t){e.fn(t)}}function a(e,t){var n,a,u,s=t.elm,l=e.data.on||{},f=t.data.on;if(f)for(n in f)if(a=f[n],u=l[n],void 0===u)i.array(a)?s.addEventListener(n,r(a)):(a={fn:a},f[n]=a,s.addEventListener(n,o(a)));else if(i.array(u)){u.length=a.length;for(var d=0;d<u.length;++d)u[d]=a[d];f[n]=u}else u.fn=a,f[n]=u}var i=e("../is");t.exports={create:a,update:a}},{"../is":52}],56:[function(e,t,n){function r(e,t,n){v(function(){e[t]=n})}function o(e){var t;if(document.createRange){var n=document.createRange();n.selectNodeContents(e),n.getBoundingClientRect&&(t=n.getBoundingClientRect())}return t}function a(e,t,n){if(e&&t){var r=t.left+t.width/2-n.left,o=t.top+t.height/2-n.top;return r+"px "+o+"px"}return"0 0"}function i(e,t){return e&&t?e.left+e.width/2-(t.left+t.width/2):0}function u(e,t){return e&&t?e.top+e.height/2-(t.top+t.height/2):0}function s(e){return 1===e.childNodes.length&&3===e.childNodes[0].nodeType}function l(e,t){p={},h=[]}function f(e,t){var n=t.data.hero;n&&n.id&&(h.push(n.id),h.push(t))}function d(e){var t=e.data.hero;if(t&&t.id){var n=e.elm;e.isTextNode=s(n),e.boundingRect=n.getBoundingClientRect(),e.textRect=e.isTextNode?o(n.childNodes[0]):null;var r=window.getComputedStyle(n,null);e.savedStyle=JSON.parse(JSON.stringify(r)),p[t.id]=e}}function c(){var e,t,n,l,f,d,c,m,v,y,g,b,x,w,S,E,k,M,_;for(e=0;e<h.length;e+=2)if(t=h[e],n=h[e+1].elm,l=p[t]){k=l.isTextNode&&s(n),w=n.style,E=window.getComputedStyle(n,null),f=l.elm,S=f.style,v=n.getBoundingClientRect(),m=l.boundingRect,k?(M=o(n.childNodes[0]),_=l.textRect,y=i(_,M),g=u(_,M)):(y=m.left-v.left,g=m.top-v.top),d=v.height/Math.max(m.height,1),c=k?d:v.width/Math.max(m.width,1),b=w.transform,x=w.transition,"inline"===E.display&&(w.display="inline-block"),w.transition=x+"transform 0s",w.transformOrigin=a(k,M,v),w.opacity="0",w.transform=b+"translate("+y+"px, "+g+"px) scale("+1/c+", "+1/d+")",r(w,"transition",x),r(w,"transform",b),r(w,"opacity","1");for(var j in l.savedStyle)if(parseInt(j)!=j){var O="ms"===j.substring(0,2),C="moz"===j.substring(0,3),N="webkit"===j.substring(0,6);O||C||N||(S[j]=l.savedStyle[j])}S.position="absolute",S.top=m.top+"px",S.left=m.left+"px",S.width=m.width+"px",S.height=m.height+"px",S.margin=0,S.transformOrigin=a(k,_,m),S.transform="",S.opacity="1",document.body.appendChild(f),r(S,"transform","translate("+-y+"px, "+-g+"px) scale("+c+", "+d+")"),r(S,"opacity","0"),f.addEventListener("transitionend",function(e){"transform"===e.propertyName&&document.body.removeChild(e.target)})}p=h=void 0}var p,h,m="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout,v=function(e){m(function(){m(e)})};t.exports={pre:l,create:f,destroy:d,post:c}},{}],57:[function(e,t,n){function r(e,t){var n,r,o,a=t.elm,i=e.data.props||{},u=t.data.props||{};for(n in i)u[n]||delete a[n];for(n in u)r=u[n],o=i[n],o===r||"value"===n&&a[n]===r||(a[n]=r)}t.exports={create:r,update:r}},{}],58:[function(e,t,n){function r(e,t,n){s(function(){e[t]=n})}function o(e,t){var n,o,a=t.elm,i=e.data.style||{},u=t.data.style||{},s="delayed"in i;for(o in i)u[o]||(a.style[o]="");for(o in u)if(n=u[o],"delayed"===o)for(o in u.delayed)n=u.delayed[o],s&&n===i.delayed[o]||r(a.style,o,n);else"remove"!==o&&n!==i[o]&&(a.style[o]=n)}function a(e){var t,n,r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]}function i(e,t){var n=e.data.style;if(!n||!n.remove)return void t();var r,o,a=e.elm,i=0,u=n.remove,s=0,l=[];for(r in u)l.push(r),a.style[r]=u[r];o=getComputedStyle(a);for(var f=o["transition-property"].split(", ");i<f.length;++i)-1!==l.indexOf(f[i])&&s++;a.addEventListener("transitionend",function(e){e.target===a&&--s,0===s&&t()})}var u="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout,s=function(e){u(function(){u(e)})};t.exports={create:o,update:o,destroy:a,remove:i}},{}],59:[function(e,t,n){"use strict";function r(e){return void 0===e}function o(e){return void 0!==e}function a(e,t){return e.key===t.key&&e.sel===t.sel}function i(e,t,n){var r,a,i={};for(r=t;n>=r;++r)a=e[r].key,o(a)&&(i[a]=r);return i}function u(e,t){function n(e){return s(t.tagName(e).toLowerCase(),{},[],void 0,e)}function u(e,n){return function(){if(0===--n){var r=t.parentNode(e);t.removeChild(r,e)}}}function p(e,n){var r,a,i=e.data;o(i)&&(o(r=i.hook)&&o(r=r.init)&&r(e),o(r=i.vnode)&&(a=e,e=r));var u,s=e.children,f=e.sel;if(o(f)){var c=f.indexOf("#"),h=f.indexOf(".",c),m=c>0?c:f.length,v=h>0?h:f.length,y=-1!==c||-1!==h?f.slice(0,Math.min(m,v)):f;if(u=e.elm=o(i)&&o(r=i.ns)?t.createElementNS(r,y):t.createElement(y),v>m&&(u.id=f.slice(m+1,v)),h>0&&(u.className=f.slice(v+1).replace(/\./g," ")),l.array(s))for(r=0;r<s.length;++r)t.appendChild(u,p(s[r],n));else l.primitive(e.text)&&t.appendChild(u,t.createTextNode(e.text));for(r=0;r<w.create.length;++r)w.create[r](d,e);r=e.data.hook,o(r)&&(r.create&&r.create(d,e),r.insert&&n.push(e))}else u=e.elm=t.createTextNode(e.text);return o(a)&&(a.elm=e.elm),e.elm}function h(e,n,r,o,a,i){for(;a>=o;++o)t.insertBefore(e,p(r[o],i),n)}function m(e){var t,n,r=e.data;if(o(r)){for(o(t=r.hook)&&o(t=t.destroy)&&t(e),t=0;t<w.destroy.length;++t)w.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)m(e.children[n]);o(t=r.vnode)&&m(t)}}function v(e,n,r,a){for(;a>=r;++r){var i,s,l,f=n[r];if(o(f))if(o(f.sel)){for(m(f),s=w.remove.length+1,l=u(f.elm,s),i=0;i<w.remove.length;++i)w.remove[i](f,l);o(i=f.data)&&o(i=i.hook)&&o(i=i.remove)?i(f,l):l()}else t.removeChild(e,f.elm)}}function y(e,n,o,u){for(var s,l,f,d,c=0,m=0,y=n.length-1,b=n[0],x=n[y],w=o.length-1,S=o[0],E=o[w];y>=c&&w>=m;)r(b)?b=n[++c]:r(x)?x=n[--y]:a(b,S)?(g(b,S,u),b=n[++c],S=o[++m]):a(x,E)?(g(x,E,u),x=n[--y],E=o[--w]):a(b,E)?(g(b,E,u),t.insertBefore(e,b.elm,t.nextSibling(x.elm)),b=n[++c],E=o[--w]):a(x,S)?(g(x,S,u),t.insertBefore(e,x.elm,b.elm),x=n[--y],S=o[++m]):(r(s)&&(s=i(n,c,y)),l=s[S.key],r(l)?(t.insertBefore(e,p(S,u),b.elm),S=o[++m]):(f=n[l],g(f,S,u),n[l]=void 0,t.insertBefore(e,f.elm,b.elm),S=o[++m]));c>y?(d=r(o[w+1])?null:o[w+1].elm,h(e,d,o,m,w,u)):m>w&&v(e,n,c,y)}function g(e,n,i){var u,s;if(o(u=n.data)&&o(s=u.hook)&&o(u=s.prepatch)&&u(e,n),o(u=e.data)&&o(u=u.vnode)&&(e=u),o(u=n.data)&&o(u=u.vnode))return g(e,u,i),void(n.elm=u.elm);var l=n.elm=e.elm,f=e.children,d=n.children;if(e!==n){if(!a(e,n)){var c=t.parentNode(e.elm);return l=p(n,i),t.insertBefore(c,l,e.elm),void v(c,[e],0,0)}if(o(n.data)){for(u=0;u<w.update.length;++u)w.update[u](e,n);u=n.data.hook,o(u)&&o(u=u.update)&&u(e,n)}r(n.text)?o(f)&&o(d)?f!==d&&y(l,f,d,i):o(d)?(o(e.text)&&t.setTextContent(l,""),h(l,null,d,0,d.length-1,i)):o(f)?v(l,f,0,f.length-1):o(e.text)&&t.setTextContent(l,""):e.text!==n.text&&t.setTextContent(l,n.text),o(s)&&o(u=s.postpatch)&&u(e,n)}}var b,x,w={};for(r(t)&&(t=f),b=0;b<c.length;++b)for(w[c[b]]=[],x=0;x<e.length;++x)void 0!==e[x][c[b]]&&w[c[b]].push(e[x][c[b]]);return function(e,o){var i,u,s,l=[];for(i=0;i<w.pre.length;++i)w.pre[i]();for(r(e.sel)&&(e=n(e)),a(e,o)?g(e,o,l):(u=e.elm,s=t.parentNode(u),p(o,l),null!==s&&(t.insertBefore(s,o.elm,t.nextSibling(u)),v(s,[e],0,0))),i=0;i<l.length;++i)l[i].data.hook.insert(l[i]);for(i=0;i<w.post.length;++i)w.post[i]();return o}}var s=e("./vnode"),l=e("./is"),f=e("./htmldomapi.js"),d=s("",{},[],void 0,void 0),c=["create","update","remove","destroy","pre","post"];t.exports={init:u}},{"./htmldomapi.js":51,"./is":52,"./vnode":61}],60:[function(e,t,n){function r(e){var t=e.data;t.vnode=t.fn.apply(void 0,t.args)}function o(e,t){var n,r=e.data,o=t.data,a=r.args,i=o.args;if(o.vnode=r.vnode,r.fn!==o.fn||a.length!==i.length)return void(o.vnode=o.fn.apply(void 0,i));for(n=0;n<i.length;++n)if(a[n]!==i[n])return void(o.vnode=o.fn.apply(void 0,i))}var a=e("./h");t.exports=function(e,t){var n,i=[];for(n=2;n<arguments.length;++n)i[n-2]=arguments[n];return a("thunk"+e,{hook:{init:r,prepatch:o},fn:t,args:i})}},{"./h":50}],61:[function(e,t,n){t.exports=function(e,t,n,r,o){var a=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:r,elm:o,key:a}}},{}]},{},[10])(10)});

@@ -68,3 +68,3 @@ "use strict";

var scope = data.isolate || "";
if (scope) {
if (scope && scope !== oldScope) {
if (oldScope) {

@@ -71,0 +71,0 @@ self.removeScope(oldScope);

{
"name": "@cycle/dom",
"version": "10.0.3",
"version": "10.0.4",
"description": "The standard DOM Driver for Cycle.js, based on Snabbdom",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -74,3 +74,3 @@ import {VNode} from './interfaces';

const scope = data.isolate || ``;
if (scope) {
if (scope && scope !== oldScope) {
if (oldScope) { self.removeScope(oldScope); }

@@ -77,0 +77,0 @@ self.setScope(<Element> elm, scope);

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

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