UNPKG

53.6 kBJavaScriptView Raw
1System.register(["react","styled-components","lodash","rxjs"],(function(e){"use strict";var n,t,r,o,a,i,s,u,c,l;return{setters:[function(e){n=e.default,t=e.useRef,r=e.useEffect,o=e.useMemo,a=e.useReducer,i=e.useState,s=e.useContext},function(e){u=e.default},function(e){c=e.debounce},function(e){l=e.BehaviorSubject}],execute:function(){function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){p(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function g(){var e=b(["\n .leo {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n }\n\n .blue-orbit {\n width: 165px;\n height: 165px;\n border: 1px solid #91daffa5;\n -webkit-animation: spin3D 3s linear 0.2s infinite;\n }\n\n .green-orbit {\n width: 120px;\n height: 120px;\n border: 1px solid #91ffbfa5;\n -webkit-animation: spin3D 2s linear 0s infinite;\n }\n\n .red-orbit {\n width: 90px;\n height: 90px;\n border: 1px solid #ffca91a5;\n -webkit-animation: spin3D 1s linear 0s infinite;\n }\n\n .white-orbit {\n width: 60px;\n height: 60px;\n border: 2px solid #ffffff;\n -webkit-animation: spin3D 10s linear 0s infinite;\n }\n\n .w1 {\n transform: rotate3D(1, 1, 1, 90deg);\n }\n\n .w2 {\n transform: rotate3D(1, 2, 0.5, 90deg);\n }\n\n .w3 {\n transform: rotate3D(0.5, 1, 2, 90deg);\n }\n\n @keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(359deg);\n }\n }\n\n @keyframes spin3D {\n from {\n transform: rotate3d(0.5, 0.5, 0.5, 360deg);\n }\n to {\n transform: rotate3d(0deg);\n }\n }\n"]);return g=function(){return e},e}function y(){var e=b(["\n .solar-system {\n width: 250px;\n height: 250px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .orbit {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid #ffffffa5;\n border-radius: 50%;\n }\n\n .earth-orbit {\n width: 165px;\n height: 165px;\n animation: spin 12s linear 0s infinite;\n }\n\n .venus-orbit {\n width: 120px;\n height: 120px;\n animation: spin 7.4s linear 0s infinite;\n }\n\n .mercury-orbit {\n width: 90px;\n height: 90px;\n animation: spin 3s linear 0s infinite;\n }\n\n .planet {\n position: absolute;\n top: -5px;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background-color: #3ff9dc;\n }\n\n .sun {\n width: 35px;\n height: 35px;\n border-radius: 50%;\n background-color: #ffab91;\n }\n"]);return y=function(){return e},e}function w(){var e=b(["\n .pulse-container {\n width: 120px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .pulse-bubble {\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background-color: #3ff9dc;\n }\n\n .pulse-bubble-1 {\n animation: pulse 0.4s ease 0s infinite alternate;\n }\n .pulse-bubble-2 {\n animation: pulse 0.4s ease 0.2s infinite alternate;\n }\n .pulse-bubble-3 {\n animation: pulse 0.4s ease 0.4s infinite alternate;\n }\n @keyframes pulse {\n from {\n opacity: 1;\n transform: scale(1);\n }\n to {\n opacity: 0.25;\n transform: scale(0.75);\n }\n }\n"]);return w=function(){return e},e}function x(){var e=b(["\n .circle-border {\n width: 150px;\n height: 150px;\n padding: 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n background: rgb(63, 249, 220);\n background: linear-gradient(0deg, rgba(63, 249, 220, 0.1) 33%, rgba(63, 249, 220, 1) 100%);\n animation: spin 0.8s linear 0s infinite;\n }\n\n .circle-core {\n width: 100%;\n height: 100%;\n background-color: #37474f;\n border-radius: 50%;\n }\n\n @keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(359deg);\n }\n }\n"]);return x=function(){return e},e}function E(){var e=b(["\n width: 300px;\n height: 300px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: transparent;\n"]);return E=function(){return e},e}e({NamedThemeProvider:function(e){var t=e.children,o=e.initialTheme,a=be((function(){return new l("function"==typeof o?o():o)}));return r((function(){return function(){return a.complete()}}),[]),n.createElement(me.Provider,{value:a},t)},createContainer:function(e){var t=n.createContext(In);return{Provider:function(r){var o=e(r.initialState);return n.createElement(t.Provider,{value:o},r.children)},useContainer:function(){var e=n.useContext(t);if(e===In)throw new Error("Component must be wrapped with <Container.Provider>");return e}}},createSubscriptionContainer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isEqual:function(e,n){return e===n}},o=t.isEqual,a=n.createContext(Nn);function i(t){var r=be((function(){var e=t.initialState;return new l("function"==typeof e?e():e)})),o=be((function(){var n=!1,t=function e(t){if(n)setTimeout((function(){return e(t)}),0);else{n=!0;try{!function(e){var n;n="function"==typeof e?e(r.getValue()):e,r.next(n)}(t)}finally{n=!1}}};return e({getState:function(){return r.getValue()},setState:t,updateState:function(e){t(kn((function(n){e(n)})))},subscribe:function(e){var n=r.subscribe(e);return n.unsubscribe.bind(n)}})}));return n.createElement(a.Provider,{value:{container:o,subject:r}},t.children)}function s(){var e=n.useContext(a);if(e===Nn)throw new Error("Component must be wrapped with <SubscriptionContainer.Provider>");return e.container}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,i=n.useContext(a);if(i===Nn)throw new Error("Component must be wrapped with <SubscriptionContainer.Provider>");var s=i.subject,u=n.useState((function(){return e(s.getValue())})),c=m(u,2),l=c[0],f=c[1];return r((function(){var n=s.pipe(Ae(1)).subscribe((function(n){f((function(r){var o=e(n);return t(r,o)?r:o}))}));return function(){return n.unsubscribe()}}),[]),l}function c(){return u((function(e){return e}))}function f(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=n.useContext(a);if(s===Nn)throw new Error("Component must be wrapped with <SubscriptionContainer.Provider>");var u=s.subject,c=n.useRef();r((function(){c.current=e(u.getValue());var n=u.subscribe((function(n){var r=c.current,o=e(n);i(r,o)||(t(o),c.current=o)}));return function(){return n.unsubscribe()}}),[])}return{Provider:i,useContainer:s,useSelector:u,useState:c,useWhenValueChange:f}},useAsyncEffect:function(e,n){var o=t();r((function(){return e({setCloser:function(e){return o.current=e}}).then((function(e){return"function"==typeof e?o.current=e:null})).catch((function(e){console.trace("useAsyncEffect error",n,e)})),function(){var e;return null===(e=o.current)||void 0===e?void 0:e.call(o)}}),n)},useConstant:be,useContainer:function(e){return e.useContainer()},useDebounceEffect:function(e,n,t){var a=o((function(){return c((function(){null==e||e()}),t)}),[e,t]);r((function(){return a(),function(){return a.cancel()}}),n)},useEffectOnce:function(e){n.useEffect(e,[])},useFetchEffect:function(e,t){var r=m(n.useState((function(){try{return e()}catch(e){return Promise.reject(e)}})),2),o=r[0],a=r[1],i=n.useRef(!0);return n.useEffect((function(){if(i.current)i.current=!1;else try{a(e())}catch(e){a(Promise.reject(e))}}),t),ge(o)}
2/*! *****************************************************************************
3 Copyright (c) Microsoft Corporation.
4
5 Permission to use, copy, modify, and/or distribute this software for any
6 purpose with or without fee is hereby granted.
7
8 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 PERFORMANCE OF THIS SOFTWARE.
15 ***************************************************************************** */,useForceRender:function(){return m(a((function(e){return e+1}),0),2)[1]},useInterval:function(e,n){var o=t();r((function(){return o.current=setInterval(e,n),function(){return clearInterval(o.current)}}),[n])},useMounted:function(){var e=m(i(!1),2),n=e[0],t=e[1];return r((function(){return t(!0)}),[]),n},useNamedTheme:function(){var e=s(me),n=m(i(e.value),2),t=n[0],o=n[1];return r((function(){var n=e.subscribe(o);return n.unsubscribe.bind(n)}),[e]),[t,function(n){return e.next(n)}]},useOnlineEffect:function(){var e,n,t=m(i(null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.onLine),2),o=t[0],a=t[1];return r((function(){var e=function(e){return a("online"===e.type)};return window.addEventListener("online",e),window.addEventListener("offline",e),function(){window.removeEventListener("online",e),window.removeEventListener("offline",e)}}),[]),o},usePromiseEffect:ge,withProps:function(e,t){return function(r){return n.createElement(e,Object.assign({},r,t))}}});var S=u.div(E()),P=u(S)(x()),O=u(S)(w()),_=(e("GradientSpinner",(function(){return n.createElement(P,null,n.createElement("div",{className:"circle-border"},n.createElement("div",{className:"circle-core"})))})),e("PulseBubble",(function(){return n.createElement(O,null,n.createElement("div",{className:"pulse-container"},n.createElement("div",{className:"pulse-bubble pulse-bubble-1"}),n.createElement("div",{className:"pulse-bubble pulse-bubble-2"}),n.createElement("div",{className:"pulse-bubble pulse-bubble-3"})))})),u(S)(y())),j=(e("SolarSystemSpinner",(function(){return n.createElement(_,null,n.createElement("div",{className:"solar-system"},n.createElement("div",{className:"earth-orbit orbit"},n.createElement("div",{className:"planet earth"}),n.createElement("div",{className:"venus-orbit orbit"},n.createElement("div",{className:"planet venus"}),n.createElement("div",{className:"mercury-orbit orbit"},n.createElement("div",{className:"planet mercury"}),n.createElement("div",{className:"sun"}))))))})),e("PlanetRotatingBox",u(S)(g())));e("PlantRotating",(function(){return n.createElement(j,null,n.createElement("div",{className:"blue-orbit leo"}),n.createElement("div",{className:"green-orbit leo"}),n.createElement("div",{className:"red-orbit leo"}),n.createElement("div",{className:"white-orbit w1 leo"}),n.createElement("div",{className:"white-orbit w2 leo"}),n.createElement("div",{className:"white-orbit w3 leo"}))}));function k(){var e=b(["\n position: absolute;\n width: 35px;\n height: 35px;\n left: 50%;\n top: 50%;\n & > div {\n position: absolute;\n width: 2px;\n height: 8px;\n background-color: #25363f;\n opacity: 0.05;\n animation: fadeit 0.8s linear infinite;\n }\n\n ","\n\n @keyframes fadeit {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n"]);return k=function(){return e},e}var N=u.div(k(),(function(e){var n=e.bars;return Array(n).fill(null).map((function(e,t){return"\n & > div:nth-child(".concat(t+1,") {\n transform: rotate(").concat((360/n*t).toFixed(2),"deg) translate(0, -12px);\n animation-delay:").concat((.8/n*(t+1)).toFixed(2),"s;\n }\n ")}))}));e("BarsSpinner",(function(e){var t=e.bars,r=void 0===t?16:t;return n.createElement(N,{bars:r},Array(r).fill(null).map((function(e,t){return n.createElement("div",{key:t})})))}));function I(){return(I=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e,n){return(z=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function A(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function F(e,n,t){return(F=A()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&z(o,t.prototype),o}).apply(null,arguments)}function T(e){var n="function"==typeof Map?new Map:void 0;return(T=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return F(e,arguments,C(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),z(t,e)})(e)}var R={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found.\n"};function M(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,o=n[0],a=[];for(r=1;r<n.length;r+=1)a.push(n[r]);return a.forEach((function(e){o=o.replace(/%[a-z]/,e)})),o}var Y=function(e){var n,t;function r(n){var t;if("production"===process.env.NODE_ENV)t=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+n+" for more information.")||this;else{for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t=e.call(this,M.apply(void 0,[R[n]].concat(o)))||this}return D(t)}return t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t,r}(T(Error));function V(e){return Math.round(255*e)}function q(e,n,t){return V(e)+","+V(n)+","+V(t)}function H(e,n,t,r){if(void 0===r&&(r=q),0===n)return r(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*n,i=a*(1-Math.abs(o%2-1)),s=0,u=0,c=0;o>=0&&o<1?(s=a,u=i):o>=1&&o<2?(s=i,u=a):o>=2&&o<3?(u=a,c=i):o>=3&&o<4?(u=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i);var l=t-a/2;return r(s+l,u+l,c+l)}var U={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var $=/^#[a-fA-F0-9]{6}$/,B=/^#[a-fA-F0-9]{8}$/,L=/^#[a-fA-F0-9]{3}$/,G=/^#[a-fA-F0-9]{4}$/,X=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,W=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,K=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Z=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function J(e){if("string"!=typeof e)throw new Y(3);var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return U[n]?"#"+U[n]:e}(e);if(n.match($))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(B)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(L))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(G)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var o=X.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=W.exec(n);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=K.exec(n);if(i){var s="rgb("+H(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",u=X.exec(s);if(!u)throw new Y(4,n,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=Z.exec(n);if(c){var l="rgb("+H(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",f=X.exec(l);if(!f)throw new Y(4,n,l);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+c[4])}}throw new Y(5)}function Q(e){return function(e){var n,t=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(t,r,o),i=Math.min(t,r,o),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u=a-i,c=s>.5?u/(2-a-i):u/(a+i);switch(a){case t:n=(r-o)/u+(r<o?6:0);break;case r:n=(o-t)/u+2;break;default:n=(t-r)/u+4}return n*=60,void 0!==e.alpha?{hue:n,saturation:c,lightness:s,alpha:e.alpha}:{hue:n,saturation:c,lightness:s}}(J(e))}var ee=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function ne(e){var n=e.toString(16);return 1===n.length?"0"+n:n}function te(e){return ne(Math.round(255*e))}function re(e,n,t){return ee("#"+te(e)+te(n)+te(t))}function oe(e,n,t){return H(e,n,t,re)}function ae(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return ee("#"+ne(e)+ne(n)+ne(t));if("object"===f(e)&&void 0===n&&void 0===t)return ee("#"+ne(e.red)+ne(e.green)+ne(e.blue));throw new Y(6)}function ie(e){if("object"!==f(e))throw new Y(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return function(e,n,t,r){if("string"==typeof e&&"number"==typeof n){var o=J(e);return"rgba("+o.red+","+o.green+","+o.blue+","+n+")"}if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?ae(e,n,t):"rgba("+e+","+n+","+t+","+r+")";if("object"===f(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?ae(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Y(7)}(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return ae(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,n,t,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?oe(e,n,t):"rgba("+H(e,n,t)+","+r+")";if("object"===f(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?oe(e.hue,e.saturation,e.lightness):"rgba("+H(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Y(2)}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return oe(e,n,t);if("object"===f(e)&&void 0===n&&void 0===t)return oe(e.hue,e.saturation,e.lightness);throw new Y(1)}(e);throw new Y(8)}function se(e){return function e(n,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?n.apply(this,o):e(n,t,o)}}(e,e.length,[])}function ue(e,n){if("transparent"===n)return n;var t,r,o,a=Q(n);return ie(I({},a,{lightness:(t=0,r=1,o=a.lightness-parseFloat(e),Math.max(t,Math.min(r,o)))}))}var ce=se(ue);function le(){var e=b(["\n --size: ",";\n\n .container {\n ",";\n transform-style: preserve-3d;\n perspective: 2000px;\n transform: rotateX(-30deg) rotateY(-45deg);\n\n *,\n *:before,\n *:after {\n box-sizing: border-box;\n }\n }\n\n .holder {\n ",";\n transform-style: preserve-3d;\n transform: translate3d(0em, var(--size), calc(var(--size) * 0.5));\n &:nth-child(3) {\n transform: rotateY(-90deg) rotateX(90deg) translate3d(0, var(--size), calc(var(--size) * 0.5));\n }\n &:first-child {\n transform: rotateZ(-90deg) rotateX(-90deg) translate3d(0, var(--size), calc(var(--size) * 0.5));\n }\n }\n\n ","\n\n .info {\n ",";\n padding-top: 180px;\n\n .title {\n font-size: 20px;\n font-weight: 400;\n text-align: center;\n color: #212121;\n }\n\n .detail {\n font-size: 14px;\n font-weight: 200;\n text-align: center;\n }\n }\n\n .box {\n ",";\n transform-style: preserve-3d;\n animation: ani-box 6s infinite;\n width: var(--size);\n height: var(--size);\n //opacity: .9;\n &:before,\n &:after {\n position: absolute;\n width: 100%;\n height: 100%;\n content: '';\n }\n &:before {\n left: 100%;\n bottom: 0;\n transform: rotateY(90deg);\n transform-origin: 0 50%;\n }\n &:after {\n left: 0;\n bottom: 100%;\n transform: rotateX(90deg);\n transform-origin: 0 100%;\n }\n }\n\n @keyframes ani-box {\n 8.33% {\n transform: translate3d(-50%, -50%, 0) scaleZ(2);\n }\n 16.7% {\n transform: translate3d(-50%, -50%, calc(-1 * var(--size))) scaleZ(1);\n }\n 25% {\n transform: translate3d(-50%, -100%, calc(-1 * var(--size))) scaleY(2);\n }\n 33.3% {\n transform: translate3d(-50%, -150%, calc(-1 * var(--size))) scaleY(1);\n }\n 41.7% {\n transform: translate3d(-100%, -150%, calc(-1 * var(--size))) scaleX(2);\n }\n 50% {\n transform: translate3d(-150%, -150%, calc(-1 * var(--size))) scaleX(1);\n }\n 58.3% {\n transform: translate3d(-150%, -150%, 0) scaleZ(2);\n }\n 66.7% {\n transform: translate3d(-150%, -150%, 0) scaleZ(1);\n }\n 75% {\n transform: translate3d(-150%, -100%, 0) scaleY(2);\n }\n 83.3% {\n transform: translate3d(-150%, -50%, 0) scaleY(1);\n }\n 91.7% {\n transform: translate3d(-100%, -50%, 0) scaleX(2);\n }\n 100% {\n transform: translate3d(-50%, -50%, 0) scaleX(1);\n }\n }\n"]);return le=function(){return e},e}var fe=function(e){return"\nposition: absolute;\ntop: 50%;\nleft: 50%;\ntransform: translate(-50%, -50%);\n"},pe=u.div(le(),(function(e){return e.size||"3em"}),fe,fe,(function(e){return(e.colors||["#1FBCD3","#CBE2B4","#F6B6CA"]).map((function(e,n){return"\n .holder:nth-child(".concat(n+1,"){\n .box{\n background-color: ").concat(e,";\n &:before{\n background-color: ").concat(ce(.2,e),";\n }\n &:after{\n background-color: ").concat(ce(.1,e),";\n }\n }\n }\n }\n")}))}),fe,fe);e("BoxShuffle",(function(e){var t=e.title,r=e.detail;return n.createElement(pe,null,n.createElement("div",{className:"container"},n.createElement("div",{className:"holder"},n.createElement("div",{className:"box"})),n.createElement("div",{className:"holder"},n.createElement("div",{className:"box"})),n.createElement("div",{className:"holder"},n.createElement("div",{className:"box"}))),n.createElement("div",{className:"info"},n.createElement("div",{className:"title"},t),n.createElement("div",{className:"detail"},r)))}));function de(){var e=b(["\n width: 200px;\n height: 200px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n margin: auto;\n filter: url('#gooey-loader-filter');\n animation: rotate-move 2s ease-in-out infinite;\n\n .dot {\n width: 70px;\n height: 70px;\n border-radius: 50%;\n background-color: #000;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: auto;\n }\n\n .dot-3 {\n background-color: #f74d75;\n animation: dot-3-move 2s ease infinite, index 6s ease infinite;\n }\n\n .dot-2 {\n background-color: #10beae;\n animation: dot-2-move 2s ease infinite, index 6s -4s ease infinite;\n }\n\n .dot-1 {\n background-color: #ffe386;\n animation: dot-1-move 2s ease infinite, index 6s -2s ease infinite;\n }\n\n @keyframes dot-3-move {\n 20% {\n transform: scale(1);\n }\n 45% {\n transform: translateY(-18px) scale(0.45);\n }\n 60% {\n transform: translateY(-90px) scale(0.45);\n }\n 80% {\n transform: translateY(-90px) scale(0.45);\n }\n 100% {\n transform: translateY(0px) scale(1);\n }\n }\n\n @keyframes dot-2-move {\n 20% {\n transform: scale(1);\n }\n 45% {\n transform: translate(-16px, 12px) scale(0.45);\n }\n 60% {\n transform: translate(-80px, 60px) scale(0.45);\n }\n 80% {\n transform: translate(-80px, 60px) scale(0.45);\n }\n 100% {\n transform: translateY(0px) scale(1);\n }\n }\n\n @keyframes dot-1-move {\n 20% {\n transform: scale(1);\n }\n 45% {\n transform: translate(16px, 12px) scale(0.45);\n }\n 60% {\n transform: translate(80px, 60px) scale(0.45);\n }\n 80% {\n transform: translate(80px, 60px) scale(0.45);\n }\n 100% {\n transform: translateY(0px) scale(1);\n }\n }\n\n @keyframes rotate-move {\n 55% {\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 80% {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n 100% {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n }\n\n @keyframes index {\n 0%,\n 100% {\n z-index: 3;\n }\n 33.3% {\n z-index: 2;\n }\n 66.6% {\n z-index: 1;\n }\n }\n"]);return de=function(){return e},e}var he=u.div(de());e("GooeyLoader",(function(){return function(){if("undefined"!=typeof window&&!document.querySelector("#GooeyLoaderSvgFilter")){var e=document.createElement("div");e.id="GooeyLoaderSvgFilter",e.innerHTML='\n<svg xmlns="http://www.w3.org/2000/svg" version="1.1">\n <defs>\n <filter id="gooey-loader-filter">\n <feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur" />\n <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 21 -7"/>\n </filter>\n </defs>\n</svg>\n',document.body.appendChild(e)}}(),n.createElement(he,null,n.createElement("div",{className:"dot dot-1"}),n.createElement("div",{className:"dot dot-2"}),n.createElement("div",{className:"dot dot-3"}))}));function be(e){var t=n.useRef();return t.current||(t.current={v:e()}),t.current.v}var me=n.createContext(new l(null));function ve(e){return e&&e.then&&e.catch}function ge(e){var t=m(n.useState((function(){return ve(e)?{loading:!0}:{loading:!1,data:e}})),2),r=t[0],o=t[1];return n.useEffect((function(){ve(e)?(o((function(e){return h(h({},e),{},{loading:!0,error:void 0})})),e.then((function(e){return o({loading:!1,data:e})})).catch((function(e){return o({loading:!1,error:e})}))):o((function(n){return n.data===e?n:{loading:!1,data:e}}))}),[e]),r}var ye=function(e,n){return(ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function we(e,n){function t(){this.constructor=e}ye(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function xe(e){return"function"==typeof e}var Ee=!1,Se={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;Ee=e},get useDeprecatedSynchronousErrorHandling(){return Ee}};function Pe(e){setTimeout((function(){throw e}),0)}var Oe={closed:!0,next:function(e){},error:function(e){if(Se.useDeprecatedSynchronousErrorHandling)throw e;Pe(e)},complete:function(){}},_e=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function je(e){return null!==e&&"object"===f(e)}var ke=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,n){return n+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),Ne=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var n;if(!this.closed){var t=this._parentOrParents,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof e)t.remove(this);else if(null!==t)for(var a=0;a<t.length;++a){t[a].remove(this)}if(xe(r))try{r.call(this)}catch(e){n=e instanceof ke?Ie(e.errors):[e]}if(_e(o)){a=-1;for(var i=o.length;++a<i;){var s=o[a];if(je(s))try{s.unsubscribe()}catch(e){n=n||[],e instanceof ke?n=n.concat(Ie(e.errors)):n.push(e)}}}if(n)throw new ke(n)}},e.prototype.add=function(n){var t=n;if(!n)return e.EMPTY;switch(f(n)){case"function":t=new e(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;(t=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var o=t._parentOrParents;if(null===o)t._parentOrParents=this;else if(o instanceof e){if(o===this)return t;t._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return t;o.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[t]:a.push(t),t},e.prototype.remove=function(e){var n=this._subscriptions;if(n){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function Ie(e){return e.reduce((function(e,n){return e.concat(n instanceof ke?n.errors:n)}),[])}var De=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),Ce=function(e){function n(t,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=Oe;break;case 1:if(!t){a.destination=Oe;break}if("object"===f(t)){t instanceof n?(a.syncErrorThrowable=t.syncErrorThrowable,a.destination=t,t.add(a)):(a.syncErrorThrowable=!0,a.destination=new ze(a,t));break}default:a.syncErrorThrowable=!0,a.destination=new ze(a,t,r,o)}return a}return we(n,e),n.prototype[De]=function(){return this},n.create=function(e,t,r){var o=new n(e,t,r);return o.syncErrorThrowable=!1,o},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(Ne),ze=function(e){function n(n,t,r,o){var a,i=e.call(this)||this;i._parentSubscriber=n;var s=i;return xe(t)?a=t:t&&(a=t.next,r=t.error,o=t.complete,t!==Oe&&(xe((s=Object.create(t)).unsubscribe)&&i.add(s.unsubscribe.bind(s)),s.unsubscribe=i.unsubscribe.bind(i))),i._context=s,i._next=a,i._error=r,i._complete=o,i}return we(n,e),n.prototype.next=function(e){if(!this.isStopped&&this._next){var n=this._parentSubscriber;Se.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},n.prototype.error=function(e){if(!this.isStopped){var n=this._parentSubscriber,t=Se.useDeprecatedSynchronousErrorHandling;if(this._error)t&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)t?(n.syncErrorValue=e,n.syncErrorThrown=!0):Pe(e),this.unsubscribe();else{if(this.unsubscribe(),t)throw e;Pe(e)}}},n.prototype.complete=function(){var e=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var t=function(){return e._complete.call(e._context)};Se.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(e,n){try{e.call(this._context,n)}catch(e){if(this.unsubscribe(),Se.useDeprecatedSynchronousErrorHandling)throw e;Pe(e)}},n.prototype.__tryOrSetError=function(e,n,t){if(!Se.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,t)}catch(n){return Se.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=n,e.syncErrorThrown=!0,!0):(Pe(n),!0)}return!1},n.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},n}(Ce);function Ae(e){return function(n){return n.lift(new Fe(e))}}var Fe=function(){function e(e){this.total=e}return e.prototype.call=function(e,n){return n.subscribe(new Te(e,this.total))},e}(),Te=function(e){function n(n,t){var r=e.call(this,n)||this;return r.total=t,r.count=0,r}return we(n,e),n.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},n}(Ce);function Re(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if("production"!==process.env.NODE_ENV){var o=En[e],a=o?"function"==typeof o?o.apply(null,t):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Me(e){return!!e&&!!e[xn]}function Ye(e){return!!e&&(function(e){if(!e||"object"!=f(e))return!1;var n=Object.getPrototypeOf(e);return!n||n===Object.prototype}(e)||Array.isArray(e)||!!e[wn]||!!e.constructor[wn]||$e(e)||Be(e))}function Ve(e,n,t){void 0===t&&(t=!1),0===qe(e)?(t?Object.keys:Sn)(e).forEach((function(t){return n(t,e[t],e)})):e.forEach((function(t,r){return n(r,t,e)}))}function qe(e){var n=e[xn];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:$e(e)?2:Be(e)?3:0}function He(e,n){return 2===qe(e)?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function Ue(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function $e(e){return mn&&e instanceof Map}function Be(e){return vn&&e instanceof Set}function Le(e){return e.o||e.t}function Ge(e,n){if(void 0===n&&(n=!1),Array.isArray(e))return e.slice();var t=Object.create(Object.getPrototypeOf(e));return Ve(e,(function(r){if(r!==xn){var o=Object.getOwnPropertyDescriptor(e,r),a=o.value;o.get&&(n||Re(1),a=o.get.call(e)),o.enumerable?t[r]=a:Object.defineProperty(t,r,{value:a,writable:!0,configurable:!0})}})),t}function Xe(e,n){Me(e)||Ke(e)||!Ye(e)||(qe(e)>1&&(e.set=e.add=e.clear=e.delete=We),Object.freeze(e),n&&Ve(e,(function(e,n){return Xe(n,!0)}),!0))}function We(){Re(2)}function Ke(e){return null==e||"object"!=f(e)||Object.isFrozen(e)}function Ze(e){var n=Pn[e];return n||Re("production"!==process.env.NODE_ENV?18:19,e),n}function Je(){return"production"===process.env.NODE_ENV||hn||Re(0),hn}function Qe(e,n){n&&(Ze("Patches"),e.u=[],e.s=[],e.v=n)}function en(e){nn(e),e.p.forEach(rn),e.p=null}function nn(e){e===hn&&(hn=e.l)}function tn(e){return hn={p:[],l:hn,h:e,m:!0,_:0}}function rn(e){var n=e[xn];0===n.i||1===n.i?n.j():n.O=!0}function on(e,n){n._=n.p.length;var t=n.p[0],r=void 0!==e&&e!==t;return n.h.g||Ze("ES5").S(n,e,r),r?(t[xn].P&&(en(n),Re(4)),Ye(e)&&(e=an(n,e),n.l||un(n,e)),n.u&&Ze("Patches").M(t[xn],e,n.u,n.s)):e=an(n,t,[]),en(n),n.u&&n.v(n.u,n.s),e!==yn?e:void 0}function an(e,n,t){if(Ke(n))return n;var r=n[xn];if(!r)return Ve(n,(function(o,a){return sn(e,r,n,o,a,t)}),!0),n;if(r.A!==e)return n;if(!r.P)return un(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Ge(r.k,!0):r.o;Ve(o,(function(n,a){return sn(e,r,o,n,a,t)})),un(e,o,!1),t&&e.u&&Ze("Patches").R(r,t,e.u,e.s)}return r.o}function sn(e,n,t,r,o,a){if("production"!==process.env.NODE_ENV&&o===t&&Re(5),Me(o)){var i=an(e,o,a&&n&&3!==n.i&&!He(n.D,r)?a.concat(r):void 0);if(u=r,c=i,2===(l=qe(s=t))?s.set(u,c):3===l?(s.delete(u),s.add(c)):s[u]=c,!Me(i))return;e.m=!1}var s,u,c,l;if((!n||!Ue(o,function(e,n){return 2===qe(e)?e.get(n):e[n]}(n.t,r)))&&Ye(o)){if(!e.h.N&&e._<1)return;an(e,o),n&&n.A.l||un(e,o)}}function un(e,n,t){void 0===t&&(t=!1),e.h.N&&e.m&&Xe(n,t)}function cn(e,n){var t=e[xn],r=Reflect.getOwnPropertyDescriptor(t?Le(t):e,n);return r&&r.value}function ln(e){if(!e.P){if(e.P=!0,0===e.i||1===e.i){var n=e.o=Ge(e.t);Ve(e.p,(function(e,t){n[e]=t})),e.p=void 0}e.l&&ln(e.l)}}function fn(e){e.o||(e.o=Ge(e.t))}function pn(e,n,t){var r=$e(n)?Ze("MapSet").T(n,t):Be(n)?Ze("MapSet").F(n,t):e.g?function(e,n){var t=Array.isArray(e),r={i:t?1:0,A:n?n.A:Je(),P:!1,I:!1,D:{},l:n,t:e,k:null,p:{},o:null,j:null,C:!1},o=r,a=On;t&&(o=[r],a=_n);var i=Proxy.revocable(o,a),s=i.revoke,u=i.proxy;return r.k=u,r.j=s,u}(n,t):Ze("ES5").J(n,t);return(t?t.A:Je()).p.push(r),r}var dn,hn,bn="undefined"!=typeof Symbol&&"symbol"==f(Symbol("x")),mn="undefined"!=typeof Map,vn="undefined"!=typeof Set,gn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,yn=bn?Symbol("immer-nothing"):((dn={})["immer-nothing"]=!0,dn),wn=bn?Symbol("immer-draftable"):"__$immer_draftable",xn=bn?Symbol("immer-state"):"__$immer_state",En={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},19:function(e){return"plugin not loaded: "+e},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available"},Sn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Pn={},On={get:function(e,n){if(n===xn)return e;var t=e.p;if(!e.P&&He(t,n))return t[n];var r=Le(e)[n];if(e.I||!Ye(r))return r;if(e.P){if(r!==cn(e.t,n))return r;t=e.o}return t[n]=pn(e.A.h,r,e)},has:function(e,n){return n in Le(e)},ownKeys:function(e){return Reflect.ownKeys(Le(e))},set:function(e,n,t){if(!e.P){var r=cn(e.t,n);if(t?Ue(r,t)||t===e.p[n]:Ue(r,t)&&n in e.t)return!0;fn(e),ln(e)}return e.D[n]=!0,e.o[n]=t,!0},deleteProperty:function(e,n){return void 0!==cn(e.t,n)||n in e.t?(e.D[n]=!1,fn(e),ln(e)):e.D[n]&&delete e.D[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=Le(e),r=Reflect.getOwnPropertyDescriptor(t,n);return r&&(r.writable=!0,r.configurable=1!==e.i||"length"!==n),r},defineProperty:function(){Re(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Re(12)}},_n={};Ve(On,(function(e,n){_n[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}})),_n.deleteProperty=function(e,n){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(n))&&Re(13),On.deleteProperty.call(this,e[0],n)},_n.set=function(e,n,t){return"production"!==process.env.NODE_ENV&&"length"!==n&&isNaN(parseInt(n))&&Re(14),On.set.call(this,e[0],n,t,e[0])};var jn=new(function(){function e(e){this.g=gn,this.N="production"!==process.env.NODE_ENV,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var n=e.prototype;return n.produce=function(e,n,t){if("function"==typeof e&&"function"!=typeof n){var r=n;n=e;var o=this;return function(e){var t=this;void 0===e&&(e=r);for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return o.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var a;if("function"!=typeof n&&Re(6),void 0!==t&&"function"!=typeof t&&Re(7),Ye(e)){var i=tn(this),s=pn(this,e,void 0),u=!0;try{a=n(s),u=!1}finally{u?en(i):nn(i)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Qe(i,t),on(e,i)}),(function(e){throw en(i),e})):(Qe(i,t),on(a,i))}if((a=n(e))!==yn)return void 0===a&&(a=e),this.N&&Xe(a,!0),a},n.produceWithPatches=function(e,n){var t,r,o=this;return"function"==typeof e?function(n){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return o.produceWithPatches(n,(function(n){return e.apply(void 0,[n].concat(r))}))}:[this.produce(e,n,(function(e,n){t=e,r=n})),t,r]},n.createDraft=function(e){Ye(e)||Re(8);var n=tn(this),t=pn(this,e,void 0);return t[xn].C=!0,nn(n),t},n.finishDraft=function(e,n){var t=e&&e[xn];"production"!==process.env.NODE_ENV&&(t&&t.C||Re(9),t.I&&Re(10));var r=t.A;return Qe(r,n),on(void 0,r)},n.setAutoFreeze=function(e){this.N=e},n.setUseProxies=function(e){gn||Re(20),this.g=e},n.applyPatches=function(e,n){var t;for(t=n.length-1;t>=0;t--){var r=n[t];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=Ze("Patches").U;return Me(e)?o(e,n):this.produce(e,(function(e){return o(e,n.slice(t+1))}))},e}()),kn=jn.produce,Nn=(jn.produceWithPatches.bind(jn),jn.setAutoFreeze.bind(jn),jn.setUseProxies.bind(jn),jn.applyPatches.bind(jn),jn.createDraft.bind(jn),jn.finishDraft.bind(jn),Symbol());var In=Symbol()}}}));
16//# sourceMappingURL=wener-ui.system.min.js.map