mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
2 lines
100 KiB
JavaScript
2 lines
100 KiB
JavaScript
!function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[t]={exports:{}};a[t][0].call(i.exports,function(e){return u(a[t][1][e]||e)},i,i.exports,o,a,s,l)}return s[t].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(f,e,t){(function(i){!function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var n="function"==typeof f&&f;if(!e&&n)return n(t,!0);if(c)return c(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[t]={exports:{}};a[t][0].call(i.exports,function(e){return u(a[t][1][e]||e)},i,i.exports,o,a,s,l)}return s[t].exports}for(var c="function"==typeof f&&f,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,H,t){(function(R,V){new function(){function B(e,t,n,r,i,o){return{tag:e,key:t,attrs:n,children:r,text:i,dom:o,domSize:void 0,state:{},events:void 0,instance:void 0,skip:!1}}B.normalize=function(e){return Array.isArray(e)?B("[",void 0,void 0,B.normalizeChildren(e),void 0,void 0):null!=e&&"object"!=typeof e?B("#",void 0,void 0,!1===e?"":e,void 0,void 0):e},B.normalizeChildren=function(e){for(var t=0;t<e.length;t++)e[t]=B.normalize(e[t]);return e};var d=/(?:(^|#|\.)([^#\.\[\]]+))|(\[(.+?)(?:\s*=\s*("|'|)((?:\\["'\]]|.)*?)\5)?\])/g,p={};function e(e){if(null==e||"string"!=typeof e&&"function"!=typeof e.view)throw Error("The selector must be either a string or a component.");if("string"==typeof e&&void 0===p[e]){for(var t,s,n=[],l={};t=d.exec(e);){var r=t[1],i=t[2];if(""===r&&""!==i)s=i;else if("#"===r)l.id=i;else if("."===r)n.push(i);else if("["===t[3][0]){var o=t[6];o=o&&o.replace(/\\(["'])/g,"$1").replace(/\\\\/g,"\\"),"class"===t[4]?n.push(o):l[t[4]]=o||!0}}0<n.length&&(l.className=n.join(" ")),p[e]=function(e,t){var n,r,i=!1,o=e.className||e.class;for(var a in l)e[a]=l[a];for(var a in void 0!==o&&(void 0!==e.class&&(e.class=void 0,e.className=o),void 0!==l.className&&(e.className=l.className+" "+o)),e)if("key"!==a){i=!0;break}return Array.isArray(t)&&1==t.length&&null!=t[0]&&"#"===t[0].tag?r=t[0].children:n=t,B(s||"div",e.key,i?e:void 0,n,r,void 0)}}var a,u,c;if(c=null==arguments[1]||"object"==typeof arguments[1]&&void 0===arguments[1].tag&&!Array.isArray(arguments[1])?(a=arguments[1],2):1,arguments.length===c+1)u=Array.isArray(arguments[c])?arguments[c]:[arguments[c]];else{u=[];for(var f=c;f<arguments.length;f++)u.push(arguments[f])}return"string"==typeof e?p[e](a||{},B.normalizeChildren(u)):B(e,a&&a.key,a||{},B.normalizeChildren(u),void 0,void 0)}e.trust=function(e){return null==e&&(e=""),B("<",void 0,void 0,e,void 0,void 0)},e.fragment=function(e,t){return B("[",e.key,e,B.normalizeChildren(t),void 0,void 0)};var t=e;if((m=function(e){if(!(this instanceof m))throw new Error("Promise must be called with `new`");if("function"!=typeof e)throw new TypeError("executor must be a function");var o=this,a=[],s=[],i=t(a,!0),l=t(s,!1),u=o._instance={resolvers:a,rejectors:s},c="function"==typeof V?V:setTimeout;function t(r,i){return function t(n){var e;try{if(!i||null==n||"object"!=typeof n&&"function"!=typeof n||"function"!=typeof(e=n.then))c(function(){i||0!==r.length||console.error("Possible unhandled promise rejection:",n);for(var e=0;e<r.length;e++)r[e](n);a.length=0,s.length=0,u.state=i,u.retry=function(){t(n)}});else{if(n===o)throw new TypeError("Promise can't be resolved w/ itself");f(e.bind(n))}}catch(e){l(e)}}}function f(e){var n=0;function t(t){return function(e){0<n++||t(e)}}var r=t(l);try{e(t(i),r)}catch(e){r(e)}}f(e)}).prototype.then=function(e,t){var i,o,a=this._instance;function n(t,e,n,r){e.push(function(e){if("function"!=typeof t)n(e);else try{i(t(e))}catch(e){o&&o(e)}}),"function"==typeof a.retry&&r===a.state&&a.retry()}var r=new m(function(e,t){i=e,o=t});return n(e,a.resolvers,i,!0),n(t,a.rejectors,o,!1),r},m.prototype.catch=function(e){return this.then(null,e)},m.resolve=function(t){return t instanceof m?t:new m(function(e){e(t)})},m.reject=function(n){return new m(function(e,t){t(n)})},m.all=function(s){return new m(function(n,r){var i=s.length,o=0,a=[];if(0===s.length)n([]);else for(var e=0;e<s.length;e++)!function(t){function e(e){o++,a[t]=e,o===i&&n(a)}null==s[t]||"object"!=typeof s[t]&&"function"!=typeof s[t]||"function"!=typeof s[t].then?e(s[t]):s[t].then(e,r)}(e)})},m.race=function(r){return new m(function(e,t){for(var n=0;n<r.length;n++)r[n].then(e,t)})},"undefined"!=typeof window){void 0===window.Promise&&(window.Promise=m);var m=window.Promise}else void 0!==R&&(void 0===R.Promise&&(R.Promise=m),m=R.Promise);function c(e){if("[object Object]"!==Object.prototype.toString.call(e))return"";var r=[];for(var t in e)i(t,e[t]);return r.join("&");function i(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)i(e+"["+n+"]",t[n]);else if("[object Object]"===Object.prototype.toString.call(t))for(var n in t)i(e+"["+n+"]",t[n]);else r.push(encodeURIComponent(e)+(null!=t&&""!==t?"="+encodeURIComponent(t):""))}}function r(e){var a,c=e.document,o=c.createDocumentFragment();function y(e,t,n,r,i,o,a){for(var s=n;s<r;s++){var l=t[s];null!=l&&N(e,O(l,i,a),o)}}function O(e,t,n){var r=e.tag;if(null!=e.attrs&&l(e.attrs,e,t),"string"!=typeof r)return function(e,t,n){e.state=Object.create(e.tag);var r=e.tag.view;if(null!=r.reentrantLock)return o;if(r.reentrantLock=!0,l(e.tag,e,t),e.instance=B.normalize(r.call(e.state,e)),(r.reentrantLock=null)==e.instance)return e.domSize=0,o;if(e.instance===e)throw Error("A view cannot return the vnode it received as arguments");var i=O(e.instance,t,n);return e.dom=e.instance.dom,e.domSize=null!=e.dom?e.instance.domSize:0,i}(e,t,n);switch(r){case"#":return e.dom=c.createTextNode(e.children);case"<":return S(e);case"[":return function(e,t,n){var r=c.createDocumentFragment();if(null!=e.children){var i=e.children;y(r,i,0,i.length,t,null,n)}return e.dom=r.firstChild,e.domSize=r.childNodes.length,r}(e,t,n);default:return function(e,t,n){var r=e.tag;switch(e.tag){case"svg":n="http://www.w3.org/2000/svg";break;case"math":n="http://www.w3.org/1998/Math/MathML"}var i,o,a=e.attrs,s=a&&a.is,l=n?s?c.createElementNS(n,r,{is:s}):c.createElementNS(n,r):s?c.createElement(r,{is:s}):c.createElement(r);if(e.dom=l,null!=a&&function(e,t,n){for(var r in t)D(e,r,null,t[r],n)}(e,a,n),null!=e.attrs&&null!=e.attrs.contenteditable)M(e);else if(null!=e.text&&(""!==e.text?l.textContent=e.text:e.children=[B("#",void 0,void 0,e.text,void 0,void 0)]),null!=e.children){var u=e.children;y(l,u,0,u.length,t,null,n),o=(i=e).attrs,"select"===i.tag&&null!=o&&("value"in o&&D(i,"value",null,o.value,void 0),"selectedIndex"in o&&D(i,"selectedIndex",null,o.selectedIndex,void 0))}return l}(e,t,n)}}function S(e){var t={caption:"table",thead:"table",tbody:"table",tfoot:"table",tr:"tbody",th:"tr",td:"tr",colgroup:"table",col:"colgroup"}[(e.children.match(/^\s*?<(\w+)/im)||[])[1]]||"div",n=c.createElement(t);n.innerHTML=e.children,e.dom=n.firstChild,e.domSize=n.childNodes.length;for(var r,i=c.createDocumentFragment();r=n.firstChild;)i.appendChild(r);return i}function k(e,t,n,r,i,o){if(t!==n&&(null!=t||null!=n))if(null==t)y(e,n,0,n.length,r,i,void 0);else if(null==n)E(t,0,t.length,n);else{if(t.length===n.length){for(var a=!1,s=0;s<n.length;s++)if(null!=n[s]&&null!=t[s]){a=null==n[s].key&&null==t[s].key;break}if(a){for(s=0;s<t.length;s++)t[s]!==n[s]&&(null==t[s]&&null!=n[s]?N(e,O(n[s],r,o),x(t,s+1,i)):null==n[s]?E(t,s,s+1,n):C(e,t[s],n[s],r,x(t,s+1,i),!1,o));return}}var l=function(e,t){if(null!=e.pool&&Math.abs(e.pool.length-t.length)<=Math.abs(e.length-t.length)){var n=e[0]&&e[0].children&&e[0].children.length||0,r=e.pool[0]&&e.pool[0].children&&e.pool[0].children.length||0,i=t[0]&&t[0].children&&t[0].children.length||0;if(Math.abs(r-i)<=Math.abs(n-i))return!0}return!1}(t,n);l&&(t=t.concat(t.pool));for(var u,c=0,f=0,d=t.length-1,p=n.length-1;c<=d&&f<=p;)if((m=t[c])!==(h=n[f])||l)if(null==m)c++;else if(null==h)f++;else if(m.key===h.key)f++,C(e,m,h,r,x(t,++c,i),l,o),l&&m.tag===h.tag&&N(e,A(m),i);else if((m=t[d])!==h||l)if(null==m)d--;else if(null==h)f++;else{if(m.key!==h.key)break;C(e,m,h,r,x(t,d+1,i),l,o),(l||f<p)&&N(e,A(m),x(t,c,i)),d--,f++}else d--,f++;else c++,f++;for(;c<=d&&f<=p;){var m,h;if((m=t[d])!==(h=n[p])||l)if(null==m)d--;else if(null==h)p--;else if(m.key===h.key)C(e,m,h,r,x(t,d+1,i),l,o),l&&m.tag===h.tag&&N(e,A(m),i),null!=m.dom&&(i=m.dom),d--,p--;else{if(u=u||w(t,d),null!=h){var v=u[h.key];if(null!=v){var g=t[v];C(e,g,h,r,x(t,d+1,i),l,o),N(e,A(g),i),t[v].skip=!0,null!=g.dom&&(i=g.dom)}else{var b=O(h,r,void 0);N(e,b,i),i=b}}p--}else d--,p--;if(p<f)break}y(e,n,f,p+1,r,i,o),E(t,c,d+1,n)}}function C(l,u,e,t,n,r,i){var o,a,s,c,f,d,p,m,h,v,g,b,y,w,x,E,T,_=u.tag;if(_===e.tag){if(e.state=u.state,e.events=u.events,x=u,null!=(w=e).attrs&&"function"==typeof w.attrs.onbeforeupdate&&(E=w.attrs.onbeforeupdate.call(w.state,w,x)),"string"!=typeof w.tag&&"function"==typeof w.tag.onbeforeupdate&&(T=w.tag.onbeforeupdate.call(w.state,w,x)),!(void 0===E&&void 0===T||E||T)&&(w.dom=x.dom,w.domSize=x.domSize,w.instance=x.instance,1))return;if(null!=e.attrs&&I(e.attrs,e,t,r),"string"==typeof _)switch(_){case"#":y=e,(b=u).children.toString()!==y.children.toString()&&(b.dom.nodeValue=y.children),y.dom=b.dom;break;case"<":m=l,v=e,g=n,(h=u).children!==v.children?(A(h),N(m,S(v),g)):(v.dom=h.dom,v.domSize=h.domSize);break;case"[":!function(e,t,n,r){k(l,u.children,e.children,t,n,r);var i=0,o=e.children;if((e.dom=null)!=o){for(var a=0;a<o.length;a++){var s=o[a];null!=s&&null!=s.dom&&(null==e.dom&&(e.dom=s.dom),i+=s.domSize||1)}1!==i&&(e.domSize=i)}}(e,t,n,i);break;default:!function(e,t,n,r){var i=t.dom=e.dom;switch(t.tag){case"svg":r="http://www.w3.org/2000/svg";break;case"math":r="http://www.w3.org/1998/Math/MathML"}"textarea"===t.tag&&(null==t.attrs&&(t.attrs={}),null!=t.text&&(t.attrs.value=t.text,t.text=void 0)),function(e,t,n,r){if(null!=n)for(var i in n)D(e,i,t&&t[i],n[i],r);if(null!=t)for(var i in t)null!=n&&i in n||("className"===i&&(i="class"),"o"!==i[0]||"n"!==i[1]||P(i)?"key"!==i&&e.dom.removeAttribute(i):F(e,i,void 0))}(t,e.attrs,t.attrs,r),null!=t.attrs&&null!=t.attrs.contenteditable?M(t):null!=e.text&&null!=t.text&&""!==t.text?e.text.toString()!==t.text.toString()&&(e.dom.firstChild.nodeValue=t.text):(null!=e.text&&(e.children=[B("#",void 0,void 0,e.text,void 0,e.dom.firstChild)]),null!=t.text&&(t.children=[B("#",void 0,void 0,t.text,void 0,void 0)]),k(i,e.children,t.children,n,null,r))}(u,e,t,i)}else o=l,a=u,c=t,f=n,d=r,p=i,(s=e).instance=B.normalize(s.tag.view.call(s.state,s)),I(s.tag,s,c,d),null!=s.instance?(null==a.instance?N(o,O(s.instance,c,p),f):C(o,a.instance,s.instance,c,f,d,p),s.dom=s.instance.dom,s.domSize=s.instance.domSize):null!=a.instance?(L(a.instance,null),s.dom=void 0,s.domSize=0):(s.dom=a.dom,s.domSize=a.domSize)}else L(u,null),N(l,O(e,t,i),n)}function w(e,t){var n={},r=0;for(r=0;r<t;r++){var i=e[r];if(null!=i){var o=i.key;null!=o&&(n[o]=r)}}return n}function A(e){var t=e.domSize;if(null==t&&null!=e.dom)return e.dom;var n=c.createDocumentFragment();if(0<t){for(var r=e.dom;--t;)n.appendChild(r.nextSibling);n.insertBefore(r,n.firstChild)}return n}function x(e,t,n){for(;t<e.length;t++)if(null!=e[t]&&null!=e[t].dom)return e[t].dom;return n}function N(e,t,n){n&&n.parentNode?e.insertBefore(t,n):e.appendChild(t)}function M(e){var t=e.children;if(null!=t&&1===t.length&&"<"===t[0].tag){var n=t[0].children;e.dom.innerHTML!==n&&(e.dom.innerHTML=n)}else if(null!=e.text||null!=t&&0!==t.length)throw new Error("Child node of a contenteditable must be trusted")}function E(e,t,n,r){for(var i=t;i<n;i++){var o=e[i];null!=o&&(o.skip?o.skip=!1:L(o,r))}}function L(r,i){var e,o=1,a=0;function t(){if(++a===o&&(function e(t){if(t.attrs&&t.attrs.onremove&&t.attrs.onremove.call(t.state,t),"string"!=typeof t.tag&&t.tag.onremove&&t.tag.onremove.call(t.state,t),null!=t.instance)e(t.instance);else{var n=t.children;if(Array.isArray(n))for(var r=0;r<n.length;r++){var i=n[r];null!=i&&e(i)}}}(r),r.dom)){var e=r.domSize||1;if(1<e)for(var t=r.dom;--e;)s(t.nextSibling);s(r.dom),null==i||null!=r.domSize||null!=(n=r.attrs)&&(n.oncreate||n.onupdate||n.onbeforeremove||n.onremove)||"string"!=typeof r.tag||(i.pool?i.pool.push(r):i.pool=[r])}var n}r.attrs&&r.attrs.onbeforeremove&&null!=(e=r.attrs.onbeforeremove.call(r.state,r))&&"function"==typeof e.then&&(o++,e.then(t,t)),"string"!=typeof r.tag&&r.tag.onbeforeremove&&null!=(e=r.tag.onbeforeremove.call(r.state,r))&&"function"==typeof e.then&&(o++,e.then(t,t)),t()}function s(e){var t=e.parentNode;null!=t&&t.removeChild(e)}function D(e,t,n,r,i){var o=e.dom;if("key"!==t&&"is"!==t&&(n!==r||"value"===t||"checked"===t||"selectedIndex"===t||"selected"===t&&e.dom===c.activeElement||"object"==typeof r)&&void 0!==r&&!P(t)){var a=t.indexOf(":");if(-1<a&&"xlink"===t.substr(0,a))o.setAttributeNS("http://www.w3.org/1999/xlink",t.slice(a+1),r);else if("o"===t[0]&&"n"===t[1]&&"function"==typeof r)F(e,t,r);else if("style"===t)!function(e,t,n){if(t===n&&(e.style.cssText="",t=null),null==n)e.style.cssText="";else if("string"==typeof n)e.style.cssText=n;else{for(var r in"string"==typeof t&&(e.style.cssText=""),n)e.style[r]=n[r];if(null!=t&&"string"!=typeof t)for(var r in t)r in n||(e.style[r]="")}}(o,n,r);else if(t in o&&"href"!==t&&"list"!==t&&"form"!==t&&"width"!==t&&"height"!==t&&void 0===i&&!(e.attrs.is||-1<e.tag.indexOf("-"))){if("input"===e.tag&&"value"===t&&e.dom.value===r&&e.dom===c.activeElement)return;if("select"===e.tag&&"value"===t&&e.dom.value===r&&e.dom===c.activeElement)return;if("option"===e.tag&&"value"===t&&e.dom.value===r)return;o[t]=r}else"boolean"==typeof r?r?o.setAttribute(t,""):o.removeAttribute(t):o.setAttribute("className"===t?"class":t,r)}}function P(e){return"oninit"===e||"oncreate"===e||"onupdate"===e||"onremove"===e||"onbeforeremove"===e||"onbeforeupdate"===e}function F(e,t,n){var r=e.dom,i="function"!=typeof a?n:function(e){var t=n.call(r,e);return a.call(r,e),t};if(t in r)r[t]="function"==typeof n?i:null;else{var o=t.slice(2);if(void 0===e.events&&(e.events={}),e.events[t]===i)return;null!=e.events[t]&&r.removeEventListener(o,e.events[t],!1),"function"==typeof n&&(e.events[t]=i,r.addEventListener(o,e.events[t],!1))}}function l(e,t,n){"function"==typeof e.oninit&&e.oninit.call(t.state,t),"function"==typeof e.oncreate&&n.push(e.oncreate.bind(t.state,t))}function I(e,t,n,r){r?l(e,t,n):"function"==typeof e.onupdate&&n.push(e.onupdate.bind(t.state,t))}return{render:function(e,t){if(!e)throw new Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var n=[],r=c.activeElement;null==e.vnodes&&(e.textContent=""),Array.isArray(t)||(t=[t]),k(e,e.vnodes,B.normalizeChildren(t),n,null,void 0),e.vnodes=t;for(var i=0;i<n.length;i++)n[i]();c.activeElement!==r&&r.focus()},setEventCallback:function(e){return a=e}}}var s,o,n,a,i=(s=window,o=m,a=0,{request:function(a,e){var t=l();a=u(a,e);var n=new o(function(r,i){null==a.method&&(a.method="GET"),a.method=a.method.toUpperCase();var e="boolean"==typeof a.useBody?a.useBody:"GET"!==a.method&&"TRACE"!==a.method;"function"!=typeof a.serialize&&(a.serialize="undefined"!=typeof FormData&&a.data instanceof FormData?function(e){return e}:JSON.stringify),"function"!=typeof a.deserialize&&(a.deserialize=v),"function"!=typeof a.extract&&(a.extract=g),a.url=f(a.url,a.data),e?a.data=a.serialize(a.data):a.url=h(a.url,a.data);var o=new s.XMLHttpRequest;for(var t in o.open(a.method,a.url,"boolean"!=typeof a.async||a.async,"string"==typeof a.user?a.user:void 0,"string"==typeof a.password?a.password:void 0),a.serialize===JSON.stringify&&e&&o.setRequestHeader("Content-Type","application/json; charset=utf-8"),a.deserialize===v&&o.setRequestHeader("Accept","application/json, text/*"),a.withCredentials&&(o.withCredentials=a.withCredentials),a.headers)!{}.hasOwnProperty.call(a.headers,t)||o.setRequestHeader(t,a.headers[t]);"function"==typeof a.config&&(o=a.config(o,a)||o),o.onreadystatechange=function(){if(o.status&&4===o.readyState)try{var e=a.extract!==g?a.extract(o,a):a.deserialize(a.extract(o,a));if(200<=o.status&&o.status<300||304===o.status)r(b(a.type,e));else{var t=new Error(o.responseText);for(var n in e)t[n]=e[n];i(t)}}catch(e){i(e)}},e&&null!=a.data?o.send(a.data):o.send()});return!0===a.background?n:t(n)},jsonp:function(i,e){var t=l();i=u(i,e);var n=new o(function(t,e){var n=i.callbackName||"_mithril_"+Math.round(1e16*Math.random())+"_"+a++,r=s.document.createElement("script");s[n]=function(e){r.parentNode.removeChild(r),t(b(i.type,e)),delete s[n]},r.onerror=function(){r.parentNode.removeChild(r),e(new Error("JSONP request failed")),delete s[n]},null==i.data&&(i.data={}),i.url=f(i.url,i.data),i.data[i.callbackKey||"callback"]=n,r.src=h(i.url,i.data),s.document.documentElement.appendChild(r)});return!0===i.background?n:t(n)},setCompletionCallback:function(e){n=e}});function l(){var i=0;function o(){0==--i&&"function"==typeof n&&n()}return function t(n){var r=n.then;return n.then=function(){i++;var e=r.apply(n,arguments);return e.then(o,function(e){if(o(),0===i)throw e}),t(e)},n}}function u(e,t){if("string"==typeof e){var n=e;null==(e=t||{}).url&&(e.url=n)}return e}function f(e,t){if(null==t)return e;for(var n=e.match(/:[^\/]+/gi)||[],r=0;r<n.length;r++){var i=n[r].slice(1);null!=t[i]&&(e=e.replace(n[r],t[i]))}return e}function h(e,t){var n=c(t);if(""!==n){var r=e.indexOf("?")<0?"?":"&";e+=r+n}return e}function v(t){try{return""!==t?JSON.parse(t):null}catch(e){throw new Error(t)}}function g(e){return e.responseText}function b(e,t){if("function"==typeof e){if(!Array.isArray(t))return new e(t);for(var n=0;n<t.length;n++)t[n]=new e(t[n])}return t}var y,w=function(e){var t=r(e);t.setEventCallback(function(e){!1!==e.redraw&&n()});var a=[];function s(e){var t=a.indexOf(e);-1<t&&a.splice(t,2)}function n(){for(var e=1;e<a.length;e+=2)a[e]()}return{subscribe:function(e,t){var n,r,i,o;s(e),a.push(e,(n=t,r=0,i=null,o="function"==typeof requestAnimationFrame?requestAnimationFrame:setTimeout,function(){var e=Date.now();0===r||16<=e-r?(r=e,n()):null===i&&(i=o(function(){i=null,n(),r=Date.now()},16-(e-r)))}))},unsubscribe:s,redraw:n,render:t.render}}(window);i.setCompletionCallback(w.redraw),t.mount=(y=w,function(e,t){if(null===t)return y.render(e,[]),void y.unsubscribe(e);if(null==t.view)throw new Error("m.mount(element, component) expects a component, not a vnode");y.subscribe(e,function(){y.render(e,B(t))}),y.redraw()});function x(e){if(""===e||null==e)return{};"?"===e.charAt(0)&&(e=e.slice(1));for(var t=e.split("&"),n={},r={},i=0;i<t.length;i++){var o=t[i].split("="),a=decodeURIComponent(o[0]),s=2===o.length?decodeURIComponent(o[1]):"";"true"===s?s=!0:"false"===s&&(s=!1);var l=a.split(/\]\[?|\[/),u=n;-1<a.indexOf("[")&&l.pop();for(var c=0;c<l.length;c++){var f=l[c],d=l[c+1],p=""==d||!isNaN(parseInt(d,10)),m=c===l.length-1;""===f&&(null==r[a=l.slice(0,c).join()]&&(r[a]=0),f=r[a]++),null==u[f]&&(u[f]=m?s:p?[]:{}),u=u[f]}}return n}var E,T,_,O,S,k,C,A,N,M,L,D,P,F=m;function I(e,t,n){if(null==e)throw new Error("Ensure the DOM element that was passed to `m.route` is not undefined");function o(){null!=_&&T.render(e,_(B(O,S.key,S)))}function a(){P.setPath(t,null,{replace:!0})}P.defineRoutes(n,function(t,n,r){var i=C=function(e,t){i===C&&(O=null!=t&&"function"==typeof t.view?t:"div",S=n,k=r,C=null,_=(e.render||function(e){return e}).bind(e),o())};t.view?i({},t):t.onmatch?F.resolve(t.onmatch(n,r)).then(function(e){i(t,e)},a):i(t,"div")},a),T.subscribe(e,o)}function j(e){var t=A.location[e].replace(/(?:%[a-f89][a-f0-9])+/gim,decodeURIComponent);return"pathname"===e&&"/"!==t[0]&&(t="/"+t),t}function z(e,t,n){var r=e.indexOf("?"),i=e.indexOf("#"),o=-1<r?r:-1<i?i:e.length;if(-1<r){var a=-1<i?i:e.length,s=x(e.slice(r+1,a));for(var l in s)t[l]=s[l]}if(-1<i){var u=x(e.slice(i+1));for(var l in u)n[l]=u[l]}return e.slice(0,o)}t.route=(E=window,T=w,M="function"==typeof(A=E).history.pushState,L="function"==typeof V?V:setTimeout,P=D={prefix:"#!",getPath:function(){switch(D.prefix.charAt(0)){case"#":return j("hash").slice(D.prefix.length);case"?":return j("search").slice(D.prefix.length)+j("hash");default:return j("pathname").slice(D.prefix.length)+j("search")+j("hash")}},setPath:function(e,n,t){var r={},i={};if(e=z(e,r,i),null!=n){for(var o in n)r[o]=n[o];e=e.replace(/:([^\/]+)/g,function(e,t){return delete r[t],n[t]})}var a=c(r);a&&(e+="?"+a);var s=c(i);if(s&&(e+="#"+s),M){var l=t?t.state:null,u=t?t.title:null;A.onpopstate(),t&&t.replace?A.history.replaceState(l,u,D.prefix+e):A.history.pushState(l,u,D.prefix+e)}else A.location.href=D.prefix+e},defineRoutes:function(s,l,u){function e(){var r=D.getPath(),i={},e=z(r,i,i),t=A.history.state;if(null!=t)for(var n in t)i[n]=t[n];for(var o in s){var a=new RegExp("^"+o.replace(/:[^\/]+?\.{3}/g,"(.*?)").replace(/:[^\/]+/g,"([^\\/]+)")+"/?$");if(a.test(e))return void e.replace(a,function(){for(var e=o.match(/:[^\/]+/g)||[],t=[].slice.call(arguments,1,-2),n=0;n<e.length;n++)i[e[n].replace(/:|\./g,"")]=decodeURIComponent(t[n]);l(s[o],i,r,o)})}u(r,i)}var t;M?A.onpopstate=(t=e,function(){null==N&&(N=L(function(){N=null,t()}))}):"#"===D.prefix.charAt(0)&&(A.onhashchange=e),e()}},I.set=function(e,t,n){null!=C&&(n={replace:!0}),C=null,P.setPath(e,t,n)},I.get=function(){return k},I.prefix=function(e){P.prefix=e},I.link=function(e){e.dom.setAttribute("href",P.prefix+e.attrs.href),e.dom.onclick=function(e){if(!(e.ctrlKey||e.metaKey||e.shiftKey||2===e.which)){e.preventDefault(),e.redraw=!1;var t=this.getAttribute("href");0===t.indexOf(P.prefix)&&(t=t.slice(P.prefix.length)),I.set(t,void 0,void 0)}}},I.param=function(e){return void 0!==S&&void 0!==e?S[e]:S},I),t.withAttr=function(t,n,r){return function(e){n.call(r||this,t in e.currentTarget?e.currentTarget[t]:e.currentTarget.getAttribute(t))}};var U=r(window);t.render=U.render,t.redraw=w.redraw,t.request=i.request,t.jsonp=i.jsonp,t.parseQueryString=x,t.buildQueryString=c,t.version="1.0.0",t.vnode=B,void 0!==H?H.exports=t:window.m=t}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{timers:5}],2:[function(e,t,n){var r;r=function(){var b,o,l,u,e,s={},y={},t={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:t.currentLocale,zeroFormat:t.zeroFormat,nullFormat:t.nullFormat,defaultFormat:t.defaultFormat,scalePercentBy100:t.scalePercentBy100};function a(e,t){this._input=e,this._value=t}return(b=function(e){var t,n,r,i;if(b.isNumeral(e))t=e.value();else if(0===e||void 0===e)t=0;else if(null===e||o.isNaN(e))t=null;else if("string"==typeof e)if(c.zeroFormat&&e===c.zeroFormat)t=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)t=null;else{for(n in s)if((i="function"==typeof s[n].regexps.unformat?s[n].regexps.unformat():s[n].regexps.unformat)&&e.match(i)){r=s[n].unformat;break}t=(r=r||b._.stringToNumber)(e)}else t=Number(e)||null;return new a(e,t)}).version="2.0.6",b.isNumeral=function(e){return e instanceof a},b._=o={numberToFormat:function(e,t,n){var r,i,o,a,s,l,u,c,f=y[b.options.currentLocale],d=!1,p=!1,m="",h="",v=!1;if(e=e||0,o=Math.abs(e),b._.includes(t,"(")?(d=!0,t=t.replace(/[\(|\)]/g,"")):(b._.includes(t,"+")||b._.includes(t,"-"))&&(l=b._.includes(t,"+")?t.indexOf("+"):e<0?t.indexOf("-"):-1,t=t.replace(/[\+|\-]/g,"")),b._.includes(t,"a")&&(i=!!(i=t.match(/a(k|m|b|t)?/))&&i[1],b._.includes(t," a")&&(m=" "),t=t.replace(new RegExp(m+"a[kmbt]?"),""),1e12<=o&&!i||"t"===i?(m+=f.abbreviations.trillion,e/=1e12):o<1e12&&1e9<=o&&!i||"b"===i?(m+=f.abbreviations.billion,e/=1e9):o<1e9&&1e6<=o&&!i||"m"===i?(m+=f.abbreviations.million,e/=1e6):(o<1e6&&1e3<=o&&!i||"k"===i)&&(m+=f.abbreviations.thousand,e/=1e3)),b._.includes(t,"[.]")&&(p=!0,t=t.replace("[.]",".")),a=e.toString().split(".")[0],s=t.split(".")[1],u=t.indexOf(","),r=(t.split(".")[0].split(",")[0].match(/0/g)||[]).length,s?(a=(h=b._.includes(s,"[")?(s=(s=s.replace("]","")).split("["),b._.toFixed(e,s[0].length+s[1].length,n,s[1].length)):b._.toFixed(e,s.length,n)).split(".")[0],h=b._.includes(h,".")?f.delimiters.decimal+h.split(".")[1]:"",p&&0===Number(h.slice(1))&&(h="")):a=b._.toFixed(e,0,n),m&&!i&&1e3<=Number(a)&&m!==f.abbreviations.trillion)switch(a=String(Number(a)/1e3),m){case f.abbreviations.thousand:m=f.abbreviations.million;break;case f.abbreviations.million:m=f.abbreviations.billion;break;case f.abbreviations.billion:m=f.abbreviations.trillion}if(b._.includes(a,"-")&&(a=a.slice(1),v=!0),a.length<r)for(var g=r-a.length;0<g;g--)a="0"+a;return-1<u&&(a=a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===t.indexOf(".")&&(a=""),c=a+h+(m||""),d?c=(d&&v?"(":"")+c+(d&&v?")":""):0<=l?c=0===l?(v?"-":"+")+c:c+(v?"-":"+"):v&&(c="-"+c),c},stringToNumber:function(e){var t,n,r,i=y[c.currentLocale],o=e,a={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)n=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),a)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),o.match(r)){n*=Math.pow(10,a[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(i<=o)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(e,t){var n=o.multiplier(t);return n<e?e:n},1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),u=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,u),t):u,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),t-i<r&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},b.options=c,b.formats=s,b.locales=y,b.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},b.localeData=function(e){if(!e)return y[c.currentLocale];if(e=e.toLowerCase(),!y[e])throw new Error("Unknown locale : "+e);return y[e]},b.reset=function(){for(var e in t)c[e]=t[e]},b.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},b.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},b.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},b.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n},b.validate=function(e,t){var n,r,i,o,a,s,l,u;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{l=b.localeData(t)}catch(e){l=b.localeData(b.locale())}return i=l.currency.symbol,a=l.abbreviations,n=l.delimiters.decimal,r="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,!(null!==(u=e.match(/^[^\d]+/))&&(e=e.substr(1),u[0]!==i)||null!==(u=e.match(/[^\d]+$/))&&(e=e.slice(0,-1),u[0]!==a.thousand&&u[0]!==a.million&&u[0]!==a.billion&&u[0]!==a.trillion)||(s=new RegExp(r+"{2}"),e.match(/[^\d.,]/g)||2<(o=e.split(n)).length||(o.length<2?!o[0].match(/^\d+.*\d$/)||o[0].match(s):1===o[0].length?!o[0].match(/^\d+$/)||o[0].match(s)||!o[1].match(/^\d+$/):!o[0].match(/^\d+.*\d$/)||o[0].match(s)||!o[1].match(/^\d+$/))))},b.fn=a.prototype={clone:function(){return b(this)},format:function(e,t){var n,r,i,o=this._value,a=e||c.defaultFormat;if(t=t||Math.round,0===o&&null!==c.zeroFormat)r=c.zeroFormat;else if(null===o&&null!==c.nullFormat)r=c.nullFormat;else{for(n in s)if(a.match(s[n].regexps.format)){i=s[n].format;break}r=(i=i||b._.numberToFormat)(o,a,t)}return r},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var i=o.correctionFactor.call(null,this._value,e);return this._value=o.reduce([this._value,e],function(e,t,n,r){return e+Math.round(i*t)},0)/i,this},subtract:function(e){var i=o.correctionFactor.call(null,this._value,e);return this._value=o.reduce([e],function(e,t,n,r){return e-Math.round(i*t)},Math.round(this._value*i))/i,this},multiply:function(e){return this._value=o.reduce([this._value,e],function(e,t,n,r){var i=o.correctionFactor(e,t);return Math.round(e*i)*Math.round(t*i)/Math.round(i*i)},1),this},divide:function(e){return this._value=o.reduce([this._value,e],function(e,t,n,r){var i=o.correctionFactor(e,t);return Math.round(e*i)/Math.round(t*i)}),this},difference:function(e){return Math.abs(b(this._value).subtract(e).value())}},b.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th"},currency:{symbol:"$"}}),b.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,t,n){var r,i=b._.includes(t," BPS")?" ":"";return e*=1e4,t=t.replace(/\s?BPS/,""),r=b._.numberToFormat(e,t,n),r=b._.includes(r,")")?((r=r.split("")).splice(-1,0,i+"BPS"),r.join("")):r+i+"BPS"},unformat:function(e){return+(1e-4*b._.stringToNumber(e)).toFixed(15)}}),u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},e="("+(e=(l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(u.suffixes.filter(function(e){return l.suffixes.indexOf(e)<0})).join("|")).replace("B","B(?!PS)")+")",b.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(e)},format:function(e,t,n){var r,i,o,a=b._.includes(t,"ib")?u:l,s=b._.includes(t," b")||b._.includes(t," ib")?" ":"";for(t=t.replace(/\s?i?b/,""),r=0;r<=a.suffixes.length;r++)if(i=Math.pow(a.base,r),o=Math.pow(a.base,r+1),null===e||0===e||i<=e&&e<o){s+=a.suffixes[r],0<i&&(e/=i);break}return b._.numberToFormat(e,t,n)+s},unformat:function(e){var t,n,r=b._.stringToNumber(e);if(r){for(t=l.suffixes.length-1;0<=t;t--){if(b._.includes(e,l.suffixes[t])){n=Math.pow(l.base,t);break}if(b._.includes(e,u.suffixes[t])){n=Math.pow(u.base,t);break}}r*=n||1}return r}}),b.register("format","currency",{regexps:{format:/(\$)/},format:function(e,t,n){var r,i,o=b.locales[b.options.currentLocale],a={before:t.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:t.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(t=t.replace(/\s?\$\s?/,""),r=b._.numberToFormat(e,t,n),0<=e?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):e<0&&!b._.includes(a.before,"-")&&!b._.includes(a.before,"(")&&(a.before="-"+a.before),i=0;i<a.before.length;i++)switch(a.before[i]){case"$":r=b._.insert(r,o.currency.symbol,i);break;case" ":r=b._.insert(r," ",i+o.currency.symbol.length-1)}for(i=a.after.length-1;0<=i;i--)switch(a.after[i]){case"$":r=i===a.after.length-1?r+o.currency.symbol:b._.insert(r,o.currency.symbol,-(a.after.length-(1+i)));break;case" ":r=i===a.after.length-1?r+" ":b._.insert(r," ",-(a.after.length-(1+i)+o.currency.symbol.length-1))}return r}}),b.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,t,n){var r=("number"!=typeof e||b._.isNaN(e)?"0e+0":e.toExponential()).split("e");return t=t.replace(/e[\+|\-]{1}0/,""),b._.numberToFormat(Number(r[0]),t,n)+"e"+r[1]},unformat:function(e){var t=b._.includes(e,"e+")?e.split("e+"):e.split("e-"),n=Number(t[0]),r=Number(t[1]);return r=b._.includes(e,"e-")?r*=-1:r,b._.reduce([n,Math.pow(10,r)],function(e,t,n,r){var i=b._.correctionFactor(e,t);return e*i*(t*i)/(i*i)},1)}}),b.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,t,n){var r=b.locales[b.options.currentLocale],i=b._.includes(t," o")?" ":"";return t=t.replace(/\s?o/,""),i+=r.ordinal(e),b._.numberToFormat(e,t,n)+i}}),b.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,t,n){var r,i=b._.includes(t," %")?" ":"";return b.options.scalePercentBy100&&(e*=100),t=t.replace(/\s?\%/,""),r=b._.numberToFormat(e,t,n),r=b._.includes(r,")")?((r=r.split("")).splice(-1,0,i+"%"),r.join("")):r+i+"%"},unformat:function(e){var t=b._.stringToNumber(e);return b.options.scalePercentBy100?.01*t:t}}),b.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),b},"function"==typeof define&&define.amd?define(r):"object"==typeof t&&t.exports?t.exports=r():this.numeral=r()},{}],3:[function(e,n,r){(function(X){var e,t;e=this,t=function(){"use strict";var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function w(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function m(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function h(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=w(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:h(m(e))}function v(e){return e&&e.referenceNode?e.referenceNode:e}var t=n&&!(!window.MSInputMethodContext||!document.documentMode),i=n&&/MSIE 10/.test(navigator.userAgent);function g(e){return 11===e?t:10===e?i:t||i}function D(e){if(!e)return document.documentElement;for(var t=g(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===w(n,"position")?D(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){return null!==e.parentNode?c(e.parentNode):e}function b(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&D(a.firstElementChild)!==a?D(l):l;var u=c(e);return u.host?b(u.host,t):b(e,c(t).host)}function y(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"!==r&&"HTML"!==r)return e[n];var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}function f(e,t){var n="x"===t?"Left":"Top",r="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function s(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],g(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,r=g(10)&&getComputedStyle(n);return{height:s("Height",t,n,r),width:s("Width",t,n,r)}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var e=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e},P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e){return P({},e,{right:e.left+e.width,bottom:e.top+e.height})}function F(e){var t={};try{if(g(10)){t=e.getBoundingClientRect();var n=y(e,"top"),r=y(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?x(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=w(e);l-=f(c,"x"),u-=f(c,"y"),i.width-=l,i.height-=u}return T(i)}function _(e,t,n){var r=2<arguments.length&&void 0!==n&&n,i=g(10),o="HTML"===t.nodeName,a=F(e),s=F(t),l=h(e),u=w(t),c=parseFloat(u.borderTopWidth,10),f=parseFloat(u.borderLeftWidth,10);r&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=T({top:a.top-s.top-c,left:a.left-s.left-f,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!i&&o){var p=parseFloat(u.marginTop,10),m=parseFloat(u.marginLeft,10);d.top-=c-p,d.bottom-=c-p,d.left-=f-m,d.right-=f-m,d.marginTop=p,d.marginLeft=m}return(i&&!r?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(d=function(e,t,n){var r=2<arguments.length&&void 0!==n&&n,i=y(t,"top"),o=y(t,"left"),a=r?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=o*a,e.right+=o*a,e}(d,t)),d}function O(e){if(!e||!e.parentElement||g())return document.documentElement;for(var t=e.parentElement;t&&"none"===w(t,"transform");)t=t.parentElement;return t||document.documentElement}function p(e,t,n,r,i){var o=4<arguments.length&&void 0!==i&&i,a={top:0,left:0},s=o?O(e):b(e,v(t));if("viewport"===r)a=function(e,t){var n=1<arguments.length&&void 0!==t&&t,r=e.ownerDocument.documentElement,i=_(e,r),o=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),s=n?0:y(r),l=n?0:y(r,"left");return T({top:s-i.top+i.marginTop,left:l-i.left+i.marginLeft,width:o,height:a})}(s,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=h(m(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var u=_(l,s,o);if("HTML"!==l.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===w(t,"position"))return!0;var r=m(t);return!!r&&e(r)}(s))a=u;else{var c=x(e.ownerDocument),f=c.height,d=c.width;a.top+=u.top-u.marginTop,a.bottom=f+u.top,a.left+=u.left-u.marginLeft,a.right=d+u.left}}var p="number"==typeof(n=n||0);return a.left+=p?n:n.left||0,a.top+=p?n:n.top||0,a.right-=p?n:n.right||0,a.bottom-=p?n:n.bottom||0,a}function u(e,t,r,n,i,o){var a=5<arguments.length&&void 0!==o?o:0;if(-1===e.indexOf("auto"))return e;var s=p(r,n,a,i),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},u=Object.keys(l).map(function(e){return P({key:e},l[e],{area:(t=l[e]).width*t.height});var t}).sort(function(e,t){return t.area-e.area}),c=u.filter(function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight}),f=0<c.length?c[0].key:u[0].key,d=e.split("-")[1];return f+(d?"-"+d:"")}function d(e,t,n,r){var i=3<arguments.length&&void 0!==r?r:null;return _(n,i?O(t):b(t,v(n)),i)}function S(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function k(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function C(e,t,n){n=n.split("-")[0];var r=S(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[k(s)],i}function I(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function A(e,n,t){return(void 0===t?e:e.slice(0,function(e,t){if(Array.prototype.findIndex)return e.findIndex(function(e){return e.name===t});var n=I(e,function(e){return e.name===t});return e.indexOf(n)}(e,t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&a(t)&&(n.offsets.popper=T(n.offsets.popper),n.offsets.reference=T(n.offsets.reference),n=t(n,e))}),n}function N(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function B(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function M(e){var t=e.ownerDocument;return t?t.defaultView:window}function L(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function j(n,r){Object.keys(r).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&L(r[e])&&(t="px"),n.style[e]=r[e]+t})}var z=n&&/Firefox/i.test(navigator.userAgent);function U(e,t,n){var r=I(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var R=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],V=R.slice(3);function H(e,t){var n=1<arguments.length&&void 0!==t&&t,r=V.indexOf(e),i=V.slice(r+1).concat(V.slice(0,r));return n?i.reverse():i}var K="flip",W="clockwise",Y="counterclockwise";var G={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:E({},l,o[l]),end:E({},l,o[l]+o[u]-a[u])};e.offsets.popper=P({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.placement,o=e.offsets,a=o.popper,s=o.reference,l=i.split("-")[0];return n=L(+r)?[+r,0]:function(e,i,o,t){var a=[0,0],s=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),r=n.indexOf(I(n,function(e){return-1!==e.search(/,|\s/)}));n[r]&&-1===n[r].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==r?[n.slice(0,r).concat([n[r].split(l)[0]]),[n[r].split(l)[1]].concat(n.slice(r+1))]:[n];return(u=u.map(function(e,t){var n=(1===t?!s:s)?"height":"width",r=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,r=!0,e):r?(e[e.length-1]+=t,r=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0!==a.indexOf("%"))return"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o;var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return T(s)[t]/100*o}(e,n,i,o)})})).forEach(function(n,r){n.forEach(function(e,t){L(e)&&(a[r]+=e*("-"===n[t-1]?-1:1))})}),a}(r,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,r){var t=r.boundariesElement||D(e.instance.popper);e.instance.reference===t&&(t=D(t));var n=B("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[n];i.top="",i.left="",i[n]="";var l=p(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed);i.top=o,i.left=a,i[n]=s,r.boundaries=l;var u=r.priority,c=e.offsets.popper,f={primary:function(e){var t=c[e];return c[e]<l[e]&&!r.escapeWithReference&&(t=Math.max(c[e],l[e])),E({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!r.escapeWithReference&&(n=Math.min(c[t],l[e]-("right"===e?c.width:c.height))),E({},t,n)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=P({},c,f[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!U(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",m=S(r)[u];s[p]-m<a[f]&&(e.offsets.popper[f]-=a[f]-(s[p]-m)),s[f]+m>a[p]&&(e.offsets.popper[f]+=s[f]+m-a[p]),e.offsets.popper=T(e.offsets.popper);var h=s[f]+s[u]/2-m/2,v=w(e.instance.popper),g=parseFloat(v["margin"+c],10),b=parseFloat(v["border"+c+"Width"],10),y=h-e.offsets.popper[f]-g-b;return y=Math.max(Math.min(a[u]-m,y),0),e.arrowElement=r,e.offsets.arrow=(E(n={},f,Math.round(y)),E(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(h,v){if(N(h.instance.modifiers,"inner"))return h;if(h.flipped&&h.placement===h.originalPlacement)return h;var g=p(h.instance.popper,h.instance.reference,v.padding,v.boundariesElement,h.positionFixed),b=h.placement.split("-")[0],y=k(b),w=h.placement.split("-")[1]||"",x=[];switch(v.behavior){case K:x=[b,y];break;case W:x=H(b);break;case Y:x=H(b,!0);break;default:x=v.behavior}return x.forEach(function(e,t){if(b!==e||x.length===t+1)return h;b=h.placement.split("-")[0],y=k(b);var n=h.offsets.popper,r=h.offsets.reference,i=Math.floor,o="left"===b&&i(n.right)>i(r.left)||"right"===b&&i(n.left)<i(r.right)||"top"===b&&i(n.bottom)>i(r.top)||"bottom"===b&&i(n.top)<i(r.bottom),a=i(n.left)<i(g.left),s=i(n.right)>i(g.right),l=i(n.top)<i(g.top),u=i(n.bottom)>i(g.bottom),c="left"===b&&a||"right"===b&&s||"top"===b&&l||"bottom"===b&&u,f=-1!==["top","bottom"].indexOf(b),d=!!v.flipVariations&&(f&&"start"===w&&a||f&&"end"===w&&s||!f&&"start"===w&&l||!f&&"end"===w&&u),p=!!v.flipVariationsByContent&&(f&&"start"===w&&s||f&&"end"===w&&a||!f&&"start"===w&&u||!f&&"end"===w&&l),m=d||p;(o||c||m)&&(h.flipped=!0,(o||c)&&(b=x[t+1]),m&&(w="end"===w?"start":"start"===w?"end":w),h.placement=b+(w?"-"+w:""),h.offsets.popper=P({},h.offsets.popper,C(h.instance.popper,h.offsets.reference,h.placement)),h=A(h.instance.modifiers,h,"flip"))}),h},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=k(t),e.offsets.popper=T(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!U(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=I(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=I(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l,u,c,f,d,p,m,h,v,g,b,y,w,x=void 0!==o?o:t.gpuAcceleration,E=D(e.instance.popper),T=F(E),_={position:i.position},O=(l=e,u=window.devicePixelRatio<2||!z,c=l.offsets,f=c.popper,d=c.reference,p=Math.round,m=Math.floor,h=p(d.width),v=p(f.width),g=-1!==["left","right"].indexOf(l.placement),b=-1!==l.placement.indexOf("-"),w=u?p:A,{left:(y=u?g||b||h%2==v%2?p:m:A)(h%2==1&&v%2==1&&!b&&u?f.left-1:f.left),top:w(f.top),bottom:w(f.bottom),right:y(f.right)}),S="bottom"===n?"top":"bottom",k="right"===r?"left":"right",C=B("transform");function A(e){return e}if(s="bottom"==S?"HTML"===E.nodeName?-E.clientHeight+O.bottom:-T.height+O.bottom:O.top,a="right"==k?"HTML"===E.nodeName?-E.clientWidth+O.right:-T.width+O.right:O.left,x&&C)_[C]="translate3d("+a+"px, "+s+"px, 0)",_[S]=0,_[k]=0,_.willChange="transform";else{var N="bottom"==S?-1:1,M="right"==k?-1:1;_[S]=s*N,_[k]=a*M,_.willChange=S+", "+k}var L={"x-placement":e.placement};return e.attributes=P({},L,e.attributes),e.styles=P({},_,e.styles),e.arrowStyles=P({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return j(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&j(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=d(i,t,e,n.positionFixed),a=u(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),j(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},q=(e($,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=d(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=u(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=A(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,N(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=function(e,t,n){t.updateBound=n,M(e).addEventListener("resize",t.updateBound,{passive:!0});var r=h(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(h(a.parentNode),n,r,i),i.push(a)}(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}(this.reference,(this.options,this.state),this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return function(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,M(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}.call(this)}}]),$);function $(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,$),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=o(this.update.bind(this)),this.options=P({},$.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(P({},$.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=P({},$.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return P({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return q.Utils=("undefined"!=typeof window?window:X).PopperUtils,q.placements=R,q.Defaults=G,q},"object"==typeof r&&void 0!==n?n.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,c=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):d=-1,c.length&&m())}function m(){if(!f){var e=l(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||f||l(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],5:[function(l,e,u){(function(e,t){var r=l("process/browser.js").nextTick,n=Function.prototype.apply,i=Array.prototype.slice,o={},a=0;function s(e,t){this._id=e,this._clearFn=t}u.setTimeout=function(){return new s(n.call(setTimeout,window,arguments),clearTimeout)},u.setInterval=function(){return new s(n.call(setInterval,window,arguments),clearInterval)},u.clearTimeout=u.clearInterval=function(e){e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},u.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},u.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},u._unrefActive=u.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},u.setImmediate="function"==typeof e?e:function(e){var t=a++,n=!(arguments.length<2)&&i.call(arguments,1);return o[t]=!0,r(function(){o[t]&&(n?e.apply(null,n):e.call(null),u.clearImmediate(t))}),t},u.clearImmediate="function"==typeof t?t:function(e){delete o[e]}}).call(this,l("timers").setImmediate,l("timers").clearImmediate)},{"process/browser.js":4,timers:5}],6:[function(C,e,A){(function(J){"use strict";var e,Z=(e=C("popper.js"))&&"object"==typeof e&&"default"in e?e.default:e;function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function n(e,t){e.innerHTML=t}function i(e){return e&&e._tippy&&e._tippy.reference===e}function ee(e,t){return{}.hasOwnProperty.call(e,t)}function te(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ne(e,t){return e&&e.modifiers&&e.modifiers[t]}function d(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&-1<n.indexOf(t+"]")}function p(e){return d(e,"Element")}function re(e){return d(e,"MouseEvent")}function ie(e,t){return"function"==typeof e?e.apply(void 0,t):e}function oe(e,t,n,r){e.filter(function(e){return e.name===t})[0][n]=r}function ae(){return document.createElement("div")}function se(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function le(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function ue(t,n){return 0===n?t:function(e){clearTimeout(r),r=setTimeout(function(){t(e)},n)};var r}function ce(e,t,n){e&&e!==t&&e.apply(void 0,n)}function a(e,t){var n=Q({},e);return t.forEach(function(e){delete n[e]}),n}function fe(e){return[].slice.call(e)}function de(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null}function pe(e,t){return-1<e.indexOf(t)}function me(e){return e.split(/\s+/).filter(Boolean)}function he(e,t){return void 0!==e?e:t}function ve(e){return[].concat(e)}function ge(e){var t=ve(e)[0];return t&&t.ownerDocument||document}function be(e,t){-1===e.indexOf(t)&&e.push(t)}function ye(e){return"number"==typeof e?e:parseFloat(e)}function we(n,r,i){void 0===r&&(r=5);var e={top:0,right:0,bottom:0,left:0};return Object.keys(e).reduce(function(e,t){return e[t]="number"==typeof r?r:r[t],n===t&&(e[t]="number"==typeof r?r+i:r[n]+i),e},e)}function xe(e){return"\n "+e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but\n indicates a potential memory leak.\n "}function t(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function r(e){return[t("\n %ctippy.js\n\n %c"+t(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n "),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Ee(e,t){var n;e&&(n=console).warn.apply(n,r(t))}function m(e,t){var n;e&&(n=console).error.apply(n,r(t))}function o(t){"production"!==J.env.NODE_ENV&&ke(t,[]),Object.keys(t).forEach(function(e){Te[e]=t[e]})}var Te=Q({allowHTML:!0,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[300,250],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},role:"tooltip",showOnCreate:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,zIndex:9999},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1}),s=Object.keys(Te),_e=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"];function Oe(i){var e=(i.plugins||[]).reduce(function(e,t){var n=t.name,r=t.defaultValue;return n&&(e[n]=void 0!==i[n]?i[n]:r),e},{});return Q({},i,{},e)}function Se(e,t){var i,n,r=Q({},t,{content:ie(t.content,[e])},t.ignoreAttributes?{}:(i=e,((n=t.plugins)?Object.keys(Oe(Q({},Te,{plugins:n}))):s).reduce(function(t,n){var r=(i.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})));return r.interactive&&(r.aria=null),r}function ke(i,o){void 0===i&&(i={}),void 0===o&&(o=[]),Object.keys(i).forEach(function(t){var e=i[t],n="popperOptions"===t&&null!==e&&"object"==typeof e&&ee(e,"placement"),r=!ee(a(Te,["animateFill","followCursor","inlinePositioning","sticky"]),t)&&!pe(["a11y","arrowType","showOnInit","size","target","touchHold"],t);r=r&&0===o.filter(function(e){return e.name===t}).length,Ee("target"===t,["The `target` prop was removed in v5 and replaced with the delegate() addon","in order to conserve bundle size.","See: https://atomiks.github.io/tippyjs/addons/#event-delegation"].join(" ")),Ee("a11y"===t,["The `a11y` prop was removed in v5. Make sure the element you are giving a","tippy to is natively focusable, such as <button> or <input>, not <div>","or <span>."].join(" ")),Ee("showOnInit"===t,"The `showOnInit` prop was renamed to `showOnCreate` in v5."),Ee("arrowType"===t,["The `arrowType` prop was removed in v5 in favor of overloading the `arrow`","prop.","\n\n",'"round" string was replaced with importing the string from the package.',"\n\n","* import {roundArrow} from 'tippy.js'; (ESM version)\n","* const {roundArrow} = tippy; (IIFE CDN version)","\n\n",'Before: {arrow: true, arrowType: "round"}\n',"After: {arrow: roundArrow}`"].join(" ")),Ee("touchHold"===t,["The `touchHold` prop was removed in v5 in favor of overloading the `touch`","prop.","\n\n","Before: {touchHold: true}\n",'After: {touch: "hold"}'].join(" ")),Ee("size"===t,["The `size` prop was removed in v5. Instead, use a theme that specifies","CSS padding and font-size properties."].join(" ")),Ee("theme"===t&&"google"===e,'The included theme "google" was renamed to "material" in v5.'),Ee(n,["Specifying placement in `popperOptions` is not supported. Use the base-level","`placement` prop instead.","\n\n",'Before: {popperOptions: {placement: "bottom"}}\n','After: {placement: "bottom"}'].join(" ")),Ee(r,["`"+t+"`","is not a valid prop. You may have spelled it incorrectly, or if it's a","plugin, forgot to pass it in an array as props.plugins.","\n\n","In v5, the following props were turned into plugins:","\n\n","* animateFill\n","* followCursor\n","* sticky","\n\n","All props: https://atomiks.github.io/tippyjs/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/plugins/"].join(" "))})}var Ce={passive:!0},l="tippy-iOS",Ae="tippy-popper",Ne="tippy-tooltip",Me="tippy-content",u="tippy-arrow",c="tippy-svg-arrow",Le="."+Ae,f="."+Ne,h="."+Me,v="."+u,g="."+c,De={isTouch:!1},b=0;function y(){De.isTouch||(De.isTouch=!0,window.performance&&document.addEventListener("mousemove",w))}function w(){var e=performance.now();e-b<20&&(De.isTouch=!1,document.removeEventListener("mousemove",w)),b=e}function x(){var e=document.activeElement;if(i(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var E="undefined"!=typeof window&&"undefined"!=typeof document,T=E?navigator.userAgent:"",Pe=/MSIE |Trident\//.test(T),_=/UCBrowser\//.test(T),O=E&&/iPhone|iPad|iPod/.test(navigator.platform);function Fe(e){var t=e&&O&&De.isTouch;document.body.classList[t?"add":"remove"](l)}function Ie(e){return e.split("-")[0]}function Be(e){e.setAttribute("data-inertia","")}function je(e){e.setAttribute("data-interactive","")}function ze(e,t){p(t.content)?(n(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(e[t.allowHTML?"innerHTML":"textContent"]=t.content)}function Ue(e){return{tooltip:e.querySelector(f),content:e.querySelector(h),arrow:e.querySelector(v)||e.querySelector(g)}}function Re(e){var t=ae();return!0===e?t.className=u:(t.className=c,p(e)?t.appendChild(e):n(t,e)),t}function Ve(e,t,n){var r,i=Ue(e),o=i.tooltip,a=i.content,s=i.arrow;e.style.zIndex=""+n.zIndex,o.setAttribute("data-animation",n.animation),o.style.maxWidth="number"==typeof(r=n.maxWidth)?r+"px":r,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),t.content!==n.content&&ze(a,n),!t.arrow&&n.arrow?(o.appendChild(Re(n.arrow)),o.setAttribute("data-arrow","")):t.arrow&&!n.arrow?(o.removeChild(s),o.removeAttribute("data-arrow")):t.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(Re(n.arrow))),!t.interactive&&n.interactive?je(o):t.interactive&&!n.interactive&&o.removeAttribute("data-interactive"),!t.inertia&&n.inertia?Be(o):t.inertia&&!n.inertia&&o.removeAttribute("data-inertia"),t.theme!==n.theme&&(Ke(o,"remove",t.theme),Ke(o,"add",n.theme))}function He(e,t,n){var r=_&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](r,n)}function Ke(t,n,e){me(e).forEach(function(e){t.classList[n](e+"-theme")})}var We=1,Ye=[],Ge=[];function S(o,e){var a,n,r,t=Se(o,Q({},Te,{},Oe(e)));if(!t.multiple&&o._tippy)return null;var s,l,i,u,c,f=!1,d=!1,p=!1,m=0,h=[],v=ue(H,t.interactiveDebounce),g=ge(t.triggerTarget||o),b=We++,y=function(e,t){var n=ae();n.className=Ae,n.style.position="absolute",n.style.top="0",n.style.left="0";var r=ae();r.className=Ne,r.id="tippy-"+e,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1"),Ke(r,"add",t.theme);var i=ae();return i.className=Me,i.setAttribute("data-state","hidden"),t.interactive&&je(r),t.arrow&&(r.setAttribute("data-arrow",""),r.appendChild(Re(t.arrow))),t.inertia&&Be(r),ze(i,t),r.appendChild(i),n.appendChild(r),Ve(n,t,t),n}(b,t),w=Ue(y),x=(c=t.plugins).filter(function(e,t){return c.indexOf(e)===t}),E=w.tooltip,T=w.content,_=[E,T],O={id:b,reference:o,popper:y,popperChildren:w,popperInstance:null,props:t,state:{currentPlacement:null,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:x,clearDelayTimeouts:function(){clearTimeout(a),clearTimeout(n),cancelAnimationFrame(r)},setProps:function(n){if("production"!==J.env.NODE_ENV&&Ee(O.state.isDestroyed,xe("setProps")),!O.state.isDestroyed){"production"!==J.env.NODE_ENV&&(ke(n,x),Ee(!!n.plugins&&(n.plugins.length!==x.length||x.some(function(e,t){return!n.plugins||!n.plugins[t]||e!==n.plugins[t]})),"Cannot update plugins")),M("onBeforeUpdate",[O,n]),R();var t=O.props,e=Se(o,Q({},O.props,{},n,{ignoreAttributes:!0}));if(e.ignoreAttributes=he(n.ignoreAttributes,t.ignoreAttributes),O.props=e,U(),t.interactiveDebounce!==e.interactiveDebounce&&(P(),v=ue(H,e.interactiveDebounce)),Ve(y,t,e),O.popperChildren=Ue(y),t.triggerTarget&&!e.triggerTarget?ve(t.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):e.triggerTarget&&o.removeAttribute("aria-expanded"),D(),O.popperInstance)if(_e.some(function(e){return ee(n,e)&&n[e]!==t[e]})){var r=O.popperInstance.reference;O.popperInstance.destroy(),G(),O.popperInstance.reference=r,O.state.isVisible&&O.popperInstance.enableEventListeners()}else O.popperInstance.update();M("onAfterUpdate",[O,n])}},setContent:function(e){O.setProps({content:e})},show:function(e){void 0===e&&(e=te(O.props.duration,0,Te.duration)),"production"!==J.env.NODE_ENV&&Ee(O.state.isDestroyed,xe("show"));var t=O.state.isVisible,n=O.state.isDestroyed,r=!O.state.isEnabled,i=De.isTouch&&!O.props.touch;t||n||r||i||A().hasAttribute("disabled")||(O.popperInstance||G(),M("onShow",[O],!1),!1!==O.props.onShow(O)&&(I(),y.style.visibility="visible",O.state.isVisible=!0,O.state.isMounted||se(_.concat(y),0),l=function(){O.state.isVisible&&(se([y],O.props.updateDuration),se(_,e),le(_,"visible"),L(),D(),be(Ge,O),Fe(!0),O.state.isMounted=!0,M("onMount",[O]),j(e,function(){O.state.isShown=!0,M("onShown",[O])}))},function(){m=0;var e,t=O.props.appendTo,n=A();(e=O.props.interactive&&t===Te.appendTo||"parent"===t?n.parentNode:ie(t,[n])).contains(y)||e.appendChild(y),"production"!==J.env.NODE_ENV&&Ee(O.props.interactive&&t===Te.appendTo&&n.nextElementSibling!==y,["Interactive tippy element may not be accessible via keyboard navigation","because it is not directly after the reference element in the DOM source","order.","\n\n","Using a wrapper <div> or <span> tag around the reference element solves","this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle keyboard","navigation.","\n\n","See: https://atomiks.github.io/tippyjs/accessibility/#interactivity"].join(" ")),oe(O.popperInstance.modifiers,"flip","enabled",O.props.flip),O.popperInstance.enableEventListeners(),O.popperInstance.update()}()))},hide:function(e){void 0===e&&(e=te(O.props.duration,1,Te.duration)),"production"!==J.env.NODE_ENV&&Ee(O.state.isDestroyed,xe("hide"));var t=!O.state.isVisible&&!f,n=O.state.isDestroyed,r=!O.state.isEnabled&&!f;t||n||r||(M("onHide",[O],!1),!1===O.props.onHide(O)&&!f||(B(),y.style.visibility="hidden",O.state.isVisible=!1,O.state.isShown=!1,se(_,e),le(_,"hidden"),L(),D(),j(e,function(){!O.state.isVisible&&y.parentNode&&y.parentNode.contains(y)&&(O.popperInstance.disableEventListeners(),O.popperInstance.options.placement=O.props.placement,y.parentNode.removeChild(y),0===(Ge=Ge.filter(function(e){return e!==O})).length&&Fe(!1),O.state.isMounted=!1,M("onHidden",[O]))})))},enable:function(){O.state.isEnabled=!0},disable:function(){O.hide(),O.state.isEnabled=!1},destroy:function(){"production"!==J.env.NODE_ENV&&Ee(O.state.isDestroyed,xe("destroy")),O.state.isDestroyed||(f=!0,O.clearDelayTimeouts(),O.hide(0),R(),delete o._tippy,O.popperInstance&&O.popperInstance.destroy(),f=!1,O.state.isDestroyed=!0,M("onDestroy",[O]))}};o._tippy=O,y._tippy=O;var S=x.map(function(e){return e.fn(O)});return U(),D(),t.lazy||G(),M("onCreate",[O]),t.showOnCreate&&$(),y.addEventListener("mouseenter",function(){O.props.interactive&&O.state.isVisible&&O.clearDelayTimeouts()}),y.addEventListener("mouseleave",function(){O.props.interactive&&pe(O.props.trigger,"mouseenter")&&g.addEventListener("mousemove",v)}),O;function k(){var e=O.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===k()[0]}function A(){return u||o}function N(e){return O.state.isMounted&&!O.state.isVisible||De.isTouch||s&&"focus"===s.type?0:te(O.props.delay,e?0:1,Te.delay)}function M(t,n,e){var r;void 0===e&&(e=!0),S.forEach(function(e){ee(e,t)&&e[t].apply(e,n)}),e&&(r=O.props)[t].apply(r,n)}function L(){var e=O.props.aria;if(e){var r="aria-"+e,i=E.id;ve(O.props.triggerTarget||o).forEach(function(e){var t=e.getAttribute(r);if(O.state.isVisible)e.setAttribute(r,t?t+" "+i:i);else{var n=t&&t.replace(i,"").trim();n?e.setAttribute(r,n):e.removeAttribute(r)}})}}function D(){ve(O.props.triggerTarget||o).forEach(function(e){O.props.interactive?e.setAttribute("aria-expanded",O.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")})}function P(){g.body.removeEventListener("mouseleave",X),g.removeEventListener("mousemove",v),Ye=Ye.filter(function(e){return e!==v})}function F(e){if(!O.props.interactive||!y.contains(e.target)){if(A().contains(e.target)){if(De.isTouch)return;if(O.state.isVisible&&pe(O.props.trigger,"click"))return}!0===O.props.hideOnClick&&(d=!1,O.clearDelayTimeouts(),O.hide(),p=!0,setTimeout(function(){p=!1}),O.state.isMounted||B())}}function I(){g.addEventListener("mousedown",F,!0)}function B(){g.removeEventListener("mousedown",F,!0)}function j(e,t){function n(e){e.target===E&&(He(E,"remove",n),t())}if(0===e)return t();He(E,"remove",i),He(E,"add",n),i=n}function z(t,n,r){void 0===r&&(r=!1),ve(O.props.triggerTarget||o).forEach(function(e){e.addEventListener(t,n,r),h.push({node:e,eventType:t,handler:n,options:r})})}function U(){C()&&(z("touchstart",V,Ce),z("touchend",K,Ce)),me(O.props.trigger).forEach(function(e){if("manual"!==e)switch(z(e,V),e){case"mouseenter":z("mouseleave",K);break;case"focus":z(Pe?"focusout":"blur",W)}})}function R(){h.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),h=[]}function V(t){var e=!1;if(O.state.isEnabled&&!Y(t)&&!p){if(u=(s=t).currentTarget,D(),!O.state.isVisible&&re(t)&&Ye.forEach(function(e){return e(t)}),"click"!==t.type||pe(O.props.trigger,"mouseenter")&&!d||!1===O.props.hideOnClick||!O.state.isVisible){var n=k(),r=n[0],i=n[1];De.isTouch&&"hold"===r&&i?a=setTimeout(function(){$(t)},i):$(t)}else e=!0;"click"===t.type&&(d=!e),e&&X(t)}}function H(e){var t,l,u;de(e.target,function(e){return e===o||e===y})||(t=fe(y.querySelectorAll(Le)).concat(y).map(function(e){var t=e._tippy,n=t.popperChildren.tooltip,r=t.props.interactiveBorder;return{popperRect:e.getBoundingClientRect(),tooltipRect:n.getBoundingClientRect(),interactiveBorder:r}}),l=e.clientX,u=e.clientY,t.every(function(e){var t=e.popperRect,n=e.tooltipRect,r=e.interactiveBorder,i=Math.min(t.top,n.top),o=Math.max(t.right,n.right),a=Math.max(t.bottom,n.bottom),s=Math.min(t.left,n.left);return r<i-u||r<u-a||r<s-l||r<l-o})&&(P(),X(e)))}function K(e){if(!(Y(e)||pe(O.props.trigger,"click")&&d))return O.props.interactive?(g.body.addEventListener("mouseleave",X),g.addEventListener("mousemove",v),void be(Ye,v)):void X(e)}function W(e){e.target===A()&&(O.props.interactive&&e.relatedTarget&&y.contains(e.relatedTarget)||X(e))}function Y(e){var t="ontouchstart"in window,n=pe(e.type,"touch"),r=C();return t&&De.isTouch&&r&&!n||De.isTouch&&!r&&n}function G(){var u,t=O.props.popperOptions,e=O.popperChildren.arrow,c=ne(t,"flip"),f=ne(t,"preventOverflow");function n(e){var t=O.state.currentPlacement;O.state.currentPlacement=e.placement,O.props.flip&&!O.props.flipOnUpdate&&(e.flipped&&(O.popperInstance.options.placement=e.placement),oe(O.popperInstance.modifiers,"flip","enabled",!1)),E.setAttribute("data-placement",e.placement),!1!==e.attributes["x-out-of-boundaries"]?E.setAttribute("data-out-of-boundaries",""):E.removeAttribute("data-out-of-boundaries");var n=Ie(e.placement),r=pe(["top","bottom"],n),i=pe(["bottom","right"],n);E.style.top="0",E.style.left="0",E.style[r?"top":"left"]=(i?1:-1)*u+"px",t&&t!==e.placement&&O.popperInstance.update()}var r=Q({eventsEnabled:!1,placement:O.props.placement},t,{modifiers:Q({},t&&t.modifiers,{tippyDistance:{enabled:!0,order:0,fn:function(e){var t,n,r,i;t=g,n=O.props.distance,r="string"==typeof n&&pe(n,"rem"),i=t.documentElement,u=i&&r?parseFloat(getComputedStyle(i).fontSize||String(16))*ye(n):ye(n);var o=Ie(e.placement),a=we(o,f&&f.padding,u),s=we(o,c&&c.padding,u),l=O.popperInstance.modifiers;return oe(l,"preventOverflow","padding",a),oe(l,"flip","padding",s),e}},preventOverflow:Q({boundariesElement:O.props.boundary},f),flip:Q({enabled:O.props.flip,behavior:O.props.flipBehavior},c),arrow:Q({element:e,enabled:!!e},ne(t,"arrow")),offset:Q({offset:O.props.offset},ne(t,"offset"))}),onCreate:function(e){n(e),ce(t&&t.onCreate,r.onCreate,[e]),q()},onUpdate:function(e){n(e),ce(t&&t.onUpdate,r.onUpdate,[e]),q()}});O.popperInstance=new Z(o,y,r)}function q(){0===m?(m++,O.popperInstance.update()):l&&1===m&&(m++,y.offsetHeight,l())}function $(e){O.clearDelayTimeouts(),O.popperInstance||G(),e&&M("onTrigger",[O,e]),I();var t=N(!0);t?a=setTimeout(function(){O.show()},t):O.show()}function X(e){if(O.clearDelayTimeouts(),M("onUntrigger",[O,e]),O.state.isVisible){if(!(pe(O.props.trigger,"mouseenter")&&pe(O.props.trigger,"click")&&pe(["mouseleave","mousemove"],e.type)&&d)){var t=N(!1);t?n=setTimeout(function(){O.state.isVisible&&O.hide()},t):r=requestAnimationFrame(function(){O.hide()})}}else B()}}function k(e,t,n){var r,i,o;void 0===t&&(t={}),void 0===n&&(n=[]),n=Te.plugins.concat(t.plugins||n),"production"!==J.env.NODE_ENV&&(i=!(r=e),o="[object Object]"===Object.prototype.toString.call(r)&&!r.addEventListener,m(i,["tippy() was passed","`"+String(r)+"`","as its targets (first) argument. Valid types are: String, Element, Element[],","or NodeList."].join(" ")),m(o,["tippy() was passed a plain object which is no longer supported as an argument.","See: https://atomiks.github.io/tippyjs/misc/#custom-position"].join(" ")),ke(t,n)),document.addEventListener("touchstart",y,Q({},Ce,{capture:!0})),window.addEventListener("blur",x);var a,s=Q({},t,{plugins:n}),l=p(a=e)?[a]:d(a,"NodeList")?fe(a):Array.isArray(a)?a:fe(document.querySelectorAll(a));if("production"!==J.env.NODE_ENV){var u=p(s.content),c=1<l.length;Ee(u&&c,["tippy() was passed an Element as the `content` prop, but more than one tippy","instance was created by this invocation. This means the content element will","only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that returns a","cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var f=l.reduce(function(e,t){var n=t&&S(t,s);return n&&e.push(n),e},[]);return p(e)?f[0]:f}k.version="5.1.4",k.defaultProps=Te,k.setDefaultProps=o,k.currentInput=De,A.BACKDROP_CLASS="tippy-backdrop",A.ROUND_ARROW='<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>',A._extends=Q,A.arrayFrom=fe,A.closestCallback=de,A.createTippyWithPlugins=function(r){"production"!==J.env.NODE_ENV&&Ee(!0,["createTippyWithPlugins([...]) has been deprecated.","\n\n","Use tippy.setDefaultProps({plugins: [...]}) instead."].join(" "));function e(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=[]),n=t.plugins||n,k(e,Q({},t,{plugins:[].concat(r,n)}))}return e.version="5.1.4",e.defaultProps=Te,e.setDefaultProps=o,e.currentInput=De,e},A.currentInput=De,A.defaultProps=Te,A.div=ae,A.errorWhen=m,A.getBasePlacement=Ie,A.getOwnerDocument=ge,A.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;Ge.forEach(function(e){var t=!1;n&&(t=i(n)?e.reference===n:e.popper===n.popper),t||e.hide(r)})},A.includes=pe,A.isBrowser=E,A.isMouseEvent=re,A.isUCBrowser=_,A.normalizeToArray=ve,A.removeProperties=a,A.setVisibilityState=le,A.tippy=k,A.useIfDefined=he,A.warnWhen=Ee}).call(this,C("_process"))},{_process:4,"popper.js":3}],7:[function(i,e,o){(function(d){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var E=i("./tippy.chunk.cjs.js");i("popper.js");var p={mouseover:"mouseenter",focusin:"focus",click:"click"},e={name:"animateFill",defaultValue:!1,fn:function(e){var t,n=e.popperChildren,r=n.tooltip,i=n.content,o=e.props.animateFill&&!E.isUCBrowser?((t=E.div()).className=E.BACKDROP_CLASS,E.setVisibilityState([t],"hidden"),t):null;function a(){e.popperChildren.backdrop=o}return{onCreate:function(){o&&(a(),r.insertBefore(o,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({animation:"shift-away",arrow:!1}))},onMount:function(){if(o){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));i.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,E.setVisibilityState([o],"visible"),"production"!==d.env.NODE_ENV&&(E.warnWhen("absolute"!==getComputedStyle(o).position,"The `tippy.js/dist/backdrop.css` stylesheet has not been\n imported!\n \n The `animateFill` plugin requires this stylesheet to work."),E.warnWhen("none"===getComputedStyle(r).transform,"The `tippy.js/animations/shift-away.css` stylesheet has not\n been imported!\n \n The `animateFill` plugin requires this stylesheet to work."))}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&E.setVisibilityState([o],"hidden")},onAfterUpdate:function(){a()}}}},t={name:"followCursor",defaultValue:!1,fn:function(h){var v,g=h.reference,b=h.popper,y=null,e=E.getOwnerDocument(h.props.triggerTarget||g),n=null,r=!1,i=h.props;function t(){return"manual"===h.props.trigger.trim()}function o(){var e=!!t()||null!==n&&!(0===n.clientX&&0===n.clientY);return h.props.followCursor&&e}function w(){return E.currentInput.isTouch||"initial"===h.props.followCursor&&h.state.isVisible}function a(){h.popperInstance&&y&&(h.popperInstance.reference=y)}function s(){if(o()||h.props.placement!==i.placement){var e=i.placement,t=e.split("-")[1];r=!0,h.setProps({placement:o()&&t?e.replace(t,"start"===t?"end":"start"):e}),r=!1}}function l(){h.popperInstance&&o()&&(w()||!0!==h.props.followCursor)&&h.popperInstance.disableEventListeners()}function u(){o()?e.addEventListener("mousemove",f):a()}function c(){o()&&f(v)}function x(){e.removeEventListener("mousemove",f)}function f(e){var t,n=v=e,r=n.clientX,i=n.clientY;if(h.popperInstance&&h.state.currentPlacement){var o=E.closestCallback(e.target,function(e){return e===g}),a=g.getBoundingClientRect(),s=h.props.followCursor,l="horizontal"===s,u="vertical"===s,c=E.includes(["top","bottom"],E.getBasePlacement(h.state.currentPlacement)),f={size:t=c?b.offsetWidth:b.offsetHeight,x:c?t:0,y:c?0:t},d=f.size,p=f.x,m=f.y;!o&&h.props.interactive||(null===y&&(y=h.popperInstance.reference),h.popperInstance.reference={referenceNode:g,clientWidth:0,clientHeight:0,getBoundingClientRect:function(){return{width:c?d:0,height:c?0:d,top:(l?a.top:i)-m,bottom:(l?a.bottom:i)+m,left:(u?a.left:r)-p,right:(u?a.right:r)+p}}},h.popperInstance.update()),w()&&x()}}return{onAfterUpdate:function(e,t){var n;r||(n=t,Object.keys(n).forEach(function(e){i[e]=E.useIfDefined(n[e],i[e])}),t.placement&&s()),t.placement&&l(),requestAnimationFrame(c)},onMount:function(){c(),l()},onShow:function(){t()&&(v=n={clientX:0,clientY:0},s(),u())},onTrigger:function(e,t){n||(E.isMouseEvent(t)&&(n={clientX:t.clientX,clientY:t.clientY},v=t),s(),u())},onUntrigger:function(){h.state.isVisible||(x(),n=null)},onHidden:function(){x(),a(),n=null}}}},n={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t=e.reference;function n(){return e.props.inlinePositioning}return{onHidden:function(){n()&&(e.popperInstance.reference=t)},onShow:function(){n()&&(e.popperInstance.reference={referenceNode:t,clientWidth:0,clientHeight:0,getBoundingClientRect:function(){return function(t,e,n){if(n.length<2||null===t)return e;switch(t){case"top":case"bottom":var r=n[0],i=n[n.length-1],o="top"===t,a=r.top,s=i.bottom,l=o?r.left:i.left,u=o?r.right:i.right;return{top:a,bottom:s,left:l,right:u,width:u-l,height:s-a};case"left":case"right":var c=Math.min.apply(Math,n.map(function(e){return e.left})),f=Math.max.apply(Math,n.map(function(e){return e.right})),d=n.filter(function(e){return"left"===t?e.left===c:e.right===f}),p=d[0].top,m=d[d.length-1].bottom;return{top:p,bottom:m,left:c,right:f,width:f-c,height:m-p};default:return e}}(e.state.currentPlacement&&E.getBasePlacement(e.state.currentPlacement),t.getBoundingClientRect(),E.arrayFrom(t.getClientRects()))}})}}}},r={name:"sticky",defaultValue:!1,fn:function(n){var r=n.reference,i=n.popper;function o(e){return!0===n.props.sticky||n.props.sticky===e}var a=null,s=null;function l(){var e=o("reference")?(n.popperInstance?n.popperInstance.reference:r).getBoundingClientRect():null,t=o("popper")?i.getBoundingClientRect():null;(e&&u(a,e)||t&&u(s,t))&&n.popperInstance.update(),a=e,s=t,n.state.isMounted&&requestAnimationFrame(l)}return{onMount:function(){n.props.sticky&&l()}}}};function u(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}o.createTippyWithPlugins=E.createTippyWithPlugins,o.default=E.tippy,o.hideAll=E.hideAll,o.roundArrow=E.ROUND_ARROW,o.animateFill=e,o.createSingleton=function(a,e,t){void 0===e&&(e={}),void 0===t&&(t=[]),"production"!==d.env.NODE_ENV&&E.errorWhen(!Array.isArray(a),["The first argument passed to createSingleton() must be an array of tippy","instances. The passed value was",String(a)].join(" ")),t=e.plugins||t,a.forEach(function(e){e.disable()});var s,l,u=E._extends({},E.defaultProps,{},e).aria,r=!1,c=a.map(function(e){return e.reference}),n={fn:function(i){function o(e){if(s){var t="aria-"+s;e&&!i.props.interactive?l.setAttribute(t,i.popperChildren.tooltip.id):l.removeAttribute(t)}}return{onAfterUpdate:function(e,t){var n=t.aria;void 0!==n&&n!==u&&(r?(r=!0,i.setProps({aria:null}),r=!1):u=n)},onDestroy:function(){a.forEach(function(e){e.enable()})},onMount:function(){o(!0)},onUntrigger:function(){o(!1)},onTrigger:function(e,t){var n=t.currentTarget,r=c.indexOf(n);n!==l&&(l=n,s=u,i.state.isVisible&&o(!0),i.popperInstance.reference=n,i.setContent(a[r].props.content))}}}};return E.tippy(E.div(),E._extends({},e,{plugins:[n].concat(t),aria:null,triggerTarget:c}))},o.delegate=function(e,i,t){void 0===t&&(t=[]),"production"!==d.env.NODE_ENV&&E.errorWhen(!(i&&i.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" ")),t=i.plugins||t;var o=[],a=[],s=i.target,n=E.removeProperties(i,["target"]),r=E._extends({},n,{plugins:t,trigger:"manual"}),l=E._extends({},n,{plugins:t,showOnCreate:!0}),u=E.tippy(e,r);function c(e){if(e.target){var t=e.target.closest(s);if(t){var n=t.getAttribute("data-tippy-trigger")||i.trigger||E.defaultProps.trigger;if(E.includes(n,p[e.type])){var r=E.tippy(t,l);r&&(a=a.concat(r))}}}}function f(e,t,n,r){void 0===r&&(r=!1),e.addEventListener(t,n,r),o.push({node:e,eventType:t,handler:n,options:r})}return E.normalizeToArray(u).forEach(function(e){var t,n=e.destroy;e.destroy=function(e){void 0===e&&(e=!0),e&&a.forEach(function(e){e.destroy()}),a=[],o.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),o=[],n()},f(t=e.reference,"mouseover",c),f(t,"focusin",c),f(t,"click",c)}),u},o.followCursor=t,o.inlinePositioning=n,o.sticky=r}).call(this,i("_process"))},{"./tippy.chunk.cjs.js":6,_process:4,"popper.js":3}],8:[function(e,t,n){"use strict";var r=a(e("mithril")),i=a(e("./view")),o=a(e("./texte/de"));function a(e){return e&&e.__esModule?e:{default:e}}document,window,domIsReady(function(){window.texte=o.default,r.default.mount(window.document.getElementById("gradido-mithril-user-search"),i.default)})},{"./texte/de":13,"./view":14,mithril:1}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("mithril")),i=o(e("numeral"));function o(e){return e&&e.__esModule?e:{default:e}}var a=!1,s={view:function(e){return(0,r.default)("span",(t=e.attrs.centAmount/1e4,i.default.locale("de"),(0,i.default)(t).format("0,0.00")+" GDD"));var t},oninit:function(e){a||(i.default.register("locale","de",{delimiters:{thousands:".",decimal:","},currency:{symbol:"€"}}),i.default.locale("de"),a=!0)}};n.default=s},{mithril:1,numeral:2}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return{oncreate:function(e){(0,r.default)(e.dom,{content:e.attrs.accountState.getTooltipText(),placement:"right-start",theme:"rippleUI-theme",arrow:!1})},onremove:function(){},view:function(){return e}}},i(e("mithril"));var r=i(e("tippy.js"));function i(e){return e&&e.__esModule?e:{default:e}}},{mithril:1,"tippy.js":7}],11:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("mithril"))&&r.__esModule?r:{default:r},o={view:function(e){return(0,i.default)("div.modal.visible-modal",{tabindex:"-1",role:"dialog"},(0,i.default)("div.modal-dialog",{role:"document"},(0,i.default)("div.modal-content",[(0,i.default)("p.grid-header",e.attrs.title),(0,i.default)("div.modal-body",e.attrs.body),(0,i.default)("div.modal-footer",[(0,i.default)("button.btn.btn-primary",{type:"button","data-dismiss":"modal",onclick:e.attrs.dismiss},"Ok")])])))},oninit:function(e){}};n.default=o},{mithril:1}],12:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=(r=e("mithril"))&&r.__esModule?r:{default:r};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=(o(s.prototype,[{key:"getColor",value:function(){return"bg-"+this.texte.color}},{key:"getRawColor",value:function(){return this.texte.color}},{key:"getTitle",value:function(){return this.texte.title}},{key:"hasActions",value:function(){return"account copied to community"!==this.stateName}},{key:"getTooltip",value:function(){var e=window.texte.ACCOUNT_STATES[this.stateName];return(0,i.default)(".grid",[(0,i.default)("h6.grid-header",e.description.title),null!=e.description.lines?(0,i.default)("ul",e.description.lines.map(function(e,t){var n=window.texte.ACCOUNT_STATES.LINES[t],r="";return"+"===e?r=".mdi-check.color-success":"-"===e?r=".mdi-close.color-danger":"/"===e&&(r=".mdi-alert-circle-outline.color-warning"),(0,i.default)("li",[(0,i.default)("i.mdi"+r),(0,i.default)("span",i.default.trust(" ")),(0,i.default)("span",[(0,i.default)("b",n.title+": "),(0,i.default)("span",n[e])])])})):null])}},{key:"getTooltipText",value:function(){var e=window.texte.ACCOUNT_STATES[this.stateName],t='<div class="grid">';if(t+='<h6 class="grid-header">'+e.description.title+"</h6>",null!=e.description.lines){for(var n in t+="<ul>",e.description.lines){var r=e.description.lines[n],i=window.texte.ACCOUNT_STATES.LINES[n],o="mdi ";if("+"===r)o+=" mdi-check color-primary";else if("-"===r)o+=" mdi-close color-danger";else{if("/"!==r)continue;o+=" mdi-alert-circle-outline color-warning"}t+="<li>",t+='<i class="'+o+'"></i>',t+="<span> </span>",t+="<span><b>"+i.title+": </b>"+i[r]+"</span>",t+="</li>"}t+="</ul>"}return t+"</div>"}}]),s);function s(e){!function(e){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}(this),this.stateName=e,this.texte=window.texte.ACCOUNT_STATES[e]}n.default=a},{mithril:1}],13:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default={ACCOUNT_STATES:{LINES:[{title:"Login-Server","+":"Das Benutzer-Konto liegt auf dem Login-Server!","-":"Das Benutzer-Konto existiert nicht auf dem Login-Server!"},{title:"Konto Aktivierung","+":"Der Benutzer hat sein Konto aktiviert!","-":"Der Benutzer hat noch nicht auf den Link in seiner E-Mail geklickt!"},{title:"Schlüsselpaar","+":"Es wurde bereits ein Schlüsselpaar für den Benutzer erzeugt und ihm eine Passphrase gezeigt!","-":"Es wurden noch keine Schlüssel und Passphrase für den Benutzer erzeugt!"},{title:"Gemeinschafts-Server","+":"Das Benutzer-Konto wurde auf auf den Gemeinschafts-Server kopiert!","-":"Das Benutzer-Konto wurde noch nicht auf den Gemeinschafts-Server kopiert!"},{title:"Gradidos","+":"Es können Gradidos an den Benutzer geschickt werden!","-":"Es können noch keine Gradidos an den Benutzer geschickt werden!","/":"Es können theoretisch Gradidos an den Benutzer geschickt werden, aber es ist nicht sicher ob er sie verwenden kann!"}],"account created":{title:"Konto angelegt",color:"secondary",description:{title:"Das Konto wurde auf dem Login-Server angelegt, vermutlich durch eine elopage-Anmeldung.",lines:["+","-","-","-","-"]},todo:{title:"Als nächstes müsste der Benutzer den Link in seiner E-Mail anklicken und den Anweisungen folgen. ",lines:["Stimmt die E-Mail Adresse? Hat der Benutzer in seinem Spam-Verzeichnis nachgesehen?","{{verification-resend}}","{{mailto-verification-resend}}"]}},"account not on login-server":{title:"Konto nicht auf Login-Server",color:"danger",description:{title:"Das Konto existiert nicht (mehr) auf dem Login-Server: ein Fehler oder es wurde nur teilweise gelöscht.",lines:["-","+","+","+","/"]},todo:{title:"Wenn der Benutzer seine Passphrase hat, kann er sein Konto auf dem Login-Server wiederherstellen, ansonsten bleibt eigentlich nur das Konto auf dem Gemeinschafts-Server zu löschen",lines:["Nachdem das Konto auf dem Login-Server kopiert wurde, bekommt der Benutzer automatisch eine E-Mail mit einem Link zur Kontoaktivierung zugeschickt.","{{copy-from-community-to-login-server}}","{{user-transactions-overview}}","Es wird nur der Benutzer gelöscht, nicht seine Transaktionen. Zu diesen hat er wieder Zugriff wenn er sein Konto mit Hilfe seiner Passphrase wiederherstellt.","{{delete-from-community-server}}"]}},"email activated":{title:"Konto aktiviert",color:"primary",description:{title:"Das Konto wurde vom Benutzer aktiviert und Schlüssel erzeugt, aber noch nicht auf diesen Gemeinschafts-Server kopiert.",lines:["+","+","+","-","-"]},todo:{title:"Das Benutzer Konto müsste vom Login-Server auf den Community-Server kopiert werden.",lines:["{{copy-from-login-to-community-server}}"]}},"account copied to community":{title:"Konto auf Gemeinschafts-Server",color:"success",description:{title:"Das Konto ist vollständig aktiviert und es können Gradidos überwiesen werden.",lines:["+","+","+","+","+"]}},"email not activated":{title:"Konto nicht aktiviert",color:"warning",description:{title:"Das Konto wurde auf dem Login-Server angelegt, vermutlich durch eine elopage-Anmeldung. Es wurde aber noch nicht aktiviert!",lines:["+","-","-","-","-"]},todo:{title:"Als nächstes müsste der Benutzer den Link in seiner E-Mail anklicken und den Anweisungen folgen. ",lines:["Stimmt die E-Mail Adresse? Hat der Benutzer in seinem Spam-Verzeichnis nachgesehen?","{{verification-resend}}","{{mailto-verification-resend}}"]}},"account multiple times on login-server":{title:"Konto mehrfach vorhanden",color:"danger",description:{title:"Das Konto ist auf dem Login-Server mehrfach vorhanden, das sollte nicht sein, auf dem Login-Server muss ein Fehler passiert sein!!"},todo:{title:"Du solltest mit dem Entwickler in Kontakt treten.",lines:["{{mailto-developer}}"]}},"account not on community server":{title:"Konto nicht auf Gemeinschafts-Server",color:"secondary",description:{title:"Das Konto wurde auf dem Login-Server angelegt, aber existiert noch nicht auf dem Gemeinschafts-Server!",lines:["+",null,"-","-","-"]},todo:{title:"Das sollte eigentlich nicht passieren, du solltest mit dem Entwickler sprechen.",lines:["{{mailto-developer}}"]}},"no keys":{title:"Keine Schlüssel generiert",color:"warning",description:{title:"Das Konto wurde auf dem Login-Server angelegt, aber es wurden noch keine Schlüssel generiert!",lines:["+","+","-","-","-"]},todo:{title:"Der Benutzer muss sich mit seinen Daten einloggen, dann müsste er automatisch durch die Schlüsselgenerierung/Konto-Wiederherstellung geführt werden",lines:["{{mailto-user-login}}","Wenn der Benutzer sein Passwort vergessen hat, kann er sich auch eine Passwort Reset E-Mail zuschicken lassen.","{{reset-password}}","{{mailto-reset-password}}"]}}},NO_USER_FOUND:"Keine Benutzer gefunden",USER_FOUND:"Benutzer gefunden",NAME:"Name",EMAIL:"E-Mail",BALANCE:"Kontostand",PUBLIC_KEY:"Öffentlicher<br>Schlüssel",CREATED:"Erstellt",COPY_FROM_LOGIN_TO_COMMUNITY:"Vom Login-Server zum Gemeinschafts-Server kopieren",COPY_FROM_LOGIN_TO_COMMUNITY_SUCCESS:"Kontodaten wurden erfolgreich vom Login-Server zu diesem Gemeinschafts-Server kopiert!",COPY_FAILED:"Fehler beim Kopieren",AJAX_CRITICAL:"Kritischer Fehler beim Ajax-Request",COPY_IN_PROGRESS:"Wird kopiert"}},{}],14:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("mithril")),i=a(e("./userTable")),o=a(e("../model/AccountState"));function a(e){return e&&e.__esModule?e:{default:e}}var s={view:function(e){return void 0===g_users?(0,r.default)(""):0<g_users.length?(new o.default("account not on login-server"),(0,r.default)("",[(0,r.default)(".grid-body.py-3",(0,r.default)("p.grid-header",window.texte.USER_FOUND)),(0,r.default)(".table-responsive",(0,r.default)(i.default,{users:g_users}))])):(0,r.default)(".grid-body.py-3",(0,r.default)("p.grid-header",window.texte.NO_USER_FOUND))}};n.default=s},{"../model/AccountState":12,"./userTable":17,mithril:1}],15:[function(e,t,n){},{}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("mithril")),i=(o(e("./actionBase")),o(e("../../../lib/dialog")));function o(e){return e&&e.__esModule?e:{default:e}}var a={view:function(n){return(0,r.default)("p",[(0,r.default)("span",[(0,r.default)("button.btn.btn-gradido-orange.btn-xs",{title:window.texte.COPY_FROM_LOGIN_TO_COMMUNITY,onclick:function(e){var t;(t=n).state.loading=!0,t.state.showDialog=!0,r.default.request({method:"POST",url:window.location.protocol+"//"+document.domain+"/state-users/ajaxCopyLoginToCommunity",data:t.attrs.user,headers:{"X-CSRF-Token":csfr_token}}).then(function(e){t.state.loading=!1,"success"===e.state?(t.state.message=(0,r.default)("div.alert.alert-success",window.texte.COPY_FROM_LOGIN_TO_COMMUNITY_SUCCESS),t.state.copyResult="success"):(t.state.message=(0,r.default)("div.alert.alert-danger",window.texte.COPY_FAILED),t.state.copyResult="error")}).catch(function(e){t.state.loading=!1,t.state.message=(0,r.default)("div.alert.alert-danger",window.texte.AJAX_CRITICAL),t.state.copyResult="critical error",console.error("ajax error: %s in file: %s in line: %d",e.message,e.fileName,e.lineNumber)})},disabled:!0===n.state.loading},!0===n.state.loading?(0,r.default)("i.spinner-border.spinner-border-sm"):(0,r.default)("i.mdi.mdi-content-copy")),window.texte.COPY_FROM_LOGIN_TO_COMMUNITY]),n.state.showDialog?(0,r.default)(i.default,{title:window.texte.COPY_FROM_LOGIN_TO_COMMUNITY,body:(0,r.default)("div",[n.state.loading?(0,r.default)("div",[(0,r.default)("i.spinner-border.spinner-border-sm"),r.default.trust(" "),window.texte.COPY_IN_PROGRESS]):null,(0,r.default)("div",n.state.message)]),dismiss:function(e){var t;(t=n).state.message=null,t.state.showDialog=!1,"success"===t.state.copyResult&&"function"==typeof t.attrs.updateState&&t.attrs.updateState("account copied to community")}}):null])},oninit:function(e){e.state.loading=!1,e.state.message=null,e.state.showDialog=!1,e.state.copyResult=null}};n.default=a},{"../../../lib/dialog":11,"./actionBase":15,mithril:1}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("mithril")),o=r(e("./rowView")),a=r(e("./rowAction"));function r(e){return e&&e.__esModule?e:{default:e}}var s={view:function(r){return(0,i.default)("table.table.table-hover.table-sm",[(0,i.default)("thead",(0,i.default)("tr.solid-header",[(0,i.default)("th",{style:{"padding-left":"1.5rem"}}),(0,i.default)("th",window.texte.NAME),(0,i.default)("th",window.texte.EMAIL),(0,i.default)("th",window.texte.BALANCE),(0,i.default)("th",i.default.trust(window.texte.PUBLIC_KEY)),(0,i.default)("th",window.texte.CREATED)])),(0,i.default)("tbody",r.state.orderedUsers.map(function(e,n){var t=r.state.openedUser===n;return[(0,i.default)(o.default,{user:e,open:t,btnClick:function(){var e,t;t=n,(e=r).state.openedUser===t?e.state.openedUser=-1:e.state.openedUser=t}}),t?(0,i.default)(a.default,{user:e,updateState:function(e){var t,n;t=e,n=r,console.log("updateStateForActiveUser"),-1!==n.state.openedUser&&(n.state.orderedUsers[n.state.openedUser].indicator.name=t,n.state.openedUser=-1)}}):null]}))])},oninit:function(e){for(var t in e.state.orderedUsers=[],e.attrs.users)e.state.orderedUsers.push(e.attrs.users[t]);e.state.openedUser=-1}};n.default=s},{"./rowAction":18,"./rowView":19,mithril:1}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("mithril")),o=r(e("./actions/copyLoginCommunity"));function r(e){return e&&e.__esModule?e:{default:e}}var a=new RegExp(/{{([a-z-]*)}}/),s={view:function(r){var e=r.state.accountStateTexte.todo,t=e.lines;return(0,i.default)("tr",(0,i.default)("td.actions",{colspan:"6"},[(0,i.default)("p",e.title),0<t.length?(0,i.default)("ul",[t.map(function(e){var t=e.match(a);if(t){var n=function(){switch(t[1]){case"copy-from-login-to-community-server":return o.default}return null}();return n?(0,i.default)("li",(0,i.default)(n,{user:r.attrs.user,updateState:r.attrs.updateState})):(0,i.default)("li",e)}return(0,i.default)("li",e)})]):null]))},oninit:function(e){e.state.accountStateTexte=window.texte.ACCOUNT_STATES[e.attrs.user.indicator.name]}};n.default=s},{"./actions/copyLoginCommunity":16,mithril:1}],19:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=r(e("mithril")),f=r(e("../../model/AccountState")),d=r(e("../../lib/Gradido")),p=r(e("../../lib/Tooltip"));function r(e){return e&&e.__esModule?e:{default:e}}var i={view:function(e){var t=new f.default(e.attrs.user.indicator.name),n=e.attrs.user,r=t.getColor(),i=t.getTitle(),o=n.pubkeyhex;""!==o&&(o=n.pubkeyhex.substring(0,10)+"...");var a=n.created;if(a){var s=new Date(a);a=s.toLocaleDateString()+"<br>"+s.toLocaleTimeString()}var l=!1;t.hasActions()&&(l=t.getRawColor());var u="down";return e.attrs.open&&(u="up"),(0,c.default)("tr",[(0,c.default)("td",!1!==l?(0,c.default)("i.mdi.mdi-menu-"+u+".btn.btn-xs.btn-"+l,{onclick:e.attrs.btnClick}):null),(0,c.default)("td.pr-0",[(0,c.default)("span.text-black.font-weight-medium.d-block",n.name),(0,c.default)((0,p.default)((0,c.default)("span",[(0,c.default)("span.status-indicator.rounded-indicator.small."+r),(0,c.default)("small",i)])),{accountState:t})]),(0,c.default)("td",n.email),(0,c.default)("td",(0,c.default)(d.default,{centAmount:n.balance})),(0,c.default)("td",{title:n.pubkeyhex},o),(0,c.default)("td",c.default.trust(a))])},oninit:function(e){}};n.default=i},{"../../lib/Gradido":9,"../../lib/Tooltip":10,"../../model/AccountState":12,mithril:1}]},{},[8])}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
|