diff --git a/package-lock.json b/package-lock.json index ab1bdef..a60a550 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "bulma": "^1.0.2", "concurrently": "^9.0.1", "notiflix": "^3.2.7", - "preact": "^10.23.2", + "preact": "^10.24.2", "react-helmet-async": "^2.0.5", "rollup": "^4.23.0", "rollup-plugin-cleandir": "^3.0.0", @@ -3934,10 +3934,9 @@ } }, "node_modules/preact": { - "version": "10.24.1", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.1.tgz", - "integrity": "sha512-PnBAwFI3Yjxxcxw75n6VId/5TFxNW/81zexzWD9jn1+eSrOP84NdsS38H5IkF/UH3frqRPT+MvuCoVHjTDTnDw==", - "license": "MIT", + "version": "10.24.2", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.2.tgz", + "integrity": "sha512-1cSoF0aCC8uaARATfrlz4VCBqE8LwZwRfLgkxJOQwAlQt6ayTmi0D9OF7nXid1POI5SZidFuG9CnlXbDfLqY/Q==", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" diff --git a/package.json b/package.json index 8c4c42d..93627a3 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "bulma": "^1.0.2", "concurrently": "^9.0.1", "notiflix": "^3.2.7", - "preact": "^10.23.2", + "preact": "^10.24.2", "react-helmet-async": "^2.0.5", "rollup": "^4.23.0", "rollup-plugin-cleandir": "^3.0.0", diff --git a/public/assets/bundle-DtMG0b0j.js b/public/assets/bundle-DtMG0b0j.js new file mode 100644 index 0000000..e9c1d17 --- /dev/null +++ b/public/assets/bundle-DtMG0b0j.js @@ -0,0 +1,2 @@ +var t,e,n,i,o,r,a,s,l,c,u,f={},p=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function _(t,e){for(var n in e)t[n]=e[n];return t}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function y(e,n,i){var o,r,a,s={};for(a in n)"key"==a?o=n[a]:"ref"==a?r=n[a]:s[a]=n[a];if(2n&&i.sort(a));I.__r=0}function N(t,e,n,i,o,r,a,s,l,c,u){var m,d,_,h,y,g=i&&i.__k||p,v=e.length;for(n.__d=l,T(n,e,g),l=n.__d,m=0;ma?f--:f++,o.__u|=65536))):o=t.__k[i]=null;if(u)for(i=0;i(null==l||131072&l.__u?0:1))for(;0<=a||s++B);p.state=p.__s,null!=p.getChildContext&&(o=_(_({},o),p.getChildContext())),k&&!m&&null!=p.getSnapshotBeforeUpdate&&(g=p.getSnapshotBeforeUpdate(h,y)),N(t,d(A=null!=f&&f.type===v&&null==f.key?f.props.children:f)?A:[A],n,i,o,r,a,s,l,c,u),p.base=n.__e,n.__u&=-161,p.__h.length&&s.push(p),x&&(p.__E=p.__=null)}catch(t){if(n.__v=null,c||null!=a){for(n.__u|=c?160:32;l&&8===l.nodeType&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,n.__e=l}else n.__e=i.__e,n.__k=i.__k;e.__e(t,n,i)}else null==a&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=M(i.__e,n,i,o,r,a,s,c,u);(f=e.diffed)&&f(n)}function U(t,n,i){n.__d=void 0;for(var o=0;o=n.__.length&&n.__.push({}),n.__[t]}function nt(t){return q=1,it(vt,t)}function it(t,e,n){var i=et(H++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):vt(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=R,!R.u)){var o=function(t,e,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!r||r.call(this,t,e,n);var a=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),(a||i.__c.props!==t)&&(!r||r.call(this,t,e,n))};R.u=!0;var r=R.shouldComponentUpdate,a=R.componentWillUpdate;R.componentWillUpdate=function(t,e,n){if(this.__e){var i=r;r=void 0,o(t,e,n),r=i}a&&a.call(this,t,e,n)},R.shouldComponentUpdate=o}return i.__N||i.__}function ot(t,e){var n=et(H++,3);!Y.__s&>(n.__H,e)&&(n.__=t,n.i=e,R.__H.__h.push(n))}function rt(t,e){var n=et(H++,4);!Y.__s&>(n.__H,e)&&(n.__=t,n.i=e,R.__h.push(n))}function at(t){return q=5,lt((function(){return{current:t}}),[])}function st(t,e,n){q=6,rt((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function lt(t,e){var n=et(H++,7);return gt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function ct(t,e){return q=8,lt((function(){return t}),e)}function ut(t){var e=R.context[t.__c],n=et(H++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(R)),e.props.value):t.__}function ft(t,e){Y.useDebugValue&&Y.useDebugValue(e?e(t):t)}function pt(){var t=et(H++,11);if(!t.__){for(var e=R.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function mt(){for(var t;t=J.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ht),t.__H.__h.forEach(yt),t.__H.__h=[]}catch(e){t.__H.__h=[],Y.__e(e,t.__v)}}Y.__b=function(t){R=null,Q&&Q(t)},Y.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),tt&&tt(t,e)},Y.__r=function(t){G&&G(t),H=0;var e=(R=t.__c).__H;e&&(F===R?(e.__h=[],R.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0}))):(e.__h.forEach(ht),e.__h.forEach(yt),e.__h=[],H=0)),F=R},Y.diffed=function(t){K&&K(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==J.push(e)&&V===Y.requestAnimationFrame||((V=Y.requestAnimationFrame)||_t)(mt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.i=void 0}))),F=R=null},Y.__c=function(t,e){e.some((function(t){try{t.__h.forEach(ht),t.__h=t.__h.filter((function(t){return!t.__||yt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],Y.__e(n,t.__v)}})),Z&&Z(t,e)},Y.unmount=function(t){X&&X(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{ht(t)}catch(t){e=t}})),n.__H=void 0,e&&Y.__e(e,n.__v))};var dt="function"==typeof requestAnimationFrame;function _t(t){var e,n=function(){clearTimeout(i),dt&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);dt&&(e=requestAnimationFrame(n))}function ht(t){var e=R,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),R=e}function yt(t){var e=R;t.__c=t.__(),R=e}function gt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function vt(t,e){return"function"==typeof e?e(t):e}function bt(t,e){for(var n in t)if("__source"!=n&&!(n in e))return!0;for(var i in e)if("__source"!=i&&t[i]!==e[i])return!0;return!1}function xt(t,e){this.props=t,this.context=e}(xt.prototype=new b).isPureReactComponent=!0,xt.prototype.shouldComponentUpdate=function(t,e){return bt(this.props,t)||bt(this.state,e)};var wt=e.__b;e.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),wt&&wt(t)};var kt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function It(t){function e(e){if(!("ref"in e))return t(e,null);var n=e.ref;delete e.ref;var i=t(e,n);return e.ref=n,i}return e.$$typeof=kt,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Nt=function(t,e){return null==t?null:E(E(t).map(e))},Tt={map:Nt,forEach:Nt,count:function(t){return t?E(t).length:0},only:function(t){var e=E(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:E},Ct=e.__e;e.__e=function(t,e,n,i){if(t.then)for(var o,r=e;r=r.__;)if((o=r.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);Ct(t,e,n,i)};var Et=e.unmount;function Bt(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=function(t,e){for(var n in e)t[n]=e[n];return t}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return Bt(t,e,n)}))),t}function St(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return St(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function At(){this.__u=0,this.t=null,this.__b=null}function Ot(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Dt(){this.u=null,this.o=null}e.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Et&&Et(t)},(At.prototype=new b).__c=function(t,e){var n=e.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var o=Ot(i.__v),r=!1,a=function(){r||(r=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --i.__u){if(i.state.__a){var t=i.state.__a;i.__v.__k[0]=St(t,t.__c.__P,t.__c.__O)}var e;for(i.setState({__a:i.__b=null});e=i.t.pop();)e.forceUpdate()}};i.__u++||32&e.__u||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(a,a)},At.prototype.componentWillUnmount=function(){this.t=[]},At.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Bt(this.__b,n,i.__O=i.__P)}this.__b=null}var o=e.__a&&y(v,null,t.fallback);return o&&(o.__u&=-33),[y(v,null,e.__a?null:t.children),o]};var Ut=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;3>>1,1),e.i.removeChild(t)}}),$(y(Mt,{context:e.context},t.__v),e.l)}(Dt.prototype=new b).__a=function(t){var e=this,n=Ot(e.__v),i=e.o.get(t);return i[0]++,function(o){var r=function(){e.props.revealOrder?(i.push(o),Ut(e,t,i)):o()};n?n(r):r()}},Dt.prototype.render=function(t){this.u=null,this.o=new Map;var e=E(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Dt.prototype.componentDidUpdate=Dt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Ut(t,n,e)}))};var jt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,zt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$t=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Lt=/[A-Z0-9]/g,Wt="undefined"!=typeof document,Ht=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(b.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var Rt=e.event;function Ft(){}function Vt(){return this.cancelBubble}function qt(){return this.defaultPrevented}e.event=function(t){return Rt&&(t=Rt(t)),t.persist=Ft,t.isPropagationStopped=Vt,t.isDefaultPrevented=qt,t.nativeEvent=t};var Jt,Yt={enumerable:!1,configurable:!0,get:function(){return this.class}},Qt=e.vnode;e.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={},o=-1===n.indexOf("-");for(var r in e){var a=e[r];if(!("value"===r&&"defaultValue"in e&&null==a||Wt&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var s=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?r="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Ht(e.type)?"onfocus"===s?r="onfocusin":"onblur"===s?r="onfocusout":$t.test(r)&&(r=s):s=r="oninput":o&&zt.test(r)?r=r.replace(Lt,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&i[r=s]&&(r="oninputCapture"),i[r]=a}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=E(e.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=E(e.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",Yt)):(e.className&&!e.class||e.class&&e.className)&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=jt,Qt&&Qt(t)};var Gt=e.__r;e.__r=function(t){Gt&&Gt(t),Jt=t.__c};var Kt=e.diffed;e.diffed=function(t){Kt&&Kt(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),Jt=null};var Zt={ReactCurrentDispatcher:{current:{readContext:function(t){return Jt.__n[t.__c].props.value},useCallback:ct,useContext:ut,useDebugValue:ft,useDeferredValue:ee,useEffect:ot,useId:pt,useImperativeHandle:st,useInsertionEffect:void 0,useLayoutEffect:rt,useMemo:lt,useReducer:it,useRef:at,useState:nt,useSyncExternalStore:ie,useTransition:ne}}};function Xt(t){return!!t&&t.$$typeof===jt}function te(t){t()}function ee(t){return t}function ne(){return[!1,te]}function ie(t,e){var n=e(),i=nt({h:{__:n,v:e}}),o=i[0].h,r=i[1];return rt((function(){o.__=n,o.v=e,oe(o)&&r({h:o})}),[t,n,e]),ot((function(){return oe(o)&&r({h:o}),t((function(){oe(o)&&r({h:o})}))}),[t]),n}function oe(t){var e,n,i=t.v,o=t.__;try{var r=i();return((e=o)!==(n=r)||0===e&&1/e!=1/n)&&(e==e||n==n)}catch(t){return!0}}var re={useState:nt,useId:pt,useReducer:it,useEffect:ot,useLayoutEffect:rt,useInsertionEffect:rt,useTransition:ne,useDeferredValue:ee,useSyncExternalStore:ie,startTransition:te,useRef:at,useImperativeHandle:st,useMemo:lt,useCallback:ct,useContext:ut,useDebugValue:ft,version:"18.3.1",Children:Tt,render:function(t,e,n){return null==e.__k&&(e.textContent=""),$(t,e),"function"==typeof n&&n(),t?t.__c:null},hydrate:function(t,e,n){return L(t,e),"function"==typeof n&&n(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&($(null,t),!0)},createPortal:function(t,e){var n=y(Pt,{__v:t,i:e});return n.containerInfo=e,n},createElement:y,createContext:function(t,e){var n={__c:e="__cC"+u++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,k(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(t){return y.bind(null,t)},cloneElement:function(t){return Xt(t)?W.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:v,isValidElement:Xt,isElement:Xt,isFragment:function(t){return Xt(t)&&t.type===v},isMemo:function(t){return!!t&&!!t.displayName&&("string"==typeof t.displayName||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")},findDOMNode:function(t){return t&&(t.base||1===t.nodeType&&t)||null},Component:b,PureComponent:xt,memo:function(t,e){function n(t){var n=this.props.ref,i=n==t.ref;return!i&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!i:bt(this.props,t)}function i(e){return this.shouldComponentUpdate=n,y(t,e)}return i.displayName="Memo("+(t.displayName||t.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i},forwardRef:It,flushSync:function(t,e){return t(e)},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:v,Suspense:At,SuspenseList:Dt,lazy:function(t){function e(e){if(n||(n=t()).then((function(t){i=t.default||t}),(function(t){o=t})),o)throw o;if(!i)throw n;return y(i,e)}var n,i,o;return e.displayName="Lazy",e.__f=!0,e},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zt};function ae(t){return 32===t.length?t.slice(0,8)+"-"+t.slice(8,12)+"-"+t.slice(12,16)+"-"+t.slice(16,20)+"-"+t.slice(20,32):t}const se=/[^a-z0-9]/g,le=/.{1,2}/g;function ce(t){const e=function(t){const e=t.toLowerCase().replaceAll(se,"");return 32===e.length?e:null}(t);return null===e?null:e.match(le).map((t=>parseInt(t,16)))}function ue(t){return ae(t.map((t=>t.toString(16).padStart(2,"0"))).join(""))}function fe(t){const e=atob(t).split("").map((t=>t.charCodeAt(0)));return ue(e)}const pe=/"?([a-zA-Z0-9]*)"?:/g,me=/^(-?\d+)[;:,](-?\d+)$/,de=/["']?(-?\d+)["']?/g;function _e(t){if("["===t[0])return JSON.parse(t.replace(de,"$1"));if(t.match(me)){const e=t.replace(me,"$1;$2").split(";");return{high:e[0].toString(),low:e[1].toString()}}const e=JSON.parse(t.replace(de,'"$1"').replace(pe,'"$1":'));return{high:e.high,low:e.low}}function he(t){try{return Array.isArray(_e(t))?8:2}catch(t){}try{if(36===fe(t).length)return 4}catch(t){}return 1}function ye(t,e){return ue([BigInt(t)&BigInt(255),BigInt(t)>>BigInt(8)&BigInt(255),BigInt(t)>>BigInt(16)&BigInt(255),BigInt(t)>>BigInt(24)&BigInt(255),BigInt(t)>>BigInt(32)&BigInt(255),BigInt(t)>>BigInt(40)&BigInt(255),BigInt(t)>>BigInt(48)&BigInt(255),BigInt(t)>>BigInt(56)&BigInt(255),BigInt(e)&BigInt(255),BigInt(e)>>BigInt(8)&BigInt(255),BigInt(e)>>BigInt(16)&BigInt(255),BigInt(e)>>BigInt(24)&BigInt(255),BigInt(e)>>BigInt(32)&BigInt(255),BigInt(e)>>BigInt(40)&BigInt(255),BigInt(e)>>BigInt(48)&BigInt(255),BigInt(e)>>BigInt(56)&BigInt(255)])}function ge(t,e){return ue([BigInt(t)>>BigInt(56)&BigInt(255),BigInt(t)>>BigInt(48)&BigInt(255),BigInt(t)>>BigInt(40)&BigInt(255),BigInt(t)>>BigInt(32)&BigInt(255),BigInt(t)>>BigInt(24)&BigInt(255),BigInt(t)>>BigInt(16)&BigInt(255),BigInt(t)>>BigInt(8)&BigInt(255),BigInt(t)&BigInt(255),BigInt(e)>>BigInt(56)&BigInt(255),BigInt(e)>>BigInt(48)&BigInt(255),BigInt(e)>>BigInt(40)&BigInt(255),BigInt(e)>>BigInt(32)&BigInt(255),BigInt(e)>>BigInt(24)&BigInt(255),BigInt(e)>>BigInt(16)&BigInt(255),BigInt(e)>>BigInt(8)&BigInt(255),BigInt(e)&BigInt(255)])}var ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function be(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xe,we={exports:{}},ke=we.exports;var Ie=(xe||(xe=1,function(t){!function(e){t.exports=function(t){if(void 0===t&&void 0===t.document)return!1;var e,n={Success:"Success",Failure:"Failure",Warning:"Warning",Info:"Info"},i={wrapID:"NotiflixNotifyWrap",overlayID:"NotiflixNotifyOverlay",width:"280px",position:"right-top",distance:"10px",opacity:1,borderRadius:"5px",rtl:!1,timeout:3e3,messageMaxLength:110,backOverlay:!1,backOverlayColor:"rgba(0,0,0,0.5)",plainText:!0,showOnlyTheLastOne:!1,clickToClose:!1,pauseOnHover:!0,ID:"NotiflixNotify",className:"notiflix-notify",zindex:4001,fontFamily:"Quicksand",fontSize:"13px",cssAnimation:!0,cssAnimationDuration:400,cssAnimationStyle:"fade",closeButton:!1,useIcon:!0,useFontAwesome:!1,fontAwesomeIconStyle:"basic",fontAwesomeIconSize:"34px",success:{background:"#32c682",textColor:"#fff",childClassName:"notiflix-notify-success",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-check-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(50,198,130,0.2)"},failure:{background:"#ff5549",textColor:"#fff",childClassName:"notiflix-notify-failure",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-times-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(255,85,73,0.2)"},warning:{background:"#eebf31",textColor:"#fff",childClassName:"notiflix-notify-warning",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-exclamation-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(238,191,49,0.2)"},info:{background:"#26c0d3",textColor:"#fff",childClassName:"notiflix-notify-info",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-info-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(38,192,211,0.2)"}},o=function(t){return console.error("%c Notiflix Error ","padding:2px;border-radius:20px;color:#fff;background:#ff5549","\n"+t+"\n\nVisit documentation page to learn more: https://notiflix.github.io/documentation")},r=function(e){return e||(e="head"),null!==t.document[e]||(o('\nNotiflix needs to be appended to the "<'+e+'>" element, but you called it before the "<'+e+'>" element has been created.'),!1)},a=function(e,n){if(!r("head"))return!1;if(null!==e()&&!t.document.getElementById(n)){var i=t.document.createElement("style");i.id=n,i.innerHTML=e(),t.document.head.appendChild(i)}},s=function(){var t={},e=!1,n=0;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);for(var i=function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=e&&"[object Object]"===Object.prototype.toString.call(n[i])?s(t[i],n[i]):n[i])};ndiv{pointer-events:all;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:"Quicksand",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative;margin:0 0 10px;border-radius:5px;background:#1e1e1e;color:#fff;padding:10px 12px;font-size:14px;line-height:1.4}[id^=NotiflixNotifyWrap]>div:last-child{margin:0}[id^=NotiflixNotifyWrap]>div.nx-with-callback{cursor:pointer}[id^=NotiflixNotifyWrap]>div.nx-with-icon{padding:8px;min-height:56px}[id^=NotiflixNotifyWrap]>div.nx-paused{cursor:auto}[id^=NotiflixNotifyWrap]>div.nx-notify-click-to-close{cursor:pointer}[id^=NotiflixNotifyWrap]>div.nx-with-close-button{padding:10px 36px 10px 12px}[id^=NotiflixNotifyWrap]>div.nx-with-icon.nx-with-close-button{padding:6px 36px 6px 6px}[id^=NotiflixNotifyWrap]>div>span.nx-message{cursor:inherit;font-weight:normal;font-family:inherit!important;word-break:break-all;word-break:break-word}[id^=NotiflixNotifyWrap]>div>span.nx-close-button{cursor:pointer;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;position:absolute;right:8px;top:0;bottom:0;margin:auto;color:inherit;width:20px;height:20px}[id^=NotiflixNotifyWrap]>div>span.nx-close-button:hover{-webkit-transform:rotate(90deg);transform:rotate(90deg)}[id^=NotiflixNotifyWrap]>div>span.nx-close-button>svg{position:absolute;width:16px;height:16px;right:2px;top:2px}[id^=NotiflixNotifyWrap]>div>.nx-message-icon{position:absolute;width:40px;height:40px;font-size:30px;line-height:40px;text-align:center;left:8px;top:0;bottom:0;margin:auto;border-radius:inherit}[id^=NotiflixNotifyWrap]>div>.nx-message-icon-fa.nx-message-icon-fa-shadow{color:inherit;background:rgba(0,0,0,.15);-webkit-box-shadow:inset 0 0 34px rgba(0,0,0,.2);box-shadow:inset 0 0 34px rgba(0,0,0,.2);text-shadow:0 0 10px rgba(0,0,0,.3)}[id^=NotiflixNotifyWrap]>div>span.nx-with-icon{position:relative;float:left;width:calc(100% - 40px);margin:0 0 0 40px;padding:0 0 0 10px;-webkit-box-sizing:border-box;box-sizing:border-box}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>.nx-message-icon{left:auto;right:8px}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>span.nx-with-icon{padding:0 10px 0 0;margin:0 40px 0 0}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>span.nx-close-button{right:auto;left:8px}[id^=NotiflixNotifyWrap]>div.nx-with-icon.nx-with-close-button.nx-rtl-on{padding:6px 6px 6px 36px}[id^=NotiflixNotifyWrap]>div.nx-with-close-button.nx-rtl-on{padding:10px 12px 10px 36px}[id^=NotiflixNotifyOverlay].nx-with-animation,[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-fade{-webkit-animation:notify-animation-fade .3s ease-in-out 0s normal;animation:notify-animation-fade .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-fade{0%{opacity:0}100%{opacity:1}}@keyframes notify-animation-fade{0%{opacity:0}100%{opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-zoom{-webkit-animation:notify-animation-zoom .3s ease-in-out 0s normal;animation:notify-animation-zoom .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-zoom{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes notify-animation-zoom{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(1);transform:scale(1)}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-right{-webkit-animation:notify-animation-from-right .3s ease-in-out 0s normal;animation:notify-animation-from-right .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-right{0%{right:-300px;opacity:0}50%{right:8px;opacity:1}100%{right:0;opacity:1}}@keyframes notify-animation-from-right{0%{right:-300px;opacity:0}50%{right:8px;opacity:1}100%{right:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-left{-webkit-animation:notify-animation-from-left .3s ease-in-out 0s normal;animation:notify-animation-from-left .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-left{0%{left:-300px;opacity:0}50%{left:8px;opacity:1}100%{left:0;opacity:1}}@keyframes notify-animation-from-left{0%{left:-300px;opacity:0}50%{left:8px;opacity:1}100%{left:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-top{-webkit-animation:notify-animation-from-top .3s ease-in-out 0s normal;animation:notify-animation-from-top .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-top{0%{top:-50px;opacity:0}50%{top:8px;opacity:1}100%{top:0;opacity:1}}@keyframes notify-animation-from-top{0%{top:-50px;opacity:0}50%{top:8px;opacity:1}100%{top:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-bottom{-webkit-animation:notify-animation-from-bottom .3s ease-in-out 0s normal;animation:notify-animation-from-bottom .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-bottom{0%{bottom:-50px;opacity:0}50%{bottom:8px;opacity:1}100%{bottom:0;opacity:1}}@keyframes notify-animation-from-bottom{0%{bottom:-50px;opacity:0}50%{bottom:8px;opacity:1}100%{bottom:0;opacity:1}}[id^=NotiflixNotifyOverlay].nx-with-animation.nx-remove,[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-fade.nx-remove{opacity:0;-webkit-animation:notify-remove-fade .3s ease-in-out 0s normal;animation:notify-remove-fade .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-fade{0%{opacity:1}100%{opacity:0}}@keyframes notify-remove-fade{0%{opacity:1}100%{opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-zoom.nx-remove{-webkit-transform:scale(0);transform:scale(0);-webkit-animation:notify-remove-zoom .3s ease-in-out 0s normal;animation:notify-remove-zoom .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(0);transform:scale(0)}}@keyframes notify-remove-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(0);transform:scale(0)}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-top.nx-remove{opacity:0;-webkit-animation:notify-remove-to-top .3s ease-in-out 0s normal;animation:notify-remove-to-top .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-top{0%{top:0;opacity:1}50%{top:8px;opacity:1}100%{top:-50px;opacity:0}}@keyframes notify-remove-to-top{0%{top:0;opacity:1}50%{top:8px;opacity:1}100%{top:-50px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-right.nx-remove{opacity:0;-webkit-animation:notify-remove-to-right .3s ease-in-out 0s normal;animation:notify-remove-to-right .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-right{0%{right:0;opacity:1}50%{right:8px;opacity:1}100%{right:-300px;opacity:0}}@keyframes notify-remove-to-right{0%{right:0;opacity:1}50%{right:8px;opacity:1}100%{right:-300px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-bottom.nx-remove{opacity:0;-webkit-animation:notify-remove-to-bottom .3s ease-in-out 0s normal;animation:notify-remove-to-bottom .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-bottom{0%{bottom:0;opacity:1}50%{bottom:8px;opacity:1}100%{bottom:-50px;opacity:0}}@keyframes notify-remove-to-bottom{0%{bottom:0;opacity:1}50%{bottom:8px;opacity:1}100%{bottom:-50px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-left.nx-remove{opacity:0;-webkit-animation:notify-remove-to-left .3s ease-in-out 0s normal;animation:notify-remove-to-left .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-left{0%{left:0;opacity:1}50%{left:8px;opacity:1}100%{left:-300px;opacity:0}}@keyframes notify-remove-to-left{0%{left:0;opacity:1}50%{left:8px;opacity:1}100%{left:-300px;opacity:0}}'},u=0,f=function(o,a,c,f){if(!r("body"))return!1;e||p.Notify.init({});var m=s(!0,e,{});if("object"==typeof c&&!Array.isArray(c)||"object"==typeof f&&!Array.isArray(f)){var d={};"object"==typeof c?d=c:"object"==typeof f&&(d=f),e=s(!0,e,d)}var _=e[o.toLocaleLowerCase("en")];u++,"string"!=typeof a&&(a="Notiflix "+o),e.plainText&&(a=l(a)),!e.plainText&&a.length>e.messageMaxLength&&(e=s(!0,e,{closeButton:!0,messageMaxLength:150}),a='Possible HTML Tags Error: The "plainText" option is "false" and the notification content length is more than the "messageMaxLength" option.'),a.length>e.messageMaxLength&&(a=a.substring(0,e.messageMaxLength)+"..."),"shadow"===e.fontAwesomeIconStyle&&(_.fontAwesomeIconColor=_.background),e.cssAnimation||(e.cssAnimationDuration=0);var h=t.document.getElementById(i.wrapID)||t.document.createElement("div");if(h.id=i.wrapID,h.style.width=e.width,h.style.zIndex=e.zindex,h.style.opacity=e.opacity,"center-center"===e.position?(h.style.left=e.distance,h.style.top=e.distance,h.style.right=e.distance,h.style.bottom=e.distance,h.style.margin="auto",h.classList.add("nx-flex-center-center"),h.style.maxHeight="calc((100vh - "+e.distance+") - "+e.distance+")",h.style.display="flex",h.style.flexWrap="wrap",h.style.flexDirection="column",h.style.justifyContent="center",h.style.alignItems="center",h.style.pointerEvents="none"):"center-top"===e.position?(h.style.left=e.distance,h.style.right=e.distance,h.style.top=e.distance,h.style.bottom="auto",h.style.margin="auto"):"center-bottom"===e.position?(h.style.left=e.distance,h.style.right=e.distance,h.style.bottom=e.distance,h.style.top="auto",h.style.margin="auto"):"right-bottom"===e.position?(h.style.right=e.distance,h.style.bottom=e.distance,h.style.top="auto",h.style.left="auto"):"left-top"===e.position?(h.style.left=e.distance,h.style.top=e.distance,h.style.right="auto",h.style.bottom="auto"):"left-bottom"===e.position?(h.style.left=e.distance,h.style.bottom=e.distance,h.style.top="auto",h.style.right="auto"):(h.style.right=e.distance,h.style.top=e.distance,h.style.left="auto",h.style.bottom="auto"),e.backOverlay){var y=t.document.getElementById(i.overlayID)||t.document.createElement("div");y.id=i.overlayID,y.style.width="100%",y.style.height="100%",y.style.position="fixed",y.style.zIndex=e.zindex-1,y.style.left=0,y.style.top=0,y.style.right=0,y.style.bottom=0,y.style.background=_.backOverlayColor||e.backOverlayColor,y.className=e.cssAnimation?"nx-with-animation":"",y.style.animationDuration=e.cssAnimation?e.cssAnimationDuration+"ms":"",t.document.getElementById(i.overlayID)||t.document.body.appendChild(y)}t.document.getElementById(i.wrapID)||t.document.body.appendChild(h);var g=t.document.createElement("div");g.id=e.ID+"-"+u,g.className=e.className+" "+_.childClassName+" "+(e.cssAnimation?"nx-with-animation":"")+" "+(e.useIcon?"nx-with-icon":"")+" nx-"+e.cssAnimationStyle+" "+(e.closeButton&&"function"!=typeof c?"nx-with-close-button":"")+" "+("function"==typeof c?"nx-with-callback":"")+" "+(e.clickToClose?"nx-notify-click-to-close":""),g.style.fontSize=e.fontSize,g.style.color=_.textColor,g.style.background=_.background,g.style.borderRadius=e.borderRadius,g.style.pointerEvents="all",e.rtl&&(g.setAttribute("dir","rtl"),g.classList.add("nx-rtl-on")),g.style.fontFamily='"'+e.fontFamily+'", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',e.cssAnimation&&(g.style.animationDuration=e.cssAnimationDuration+"ms");var v="";if(e.closeButton&&"function"!=typeof c&&(v=''),e.useIcon)if(e.useFontAwesome)g.innerHTML=''+a+""+(e.closeButton?v:"");else{var b="";o===n.Success?b='':o===n.Failure?b='':o===n.Warning?b='':o===n.Info&&(b=''),g.innerHTML=b+''+a+""+(e.closeButton?v:"")}else g.innerHTML=''+a+""+(e.closeButton?v:"");if("left-bottom"===e.position||"right-bottom"===e.position){var x=t.document.getElementById(i.wrapID);x.insertBefore(g,x.firstChild)}else t.document.getElementById(i.wrapID).appendChild(g);var w=t.document.getElementById(g.id);if(w){var k,I,N=function(){w.classList.add("nx-remove");var e=t.document.getElementById(i.overlayID);e&&0>=h.childElementCount&&e.classList.add("nx-remove"),clearTimeout(k)},T=function(){if(w&&null!==w.parentNode&&w.parentNode.removeChild(w),0>=h.childElementCount&&null!==h.parentNode){h.parentNode.removeChild(h);var e=t.document.getElementById(i.overlayID);e&&null!==e.parentNode&&e.parentNode.removeChild(e)}clearTimeout(I)};if(e.closeButton&&"function"!=typeof c&&t.document.getElementById(g.id).querySelector("span.nx-close-button").addEventListener("click",(function(){N();var t=setTimeout((function(){T(),clearTimeout(t)}),e.cssAnimationDuration)})),("function"==typeof c||e.clickToClose)&&w.addEventListener("click",(function(){"function"==typeof c&&c(),N();var t=setTimeout((function(){T(),clearTimeout(t)}),e.cssAnimationDuration)})),!e.closeButton&&"function"!=typeof c){var C=function(){k=setTimeout((function(){N()}),e.timeout),I=setTimeout((function(){T()}),e.timeout+e.cssAnimationDuration)};C(),e.pauseOnHover&&(w.addEventListener("mouseenter",(function(){w.classList.add("nx-paused"),clearTimeout(k),clearTimeout(I)})),w.addEventListener("mouseleave",(function(){w.classList.remove("nx-paused"),C()})))}}if(e.showOnlyTheLastOne&&0{const e=t.target.value;this.setState({text:e}),"\n"!==e[e.length-1]||this.handle(e)};handle=t=>{const e=t.split("\n").map((t=>t.replace(Ne,"").trim())).filter((t=>0{let e=new Map;for(const n of t.reverse()){const t=this.newItem(n);null!==t&&e.set(t.toString(),t)}for(const t of this.props.items)e.has(t.toString())||e.set(t.toString(),t);this.props.setItems([...e.values()])};newItem=t=>{try{const{input:e,comment:n}=this.parse(t),i=this.castToUuid(e),o=this.castFromUuid(i),r=this.normalize(e);if(null===r)return Ie.Notify.failure("Failed to process string: "+t),null;const a=this.normalize(o);return r===a?(Ie.Notify.warning("The result of the conversion matches the entered value: "+t),null):new Ce(r,a,n)}catch(t){return null}};parse=t=>{let e=t.split("//").map((t=>t.trim().replace(/,$/g,"").trimRight()));return 1{switch(he(t)){case 8:return JSON.stringify(_e(t)).replace(/,$/g,"");case 2:return JSON.stringify(_e(t)).replace(/,$/g,"").replace(Te,"$1");case 4:return btoa(atob(t))}"{"===t[0]&&"}"===t[t.length-1]&&(t=t.substring(1,t.length-1));const e=ae(t);return 36===e.length?e:null};castToUuid=t=>{const{intType:e}=this.state;switch(he(t)){case 8:return ue(_e(t));case 2:const n=_e(t);return(1===e?ye:ge)(n.high,n.low);case 4:return fe(t)}return t};castFromUuid=t=>{const{resultType:e,intType:n}=this.state;switch(e){case 8:return function(t){const e=ce(t);return null===e?null:JSON.stringify(e)}(t);case 2:const e=1===n?function(t){const e=ce(t).map((t=>BigInt(t)));if(null===e)return null;const n=BigInt(e[0]|e[1]<BigInt(t)));if(null===e)return null;const n=BigInt(e[7]|e[6]<{const{text:e}=this.state;await this.setState({resultType:t}),await this.handle(e)};setIntType=async t=>{const{text:e}=this.state;await this.setState({intType:t}),await this.handle(e)};render({items:t},{resultType:e,intType:n}){const[i,o]=re.useState(JSON.parse(localStorage.getItem("informerClosed"))||!1);return re.useEffect((()=>{localStorage.setItem("informerClosed",JSON.stringify(i))}),[i]),re.createElement("div",null,re.createElement("div",{className:"notification is-info",style:{display:i?"none":"block"}},re.createElement("button",{className:"delete",onClick:()=>o(!0)}),'The project is provided "as is". Project revisions will only be made when absolutely necessary.'),re.createElement("label",null,re.createElement("textarea",{className:"textarea",onChange:this.onKeyboardInput,placeholder:"Enter UUID. Input examples:\n0;0\n{low: 0, high: 1}\n71a46cec-4809-4cc5-9689-5b0441b46186\nhuW65O9YQDGzT16f+RTNVQ==\n0;1 // comment\nhuW65O9YQDGzT16f+RTNVQ== //comment new\n",rows:"10"})),re.createElement("div",{className:"container margin-top"},re.createElement("div",{className:"box"},re.createElement("label",null,"Select result type:"),re.createElement("div",{className:"radios"},function(){const t=[];return t[1]="uuid",t[4]="base64",t[2]="high-low",t[8]="bytes",t}().map(((t,n)=>re.createElement("label",{className:"b-radio radio"},re.createElement("input",{type:"radio",name:"rtype",checked:e===n,onChange:()=>this.setResultType(n)}),re.createElement("span",{class:"check is-link"}),re.createElement("span",{class:"control-label"},t))))))),re.createElement("div",{className:"container margin-top"},re.createElement("div",{className:"box"},re.createElement("label",null,"Integer type:"),re.createElement("div",{className:"radios"},function(){const t=[];return t[1]="signed",t[2]="unsigned",t}().map(((t,e)=>re.createElement("label",{className:"b-radio radio"},re.createElement("input",{type:"radio",name:"itype",checked:n===e,onChange:()=>this.setIntType(e)}),re.createElement("span",{class:"check is-info"}),re.createElement("span",{class:"control-label"},t))))))))}}class Be extends re.Component{constructor(t){super(t)}copy=t=>{const e=t.target.innerText;navigator.clipboard.writeText(e).then((()=>{Ie.Notify.success("Text "+e+" copied")})).catch((t=>{Ie.Notify.failure("Error copying text: "+t)}))};render(){const{items:t,clearItems:e,isToggled:n}=this.props;return re.createElement("nav",{className:n?"panel is-dark":"panel is-light"},re.createElement("p",{className:"panel-heading"},"History"),re.createElement("div",{className:0===t.length?"panel-block is-hidden":"panel-block"},re.createElement("button",{onClick:e,className:"button is-danger is-outlined is-fullwidth is-small"},"Clear the history")),[...t].slice(0,30).map((t=>re.createElement("div",{key:t.toString(),className:"panel-block"},re.createElement("div",{className:"field"},re.createElement("div",{className:"tags"},re.createElement("a",{href:"javascript:",onClick:this.copy,className:"tag is-link is-light","data-tooltip":t.info},t.output)),re.createElement("div",{className:"tags"},re.createElement("a",{href:"javascript:",onClick:this.copy,className:"tag is-primary is-light","data-tooltip":t.info},t.input)))))))}}var Se,Ae,Oe=It(((t,e)=>{let{onToggle:n,toggled:i,toggle:o,duration:r=500,reversed:a=!1,title:s="Toggle theme",forceMotion:l=!1,idPrefix:c="",type:u="button",style:f,"aria-label":p="Toggle theme",className:m,children:d,..._}=t,[h,y]=nt(!1),g=void 0===i?h:i,v=`theme-toggle ${g?"theme-toggle--toggled":""} ${l?"theme-toggle--force-motion":""} ${a?"theme-toggle--reversed":""} ${m||""}`.trim(),b={...f,"--theme-toggle__expand--duration":`${r}ms`};return re.createElement("button",{ref:e,type:u,className:v,style:b,"aria-label":p,title:s,onClick:()=>{let t=!g;(o||y)(t),n&&n(t)},..._},d,re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",fill:"currentColor",className:"theme-toggle__expand",viewBox:"0 0 32 32"},re.createElement("clipPath",{id:`${c}theme-toggle__expand__cutout`},re.createElement("path",{d:"M0-11h25a1 1 0 0017 13v30H0Z"})),re.createElement("g",{clipPath:`url(#${c}theme-toggle__expand__cutout)`},re.createElement("circle",{cx:16,cy:16,r:8.4}),re.createElement("path",{d:"M18.3 3.2c0 1.3-1 2.3-2.3 2.3s-2.3-1-2.3-2.3S14.7.9 16 .9s2.3 1 2.3 2.3zm-4.6 25.6c0-1.3 1-2.3 2.3-2.3s2.3 1 2.3 2.3-1 2.3-2.3 2.3-2.3-1-2.3-2.3zm15.1-10.5c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3 2.3-1 2.3-2.3 2.3zM3.2 13.7c1.3 0 2.3 1 2.3 2.3s-1 2.3-2.3 2.3S.9 17.3.9 16s1-2.3 2.3-2.3zm5.8-7C9 7.9 7.9 9 6.7 9S4.4 8 4.4 6.7s1-2.3 2.3-2.3S9 5.4 9 6.7zm16.3 21c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3 2.3-1 2.3-2.3 2.3zm2.4-21c0 1.3-1 2.3-2.3 2.3S23 7.9 23 6.7s1-2.3 2.3-2.3 2.4 1 2.4 2.3zM6.7 23C8 23 9 24 9 25.3s-1 2.3-2.3 2.3-2.3-1-2.3-2.3 1-2.3 2.3-2.3z"}))))})),De=Oe;var Ue,Me,Pe=function(){function t(r,a){if(r===a)return!0;if(r&&a&&"object"==typeof r&&"object"==typeof a){if(r.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(r)){if((s=r.length)!=a.length)return!1;for(l=s;0!=l--;)if(!t(r[l],a[l]))return!1;return!0}if(n&&r instanceof Map&&a instanceof Map){if(r.size!==a.size)return!1;for(u=r.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=r.entries();!(l=u.next()).done;)if(!t(l.value[1],a.get(l.value[0])))return!1;return!0}if(i&&r instanceof Set&&a instanceof Set){if(r.size!==a.size)return!1;for(u=r.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(r)&&ArrayBuffer.isView(a)){if((s=r.length)!=a.length)return!1;for(l=s;0!=l--;)if(r[l]!==a[l])return!1;return!0}if(r.constructor===RegExp)return r.source===a.source&&r.flags===a.flags;if(r.valueOf!==Object.prototype.valueOf&&"function"==typeof r.valueOf&&"function"==typeof a.valueOf)return r.valueOf()===a.valueOf();if(r.toString!==Object.prototype.toString&&"function"==typeof r.toString&&"function"==typeof a.toString)return r.toString()===a.toString();if((s=(c=Object.keys(r)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(e&&r instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!r.$$typeof)&&!t(r[c[l]],a[c[l]]))return!1;return!0}return r!=r&&a!=a}if(Ae)return Se;Ae=1;var e="undefined"!=typeof Element,n="function"==typeof Map,i="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;return Se=function(e,n){try{return t(e,n)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}},Se}(),je=be(Pe);var ze,$e,Le=(Me||(Me=1,Ue=function(t,e,n,i,o,r,a,s){if(void 0===e)throw new Error("invariant requires an error message argument");if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,a,s],u=0;(l=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}),Ue),We=be(Le);var He=($e||($e=1,ze=function(t,e,n,i){var o=n?n.call(i,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var r=Object.keys(t),a=Object.keys(e);if(r.length!==a.length)return!1;for(var s,l=Object.prototype.hasOwnProperty.bind(e),c=0;c(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Fe||{}),Ve={rel:["amphtml","canonical","alternate"]},qe={type:["application/ld+json"]},Je={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Ye=Object.values(Fe),Qe={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ge=Object.entries(Qe).reduce(((t,[e,n])=>(t[n]=e,t)),{}),Ke="data-rh",Ze="defaultTitle",Xe="defer",tn="encodeSpecialCharacters",en="onChangeClientState",nn="titleTemplate",on="prioritizeSeoTags",rn=(t,e)=>{for(let n=t.length-1;0<=n;n-=1){const i=t[n];if(Object.prototype.hasOwnProperty.call(i,e))return i[e]}return null},an=t=>{let e=rn(t,"title");const n=rn(t,nn);if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,(()=>e));const i=rn(t,Ze);return e||i||void 0},sn=t=>rn(t,en)||(()=>{}),ln=(t,e)=>e.filter((e=>void 0!==e[t])).map((e=>e[t])).reduce(((t,e)=>({...t,...e})),{}),cn=(t,e)=>e.filter((t=>void 0!==t.base)).map((t=>t.base)).reverse().reduce(((e,n)=>{if(!e.length){const i=Object.keys(n);for(let o=0;o{const i={};return n.filter((e=>!!Array.isArray(e[t])||(void 0!==e[t]&&(t=>{console&&"function"==typeof console.warn&&console.warn(t)})(`Helmet: ${t} should be of type "Array". Instead found type "${typeof e[t]}"`),!1))).map((e=>e[t])).reverse().reduce(((t,n)=>{const o={};n.filter((t=>{let n;const r=Object.keys(t);for(let i=0;it.push(e)));const r=Object.keys(o);for(let t=0;t{if(Array.isArray(t)&&t.length)for(let n=0;nArray.isArray(t)?t.join(""):t,mn=(t,e)=>Array.isArray(t)?t.reduce(((t,n)=>(((t,e)=>{const n=Object.keys(t);for(let i=0;i({...t,[e]:void 0}),_n=["noscript","script","style"],hn=(t,e=!0)=>!1===e?t+"":(t+"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),yn=t=>Object.keys(t).reduce(((e,n)=>{const i=void 0===t[n]?`${n}`:`${n}="${t[n]}"`;return e?`${e} ${i}`:i}),""),gn=(t,e={})=>Object.keys(t).reduce(((e,n)=>(e[Qe[n]||n]=t[n],e)),e),vn=(t,e)=>e.map(((e,n)=>{const i={key:n,[Ke]:!0};return Object.keys(e).forEach((t=>{const n=Qe[t]||t;if("innerHTML"===n||"cssText"===n){const t=e.innerHTML||e.cssText;i.dangerouslySetInnerHTML={__html:t}}else i[n]=e[t]})),re.createElement(t,i)})),bn=(t,e,n=!0)=>"title"===t?{toComponent:()=>((t,e,n)=>{const i=gn(n,{key:e,[Ke]:!0});return[re.createElement("title",i,e)]})(0,e.title,e.titleAttributes),toString:()=>((t,e,n,i)=>{const o=yn(n),r=pn(e);return o?`<${t} ${Ke}="true" ${o}>${hn(r,i)}`:`<${t} ${Ke}="true">${hn(r,i)}`})(t,e.title,e.titleAttributes,n)}:"bodyAttributes"===t||"htmlAttributes"===t?{toComponent:()=>gn(e),toString:()=>yn(e)}:{toComponent:()=>vn(t,e),toString:()=>((t,e,n=!0)=>e.reduce(((e,i)=>{const o=i,r=Object.keys(o).filter((t=>"innerHTML"!==t&&"cssText"!==t)).reduce(((t,e)=>{const i=void 0===o[e]?e:`${e}="${hn(o[e],n)}"`;return t?`${t} ${i}`:i}),""),a=o.innerHTML||o.cssText||"",s=-1===_n.indexOf(t);return`${e}<${t} ${Ke}="true" ${r}${s?"/>":`>${a}`}`}),""))(t,e,n)},xn=t=>{const{baseTag:e,bodyAttributes:n,encode:i=!0,htmlAttributes:o,noscriptTags:r,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=t;let{linkTags:u,metaTags:f,scriptTags:p}=t,m={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:m,linkTags:u,metaTags:f,scriptTags:p}=(({metaTags:t,linkTags:e,scriptTags:n,encode:i})=>{const o=mn(t,Je),r=mn(e,Ve),a=mn(n,qe);return{priorityMethods:{toComponent:()=>[...vn("meta",o.priority),...vn("link",r.priority),...vn("script",a.priority)],toString:()=>`${bn("meta",o.priority,i)} ${bn("link",r.priority,i)} ${bn("script",a.priority,i)}`},metaTags:o.default,linkTags:r.default,scriptTags:a.default}})(t)),{priority:m,base:bn("base",e,i),bodyAttributes:bn("bodyAttributes",n,i),htmlAttributes:bn("htmlAttributes",o,i),link:bn("link",u,i),meta:bn("meta",f,i),noscript:bn("noscript",r,i),script:bn("script",p,i),style:bn("style",a,i),title:bn("title",{title:s,titleAttributes:l},i)}},wn=[],kn=!("undefined"==typeof window||!window.document||!window.document.createElement),In=class{instances=[];canUseDOM=kn;context;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?wn:this.instances,add:t=>{(this.canUseDOM?wn:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?wn:this.instances).indexOf(t);(this.canUseDOM?wn:this.instances).splice(e,1)}}};constructor(t,e){this.context=t,this.canUseDOM=e||!1,e||(t.helmet=xn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Nn={},Tn=re.createContext(Nn),Cn=class t extends b{static canUseDOM=kn;helmetData;constructor(e){super(e),this.helmetData=new In(this.props.context||{},t.canUseDOM)}render(){return re.createElement(Tn.Provider,{value:this.helmetData.value},this.props.children)}},En=(t,e)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${t}[${Ke}]`),o=[].slice.call(i),r=[];let a;return e&&e.length&&e.forEach((e=>{const n=document.createElement(t);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))if("innerHTML"===t)n.innerHTML=e.innerHTML;else if("cssText"===t)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{const i=t,o=void 0===e[i]?"":e[i];n.setAttribute(t,o)}n.setAttribute(Ke,"true"),o.some(((t,e)=>(a=e,n.isEqualNode(t))))?o.splice(a,1):r.push(n)})),o.forEach((t=>t.parentNode?.removeChild(t))),r.forEach((t=>n.appendChild(t))),{oldTags:o,newTags:r}},Bn=(t,e)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const i=n.getAttribute(Ke),o=i?i.split(","):[],r=[...o],a=Object.keys(e);for(const t of a){const i=e[t]||"";n.getAttribute(t)!==i&&n.setAttribute(t,i),-1===o.indexOf(t)&&o.push(t);const a=r.indexOf(t);-1!==a&&r.splice(a,1)}for(let t=r.length-1;0<=t;t-=1)n.removeAttribute(r[t]);o.length===r.length?n.removeAttribute(Ke):n.getAttribute(Ke)!==a.join(",")&&n.setAttribute(Ke,a.join(","))},Sn=(t,e)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:o,linkTags:r,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:p}=t;Bn("body",i),Bn("html",o),((t,e)=>{void 0!==t&&document.title!==t&&(document.title=pn(t)),Bn("title",e)})(f,p);const m={baseTag:En("base",n),linkTags:En("link",r),metaTags:En("meta",a),noscriptTags:En("noscript",s),scriptTags:En("script",c),styleTags:En("style",u)},d={},_={};Object.keys(m).forEach((t=>{const{newTags:e,oldTags:n}=m[t];e.length&&(d[t]=e),n.length&&(_[t]=m[t].oldTags)})),e&&e(),l(t,d,_)},An=null,On=t=>{An&&cancelAnimationFrame(An),t.defer?An=requestAnimationFrame((()=>{Sn(t,(()=>{An=null}))})):(Sn(t),An=null)},Dn=class extends b{rendered=!1;shouldComponentUpdate(t){return!Re(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:e}=this.props.context;let n=null;const i=(t=>({baseTag:cn(["href"],t),bodyAttributes:ln("bodyAttributes",t),defer:rn(t,Xe),encode:rn(t,tn),htmlAttributes:ln("htmlAttributes",t),linkTags:un("link",["rel","href"],t),metaTags:un("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:un("noscript",["innerHTML"],t),onChangeClientState:sn(t),scriptTags:un("script",["src","innerHTML"],t),styleTags:un("style",["cssText"],t),title:an(t),titleAttributes:ln("titleAttributes",t),prioritizeSeoTags:fn(t,on)}))(t.get().map((t=>{const e={...t.props};return delete e.context,e})));Cn.canUseDOM?On(i):xn&&(n=xn(i)),e(n)}init(){if(!this.rendered){this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}}render(){return this.init(),null}},Un=class extends b{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!je(dn(this.props,"helmetData"),dn(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,n,i){return{...e,[t.type]:[...e[t.type]||[],{...n,...this.mapNestedChildrenToProps(t,i)}]}}mapObjectTypeChildren(t,e,n,i){switch(t.type){case"title":return{...e,[t.type]:i,titleAttributes:{...n}};case"body":return{...e,bodyAttributes:{...n}};case"html":return{...e,htmlAttributes:{...n}};default:return{...e,[t.type]:{...n}}}}mapArrayTypeChildrenToProps(t,e){let n={...e};return Object.keys(t).forEach((e=>{n={...n,[e]:t[e]}})),n}warnOnInvalidChildren(t,e){return We(Ye.some((e=>t.type===e)),"function"==typeof t.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Ye.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),We(!e||"string"==typeof e||Array.isArray(e)&&!e.some((t=>"string"!=typeof t)),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let n={};return re.Children.forEach(t,(t=>{if(!t||!t.props)return;const{children:i,...o}=t.props,r=Object.keys(o).reduce(((t,e)=>(t[Ge[e]||e]=o[e],t)),{});let{type:a}=t;switch("symbol"==typeof a?a=a.toString():this.warnOnInvalidChildren(t,i),a){case"Symbol(react.fragment)":e=this.mapChildrenToProps(i,e);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(t,n,r,i);break;default:e=this.mapObjectTypeChildren(t,e,r,i)}})),this.mapArrayTypeChildrenToProps(n,e)}render(){const{children:t,...e}=this.props;let n={...e},{helmetData:i}=e;if(t&&(n=this.mapChildrenToProps(t,n)),i&&!(i instanceof In)){i=new In(i.context,!0),delete n.helmetData}return i?re.createElement(Dn,{...n,context:i.value}):re.createElement(Tn.Consumer,null,(t=>re.createElement(Dn,{...n,context:t})))}},Mn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Pn(t){if(!function(t){return"string"==typeof t&&Mn.test(t)}(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=255&e>>>16,n[2]=255&e>>>8,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=255&(e=parseInt(t.slice(24,36),16))/1099511627776,n[11]=255&e/4294967296,n[12]=255&e>>>24,n[13]=255&e>>>16,n[14]=255&e>>>8,n[15]=255&e,n}for(var jn=[],zn=0;256>zn;++zn)jn.push((zn+256).toString(16).slice(1));function $n(t,e=0){return(jn[t[e+0]]+jn[t[e+1]]+jn[t[e+2]]+jn[t[e+3]]+"-"+jn[t[e+4]]+jn[t[e+5]]+"-"+jn[t[e+6]]+jn[t[e+7]]+"-"+jn[t[e+8]]+jn[t[e+9]]+"-"+jn[t[e+10]]+jn[t[e+11]]+jn[t[e+12]]+jn[t[e+13]]+jn[t[e+14]]+jn[t[e+15]]).toLowerCase()}var Ln,Wn=new Uint8Array(16);function Hn(){if(!Ln&&!(Ln="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ln(Wn)}var Rn,Fn,Vn=0,qn=0;function Jn(t,e,n){var i=e&&n||0,o=e||Array(16),r=(t=t||{}).node,a=t.clockseq;if(t._v6||(!r&&(r=Rn),null==a&&(a=Fn)),null==r||null==a){var s=t.random||(t.rng||Hn)();null==r&&(r=[s[0],s[1],s[2],s[3],s[4],s[5]],!Rn&&!t._v6&&(r[0]|=1,Rn=r)),null==a&&(a=16383&(s[6]<<8|s[7]),void 0===Fn&&!t._v6&&(Fn=a))}var l=void 0===t.msecs?Date.now():t.msecs,c=void 0===t.nsecs?qn+1:t.nsecs,u=l-Vn+(c-qn)/1e4;if(0>u&&void 0===t.clockseq&&(a=16383&a+1),(0>u||l>Vn)&&void 0===t.nsecs&&(c=0),1e4<=c)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Vn=l,qn=c,Fn=a;var f=(1e4*(268435455&(l+=122192928e5))+c)%4294967296;o[i++]=255&f>>>24,o[i++]=255&f>>>16,o[i++]=255&f>>>8,o[i++]=255&f;var p=268435455&l/4294967296*1e4;o[i++]=255&p>>>8,o[i++]=255&p,o[i++]=16|15&p>>>24,o[i++]=255&p>>>16,o[i++]=128|a>>>8,o[i++]=255&a;for(var m=0;6>m;++m)o[i+m]=r[m];return e||$n(o)}function Yn(t){var e=function(t){return Uint8Array.of((15&t[6])<<4|15&t[7]>>4,(15&t[7])<<4|(240&t[4])>>4,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,(15&t[1])<<4|(240&t[2])>>4,96|15&t[2],t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}("string"==typeof t?Pn(t):t);return"string"==typeof t?$n(e):e}var Qn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Gn(t,e,n){if(Qn.randomUUID&&!e&&!t)return Qn.randomUUID();var i=(t=t||{}).random||(t.rng||Hn)();return i[6]=64|15&i[6],i[8]=128|63&i[8],$n(i)}function Kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Zn(t){for(var e,n=1;nii&&void 0===t.msecs&&(ii=a,null!==s&&(l=null,c=null)),null!==s&&(2147483647>>19,c=524287&s),(null===l||null===c)&&(l=(l=127&r[6])<<8|r[7],c=(c=(c=63&r[8])<<8|r[9])<<5|r[10]>>>3),a+1e4>ii&&null===s?524287<++c&&(c=0,4095<++l&&(l=0,ii++)):ii=a,ni=l,ei=c,o[i++]=255&ii/1099511627776,o[i++]=255&ii/4294967296,o[i++]=255&ii/16777216,o[i++]=255&ii/65536,o[i++]=255&ii/256,o[i++]=255&ii,o[i++]=112|15&l>>>4,o[i++]=255&l,o[i++]=128|63&c>>>13,o[i++]=255&c>>>5,o[i++]=255&c<<3|7&r[10],o[i++]=r[11],o[i++]=r[12],o[i++]=r[13],o[i++]=r[14],o[i++]=r[15],$n(o)}const ri=["v1","v4","v6","v7","nil","max"];class ai extends re.Component{constructor(t){super(t)}generateUuid=(t,e)=>{if(!ri.includes(t))return void Ie.Notify.failure(`Invalid type: ${t}`);const n={v1:Jn(),v4:Gn(),v6:ti(),v7:oi(),nil:"00000000-0000-0000-0000-000000000000",max:"ffffffff-ffff-ffff-ffff-ffffffffffff"}[t];navigator.clipboard.writeText(n).then((()=>{Ie.Notify.success(`Text ${n} copied`)})).catch((t=>{Ie.Notify.failure(`Error copying text: ${t}`)})),e(n)};render(){const[t,e]=re.useState(localStorage.getItem("uuidType")||"v4");re.useEffect((()=>{localStorage.setItem("uuidType",t)}),[t]);const[n,i]=re.useState(""),{isToggled:o,setToggle:r}=this.props;return re.createElement(Cn,null,re.createElement("nav",{className:o?"navbar is-dark":"navbar is-light",role:"navigation","aria-label":"main navigation"},re.createElement(Un,null,re.createElement("html",{lang:"en",className:o?"theme-dark":"theme-light"})),re.createElement("div",{className:"container"},re.createElement("div",{className:"navbar-brand"},re.createElement("a",{className:"navbar-item",href:"./"},re.createElement("img",{src:"./android-chrome-192x192.png"}))),re.createElement("div",{className:"navbar-menu"},re.createElement("div",{className:"navbar-start"},re.createElement("a",{className:"navbar-item",href:"./"},"UUIDConv UI"),re.createElement("div",{className:"navbar-item"},re.createElement("div",{className:"field has-addons"},re.createElement("p",{className:"control"},re.createElement("span",{className:"select is-link is-small"},re.createElement("select",{onChange:t=>e(t.target.value)},ri.map((e=>re.createElement("option",{key:e,value:e,selected:t===e},e)))))),re.createElement("p",{className:"control"},re.createElement("input",{readOnly:!0,size:40,className:"input is-link is-small",type:"text",value:n,placeholder:"Online UUID Generator"})),re.createElement("p",{className:"control"},re.createElement("button",{className:"button is-link is-small",onClick:()=>this.generateUuid(t,i)},"Generate"))))),re.createElement("div",{className:"navbar-end"},re.createElement(De,{className:"navbar-item",duration:750,toggled:o,toggle:t=>r(t)}))))))}}class si extends re.Component{state={items:[]};constructor(t){super(t)}componentDidMount(){const t=JSON.parse(localStorage.getItem("uuidItems"))||[];let e;const n={};for(const i of t)e=new Ce(i.input,i.output,i.info),n[e.toString()]=e;this.setState({items:Object.values(n)})}componentDidUpdate(t,e){let n=[...this.state.items].slice(0,100);e.items!==n&&localStorage.setItem("uuidItems",JSON.stringify(n))}render(){const[t,e]=re.useState(JSON.parse(localStorage.getItem("theme"))||!1);re.useEffect((()=>{localStorage.setItem("theme",JSON.stringify(t))}),[t]);const{items:n}=this.state;return re.createElement("div",{className:"uuid-ui--wrapper"},re.createElement(ai,{isToggled:t,setToggle:e}),re.createElement("div",{className:"container margin-top"},re.createElement("div",{className:"columns is-centered"},re.createElement("div",{className:"column is-three-fifths",id:"input-cp"},re.createElement(Ee,{items:n,setItems:t=>this.setState({items:t})})),re.createElement("div",{className:"column is-two-fifths is-narrow",id:"history-cp"},re.createElement(Be,{items:n,clearItems:()=>this.setState({items:[]}),isToggled:t})))))}}re.render(re.createElement(re.StrictMode,null,re.createElement(si,null)),document.getElementById("app")); +//# sourceMappingURL=bundle-DtMG0b0j.js.map diff --git a/public/assets/bundle-DtMG0b0j.js.map b/public/assets/bundle-DtMG0b0j.js.map new file mode 100644 index 0000000..9a781e5 --- /dev/null +++ b/public/assets/bundle-DtMG0b0j.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle-DtMG0b0j.js","sources":["../../node_modules/preact/dist/preact.module.js","../../node_modules/preact/hooks/dist/hooks.module.js","../../node_modules/preact/compat/dist/compat.module.js","../../src/uuid-formatter.js","../../src/uuid-bytes.js","../../src/base64.js","../../src/object-parser.js","../../src/type-detector.js","../../src/uuid-high-low.js","../../node_modules/notiflix/build/notiflix-notify-aio.js","../../src/input.jsx","../../src/history.jsx","../../node_modules/@theme-toggles/react/dist/index.js","../../node_modules/react-fast-compare/index.js","../../node_modules/invariant/browser.js","../../node_modules/shallowequal/index.js","../../node_modules/react-helmet-async/lib/index.esm.js","../../node_modules/uuid/dist/esm-browser/regex.js","../../node_modules/uuid/dist/esm-browser/parse.js","../../node_modules/uuid/dist/esm-browser/validate.js","../../node_modules/uuid/dist/esm-browser/stringify.js","../../node_modules/uuid/dist/esm-browser/rng.js","../../node_modules/uuid/dist/esm-browser/v1.js","../../node_modules/uuid/dist/esm-browser/v1ToV6.js","../../node_modules/uuid/dist/esm-browser/native.js","../../node_modules/uuid/dist/esm-browser/v4.js","../../node_modules/uuid/dist/esm-browser/v6.js","../../node_modules/uuid/dist/esm-browser/v7.js","../../src/nav.jsx","../../node_modules/uuid/dist/esm-browser/nil.js","../../node_modules/uuid/dist/esm-browser/max.js","../../src/app.jsx","../../src/index.jsx"],"sourcesContent":["var n,l,u,t,i,o,r,f,e,c,s,a,h={},v=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)\"key\"==r?i=u[r]:\"ref\"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),\"function\"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function b(n){return n.children}function k(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;lu&&i.sort(f));P.__r=0}function S(n,l,u,t,i,o,r,f,e,c,s){var a,p,y,d,w,_=t&&t.__k||v,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=n,i.__b=n.__b+1,o=null,-1!==(f=i.__i=L(i,u,r,s))&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,\"function\"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a--:f==r+1?a++:(f>r?a--:a++,i.__u|=65536))):i=n.__k[t]=null;if(s)for(t=0;t(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f2&&(e.children=arguments.length>3?n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l=\"__cC\"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=v.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),\"function\"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},k.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},k.prototype.render=b,i=[],r=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,e=0,c=F(!1),s=F(!0),a=0;export{k as Component,b as Fragment,E as cloneElement,G as createContext,_ as createElement,m as createRef,_ as h,D as hydrate,t as isValidElement,l as options,B as render,H as toChildArray};\n//# sourceMappingURL=preact.module.js.map\n","import{options as n}from\"preact\";var t,r,u,i,o=0,f=[],c=n,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,s=c.__;function d(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return o=1,p(D,n)}function p(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function y(n,u){var i=d(t++,3);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__H.__h.push(i))}function _(n,u){var i=d(t++,4);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__h.push(i))}function A(n){return o=5,T(function(){return{current:n}},[])}function F(n,t,r){o=6,_(function(){return\"function\"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function T(n,r){var u=d(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){c.useDebugValue&&c.useDebugValue(t?t(n):n)}function b(n){var u=d(t++,10),i=h();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__=\"P\"+i[0]+\"-\"+i[1]++}return n.__}function j(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],c.__e(t,n.__v)}}c.__b=function(n){r=null,e&&e(n)},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t)},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),u=r=null},c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],c.__e(r,n.__v)}}),l&&l(n,t)},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&c.__e(t,r.__v))};var k=\"function\"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;\"function\"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return\"function\"==typeof t?t(n):t}export{q as useCallback,x as useContext,P as useDebugValue,y as useEffect,b as useErrorBoundary,g as useId,F as useImperativeHandle,_ as useLayoutEffect,T as useMemo,p as useReducer,A as useRef,h as useState};\n//# sourceMappingURL=hooks.module.js.map\n","import{Component as n,createElement as t,options as e,toChildArray as r,Fragment as u,render as o,hydrate as i,createContext as c,createRef as f,cloneElement as l}from\"preact\";export{Component,Fragment,createContext,createElement,createRef}from\"preact\";import{useCallback as a,useContext as s,useDebugValue as h,useEffect as v,useId as d,useImperativeHandle as p,useLayoutEffect as m,useMemo as y,useReducer as _,useRef as b,useState as S}from\"preact/hooks\";export*from\"preact/hooks\";function g(n,t){for(var e in n)if(\"__source\"!==e&&!(e in t))return!0;for(var r in t)if(\"__source\"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){this.props=n,this.context=t}function C(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:g(this.props,n)}function u(e){return this.shouldComponentUpdate=r,t(n,e)}return u.displayName=\"Memo(\"+(n.displayName||n.name)+\")\",u.prototype.isReactComponent=!0,u.__f=!0,u}(E.prototype=new n).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return g(this.props,n)||g(this.state,t)};var x=e.__b;e.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n)};var R=\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.forward_ref\")||3911;function w(n){function t(t){if(!(\"ref\"in t))return n(t,null);var e=t.ref;delete t.ref;var r=n(t,e);return t.ref=e,r}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName=\"ForwardRef(\"+(n.displayName||n.name)+\")\",t}var k=function(n,t){return null==n?null:r(r(n).map(t))},I={map:k,forEach:k,count:function(n){return n?r(n).length:0},only:function(n){var t=r(n);if(1!==t.length)throw\"Children.only\";return t[0]},toArray:r},N=e.__e;e.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);N(n,t,e,r)};var M=e.unmount;function T(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){\"function\"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=function(n,t){for(var e in t)n[e]=t[e];return n}({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return T(n,t,e)})),n}function A(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return A(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null}function L(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function O(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return t(r,o)}return o.displayName=\"Lazy\",o.__f=!0,o}function F(){this.u=null,this.o=null}e.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),M&&M(n)},(D.prototype=new n).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=L(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=A(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},D.prototype.componentWillUnmount=function(){this.t=[]},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement(\"div\"),o=this.__v.__k[0].__c;this.__v.__k[0]=T(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&t(u,null,n.fallback);return i&&(i.__u&=-33),[t(u,null,e.__a?null:n.children),i]};var U=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&(\"t\"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]>>1,1),e.i.removeChild(n)}}),o(t(V,{context:e.context},n.__v),e.l)}function P(n,e){var r=t(W,{__v:n,i:e});return r.containerInfo=e,r}(F.prototype=new n).__a=function(n){var t=this,e=L(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),U(t,n,r)):u()};e?e(o):o()}},F.prototype.render=function(n){this.u=null,this.o=new Map;var t=r(n.children);n.revealOrder&&\"b\"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){U(n,e,t)})};var j=\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.element\")||60103,z=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,B=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,H=/[A-Z0-9]/g,Z=\"undefined\"!=typeof document,Y=function(n){return(\"undefined\"!=typeof Symbol&&\"symbol\"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function $(n,t,e){return null==t.__k&&(t.textContent=\"\"),o(n,t),\"function\"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return i(n,t),\"function\"==typeof e&&e(),n?n.__c:null}n.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(t){Object.defineProperty(n.prototype,t,{configurable:!0,get:function(){return this[\"UNSAFE_\"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var G=e.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}e.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={enumerable:!1,configurable:!0,get:function(){return this.class}},tn=e.vnode;e.vnode=function(n){\"string\"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf(\"-\");for(var i in t){var c=t[i];if(!(\"value\"===i&&\"defaultValue\"in t&&null==c||Z&&\"children\"===i&&\"noscript\"===e||\"class\"===i||\"className\"===i)){var f=i.toLowerCase();\"defaultValue\"===i&&\"value\"in t&&null==t.value?i=\"value\":\"download\"===i&&!0===c?c=\"\":\"translate\"===f&&\"no\"===c?c=!1:\"o\"===f[0]&&\"n\"===f[1]?\"ondoubleclick\"===f?i=\"ondblclick\":\"onchange\"!==f||\"input\"!==e&&\"textarea\"!==e||Y(t.type)?\"onfocus\"===f?i=\"onfocusin\":\"onblur\"===f?i=\"onfocusout\":B.test(i)&&(i=f):f=i=\"oninput\":o&&z.test(i)?i=i.replace(H,\"-$&\").toLowerCase():null===c&&(c=void 0),\"oninput\"===f&&u[i=f]&&(i=\"oninputCapture\"),u[i]=c}}\"select\"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=r(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),\"select\"==e&&null!=u.defaultValue&&(u.value=r(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,\"className\",nn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=j,tn&&tn(n)};var en=e.__r;e.__r=function(n){en&&en(n),X=n.__c};var rn=e.diffed;e.diffed=function(n){rn&&rn(n);var t=n.props,e=n.__e;null!=e&&\"textarea\"===n.type&&\"value\"in t&&t.value!==e.value&&(e.value=null==t.value?\"\":t.value),X=null};var un={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value},useCallback:a,useContext:s,useDebugValue:h,useDeferredValue:_n,useEffect:v,useId:d,useImperativeHandle:p,useInsertionEffect:Sn,useLayoutEffect:m,useMemo:y,useReducer:_,useRef:b,useState:S,useSyncExternalStore:En,useTransition:bn}}},on=\"18.3.1\";function cn(n){return t.bind(null,n)}function fn(n){return!!n&&n.$$typeof===j}function ln(n){return fn(n)&&n.type===u}function an(n){return!!n&&!!n.displayName&&(\"string\"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith(\"Memo(\")}function sn(n){return fn(n)?l.apply(null,arguments):n}function hn(n){return!!n.__k&&(o(null,n),!0)}function vn(n){return n&&(n.base||1===n.nodeType&&n)||null}var dn=function(n,t){return n(t)},pn=function(n,t){return n(t)},mn=u;function yn(n){n()}function _n(n){return n}function bn(){return[!1,yn]}var Sn=m,gn=fn;function En(n,t){var e=t(),r=S({h:{__:e,v:t}}),u=r[0].h,o=r[1];return m(function(){u.__=e,u.v=t,Cn(u)&&o({h:u})},[n,e,t]),v(function(){return Cn(u)&&o({h:u}),n(function(){Cn(u)&&o({h:u})})},[n]),e}function Cn(n){var t,e,r=n.v,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}var xn={useState:S,useId:d,useReducer:_,useEffect:v,useLayoutEffect:m,useInsertionEffect:Sn,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:En,startTransition:yn,useRef:b,useImperativeHandle:p,useMemo:y,useCallback:a,useContext:s,useDebugValue:h,version:\"18.3.1\",Children:I,render:$,hydrate:q,unmountComponentAtNode:hn,createPortal:P,createElement:t,createContext:c,createFactory:cn,cloneElement:sn,createRef:f,Fragment:u,isValidElement:fn,isElement:gn,isFragment:ln,isMemo:an,findDOMNode:vn,Component:n,PureComponent:E,memo:C,forwardRef:w,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:mn,Suspense:D,SuspenseList:F,lazy:O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:un};export{I as Children,E as PureComponent,mn as StrictMode,D as Suspense,F as SuspenseList,un as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sn as cloneElement,cn as createFactory,P as createPortal,xn as default,vn as findDOMNode,pn as flushSync,w as forwardRef,q as hydrate,gn as isElement,ln as isFragment,an as isMemo,fn as isValidElement,O as lazy,C as memo,$ as render,yn as startTransition,hn as unmountComponentAtNode,dn as unstable_batchedUpdates,_n as useDeferredValue,Sn as useInsertionEffect,En as useSyncExternalStore,bn as useTransition,on as version};\n//# sourceMappingURL=compat.module.js.map\n","'use strict';\n\n/**\n * Formats a UUID string into the standard UUID format.\n *\n * @param {string} input - The UUID string to format.\n * @return {string} The formatted UUID string.\n */\nexport function uuidFormatter(input) {\n // Check if the input string has a length of 32, which is the length of a standard UUID.\n if (input.length === 32) {\n // Slice the input string into parts and join them with hyphens to form the formatted UUID.\n // The first 8 characters are the first part.\n // The next 4 characters are the second part.\n // The next 4 characters are the third part.\n // The next 4 characters are the fourth part.\n // The remaining 8 characters are the fifth part.\n return (\n input.slice(0, 8) + '-' + // First part\n input.slice(8, 12) + '-' + // Second part\n input.slice(12, 16) + '-' + // Third part\n input.slice(16, 20) + '-' + // Fourth part\n input.slice(20, 32) // Fifth part\n );\n }\n\n // If the input string is not a standard UUID, return it as is.\n return input;\n}\n","'use strict';\n\nimport {uuidFormatter} from \"./uuid-formatter.js\";\n\n/**\n * Regular expression to match all non-alphanumeric characters in a UUID string.\n * Used to remove non-alphanumeric characters from the input when converting bytes to UUID.\n * @type {RegExp}\n */\nconst uuidAlf = /[^a-z0-9]/g; // eslint-disable-line no-useless-escape\n\n/**\n * Regular expression to split a UUID string into 2-character chunks.\n * Used to split UUID string into bytes when converting bytes to UUID.\n * @type {RegExp}\n */\nconst chunk = /.{1,2}/g;\n\n/**\n * Removes non-alphanumeric characters from a UUID string.\n * @param {string} input - The UUID string to be cleaned.\n * @returns {string|null} - The cleaned UUID string, or null if the input has an invalid length.\n */\nfunction _getUuid(input) {\n // Lowercase the input and remove all non-alphanumeric characters.\n const uuidStr = input.toLowerCase().replaceAll(uuidAlf, '')\n \n // Check if the cleaned UUID string has the correct length (32 characters).\n if (uuidStr.length !== 32) {\n // If the length is invalid, return null.\n return null\n }\n\n // Return the cleaned UUID string.\n return uuidStr\n}\n\n/**\n * Converts a UUID string to an array of bytes.\n * Each byte is represented as a decimal number.\n *\n * @param {string} input - The UUID string to be converted.\n * @returns {Array|null} - The array of bytes, or null if the input has an invalid length.\n */\nexport function uuidToBytes(input) {\n // Clean the input UUID string and check its length.\n const uuidStr = _getUuid(input)\n if (uuidStr === null) {\n return null\n }\n\n // Split the cleaned UUID string into 2-character chunks and convert each chunk to a decimal number.\n return uuidStr\n .match(chunk)\n .map(b => parseInt(b, 16))\n}\n\nexport function bytesToUuid(bytes) {\n return uuidFormatter(\n bytes.map(b => b.toString(16).padStart(2, '0')).join('')\n )\n}\n\n/**\n * Converts a UUID string to a JSON string representation of an array of bytes.\n * Each byte is represented as a decimal number.\n *\n * @param {string} input - The UUID string to be converted.\n * @returns {string|null} - The JSON string representation of an array of bytes, or null if the input has an invalid length.\n */\nexport function uuidToBytesString(input) {\n // Convert the UUID string to an array of bytes.\n const bytes = uuidToBytes(input)\n \n // If the input has an invalid length, return null.\n if (bytes === null) {\n return null\n }\n\n // Convert the array of bytes to a JSON string.\n return JSON.stringify(bytes)\n}\n","'use strict';\n\nimport {bytesToUuid, uuidToBytes} from \"./uuid-bytes.js\";\n\n/**\n * Converts a base64 standard representation of a UUID to the UUID string.\n *\n * @param {string} base64 - The base64 standard representation of a UUID.\n * @returns {string} - The UUID string.\n */\nexport function base64StdToUuid(base64) {\n // Decode the base64 string to bytes.\n const bytes = atob(base64)\n // Convert each character to its corresponding character code.\n .split('')\n .map(c => c.charCodeAt(0))\n // Convert the array of character codes to bytes.\n ;\n\n // Convert the bytes to the UUID string.\n return bytesToUuid(bytes);\n}\n\n/**\n * Converts a UUID string to a base64 standard representation of a UUID.\n *\n * @param {string} uuid - The UUID string to be converted.\n * @returns {string} - The base64 standard representation of the UUID.\n */\nexport function uuidToBase64Std(uuid) {\n // Convert the UUID string to bytes.\n const bytes = uuidToBytes(uuid);\n\n // Convert the bytes to a base64 string.\n // The apply() method is used to convert the Uint8Array to an arguments list\n // that can be passed to the String.fromCharCode() method.\n return btoa(\n String.fromCharCode.apply(null, new Uint8Array(bytes))\n );\n}\n","'use strict';\n\nconst rg = /\"?([a-zA-Z0-9]*)\"?:/g\nconst hlrg = /^(-?\\d+)[;:,](-?\\d+)$/\nconst trg = /[\"']?(-?\\d+)[\"']?/g\n\n/**\n * Parses a string representation of an object into a JavaScript object.\n * \n * @param {string} val - The string representation of the object.\n * @returns {Object} - The parsed object.\n */\nexport function objectParse(val) {\n // If the string starts with '[', it is a JSON array and needs to be parsed.\n if (val[0] === '[') {\n // Replace all occurrences of numbers with the same number without quotes.\n return JSON.parse(val.replace(trg, '$1'))\n }\n\n // If the string matches the regular expression for a high-low pair, split it into an array.\n if (val.match(hlrg)) {\n // Replace the high-low pair with the same numbers separated by semicolons.\n const split = val.replace(hlrg, '$1;$2').split(';')\n\n // Return an object with the high and low properties.\n return {\n high: split[0].toString(),\n low: split[1].toString()\n }\n }\n\n // Parse the string representation of the object.\n const obj = JSON.parse(val.replace(trg, '\"$1\"').replace(rg, '\"$1\":'))\n\n // Return an object with the high and low properties.\n return {\n high: obj.high,\n low: obj.low\n }\n}\n","'use strict';\n\nimport {base64StdToUuid} from \"./base64.js\";\nimport {objectParse} from \"./object-parser.js\";\n\n/**\n * Represents the type of UUID.\n *\n * @type {number}\n */\nexport const TYPE_UUID = 2 ** 0; // 0b0001\n\n/**\n * Represents the type of UUID represented as high-low pairs.\n *\n * @type {number}\n */\nexport const TYPE_HIGH_LOW = 2 ** 1; // 0b0010\n\n/**\n * Represents the type of UUID represented in base64 string.\n *\n * @type {number}\n */\nexport const TYPE_BASE64 = 2 ** 2; // 0b0100\n\n/**\n * Represents the type of UUID represented as bytes string.\n *\n * @type {number}\n */\nexport const TYPE_BYTES = 2 ** 3; // 0b1000\n\n/**\n * Represents the length of a UUID string.\n *\n * A UUID is a 128-bit value represented as a 36-character string.\n * Each character in the string represents a hexadecimal digit.\n *\n * @type {number}\n */\nconst UUID_LENGTH = 36; // 36 characters in a UUID string\n\n/**\n * Returns a list of UUID types and their corresponding names.\n *\n * @return {Object} An object with UUID types as keys and their corresponding names as values.\n */\nexport function uuidTypeList() {\n // Initialize an empty array to store the UUID types and their names.\n const list = []\n\n // Add each UUID type and its corresponding name to the list.\n list[TYPE_UUID] = 'uuid' // UUID type\n list[TYPE_BASE64] = 'base64' // Base64 type\n list[TYPE_HIGH_LOW] = 'high-low' // High-low type\n list[TYPE_BYTES] = 'bytes' // Bytes type\n\n // Return the list of UUID types and their names.\n return list\n}\n\n/**\n * Detects the type of the given input.\n *\n * The function attempts to parse the input as a JSON array (bytes-type) or\n * JSON object (high-low-type). If parsing succeeds, it returns the bytes-type\n * or high-low-type accordingly.\n *\n * If parsing fails, the function checks if the input can be parsed as a valid\n * base64-type UUID. If it can, the function returns the base64-type.\n *\n * If parsing fails for both bytes-type and base64-type, the function returns\n * the default UUID type.\n *\n * @param {string} input - The input to be parsed and detected.\n * @return {number} The type of the input.\n */\nexport function typeDetector(input) {\n // Attempt to parse the input as a JSON array (bytes-type) or JSON object\n // (high-low-type).\n try {\n // If the input can be parsed as a JSON array, return the bytes-type.\n return Array.isArray(objectParse(input))\n ? TYPE_BYTES\n // If the input can be parsed as a JSON object, return the high-low-type.\n : TYPE_HIGH_LOW;\n } catch (e) {\n // Do nothing if parsing fails.\n }\n\n // Attempt to parse the input as a valid base64-type UUID.\n try {\n // If the input can be parsed as a valid base64-type UUID with the correct\n // length, return the base64-type.\n if (base64StdToUuid(input).length === UUID_LENGTH) {\n return TYPE_BASE64;\n }\n } catch (e) {\n // Do nothing if parsing fails.\n }\n\n // If parsing fails for both bytes-type and base64-type, return the default\n // UUID type.\n return TYPE_UUID;\n}\n","'use strict';\n\nimport {bytesToUuid, uuidToBytes} from \"./uuid-bytes.js\";\n\n/**\n * Converts a UUID string to an object with high and low unsigned 64-bit integers.\n *\n * @param {string} input - The UUID string to convert.\n * @return {Object} An object with high and low unsigned 64-bit integers as strings,\n * or null if input is invalid.\n */\nexport function uuidToInts(input) {\n // Convert the UUID string to an array of BigInts.\n const v = uuidToBytes(input).map(i => BigInt(i))\n // If the conversion failed, return null.\n if (v === null) {\n return null\n }\n\n // Combine the bytes into high and low unsigned 64-bit integers.\n const high = BigInt(v[0] | v[1] << BigInt(8) | v[2] << BigInt(16) | v[3] << BigInt(24) |\n v[4] << BigInt(32) | v[5] << BigInt(40) | v[6] << BigInt(48) | v[7] << BigInt(56))\n\n const low = BigInt(v[8] | v[9] << BigInt(8) | v[10] << BigInt(16) | v[11] << BigInt(24) |\n v[12] << BigInt(32) | v[13] << BigInt(40) | v[14] << BigInt(48) | v[15] << BigInt(56))\n\n // Return the high and low integers as strings.\n return {\n // Convert the high and low integers to strings.\n high: BigInt.asIntN(64, high) + \"\",\n low: BigInt.asIntN(64, low) + \"\",\n }\n}\n\n/**\n * Converts two unsigned 64-bit integers to a UUID string.\n *\n * @param {string} high - The high unsigned 64-bit integer as a string.\n * @param {string} low - The low unsigned 64-bit integer as a string.\n * @return {string} The UUID string.\n */\nexport function intsToUuid(high, low) {\n // Convert the high and low integers to an array of bytes.\n return bytesToUuid([\n // Extract the bytes from the high integer.\n BigInt(high) & BigInt(0xff),\n BigInt(high) >> BigInt(8) & BigInt(0xff),\n BigInt(high) >> BigInt(16) & BigInt(0xff),\n BigInt(high) >> BigInt(24) & BigInt(0xff),\n BigInt(high) >> BigInt(32) & BigInt(0xff),\n BigInt(high) >> BigInt(40) & BigInt(0xff),\n BigInt(high) >> BigInt(48) & BigInt(0xff),\n BigInt(high) >> BigInt(56) & BigInt(0xff),\n // Extract the bytes from the low integer.\n BigInt(low) & BigInt(0xff),\n BigInt(low) >> BigInt(8) & BigInt(0xff),\n BigInt(low) >> BigInt(16) & BigInt(0xff),\n BigInt(low) >> BigInt(24) & BigInt(0xff),\n BigInt(low) >> BigInt(32) & BigInt(0xff),\n BigInt(low) >> BigInt(40) & BigInt(0xff),\n BigInt(low) >> BigInt(48) & BigInt(0xff),\n BigInt(low) >> BigInt(56) & BigInt(0xff),\n ])\n}\n\n/**\n * Converts a UUID string to an object with high and low unsigned 64-bit integers.\n *\n * @param {string} input - The UUID string to convert.\n * @return {Object} An object with high and low unsigned 64-bit integers as strings,\n * or null if input is invalid.\n */\nexport function uuidToUints(input) {\n // Convert the UUID string to an array of BigInts.\n const v = uuidToBytes(input).map(i => BigInt(i))\n // If the conversion failed, return null.\n if (v === null) {\n return null\n }\n\n // Combine the bytes into high and low unsigned 64-bit integers.\n const high = BigInt(\n v[7] | v[6] << BigInt(8) | v[5] << BigInt(16) | v[4] << BigInt(24) |\n v[3] << BigInt(32) | v[2] << BigInt(40) | v[1] << BigInt(48) | v[0] << BigInt(56)\n )\n\n const low = BigInt(\n v[15] | v[14] << BigInt(8) | v[13] << BigInt(16) | v[12] << BigInt(24) |\n v[11] << BigInt(32) | v[10] << BigInt(40) | v[9] << BigInt(48) | v[8] << BigInt(56)\n )\n\n // Return the high and low integers as strings.\n return {\n // Convert the high and low integers to unsigned 64-bit integers and convert them to strings.\n high: BigInt.asUintN(64, high) + \"\",\n low: BigInt.asUintN(64, low) + \"\",\n }\n}\n\n/**\n * Converts two unsigned 64-bit integers to a UUID string.\n *\n * @param {string} high - The high unsigned 64-bit integer as a string.\n * @param {string} low - The low unsigned 64-bit integer as a string.\n * @return {string} The UUID string.\n */\nexport function uintsToUuid(high, low) {\n // Convert the high and low integers to an array of bytes.\n return bytesToUuid([\n // Extract the most significant byte from the high integer.\n BigInt(high) >> BigInt(56) & BigInt(0xff),\n // Extract the next 7 bytes from the high integer.\n BigInt(high) >> BigInt(48) & BigInt(0xff),\n BigInt(high) >> BigInt(40) & BigInt(0xff),\n BigInt(high) >> BigInt(32) & BigInt(0xff),\n BigInt(high) >> BigInt(24) & BigInt(0xff),\n BigInt(high) >> BigInt(16) & BigInt(0xff),\n BigInt(high) >> BigInt(8) & BigInt(0xff),\n BigInt(high) & BigInt(0xff),\n // Extract the most significant byte from the low integer.\n BigInt(low) >> BigInt(56) & BigInt(0xff),\n // Extract the next 7 bytes from the low integer.\n BigInt(low) >> BigInt(48) & BigInt(0xff),\n BigInt(low) >> BigInt(40) & BigInt(0xff),\n BigInt(low) >> BigInt(32) & BigInt(0xff),\n BigInt(low) >> BigInt(24) & BigInt(0xff),\n BigInt(low) >> BigInt(16) & BigInt(0xff),\n BigInt(low) >> BigInt(8) & BigInt(0xff),\n BigInt(low) & BigInt(0xff),\n ])\n}\n","/*\n* Notiflix Notify AIO (https://notiflix.github.io)\n* Description: This file has been created automatically that using \"notiflix.js\", and \"notiflix.css\" files.\n* Version: 3.2.7\n* Author: Furkan (https://github.com/furcan)\n* Copyright 2019 - 2024 Notiflix, MIT License (https://opensource.org/licenses/MIT)\n*/\n\n/* global define */\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], function () {\n return factory(root);\n });\n } else if (typeof module === 'object' && typeof module.exports === 'object') {\n module.exports = factory(root);\n } else {\n root.Notiflix = factory(root);\n }\n})(typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this, function (window) {\n\n 'use strict';\n\n // COMMON: SSR check: begin\n if (typeof window === 'undefined' && typeof window.document === 'undefined') {\n return false;\n }\n // COMMON: SSR check: end\n\n // COMMON: Variables: begin\n var notiflixNamespace = 'Notiflix';\n var notiflixConsoleDocs = '\\n\\nVisit documentation page to learn more: https://notiflix.github.io/documentation';\n var defaultFontFamily = '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif';\n // COMMON: Variables: end\n\n // NOTIFY: Default Settings: begin\n var typesNotify = {\n Success: 'Success',\n Failure: 'Failure',\n Warning: 'Warning',\n Info: 'Info',\n };\n var newNotifySettings;\n var notifySettings = {\n wrapID: 'NotiflixNotifyWrap', // can not customizable\n overlayID: 'NotiflixNotifyOverlay', // can not customizable\n width: '280px',\n position: 'right-top', // 'right-top' - 'right-bottom' - 'left-top' - 'left-bottom' - 'center-top' - 'center-bottom' - 'center-center'\n distance: '10px',\n opacity: 1,\n borderRadius: '5px',\n rtl: false,\n timeout: 3000,\n messageMaxLength: 110,\n backOverlay: false,\n backOverlayColor: 'rgba(0,0,0,0.5)',\n plainText: true,\n showOnlyTheLastOne: false,\n clickToClose: false,\n pauseOnHover: true,\n\n ID: 'NotiflixNotify',\n className: 'notiflix-notify',\n zindex: 4001,\n fontFamily: 'Quicksand',\n fontSize: '13px',\n cssAnimation: true,\n cssAnimationDuration: 400,\n cssAnimationStyle: 'fade', // 'fade' - 'zoom' - 'from-right' - 'from-top' - 'from-bottom' - 'from-left'\n closeButton: false,\n useIcon: true,\n useFontAwesome: false,\n fontAwesomeIconStyle: 'basic', // 'basic' - 'shadow'\n fontAwesomeIconSize: '34px',\n\n success: {\n background: '#32c682',\n textColor: '#fff',\n childClassName: 'notiflix-notify-success',\n notiflixIconColor: 'rgba(0,0,0,0.2)',\n fontAwesomeClassName: 'fas fa-check-circle',\n fontAwesomeIconColor: 'rgba(0,0,0,0.2)',\n backOverlayColor: 'rgba(50,198,130,0.2)',\n },\n\n failure: {\n background: '#ff5549',\n textColor: '#fff',\n childClassName: 'notiflix-notify-failure',\n notiflixIconColor: 'rgba(0,0,0,0.2)',\n fontAwesomeClassName: 'fas fa-times-circle',\n fontAwesomeIconColor: 'rgba(0,0,0,0.2)',\n backOverlayColor: 'rgba(255,85,73,0.2)',\n },\n\n warning: {\n background: '#eebf31',\n textColor: '#fff',\n childClassName: 'notiflix-notify-warning',\n notiflixIconColor: 'rgba(0,0,0,0.2)',\n fontAwesomeClassName: 'fas fa-exclamation-circle',\n fontAwesomeIconColor: 'rgba(0,0,0,0.2)',\n backOverlayColor: 'rgba(238,191,49,0.2)',\n },\n\n info: {\n background: '#26c0d3',\n textColor: '#fff',\n childClassName: 'notiflix-notify-info',\n notiflixIconColor: 'rgba(0,0,0,0.2)',\n fontAwesomeClassName: 'fas fa-info-circle',\n fontAwesomeIconColor: 'rgba(0,0,0,0.2)',\n backOverlayColor: 'rgba(38,192,211,0.2)',\n },\n };\n // NOTIFY: Default Settings: end\n\n // COMMON: Console Error: begin\n var commonConsoleError = function (message) {\n return console.error('%c ' + notiflixNamespace + ' Error ', 'padding:2px;border-radius:20px;color:#fff;background:#ff5549', '\\n' + message + notiflixConsoleDocs);\n };\n // COMMON: Console Error: end\n\n // COMMON: Check Head or Body: begin\n var commonCheckHeadOrBody = function (element) {\n if (!element) { element = 'head'; }\n if (window.document[element] === null) {\n commonConsoleError('\\nNotiflix needs to be appended to the \"<' + element + '>\" element, but you called it before the \"<' + element + '>\" element has been created.');\n return false;\n }\n return true;\n };\n // COMMON: Check Head or Body: end\n\n // COMMON: Set Internal CSS Codes: begin\n var commonSetInternalCSSCodes = function (getInternalCSSCodes, styleElementId) {\n // check doc head\n if (!commonCheckHeadOrBody('head')) { return false; }\n\n // internal css\n if (getInternalCSSCodes() !== null && !window.document.getElementById(styleElementId)) {\n var internalCSS = window.document.createElement('style');\n internalCSS.id = styleElementId;\n internalCSS.innerHTML = getInternalCSSCodes();\n window.document.head.appendChild(internalCSS);\n }\n };\n // COMMON: Set Internal CSS Codes: end\n\n // COMMON: Extend Options: begin\n var commonExtendOptions = function () {\n // variables\n var extended = {};\n var deep = false;\n var i = 0;\n // check if a deep merge\n if (Object.prototype.toString.call(arguments[0]) === '[object Boolean]') {\n deep = arguments[0];\n i++;\n }\n // merge the object into the extended object\n var merge = function (obj) {\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n // if property is an object, merge properties\n if (deep && Object.prototype.toString.call(obj[prop]) === '[object Object]') {\n extended[prop] = commonExtendOptions(extended[prop], obj[prop]);\n } else {\n extended[prop] = obj[prop];\n }\n }\n }\n };\n // loop through each object and conduct a merge\n for (; i < arguments.length; i++) {\n merge(arguments[i]);\n }\n return extended;\n };\n // COMMON: Extend Options: end\n\n // COMMON: Get Plaintext: begin\n var commonGetPlaintext = function (html) {\n var htmlPool = window.document.createElement('div');\n htmlPool.innerHTML = html;\n return htmlPool.textContent || htmlPool.innerText || '';\n };\n // COMMON: Get Plaintext: end\n\n // NOTIFY: Get Internal CSS Codes: begin\n var notifyGetInternalCSSCodes = function () {\n var notifyCSS = '[id^=NotiflixNotifyWrap]{pointer-events:none;position:fixed;z-index:4001;opacity:1;right:10px;top:10px;width:280px;max-width:96%;-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent}[id^=NotiflixNotifyWrap].nx-flex-center-center{max-height:calc(100vh - 20px);overflow-x:hidden;overflow-y:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:auto}[id^=NotiflixNotifyWrap]::-webkit-scrollbar{width:0;height:0}[id^=NotiflixNotifyWrap]::-webkit-scrollbar-thumb{background:transparent}[id^=NotiflixNotifyWrap]::-webkit-scrollbar-track{background:transparent}[id^=NotiflixNotifyWrap] *{-webkit-box-sizing:border-box;box-sizing:border-box}[id^=NotiflixNotifyOverlay]{-webkit-transition:background .3s ease-in-out;-o-transition:background .3s ease-in-out;transition:background .3s ease-in-out}[id^=NotiflixNotifyWrap]>div{pointer-events:all;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:\"Quicksand\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative;margin:0 0 10px;border-radius:5px;background:#1e1e1e;color:#fff;padding:10px 12px;font-size:14px;line-height:1.4}[id^=NotiflixNotifyWrap]>div:last-child{margin:0}[id^=NotiflixNotifyWrap]>div.nx-with-callback{cursor:pointer}[id^=NotiflixNotifyWrap]>div.nx-with-icon{padding:8px;min-height:56px}[id^=NotiflixNotifyWrap]>div.nx-paused{cursor:auto}[id^=NotiflixNotifyWrap]>div.nx-notify-click-to-close{cursor:pointer}[id^=NotiflixNotifyWrap]>div.nx-with-close-button{padding:10px 36px 10px 12px}[id^=NotiflixNotifyWrap]>div.nx-with-icon.nx-with-close-button{padding:6px 36px 6px 6px}[id^=NotiflixNotifyWrap]>div>span.nx-message{cursor:inherit;font-weight:normal;font-family:inherit!important;word-break:break-all;word-break:break-word}[id^=NotiflixNotifyWrap]>div>span.nx-close-button{cursor:pointer;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;position:absolute;right:8px;top:0;bottom:0;margin:auto;color:inherit;width:20px;height:20px}[id^=NotiflixNotifyWrap]>div>span.nx-close-button:hover{-webkit-transform:rotate(90deg);transform:rotate(90deg)}[id^=NotiflixNotifyWrap]>div>span.nx-close-button>svg{position:absolute;width:16px;height:16px;right:2px;top:2px}[id^=NotiflixNotifyWrap]>div>.nx-message-icon{position:absolute;width:40px;height:40px;font-size:30px;line-height:40px;text-align:center;left:8px;top:0;bottom:0;margin:auto;border-radius:inherit}[id^=NotiflixNotifyWrap]>div>.nx-message-icon-fa.nx-message-icon-fa-shadow{color:inherit;background:rgba(0,0,0,.15);-webkit-box-shadow:inset 0 0 34px rgba(0,0,0,.2);box-shadow:inset 0 0 34px rgba(0,0,0,.2);text-shadow:0 0 10px rgba(0,0,0,.3)}[id^=NotiflixNotifyWrap]>div>span.nx-with-icon{position:relative;float:left;width:calc(100% - 40px);margin:0 0 0 40px;padding:0 0 0 10px;-webkit-box-sizing:border-box;box-sizing:border-box}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>.nx-message-icon{left:auto;right:8px}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>span.nx-with-icon{padding:0 10px 0 0;margin:0 40px 0 0}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>span.nx-close-button{right:auto;left:8px}[id^=NotiflixNotifyWrap]>div.nx-with-icon.nx-with-close-button.nx-rtl-on{padding:6px 6px 6px 36px}[id^=NotiflixNotifyWrap]>div.nx-with-close-button.nx-rtl-on{padding:10px 12px 10px 36px}[id^=NotiflixNotifyOverlay].nx-with-animation,[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-fade{-webkit-animation:notify-animation-fade .3s ease-in-out 0s normal;animation:notify-animation-fade .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-fade{0%{opacity:0}100%{opacity:1}}@keyframes notify-animation-fade{0%{opacity:0}100%{opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-zoom{-webkit-animation:notify-animation-zoom .3s ease-in-out 0s normal;animation:notify-animation-zoom .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-zoom{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes notify-animation-zoom{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(1);transform:scale(1)}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-right{-webkit-animation:notify-animation-from-right .3s ease-in-out 0s normal;animation:notify-animation-from-right .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-right{0%{right:-300px;opacity:0}50%{right:8px;opacity:1}100%{right:0;opacity:1}}@keyframes notify-animation-from-right{0%{right:-300px;opacity:0}50%{right:8px;opacity:1}100%{right:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-left{-webkit-animation:notify-animation-from-left .3s ease-in-out 0s normal;animation:notify-animation-from-left .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-left{0%{left:-300px;opacity:0}50%{left:8px;opacity:1}100%{left:0;opacity:1}}@keyframes notify-animation-from-left{0%{left:-300px;opacity:0}50%{left:8px;opacity:1}100%{left:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-top{-webkit-animation:notify-animation-from-top .3s ease-in-out 0s normal;animation:notify-animation-from-top .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-top{0%{top:-50px;opacity:0}50%{top:8px;opacity:1}100%{top:0;opacity:1}}@keyframes notify-animation-from-top{0%{top:-50px;opacity:0}50%{top:8px;opacity:1}100%{top:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-bottom{-webkit-animation:notify-animation-from-bottom .3s ease-in-out 0s normal;animation:notify-animation-from-bottom .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-bottom{0%{bottom:-50px;opacity:0}50%{bottom:8px;opacity:1}100%{bottom:0;opacity:1}}@keyframes notify-animation-from-bottom{0%{bottom:-50px;opacity:0}50%{bottom:8px;opacity:1}100%{bottom:0;opacity:1}}[id^=NotiflixNotifyOverlay].nx-with-animation.nx-remove,[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-fade.nx-remove{opacity:0;-webkit-animation:notify-remove-fade .3s ease-in-out 0s normal;animation:notify-remove-fade .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-fade{0%{opacity:1}100%{opacity:0}}@keyframes notify-remove-fade{0%{opacity:1}100%{opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-zoom.nx-remove{-webkit-transform:scale(0);transform:scale(0);-webkit-animation:notify-remove-zoom .3s ease-in-out 0s normal;animation:notify-remove-zoom .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(0);transform:scale(0)}}@keyframes notify-remove-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(0);transform:scale(0)}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-top.nx-remove{opacity:0;-webkit-animation:notify-remove-to-top .3s ease-in-out 0s normal;animation:notify-remove-to-top .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-top{0%{top:0;opacity:1}50%{top:8px;opacity:1}100%{top:-50px;opacity:0}}@keyframes notify-remove-to-top{0%{top:0;opacity:1}50%{top:8px;opacity:1}100%{top:-50px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-right.nx-remove{opacity:0;-webkit-animation:notify-remove-to-right .3s ease-in-out 0s normal;animation:notify-remove-to-right .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-right{0%{right:0;opacity:1}50%{right:8px;opacity:1}100%{right:-300px;opacity:0}}@keyframes notify-remove-to-right{0%{right:0;opacity:1}50%{right:8px;opacity:1}100%{right:-300px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-bottom.nx-remove{opacity:0;-webkit-animation:notify-remove-to-bottom .3s ease-in-out 0s normal;animation:notify-remove-to-bottom .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-bottom{0%{bottom:0;opacity:1}50%{bottom:8px;opacity:1}100%{bottom:-50px;opacity:0}}@keyframes notify-remove-to-bottom{0%{bottom:0;opacity:1}50%{bottom:8px;opacity:1}100%{bottom:-50px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-left.nx-remove{opacity:0;-webkit-animation:notify-remove-to-left .3s ease-in-out 0s normal;animation:notify-remove-to-left .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-left{0%{left:0;opacity:1}50%{left:8px;opacity:1}100%{left:-300px;opacity:0}}@keyframes notify-remove-to-left{0%{left:0;opacity:1}50%{left:8px;opacity:1}100%{left:-300px;opacity:0}}';\n return notifyCSS || null;\n };\n // NOTIFY: Get Internal CSS Codes: end\n\n // NOTIFY: Create: begin\n var notifyCreateCounter = 0;\n var notifyCreate = function (notifyType, message, callbackOrOptions, options) {\n // check doc body\n if (!commonCheckHeadOrBody('body')) { return false; }\n\n // if not initialized pretend like init\n if (!newNotifySettings) {\n Notiflix.Notify.init({});\n }\n\n // create a backup for new settings\n var newNotifySettingsBackup = commonExtendOptions(true, newNotifySettings, {});\n\n // check callbackOrOptions and options: begin\n if ((typeof callbackOrOptions === 'object' && !Array.isArray(callbackOrOptions)) || (typeof options === 'object' && !Array.isArray(options))) {\n // new options\n var newOptions = {};\n if (typeof callbackOrOptions === 'object') {\n newOptions = callbackOrOptions;\n } else if (typeof options === 'object') {\n newOptions = options;\n }\n\n // extend new settings with the new options\n newNotifySettings = commonExtendOptions(true, newNotifySettings, newOptions);\n }\n // check callbackOrOptions and options: end\n\n // notify type\n var theType = newNotifySettings[notifyType.toLocaleLowerCase('en')];\n\n // notify counter\n notifyCreateCounter++;\n\n // check the message: begin\n if (typeof message !== 'string') {\n message = 'Notiflix ' + notifyType;\n }\n // check the message: end\n\n // if plainText is true => HTML tags not allowed: begin\n if (newNotifySettings.plainText) {\n message = commonGetPlaintext(message); // message plain text\n }\n // if plainText is true => HTML tags not allowed: end\n\n // if plainText is false but the message length more than messageMaxLength => Possible HTML tags error: begin\n if (!newNotifySettings.plainText && message.length > newNotifySettings.messageMaxLength) {\n // extend settings for error massege\n newNotifySettings = commonExtendOptions(true, newNotifySettings, { closeButton: true, messageMaxLength: 150 });\n // error message\n message = 'Possible HTML Tags Error: The \"plainText\" option is \"false\" and the notification content length is more than the \"messageMaxLength\" option.';\n }\n // if plainText is false but the message length more than messageMaxLength => Possible HTML tags error: end\n\n // check message max length: begin\n if (message.length > newNotifySettings.messageMaxLength) {\n message = message.substring(0, newNotifySettings.messageMaxLength) + '...';\n }\n // check message max length: end\n\n // font awesome icon style: begin\n if (newNotifySettings.fontAwesomeIconStyle === 'shadow') {\n theType.fontAwesomeIconColor = theType.background;\n }\n // font awesome icon style: end\n\n // if cssAnimaion is false => duration: begin\n if (!newNotifySettings.cssAnimation) {\n newNotifySettings.cssAnimationDuration = 0;\n }\n // if cssAnimaion is false => duration: end\n\n // notify wrap: begin\n var ntflxNotifyWrap = window.document.getElementById(notifySettings.wrapID) || window.document.createElement('div');\n ntflxNotifyWrap.id = notifySettings.wrapID;\n ntflxNotifyWrap.style.width = newNotifySettings.width;\n ntflxNotifyWrap.style.zIndex = newNotifySettings.zindex;\n ntflxNotifyWrap.style.opacity = newNotifySettings.opacity;\n\n // wrap position: begin\n if (newNotifySettings.position === 'center-center') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = newNotifySettings.distance;\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = newNotifySettings.distance;\n ntflxNotifyWrap.style.margin = 'auto';\n ntflxNotifyWrap.classList.add('nx-flex-center-center');\n ntflxNotifyWrap.style.maxHeight = 'calc((100vh - ' + newNotifySettings.distance + ') - ' + newNotifySettings.distance + ')';\n ntflxNotifyWrap.style.display = 'flex';\n ntflxNotifyWrap.style.flexWrap = 'wrap';\n ntflxNotifyWrap.style.flexDirection = 'column';\n ntflxNotifyWrap.style.justifyContent = 'center';\n ntflxNotifyWrap.style.alignItems = 'center';\n ntflxNotifyWrap.style.pointerEvents = 'none';\n } else if (newNotifySettings.position === 'center-top') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = 'auto';\n ntflxNotifyWrap.style.margin = 'auto';\n } else if (newNotifySettings.position === 'center-bottom') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = 'auto';\n ntflxNotifyWrap.style.margin = 'auto';\n } else if (newNotifySettings.position === 'right-bottom') {\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = 'auto';\n ntflxNotifyWrap.style.left = 'auto';\n } else if (newNotifySettings.position === 'left-top') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = newNotifySettings.distance;\n ntflxNotifyWrap.style.right = 'auto';\n ntflxNotifyWrap.style.bottom = 'auto';\n } else if (newNotifySettings.position === 'left-bottom') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = 'auto';\n ntflxNotifyWrap.style.right = 'auto';\n } else { // 'right-top' or else\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = newNotifySettings.distance;\n ntflxNotifyWrap.style.left = 'auto';\n ntflxNotifyWrap.style.bottom = 'auto';\n }\n // wrap position: end\n\n // if background overlay is true: begin\n if (newNotifySettings.backOverlay) {\n var ntflxNotifyOverlay = window.document.getElementById(notifySettings.overlayID) || window.document.createElement('div');\n ntflxNotifyOverlay.id = notifySettings.overlayID;\n ntflxNotifyOverlay.style.width = '100%';\n ntflxNotifyOverlay.style.height = '100%';\n ntflxNotifyOverlay.style.position = 'fixed';\n ntflxNotifyOverlay.style.zIndex = newNotifySettings.zindex - 1;\n ntflxNotifyOverlay.style.left = 0;\n ntflxNotifyOverlay.style.top = 0;\n ntflxNotifyOverlay.style.right = 0;\n ntflxNotifyOverlay.style.bottom = 0;\n ntflxNotifyOverlay.style.background = theType.backOverlayColor || newNotifySettings.backOverlayColor;\n ntflxNotifyOverlay.className = newNotifySettings.cssAnimation ? 'nx-with-animation' : '';\n ntflxNotifyOverlay.style.animationDuration = newNotifySettings.cssAnimation ? newNotifySettings.cssAnimationDuration + 'ms' : '';\n\n if (!window.document.getElementById(notifySettings.overlayID)) {\n window.document.body.appendChild(ntflxNotifyOverlay);\n }\n }\n // if background overlay is true: end\n\n if (!window.document.getElementById(notifySettings.wrapID)) {\n window.document.body.appendChild(ntflxNotifyWrap);\n }\n // notify wrap: end\n\n // notify content: begin\n var ntflxNotify = window.document.createElement('div');\n ntflxNotify.id = newNotifySettings.ID + '-' + notifyCreateCounter;\n ntflxNotify.className = newNotifySettings.className + ' ' + theType.childClassName + ' ' + (newNotifySettings.cssAnimation ? 'nx-with-animation' : '') + ' ' + (newNotifySettings.useIcon ? 'nx-with-icon' : '') + ' nx-' + newNotifySettings.cssAnimationStyle + ' ' + (newNotifySettings.closeButton && typeof callbackOrOptions !== 'function' ? 'nx-with-close-button' : '') + ' ' + (typeof callbackOrOptions === 'function' ? 'nx-with-callback' : '') + ' ' + (newNotifySettings.clickToClose ? 'nx-notify-click-to-close' : '');\n ntflxNotify.style.fontSize = newNotifySettings.fontSize;\n ntflxNotify.style.color = theType.textColor;\n ntflxNotify.style.background = theType.background;\n ntflxNotify.style.borderRadius = newNotifySettings.borderRadius;\n ntflxNotify.style.pointerEvents = 'all';\n\n // rtl: begin\n if (newNotifySettings.rtl) {\n ntflxNotify.setAttribute('dir', 'rtl');\n ntflxNotify.classList.add('nx-rtl-on');\n }\n // rtl: end\n\n // font-family: begin\n ntflxNotify.style.fontFamily = '\"' + newNotifySettings.fontFamily + '\", ' + defaultFontFamily;\n // font-family: end\n\n // use css animation: begin\n if (newNotifySettings.cssAnimation) {\n ntflxNotify.style.animationDuration = newNotifySettings.cssAnimationDuration + 'ms';\n }\n // use css animation: end\n\n // close button element: begin\n var closeButtonHTML = '';\n if (newNotifySettings.closeButton && typeof callbackOrOptions !== 'function') {\n closeButtonHTML = '';\n }\n // close buttpon element: end\n\n // use icon: begin\n if (newNotifySettings.useIcon) {\n // use font awesome\n if (newNotifySettings.useFontAwesome) {\n ntflxNotify.innerHTML = '' + message + '' + (newNotifySettings.closeButton ? closeButtonHTML : '');\n }\n // use notiflix icon\n else {\n var svgIcon = '';\n if (notifyType === typesNotify.Success) { // success\n svgIcon = '';\n } else if (notifyType === typesNotify.Failure) { // failure\n svgIcon = '';\n } else if (notifyType === typesNotify.Warning) { // warning\n svgIcon = '';\n } else if (notifyType === typesNotify.Info) { // info\n svgIcon = '';\n }\n ntflxNotify.innerHTML = svgIcon + '' + message + '' + (newNotifySettings.closeButton ? closeButtonHTML : '');\n }\n }\n // without icon\n else {\n ntflxNotify.innerHTML = '' + message + '' + (newNotifySettings.closeButton ? closeButtonHTML : '');\n }\n // use icon: end\n // notify content: end\n\n // notify append or prepend: begin\n if (newNotifySettings.position === 'left-bottom' || newNotifySettings.position === 'right-bottom') { // the new one will be first\n var notifyWrap = window.document.getElementById(notifySettings.wrapID);\n notifyWrap.insertBefore(ntflxNotify, notifyWrap.firstChild);\n } else {\n window.document.getElementById(notifySettings.wrapID).appendChild(ntflxNotify);\n }\n // notify append or prepend: end\n\n // remove by timeout or click: begin\n var eachNotifyElement = window.document.getElementById(ntflxNotify.id);\n if (eachNotifyElement) {\n // timeout variables\n var timeoutHide;\n var timeoutRemove;\n\n // hide notify elm and hide overlay: begin\n var hideNotifyElementsAndOverlay = function () {\n eachNotifyElement.classList.add('nx-remove');\n var removeOverlay = window.document.getElementById(notifySettings.overlayID);\n if (removeOverlay && ntflxNotifyWrap.childElementCount <= 0) {\n removeOverlay.classList.add('nx-remove');\n }\n clearTimeout(timeoutHide);\n };\n // hide notify elm and hide overlay: end\n\n // remove notify elm and wrapper: begin\n var removeNotifyElmentsAndWrapper = function () {\n if (eachNotifyElement && eachNotifyElement.parentNode !== null) {\n eachNotifyElement.parentNode.removeChild(eachNotifyElement);\n }\n if (ntflxNotifyWrap.childElementCount <= 0 && ntflxNotifyWrap.parentNode !== null) { // if childs count === 0 remove wrap\n ntflxNotifyWrap.parentNode.removeChild(ntflxNotifyWrap);\n var removeOverlay = window.document.getElementById(notifySettings.overlayID);\n if (removeOverlay && removeOverlay.parentNode !== null) {\n removeOverlay.parentNode.removeChild(removeOverlay);\n }\n }\n clearTimeout(timeoutRemove);\n };\n // remove notify elm and wrapper: end\n\n // if has close button and callbackOrOptions is not a function: begin\n if (newNotifySettings.closeButton && typeof callbackOrOptions !== 'function') {\n var closeButtonElm = window.document.getElementById(ntflxNotify.id).querySelector('span.nx-close-button');\n closeButtonElm.addEventListener('click', function () {\n hideNotifyElementsAndOverlay();\n var clickToCloseTimeout = setTimeout(function () {\n removeNotifyElmentsAndWrapper();\n clearTimeout(clickToCloseTimeout);\n }, newNotifySettings.cssAnimationDuration);\n });\n }\n // if has close button and callbackOrOptions is not a function: end\n\n // if callbackOrOptions or click to close: begin\n if (typeof callbackOrOptions === 'function' || newNotifySettings.clickToClose) {\n eachNotifyElement.addEventListener('click', function () {\n if (typeof callbackOrOptions === 'function') {\n callbackOrOptions();\n }\n hideNotifyElementsAndOverlay();\n var callbackTimeout = setTimeout(function () {\n removeNotifyElmentsAndWrapper();\n clearTimeout(callbackTimeout);\n }, newNotifySettings.cssAnimationDuration);\n });\n }\n // if callbackOrOptions or click to close: end\n\n // else auto remove: begin\n if (!newNotifySettings.closeButton && typeof callbackOrOptions !== 'function') {\n // auto remove: begin\n var autoRemove = function () {\n timeoutHide = setTimeout(function () {\n hideNotifyElementsAndOverlay();\n }, newNotifySettings.timeout);\n timeoutRemove = setTimeout(function () {\n removeNotifyElmentsAndWrapper();\n }, newNotifySettings.timeout + newNotifySettings.cssAnimationDuration);\n };\n autoRemove();\n // auto remove: end\n\n // pause auto remove: begin\n if (newNotifySettings.pauseOnHover) {\n eachNotifyElement.addEventListener('mouseenter', function () {\n eachNotifyElement.classList.add('nx-paused');\n clearTimeout(timeoutHide);\n clearTimeout(timeoutRemove);\n });\n eachNotifyElement.addEventListener('mouseleave', function () {\n eachNotifyElement.classList.remove('nx-paused');\n autoRemove();\n });\n }\n // pause auto remove: end\n }\n // else auto remove: end\n }\n // remove by timeout or click: end\n\n // notify - show only the last one: begin\n if (newNotifySettings.showOnlyTheLastOne && notifyCreateCounter > 0) {\n var allNotifyElmNotTheLastOne = window.document.querySelectorAll('[id^=' + newNotifySettings.ID + '-]:not([id=' + newNotifySettings.ID + '-' + notifyCreateCounter + '])');\n for (var i = 0; i < allNotifyElmNotTheLastOne.length; i++) {\n var eachNotifyElmNotLastOne = allNotifyElmNotTheLastOne[i];\n if (eachNotifyElmNotLastOne.parentNode !== null) {\n eachNotifyElmNotLastOne.parentNode.removeChild(eachNotifyElmNotLastOne);\n }\n }\n }\n // notify - show only the last one: end\n\n // extend new settings with the backup settings\n newNotifySettings = commonExtendOptions(true, newNotifySettings, newNotifySettingsBackup);\n\n };\n // NOTIFY: Create: end\n\n var Notiflix = {\n Notify: {\n // Init\n init: function (userNotifyOptions) {\n // extend options\n newNotifySettings = commonExtendOptions(true, notifySettings, userNotifyOptions);\n // internal css if exist\n commonSetInternalCSSCodes(notifyGetInternalCSSCodes, 'NotiflixNotifyInternalCSS');\n },\n // Merge First Init\n merge: function (userNotifyExtendOptions) {\n // if initialized already\n if (newNotifySettings) {\n newNotifySettings = commonExtendOptions(true, newNotifySettings, userNotifyExtendOptions);\n }\n // initialize first\n else {\n commonConsoleError('You have to initialize the Notify module before call Merge function.');\n return false;\n }\n },\n // Success\n success: function (message, callbackOrOptions, options) {\n notifyCreate(typesNotify.Success, message, callbackOrOptions, options);\n },\n // Failure\n failure: function (message, callbackOrOptions, options) {\n notifyCreate(typesNotify.Failure, message, callbackOrOptions, options);\n },\n // Warning\n warning: function (message, callbackOrOptions, options) {\n notifyCreate(typesNotify.Warning, message, callbackOrOptions, options);\n },\n // Info\n info: function (message, callbackOrOptions, options) {\n notifyCreate(typesNotify.Info, message, callbackOrOptions, options);\n },\n },\n };\n\n if (typeof window.Notiflix === 'object') {\n return commonExtendOptions(true, window.Notiflix, { Notify: Notiflix.Notify });\n } else {\n return { Notify: Notiflix.Notify };\n }\n\n});","import React from 'react';\nimport {TYPE_BASE64, TYPE_BYTES, TYPE_HIGH_LOW, typeDetector, uuidTypeList} from \"./type-detector.js\";\nimport {bytesToUuid, uuidToBytesString} from \"./uuid-bytes.js\";\nimport {objectParse} from \"./object-parser.js\";\nimport {intsToUuid, uintsToUuid, uuidToInts, uuidToUints} from \"./uuid-high-low.js\";\nimport {base64StdToUuid, uuidToBase64Std} from \"./base64.js\";\nimport {uuidFormatter} from \"./uuid-formatter.js\";\nimport { Notify } from 'notiflix/build/notiflix-notify-aio';\n\n/**\n * Bit mask for signed integers.\n * @type {number}\n */\nconst SIGNED = 2 ** 0; // 0b0001\n\n/**\n * Bit mask for unsigned integers.\n * @type {number}\n */\nconst UNSIGNED = 2 ** 1; // 0b0010\n\n/**\n * Regular expression for matching double quotes around numbers.\n * Used to remove double quotes from numbers when converting bytes to UUID.\n * @type {RegExp}\n */\n// eslint-disable-next-line no-useless-escape\nconst rg = /[\"'“”]/g; // Matches double quotes, apostrophes, left double guillemets and right double guillemets\n\n/**\n * Regular expression for matching numbers surrounded by double quotes.\n * Used to extract numbers from strings when converting bytes to UUID.\n * @type {RegExp}\n */\n// eslint-disable-next-line no-useless-escape\nconst nrg = /\"(-?\\d+)\"/g; // Matches numbers enclosed in double quotes, optionally preceded by a hyphen\n\n/**\n * Returns an object with two keys: 'signed' and 'unsigned'.\n * Each key maps to a string representation of the corresponding bit mask.\n * @return {Object} An object with two keys: 'signed' and 'unsigned'.\n */\nexport function intTypeList() {\n // Create an empty array\n const list = []\n\n // Add a key-value pair to the object\n list[SIGNED] = 'signed'\n\n // Add another key-value pair to the object\n list[UNSIGNED] = 'unsigned'\n\n // Return the object\n return list\n}\n\n/**\n * Represents an item with input, output, and additional information.\n * @class\n */\nexport class Item {\n /**\n * Creates a new Item.\n * @constructor\n * @param {any} input - The input value.\n * @param {any} output - The output value.\n * @param {any} info - Additional information.\n */\n constructor(input, output, info) {\n /**\n * The input value.\n * @type {any}\n */\n this.input = input;\n\n /**\n * The output value.\n * @type {any}\n */\n this.output = output;\n\n /**\n * Additional information.\n * @type {any}\n */\n this.info = info;\n }\n\n /**\n * Returns a string representation of the item, in the format 'input:output'.\n * @return {string} The string representation of the item.\n */\n toString() {\n return `${this.input}:${this.output}`;\n }\n}\n\nexport default class InputComponent extends React.Component {\n /**\n * The initial state of the InputComponent.\n *\n * @type {InputComponentState}\n */\n state = {\n // The type of the conversion result, default is TYPE_HIGH_LOW\n resultType: TYPE_HIGH_LOW,\n\n // The type of the integer representation, default is SIGNED\n intType: SIGNED,\n\n // The input value, default is empty string\n text: '',\n }\n\n /**\n * Constructor for the InputComponent.\n *\n * @param {Object} props - The properties passed to the component.\n */\n constructor(props) {\n super(props);\n // Call the parent class constructor with the passed props\n }\n\n /**\n * Handles keyboard input and updates the component's state\n * with the input text. If the input text ends with a newline\n * character, it calls the handle function to process the input.\n *\n * @param {Object} e - The event object containing the input text.\n */\n onKeyboardInput = (e) => {\n // Extract the input text from the event object\n const text = e.target.value\n\n // Update the component's state with the input text\n this.setState({text})\n\n // If the input text does not end with a newline character, return\n if (text[text.length - 1] !== \"\\n\") {\n return\n }\n\n // Call the handle function to process the input\n this.handle(text)\n }\n\n /**\n * Handles the keyboard input by splitting it into lines,\n * removing empty lines and extra spaces, and then adding\n * the lines as items to the component's list of items.\n *\n * @param {string} text - The input text from the keyboard.\n */\n handle = (text) => {\n // Split the input text into lines\n const lines = text.split(\"\\n\");\n\n // Remove empty lines and extra spaces from each line\n const trimmedLines = lines.map(l => l.replace(rg, '').trim()).filter(l => l.length > 0);\n\n // Add the trimmed lines as items to the component's list of items\n this.addItems(trimmedLines);\n }\n\n /**\n * Adds the given items to the list of items.\n * The items are parsed and added in reverse order.\n * If an item already exists, it is not added again.\n *\n * @param {Array} items - The items to add.\n */\n addItems = (items) => {\n // Create a map to store the items.\n let result = new Map()\n\n // Iterate over the items in reverse order.\n for (const item of items.reverse()) {\n // Create a new Item object from the line.\n const obj = this.newItem(item)\n\n // If the item is not null, add it to the map.\n if (obj !== null) {\n result.set(obj.toString(), obj)\n }\n }\n\n // Iterate over the existing items.\n for (const item of this.props.items) {\n // If the item is not already in the map, add it.\n if (!result.has(item.toString())) {\n result.set(item.toString(), item)\n }\n }\n\n // Set the items using the props setter.\n this.props.setItems([...result.values()])\n }\n\n /**\n * Creates a new Item object from the given line.\n *\n * @param {string} line - The line to parse and create an Item object from.\n * @return {Item|null} The created Item object if successful, null otherwise.\n */\n newItem = (line) => {\n try {\n // Parse the line into input and comment.\n const {input, comment} = this.parse(line)\n\n // Cast the input to a UUID and back to a string.\n const uuid = this.castToUuid(input)\n const output = this.castFromUuid(uuid)\n\n // Normalize the input and output strings.\n const nInput = this.normalize(input)\n if (nInput === null) {\n // If the input string cannot be processed, show a failure notification and return null.\n Notify.failure('Failed to process string: ' + line);\n\n return null\n }\n\n const nOutput = this.normalize(output)\n if (nInput === nOutput) {\n // If the normalized input and output strings are the same, show a warning notification and return null.\n Notify.warning('The result of the conversion matches the entered value: ' + line);\n\n return null\n }\n\n // Create and return a new Item object with the normalized input, output, and comment.\n return new Item(nInput, nOutput, comment)\n } catch (e) {\n // If an error occurs during the process, return null.\n return null\n }\n }\n\n /**\n * Parses the given line into input and comment.\n *\n * @param {string} line - The line to parse.\n * @return {Object} An object containing the parsed input and comment.\n * The input is a string, and the comment is a string or undefined.\n */\n parse = (line) => {\n // Split the line into input and comment by looking for the first occurrence of \"//\".\n // Remove any leading or trailing whitespace from both parts.\n // Remove any trailing comma from the input part.\n let results = line.split(\"//\").map(s => s.trim().replace(/,$/g, '').trimRight())\n\n // If there is a comment, return an object with the input and comment.\n // Otherwise, return an object with just the input.\n if (results.length > 1) {\n return {input: results[0].toString(), comment: results[1].toString()}\n }\n\n return {input: results[0].toString(), comment: undefined}\n }\n\n /**\n * Normalizes the given input.\n *\n * @param {string} input - The input to normalize.\n * @return {string|null} The normalized input, or null if the input cannot be normalized.\n */\n normalize = (input) => {\n // Determine the type of the input and perform the corresponding normalization.\n switch (typeDetector(input)) {\n // If the input is of bytes type, convert it to a JSON string and remove unnecessary commas.\n case TYPE_BYTES:\n return JSON.stringify(objectParse(input)).replace(/,$/g, '');\n // If the input is of high-low type, convert it to a JSON string, remove unnecessary commas, and format it.\n case TYPE_HIGH_LOW:\n const result = JSON.stringify(objectParse(input)).replace(/,$/g, '');\n return result.replace(nrg, \"$1\");\n // If the input is of base64 type, convert it to standard base64 and back to base64.\n case TYPE_BASE64:\n return btoa(atob(input));\n }\n\n // If the input is enclosed in curly braces, remove them.\n if (input[0] === '{' && input[input.length - 1] === '}') {\n input = input.substring(1, input.length - 1);\n }\n\n // Format the input as a UUID and check if it has the correct length.\n const uuid = uuidFormatter(input);\n if (uuid.length === 36) {\n return uuid;\n }\n\n // Return null if the input cannot be normalized.\n return null;\n }\n\n /**\n * Casts the given input to a UUID.\n *\n * @param {string} input - The input to cast to a UUID.\n * @return {string} The casted UUID.\n */\n castToUuid = (input) => {\n const {intType} = this.state\n\n // Determine the type of the input and cast it to a UUID accordingly.\n switch (typeDetector(input)) {\n // If the input is a byte array, cast it to a UUID using the bytesToUuid function.\n case TYPE_BYTES:\n return bytesToUuid(objectParse(input))\n // If the input is a high-low pair of integers, cast it to a UUID using the uintsToUuid function.\n // The function to use depends on the type of integers used (unsigned or signed).\n case TYPE_HIGH_LOW:\n const u = objectParse(input)\n const fn = intType === SIGNED ? intsToUuid : uintsToUuid\n\n return fn(u.high, u.low)\n // If the input is a base64 string, cast it to a UUID using the base64StdToUuid function.\n case TYPE_BASE64:\n return base64StdToUuid(input)\n }\n\n // If none of the above cases match, simply return the input as is.\n return input\n }\n\n /**\n * Casts the given UUID to the specified result type.\n *\n * @param {string} uuid - The UUID to cast.\n * @return {string|object} The casted UUID or the JSON representation of the UUID's high and low integers.\n */\n castFromUuid = (uuid) => {\n const {resultType, intType} = this.state\n\n switch (resultType) {\n case TYPE_BYTES:\n return uuidToBytesString(uuid); // Cast UUID to bytes string\n case TYPE_HIGH_LOW:\n const u = intType === SIGNED ? uuidToInts(uuid) : uuidToUints(uuid); // Get UUID's high and low integers\n return JSON.stringify(u); // Cast high and low integers to JSON\n case TYPE_BASE64:\n return uuidToBase64Std(uuid); // Cast UUID to base64 standard string\n }\n\n return uuid; // Return UUID if no result type is specified\n }\n\n /**\n * Sets the result type and handles the input.\n *\n * @param {number} type - The result type.\n * @return {Promise} A Promise that resolves when the result type is set and the input is handled.\n */\n setResultType = async (type) => {\n // Get the current text from state\n const {text} = this.state\n\n // Set the result type in state\n await this.setState({resultType: type})\n\n // Handle the input with the updated result type\n await this.handle(text)\n }\n\n /**\n * Sets the integer type and handles the input.\n *\n * @param {number} type - The integer type.\n * @return {Promise} A Promise that resolves when the integer type is set and the input is handled.\n */\n setIntType = async (type) => {\n const {text} = this.state\n\n // Set the integer type\n await this.setState({intType: type})\n\n // Handle the input with the new integer type\n await this.handle(text)\n }\n\n /**\n * Renders the component.\n *\n * @param {Object} items - The items.\n * @param {Object} state - The state.\n * @param {number} state.resultType - The result type.\n * @param {number} state.intType - The integer type.\n * @return {JSX.Element} The rendered component.\n */\n render({ items }, { resultType, intType }) {\n const [isClosedInformer, setClosedInformer] = React.useState(\n JSON.parse(localStorage.getItem('informerClosed')) || false\n )\n\n React.useEffect(() => {\n localStorage.setItem('informerClosed', JSON.stringify(isClosedInformer));\n }, [isClosedInformer]);\n\n return (\n
\n {/* Notification */}\n
\n \n {/* The project is provided \"as is\". Project revisions will only be made when absolutely necessary. */}\n The project is provided \"as is\". Project revisions will only be made when absolutely necessary.\n
\n\n {/* Textarea for keyboard input */}\n \n\n {/* Result type radio buttons */}\n
\n
\n \n
\n {/* Maps the uuid type list and renders the radio buttons */}\n { uuidTypeList().map((v, k) => (\n \n )) }\n
\n
\n
\n\n {/* Integer type radio buttons */}\n
\n
\n \n
\n {/* Maps the integer type list and renders the radio buttons */}\n { intTypeList().map((v, k) => (\n \n )) }\n
\n
\n
\n
\n );\n }\n}\n","import React from 'react';\nimport { Notify } from 'notiflix/build/notiflix-notify-aio';\n\nexport default class HistoryComponent extends React.Component {\n /**\n * Constructor for the HistoryComponent.\n *\n * @param {Object} props - The properties passed to the component.\n */\n constructor(props) {\n super(props);\n // Call the parent class constructor with the passed props\n }\n\n /**\n * Copies the text of the clicked tag to the clipboard and displays a success message.\n *\n * @param {Event} e - The event object containing the clicked tag.\n */\n copy = (e) => {\n // Get the text content of the clicked tag\n const text = e.target.innerText;\n\n // Copy the text to the clipboard\n navigator.clipboard.writeText(text)\n .then(() => {\n // Display a success message\n Notify.success('Text ' + text + ' copied');\n })\n .catch((error) => {\n // Display an error message if the copy operation fails\n Notify.failure('Error copying text: ' + error);\n });\n }\n\n /**\n * Render method for the HistoryComponent.\n *\n * Returns a navigation panel (