UNPKG

zuma-ui

Version:

A JavaScript powered embeddable chatbot for business - customer interaction

2 lines 140 kB
/*! For license information please see bundle.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Zuma=e():t.Zuma=e()}(self,(()=>(()=>{var t,e,r,n,o,i={7397:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(1016);const o={prefix:n.prefix||"",animation:"animate__fadeIn",appName:"Zuma",file:"zuma.config.js",fonts:{primary:"'Sedgwick Ave Display', cursive",secondary:"'Archivo', sans-serif"},isDarkTheme:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,theme:{dark:["".concat(n.prefix,"bg-slate-700"),"".concat(n.prefix,"text-white")],light:["".concat(n.prefix,"bg-white"),"".concat(n.prefix,"text-black")]},launcher:{},onOpen:function(t,e){e.classList.remove("fa-inbox"),e.classList.add("fa-spinner"),t()},onClose:function(t){t.classList.remove("fa-spinner"),t.classList.add("fa-inbox")}}},4511:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return i(t,arguments,c(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)},o(t)}function i(t,e,r){return i=a()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&s(o,r.prototype),o},i.apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}r.d(e,{Z:()=>l});const l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(l,t);var e,r,o,i=(r=l,o=a(),function(){var t,e=c(r);if(o){var i=c(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,t)).name="EmbeddableException: ",console.log("................................","\nException: ".concat(e.name," \nMessage: ").concat(e.message," \nStack: ").concat(e.stack,"\n"),"................................."),e}return e=l,Object.defineProperty(e,"prototype",{writable:!1}),e}(o(Error))},3692:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}r.d(e,{Z:()=>a});const a=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(c,t);var e,r,a,s=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=i(r);if(a){var o=i(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),s.apply(this,arguments)}return e=c,Object.defineProperty(e,"prototype",{writable:!1}),e}(r(4246)))},4031:(t,e,r)=>{"use strict";r.d(e,{Z:()=>j,w:()=>k});var n=r(5105),o=r(412),i=(r(4108),r(7397)),a=r(4511),s=r(3420),c=r(3692);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(){u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new L(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var w=y.prototype=h.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,s){var c=d(t[n],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),c(w,s,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function f(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===l(o)?o:String(o)),n)}var o}function h(t,e){v(t,e),e.add(t)}function v(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function m(t,e,r){return function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}(t,b(t,e,"set"),r),r}function b(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}var g=new WeakMap,w=new WeakSet,x=new WeakSet,E=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,x),h(this,w),r=g,n={writable:!0,value:null===i.Z||void 0===i.Z||null===(e=i.Z.colors)||void 0===e?void 0:e.appBgColor},v(this,r),r.set(this,n),this.navigation={links:[],elements:[],bar:null,visible:!0,availableElementsContainer:null,defaultOverlayMenu:null},this.running=!1,this.minimized=!1,s.ZP.setActivity(this)}var e,r,l;return e=t,r=[{key:"refresh",value:function(t){return t.frame.replaceWith(t.frame),t}},{key:"random",value:function(){return Math.floor(9999*Math.random())}},{key:"createId",value:function(){var t=this.random();this.frame.setAttribute("id",t),this.id=t}},{key:"getId",value:function(){return this.id}},{key:"getFrameColor",value:function(){return function(t,e){return e.get?e.get.call(t):e.value}(this,b(this,g,"get"))}},{key:"setFrameColor",value:function(t){null!=t&&t.trim().startsWith("bg-")?m(this,g,t.replace("bg-","")):m(this,g,t)}},{key:"getNavigationBar",value:function(){return this.navigation.bar}},{key:"setNavigationLinks",value:function(t){var e,r,n,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).append,i=void 0!==o&&o;if(!(t instanceof Array))throw new a.Z("Argument must be an array");i?null===(e=this.navigation)||void 0===e||(r=e.links).push.apply(r,function(t){if(Array.isArray(t))return d(t)}(n=t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):this.navigation.links=t,this.createNavigationBar()}},{key:"getNavigationElements",value:function(){return this.navigation.elements.slice(1)}},{key:"createNavigationBar",value:function(){var t,e,r,n=this,i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).refresh,a=void 0!==i&&i;if(null===(t=this.navigation)||void 0===t||t.links,!this.navigation.visible)return null===(r=this.navigation.bar)||void 0===r?void 0:r.remove();var c=this.frame;if(a)return this.frame.querySelector(".nav").remove(),this.createNavigationBar();var l,u=c.nextNode(),f=u.nextNode(null,"button");u.nextNode((null==this||null===(e=this.config)||void 0===e?void 0:e.appName)||"","p"),f.type="button",f.setCss("fa ".concat(this.hasPrev?"fa-arrow-left":"fa-times"," px-2 py-1 font-extralight bg-gray-500/10 rounded-full text-3xl")),l=u.nextNode(null,"div"),u.setCss("nav flex justify-between items-center text-white px-3");var d=l.nextNode(null,"button");d.type="button",d.setCss("font-normal p-2 rounded-full fa fa-ellipsis"),d.addEventListener("click",y(this,x,S).bind(this)),this.navigation.elements.push(d),f.addEventListener("click",(function(t){try{var e=(0,o.zY)();n.hasPrev||(e.launched=!1,e.onClose(e.launcher)),s.ZP.destroy(n)}catch(t){}})),this.navigation.elements.unshift(f),this.navigation.availableElementsContainer=l,this.navigation.bar=u}},{key:"getAvailableElementsContainer",value:function(){return this.navigation.availableElementsContainer}},{key:"addEvent",value:function(t,e){this.frame.addEventListener(t,(function(t){e(t)}))}},{key:"createActivity",value:function(){return this.running=!0,this.frame=(0,n.dS)("div"),this.frame.setCss("fixed w-full h-full top-0 left-0 right-0 bottom-0 p-5 overflow-auto z-[9999]"),this.createId(),this.setNavigationLinks([{text:"End Chat",icon:"fa fa-close",event:"end_chat",callback:function(){}},{text:"Minimize",icon:"fa fa-arrows-to-dot",event:"minimize",muted:!0,callback:function(){}},{text:"Report Issues",icon:"fa fa-exclamation-triangle",callback:function(){},event:"report_issues"}]),this.config=y(this,w,O).call(this),this.next(),c.Z.emit("removeOverlaysOnNewActivity"),{Activity:this,frame:this.frame}}},{key:"next",value:function(){this.running?(0,n.UG)("body").appendChild(this.frame):this.children}},{key:"setData",value:function(t){this.data=t}},{key:"createChildren",value:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var s=null===(t=Array.from(r))||void 0===t?void 0:t.flat(1/0),c=s.pop();if((0,n.Wl)(c)&&s.push(c),!s.every((function(t){return(0,n.Wl)(t)})))throw new a.Z("Argument (Middlewares) must be a valid callback function");for(var l=0;l<s.length;l++){var u=(0,s[l])({frame:this.frame,context:this},c);if(u instanceof Error){(0,o.bw)(this,u);break}if((0,n.Wl)(u)){var f=u(this,c);this.object=f}(0,n.Mx)(u)&&(this.children=u)}}},{key:"updateActivity",value:function(){if("function"!=typeof fragment)throw new a.Z("Argument must be a valid callback function");return this}},{key:"createFooter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=t.nextNode(e||"Developed by Itzfeminisce",r||"p").setCss("text-center text-sm p-3");return this.footer=n,n}},{key:"removeFooter",value:function(t){t.removeChild(this.footer)}},{key:"minimize",value:function(){this.minimized=!0,this.frame.setCss("hidden")}},{key:"maximize",value:function(){this.minimized=!1,this.frame.setCss("block")}}],l=[{key:"getManager",value:function(){return s.ZP}}],r&&p(e.prototype,r),l&&p(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();function O(){return JSON.parse(window.localStorage.getItem("clientConfig"))}function S(){var t,e=this,r=this.frame.parentElement.nextNode().setCss("fixed w-screen h-screen !bg-black/30 inset-0 m-auto z-[9999] app-overlay");c.Z.on("removeOverlaysOnNewActivity",(function(){return r.remove()})),r.addEventListener("click",(function(t){t.target.classList.contains("app-overlay")&&t.target.remove()}),!1);var n=r.nextNode().setCss("absolute bottom-5 inset-x-0 m-auto max-h-[200px] w-[90%] rounded-2xl overflow-y-auto p-3"),o=y(this,w,O).call(this),i=null===(t=this.navigation)||void 0===t?void 0:t.links;i.forEach((function(t,r){var a,s,l=null===(a=t.text)||void 0===a||null===(s=a.replaceAll(/\W/g,"_"))||void 0===s?void 0:s.toLowerCase(),u=n.nextNode().setCss("grid grid-cols-5 items-center ".concat(r<i.length-1&&"border-b border-b-slate-300"));u.nextNode(null,"i").setCss("".concat(null==t?void 0:t.icon," mr-3 !text-slate-").concat(o.isDarkTheme?"300":"500"," p-3 rounded-full !text-xl"));var f=u.nextNode("".concat(t.text),"button");f.dataset.action=null==t?void 0:t.event,f.setCss("disabled:opacity-25 col-span-4 block text-start !!text-slate-".concat(o.isDarkTheme?"300":"500","\n ")),f.disabled="muted"in t&&"disabled",f.addEventListener("click",(function(){c.Z.emit("".concat(l),{action:l,context:e})}))}))}c.Z.on("end_chat",function(){var t,e=(t=u().mark((function t(e){var n,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.context,t.next=3,r.e(157).then(r.bind(r,8157));case 3:n=t.sent,o=n.default,(new E).createActivity().Activity.createChildren([o]);case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,s,"next",t)}function s(t){f(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),c.Z.on("minimize",(function(t){t.context.manager.activities.forEach((function(t){t.minimize()}))})),c.Z.on("maximize",(function(t){t.context.manager.activities.forEach((function(t){t.maximize()}))})),c.Z.on("report_issues",(function(){}));const j=E;var k=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];console.log(e);var n=(new E).createActivity();return n.Activity.createChildren(e),n}},3420:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>l});var n=r(5105);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,r){return(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===o(e)?e:String(e)}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,o;return e=t,o=[{key:"setActivity",value:function(e){t.currentActivity=e,e.manager=t,t.activities.push(e);var r=t.activities.at(t.activities.indexOf(this)-1);e.hasPrev=!!r,e.prev=r}},{key:"replaceActivity",value:function(e){t.activities[t.activities.indexOf(t.currentActivity)||t.activities.length-1]=e}},{key:"getCurrentActivity",value:function(){return t.activities.at(-1)}},{key:"getPrev",value:function(){return t.activities.at(-2)}},{key:"prev",value:function(){return t.splice[1],new(0,t[t.activities.length-1])}},{key:"next",value:function(){}},{key:"destroy",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=t.activities=t.activities.filter((function(t){return!(e.id==t.id)})),i=o.at(-1)||null;i&&o.length<2&&(i.hasPrev=!1,i.prev=void 0),t.activities=o,setTimeout((function(){(0,n.sZ)({node:e.frame,animation:"slideOutRight",callback:function(){var t;null===(t=e.frame)||void 0===t||t.remove()}})}),r)}}],(r=[{key:"static",value:function(){return t.activities.length>1}},{key:"getHasPrev",value:function(t){return t.manager.hasPrev}},{key:"setHasPrev",value:function(t){t.manager.hasPrev=!0}}])&&i(e.prototype,r),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();a(c,"activities",[]),a(c,"currentActivity",null);const l=c},5105:(t,e,r)=>{"use strict";function n(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{HD:()=>v,Kn:()=>p,Mx:()=>g,Su:()=>u,Tj:()=>E,UG:()=>f,Wl:()=>m,dS:()=>d,gB:()=>c,iV:()=>a,kJ:()=>y,nM:()=>O,oL:()=>w,qL:()=>x,sZ:()=>s,vQ:()=>l,vT:()=>b});var i=r(2410),a=function(t){var e=t.match(/\b(?:https?:\/\/|www\.)\S+\b/g);if(!e)return t;var r,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}(e);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i;i.startsWith("http")||i.startsWith("www.")||(a="http://"+i);var s='<a href="'.concat(i,'" target="_blank" class="text-bold underline">').concat(a,"</a>");t=t.replace(i,s)}}catch(t){o.e(t)}finally{o.f()}return t},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{prefix:"animate__"},e=t.node,r=void 0===e?null:e,n=t.animation,o=void 0===n?"slideInRight":n,i=t.prefix,a=void 0===i?"animate__":i,s=t.callback,c=void 0===s?null:s;if(!r)throw new Error("Invalid Element Type to set animation.");var l="".concat(a).concat(o);return r.setCss("".concat(a,"animated ").concat(l," animate__faster")),r.addEventListener("animationend",(function(t){t.stopPropagation(),r.classList.remove("".concat(a,"animated"),l),c&&"function"==typeof c&&c(arguments)}),{once:!0}),r},c=function(t){var e;e=t,new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)&&window.confirm("You will be redirected to an external address. Ensure you trust this address before proceeding. Continue?")&&(window.location.href=t)},l=function(t){var e=document.createElement("input");document.body.appendChild(e),e.value=t,e.focus(),e.select();try{var r=document.execCommand("copy")?"successful":"unsuccessful";console.log("Copying text command was "+r,e.value)}catch(t){console.log("Oops, unable to copy")}return document.body.removeChild(e),t},u=function(t){var e;return null===(e=i(t))||void 0===e?void 0:e.at(0)},f=function(t){return document.querySelector(t)},d=function(t,e){var r=document.createElement(t);if(e instanceof Function)return e(r);if(e instanceof Object){if(e.children&&(r.children=e.children),h(e,"attributes")&&p(e.attributes))for(var n in e.attributes)r.setAttribute(n,e.attributes[n]);h(e,"attributes")&&y(e.attributes)&&e.attributes.forEach((function(t){if(!h(t,"key")||!h(t,"value"))throw new Error("option.attributes must be an array of Object with {key:String, value:String} format");r.setAttribute(t.key,t.value)}))}return"string"==typeof e&&(r.innerHTML=e),r},p=function(t){var e;return"Object"===(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name)},h=function(t,e){return p(t)&&Object.keys(t).includes(e)},v=function(t){var e;return"String"===(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name)},y=function(t){var e;return"Array"===(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name)},m=function(t){var e;return"Function"===(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name)},b=function(t){var e;return null==t||null===(e=t.constructor)||void 0===e?void 0:e.name.startsWith("HTML")},g=b,w=function(t){var e;return null==t||null===(e=t.constructor)||void 0===e?void 0:e.name},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"=",n=[],o=new Map;return function t(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";for(var s in i){var c=i[s];p(c)&&Object.keys(c).length>0?t(c,a+s+e):(n.push("".concat(a+s).concat(r).concat(c)),o.set("".concat(a).concat(s),c))}}(t),o},E=function(t){return t.reduce((function(t,e){var r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),o=r[0],i=r[1],a=o.split("."),s=parseInt(a.shift()),c=a.pop(),l=t[s]||{};return l[c||l.length]=i,t[s]=l,t}),[])},O=function(t){var e={count:3,loader:!1,time:void 0};return{isTyping:function(){return function(t){if(!t||!b(t))throw new Error("Argument passed to 'typing' must be a valid HTMLElement");t.setCss("!text-green-500 px-2 py-px rounded-lg"),e.loader=t,e.time=setInterval((function(){e.count<=0&&(e.loader.innerHTML="",e.count=3),e.count--,e.loader.innerHTML=e.loader.innerHTML+"•"}),500)}(t)},doneTyping:function(){clearInterval(e.time)},notify:function(t,r){var n;(function(t){e.loader.innerHTML=t})(t),m(r)&&(r(t),null===(n=e.loader)||void 0===n||n.clearChildren())}}}},412:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new L(n||[]);return i(a,"_invoke",{value:O(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function h(){}function v(){}function y(){}var m={};u(m,s,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(P([])));g&&g!==e&&r.call(g,s)&&(m=g);var w=y.prototype=h.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(i,a,s,c){var l=d(t[i],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==n(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,c)}))}c(l.arg)}var a;i(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),u(w,l,"Generator"),u(w,s,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function i(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}r.d(e,{bw:()=>s,cI:()=>u,cT:()=>l,zY:()=>c}),r(3420),r(6777);var a=JSON.parse(window.localStorage.getItem("clientConfig")),s=function(t,e){var r=t.frame,n=e.message;r.nextNode(n).setCss("text-8xl p-5 text-center")},c=function(){return window[null==a?void 0:a.appName]=window[null==a?void 0:a.appName]||{}},l=function(){var t,e=(t=o().mark((function t(){var e,n,i,a,s,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(t){var e=new Audio(t);e.volume=.35,e.play()},t.next=3,r.e(711).then(r.t.bind(r,1711,17));case 3:return e=t.sent,n=e.default,t.next=7,r.e(633).then(r.t.bind(r,3633,17));case 7:return i=t.sent,a=i.default,s={SENT:a,RECEIVED:n},t.abrupt("return",[s,c]);case 11:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))});return function(){return e.apply(this,arguments)}}(),u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{url:"?",method:"GET",children:[],preventDefault:!0},r=e.url,n=e.method,o=e.children,i=e.preventDefault;return t.nextForm(r,n,o,i)}},4108:(t,e,r)=>{"use strict";r.d(e,{Bi:()=>n,OD:()=>i,Ug:()=>o});var n=function(){return new Promise((function(t,e){var r=document.createElement("style");r.rel="stylesheet",r.className="dependency",r.crossorigin="anonymous",r.referrerPolicy="no-referrer",document.body.appendChild(r),t(r)}))},o=function(){return new Promise((function(t,e){var r=document.createElement("link");r.href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css",r.rel="stylesheet",r.className="dependency",r.crossorigin="anonymous",r.referrerPolicy="no-referrer",document.body.appendChild(r),t(r)}))},i=function(){return new Promise((function(t,e){var r=document.createElement("link");r.rel="stylesheet",r.href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css",r.className="dependency",r.referrerPolicy="no-referrer",document.body.appendChild(r),t(r)}))}},4246:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},s.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,o,i,a){var s=r?r+t:t;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,n),!0;case 4:return u.fn.call(u.context,e,n,o),!0;case 5:return u.fn.call(u.context,e,n,o,i),!0;case 6:return u.fn.call(u.context,e,n,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(t,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,e);break;case 3:u[l].fn.call(u[l].context,e,n);break;case 4:u[l].fn.call(u[l].context,e,n,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},s.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==e||o&&!s[c].once||n&&s[c].context!==n)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,t.exports=s},2410:t=>{"use strict";t.exports=(t,e=!1)=>{const r=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()'@:%_\+.~#?!&//=]*)/gi;if("string"!=typeof t)throw new TypeError("The str argument should be a string, got "+typeof t);if(t){let n=t.match(r);if(n)return e?n.map((t=>t.toLowerCase())):n}}},1016:t=>{t.exports={content:["./src/**/*.js","./public/*.html"],theme:{extend:{fontFamily:{narrow:"'PT Sans Narrow', sans-serif"}}},plugins:[],prefix:""}},6777:(t,e,r)=>{"use strict";function n(t,e){return function(){return t.apply(e,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(s=Object.create(null),t=>{const e=o.call(t);return s[e]||(s[e]=e.slice(8,-1).toLowerCase())});var s;const c=t=>(t=t.toLowerCase(),e=>a(e)===t),l=t=>e=>typeof e===t,{isArray:u}=Array,f=l("undefined"),d=c("ArrayBuffer"),p=l("string"),h=l("function"),v=l("number"),y=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==a(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},b=c("Date"),g=c("File"),w=c("Blob"),x=c("FileList"),E=c("URLSearchParams");function O(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,o;if("object"!=typeof t&&(t=[t]),u(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const o=r?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(n=0;n<i;n++)a=o[n],e.call(null,t[a],a,t)}}function S(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,k=t=>!f(t)&&t!==j,L=(P="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>P&&t instanceof P);var P;const C=c("HTMLFormElement"),A=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),T=c("RegExp"),_=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};O(r,((r,o)=>{!1!==e(r,o,t)&&(n[o]=r)})),Object.defineProperties(t,n)},N="abcdefghijklmnopqrstuvwxyz",R="0123456789",F={DIGIT:R,ALPHA:N,ALPHA_DIGIT:N+N.toUpperCase()+R},I=c("AsyncFunction");var z={isArray:u,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&h(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||h(t.append)&&("formdata"===(e=a(t))||"object"===e&&h(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:p,isNumber:v,isBoolean:t=>!0===t||!1===t,isObject:y,isPlainObject:m,isUndefined:f,isDate:b,isFile:g,isBlob:w,isRegExp:T,isFunction:h,isStream:t=>y(t)&&h(t.pipe),isURLSearchParams:E,isTypedArray:L,isFileList:x,forEach:O,merge:function t(){const{caseless:e}=k(this)&&this||{},r={},n=(n,o)=>{const i=e&&S(r,o)||o;m(r[i])&&m(n)?r[i]=t(r[i],n):m(n)?r[i]=t({},n):u(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:o}={})=>(O(e,((e,o)=>{r&&h(e)?t[o]=n(e,r):t[o]=e}),{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,a,s;const c={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)s=o[a],n&&!n(s,t,e)||c[s]||(e[s]=t[s],c[s]=!0);t=!1!==r&&i(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:c,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!v(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:C,hasOwnProperty:A,hasOwnProp:A,reduceDescriptors:_,freezeMethods:t=>{_(t,((e,r)=>{if(h(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];h(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return u(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:S,global:j,isContextDefined:k,ALPHABET:F,generateString:(t=16,e=F.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&h(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(y(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=u(t)?[]:{};return O(t,((t,e)=>{const i=r(t,n+1);!f(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:I,isThenable:t=>t&&(y(t)||h(t))&&h(t.then)&&h(t.catch)};function D(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}z.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const M=D.prototype,B={};function G(t){return z.isPlainObject(t)||z.isArray(t)}function U(t){return z.endsWith(t,"[]")?t.slice(0,-2):t}function W(t,e,r){return t?t.concat(e).map((function(t,e){return t=U(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{B[t]={value:t}})),Object.defineProperties(D,B),Object.defineProperty(M,"isAxiosError",{value:!0}),D.from=(t,e,r,n,o,i)=>{const a=Object.create(M);return z.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),D.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const H=z.toFlatObject(z,{},null,(function(t){return/^is[A-Z]/.test(t)}));function q(t,e,r){if(!z.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!z.isUndefined(e[t])}))).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&z.isSpecCompliantForm(e);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(z.isDate(t))return t.toISOString();if(!s&&z.isBlob(t))throw new D("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(t)||z.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,r,o){let s=t;if(t&&!o&&"object"==typeof t)if(z.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(z.isArray(t)&&function(t){return z.isArray(t)&&!t.some(G)}(t)||(z.isFileList(t)||z.endsWith(r,"[]"))&&(s=z.toArray(t)))return r=U(r),s.forEach((function(t,n){!z.isUndefined(t)&&null!==t&&e.append(!0===a?W([r],n,i):null===a?r:r+"[]",c(t))})),!1;return!!G(t)||(e.append(W(o,r,i),c(t)),!1)}const u=[],f=Object.assign(H,{defaultVisitor:l,convertValue:c,isVisitable:G});if(!z.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!z.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),z.forEach(r,(function(r,i){!0===(!(z.isUndefined(r)||null===r)&&o.call(e,r,z.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),u.pop()}}(t),e}function Z(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return enc