@music-loopy/loops
Version:
A React component library for Music Loopy Applications and websites
5 lines • 814 kB
JavaScript
/*!
* @music-loopy/loops v1.0.82 - https://github.com/namootatech/music-loopy-ui#readme
* MIT Licensed
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.loops=t(require("react")):e.loops=t(e.React)}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=96)}([function(t,n){t.exports=e},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return Ne}));var r=n(37),o=n(0),i=n.n(o),a=n(92),l=n.n(a),c=n(93),u=n(94),s=n(47),f=n(18),p=n.n(f);function d(){return(d=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}).apply(this,arguments)}var h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},m=Object.freeze([]),y=Object.freeze({});function v(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var S=void 0!==e&&void 0!==e.env&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",k="undefined"!=typeof window&&"HTMLElement"in window,x=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env&&(void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)));function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var M=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,c=t.length;l<c;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),E=new Map,O=new Map,j=1,_=function(e){if(E.has(e))return E.get(e);for(;O.has(j);)j++;var t=j++;return E.set(e,t),O.set(t,e),t},D=function(e){return O.get(e)},L=function(e,t){t>=j&&(j=t+1),E.set(e,t),O.set(t,e)},N="style["+S+'][data-styled-version="5.3.11"]',I=new RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},A=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(I);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(L(u,c),T(e,u,l[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},z=function(){return n.nc},P=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(S))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","5.3.11");var a=z();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},R=function(){function e(e){var t=this.element=P(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}C(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),F=function(){function e(e){var t=this.element=P(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=k,H={isServer:!k,useCSSOMInjection:!x},K=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=d({},H,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(N),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(S)&&(A(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return _(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(d({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new B(o):r?new R(o):new F(o),new M(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(_(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(_(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(_(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=D(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var c=S+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function W(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Y(t%52)+n;return(Y(t%52)+n).replace(V,"$1-$2")}var Q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Z=function(e){return Q(5381,e)};function G(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!w(n))return!1}return!0}var q=Z("5.3.11"),$=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&G(e),this.componentId=t,this.baseHash=Q(q,t),this.baseStyle=n,K.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ge(this.rules,e,t,n).join(""),a=W(Q(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=Q(this.baseHash,n.hash),s="",f=0;f<c;f++){var p=this.rules[f];if("string"==typeof p)s+=p;else if(p){var d=ge(p,e,t,n),h=Array.isArray(d)?d.join(""):d;u=Q(u,h+f),s+=h}}if(s){var g=W(u>>>0);if(!t.hasNameForId(r,g)){var m=n(s,"."+g,void 0,r);t.insertRules(r,g,m)}o.push(g)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,X=[":","[",".","#"];function ee(e){var t,n,r,o,i=void 0===e?y:e,a=i.options,l=void 0===a?y:a,u=i.plugins,s=void 0===u?m:u,f=new c.a(l),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,c,u,s,f){switch(n){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,r,i){return 0===r&&-1!==X.indexOf(i[n.length])||i.match(o)?e:"."+t};function g(e,i,a,l){void 0===l&&(l="&");var c=e.replace(J,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,u)}return f.use([].concat(s,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),g.hash=s.length?s.reduce((function(e,t){return t.name||C(15),Q(e,t.name)}),5381).toString():"",g}var te=i.a.createContext(),ne=(te.Consumer,i.a.createContext()),re=(ne.Consumer,new K),oe=ee();function ie(){return Object(o.useContext)(te)||re}function ae(){return Object(o.useContext)(ne)||oe}function le(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ie(),c=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(te.Provider,{value:c},i.a.createElement(ne.Provider,{value:u},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,se=/([A-Z])/g,fe=/^ms-/,pe=function(e){return"-"+e.toLowerCase()};function de(e){return ue.test(e)?e.replace(se,pe).replace(fe,"-ms-"):e}var he=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=ge(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return he(e)?"":w(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof ce?n?(e.inject(n,r),e.getName(r)):e:g(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!he(t[a])&&(Array.isArray(t[a])&&t[a].isCss||v(t[a])?i.push(de(a)+":",t[a],";"):g(t[a])?i.push.apply(i,e(t[a],a)):i.push(de(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in u.a||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var me=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e)||g(e)?me(ge(h(m,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:me(ge(h(e,n)))}new Set;var ve=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function Se(e){return e.replace(be,"-").replace(we,"")}var ke=function(e){return W(Z(e)>>>0)};function xe(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Me=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ee(e,t,n){var r=e[n];Ce(t)&&Ce(r)?Oe(r,t):e[n]=t}function Oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Ce(a))for(var l in a)Me(l)&&Ee(e,a[l],l)}return e}var je=i.a.createContext();je.Consumer;var _e={};function De(e,t,n){var r=w(e),a=!xe(e),l=t.attrs,c=void 0===l?m:l,u=t.componentId,f=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Se(e);_e[n]=(_e[n]||0)+1;var r=n+"-"+ke("5.3.11"+n+_e[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,h=t.displayName,g=void 0===h?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):h,S=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||f,k=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,x=t.shouldForwardProp;r&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,M=new $(n,S,r?e.componentStyle:void 0),E=M.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,f=e.styledComponentId,p=e.target,h=function(e,t,n){void 0===e&&(e=y);var r=d({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in v(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(ve(t,Object(o.useContext)(je),l)||y,t,i),g=h[0],m=h[1],b=function(e,t,n,r){var o=ie(),i=ae();return t?e.generateAndInjectStyles(y,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,g),w=n,S=m.$as||t.$as||m.as||t.as||p,k=xe(S),x=m!==t?d({},t,{},m):t,C={};for(var M in x)"$"!==M[0]&&"as"!==M&&("forwardedAs"===M?C.as=x[M]:(u?u(M,s.a,S):!k||Object(s.a)(M))&&(C[M]=x[M]));return t.style&&m.style!==t.style&&(C.style=d({},t.style,{},m.style)),C.className=Array.prototype.concat(c,f,b!==f?b:null,t.className,m.className).filter(Boolean).join(" "),C.ref=w,Object(o.createElement)(S,C)}(C,e,t,E)};return O.displayName=g,(C=i.a.forwardRef(O)).attrs=k,C.componentStyle=M,C.displayName=g,C.shouldForwardProp=x,C.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,C.styledComponentId=S,C.target=r?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(xe(e)?e:Se(b(e)));return De(e,d({},o,{attrs:k,componentId:i}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Oe({},e.defaultProps,t):t}}),Object.defineProperty(C,"toString",{value:function(){return"."+C.styledComponentId}}),a&&p()(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var Le=function(e){return function e(t,n,o){if(void 0===o&&(o=y),!Object(r.isValidElementType)(n))return C(1,String(n));var i=function(){return t(n,o,ye.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,d({},o,{},r))},i.attrs=function(r){return e(t,n,d({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(De,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","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","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Le[e]=Le(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=G(e),K.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(ge(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&K.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=z();return"<style "+[n&&'nonce="'+n+'"',S+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return C(2);var n=((t={})[S]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=z();return r&&(n.nonce=r),[i.a.createElement("style",d({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new K({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?C(2):i.a.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)}}();var Ne=function(){return Object(o.useContext)(je)};t.a=Le}).call(this,n(48))},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:H(e)}function r(e){return l(e)?e:K(e)}function o(e){return c(e)?e:V(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function c(e){return!(!e||!e[d])}function u(e){return l(e)||c(e)}function s(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=c,n.isAssociative=u,n.isOrdered=s,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g={},m={value:!1},y={value:!1};function v(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function w(){}function S(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(C)),e.size}function x(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function C(){return!0}function M(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function E(e,t){return j(e,t,0)}function O(e,t){return j(e,t,t)}function j(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var _,D,L,N="function"==typeof Symbol&&Symbol.iterator,I=N||"@@iterator";function T(e){this.next=e}function A(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function P(e){return!!B(e)}function R(e){return e&&"function"==typeof e.next}function F(e){var t=B(e);return t&&t.call(e)}function B(e){var t=e&&(N&&e[N]||e["@@iterator"]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function H(e){return null==e?$():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new Q(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function K(e){return null==e?$().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():J(e)}function V(e){return null==e?$():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():X(e)}function Y(e){return(null==e?$():a(e)?l(e)?e.entrySeq():e:X(e)).toSetSeq()}function W(e){this._array=e,this.size=e.length}function Q(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Z(e){this._iterable=e,this.size=e.length||e.size}function G(e){this._iterator=e,this._iteratorCache=[]}function q(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function $(){return _||(_=new W([]))}function J(e){var t=Array.isArray(e)?new W(e).fromEntrySeq():R(e)?new G(e).fromEntrySeq():P(e)?new Z(e).fromEntrySeq():"object"==typeof e?new Q(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function X(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return U(e)?new W(e):R(e)?new G(e):P(e)?new Z(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var l=o[n?i-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new T((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:A(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,V(n).map((function(r,o){return e(t,r,o,n)}))):ie(n)?t.call(o,r,K(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?V(e).map(oe).toList():ie(e)?K(e).map(oe).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function le(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||c(e)!==c(t)||s(e)!==s(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(s(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ae(o[1],e)&&(n||ae(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ae(t,e.get(r,g)):!ae(e.get(r,g),t))return f=!1,!1}));return f&&e.size===p}function ce(e,t){if(!(this instanceof ce))return new ce(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(D)return D;D=this}}function ue(e,t){if(!e)throw new Error(t)}function se(e,t,n){if(!(this instanceof se))return new se(e,t,n);if(ue(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(L)return L;L=this}}function fe(){throw TypeError("Abstract")}function pe(){}function de(){}function he(){}T.prototype.toString=function(){return"[Iterator]"},T.KEYS=0,T.VALUES=1,T.ENTRIES=2,T.prototype.inspect=T.prototype.toSource=function(){return this.toString()},T.prototype[I]=function(){return this},t(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(e,t){return te(this,e,t,!0)},H.prototype.__iterator=function(e,t){return ne(this,e,t,!0)},t(K,H),K.prototype.toKeyedSeq=function(){return this},t(V,H),V.of=function(){return V(arguments)},V.prototype.toIndexedSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq [","]")},V.prototype.__iterate=function(e,t){return te(this,e,t,!1)},V.prototype.__iterator=function(e,t){return ne(this,e,t,!1)},t(Y,H),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},H.isSeq=q,H.Keyed=K,H.Set=Y,H.Indexed=V,H.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,t(W,V),W.prototype.get=function(e,t){return this.has(e)?this._array[x(this,e)]:t},W.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},W.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new T((function(){return o>r?{value:void 0,done:!0}:A(e,o,n[t?r-o++:o++])}))},t(Q,K),Q.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},Q.prototype.has=function(e){return this._object.hasOwnProperty(e)},Q.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},Q.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new T((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:A(e,a,n[a])}))},Q.prototype[h]=!0,t(Z,V),Z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=F(this._iterable),r=0;if(R(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},Z.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=F(this._iterable);if(!R(n))return new T(z);var r=0;return new T((function(){var t=n.next();return t.done?t:A(e,r++,t.value)}))},t(G,V),G.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},G.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new T((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return A(e,o,r[o++])}))},t(ce,V),ce.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ce.prototype.get=function(e,t){return this.has(e)?this._value:t},ce.prototype.includes=function(e){return ae(this._value,e)},ce.prototype.slice=function(e,t){var n=this.size;return M(e,t,n)?this:new ce(this._value,O(t,n)-E(e,n))},ce.prototype.reverse=function(){return this},ce.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},ce.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},ce.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ce.prototype.__iterator=function(e,t){var n=this,r=0;return new T((function(){return r<n.size?A(e,r++,n._value):{value:void 0,done:!0}}))},ce.prototype.equals=function(e){return e instanceof ce?ae(this._value,e._value):le(e)},t(se,V),se.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},se.prototype.get=function(e,t){return this.has(e)?this._start+x(this,e)*this._step:t},se.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},se.prototype.slice=function(e,t){return M(e,t,this.size)?this:(e=E(e,this.size),(t=O(t,this.size))<=e?new se(0,0):new se(this.get(e,this._end),this.get(t,this._end),this._step))},se.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},se.prototype.lastIndexOf=function(e){return this.indexOf(e)},se.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},se.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new T((function(){var a=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:A(e,i++,a)}))},se.prototype.equals=function(e){return e instanceof se?this._start===e._start&&this._end===e._end&&this._step===e._step:le(this,e)},t(fe,n),t(pe,fe),t(de,fe),t(he,fe),fe.Keyed=pe,fe.Indexed=de,fe.Set=he;var ge="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function me(e){return e>>>1&1073741824|3221225471&e}function ye(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return me(n)}if("string"===t)return e.length>Me?function(e){var t=je[e];return void 0===t&&(t=ve(e),Oe===Ee&&(Oe=0,je={}),Oe++,je[e]=t),t}(e):ve(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(ke&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Ce]))return t;if(!Se){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ce]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++xe,1073741824&xe&&(xe=0),ke)be.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Se)Object.defineProperty(e,Ce,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ce]=t}}return t}(e);if("function"==typeof e.toString)return ve(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ve(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return me(t)}var be,we=Object.isExtensible,Se=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),ke="function"==typeof WeakMap;ke&&(be=new WeakMap);var xe=0,Ce="__immutablehash__";"function"==typeof Symbol&&(Ce=Symbol(Ce));var Me=16,Ee=255,Oe=0,je={};function _e(e){ue(e!==1/0,"Cannot perform this action with an infinite size.")}function De(e){return null==e?Ve():Le(e)&&!s(e)?e:Ve().withMutations((function(t){var n=r(e);_e(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Le(e){return!(!e||!e[Ie])}t(De,pe),De.prototype.toString=function(){return this.__toString("Map {","}")},De.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},De.prototype.set=function(e,t){return Ye(this,e,t)},De.prototype.setIn=function(e,t){return this.updateIn(e,g,(function(){return t}))},De.prototype.remove=function(e){return Ye(this,e,g)},De.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return g}))},De.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},De.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===g,a=n.next();if(a.done){var l=i?r:t,c=o(l);return c===l?t:c}ue(i||t&&t.set,"invalid keyPath");var u=a.value,s=i?g:t.get(u,g),f=e(s,n,r,o);return f===s?t:f===g?t.remove(u):(i?Ve():t).set(u,f)}(this,Gt(e),t,n);return r===g?void 0:r},De.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ve()},De.prototype.merge=function(){return Ge(this,void 0,arguments)},De.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Ge(this,t,n)},De.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ve(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},De.prototype.mergeDeep=function(){return Ge(this,qe,arguments)},De.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ge(this,$e(t),n)},De.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ve(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},De.prototype.sort=function(e){return St(Rt(this,e))},De.prototype.sortBy=function(e,t){return St(Rt(this,t,e))},De.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},De.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},De.prototype.asImmutable=function(){return this.__ensureOwner()},De.prototype.wasAltered=function(){return this.__altered},De.prototype.__iterator=function(e,t){return new Be(this,e,t)},De.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},De.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ke(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},De.isMap=Le;var Ne,Ie="@@__IMMUTABLE_MAP__@@",Te=De.prototype;function Ae(e,t){this.ownerID=e,this.entries=t}function ze(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Pe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Re(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Fe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Be(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&He(e._root)}function Ue(e,t){return A(e,t[0],t[1])}function He(e,t){return{node:e,index:0,__prev:t}}function Ke(e,t,n,r){var o=Object.create(Te);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ve(){return Ne||(Ne=Ke(0))}function Ye(e,t,n){var r,o;if(e._root){var i=v(m),a=v(y);if(r=We(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===g?-1:1:0)}else{if(n===g)return e;o=1,r=new Ae(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ke(o,r):Ve()}function We(e,t,n,r,o,i,a,l){return e?e.update(t,n,r,o,i,a,l):i===g?e:(b(l),b(a),new Fe(t,r,[o,i]))}function Qe(e){return e.constructor===Fe||e.constructor===Re}function Ze(e,t,n,r,o){if(e.keyHash===r)return new Re(t,r,[e.entry,o]);var i,a=31&(0===n?e.keyHash:e.keyHash>>>n),l=31&(0===n?r:r>>>n);return new ze(t,1<<a|1<<l,a===l?[Ze(e,t,n+5,r,o)]:(i=new Fe(t,r,o),a<l?[e,i]:[i,e]))}function Ge(e,t,n){for(var o=[],i=0;i<n.length;i++){var l=n[i],c=r(l);a(l)||(c=c.map((function(e){return re(e)}))),o.push(c)}return Je(e,t,o)}function qe(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ae(e,t)?e:t}function $e(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ae(t,o)?t:o}}function Je(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,g,(function(e){return e===g?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function Xe(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var o=r?e:S(e);return o[t]=n,o}Te[Ie]=!0,Te.delete=Te.remove,Te.removeIn=Te.deleteIn,Ae.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ae(n,o[i][0]))return o[i][1];return r},Ae.prototype.update=function(e,t,n,r,o,i,a){for(var l=o===g,c=this.entries,u=0,s=c.length;u<s&&!ae(r,c[u][0]);u++);var f=u<s;if(f?c[u][1]===o:l)return this;if(b(a),(l||!f)&&b(i),!l||1!==c.length){if(!f&&!l&&c.length>=tt)return function(e,t,n,r){e||(e=new w);for(var o=new Fe(e,ye(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:S(c);return f?l?u===s-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ae(e,d)}},ze.prototype.get=function(e,t,n,r){void 0===t&&(t=ye(n));var o=1<<(31&(0===e?t:t>>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[Xe(i&o-1)].get(e+5,t,n,r)},ze.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var l=31&(0===t?n:n>>>t),c=1<<l,u=this.bitmap,s=0!=(u&c);if(!s&&o===g)return this;var f=Xe(u&c-1),p=this.nodes,d=s?p[f]:void 0,h=We(d,e,t+5,n,r,o,i,a);if(h===d)return this;if(!s&&h&&p.length>=nt)return function(e,t,n,r,o){for(var i=0,a=new Array(32),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[i++]:void 0;return a[r]=o,new Pe(e,i+1,a)}(e,p,u,l,h);if(s&&!h&&2===p.length&&Qe(p[1^f]))return p[1^f];if(s&&h&&1===p.length&&Qe(h))return h;var m=e&&e===this.ownerID,y=s?h?u:u^c:u|c,v=s?h?et(p,f,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(p,f,m):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,l=0;l<o;l++)l===t?(i[l]=n,a=-1):i[l]=e[l+a];return i}(p,f,h,m);return m?(this.bitmap=y,this.nodes=v,this):new ze(e,y,v)},Pe.prototype.get=function(e,t,n,r){void 0===t&&(t=ye(n));var o=31&(0===e?t:t>>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Pe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var l=31&(0===t?n:n>>>t),c=o===g,u=this.nodes,s=u[l];if(c&&!s)return this;var f=We(s,e,t+5,n,r,o,i,a);if(f===s)return this;var p=this.count;if(s){if(!f&&--p<rt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,c=1,u=t.length;l<u;l++,c<<=1){var s=t[l];void 0!==s&&l!==r&&(o|=c,a[i++]=s)}return new ze(e,o,a)}(e,u,p,l)}else p++;var d=e&&e===this.ownerID,h=et(u,l,f,d);return d?(this.count=p,this.nodes=h,this):new Pe(e,p,h)},Re.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ae(n,o[i][0]))return o[i][1];return r},Re.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var l=o===g;if(n!==this.keyHash)return l?this:(b(a),b(i),Ze(this,e,t,n,[r,o]));for(var c=this.entries,u=0,s=c.length;u<s&&!ae(r,c[u][0]);u++);var f=u<s;if(f?c[u][1]===o:l)return this;if(b(a),(l||!f)&&b(i),l&&2===s)return new Fe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?l?u===s-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Re(e,this.keyHash,d)},Fe.prototype.get=function(e,t,n,r){return ae(n,this.entry[0])?this.entry[1]:r},Fe.prototype.update=function(e,t,n,r,o,i,a){var l=o===g,c=ae(r,this.entry[0]);return(c?o===this.entry[1]:l)?this:(b(a),l?void b(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Fe(e,this.keyHash,[r,o]):(b(i),Ze(this,e,t,ye(r),[r,o])))},Ae.prototype.iterate=Re.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},ze.prototype.iterate=Pe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Fe.prototype.iterate=function(e,t){return e(this.entry)},t(Be,T),Be.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return Ue(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Ue(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Ue(e,i.entry);t=this._stack=He(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var tt=8,nt=16,rt=8;function ot(e){var t=ht();if(null==e)return t;if(it(e))return e;var n=o(e),r=n.size;return 0===r?t:(_e(r),r>0&&r<32?dt(0,r,5,null,new ct(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function it(e){return!(!e||!e[at])}t(ot,de),ot.of=function(){return this(arguments)},ot.prototype.toString=function(){return this.__toString("List [","]")},ot.prototype.get=function(e,t){if((e=x(this,e))>=0&&e<this.size){var n=yt(this,e+=this._origin);return n&&n.array[31&e]}return t},ot.prototype.set=function(e,t){return function(e,t,n){if((t=x(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?vt(e,t).set(0,n):vt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=v(y);return t>=wt(e._capacity)?r=gt(r,e.__ownerID,0,t,n,i):o=gt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):dt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ot.prototype.insert=function(e,t){return this.splice(e,0,t)},ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},ot.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){vt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},ot.prototype.pop=function(){return vt(this,0,-1)},ot.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){vt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},ot.prototype.shift=function(){return vt(this,1)},ot.prototype.merge=function(){return bt(this,void 0,arguments)},ot.prototype.mergeWith=function(t){var n=e.call(arguments,1);return bt(this,t,n)},ot.prototype.mergeDeep=function(){return bt(this,qe,arguments)},ot.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return bt(this,$e(t),n)},ot.prototype.setSize=function(e){return vt(this,0,e)},ot.prototype.slice=function(e,t){var n=this.size;return M(e,t,n)?this:vt(this,E(e,n),O(t,n))},ot.prototype.__iterator=function(e,t){var n=0,r=pt(this,t);return new T((function(){var t=r();return t===ft?{value:void 0,done:!0}:A(e,n++,t)}))},ot.prototype.__iterate=function(e,t){for(var n,r=0,o=pt(this,t);(n=o())!==ft&&!1!==e(n,r++,this););return r},ot.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},ot.isList=it;var at="@@__IMMUTABLE_LIST__@@",lt=ot.prototype;function ct(e,t){this.array=e,this.ownerID=t}lt[at]=!0,lt.delete=lt.remove,lt.setIn=Te.setIn,lt.deleteIn=lt.removeIn=Te.removeIn,lt.update=Te.update,lt.updateIn=Te.updateIn,lt.mergeIn=Te.mergeIn,lt.mergeDeepIn=Te.mergeDeepIn,lt.withMutations=Te.withMutations,lt.asMutable=Te.asMutable,lt.asImmutable=Te.asImmutable,lt.wasAltered=Te.wasAltered,ct.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new ct([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var l=mt(this,e);if(!i)for(var c=0;c<r;c++)l.array[c]=void 0;return o&&(l.array[r]=o),l},ct.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=mt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ut,st,ft={};function pt(e,t){var n=e._origin,r=e._capacity,o=wt(r),i=e._tail;return a(e._root,e._level,0);function a(e,l,c){return 0===l?function(e,a){var l=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>32&&(u=32),function(){if(c===u)return ft;var e=t?--u:c++;return l&&l[e]}}(e,c):function(e,o,i){var l,c=e&&e.array,u=i>n?0:n-i>>o,s=1+(r-i>>o);return s>32&&(s=32),function(){for(;;){if(l){var e=l();if(e!==ft)return e;l=null}if(u===s)return ft;var n=t?--s:u++;l=a(c&&c[n],o-5,i+(n<<o))}}}(e,l,c)}}function dt(e,t,n,r,o,i,a){var l=Object.create(lt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=i,l.__hash=a,l.__altered=!1,l}function ht(){return ut||(ut=dt(0,0,5))}function gt(e,t,n,r,o,i){var a,l=r>>>n&31,c=e&&l<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[l],s=gt(u,t,n-5,r,o,i);return s===u?e:((a=mt(e,t)).array[l]=s,a)}return c&&e.array[l]===o?e:(b(i),a=mt(e,t),void 0===o&&l===a.array.length-1?a.array.pop():a.array[l]=o,a)}function mt(e,t){return t&&e&&t===e.ownerID?e:new ct(e?e.array.slice():[],t)}function yt(e,t){if(t>=wt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function vt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new w,o=e._origin,i=e._capacity,a=o+t,l=void 0===n?i:n<0?i+n:o+n;if(a===o&&l===i)return e;if(a>=l)return e.clear();for(var c=e._level,u=e._root,s=0;a+s<0;)u=new ct(u&&u.array.length?[void 0,u]:[],r),s+=1<<(c+=5);s&&(a+=s,o+=s,l+=s,i+=s);for(var f=wt(i),p=wt(l);p>=1<<c+5;)u=new ct(u&&u.array.length?[u]:[],r),c+=5;var d=e._tail,h=p<f?yt(e,l-1):p>f?new ct([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=mt(u,r),m=c;m>5;m-=5){var y=f>>>m&31;g=g.array[y]=mt(g.array[y],r)}g.array[f>>>5&31]=d}if(l<i&&(h=h&&h.removeAfter(r,0,l)),a>=p)a-=p,l-=p,c=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(s=0;u;){var v=a>>>c&31;if(v!==p>>>c&31)break;v&&(s+=(1<<c)*v),c-=5,u=u.array[v]}u&&a>o&&(u=u.removeBefore(r,c,a-s)),u&&p<f&&(u=u.removeAfter(r,c,p-s)),s&&(a-=s,l-=s)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):dt(a,l,c,u,h)}function bt(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var c=n[l],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return re(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),Je(e,t,r)}function wt(e){return e<32?0:e-1>>>5<<5}function St(e){return null==e?Ct():kt(e)?e:Ct().withMutations((function(t){var n=r(e);_e(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function kt(e){return Le(e)&&s(e)}function xt(e,t,n,r){var o=Object.create(St.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Ct(){return st||(st=xt(Ve(),ht()))}function Mt(e,t,n){var r,o,i=e._map,a=e._list,l=i.get(t),c=void 0!==l;if(n===g){if(!c)return e;a.size>=32&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=l===a.size-1?a.pop():a.set(l,void 0))}else if(c){if(n===a.get(l)[1])return e;r=i,o=a.set(l,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):xt(r,o)}function Et(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ot(e){this._iter=e,this.size=e.size}function jt(e){this._iter=e,this.size=e.size}function _t(e){this._iter=e,this.size=e.size}function Dt(e){var t=Wt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Qt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new T((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Lt(e,t,n){var r=Wt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,g);return i===g?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new T((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return A(r,l,t.call(n,a[1],l,e),o)}))},r}function Nt(e,t){var n=Wt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Dt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Qt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function It(e,t,n,r){var o=Wt(e);return r&&(o.has=function(r){var o=e.get(r,g);return o!==g&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,g);return i!==g&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,l=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return l++,o(e,r?i:l-1,a)}),i),l},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),l=0;return new T((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],s=c[1];if(t.call(n,s,u,e))return A(o,r?u:l++,s,i)}}))},o}function Tt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),M(t,n,o))return e;var i=E(t,o),a=O(n,o);if(i!=i||a!=a)return Tt(e.toSeq().cacheResult(),t,n,r);var l,c=a-i;c==c&&(l=c<0?0:c);var u=Wt(e);return u.size=0===l?l:e.size&&l||void 0,!r&&q(e)&&l>=0&&(u.get=function(t,n