From a963bcdca088f029488376b1cc06c8ec2d5c2da8 Mon Sep 17 00:00:00 2001 From: Lillifee Date: Fri, 20 Nov 2020 20:32:25 +0100 Subject: [PATCH] Added Knob with rotary encoder --- data/bundle.js | 69 +++++++++------------ lib/Knob/KnobHelper.cpp | 133 ++++++++++++++++++++++++++++++++++++++++ lib/Knob/KnobHelper.h | 61 ++++++++++++++++++ lib/Knob/library.json | 4 ++ platformio.ini | 15 +++-- src/knob.cpp | 54 ++++++++++++++++ 6 files changed, 290 insertions(+), 46 deletions(-) create mode 100644 lib/Knob/KnobHelper.cpp create mode 100644 lib/Knob/KnobHelper.h create mode 100644 lib/Knob/library.json create mode 100644 src/knob.cpp diff --git a/data/bundle.js b/data/bundle.js index aeb89b9..3eb7ac1 100644 --- a/data/bundle.js +++ b/data/bundle.js @@ -1,11 +1,11 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=13)}([function(e,t,n){"use strict";e.exports=n(14)},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ServerStyleSheet",(function(){return Fe})),n.d(t,"StyleSheetConsumer",(function(){return Y})),n.d(t,"StyleSheetContext",(function(){return K})),n.d(t,"StyleSheetManager",(function(){return ne})),n.d(t,"ThemeConsumer",(function(){return Te})),n.d(t,"ThemeContext",(function(){return _e})),n.d(t,"ThemeProvider",(function(){return Pe})),n.d(t,"__PRIVATE__",(function(){return De})),n.d(t,"createGlobalStyle",(function(){return Me})),n.d(t,"css",(function(){return se})),n.d(t,"isStyledComponent",(function(){return w})),n.d(t,"keyframes",(function(){return Le})),n.d(t,"useTheme",(function(){return Re})),n.d(t,"version",(function(){return Be})),n.d(t,"withTheme",(function(){return Ae}));var r=n(6),i=n(0),a=n.n(i),o=n(10),l=n.n(o),u=n(11),c=n(12),s=n(8),f=n(7),d=n.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Additional arguments: "+n.join(", "):""))}var T=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(k))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(k,"active"),r.setAttribute("data-styled-version","5.1.1");var o=C();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},P=function(){function e(e){var t=this.element=T(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=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.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&_(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a=M&&(M=t+1),j.set(e,t),N.set(t,e)},R="style["+k+'][data-styled-version="5.1.1"]',D=new RegExp("^"+k+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),B=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a0&&(c+=e+",")})),r+=""+l+u+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},G=function(e){return V(5381,e)};var Q=/^\s*\/\/.*$/gm;function q(e){var t,n,r,i=void 0===e?y:e,a=i.options,o=void 0===a?y:a,l=i.plugins,c=void 0===l?g:l,s=new u.a(o),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,l,u,c,s,f){switch(n){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,i){return r>0&&-1!==i.slice(0,r).indexOf(n)&&i.slice(r-n.length,r)!==n?"."+t:e};function m(e,i,a,o){void 0===o&&(o="&");var l=e.replace(Q,""),u=i&&a?a+" "+i+" { "+l+" }":l;return t=o,n=i,r=new RegExp("\\"+n+"\\b","g"),s(a||!i?"":i,u)}return s.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||_(15),V(e,t.name)}),5381).toString():"",m}var K=a.a.createContext(),Y=K.Consumer,X=a.a.createContext(),Z=(X.Consumer,new W),J=q();function ee(){return Object(i.useContext)(K)||Z}function te(){return Object(i.useContext)(X)||J}function ne(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ee(),u=Object(i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(i.useMemo)((function(){return q({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a.a.createElement(K.Provider,{value:u},a.a.createElement(X.Provider,{value:c},e.children))}var re=function(){function e(e,t){var n=this;this.inject=function(e){e.hasNameForId(n.id,n.name)||e.insertRules(n.id,n.name,J.apply(void 0,n.stringifyArgs))},this.toString=function(){return _(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),ie=/([A-Z])/g,ae=/^ms-/;function oe(e){return e.replace(ie,"-$1").toLowerCase().replace(ae,"-ms-")}var le=function(e){return null==e||!1===e||""===e},ue=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!le(t[n])){if(h(t[n]))return r.push.apply(r,e(t[n],n)),r;if(v(t[n]))return r.push(oe(n)+":",t[n],";"),r;r.push(oe(n)+": "+(i=n,(null==(a=t[n])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||i in c.a?String(a).trim():a+"px")+";"))}var i,a;return r})),n?[n+" {"].concat(r,["}"]):r};function ce(e,t,n){if(Array.isArray(e)){for(var r,i=[],a=0,o=e.length;a1?t-1:0),r=1;r1?t-1:0),r=1;r25?39:97))};function ye(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ge(t%52)+n;return(ge(t%52)+n).replace(he,"$1-$2")}function ve(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var o=n(i,"."+a,void 0,r);t.insertRules(r,a,o)}return this.staticRulesId=a,a}for(var l=this.rules.length,u=V(this.baseHash,n.hash),c="",s=0;s>>0);if(!t.hasNameForId(r,m)){var h=n(c,"."+m,void 0,r);t.insertRules(r,m,h)}return m},e}(),we=(new Set,function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme}),ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g;function Ee(e){return e.replace(ke,"-").replace(Se,"")}function xe(e){return"string"==typeof e&&!0}var Ce=function(e){return ye(G(e)>>>0)};var _e=a.a.createContext(),Te=_e.Consumer;function Pe(e){var t=Object(i.useContext)(_e),n=Object(i.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?_(8):t?p({},t,{},e):e:_(14)}(e.theme,t)}),[e.theme,t]);return e.children?a.a.createElement(_e.Provider,{value:n},e.children):null}var Oe={};function Ie(e,t,n){var r=e.attrs,a=e.componentStyle,o=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,f=e.target;Object(i.useDebugValue)(c);var d=function(e,t,n){void 0===e&&(e=y);var r=p({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,a,o=e;for(t in v(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(n=i[t],a=o[t],n&&a?n+" "+a:n||a):o[t]})),[r,i]}(we(t,Object(i.useContext)(_e),o)||y,t,r),m=d[0],h=d[1],g=function(e,t,n,r){var a=ee(),o=te(),l=e.isStatic&&!t?e.generateAndInjectStyles(y,a,o):e.generateAndInjectStyles(n,a,o);return Object(i.useDebugValue)(l),l}(a,r.length>0,m),b=n,w=h.$as||t.$as||h.as||t.as||f,k=xe(w),S=h!==t?p({},t,{},h):t,E=u||k&&s.a,x={};for(var C in S)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?x.as=S[C]:E&&!E(C,s.a)||(x[C]=S[C]));return t.style&&h.style!==t.style&&(x.style=p({},t.style,{},h.style)),x.className=Array.prototype.concat(l,c,g!==c?g:null,t.className,h.className).filter(Boolean).join(" "),x.ref=b,Object(i.createElement)(w,x)}function ze(e,t,n){var r=w(e),i=!xe(e),o=t.displayName,l=void 0===o?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):o,u=t.componentId,c=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Ee(e);Oe[n]=(Oe[n]||0)+1;var r=n+"-"+Ce(n+Oe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,s=t.attrs,f=void 0===s?g:s,m=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||c,h=r&&e.attrs?Array.prototype.concat(e.attrs,f).filter(Boolean):f,y=t.shouldForwardProp;r&&e.shouldForwardProp&&(y=y?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var v,k=new be(r?e.componentStyle.rules.concat(n):n,m),S=function(e,t){return Ie(v,e,t)};return S.displayName=l,(v=a.a.forwardRef(S)).attrs=h,v.componentStyle=k,v.displayName=l,v.shouldForwardProp=y,v.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,v.styledComponentId=m,v.target=r?e.target:e,v.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),a=r&&r+"-"+(xe(e)?e:Ee(b(e)));return ze(e,p({},i,{attrs:h,componentId:a}),n)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?me({},e.defaultProps,t):t}}),v.toString=function(){return"."+v.styledComponentId},i&&d()(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var je=function(e){return function e(t,n,i){if(void 0===i&&(i=y),!Object(r.isValidElementType)(n))return _(1,String(n));var a=function(){return t(n,i,se.apply(void 0,arguments))};return a.withConfig=function(r){return e(t,n,p({},i,{},r))},a.attrs=function(r){return e(t,n,p({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},a}(ze,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","tspan"].forEach((function(e){je[e]=je(e)}));var Ne=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ve(e)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ce(this.rules,t,n).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?_(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return _(2);var n=((t={})[k]="",t["data-styled-version"]="5.1.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=C();return r&&(n.nonce=r),[a.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?_(2):a.a.createElement(ne,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return _(3)},e}(),Ae=function(e){var t=a.a.forwardRef((function(t,n){var r=Object(i.useContext)(_e),o=e.defaultProps,l=we(t,r,o);return a.a.createElement(e,p({},t,{theme:l,ref:n}))}));return d()(t,e),t.displayName="WithTheme("+b(e)+")",t},Re=function(){return Object(i.useContext)(_e)},De={StyleSheet:W,masterSheet:Z},Be="5.1.1";t.default=je}.call(this,n(20))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(27),t),i(n(28),t),i(n(29),t),i(n(30),t),i(n(31),t),i(n(32),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it.IconMap[e],t.RoundIconElement=({type:e,className:n})=>u.createElement("div",{className:n},t.IconMap[e]),t.RoundIcon=c.default(t.RoundIconElement).withConfig({displayName:"RoundIcon",componentId:"sc-1pdarpz"})` +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=13)}([function(e,t,n){"use strict";e.exports=n(14)},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ServerStyleSheet",(function(){return Fe})),n.d(t,"StyleSheetConsumer",(function(){return Y})),n.d(t,"StyleSheetContext",(function(){return q})),n.d(t,"StyleSheetManager",(function(){return ne})),n.d(t,"ThemeConsumer",(function(){return Te})),n.d(t,"ThemeContext",(function(){return _e})),n.d(t,"ThemeProvider",(function(){return Pe})),n.d(t,"__PRIVATE__",(function(){return De})),n.d(t,"createGlobalStyle",(function(){return Me})),n.d(t,"css",(function(){return se})),n.d(t,"isStyledComponent",(function(){return w})),n.d(t,"keyframes",(function(){return Le})),n.d(t,"useTheme",(function(){return Re})),n.d(t,"version",(function(){return $e})),n.d(t,"withTheme",(function(){return Ae}));var r=n(5),i=n(0),o=n.n(i),a=n(10),l=n.n(a),u=n(11),c=n(12),s=n(8),f=n(7),d=n.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Additional arguments: "+n.join(", "):""))}var T=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(k))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(k,"active"),r.setAttribute("data-styled-version","5.1.1");var a=C();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},P=function(){function e(e){var t=this.element=T(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=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.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&_(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=M&&(M=t+1),j.set(e,t),N.set(t,e)},R="style["+k+'][data-styled-version="5.1.1"]',D=new RegExp("^"+k+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),$=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o0&&(c+=e+",")})),r+=""+l+u+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Q=function(e){return V(5381,e)};var G=/^\s*\/\/.*$/gm;function K(e){var t,n,r,i=void 0===e?y:e,o=i.options,a=void 0===o?y:o,l=i.plugins,c=void 0===l?g:l,s=new u.a(a),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,l,u,c,s,f){switch(n){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,i){return r>0&&-1!==i.slice(0,r).indexOf(n)&&i.slice(r-n.length,r)!==n?"."+t:e};function m(e,i,o,a){void 0===a&&(a="&");var l=e.replace(G,""),u=i&&o?o+" "+i+" { "+l+" }":l;return t=a,n=i,r=new RegExp("\\"+n+"\\b","g"),s(o||!i?"":i,u)}return s.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||_(15),V(e,t.name)}),5381).toString():"",m}var q=o.a.createContext(),Y=q.Consumer,X=o.a.createContext(),Z=(X.Consumer,new W),J=K();function ee(){return Object(i.useContext)(q)||Z}function te(){return Object(i.useContext)(X)||J}function ne(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ee(),u=Object(i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(i.useMemo)((function(){return K({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(q.Provider,{value:u},o.a.createElement(X.Provider,{value:c},e.children))}var re=function(){function e(e,t){var n=this;this.inject=function(e){e.hasNameForId(n.id,n.name)||e.insertRules(n.id,n.name,J.apply(void 0,n.stringifyArgs))},this.toString=function(){return _(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),ie=/([A-Z])/g,oe=/^ms-/;function ae(e){return e.replace(ie,"-$1").toLowerCase().replace(oe,"-ms-")}var le=function(e){return null==e||!1===e||""===e},ue=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!le(t[n])){if(h(t[n]))return r.push.apply(r,e(t[n],n)),r;if(b(t[n]))return r.push(ae(n)+":",t[n],";"),r;r.push(ae(n)+": "+(i=n,(null==(o=t[n])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||i in c.a?String(o).trim():o+"px")+";"))}var i,o;return r})),n?[n+" {"].concat(r,["}"]):r};function ce(e,t,n){if(Array.isArray(e)){for(var r,i=[],o=0,a=e.length;o1?t-1:0),r=1;r1?t-1:0),r=1;r25?39:97))};function ye(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ge(t%52)+n;return(ge(t%52)+n).replace(he,"$1-$2")}function be(e){for(var t=0;t>>0);if(!t.hasNameForId(r,o)){var a=n(i,"."+o,void 0,r);t.insertRules(r,o,a)}return this.staticRulesId=o,o}for(var l=this.rules.length,u=V(this.baseHash,n.hash),c="",s=0;s>>0);if(!t.hasNameForId(r,m)){var h=n(c,"."+m,void 0,r);t.insertRules(r,m,h)}return m},e}(),we=(new Set,function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme}),ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g;function xe(e){return e.replace(ke,"-").replace(Se,"")}function Ee(e){return"string"==typeof e&&!0}var Ce=function(e){return ye(Q(e)>>>0)};var _e=o.a.createContext(),Te=_e.Consumer;function Pe(e){var t=Object(i.useContext)(_e),n=Object(i.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?_(8):t?p({},t,{},e):e:_(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.a.createElement(_e.Provider,{value:n},e.children):null}var Oe={};function Ie(e,t,n){var r=e.attrs,o=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,f=e.target;Object(i.useDebugValue)(c);var d=function(e,t,n){void 0===e&&(e=y);var r=p({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in b(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(we(t,Object(i.useContext)(_e),a)||y,t,r),m=d[0],h=d[1],g=function(e,t,n,r){var o=ee(),a=te(),l=e.isStatic&&!t?e.generateAndInjectStyles(y,o,a):e.generateAndInjectStyles(n,o,a);return Object(i.useDebugValue)(l),l}(o,r.length>0,m),v=n,w=h.$as||t.$as||h.as||t.as||f,k=Ee(w),S=h!==t?p({},t,{},h):t,x=u||k&&s.a,E={};for(var C in S)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?E.as=S[C]:x&&!x(C,s.a)||(E[C]=S[C]));return t.style&&h.style!==t.style&&(E.style=p({},t.style,{},h.style)),E.className=Array.prototype.concat(l,c,g!==c?g:null,t.className,h.className).filter(Boolean).join(" "),E.ref=v,Object(i.createElement)(w,E)}function ze(e,t,n){var r=w(e),i=!Ee(e),a=t.displayName,l=void 0===a?function(e){return Ee(e)?"styled."+e:"Styled("+v(e)+")"}(e):a,u=t.componentId,c=void 0===u?function(e,t){var n="string"!=typeof e?"sc":xe(e);Oe[n]=(Oe[n]||0)+1;var r=n+"-"+Ce(n+Oe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,s=t.attrs,f=void 0===s?g:s,m=t.displayName&&t.componentId?xe(t.displayName)+"-"+t.componentId:t.componentId||c,h=r&&e.attrs?Array.prototype.concat(e.attrs,f).filter(Boolean):f,y=t.shouldForwardProp;r&&e.shouldForwardProp&&(y=y?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var b,k=new ve(r?e.componentStyle.rules.concat(n):n,m),S=function(e,t){return Ie(b,e,t)};return S.displayName=l,(b=o.a.forwardRef(S)).attrs=h,b.componentStyle=k,b.displayName=l,b.shouldForwardProp=y,b.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,b.styledComponentId=m,b.target=r?e.target:e,b.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ee(e)?e:xe(v(e)));return ze(e,p({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?me({},e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},i&&d()(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var je=function(e){return function e(t,n,i){if(void 0===i&&(i=y),!Object(r.isValidElementType)(n))return _(1,String(n));var o=function(){return t(n,i,se.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,p({},i,{},r))},o.attrs=function(r){return e(t,n,p({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(ze,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","tspan"].forEach((function(e){je[e]=je(e)}));var Ne=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=be(e)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ce(this.rules,t,n).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?_(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return _(2);var n=((t={})[k]="",t["data-styled-version"]="5.1.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=C();return r&&(n.nonce=r),[o.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?_(2):o.a.createElement(ne,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return _(3)},e}(),Ae=function(e){var t=o.a.forwardRef((function(t,n){var r=Object(i.useContext)(_e),a=e.defaultProps,l=we(t,r,a);return o.a.createElement(e,p({},t,{theme:l,ref:n}))}));return d()(t,e),t.displayName="WithTheme("+v(e)+")",t},Re=function(){return Object(i.useContext)(_e)},De={StyleSheet:W,masterSheet:Z},$e="5.1.1";t.default=je}.call(this,n(20))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(27),t),i(n(28),t),i(n(29),t),i(n(30),t),i(n(31),t),i(n(32),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it.IconMap[e],t.RoundIconElement=({type:e,className:n})=>u.createElement("div",{className:n},t.IconMap[e]),t.RoundIcon=c.default(t.RoundIconElement).withConfig({displayName:"RoundIcon",componentId:"sc-1pdarpz"})` border-radius: 50px; background: ${e=>e.theme.PrimarySubBackground}; fill: ${e=>e.theme.PrimaryForeground}; width: 24px; height: 24px; padding: 3px; -`,t.ButtonIconElement=e=>{var{type:n}=e,r=o(e,["type"]);return u.createElement("button",Object.assign({},r),t.IconMap[n])},t.ButtonIcon=c.default(t.ButtonIconElement).withConfig({displayName:"ButtonIcon",componentId:"sc-nzy8zl"})` +`,t.ButtonIconElement=e=>{var{type:n}=e,r=a(e,["type"]);return u.createElement("button",Object.assign({},r),t.IconMap[n])},t.ButtonIcon=c.default(t.ButtonIconElement).withConfig({displayName:"ButtonIcon",componentId:"sc-nzy8zl"})` border: 0; outline: none; border-radius: 50px; @@ -30,12 +30,12 @@ color: ${e=>e.theme.SelectedForeground}; fill: ${e=>e.theme.SelectedForeground}; } -`},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(34),t),i(n(37),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(38),t),i(n(39),t),i(n(40),t)},function(e,t,n){"use strict";e.exports=n(21)},function(e,t,n){"use strict";var r=n(6),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?o:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var i=p(n);i&&i!==m&&e(t,i,r)}var o=s(n);f&&(o=o.concat(f(n)));for(var l=u(t),h=u(n),g=0;gr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102l.charCodeAt(0)&&(l=l.trim()),l=[l],0p)&&(D=(U=U.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102l.charCodeAt(0)&&(l=l.trim()),l=[l],0p)&&(D=(U=U.replace(" ",":")).length),0I.length&&I.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,i){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case o:u=!0}}if(u)return r(i,t,""===n?"."+M(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cI.length&&I.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,i){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+M(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c