text: !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=67)}([function(t,e,n){(function(e,n){!function(){"use strict";function r(t,e,n,r,o,i){return{tag:t,key:e,attrs:n,children:r,text:o,dom:i,domSize:void 0,state:void 0,_state:void 0,events:void 0,instance:void 0,skip:!1}}r.normalize=function(t){return Array.isArray(t)?r("[",void 0,void 0,r.normalizeChildren(t),void 0,void 0):null!=t&&"object"!=typeof t?r("#",void 0,void 0,!1===t?"":t,void 0,void 0):t},r.normalizeChildren=function(t){for(var e=0;e<t.length;e++)t[e]=r.normalize(t[e]);return t};var o=/(?:(^|#|\.)([^#\.\[\]]+))|(\[(.+?)(?:\s*=\s*("|'|)((?:\\["'\]]|.)*?)\5)?\])/g,i={},a={}.hasOwnProperty;function u(t){for(var e in t)if(a.call(t,e))return!1;return!0}function s(t){var e,n=arguments[1],s=2;if(null==t||"string"!=typeof t&&"function"!=typeof t&&"function"!=typeof t.view)throw Error("The selector must be either a string or a component.");if("string"==typeof t)var l=i[t]||function(t){for(var e,n="div",r=[],a={};e=o.exec(t);){var u=e[1],s=e[2];if(""===u&&""!==s)n=s;else if("#"===u)a.id=s;else if("."===u)r.push(s);else if("["===e[3][0]){var l=e[6];l&&(l=l.replace(/\\(["'])/g,"$1").replace(/\\\\/g,"\\")),"class"===e[4]?r.push(l):a[e[4]]=""===l?l:l||!0}}return r.length>0&&(a.className=r.join(" ")),i[t]={tag:n,attrs:a}}(t);if(null==n?n={}:("object"!=typeof n||null!=n.tag||Array.isArray(n))&&(n={},s=1),arguments.length===s+1)e=arguments[s],Array.isArray(e)||(e=[e]);else for(e=[];s<arguments.length;)e.push(arguments[s++]);var c=r.normalizeChildren(e);return"string"==typeof t?function(t,e,n){var o,i,s=!1,l=e.className||e.class;if(!u(t.attrs)&&!u(e)){var c={};for(var f in e)a.call(e,f)&&(c[f]=e[f]);e=c}for(var f in t.attrs)a.call(t.attrs,f)&&(e[f]=t.attrs[f]);for(var f in void 0!==l&&(void 0!==e.class&&(e.class=void 0,e.className=l),null!=t.attrs.className&&(e.className=t.attrs.className+" "+l)),e)if(a.call(e,f)&&"key"!==f){s=!0;break}return Array.isArray(n)&&1===n.length&&null!=n[0]&&"#"===n[0].tag?i=n[0].children:o=n,r(t.tag,e.key,s?e:void 0,o,i)}(l,n,c):r(t,n.key,n,c)}s.trust=function(t){return null==t&&(t=""),r("<",void 0,void 0,t,void 0,void 0)},s.fragment=function(t,e){return r("[",t.key,t,r.normalizeChildren(e),void 0,void 0)};var l=s;if((c=function(t){if(!(this instanceof c))throw new Error("Promise must be called with `new`");if("function"!=typeof t)throw new TypeError("executor must be a function");var n=this,r=[],o=[],i=l(r,!0),a=l(o,!1),u=n._instance={resolvers:r,rejectors:o},s="function"==typeof e?e:setTimeout;function l(t,e){return function i(l){var c;try{if(!e||null==l||"object"!=typeof l&&"function"!=typeof l||"function"!=typeof(c=l.then))s(function(){e||0!==t.length||console.error("Possible unhandled promise rejection:",l);for(var n=0;n<t.length;n++)t[n](l);r.length=0,o.length=0,u.state=e,u.retry=function(){i(l)}});else{if(l===n)throw new TypeError("Promise can't be resolved w/ itself");f(c.bind(l))}}catch(t){a(t)}}}function f(t){var e=0;function n(t){return function(n){e++>0||t(n)}}var r=n(a);try{t(n(i),r)}catch(t){r(t)}}f(t)}).prototype.then=function(t,e){var n,r,o=this._instance;function i(t,e,i,a){e.push(function(e){if("function"!=typeof t)i(e);else try{n(t(e))}catch(t){r&&r(t)}}),"function"==typeof o.retry&&a===o.state&&o.retry()}var a=new c(function(t,e){n=t,r=e});return i(t,o.resolvers,n,!0),i(e,o.rejectors,r,!1),a},c.prototype.catch=function(t){return this.then(null,t)},c.resolve=function(t){return t instanceof c?t:new c(function(e){e(t)})},c.reject=function(t){return new c(function(e,n){n(t)})},c.all=function(t){return new c(function(e,n){var r=t.length,o=0,i=[];if(0===t.length)e([]);else for(var a=0;a<t.length;a++)!function(a){function u(t){o++,i[a]=t,o===r&&e(i)}null==t[a]||"object"!=typeof t[a]&&"function"!=typeof t[a]||"function"!=typeof t[a].then?u(t[a]):t[a].then(u,n)}(a)})},c.race=function(t){return new c(function(e,n){for(var r=0;r<t.length;r++)t[r].then(e,n)})},"undefined"!=typeof window){void 0===window.Promise&&(window.Promise=c);var c=window.Promise}else if(void 0!==n){void 0===n.Promise&&(n.Promise=c);c=n.Promise}var f=function(t){if("[object Object]"!==Object.prototype.toString.call(t))return"";var e=[];for(var n in t)r(n,t[n]);return e.join("&");function r(t,n){if(Array.isArray(n))for(var o=0;o<n.length;o++)r(t+"["+o+"]",n[o]);else if("[object Object]"===Object.prototype.toString.call(n))for(var o in n)r(t+"["+o+"]",n[o]);else e.push(encodeURIComponent(t)+(null!=n&&""!==n?"="+encodeURIComponent(n):""))}},d=new RegExp("^file://","i"),p=function(t,e){var n,r=0;function o(){var t=0;function e(){0==--t&&"function"==typeof n&&n()}return function n(r){var o=r.then;return r.then=function(){t++;var i=o.apply(r,arguments);return i.then(e,function(n){if(e(),0===t)throw n}),n(i)},r}}function i(t,e){if("string"==typeof t){var n=t;null==(t=e||{}).url&&(t.url=n)}return t}function a(t,e){if(null==e)return t;for(var n=t.match(/:[^\/]+/gi)||[],r=0;r<n.length;r++){var o=n[r].slice(1);null!=e[o]&&(t=t.replace(n[r],e[o]))}return t}function u(t,e){var n=f(e);return""!==n&&(t+=(t.indexOf("?")<0?"?":"&")+n),t}function s(t){try{return""!==t?JSON.parse(t):null}catch(e){throw new Error(t)}}function l(t){return t.responseText}function c(t,e){if("function"==typeof t){if(!Array.isArray(e))return new t(e);for(var n=0;n<e.length;n++)e[n]=new t(e[n])}return e}return{request:function(n,r){var f=o();n=i(n,r);var p=new e(function(e,r){null==n.method&&(n.method="GET"),n.method=n.method.toUpperCase();var o="GET"!==n.method&&"TRACE"!==n.method&&("boolean"!=typeof n.useBody||n.useBody);"function"!=typeof n.serialize&&(n.serialize="undefined"!=typeof FormData&&n.data instanceof FormData?function(t){return t}:JSON.stringify),"function"!=typeof n.deserialize&&(n.deserialize=s),"function"!=typeof n.extract&&(n.extract=l),n.url=a(n.url,n.data),o?n.data=n.serialize(n.data):n.url=u(n.url,n.data);var i=new t.XMLHttpRequest,f=!1,p=i.abort;for(var h in i.abort=function(){f=!0,p.call(i)},i.open(n.method,n.url,"boolean"!=typeof n.async||n.async,"string"==typeof n.user?n.user:void 0,"string"==typeof n.password?n.password:void 0),n.serialize!==JSON.stringify||!o||n.headers&&n.headers.hasOwnProperty("Content-Type")||i.setRequestHeader("Content-Type","application/json; charset=utf-8"),n.deserialize!==s||n.headers&&n.headers.hasOwnProperty("Accept")||i.setRequestHeader("Accept","application/json, text/*"),n.withCredentials&&(i.withCredentials=n.withCredentials),n.headers)({}).hasOwnProperty.call(n.headers,h)&&i.setRequestHeader(h,n.headers[h]);"function"==typeof n.config&&(i=n.config(i,n)||i),i.onreadystatechange=function(){if(!f&&4===i.readyState)try{var t=n.extract!==l?n.extract(i,n):n.deserialize(n.extract(i,n));if(i.status>=200&&i.status<300||304===i.status||d.test(n.url))e(c(n.type,t));else{var o=new Error(i.responseText);for(var a in t)o[a]=t[a];r(o)}}catch(t){r(t)}},o&&null!=n.data?i.send(n.data):i.send()});return!0===n.background?p:f(p)},jsonp:function(n,s){var l=o();n=i(n,s);var f=new e(function(e,o){var i=n.callbackName||"_mithril_"+Math.round(1e16*Math.random())+"_"+r++,s=t.document.createElement("script");t[i]=function(r){s.parentNode.removeChild(s),e(c(n.type,r)),delete t[i]},s.onerror=function(){s.parentNode.removeChild(s),o(new Error("JSONP request failed")),delete t[i]},null==n.data&&(n.data={}),n.url=a(n.url,n.data),n.data[n.callbackKey||"callback"]=i,s.src=u(n.url,n.data),t.document.documentElement.appendChild(s)});return!0===n.background?f:l(f)},setCompletionCallback:function(t){n=t}}}(window,c),h=function(t){var e,n=t.document,o=n.createDocumentFragment(),i={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"};function a(t){return t.attrs&&t.attrs.xmlns||i[t.tag]}function u(t,e,n,r,o,i,a){for(var u=n;u<r;u++){var l=e[u];null!=l&&s(t,l,o,a,i)}}function s(t,e,i,f,d){var p=e.tag;if("string"!=typeof p)return function(t,e,n,r,i){if(c(e,n),null!=e.instance){var a=s(t,e.instance,n,r,i);return e.dom=e.instance.dom,e.domSize=null!=e.dom?e.instance.domSize:0,g(t,a,i),a}return e.domSize=0,o}(t,e,i,f,d);switch(e.state={},null!=e.attrs&&k(e.attrs,e,i),p){case"#":return function(t,e,r){return e.dom=n.createTextNode(e.children),g(t,e.dom,r),e.dom}(t,e,d);case"<":return l(t,e,d);case"[":return function(t,e,r,o,i){var a=n.createDocumentFragment();if(null!=e.children){var s=e.children;u(a,s,0,s.length,r,null,o)}return e.dom=a.firstChild,e.domSize=a.childNodes.length,g(t,a,i),a}(t,e,i,f,d);default:return function(t,e,o,i,s){var l=e.tag,c=e.attrs,f=c&&c.is,d=(i=a(e)||i)?f?n.createElementNS(i,l,{is:f}):n.createElementNS(i,l):f?n.createElement(l,{is:f}):n.createElement(l);e.dom=d,null!=c&&function(t,e,n){for(var r in e)w(t,r,null,e[r],n)}(e,c,i);if(g(t,d,s),null!=e.attrs&&null!=e.attrs.contenteditable)m(e);else if(null!=e.text&&(""!==e.text?d.textContent=e.text:e.children=[r("#",void 0,void 0,e.text,void 0,void 0)]),null!=e.children){var p=e.children;u(d,p,0,p.length,o,null,i),function(t){var e=t.attrs;"select"===t.tag&&null!=e&&("value"in e&&w(t,"value",null,e.value,void 0),"selectedIndex"in e&&w(t,"selectedIndex",null,e.selectedIndex,void 0))}(e)}return d}(t,e,i,f,d)}}function l(t,e,r){var o={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",i=n.createElement(o);i.innerHTML=e.children,e.dom=i.firstChild,e.domSize=i.childNodes.length;for(var a,u=n.createDocumentFragment();a=i.firstChild;)u.appendChild(a);return g(t,u,r),u}function c(t,e){var n;if("function"==typeof t.tag.view){if(t.state=Object.create(t.tag),null!=(n=t.state.view).$$reentrantLock$$)return o;n.$$reentrantLock$$=!0}else{if(t.state=void 0,null!=(n=t.tag).$$reentrantLock$$)return o;n.$$reentrantLock$$=!0,t.state=null!=t.tag.prototype&&"function"==typeof t.tag.prototype.view?new t.tag(t):t.tag(t)}if(t._state=t.state,null!=t.attrs&&k(t.attrs,t,e),k(t._state,t,e),t.instance=r.normalize(t._state.view.call(t.state,t)),t.instance===t)throw Error("A view cannot return the vnode it received as argument");n.$$reentrantLock$$=null}function f(t,e,n,r,o,i,a){if(e!==n&&(null!=e||null!=n))if(null==e)u(t,n,0,n.length,o,i,a);else if(null==n)b(e,0,e.length,n);else{if(e.length===n.length){for(var l=!1,c=0;c<n.length;c++)if(null!=n[c]&&null!=e[c]){l=null==n[c].key&&null==e[c].key;break}if(l){for(c=0;c<e.length;c++)e[c]!==n[c]&&(null==e[c]&&null!=n[c]?s(t,n[c],o,a,v(e,c+1,i)):null==n[c]?b(e,c,c+1,n):d(t,e[c],n[c],o,v(e,c+1,i),r,a));return}}if(r=r||function(t,e){if(null!=t.pool&&Math.abs(t.pool.length-e.length)<=Math.abs(t.length-e.length)){var n=t[0]&&t[0].children&&t[0].children.length||0,r=t.pool[0]&&t.pool[0].children&&t.pool[0].children.length||0,o=e[0]&&e[0].children&&e[0].children.length||0;if(Math.abs(r-o)<=Math.abs(n-o))return!0}return!1}(e,n)){var f=e.pool;e=e.concat(e.pool)}for(var m,y=0,x=0,w=e.length-1,_=n.length-1;w>=y&&_>=x;){if((k=e[y])!==(S=n[x])||r)if(null==k)y++;else if(null==S)x++;else if(k.key===S.key){var I=null!=f&&y>=e.length-f.length||null==f&&r;x++,d(t,k,S,o,v(e,++y,i),I,a),r&&k.tag===S.tag&&g(t,h(k),i)}else{if((k=e[w])!==S||r)if(null==k)w--;else if(null==S)x++;else{if(k.key!==S.key)break;I=null!=f&&w>=e.length-f.length||null==f&&r;d(t,k,S,o,v(e,w+1,i),I,a),(r||x<_)&&g(t,h(k),v(e,y,i)),w--,x++}else w--,x++}else y++,x++}for(;w>=y&&_>=x;){var k,S;if((k=e[w])!==(S=n[_])||r)if(null==k)w--;else if(null==S)_--;else if(k.key===S.key){I=null!=f&&w>=e.length-f.length||null==f&&r;d(t,k,S,o,v(e,w+1,i),I,a),r&&k.tag===S.tag&&g(t,h(k),i),null!=k.dom&&(i=k.dom),w--,_--}else{if(m||(m=p(e,w)),null!=S){var j=m[S.key];if(null!=j){var T=e[j];I=null!=f&&j>=e.length-f.length||null==f&&r;d(t,T,S,o,v(e,w+1,i),r,a),g(t,h(T),i),e[j].skip=!0,null!=T.dom&&(i=T.dom)}else{i=s(t,S,o,a,i)}}_--}else w--,_--;if(_<x)break}u(t,n,x,_+1,o,i,a),b(e,y,w+1,n)}}function d(t,e,n,o,i,u,p){var v=e.tag;if(v===n.tag){if(n.state=e.state,n._state=e._state,n.events=e.events,!u&&function(t,e){var n,r;null!=t.attrs&&"function"==typeof t.attrs.onbeforeupdate&&(n=t.attrs.onbeforeupdate.call(t.state,t,e));"string"!=typeof t.tag&&"function"==typeof t._state.onbeforeupdate&&(r=t._state.onbeforeupdate.call(t.state,t,e));if(!(void 0===n&&void 0===r||n||r))return t.dom=e.dom,t.domSize=e.domSize,t.instance=e.instance,!0;return!1}(n,e))return;if("string"==typeof v)switch(null!=n.attrs&&(u?(n.state={},k(n.attrs,n,o)):S(n.attrs,n,o)),v){case"#":!function(t,e){t.children.toString()!==e.children.toString()&&(t.dom.nodeValue=e.children);e.dom=t.dom}(e,n);break;case"<":!function(t,e,n,r){e.children!==n.children?(h(e),l(t,n,r)):(n.dom=e.dom,n.domSize=e.domSize)}(t,e,n,i);break;case"[":!function(t,e,n,r,o,i,a){f(t,e.children,n.children,r,o,i,a);var u=0,s=n.children;if(n.dom=null,null!=s){for(var l=0;l<s.length;l++){var c=s[l];null!=c&&null!=c.dom&&(null==n.dom&&(n.dom=c.dom),u+=c.domSize||1)}1!==u&&(n.domSize=u)}}(t,e,n,u,o,i,p);break;default:!function(t,e,n,o,i){var u=e.dom=t.dom;i=a(e)||i,"textarea"===e.tag&&(null==e.attrs&&(e.attrs={}),null!=e.text&&(e.attrs.value=e.text,e.text=void 0));(function(t,e,n,r){if(null!=n)for(var o in n)w(t,o,e&&e[o],n[o],r);if(null!=e)for(var o in e)null!=n&&o in n||("className"===o&&(o="class"),"o"!==o[0]||"n"!==o[1]||_(o)?"key"!==o&&t.dom.removeAttribute(o):I(t,o,void 0))})(e,t.attrs,e.attrs,i),null!=e.attrs&&null!=e.attrs.contenteditable?m(e):null!=t.text&&null!=e.text&&""!==e.text?t.text.toString()!==e.text.toString()&&(t.dom.firstChild.nodeValue=e.text):(null!=t.text&&(t.children=[r("#",void 0,void 0,t.text,void 0,t.dom.firstChild)]),null!=e.text&&(e.children=[r("#",void 0,void 0,e.text,void 0,void 0)]),f(u,t.children,e.children,n,o,null,i))}(e,n,u,o,p)}else!function(t,e,n,o,i,a,u){if(a)c(n,o);else{if(n.instance=r.normalize(n._state.view.call(n.state,n)),n.instance===n)throw Error("A view cannot return the vnode it received as argument");null!=n.attrs&&S(n.attrs,n,o),S(n._state,n,o)}null!=n.instance?(null==e.instance?s(t,n.instance,o,u,i):d(t,e.instance,n.instance,o,i,a,u),n.dom=n.instance.dom,n.domSize=n.instance.domSize):null!=e.instance?(y(e.instance,null),n.dom=void 0,n.domSize=0):(n.dom=e.dom,n.domSize=e.domSize)}(t,e,n,o,i,u,p)}else y(e,null),s(t,n,o,p,i)}function p(t,e){var n={},r=0;for(r=0;r<e;r++){var o=t[r];if(null!=o){var i=o.key;null!=i&&(n[i]=r)}}return n}function h(t){var e=t.domSize;if(null!=e||null==t.dom){var r=n.createDocumentFragment();if(e>0){for(var o=t.dom;--e;)r.appendChild(o.nextSibling);r.insertBefore(o,r.firstChild)}return r}return t.dom}function v(t,e,n){for(;e<t.length;e++)if(null!=t[e]&&null!=t[e].dom)return t[e].dom;return n}function g(t,e,n){n&&n.parentNode?t.insertBefore(e,n):t.appendChild(e)}function m(t){var e=t.children;if(null!=e&&1===e.length&&"<"===e[0].tag){var n=e[0].children;t.dom.innerHTML!==n&&(t.dom.innerHTML=n)}else if(null!=t.text||null!=e&&0!==e.length)throw new Error("Child node of a contenteditable must be trusted")}function b(t,e,n,r){for(var o=e;o<n;o++){var i=t[o];null!=i&&(i.skip?i.skip=!1:y(i,r))}}function y(t,e){var n,r=1,o=0;t.attrs&&"function"==typeof t.attrs.onbeforeremove&&(null!=(n=t.attrs.onbeforeremove.call(t.state,t))&&"function"==typeof n.then&&(r++,n.then(i,i)));"string"!=typeof t.tag&&"function"==typeof t._state.onbeforeremove&&(null!=(n=t._state.onbeforeremove.call(t.state,t))&&"function"==typeof n.then&&(r++,n.then(i,i)));function i(){if(++o===r&&(function t(e){e.attrs&&"function"==typeof e.attrs.onremove&&e.attrs.onremove.call(e.state,e);if("string"!=typeof e.tag)"function"==typeof e._state.onremove&&e._state.onremove.call(e.state,e),null!=e.instance&&t(e.instance);else{var n=e.children;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r];null!=o&&t(o)}}}(t),t.dom)){var n=t.domSize||1;if(n>1)for(var i=t.dom;--n;)x(i.nextSibling);x(t.dom),null==e||null!=t.domSize||function(t){return null!=t&&(t.oncreate||t.onupdate||t.onbeforeremove||t.onremove)}(t.attrs)||"string"!=typeof t.tag||(e.pool?e.pool.push(t):e.pool=[t])}}i()}function x(t){var e=t.parentNode;null!=e&&e.removeChild(t)}function w(t,e,r,o,i){var a=t.dom;if("key"!==e&&"is"!==e&&(r!==o||function(t,e){return"value"===e||"checked"===e||"selectedIndex"===e||"selected"===e&&t.dom===n.activeElement}(t,e)||"object"==typeof o)&&void 0!==o&&!_(e)){var u=e.indexOf(":");if(u>-1&&"xlink"===e.substr(0,u))a.setAttributeNS("http://www.w3.org/1999/xlink",e.slice(u+1),o);else if("o"===e[0]&&"n"===e[1]&&"function"==typeof o)I(t,e,o);else if("style"===e)!function(t,e,n){e===n&&(t.style.cssText="",e=null);if(null==n)t.style.cssText="";else if("string"==typeof n)t.style.cssText=n;else{for(var r in"string"==typeof e&&(t.style.cssText=""),n)t.style[r]=n[r];if(null!=e&&"string"!=typeof e)for(var r in e)r in n||(t.style[r]="")}}(a,r,o);else if(e in a&&!function(t){return"href"===t||"list"===t||"form"===t||"width"===t||"height"===t}(e)&&void 0===i&&!function(t){return t.attrs.is||t.tag.indexOf("-")>-1}(t)){if("value"===e){var s=""+o;if(("input"===t.tag||"textarea"===t.tag)&&t.dom.value===s&&t.dom===n.activeElement)return;if("select"===t.tag)if(null===o){if(-1===t.dom.selectedIndex&&t.dom===n.activeElement)return}else if(null!==r&&t.dom.value===s&&t.dom===n.activeElement)return;if("option"===t.tag&&null!=r&&t.dom.value===s)return}if("input"===t.tag&&"type"===e)return void a.setAttribute(e,o);a[e]=o}else"boolean"==typeof o?o?a.setAttribute(e,""):a.removeAttribute(e):a.setAttribute("className"===e?"class":e,o)}}function _(t){return"oninit"===t||"oncreate"===t||"onupdate"===t||"onremove"===t||"onbeforeremove"===t||"onbeforeupdate"===t}function I(t,n,r){var o=t.dom,i="function"!=typeof e?r:function(t){var n=r.call(o,t);return e.call(o,t),n};if(n in o)o[n]="function"==typeof r?i:null;else{var a=n.slice(2);if(void 0===t.events&&(t.events={}),t.events[n]===i)return;null!=t.events[n]&&o.removeEventListener(a,t.events[n],!1),"function"==typeof r&&(t.events[n]=i,o.addEventListener(a,t.events[n],!1))}}function k(t,e,n){"function"==typeof t.oninit&&t.oninit.call(e.state,e),"function"==typeof t.oncreate&&n.push(t.oncreate.bind(e.state,e))}function S(t,e,n){"function"==typeof t.onupdate&&n.push(t.onupdate.bind(e.state,e))}return{render:function(t,e){if(!t)throw new Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var o=[],i=n.activeElement,a=t.namespaceURI;null==t.vnodes&&(t.textContent=""),Array.isArray(e)||(e=[e]),f(t,t.vnodes,r.normalizeChildren(e),!1,o,null,"http://www.w3.org/1999/xhtml"===a?void 0:a),t.vnodes=e,null!=i&&n.activeElement!==i&&i.focus();for(var u=0;u<o.length;u++)o[u]()},setEventCallback:function(t){return e=t}}};var v=function(t){var e=h(t);e.setEventCallback(function(t){!1===t.redraw?t.redraw=void 0:o()});var n=[];function r(t){var e=n.indexOf(t);e>-1&&n.splice(e,2)}function o(){for(var t=1;t<n.length;t+=2)n[t]()}return{subscribe:function(t,e){r(t),n.push(t,function(t){var e=0,n=null,r="function"==typeof requestAnimationFrame?requestAnimationFrame:setTimeout;return function(){var o=Date.now();0===e||o-e>=16?(e=o,t()):null===n&&(n=r(function(){n=null,t(),e=Date.now()},16-(o-e)))}}(e))},unsubscribe:r,redraw:o,render:e.render}}(window);p.setCompletionCallback(v.redraw);l.mount=function(t){return function(e,n){if(null===n)return t.render(e,[]),void t.unsubscribe(e);if(null==n.view&&"function"!=typeof n)throw new Error("m.mount(element, component) expects a component, not a vnode");t.subscribe(e,function(){t.render(e,r(n))}),t.redraw()}}(v);var g=c,m=function(t){if(""===t||null==t)return{};"?"===t.charAt(0)&&(t=t.slice(1));for(var e=t.split("&"),n={},r={},o=0;o<e.length;o++){var i=e[o].split("="),a=decodeURIComponent(i[0]),u=2===i.length?decodeURIComponent(i[1]):"";"true"===u?u=!0:"false"===u&&(u=!1);var s=a.split(/\]\[?|\[/),l=n;a.indexOf("[")>-1&&s.pop();for(var c=0;c<s.length;c++){var f=s[c],d=s[c+1],p=""==d||!isNaN(parseInt(d,10)),h=c===s.length-1;if(""===f)null==r[a=s.slice(0,c).join()]&&(r[a]=0),f=r[a]++;null==l[f]&&(l[f]=h?u:p?[]:{}),l=l[f]}}return n},b=function(t){var n,r="function"==typeof t.history.pushState,o="function"==typeof e?e:setTimeout;function i(e){var n=t.location[e].replace(/(?:%[a-f89][a-f0-9])+/gim,decodeURIComponent);return"pathname"===e&&"/"!==n[0]&&(n="/"+n),n}function a(t,e,n){var r=t.indexOf("?"),o=t.indexOf("#"),i=r>-1?r:o>-1?o:t.length;if(r>-1){var a=o>-1?o:t.length,u=m(t.slice(r+1,a));for(var s in u)e[s]=u[s]}if(o>-1){var l=m(t.slice(o+1));for(var s in l)n[s]=l[s]}return t.slice(0,i)}var u={prefix:"#!",getPath:function(){switch(u.prefix.charAt(0)){case"#":return i("hash").slice(u.prefix.length);case"?":return i("search").slice(u.prefix.length)+i("hash");default:return i("pathname").slice(u.prefix.length)+i("search")+i("hash")}},setPath:function(e,n,o){var i={},s={};if(e=a(e,i,s),null!=n){for(var l in n)i[l]=n[l];e=e.replace(/:([^\/]+)/g,function(t,e){return delete i[e],n[e]})}var c=f(i);c&&(e+="?"+c);var d=f(s);if(d&&(e+="#"+d),r){var p=o?o.state:null,h=o?o.title:null;t.onpopstate(),o&&o.replace?t.history.replaceState(p,h,u.prefix+e):t.history.pushState(p,h,u.prefix+e)}else t.location.href=u.prefix+e}};return u.defineRoutes=function(e,i,s){function l(){var n=u.getPath(),r={},o=a(n,r,r),l=t.history.state;if(null!=l)for(var c in l)r[c]=l[c];for(var f in e){var d=new RegExp("^"+f.replace(/:[^\/]+?\.{3}/g,"(.*?)").replace(/:[^\/]+/g,"([^\\/]+)")+"/?$");if(d.test(o))return void o.replace(d,function(){for(var t=f.match(/:[^\/]+/g)||[],o=[].slice.call(arguments,1,-2),a=0;a<t.length;a++)r[t[a].replace(/:|\./g,"")]=decodeURIComponent(o[a]);i(e[f],r,n,f)})}s(n,r)}r?t.onpopstate=function(t){return function(){null==n&&(n=o(function(){n=null,t()}))}}(l):"#"===u.prefix.charAt(0)&&(t.onhashchange=l),l()},u};l.route=function(t,e){var n,o,i,a,u,s=b(t),l=function(t,l,c){if(null==t)throw new Error("Ensure the DOM element that was passed to `m.route` is not undefined");var f=function(){null!=n&&e.render(t,n(r(o,i.key,i)))},d=function(t){if(t===l)throw new Error("Could not resolve default route "+l);s.setPath(l,null,{replace:!0})};s.defineRoutes(c,function(t,e,r){var s=u=function(t,l){s===u&&(o=null==l||"function"!=typeof l.view&&"function"!=typeof l?"div":l,i=e,a=r,u=null,n=(t.render||function(t){return t}).bind(t),f())};t.view||"function"==typeof t?s({},t):t.onmatch?g.resolve(t.onmatch(e,r)).then(function(e){s(t,e)},d):s(t,"div")},d),e.subscribe(t,f)};return l.set=function(t,e,n){null!=u&&((n=n||{}).replace=!0),u=null,s.setPath(t,e,n)},l.get=function(){return a},l.prefix=function(t){s.prefix=t},l.link=function(t){t.dom.setAttribute("href",s.prefix+t.attrs.href),t.dom.onclick=function(t){if(!(t.ctrlKey||t.metaKey||t.shiftKey||2===t.which)){t.preventDefault(),t.redraw=!1;var e=this.getAttribute("href");0===e.indexOf(s.prefix)&&(e=e.slice(s.prefix.length)),l.set(e,void 0,void 0)}}},l.param=function(t){return void 0!==i&&void 0!==t?i[t]:i},l}(window,v),l.withAttr=function(t,e,n){return function(r){e.call(n||this,t in r.currentTarget?r.currentTarget[t]:r.currentTarget.getAttribute(t))}};var y=h(window);l.render=y.render,l.redraw=v.redraw,l.request=p.request,l.jsonp=p.jsonp,l.parseQueryString=m,l.buildQueryString=f,l.version="1.1.6",l.vnode=r,t.exports=l}()}).call(this,n(73).setImmediate,n(14))},function(t,e,n){"use strict";t.exports={user:{},userTempName:"",userGroups:[],current:{org:{title:"שם הארגון"},team:{title:"שם הקבוצה"}},orgs:[],teams:[],lastPage:"",loginType:"",questions:{},groups:{},options:[],optionsVotes:{},optionsLoc:{},optionsDetails:{},messagesShow:{},feedsUnsubscribe:{},feed:{},showFeed:!1,numberOfNewMessages:0,subscribed:{},subQuestions:{},editEntity:!1}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var r={},o=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),i=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),a=null,u=0,s=[],l=n(70);function c(t,e){for(var n=0;n<t.length;n++){var o=t[n],i=r[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(g(o.parts[a],e))}else{var u=[];for(a=0;a<o.parts.length;a++)u.push(g(o.parts[a],e));r[o.id]={id:o.id,refs:1,parts:u}}}}function f(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],u={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}function d(t,e){var n=i(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=s[s.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),s.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=i(t.insertAt.before,n);n.insertBefore(e,o)}}function p(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=s.indexOf(t);e>=0&&s.splice(e,1)}function h(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return v(e,t.attrs),d(t,e),e}function v(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function g(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var s=u++;n=a||(a=h(e)),r=b.bind(null,n,s,!1),o=b.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),d(t,e),e}(e),r=function(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=l(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}.bind(null,n,e),o=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){p(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return c(n,e),function(t){for(var o=[],i=0;i<n.length;i++){var a=n[i];(u=r[a.id]).refs--,o.push(u)}t&&c(f(t,e),e);for(i=0;i<o.length;i++){var u;if(0===(u=o[i]).refs){for(var s=0;s<u.parts.length;s++)u.parts[s]();delete r[u.id]}}}};var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function b(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}},function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=a(n(0)),i=a(n(1));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);this.path=e,this.type=n,this.collectionOrDoc=r,["array","stringDash","stringSlash"].includes(this.type)?"collection"==this.collectionOrDoc||"doc"==this.collectionOrDoc||console.error("Please specify if 'collection' or 'doc'.  "+r+" was set in class Reference"):console.error("Type "+this.type+", is not recognized by class Reference")}return r(t,[{key:"fromArrayToSring",value:function(){var t="";if("collection"===this.collectionOrDoc){for(var e=0;e<this.path.length;e++)t+=0==e?this.path[e]:"--"+this.path[e];return t}return console.log("didnt created doc convertor yet"),!1}}]),t}();var s=["Happy","adroit","amatory","animistic","antic","arcadian","baleful","bellicose","bilious","boorish","calamitous","caustic","cerulean","comely","concomitant","contumacious","corpulent","crapulous","defamatory","didactic","dilatory","dowdy","efficacious","effulgent","egregious","endemic","equanimous","execrable","fastidious","feckless","fecund","friable","fulsome","garrulous","guileless","gustatory","heuristic","histrionic","hubristic","incendiary","insidious","insolent","intransigent","inveterate","invidious","irksome","jejune","jocular","judicious","lachrymose","limpid","loquacious","luminous","mannered","mendacious","meretricious","minatory","mordant","munificent","nefarious","noxious","obtuse","parsimonious","pendulous","pernicious","pervasive","petulant","platitudinous","precipitate","propitious","puckish","querulous","quiescent","rebarbative","recalcitant","redolent","rhadamanthine","risible","ruminative","sagacious","salubrious","sartorial","sclerotic","serpentine","spasmodic","strident","taciturn","tenacious","tremulous","trenchant","turbulent","turgid","ubiquitous","uxorious","verdant","voluble","voracious","wheedling","withering","zealous"],l=["ninja","chair","pancake","statue","unicorn","rainbows","laser","senor","bunny","captain","nibblets","cupcake","carrot","gnomes","glitter","potato","salad","toejam","curtains","beets","toilet","exorcism","stick figures","mermaid eggs","sea barnacles","dragons","jellybeans","snakes","dolls","bushes","cookies","apples","ice cream","ukulele","kazoo","banjo","opera singer","circus","trampoline","carousel","carnival","locomotive","hot air balloon","praying mantis","animator","artisan","artist","colorist","inker","coppersmith","director","designer","flatter","stylist","leadman","limner","make-up artist","model","musician","penciller","producer","scenographer","set decorator","silversmith","teacher","auto mechanic","beader","bobbin boy","clerk of the chapel","filling station attendant","foreman","maintenance engineering","mechanic","miller","moldmaker","panel beater","patternmaker","plant operator","plumber","sawfiler","shop foreman","soaper","stationary engineer","wheelwright","woodworkers"];function c(t){return t[Math.floor(Math.random()*t.length)]}t.exports={Reference:u,createRefString:function(t,e){},msToTime:function(t){parseInt(t%1e3/100);var e=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),r=Math.floor(t/36e5%24);return(r=r<10?"0"+r:r)+":"+(n=n<10?"0"+n:n)+":"+(e=e<10?"0"+e:e)},deep_value:function(t,e,n){for(var r=0,o=(e=e.split(".")).length;r<o;r++){if(!t.hasOwnProperty(e[r]))return n;t=t[e[r]]}return t},setWrapperHeight:function(t,e){var n=document.getElementById(t);if(null!=n){var r=n.clientHeight;r+=10,document.getElementById(e).style.top=r+"px"}else console.error("No such header exists")},setWrapperFromFooter:function(t,e){var n=document.getElementById(t).clientHeight;document.getElementById(e).style.marginBottom=n+30+"px"},returnUserRole:function(t,e){return!!t.hasOwnProperty(e)&&t[e]},getRandomName:function(){return c(s)+c(l)},loginIfNotRegisterd:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"login";i.default.user.hasOwnProperty("isAnonymous")?i.default.user.isAnonymous&&(i.default.lastPage="/"+t,o.default.route.set("/loginGoogle")):(i.default.lastPage="/"+t,o.default.route.set("/loginGoogle"))},setLastPage:function(){i.default.lastPage=o.default.route.get(),sessionStorage.setItem("lastPage",i.default.lastPage)}}},function(t,e,n){var r=n(46),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){"use strict";var r=u(n(0)),o=u(n(11)),i=u(n(1)),a=n(28);function u(t){return t&&t.__esModule?t:{default:t}}var s={};function l(t,e,n,r){t.hasOwnProperty(e)?t[e][n]=r:(t[e]={},t[e][n]=r)}function c(t,e,n,i){var a=o.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("subAnswers").orderBy("time","desc").limit(100);return s=a.onSnapshot(function(t){var e=[];t.forEach(function(t){var n=t.data();n.id=t.id,e.push(n)}),i.state.subAnswers[n]=e,r.default.redraw()})}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"on",n=t;if(t=t.replace(/--/g,"/"),"on"===e){var a=o.default.collection(t),u=(new Date).getTime()-1296e5;i.default.feedsUnsubscribe[n]=a.where("timeSeconds",">",u).orderBy("timeSeconds","desc").limit(1).onSnapshot(function(e){e.forEach(function(e){if(null!==e.data().time){var o=e.data();o.path=n,i.default.feed[t]=o,i.default.numberOfNewMessages++,console.log("play sound"),audio.play();var a=audio.play();null!==a&&a.catch(function(){audio.play()}),r.default.redraw()}})})}else i.default.feedsUnsubscribe.hasOwnProperty(n)&&i.default.feedsUnsubscribe[n](),delete i.default.subscribed[n],r.default.redraw()}t.exports={getUserGroups:function(t,e){if("on"==t)o.default.collection("users").doc(e).collection("groupsOwned").onSnapshot(function(t){for(var e in s)s[e]();s={};var n=t.size,a=0,u={},l=[];t.forEach(function(t){s[t.data().id]=o.default.collection("groups").doc(t.data().id).onSnapshot(function(e){var o=e.data();if(o.id=t.id,u[t.data().id]=o,++a==n){for(var s in u)l.push(u[s]);i.default.userGroups=l,r.default.redraw()}else if(a>n){var c=i.default.userGroups.findIndex(function(t){return t.id===o.id});i.default.userGroups[c]=o,r.default.redraw()}})})});else for(var n in s)s[n]()},getQuestions:function(t,e,n){"on"===t?n.state.unsubscribe=o.default.collection("groups").doc(e).collection("questions").orderBy("time","desc").onSnapshot(function(t){t.forEach(function(t){t.data().id&&l(i.default.questions,e,t.data().id,t.data())}),r.default.redraw()}):n.state.unsubscribe()},getGroupDetails:function(t,e){return o.default.collection("groups").doc(t).onSnapshot(function(n){i.default.groups[t]=n.data(),e.state.groupName=n.data().description,r.default.redraw()})},getQuestionDetails:function(t,e,n){return o.default.collection("groups").doc(t).collection("questions").doc(e).onSnapshot(function(o){l(i.default.questions,t,e,o.data()),n.state.title=o.data().title,n.state.description=o.data().description,n.state.creatorId=o.data().creatorId,o.data().authorization&&(n.state.authorized=o.data().authorization),r.default.redraw()})},getSubQuestions:function(t,e,n){return arguments.length>3&&void 0!==arguments[3]&&arguments[3],o.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").orderBy("order","asc").get().then(function(t){var e=[],o={};t.forEach(function(t){var n=t.data();n.id=t.id,e.push(n),o[n.id]={}}),n.state.subQuestions=e,r.default.redraw()})},getSubQuestion:function(t,e,n){return o.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).onSnapshot(function(o){o.exists?((0,a.set)(i.default,"subQuestions["+n+"]",o.data()),r.default.redraw()):console.error("subQuestion "+t+"/"+e+"/"+n+" dont exists ")})},getSubQuestionOptions:function(t,e,n,u){var s=o.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("options"),l="time";switch(u){case"new":l="time";break;case"top":l="consensusPrecentage";break;default:l="time"}return s.orderBy(l,"desc").limit(20).onSnapshot(function(t){var e=[];t.forEach(function(t){var n=t.data();n.id=t.id;var r=document.getElementById(n.id);i.default.optionsLoc[n.id]=r?{offsetTop:r.offsetTop,offsetLeft:r.offsetLeft,toAnimate:!0,new:!1}:{offsetTop:0,offsetLeft:0,toAnimate:!1,new:!0},e.push(n)}),(0,a.set)(i.default,"options["+n+"]",e),r.default.redraw()})},getOptionVote:function(t,e,n,a,u){return o.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("options").doc(a).collection("likes").doc(u).onSnapshot(function(t){t.exists?i.default.optionsVotes[a]=t.data().like:i.default.optionsVotes[a]=0,r.default.redraw()})},getSubItems:function(t,e,n,i){var a=o.default.collection("groups").doc(e).collection("questions").doc(n).collection(t);return s=a.orderBy("totalVotes","desc").onSnapshot(function(o){o.docChanges().forEach(function(t){"added"===t.type&&(i.state.subAnswersUnsb[t.doc.id]=c(e,n,t.doc.id,i)),t.type});var a=[];o.forEach(function(t){var e=t.data();e.id=t.id,a.push(e)}),i.state[t]=a,r.default.redraw()})},getSubItemLikes:function(t,e,n,i,a,u){return o.default.collection("groups").doc(e).collection("questions").doc(n).collection(t).doc(i).onSnapshot(function(t){void 0!=t.data().totalVotes?u.state.likes=t.data().totalVotes:u.state.likes=0,r.default.redraw()})},getSubItemUserLike:function(t,e,n,i,a,u){return o.default.collection("groups").doc(e).collection("questions").doc(n).collection(t).doc(i).collection("likes").doc(a).onSnapshot(function(t){t.exists&&1==t.data().like?u.state.up=!0:u.state.up=!1,r.default.redraw()})},getSubAnswers:c,getOptionDetails:function(t,e,n,a,u){return o.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("options").doc(a).onSnapshot(function(t){i.default.optionsDetails[a]=t.data(),u.state.option.title=t.data().title,r.default.redraw()})},getMessages:function(t,e,n,i,a){return o.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("options").doc(i).collection("messages").orderBy("time","desc").limit(20).onSnapshot(function(t){var e=[];t.size,t.forEach(function(t){var n=t.data();a.state.messagesIds.hasOwnProperty(t.id)?n.isNew=!1:n.isNew=!0,e.unshift(n),a.state.messagesIds[t.id]=!0}),a.state.messages=e,r.default.redraw()})},listenToFeeds:function(){i.default.user.hasOwnProperty("uid")?o.default.collection("users").doc(i.default.user.uid).collection("feeds").onSnapshot(function(t){t.docChanges().forEach(function(t){var e=t.doc.data().path;"added"===t.type?(f(e),i.default.subscribed[e]=!0,r.default.redraw()):"removed"===t.type&&f(e,"off")})}):console.error("User is not logged in and I can not subscribe to his/her feeds")}}},function(t,e,n){"use strict";i(n(0));var r=i(n(11)),o=i(n(1));n(4);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports={updateOption:function(t){r.default.collection("groups").doc(t.attrs.groupId).collection("questions").doc(t.attrs.questionId).collection("subQuestions").doc(t.attrs.subQuestionId).collection("options").doc(t.attrs.optionId).update({title:t.state.title,description:t.state.description,more:{text:t.state.more.text||"",URL:t.state.more.URL||""}})},addToFeed:function(t,e,n,i){"add"==t?r.default.collection("users").doc(o.default.user.uid).collection("feeds").doc(n).set({path:n,time:(new Date).getTime(),type:i,refString:n}).then(function(){console.log("added entety to DB",n),o.default.subscribed[n]=!0,console.dir(o.default.subscribed)}).catch(function(t){console.error("Error writing document: ",t)}):r.default.collection("users").doc(o.default.user.uid).collection("feeds").doc(n).delete().then(function(){delete o.default.subscribed[n]}).catch(function(t){console.error("Error removing document: ",t)})},createGroup:function(t,e,n){r.default.collection("groups").add({title:e,description:n,creatorId:t,time:(new Date).getTime()}).then(function(e){r.default.collection("users").doc(t).collection("groupsOwned").doc(e.id).set({id:e.id,date:(new Date).getTime()})}).catch(function(t){console.error("Error adding document: ",t)})},createQuestion:function(t,e,n,o){r.default.collection("groups").doc(t).collection("questions").add({title:n,description:o,time:(new Date).getTime(),creatorId:e}).then(function(e){r.default.collection("groups").doc(t).collection("questions").doc(e.id).update({id:e.id}),console.log(e.id),console.log("writen succesufuly")}).catch(function(t){console.error("Error adding document: ",t)})},updateQuestion:function(t,e,n,o,i){r.default.collection("groups").doc(t).collection("questions").doc(e).update({title:n,description:o,authorization:i}).then(function(t){console.log("writen succesufuly")}).catch(function(t){console.error("Error adding document: ",t)})},createSubQuestion:function(t,e,n,i){r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").add({title:n,order:i,creator:o.default.user.uid,orderBy:"top"}).then(function(t){console.log("doc wrirten succesfully")}).catch(function(t){console.error("Error adding document: ",t)})},updateSubQuestion:function(t,e,n,o){r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).update({title:o})},setSubQuestionsOrder:function(t,e,n,o){r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).update({order:o}).then(function(t){console.log("writen to "+n+" succesufuly")}).catch(function(t){console.error("Error adding document: ",t)})},createOption:function(t,e,n,o,i,a,u,s,l){var c=r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("options");c.add({groupId:t,questionId:e,creatorId:i,type:o,title:a,description:u,more:{text:s,URL:l},time:firebase.firestore.FieldValue.serverTimestamp(),consensusPrecentage:0}).then(function(t){c.doc(t.id).update({id:t.id})}).catch(function(t){console.error("Error adding document: ",t)})},createSubItem:function(t,e,n,o,i,a,u){var s=r.default.collection("groups").doc(e).collection("questions").doc(n).collection(t),l={groupId:e,questionId:n,creatorId:o,title:a,description:u,author:i,time:firebase.firestore.FieldValue.serverTimestamp(),consensusPrecentage:0,roles:{},totalVotes:0};l.roles[o]="owner",s.add(l).then(function(t){}).catch(function(t){console.error("Error adding document: ",t)})},updateSubItem:function(t,e,n,o,i,a){var u=r.default.collection("groups").doc(e).collection("questions").doc(n).collection(t).doc(o),s={title:i,description:a,time:firebase.firestore.FieldValue.serverTimestamp()};u.update(s).then(function(t){}).catch(function(t){console.error("Error updating document: ",t)})},setLikeToSubItem:function(t,e,n,o,i,a){var u=r.default.collection("groups").doc(e).collection("questions").doc(n).collection(t).doc(o).collection("likes").doc(i);a?(u.set({like:1}),console.log("set like to ",o)):(u.set({like:0}),console.log("unset like to ",o))},setLike:function(t,e,n,o,i,a){r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("options").doc(o).collection("likes").doc(i).set({like:a}).then(function(t){}).catch(function(t){console.error("Error adding document: ",t)})},setMessage:function(t,e,n,o,i,a,u,s,l,c){r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("options").doc(o).collection("messages").add({creatorId:i,creatorName:a,time:firebase.firestore.FieldValue.serverTimestamp(),timeSeconds:(new Date).getTime(),message:u,type:"messages",groupName:s,questionName:l,optionName:c}).then(function(i){r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("options").doc(o).update({lastMessage:firebase.firestore.FieldValue.serverTimestamp()}).then(function(t){console.log("updated last message")})}).catch(function(t){console.log("Error:",t)})},setSubAnswer:function(t,e,n,o,i,u){var s;r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).collection("subAnswers").add((s={groupId:t,questionId:e,subQuestionId:n,creatorId:o,author:i},a(s,"creatorId",o),a(s,"time",firebase.firestore.FieldValue.serverTimestamp()),a(s,"message",u),s)).then(function(t){}).catch(function(t){console.error("Error adding document: ",t)})},updateSubQuestionProcess:function(t,e,n,o){r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).update({processType:o})},updateSubQuestionOrderBy:function(t,e,n,o){r.default.collection("groups").doc(t).collection("questions").doc(e).collection("subQuestions").doc(n).update({orderBy:o})}}},function(t,e,n){var r=n(83),o=n(88);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(71));firebase.initializeApp(r.default);var o=firebase.firestore();o.settings({timestampsInSnapshots:!0}),t.exports=o},function(t,e,n){var r=n(16),o=n(84),i=n(85),a="[object Null]",u="[object Undefined]",s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:s&&s in Object(t)?o(t):i(t)}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=o(n(0));o(n(1)),o(n(11));function o(t){return t&&t.__esModule?t:{default:t}}t.exports={googleLogin:function(){var t=new firebase.auth.GoogleAuthProvider;firebase.auth().signInWithPopup(t).then(function(t){t.credential.accessToken,console.log("user is logged in with google");var e=sessionStorage.getItem("lastPage")||"/groups";r.default.route.set(e)}).catch(function(t){t.code,t.message,t.email,t.credential}),t.addScope("https://www.googleapis.com/auth/contacts.readonly")},anonymousLogin:function(){firebase.auth().signInAnonymously().catch(function(t){t.code,t.message})},logout:function(){firebase.auth().signOut().then(function(){console.log("logout")}).catch(function(t){console.error(t)})}}},function(t,e,n){var r=n(5).Symbol;t.exports=r},function(t,e,n){var r=n(29),o=n(43);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,s=e.length;++u<s;){var l=e[u],c=i?i(n[l],t[l],l,n,t):void 0;void 0===c&&(c=t[l]),a?o(n,l,c):r(n,l,c)}return n}},function(t,e,n){"use strict";var r=s(n(0));n(180);var o=n(7),i=s(n(1)),a=n(4),u=s(n(182));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={oninit:function(t){t.state={previousCount:0,subscribed:!1,refArray:["groups",t.attrs.groupId,"questions",t.attrs.questionId,"subQuestions",t.attrs.subQuestionId,"options",t.attrs.optionId,"messages"],refString:"",isMenuOpen:!1};var e=new a.Reference(t.state.refArray,"array","collection");t.state.refString=e.fromArrayToSring()},onbeforeupdate:function(t){i.default.subscribed.hasOwnProperty(t.state.refString)?t.state.subscribed=!0:t.state.subscribed=!1},onupdate:function(t){!function(t){t.state.previousCount!=i.default.numberOfNewMessages&&(document.getElementById("newFeedCounter").style.transform="translateY(-5px)",setTimeout(function(){document.getElementById("newFeedCounter").style.transform="translateY(0px)"},300));t.state.previousCount=i.default.numberOfNewMessages}(t)},view:function(t){return(0,r.default)("div",null,(0,r.default)("header",{id:"headerContainer"},(0,r.default)("div",{class:"headerContainer"},(0,r.default)("img",{onclick:function(e){e.stopPropagation(),function(t){var e=document.getElementById("aside");t.state.isMenuOpen?e.style.right="-260px":e.style.right="0px";t.state.isMenuOpen=!t.state.isMenuOpen}(t)},class:"headerHamburger",src:"img/icons8-menu-24.png"}),(0,r.default)("div",{class:"headerTitle"},t.attrs.topic,": ",t.attrs.title),(0,r.default)("div",{class:"headerSetFeed",onclick:function(e){e.stopPropagation(),function(t){t.state.subscribed?((0,o.addToFeed)("remove",t.state.refArray,t.state.refString,"collection"),t.state.subscribed=!1):((0,o.addToFeed)("add",t.state.refArray,t.state.refString,"collection"),t.state.subscribed=!0)}(t)}},(0,r.default)("img",{src:t.state.subscribed?"img/icons8-rss-32-white.png":"img/icons8-rss-32-gray.png"})),(0,r.default)("div",{class:"headerMessage",onclick:function(t){t.stopPropagation(),i.default.showFeed=!i.default.showFeed,i.default.numberOfNewMessages=0}},(0,r.default)("img",{src:"img/icons8-secured-letter-32.png"}),(0,r.default)("div",{class:"headerMesaggeCounter",id:"newFeedCounter"}," ",i.default.numberOfNewMessages)),t.attrs.upLevelUrl?(0,r.default)("div",{class:"headerBack",onclick:function(e){e.stopPropagation(),r.default.route.set(t.attrs.upLevelUrl)}},(0,r.default)("img",{src:"img/icons8-back-24.png"})):(0,r.default)("div",{class:"headerEmptyBack"})),void 0==!t.attrs.option?(0,r.default)("div",{class:"chatOptionHeader"},"אופציה: ",t.attrs.option):(0,r.default)("div",null)),(0,r.default)(u.default,null))}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(9),o=n(89),i=n(90),a=n(110);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){var r=n(8)(Object,"create");t.exports=r},function(t,e,n){var r=n(100),o=n(101),i=n(102),a=n(103),u=n(104);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,n){var r=n(48);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(106);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(52),o=n(128),i=n(57);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){"use strict";var r=a(n(0));n(185);var o=a(n(187)),i=a(n(1));function a(t){return t&&t.__esModule?t:{default:t}}t.exports={oninit:function(t){t.state={orderdFeed:[]}},onbeforeupdate:function(t){!function(t){for(var e in t.state.orderdFeed=[],i.default.feed)t.state.orderdFeed.push(i.default.feed[e]);t.state.orderdFeed.sort(function(t,e){return e.timeSeconds-t.timeSeconds})}(t)},view:function(t){return(0,r.default)("div",{id:"feedBox",class:i.default.showFeed?"feedBox showFeedBox":"feedBox hideFeedBox",onclick:function(){i.default.showFeed=!i.default.showFeed}},(0,r.default)("div",{class:"feedWrapper"},t.state.orderdFeed.map(function(t,e){return(0,r.default)(o.default,{data:t})})))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={pages:{groups:{link:"/groups"}},subItems:{options:{name:"אפשרויות לפתרון",type:"option",add:"הוספת פתרון",colors:{color:"white",background:"green",backgroundItem:"white"}},subQuestions:{name:"שאלות המשך",type:"subQuestion",add:"הוספת תת-שאלה",colors:{color:"white",background:"blue",backgroundItem:"lightblue"}},goals:{name:"מטרות",type:"goal",add:"הוספת מטרה קבוצתית",colors:{color:"white",background:"red",backgroundItem:"rgb(250, 148, 148)"}},values:{name:"ערכים",type:"value",add:"הוספת  ערך",colors:{color:"white",background:"lime",backgroundItem:"#91ff91"}}},roles:{groups:{read:{owner:!0,member:!0,editor:!0,nonMember:!0,anonymous:!0},write:{owner:!0,editor:!0}},questions:{read:{owner:!0,member:!0,editor:!0,nonMember:!0,anonymous:!0},write:{owner:!0,editor:!0}},subQuestions:{read:{owner:!0,member:!0,editor:!0,nonMember:!0,anonymous:!0},write:{owner:!0,editor:!0}}},processes:{suggestions:"suggestions",votes:"votes"},processesArr:["suggestions","votes"]}},function(t,e,n){(function(t,r){var o;
  /**
   * @license
   * Lodash <https://lodash.com/>
   * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
   * Released under MIT license <https://lodash.com/license>
   * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
   * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
   */(function(){var i,a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",d=1,p=2,h=4,v=1,g=2,m=1,b=2,y=4,x=8,w=16,_=32,I=64,k=128,S=256,j=512,T=30,E="...",A=800,O=16,C=1,q=2,M=1/0,D=9007199254740991,B=1.7976931348623157e308,P=NaN,z=4294967295,L=z-1,Q=z>>>1,N=[["ary",k],["bind",m],["bindKey",b],["curry",x],["curryRight",w],["flip",j],["partial",_],["partialRight",I],["rearg",S]],R="[object Arguments]",U="[object Array]",F="[object AsyncFunction]",W="[object Boolean]",H="[object Date]",$="[object DOMException]",V="[object Error]",Y="[object Function]",X="[object GeneratorFunction]",G="[object Map]",K="[object Number]",Z="[object Null]",J="[object Object]",tt="[object Proxy]",et="[object RegExp]",nt="[object Set]",rt="[object String]",ot="[object Symbol]",it="[object Undefined]",at="[object WeakMap]",ut="[object WeakSet]",st="[object ArrayBuffer]",lt="[object DataView]",ct="[object Float32Array]",ft="[object Float64Array]",dt="[object Int8Array]",pt="[object Int16Array]",ht="[object Int32Array]",vt="[object Uint8Array]",gt="[object Uint8ClampedArray]",mt="[object Uint16Array]",bt="[object Uint32Array]",yt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,wt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_t=/&(?:amp|lt|gt|quot|#39);/g,It=/[&<>"']/g,kt=RegExp(_t.source),St=RegExp(It.source),jt=/<%-([\s\S]+?)%>/g,Tt=/<%([\s\S]+?)%>/g,Et=/<%=([\s\S]+?)%>/g,At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ot=/^\w*$/,Ct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/[\\^$.*+?()[\]{}|]/g,Mt=RegExp(qt.source),Dt=/^\s+|\s+$/g,Bt=/^\s+/,Pt=/\s+$/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,Qt=/,? & /,Nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rt=/\\(\\)?/g,Ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ft=/\w*$/,Wt=/^[-+]0x[0-9a-f]+$/i,Ht=/^0b[01]+$/i,$t=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Yt=/^(?:0|[1-9]\d*)$/,Xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gt=/($^)/,Kt=/['\n\r\u2028\u2029\\]/g,Zt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Jt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="[\\ud800-\\udfff]",ee="["+Jt+"]",ne="["+Zt+"]",re="\\d+",oe="[\\u2700-\\u27bf]",ie="[a-z\\xdf-\\xf6\\xf8-\\xff]",ae="[^\\ud800-\\udfff"+Jt+re+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ue="\\ud83c[\\udffb-\\udfff]",se="[^\\ud800-\\udfff]",le="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",fe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",de="(?:"+ie+"|"+ae+")",pe="(?:"+fe+"|"+ae+")",he="(?:"+ne+"|"+ue+")"+"?",ve="[\\ufe0e\\ufe0f]?"+he+("(?:\\u200d(?:"+[se,le,ce].join("|")+")[\\ufe0e\\ufe0f]?"+he+")*"),ge="(?:"+[oe,le,ce].join("|")+")"+ve,me="(?:"+[se+ne+"?",ne,le,ce,te].join("|")+")",be=RegExp("['’]","g"),ye=RegExp(ne,"g"),xe=RegExp(ue+"(?="+ue+")|"+me+ve,"g"),we=RegExp([fe+"?"+ie+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ee,fe,"$"].join("|")+")",pe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ee,fe+de,"$"].join("|")+")",fe+"?"+de+"+(?:['’](?:d|ll|m|re|s|t|ve))?",fe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",re,ge].join("|"),"g"),_e=RegExp("[\\u200d\\ud800-\\udfff"+Zt+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ke=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Se=-1,je={};je[ct]=je[ft]=je[dt]=je[pt]=je[ht]=je[vt]=je[gt]=je[mt]=je[bt]=!0,je[R]=je[U]=je[st]=je[W]=je[lt]=je[H]=je[V]=je[Y]=je[G]=je[K]=je[J]=je[et]=je[nt]=je[rt]=je[at]=!1;var Te={};Te[R]=Te[U]=Te[st]=Te[lt]=Te[W]=Te[H]=Te[ct]=Te[ft]=Te[dt]=Te[pt]=Te[ht]=Te[G]=Te[K]=Te[J]=Te[et]=Te[nt]=Te[rt]=Te[ot]=Te[vt]=Te[gt]=Te[mt]=Te[bt]=!0,Te[V]=Te[Y]=Te[at]=!1;var Ee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ae=parseFloat,Oe=parseInt,Ce="object"==typeof t&&t&&t.Object===Object&&t,qe="object"==typeof self&&self&&self.Object===Object&&self,Me=Ce||qe||Function("return this")(),De="object"==typeof e&&e&&!e.nodeType&&e,Be=De&&"object"==typeof r&&r&&!r.nodeType&&r,Pe=Be&&Be.exports===De,ze=Pe&&Ce.process,Le=function(){try{var t=Be&&Be.require&&Be.require("util").types;return t||ze&&ze.binding&&ze.binding("util")}catch(t){}}(),Qe=Le&&Le.isArrayBuffer,Ne=Le&&Le.isDate,Re=Le&&Le.isMap,Ue=Le&&Le.isRegExp,Fe=Le&&Le.isSet,We=Le&&Le.isTypedArray;function He(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function $e(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}function Ve(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ye(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Xe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ge(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function Ke(t,e){return!!(null==t?0:t.length)&&sn(t,e,0)>-1}function Ze(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function Je(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function tn(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function en(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function nn(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function rn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var on=dn("length");function an(t,e,n){var r;return n(t,function(t,n,o){if(e(t,n,o))return r=n,!1}),r}function un(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function sn(t,e,n){return e==e?function(t,e,n){var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):un(t,cn,n)}function ln(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function cn(t){return t!=t}function fn(t,e){var n=null==t?0:t.length;return n?vn(t,e)/n:P}function dn(t){return function(e){return null==e?i:e[t]}}function pn(t){return function(e){return null==t?i:t[e]}}function hn(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}function vn(t,e){for(var n,r=-1,o=t.length;++r<o;){var a=e(t[r]);a!==i&&(n=n===i?a:n+a)}return n}function gn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function mn(t){return function(e){return t(e)}}function bn(t,e){return Je(e,function(e){return t[e]})}function yn(t,e){return t.has(e)}function xn(t,e){for(var n=-1,r=t.length;++n<r&&sn(e,t[n],0)>-1;);return n}function wn(t,e){for(var n=t.length;n--&&sn(e,t[n],0)>-1;);return n}var _n=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),In=pn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function kn(t){return"\\"+Ee[t]}function Sn(t){return _e.test(t)}function jn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function Tn(t,e){return function(n){return t(e(n))}}function En(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n];a!==e&&a!==f||(t[n]=f,i[o++]=n)}return i}function An(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function On(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function Cn(t){return Sn(t)?function(t){var e=xe.lastIndex=0;for(;xe.test(t);)++e;return e}(t):on(t)}function qn(t){return Sn(t)?function(t){return t.match(xe)||[]}(t):function(t){return t.split("")}(t)}var Mn=pn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Dn=function t(e){var n=(e=null==e?Me:Dn.defaults(Me.Object(),e,Dn.pick(Me,ke))).Array,r=e.Date,o=e.Error,Zt=e.Function,Jt=e.Math,te=e.Object,ee=e.RegExp,ne=e.String,re=e.TypeError,oe=n.prototype,ie=Zt.prototype,ae=te.prototype,ue=e["__core-js_shared__"],se=ie.toString,le=ae.hasOwnProperty,ce=0,fe=function(){var t=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),de=ae.toString,pe=se.call(te),he=Me._,ve=ee("^"+se.call(le).replace(qt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=Pe?e.Buffer:i,me=e.Symbol,xe=e.Uint8Array,_e=ge?ge.allocUnsafe:i,Ee=Tn(te.getPrototypeOf,te),Ce=te.create,qe=ae.propertyIsEnumerable,De=oe.splice,Be=me?me.isConcatSpreadable:i,ze=me?me.iterator:i,Le=me?me.toStringTag:i,on=function(){try{var t=Li(te,"defineProperty");return t({},"",{}),t}catch(t){}}(),pn=e.clearTimeout!==Me.clearTimeout&&e.clearTimeout,Bn=r&&r.now!==Me.Date.now&&r.now,Pn=e.setTimeout!==Me.setTimeout&&e.setTimeout,zn=Jt.ceil,Ln=Jt.floor,Qn=te.getOwnPropertySymbols,Nn=ge?ge.isBuffer:i,Rn=e.isFinite,Un=oe.join,Fn=Tn(te.keys,te),Wn=Jt.max,Hn=Jt.min,$n=r.now,Vn=e.parseInt,Yn=Jt.random,Xn=oe.reverse,Gn=Li(e,"DataView"),Kn=Li(e,"Map"),Zn=Li(e,"Promise"),Jn=Li(e,"Set"),tr=Li(e,"WeakMap"),er=Li(te,"create"),nr=tr&&new tr,rr={},or=ca(Gn),ir=ca(Kn),ar=ca(Zn),ur=ca(Jn),sr=ca(tr),lr=me?me.prototype:i,cr=lr?lr.valueOf:i,fr=lr?lr.toString:i;function dr(t){if(Tu(t)&&!gu(t)&&!(t instanceof gr)){if(t instanceof vr)return t;if(le.call(t,"__wrapped__"))return fa(t)}return new vr(t)}var pr=function(){function t(){}return function(e){if(!ju(e))return{};if(Ce)return Ce(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function hr(){}function vr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function gr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function mr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function br(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function yr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new yr;++e<n;)this.add(t[e])}function wr(t){var e=this.__data__=new br(t);this.size=e.size}function _r(t,e){var n=gu(t),r=!n&&vu(t),o=!n&&!r&&xu(t),i=!n&&!r&&!o&&Bu(t),a=n||r||o||i,u=a?gn(t.length,ne):[],s=u.length;for(var l in t)!e&&!le.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Hi(l,s))||u.push(l);return u}function Ir(t){var e=t.length;return e?t[wo(0,e-1)]:i}function kr(t,e){return ua(ni(t),Mr(e,0,t.length))}function Sr(t){return ua(ni(t))}function jr(t,e,n){(n===i||du(t[e],n))&&(n!==i||e in t)||Cr(t,e,n)}function Tr(t,e,n){var r=t[e];le.call(t,e)&&du(r,n)&&(n!==i||e in t)||Cr(t,e,n)}function Er(t,e){for(var n=t.length;n--;)if(du(t[n][0],e))return n;return-1}function Ar(t,e,n,r){return Lr(t,function(t,o,i){e(r,t,n(t),i)}),r}function Or(t,e){return t&&ri(e,rs(e),t)}function Cr(t,e,n){"__proto__"==e&&on?on(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function qr(t,e){for(var r=-1,o=e.length,a=n(o),u=null==t;++r<o;)a[r]=u?i:Zu(t,e[r]);return a}function Mr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function Dr(t,e,n,r,o,a){var u,s=e&d,l=e&p,c=e&h;if(n&&(u=o?n(t,r,o,a):n(t)),u!==i)return u;if(!ju(t))return t;var f=gu(t);if(f){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&le.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return ni(t,u)}else{var v=Ri(t),g=v==Y||v==X;if(xu(t))return Go(t,s);if(v==J||v==R||g&&!o){if(u=l||g?{}:Fi(t),!s)return l?function(t,e){return ri(t,Ni(t),e)}(t,function(t,e){return t&&ri(e,os(e),t)}(u,t)):function(t,e){return ri(t,Qi(t),e)}(t,Or(u,t))}else{if(!Te[v])return o?t:{};u=function(t,e,n){var r=t.constructor;switch(e){case st:return Ko(t);case W:case H:return new r(+t);case lt:return function(t,e){var n=e?Ko(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case ct:case ft:case dt:case pt:case ht:case vt:case gt:case mt:case bt:return Zo(t,n);case G:return new r;case K:case rt:return new r(t);case et:return function(t){var e=new t.constructor(t.source,Ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case nt:return new r;case ot:return function(t){return cr?te(cr.call(t)):{}}(t)}}(t,v,s)}}a||(a=new wr);var m=a.get(t);if(m)return m;a.set(t,u),qu(t)?t.forEach(function(r){u.add(Dr(r,e,n,r,t,a))}):Eu(t)&&t.forEach(function(r,o){u.set(o,Dr(r,e,n,o,t,a))});var b=f?i:(c?l?Ci:Oi:l?os:rs)(t);return Ve(b||t,function(r,o){b&&(r=t[o=r]),Tr(u,o,Dr(r,e,n,o,t,a))}),u}function Br(t,e,n){var r=n.length;if(null==t)return!r;for(t=te(t);r--;){var o=n[r],a=e[o],u=t[o];if(u===i&&!(o in t)||!a(u))return!1}return!0}function Pr(t,e,n){if("function"!=typeof t)throw new re(s);return ra(function(){t.apply(i,n)},e)}function zr(t,e,n,r){var o=-1,i=Ke,u=!0,s=t.length,l=[],c=e.length;if(!s)return l;n&&(e=Je(e,mn(n))),r?(i=Ze,u=!1):e.length>=a&&(i=yn,u=!1,e=new xr(e));t:for(;++o<s;){var f=t[o],d=null==n?f:n(f);if(f=r||0!==f?f:0,u&&d==d){for(var p=c;p--;)if(e[p]===d)continue t;l.push(f)}else i(e,d,r)||l.push(f)}return l}dr.templateSettings={escape:jt,evaluate:Tt,interpolate:Et,variable:"",imports:{_:dr}},dr.prototype=hr.prototype,dr.prototype.constructor=dr,vr.prototype=pr(hr.prototype),vr.prototype.constructor=vr,gr.prototype=pr(hr.prototype),gr.prototype.constructor=gr,mr.prototype.clear=function(){this.__data__=er?er(null):{},this.size=0},mr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mr.prototype.get=function(t){var e=this.__data__;if(er){var n=e[t];return n===l?i:n}return le.call(e,t)?e[t]:i},mr.prototype.has=function(t){var e=this.__data__;return er?e[t]!==i:le.call(e,t)},mr.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=er&&e===i?l:e,this},br.prototype.clear=function(){this.__data__=[],this.size=0},br.prototype.delete=function(t){var e=this.__data__,n=Er(e,t);return!(n<0||(n==e.length-1?e.pop():De.call(e,n,1),--this.size,0))},br.prototype.get=function(t){var e=this.__data__,n=Er(e,t);return n<0?i:e[n][1]},br.prototype.has=function(t){return Er(this.__data__,t)>-1},br.prototype.set=function(t,e){var n=this.__data__,r=Er(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},yr.prototype.clear=function(){this.size=0,this.__data__={hash:new mr,map:new(Kn||br),string:new mr}},yr.prototype.delete=function(t){var e=Pi(this,t).delete(t);return this.size-=e?1:0,e},yr.prototype.get=function(t){return Pi(this,t).get(t)},yr.prototype.has=function(t){return Pi(this,t).has(t)},yr.prototype.set=function(t,e){var n=Pi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(t){return this.__data__.set(t,l),this},xr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.clear=function(){this.__data__=new br,this.size=0},wr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},wr.prototype.get=function(t){return this.__data__.get(t)},wr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Kn||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new yr(r)}return n.set(t,e),this.size=n.size,this};var Lr=ai($r),Qr=ai(Vr,!0);function Nr(t,e){var n=!0;return Lr(t,function(t,r,o){return n=!!e(t,r,o)}),n}function Rr(t,e,n){for(var r=-1,o=t.length;++r<o;){var a=t[r],u=e(a);if(null!=u&&(s===i?u==u&&!Du(u):n(u,s)))var s=u,l=a}return l}function Ur(t,e){var n=[];return Lr(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}function Fr(t,e,n,r,o){var i=-1,a=t.length;for(n||(n=Wi),o||(o=[]);++i<a;){var u=t[i];e>0&&n(u)?e>1?Fr(u,e-1,n,r,o):tn(o,u):r||(o[o.length]=u)}return o}var Wr=ui(),Hr=ui(!0);function $r(t,e){return t&&Wr(t,e,rs)}function Vr(t,e){return t&&Hr(t,e,rs)}function Yr(t,e){return Ge(e,function(e){return Iu(t[e])})}function Xr(t,e){for(var n=0,r=(e=$o(e,t)).length;null!=t&&n<r;)t=t[la(e[n++])];return n&&n==r?t:i}function Gr(t,e,n){var r=e(t);return gu(t)?r:tn(r,n(t))}function Kr(t){return null==t?t===i?it:Z:Le&&Le in te(t)?function(t){var e=le.call(t,Le),n=t[Le];try{t[Le]=i;var r=!0}catch(t){}var o=de.call(t);return r&&(e?t[Le]=n:delete t[Le]),o}(t):function(t){return de.call(t)}(t)}function Zr(t,e){return t>e}function Jr(t,e){return null!=t&&le.call(t,e)}function to(t,e){return null!=t&&e in te(t)}function eo(t,e,r){for(var o=r?Ze:Ke,a=t[0].length,u=t.length,s=u,l=n(u),c=1/0,f=[];s--;){var d=t[s];s&&e&&(d=Je(d,mn(e))),c=Hn(d.length,c),l[s]=!r&&(e||a>=120&&d.length>=120)?new xr(s&&d):i}d=t[0];var p=-1,h=l[0];t:for(;++p<a&&f.length<c;){var v=d[p],g=e?e(v):v;if(v=r||0!==v?v:0,!(h?yn(h,g):o(f,g,r))){for(s=u;--s;){var m=l[s];if(!(m?yn(m,g):o(t[s],g,r)))continue t}h&&h.push(g),f.push(v)}}return f}function no(t,e,n){var r=null==(t=ta(t,e=$o(e,t)))?t:t[la(_a(e))];return null==r?i:He(r,t,n)}function ro(t){return Tu(t)&&Kr(t)==R}function oo(t,e,n,r,o){return t===e||(null==t||null==e||!Tu(t)&&!Tu(e)?t!=t&&e!=e:function(t,e,n,r,o,a){var u=gu(t),s=gu(e),l=u?U:Ri(t),c=s?U:Ri(e),f=(l=l==R?J:l)==J,d=(c=c==R?J:c)==J,p=l==c;if(p&&xu(t)){if(!xu(e))return!1;u=!0,f=!1}if(p&&!f)return a||(a=new wr),u||Bu(t)?Ei(t,e,n,r,o,a):function(t,e,n,r,o,i,a){switch(n){case lt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case st:return!(t.byteLength!=e.byteLength||!i(new xe(t),new xe(e)));case W:case H:case K:return du(+t,+e);case V:return t.name==e.name&&t.message==e.message;case et:case rt:return t==e+"";case G:var u=jn;case nt:var s=r&v;if(u||(u=An),t.size!=e.size&&!s)return!1;var l=a.get(t);if(l)return l==e;r|=g,a.set(t,e);var c=Ei(u(t),u(e),r,o,i,a);return a.delete(t),c;case ot:if(cr)return cr.call(t)==cr.call(e)}return!1}(t,e,l,n,r,o,a);if(!(n&v)){var h=f&&le.call(t,"__wrapped__"),m=d&&le.call(e,"__wrapped__");if(h||m){var b=h?t.value():t,y=m?e.value():e;return a||(a=new wr),o(b,y,n,r,a)}}return!!p&&(a||(a=new wr),function(t,e,n,r,o,a){var u=n&v,s=Oi(t),l=s.length,c=Oi(e).length;if(l!=c&&!u)return!1;for(var f=l;f--;){var d=s[f];if(!(u?d in e:le.call(e,d)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var h=!0;a.set(t,e),a.set(e,t);for(var g=u;++f<l;){d=s[f];var m=t[d],b=e[d];if(r)var y=u?r(b,m,d,e,t,a):r(m,b,d,t,e,a);if(!(y===i?m===b||o(m,b,n,r,a):y)){h=!1;break}g||(g="constructor"==d)}if(h&&!g){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(h=!1)}return a.delete(t),a.delete(e),h}(t,e,n,r,o,a))}(t,e,n,r,oo,o))}function io(t,e,n,r){var o=n.length,a=o,u=!r;if(null==t)return!a;for(t=te(t);o--;){var s=n[o];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<a;){var l=(s=n[o])[0],c=t[l],f=s[1];if(u&&s[2]){if(c===i&&!(l in t))return!1}else{var d=new wr;if(r)var p=r(c,f,l,t,e,d);if(!(p===i?oo(f,c,v|g,r,d):p))return!1}}return!0}function ao(t){return!(!ju(t)||function(t){return!!fe&&fe in t}(t))&&(Iu(t)?ve:$t).test(ca(t))}function uo(t){return"function"==typeof t?t:null==t?As:"object"==typeof t?gu(t)?ho(t[0],t[1]):po(t):Ls(t)}function so(t){if(!Gi(t))return Fn(t);var e=[];for(var n in te(t))le.call(t,n)&&"constructor"!=n&&e.push(n);return e}function lo(t){if(!ju(t))return function(t){var e=[];if(null!=t)for(var n in te(t))e.push(n);return e}(t);var e=Gi(t),n=[];for(var r in t)("constructor"!=r||!e&&le.call(t,r))&&n.push(r);return n}function co(t,e){return t<e}function fo(t,e){var r=-1,o=bu(t)?n(t.length):[];return Lr(t,function(t,n,i){o[++r]=e(t,n,i)}),o}function po(t){var e=zi(t);return 1==e.length&&e[0][2]?Zi(e[0][0],e[0][1]):function(n){return n===t||io(n,t,e)}}function ho(t,e){return Vi(t)&&Ki(e)?Zi(la(t),e):function(n){var r=Zu(n,t);return r===i&&r===e?Ju(n,t):oo(e,r,v|g)}}function vo(t,e,n,r,o){t!==e&&Wr(e,function(a,u){if(o||(o=new wr),ju(a))!function(t,e,n,r,o,a,u){var s=ea(t,n),l=ea(e,n),c=u.get(l);if(c)jr(t,n,c);else{var f=a?a(s,l,n+"",t,e,u):i,d=f===i;if(d){var p=gu(l),h=!p&&xu(l),v=!p&&!h&&Bu(l);f=l,p||h||v?gu(s)?f=s:yu(s)?f=ni(s):h?(d=!1,f=Go(l,!0)):v?(d=!1,f=Zo(l,!0)):f=[]:Ou(l)||vu(l)?(f=s,vu(s)?f=Fu(s):ju(s)&&!Iu(s)||(f=Fi(l))):d=!1}d&&(u.set(l,f),o(f,l,r,a,u),u.delete(l)),jr(t,n,f)}}(t,e,u,n,vo,r,o);else{var s=r?r(ea(t,u),a,u+"",t,e,o):i;s===i&&(s=a),jr(t,u,s)}},os)}function go(t,e){var n=t.length;if(n)return Hi(e+=e<0?n:0,n)?t[e]:i}function mo(t,e,n){var r=-1;return e=Je(e.length?e:[As],mn(Bi())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(fo(t,function(t,n,o){return{criteria:Je(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,a=o.length,u=n.length;++r<a;){var s=Jo(o[r],i[r]);if(s){if(r>=u)return s;var l=n[r];return s*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)})}function bo(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var a=e[r],u=Xr(t,a);n(u,a)&&jo(i,$o(a,t),u)}return i}function yo(t,e,n,r){var o=r?ln:sn,i=-1,a=e.length,u=t;for(t===e&&(e=ni(e)),n&&(u=Je(t,mn(n)));++i<a;)for(var s=0,l=e[i],c=n?n(l):l;(s=o(u,c,s,r))>-1;)u!==t&&De.call(u,s,1),De.call(t,s,1);return t}function xo(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Hi(o)?De.call(t,o,1):Lo(t,o)}}return t}function wo(t,e){return t+Ln(Yn()*(e-t+1))}function _o(t,e){var n="";if(!t||e<1||e>D)return n;do{e%2&&(n+=t),(e=Ln(e/2))&&(t+=t)}while(e);return n}function Io(t,e){return oa(Ji(t,e,As),t+"")}function ko(t){return Ir(ds(t))}function So(t,e){var n=ds(t);return ua(n,Mr(e,0,n.length))}function jo(t,e,n,r){if(!ju(t))return t;for(var o=-1,a=(e=$o(e,t)).length,u=a-1,s=t;null!=s&&++o<a;){var l=la(e[o]),c=n;if(o!=u){var f=s[l];(c=r?r(f,l,s):i)===i&&(c=ju(f)?f:Hi(e[o+1])?[]:{})}Tr(s,l,c),s=s[l]}return t}var To=nr?function(t,e){return nr.set(t,e),t}:As,Eo=on?function(t,e){return on(t,"toString",{configurable:!0,enumerable:!1,value:js(e),writable:!0})}:As;function Ao(t){return ua(ds(t))}function Oo(t,e,r){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=n(i);++o<i;)a[o]=t[o+e];return a}function Co(t,e){var n;return Lr(t,function(t,r,o){return!(n=e(t,r,o))}),!!n}function qo(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=Q){for(;r<o;){var i=r+o>>>1,a=t[i];null!==a&&!Du(a)&&(n?a<=e:a<e)?r=i+1:o=i}return o}return Mo(t,e,As,n)}function Mo(t,e,n,r){e=n(e);for(var o=0,a=null==t?0:t.length,u=e!=e,s=null===e,l=Du(e),c=e===i;o<a;){var f=Ln((o+a)/2),d=n(t[f]),p=d!==i,h=null===d,v=d==d,g=Du(d);if(u)var m=r||v;else m=c?v&&(r||p):s?v&&p&&(r||!h):l?v&&p&&!h&&(r||!g):!h&&!g&&(r?d<=e:d<e);m?o=f+1:a=f}return Hn(a,L)}function Do(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n],u=e?e(a):a;if(!n||!du(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function Bo(t){return"number"==typeof t?t:Du(t)?P:+t}function Po(t){if("string"==typeof t)return t;if(gu(t))return Je(t,Po)+"";if(Du(t))return fr?fr.call(t):"";var e=t+"";return"0"==e&&1/t==-M?"-0":e}function zo(t,e,n){var r=-1,o=Ke,i=t.length,u=!0,s=[],l=s;if(n)u=!1,o=Ze;else if(i>=a){var c=e?null:_i(t);if(c)return An(c);u=!1,o=yn,l=new xr}else l=e?[]:s;t:for(;++r<i;){var f=t[r],d=e?e(f):f;if(f=n||0!==f?f:0,u&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue t;e&&l.push(d),s.push(f)}else o(l,d,n)||(l!==s&&l.push(d),s.push(f))}return s}function Lo(t,e){return null==(t=ta(t,e=$o(e,t)))||delete t[la(_a(e))]}function Qo(t,e,n,r){return jo(t,e,n(Xr(t,e)),r)}function No(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?Oo(t,r?0:i,r?i+1:o):Oo(t,r?i+1:0,r?o:i)}function Ro(t,e){var n=t;return n instanceof gr&&(n=n.value()),en(e,function(t,e){return e.func.apply(e.thisArg,tn([t],e.args))},n)}function Uo(t,e,r){var o=t.length;if(o<2)return o?zo(t[0]):[];for(var i=-1,a=n(o);++i<o;)for(var u=t[i],s=-1;++s<o;)s!=i&&(a[i]=zr(a[i]||u,t[s],e,r));return zo(Fr(a,1),e,r)}function Fo(t,e,n){for(var r=-1,o=t.length,a=e.length,u={};++r<o;){var s=r<a?e[r]:i;n(u,t[r],s)}return u}function Wo(t){return yu(t)?t:[]}function Ho(t){return"function"==typeof t?t:As}function $o(t,e){return gu(t)?t:Vi(t,e)?[t]:sa(Wu(t))}var Vo=Io;function Yo(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:Oo(t,e,n)}var Xo=pn||function(t){return Me.clearTimeout(t)};function Go(t,e){if(e)return t.slice();var n=t.length,r=_e?_e(n):new t.constructor(n);return t.copy(r),r}function Ko(t){var e=new t.constructor(t.byteLength);return new xe(e).set(new xe(t)),e}function Zo(t,e){var n=e?Ko(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Jo(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,a=Du(t),u=e!==i,s=null===e,l=e==e,c=Du(e);if(!s&&!c&&!a&&t>e||a&&u&&l&&!s&&!c||r&&u&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&t<e||c&&n&&o&&!r&&!a||s&&n&&o||!u&&o||!l)return-1}return 0}function ti(t,e,r,o){for(var i=-1,a=t.length,u=r.length,s=-1,l=e.length,c=Wn(a-u,0),f=n(l+c),d=!o;++s<l;)f[s]=e[s];for(;++i<u;)(d||i<a)&&(f[r[i]]=t[i]);for(;c--;)f[s++]=t[i++];return f}function ei(t,e,r,o){for(var i=-1,a=t.length,u=-1,s=r.length,l=-1,c=e.length,f=Wn(a-s,0),d=n(f+c),p=!o;++i<f;)d[i]=t[i];for(var h=i;++l<c;)d[h+l]=e[l];for(;++u<s;)(p||i<a)&&(d[h+r[u]]=t[i++]);return d}function ni(t,e){var r=-1,o=t.length;for(e||(e=n(o));++r<o;)e[r]=t[r];return e}function ri(t,e,n,r){var o=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var s=e[a],l=r?r(n[s],t[s],s,n,t):i;l===i&&(l=t[s]),o?Cr(n,s,l):Tr(n,s,l)}return n}function oi(t,e){return function(n,r){var o=gu(n)?$e:Ar,i=e?e():{};return o(n,t,Bi(r,2),i)}}function ii(t){return Io(function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,u=o>2?n[2]:i;for(a=t.length>3&&"function"==typeof a?(o--,a):i,u&&$i(n[0],n[1],u)&&(a=o<3?i:a,o=1),e=te(e);++r<o;){var s=n[r];s&&t(e,s,r,a)}return e})}function ai(t,e){return function(n,r){if(null==n)return n;if(!bu(n))return t(n,r);for(var o=n.length,i=e?o:-1,a=te(n);(e?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function ui(t){return function(e,n,r){for(var o=-1,i=te(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===n(i[s],s,i))break}return e}}function si(t){return function(e){var n=Sn(e=Wu(e))?qn(e):i,r=n?n[0]:e.charAt(0),o=n?Yo(n,1).join(""):e.slice(1);return r[t]()+o}}function li(t){return function(e){return en(Is(vs(e).replace(be,"")),t,"")}}function ci(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=pr(t.prototype),r=t.apply(n,e);return ju(r)?r:n}}function fi(t){return function(e,n,r){var o=te(e);if(!bu(e)){var a=Bi(n,3);e=rs(e),n=function(t){return a(o[t],t,o)}}var u=t(e,n,r);return u>-1?o[a?e[u]:u]:i}}function di(t){return Ai(function(e){var n=e.length,r=n,o=vr.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new re(s);if(o&&!u&&"wrapper"==Mi(a))var u=new vr([],!0)}for(r=u?r:n;++r<n;){var l=Mi(a=e[r]),c="wrapper"==l?qi(a):i;u=c&&Yi(c[0])&&c[1]==(k|x|_|S)&&!c[4].length&&1==c[9]?u[Mi(c[0])].apply(u,c[3]):1==a.length&&Yi(a)?u[l]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&gu(r))return u.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}})}function pi(t,e,r,o,a,u,s,l,c,f){var d=e&k,p=e&m,h=e&b,v=e&(x|w),g=e&j,y=h?i:ci(t);return function m(){for(var b=arguments.length,x=n(b),w=b;w--;)x[w]=arguments[w];if(v)var _=Di(m),I=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(x,_);if(o&&(x=ti(x,o,a,v)),u&&(x=ei(x,u,s,v)),b-=I,v&&b<f){var k=En(x,_);return xi(t,e,pi,m.placeholder,r,x,k,l,c,f-b)}var S=p?r:this,j=h?S[t]:t;return b=x.length,l?x=function(t,e){for(var n=t.length,r=Hn(e.length,n),o=ni(t);r--;){var a=e[r];t[r]=Hi(a,n)?o[a]:i}return t}(x,l):g&&b>1&&x.reverse(),d&&c<b&&(x.length=c),this&&this!==Me&&this instanceof m&&(j=y||ci(j)),j.apply(S,x)}}function hi(t,e){return function(n,r){return function(t,e,n,r){return $r(t,function(t,o,i){e(r,n(t),o,i)}),r}(n,t,e(r),{})}}function vi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Po(n),r=Po(r)):(n=Bo(n),r=Bo(r)),o=t(n,r)}return o}}function gi(t){return Ai(function(e){return e=Je(e,mn(Bi())),Io(function(n){var r=this;return t(e,function(t){return He(t,r,n)})})})}function mi(t,e){var n=(e=e===i?" ":Po(e)).length;if(n<2)return n?_o(e,t):e;var r=_o(e,zn(t/Cn(e)));return Sn(e)?Yo(qn(r),0,t).join(""):r.slice(0,t)}function bi(t){return function(e,r,o){return o&&"number"!=typeof o&&$i(e,r,o)&&(r=o=i),e=Qu(e),r===i?(r=e,e=0):r=Qu(r),function(t,e,r,o){for(var i=-1,a=Wn(zn((e-t)/(r||1)),0),u=n(a);a--;)u[o?a:++i]=t,t+=r;return u}(e,r,o=o===i?e<r?1:-1:Qu(o),t)}}function yi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Uu(e),n=Uu(n)),t(e,n)}}function xi(t,e,n,r,o,a,u,s,l,c){var f=e&x;e|=f?_:I,(e&=~(f?I:_))&y||(e&=~(m|b));var d=[t,e,o,f?a:i,f?u:i,f?i:a,f?i:u,s,l,c],p=n.apply(i,d);return Yi(t)&&na(p,d),p.placeholder=r,ia(p,t,e)}function wi(t){var e=Jt[t];return function(t,n){if(t=Uu(t),(n=null==n?0:Hn(Nu(n),292))&&Rn(t)){var r=(Wu(t)+"e").split("e");return+((r=(Wu(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var _i=Jn&&1/An(new Jn([,-0]))[1]==M?function(t){return new Jn(t)}:Ds;function Ii(t){return function(e){var n=Ri(e);return n==G?jn(e):n==nt?On(e):function(t,e){return Je(e,function(e){return[e,t[e]]})}(e,t(e))}}function ki(t,e,r,o,a,u,l,c){var d=e&b;if(!d&&"function"!=typeof t)throw new re(s);var p=o?o.length:0;if(p||(e&=~(_|I),o=a=i),l=l===i?l:Wn(Nu(l),0),c=c===i?c:Nu(c),p-=a?a.length:0,e&I){var h=o,v=a;o=a=i}var g=d?i:qi(t),j=[t,e,r,o,a,h,v,u,l,c];if(g&&function(t,e){var n=t[1],r=e[1],o=n|r,i=o<(m|b|k),a=r==k&&n==x||r==k&&n==S&&t[7].length<=e[8]||r==(k|S)&&e[7].length<=e[8]&&n==x;if(!i&&!a)return t;r&m&&(t[2]=e[2],o|=n&m?0:y);var u=e[3];if(u){var s=t[3];t[3]=s?ti(s,u,e[4]):u,t[4]=s?En(t[3],f):e[4]}(u=e[5])&&(s=t[5],t[5]=s?ei(s,u,e[6]):u,t[6]=s?En(t[5],f):e[6]),(u=e[7])&&(t[7]=u),r&k&&(t[8]=null==t[8]?e[8]:Hn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(j,g),t=j[0],e=j[1],r=j[2],o=j[3],a=j[4],!(c=j[9]=j[9]===i?d?0:t.length:Wn(j[9]-p,0))&&e&(x|w)&&(e&=~(x|w)),e&&e!=m)T=e==x||e==w?function(t,e,r){var o=ci(t);return function a(){for(var u=arguments.length,s=n(u),l=u,c=Di(a);l--;)s[l]=arguments[l];var f=u<3&&s[0]!==c&&s[u-1]!==c?[]:En(s,c);return(u-=f.length)<r?xi(t,e,pi,a.placeholder,i,s,f,i,i,r-u):He(this&&this!==Me&&this instanceof a?o:t,this,s)}}(t,e,c):e!=_&&e!=(m|_)||a.length?pi.apply(i,j):function(t,e,r,o){var i=e&m,a=ci(t);return function e(){for(var u=-1,s=arguments.length,l=-1,c=o.length,f=n(c+s),d=this&&this!==Me&&this instanceof e?a:t;++l<c;)f[l]=o[l];for(;s--;)f[l++]=arguments[++u];return He(d,i?r:this,f)}}(t,e,r,o);else var T=function(t,e,n){var r=e&m,o=ci(t);return function e(){return(this&&this!==Me&&this instanceof e?o:t).apply(r?n:this,arguments)}}(t,e,r);return ia((g?To:na)(T,j),t,e)}function Si(t,e,n,r){return t===i||du(t,ae[n])&&!le.call(r,n)?e:t}function ji(t,e,n,r,o,a){return ju(t)&&ju(e)&&(a.set(e,t),vo(t,e,i,ji,a),a.delete(e)),t}function Ti(t){return Ou(t)?i:t}function Ei(t,e,n,r,o,a){var u=n&v,s=t.length,l=e.length;if(s!=l&&!(u&&l>s))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var f=-1,d=!0,p=n&g?new xr:i;for(a.set(t,e),a.set(e,t);++f<s;){var h=t[f],m=e[f];if(r)var b=u?r(m,h,f,e,t,a):r(h,m,f,t,e,a);if(b!==i){if(b)continue;d=!1;break}if(p){if(!rn(e,function(t,e){if(!yn(p,e)&&(h===t||o(h,t,n,r,a)))return p.push(e)})){d=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function Ai(t){return oa(Ji(t,i,ma),t+"")}function Oi(t){return Gr(t,rs,Qi)}function Ci(t){return Gr(t,os,Ni)}var qi=nr?function(t){return nr.get(t)}:Ds;function Mi(t){for(var e=t.name+"",n=rr[e],r=le.call(rr,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function Di(t){return(le.call(dr,"placeholder")?dr:t).placeholder}function Bi(){var t=dr.iteratee||Os;return t=t===Os?uo:t,arguments.length?t(arguments[0],arguments[1]):t}function Pi(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function zi(t){for(var e=rs(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Ki(o)]}return e}function Li(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return ao(n)?n:i}var Qi=Qn?function(t){return null==t?[]:(t=te(t),Ge(Qn(t),function(e){return qe.call(t,e)}))}:Rs,Ni=Qn?function(t){for(var e=[];t;)tn(e,Qi(t)),t=Ee(t);return e}:Rs,Ri=Kr;function Ui(t,e,n){for(var r=-1,o=(e=$o(e,t)).length,i=!1;++r<o;){var a=la(e[r]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&Su(o)&&Hi(a,o)&&(gu(t)||vu(t))}function Fi(t){return"function"!=typeof t.constructor||Gi(t)?{}:pr(Ee(t))}function Wi(t){return gu(t)||vu(t)||!!(Be&&t&&t[Be])}function Hi(t,e){var n=typeof t;return!!(e=null==e?D:e)&&("number"==n||"symbol"!=n&&Yt.test(t))&&t>-1&&t%1==0&&t<e}function $i(t,e,n){if(!ju(n))return!1;var r=typeof e;return!!("number"==r?bu(n)&&Hi(e,n.length):"string"==r&&e in n)&&du(n[e],t)}function Vi(t,e){if(gu(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Du(t))||Ot.test(t)||!At.test(t)||null!=e&&t in te(e)}function Yi(t){var e=Mi(t),n=dr[e];if("function"!=typeof n||!(e in gr.prototype))return!1;if(t===n)return!0;var r=qi(n);return!!r&&t===r[0]}(Gn&&Ri(new Gn(new ArrayBuffer(1)))!=lt||Kn&&Ri(new Kn)!=G||Zn&&"[object Promise]"!=Ri(Zn.resolve())||Jn&&Ri(new Jn)!=nt||tr&&Ri(new tr)!=at)&&(Ri=function(t){var e=Kr(t),n=e==J?t.constructor:i,r=n?ca(n):"";if(r)switch(r){case or:return lt;case ir:return G;case ar:return"[object Promise]";case ur:return nt;case sr:return at}return e});var Xi=ue?Iu:Us;function Gi(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ae)}function Ki(t){return t==t&&!ju(t)}function Zi(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in te(n))}}function Ji(t,e,r){return e=Wn(e===i?t.length-1:e,0),function(){for(var o=arguments,i=-1,a=Wn(o.length-e,0),u=n(a);++i<a;)u[i]=o[e+i];i=-1;for(var s=n(e+1);++i<e;)s[i]=o[i];return s[e]=r(u),He(t,this,s)}}function ta(t,e){return e.length<2?t:Xr(t,Oo(e,0,-1))}function ea(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var na=aa(To),ra=Pn||function(t,e){return Me.setTimeout(t,e)},oa=aa(Eo);function ia(t,e,n){var r=e+"";return oa(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(zt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ve(N,function(n){var r="_."+n[0];e&n[1]&&!Ke(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(Lt);return e?e[1].split(Qt):[]}(r),n)))}function aa(t){var e=0,n=0;return function(){var r=$n(),o=O-(r-n);if(n=r,o>0){if(++e>=A)return arguments[0]}else e=0;return t.apply(i,arguments)}}function ua(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var a=wo(n,o),u=t[a];t[a]=t[n],t[n]=u}return t.length=e,t}var sa=function(t){var e=au(t,function(t){return n.size===c&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ct,function(t,n,r,o){e.push(r?o.replace(Rt,"$1"):n||t)}),e});function la(t){if("string"==typeof t||Du(t))return t;var e=t+"";return"0"==e&&1/t==-M?"-0":e}function ca(t){if(null!=t){try{return se.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function fa(t){if(t instanceof gr)return t.clone();var e=new vr(t.__wrapped__,t.__chain__);return e.__actions__=ni(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var da=Io(function(t,e){return yu(t)?zr(t,Fr(e,1,yu,!0)):[]}),pa=Io(function(t,e){var n=_a(e);return yu(n)&&(n=i),yu(t)?zr(t,Fr(e,1,yu,!0),Bi(n,2)):[]}),ha=Io(function(t,e){var n=_a(e);return yu(n)&&(n=i),yu(t)?zr(t,Fr(e,1,yu,!0),i,n):[]});function va(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Nu(n);return o<0&&(o=Wn(r+o,0)),un(t,Bi(e,3),o)}function ga(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Nu(n),o=n<0?Wn(r+o,0):Hn(o,r-1)),un(t,Bi(e,3),o,!0)}function ma(t){return null!=t&&t.length?Fr(t,1):[]}function ba(t){return t&&t.length?t[0]:i}var ya=Io(function(t){var e=Je(t,Wo);return e.length&&e[0]===t[0]?eo(e):[]}),xa=Io(function(t){var e=_a(t),n=Je(t,Wo);return e===_a(n)?e=i:n.pop(),n.length&&n[0]===t[0]?eo(n,Bi(e,2)):[]}),wa=Io(function(t){var e=_a(t),n=Je(t,Wo);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?eo(n,i,e):[]});function _a(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Ia=Io(ka);function ka(t,e){return t&&t.length&&e&&e.length?yo(t,e):t}var Sa=Ai(function(t,e){var n=null==t?0:t.length,r=qr(t,e);return xo(t,Je(e,function(t){return Hi(t,n)?+t:t}).sort(Jo)),r});function ja(t){return null==t?t:Xn.call(t)}var Ta=Io(function(t){return zo(Fr(t,1,yu,!0))}),Ea=Io(function(t){var e=_a(t);return yu(e)&&(e=i),zo(Fr(t,1,yu,!0),Bi(e,2))}),Aa=Io(function(t){var e=_a(t);return e="function"==typeof e?e:i,zo(Fr(t,1,yu,!0),i,e)});function Oa(t){if(!t||!t.length)return[];var e=0;return t=Ge(t,function(t){if(yu(t))return e=Wn(t.length,e),!0}),gn(e,function(e){return Je(t,dn(e))})}function Ca(t,e){if(!t||!t.length)return[];var n=Oa(t);return null==e?n:Je(n,function(t){return He(e,i,t)})}var qa=Io(function(t,e){return yu(t)?zr(t,e):[]}),Ma=Io(function(t){return Uo(Ge(t,yu))}),Da=Io(function(t){var e=_a(t);return yu(e)&&(e=i),Uo(Ge(t,yu),Bi(e,2))}),Ba=Io(function(t){var e=_a(t);return e="function"==typeof e?e:i,Uo(Ge(t,yu),i,e)}),Pa=Io(Oa);var za=Io(function(t){var e=t.length,n=e>1?t[e-1]:i;return Ca(t,n="function"==typeof n?(t.pop(),n):i)});function La(t){var e=dr(t);return e.__chain__=!0,e}function Qa(t,e){return e(t)}var Na=Ai(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return qr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof gr&&Hi(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Qa,args:[o],thisArg:i}),new vr(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(o)});var Ra=oi(function(t,e,n){le.call(t,n)?++t[n]:Cr(t,n,1)});var Ua=fi(va),Fa=fi(ga);function Wa(t,e){return(gu(t)?Ve:Lr)(t,Bi(e,3))}function Ha(t,e){return(gu(t)?Ye:Qr)(t,Bi(e,3))}var $a=oi(function(t,e,n){le.call(t,n)?t[n].push(e):Cr(t,n,[e])});var Va=Io(function(t,e,r){var o=-1,i="function"==typeof e,a=bu(t)?n(t.length):[];return Lr(t,function(t){a[++o]=i?He(e,t,r):no(t,e,r)}),a}),Ya=oi(function(t,e,n){Cr(t,n,e)});function Xa(t,e){return(gu(t)?Je:fo)(t,Bi(e,3))}var Ga=oi(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Ka=Io(function(t,e){if(null==t)return[];var n=e.length;return n>1&&$i(t,e[0],e[1])?e=[]:n>2&&$i(e[0],e[1],e[2])&&(e=[e[0]]),mo(t,Fr(e,1),[])}),Za=Bn||function(){return Me.Date.now()};function Ja(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,ki(t,k,i,i,i,i,e)}function tu(t,e){var n;if("function"!=typeof e)throw new re(s);return t=Nu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var eu=Io(function(t,e,n){var r=m;if(n.length){var o=En(n,Di(eu));r|=_}return ki(t,r,e,n,o)}),nu=Io(function(t,e,n){var r=m|b;if(n.length){var o=En(n,Di(nu));r|=_}return ki(e,r,t,n,o)});function ru(t,e,n){var r,o,a,u,l,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof t)throw new re(s);function v(e){var n=r,a=o;return r=o=i,f=e,u=t.apply(a,n)}function g(t){var n=t-c;return c===i||n>=e||n<0||p&&t-f>=a}function m(){var t=Za();if(g(t))return b(t);l=ra(m,function(t){var n=e-(t-c);return p?Hn(n,a-(t-f)):n}(t))}function b(t){return l=i,h&&r?v(t):(r=o=i,u)}function y(){var t=Za(),n=g(t);if(r=arguments,o=this,c=t,n){if(l===i)return function(t){return f=t,l=ra(m,e),d?v(t):u}(c);if(p)return Xo(l),l=ra(m,e),v(c)}return l===i&&(l=ra(m,e)),u}return e=Uu(e)||0,ju(n)&&(d=!!n.leading,a=(p="maxWait"in n)?Wn(Uu(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){l!==i&&Xo(l),f=0,r=c=o=l=i},y.flush=function(){return l===i?u:b(Za())},y}var ou=Io(function(t,e){return Pr(t,1,e)}),iu=Io(function(t,e,n){return Pr(t,Uu(e)||0,n)});function au(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new re(s);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(au.Cache||yr),n}function uu(t){if("function"!=typeof t)throw new re(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}au.Cache=yr;var su=Vo(function(t,e){var n=(e=1==e.length&&gu(e[0])?Je(e[0],mn(Bi())):Je(Fr(e,1),mn(Bi()))).length;return Io(function(r){for(var o=-1,i=Hn(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return He(t,this,r)})}),lu=Io(function(t,e){var n=En(e,Di(lu));return ki(t,_,i,e,n)}),cu=Io(function(t,e){var n=En(e,Di(cu));return ki(t,I,i,e,n)}),fu=Ai(function(t,e){return ki(t,S,i,i,i,e)});function du(t,e){return t===e||t!=t&&e!=e}var pu=yi(Zr),hu=yi(function(t,e){return t>=e}),vu=ro(function(){return arguments}())?ro:function(t){return Tu(t)&&le.call(t,"callee")&&!qe.call(t,"callee")},gu=n.isArray,mu=Qe?mn(Qe):function(t){return Tu(t)&&Kr(t)==st};function bu(t){return null!=t&&Su(t.length)&&!Iu(t)}function yu(t){return Tu(t)&&bu(t)}var xu=Nn||Us,wu=Ne?mn(Ne):function(t){return Tu(t)&&Kr(t)==H};function _u(t){if(!Tu(t))return!1;var e=Kr(t);return e==V||e==$||"string"==typeof t.message&&"string"==typeof t.name&&!Ou(t)}function Iu(t){if(!ju(t))return!1;var e=Kr(t);return e==Y||e==X||e==F||e==tt}function ku(t){return"number"==typeof t&&t==Nu(t)}function Su(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=D}function ju(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Tu(t){return null!=t&&"object"==typeof t}var Eu=Re?mn(Re):function(t){return Tu(t)&&Ri(t)==G};function Au(t){return"number"==typeof t||Tu(t)&&Kr(t)==K}function Ou(t){if(!Tu(t)||Kr(t)!=J)return!1;var e=Ee(t);if(null===e)return!0;var n=le.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&se.call(n)==pe}var Cu=Ue?mn(Ue):function(t){return Tu(t)&&Kr(t)==et};var qu=Fe?mn(Fe):function(t){return Tu(t)&&Ri(t)==nt};function Mu(t){return"string"==typeof t||!gu(t)&&Tu(t)&&Kr(t)==rt}function Du(t){return"symbol"==typeof t||Tu(t)&&Kr(t)==ot}var Bu=We?mn(We):function(t){return Tu(t)&&Su(t.length)&&!!je[Kr(t)]};var Pu=yi(co),zu=yi(function(t,e){return t<=e});function Lu(t){if(!t)return[];if(bu(t))return Mu(t)?qn(t):ni(t);if(ze&&t[ze])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ze]());var e=Ri(t);return(e==G?jn:e==nt?An:ds)(t)}function Qu(t){return t?(t=Uu(t))===M||t===-M?(t<0?-1:1)*B:t==t?t:0:0===t?t:0}function Nu(t){var e=Qu(t),n=e%1;return e==e?n?e-n:e:0}function Ru(t){return t?Mr(Nu(t),0,z):0}function Uu(t){if("number"==typeof t)return t;if(Du(t))return P;if(ju(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ju(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Dt,"");var n=Ht.test(t);return n||Vt.test(t)?Oe(t.slice(2),n?2:8):Wt.test(t)?P:+t}function Fu(t){return ri(t,os(t))}function Wu(t){return null==t?"":Po(t)}var Hu=ii(function(t,e){if(Gi(e)||bu(e))ri(e,rs(e),t);else for(var n in e)le.call(e,n)&&Tr(t,n,e[n])}),$u=ii(function(t,e){ri(e,os(e),t)}),Vu=ii(function(t,e,n,r){ri(e,os(e),t,r)}),Yu=ii(function(t,e,n,r){ri(e,rs(e),t,r)}),Xu=Ai(qr);var Gu=Io(function(t,e){t=te(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&$i(e[0],e[1],o)&&(r=1);++n<r;)for(var a=e[n],u=os(a),s=-1,l=u.length;++s<l;){var c=u[s],f=t[c];(f===i||du(f,ae[c])&&!le.call(t,c))&&(t[c]=a[c])}return t}),Ku=Io(function(t){return t.push(i,ji),He(as,i,t)});function Zu(t,e,n){var r=null==t?i:Xr(t,e);return r===i?n:r}function Ju(t,e){return null!=t&&Ui(t,e,to)}var ts=hi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),t[e]=n},js(As)),es=hi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),le.call(t,e)?t[e].push(n):t[e]=[n]},Bi),ns=Io(no);function rs(t){return bu(t)?_r(t):so(t)}function os(t){return bu(t)?_r(t,!0):lo(t)}var is=ii(function(t,e,n){vo(t,e,n)}),as=ii(function(t,e,n,r){vo(t,e,n,r)}),us=Ai(function(t,e){var n={};if(null==t)return n;var r=!1;e=Je(e,function(e){return e=$o(e,t),r||(r=e.length>1),e}),ri(t,Ci(t),n),r&&(n=Dr(n,d|p|h,Ti));for(var o=e.length;o--;)Lo(n,e[o]);return n});var ss=Ai(function(t,e){return null==t?{}:function(t,e){return bo(t,e,function(e,n){return Ju(t,n)})}(t,e)});function ls(t,e){if(null==t)return{};var n=Je(Ci(t),function(t){return[t]});return e=Bi(e),bo(t,n,function(t,n){return e(t,n[0])})}var cs=Ii(rs),fs=Ii(os);function ds(t){return null==t?[]:bn(t,rs(t))}var ps=li(function(t,e,n){return e=e.toLowerCase(),t+(n?hs(e):e)});function hs(t){return _s(Wu(t).toLowerCase())}function vs(t){return(t=Wu(t))&&t.replace(Xt,_n).replace(ye,"")}var gs=li(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),ms=li(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),bs=si("toLowerCase");var ys=li(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var xs=li(function(t,e,n){return t+(n?" ":"")+_s(e)});var ws=li(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),_s=si("toUpperCase");function Is(t,e,n){return t=Wu(t),(e=n?i:e)===i?function(t){return Ie.test(t)}(t)?function(t){return t.match(we)||[]}(t):function(t){return t.match(Nt)||[]}(t):t.match(e)||[]}var ks=Io(function(t,e){try{return He(t,i,e)}catch(t){return _u(t)?t:new o(t)}}),Ss=Ai(function(t,e){return Ve(e,function(e){e=la(e),Cr(t,e,eu(t[e],t))}),t});function js(t){return function(){return t}}var Ts=di(),Es=di(!0);function As(t){return t}function Os(t){return uo("function"==typeof t?t:Dr(t,d))}var Cs=Io(function(t,e){return function(n){return no(n,t,e)}}),qs=Io(function(t,e){return function(n){return no(t,n,e)}});function Ms(t,e,n){var r=rs(e),o=Yr(e,r);null!=n||ju(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=Yr(e,rs(e)));var i=!(ju(n)&&"chain"in n&&!n.chain),a=Iu(t);return Ve(o,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=ni(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,tn([this.value()],arguments))})}),t}function Ds(){}var Bs=gi(Je),Ps=gi(Xe),zs=gi(rn);function Ls(t){return Vi(t)?dn(la(t)):function(t){return function(e){return Xr(e,t)}}(t)}var Qs=bi(),Ns=bi(!0);function Rs(){return[]}function Us(){return!1}var Fs=vi(function(t,e){return t+e},0),Ws=wi("ceil"),Hs=vi(function(t,e){return t/e},1),$s=wi("floor");var Vs=vi(function(t,e){return t*e},1),Ys=wi("round"),Xs=vi(function(t,e){return t-e},0);return dr.after=function(t,e){if("function"!=typeof e)throw new re(s);return t=Nu(t),function(){if(--t<1)return e.apply(this,arguments)}},dr.ary=Ja,dr.assign=Hu,dr.assignIn=$u,dr.assignInWith=Vu,dr.assignWith=Yu,dr.at=Xu,dr.before=tu,dr.bind=eu,dr.bindAll=Ss,dr.bindKey=nu,dr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return gu(t)?t:[t]},dr.chain=La,dr.chunk=function(t,e,r){e=(r?$i(t,e,r):e===i)?1:Wn(Nu(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var a=0,u=0,s=n(zn(o/e));a<o;)s[u++]=Oo(t,a,a+=e);return s},dr.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},dr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],o=t;o--;)e[o-1]=arguments[o];return tn(gu(r)?ni(r):[r],Fr(e,1))},dr.cond=function(t){var e=null==t?0:t.length,n=Bi();return t=e?Je(t,function(t){if("function"!=typeof t[1])throw new re(s);return[n(t[0]),t[1]]}):[],Io(function(n){for(var r=-1;++r<e;){var o=t[r];if(He(o[0],this,n))return He(o[1],this,n)}})},dr.conforms=function(t){return function(t){var e=rs(t);return function(n){return Br(n,t,e)}}(Dr(t,d))},dr.constant=js,dr.countBy=Ra,dr.create=function(t,e){var n=pr(t);return null==e?n:Or(n,e)},dr.curry=function t(e,n,r){var o=ki(e,x,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},dr.curryRight=function t(e,n,r){var o=ki(e,w,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},dr.debounce=ru,dr.defaults=Gu,dr.defaultsDeep=Ku,dr.defer=ou,dr.delay=iu,dr.difference=da,dr.differenceBy=pa,dr.differenceWith=ha,dr.drop=function(t,e,n){var r=null==t?0:t.length;return r?Oo(t,(e=n||e===i?1:Nu(e))<0?0:e,r):[]},dr.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Oo(t,0,(e=r-(e=n||e===i?1:Nu(e)))<0?0:e):[]},dr.dropRightWhile=function(t,e){return t&&t.length?No(t,Bi(e,3),!0,!0):[]},dr.dropWhile=function(t,e){return t&&t.length?No(t,Bi(e,3),!0):[]},dr.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&$i(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=Nu(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:Nu(r))<0&&(r+=o),r=n>r?0:Ru(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},dr.filter=function(t,e){return(gu(t)?Ge:Ur)(t,Bi(e,3))},dr.flatMap=function(t,e){return Fr(Xa(t,e),1)},dr.flatMapDeep=function(t,e){return Fr(Xa(t,e),M)},dr.flatMapDepth=function(t,e,n){return n=n===i?1:Nu(n),Fr(Xa(t,e),n)},dr.flatten=ma,dr.flattenDeep=function(t){return null!=t&&t.length?Fr(t,M):[]},dr.flattenDepth=function(t,e){return null!=t&&t.length?Fr(t,e=e===i?1:Nu(e)):[]},dr.flip=function(t){return ki(t,j)},dr.flow=Ts,dr.flowRight=Es,dr.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},dr.functions=function(t){return null==t?[]:Yr(t,rs(t))},dr.functionsIn=function(t){return null==t?[]:Yr(t,os(t))},dr.groupBy=$a,dr.initial=function(t){return null!=t&&t.length?Oo(t,0,-1):[]},dr.intersection=ya,dr.intersectionBy=xa,dr.intersectionWith=wa,dr.invert=ts,dr.invertBy=es,dr.invokeMap=Va,dr.iteratee=Os,dr.keyBy=Ya,dr.keys=rs,dr.keysIn=os,dr.map=Xa,dr.mapKeys=function(t,e){var n={};return e=Bi(e,3),$r(t,function(t,r,o){Cr(n,e(t,r,o),t)}),n},dr.mapValues=function(t,e){var n={};return e=Bi(e,3),$r(t,function(t,r,o){Cr(n,r,e(t,r,o))}),n},dr.matches=function(t){return po(Dr(t,d))},dr.matchesProperty=function(t,e){return ho(t,Dr(e,d))},dr.memoize=au,dr.merge=is,dr.mergeWith=as,dr.method=Cs,dr.methodOf=qs,dr.mixin=Ms,dr.negate=uu,dr.nthArg=function(t){return t=Nu(t),Io(function(e){return go(e,t)})},dr.omit=us,dr.omitBy=function(t,e){return ls(t,uu(Bi(e)))},dr.once=function(t){return tu(2,t)},dr.orderBy=function(t,e,n,r){return null==t?[]:(gu(e)||(e=null==e?[]:[e]),gu(n=r?i:n)||(n=null==n?[]:[n]),mo(t,e,n))},dr.over=Bs,dr.overArgs=su,dr.overEvery=Ps,dr.overSome=zs,dr.partial=lu,dr.partialRight=cu,dr.partition=Ga,dr.pick=ss,dr.pickBy=ls,dr.property=Ls,dr.propertyOf=function(t){return function(e){return null==t?i:Xr(t,e)}},dr.pull=Ia,dr.pullAll=ka,dr.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?yo(t,e,Bi(n,2)):t},dr.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?yo(t,e,i,n):t},dr.pullAt=Sa,dr.range=Qs,dr.rangeRight=Ns,dr.rearg=fu,dr.reject=function(t,e){return(gu(t)?Ge:Ur)(t,uu(Bi(e,3)))},dr.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Bi(e,3);++r<i;){var a=t[r];e(a,r,t)&&(n.push(a),o.push(r))}return xo(t,o),n},dr.rest=function(t,e){if("function"!=typeof t)throw new re(s);return Io(t,e=e===i?e:Nu(e))},dr.reverse=ja,dr.sampleSize=function(t,e,n){return e=(n?$i(t,e,n):e===i)?1:Nu(e),(gu(t)?kr:So)(t,e)},dr.set=function(t,e,n){return null==t?t:jo(t,e,n)},dr.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:jo(t,e,n,r)},dr.shuffle=function(t){return(gu(t)?Sr:Ao)(t)},dr.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&$i(t,e,n)?(e=0,n=r):(e=null==e?0:Nu(e),n=n===i?r:Nu(n)),Oo(t,e,n)):[]},dr.sortBy=Ka,dr.sortedUniq=function(t){return t&&t.length?Do(t):[]},dr.sortedUniqBy=function(t,e){return t&&t.length?Do(t,Bi(e,2)):[]},dr.split=function(t,e,n){return n&&"number"!=typeof n&&$i(t,e,n)&&(e=n=i),(n=n===i?z:n>>>0)?(t=Wu(t))&&("string"==typeof e||null!=e&&!Cu(e))&&!(e=Po(e))&&Sn(t)?Yo(qn(t),0,n):t.split(e,n):[]},dr.spread=function(t,e){if("function"!=typeof t)throw new re(s);return e=null==e?0:Wn(Nu(e),0),Io(function(n){var r=n[e],o=Yo(n,0,e);return r&&tn(o,r),He(t,this,o)})},dr.tail=function(t){var e=null==t?0:t.length;return e?Oo(t,1,e):[]},dr.take=function(t,e,n){return t&&t.length?Oo(t,0,(e=n||e===i?1:Nu(e))<0?0:e):[]},dr.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Oo(t,(e=r-(e=n||e===i?1:Nu(e)))<0?0:e,r):[]},dr.takeRightWhile=function(t,e){return t&&t.length?No(t,Bi(e,3),!1,!0):[]},dr.takeWhile=function(t,e){return t&&t.length?No(t,Bi(e,3)):[]},dr.tap=function(t,e){return e(t),t},dr.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new re(s);return ju(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ru(t,e,{leading:r,maxWait:e,trailing:o})},dr.thru=Qa,dr.toArray=Lu,dr.toPairs=cs,dr.toPairsIn=fs,dr.toPath=function(t){return gu(t)?Je(t,la):Du(t)?[t]:ni(sa(Wu(t)))},dr.toPlainObject=Fu,dr.transform=function(t,e,n){var r=gu(t),o=r||xu(t)||Bu(t);if(e=Bi(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:ju(t)&&Iu(i)?pr(Ee(t)):{}}return(o?Ve:$r)(t,function(t,r,o){return e(n,t,r,o)}),n},dr.unary=function(t){return Ja(t,1)},dr.union=Ta,dr.unionBy=Ea,dr.unionWith=Aa,dr.uniq=function(t){return t&&t.length?zo(t):[]},dr.uniqBy=function(t,e){return t&&t.length?zo(t,Bi(e,2)):[]},dr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?zo(t,i,e):[]},dr.unset=function(t,e){return null==t||Lo(t,e)},dr.unzip=Oa,dr.unzipWith=Ca,dr.update=function(t,e,n){return null==t?t:Qo(t,e,Ho(n))},dr.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qo(t,e,Ho(n),r)},dr.values=ds,dr.valuesIn=function(t){return null==t?[]:bn(t,os(t))},dr.without=qa,dr.words=Is,dr.wrap=function(t,e){return lu(Ho(e),t)},dr.xor=Ma,dr.xorBy=Da,dr.xorWith=Ba,dr.zip=Pa,dr.zipObject=function(t,e){return Fo(t||[],e||[],Tr)},dr.zipObjectDeep=function(t,e){return Fo(t||[],e||[],jo)},dr.zipWith=za,dr.entries=cs,dr.entriesIn=fs,dr.extend=$u,dr.extendWith=Vu,Ms(dr,dr),dr.add=Fs,dr.attempt=ks,dr.camelCase=ps,dr.capitalize=hs,dr.ceil=Ws,dr.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=Uu(n))==n?n:0),e!==i&&(e=(e=Uu(e))==e?e:0),Mr(Uu(t),e,n)},dr.clone=function(t){return Dr(t,h)},dr.cloneDeep=function(t){return Dr(t,d|h)},dr.cloneDeepWith=function(t,e){return Dr(t,d|h,e="function"==typeof e?e:i)},dr.cloneWith=function(t,e){return Dr(t,h,e="function"==typeof e?e:i)},dr.conformsTo=function(t,e){return null==e||Br(t,e,rs(e))},dr.deburr=vs,dr.defaultTo=function(t,e){return null==t||t!=t?e:t},dr.divide=Hs,dr.endsWith=function(t,e,n){t=Wu(t),e=Po(e);var r=t.length,o=n=n===i?r:Mr(Nu(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},dr.eq=du,dr.escape=function(t){return(t=Wu(t))&&St.test(t)?t.replace(It,In):t},dr.escapeRegExp=function(t){return(t=Wu(t))&&Mt.test(t)?t.replace(qt,"\\$&"):t},dr.every=function(t,e,n){var r=gu(t)?Xe:Nr;return n&&$i(t,e,n)&&(e=i),r(t,Bi(e,3))},dr.find=Ua,dr.findIndex=va,dr.findKey=function(t,e){return an(t,Bi(e,3),$r)},dr.findLast=Fa,dr.findLastIndex=ga,dr.findLastKey=function(t,e){return an(t,Bi(e,3),Vr)},dr.floor=$s,dr.forEach=Wa,dr.forEachRight=Ha,dr.forIn=function(t,e){return null==t?t:Wr(t,Bi(e,3),os)},dr.forInRight=function(t,e){return null==t?t:Hr(t,Bi(e,3),os)},dr.forOwn=function(t,e){return t&&$r(t,Bi(e,3))},dr.forOwnRight=function(t,e){return t&&Vr(t,Bi(e,3))},dr.get=Zu,dr.gt=pu,dr.gte=hu,dr.has=function(t,e){return null!=t&&Ui(t,e,Jr)},dr.hasIn=Ju,dr.head=ba,dr.identity=As,dr.includes=function(t,e,n,r){t=bu(t)?t:ds(t),n=n&&!r?Nu(n):0;var o=t.length;return n<0&&(n=Wn(o+n,0)),Mu(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&sn(t,e,n)>-1},dr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Nu(n);return o<0&&(o=Wn(r+o,0)),sn(t,e,o)},dr.inRange=function(t,e,n){return e=Qu(e),n===i?(n=e,e=0):n=Qu(n),function(t,e,n){return t>=Hn(e,n)&&t<Wn(e,n)}(t=Uu(t),e,n)},dr.invoke=ns,dr.isArguments=vu,dr.isArray=gu,dr.isArrayBuffer=mu,dr.isArrayLike=bu,dr.isArrayLikeObject=yu,dr.isBoolean=function(t){return!0===t||!1===t||Tu(t)&&Kr(t)==W},dr.isBuffer=xu,dr.isDate=wu,dr.isElement=function(t){return Tu(t)&&1===t.nodeType&&!Ou(t)},dr.isEmpty=function(t){if(null==t)return!0;if(bu(t)&&(gu(t)||"string"==typeof t||"function"==typeof t.splice||xu(t)||Bu(t)||vu(t)))return!t.length;var e=Ri(t);if(e==G||e==nt)return!t.size;if(Gi(t))return!so(t).length;for(var n in t)if(le.call(t,n))return!1;return!0},dr.isEqual=function(t,e){return oo(t,e)},dr.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?oo(t,e,i,n):!!r},dr.isError=_u,dr.isFinite=function(t){return"number"==typeof t&&Rn(t)},dr.isFunction=Iu,dr.isInteger=ku,dr.isLength=Su,dr.isMap=Eu,dr.isMatch=function(t,e){return t===e||io(t,e,zi(e))},dr.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,io(t,e,zi(e),n)},dr.isNaN=function(t){return Au(t)&&t!=+t},dr.isNative=function(t){if(Xi(t))throw new o(u);return ao(t)},dr.isNil=function(t){return null==t},dr.isNull=function(t){return null===t},dr.isNumber=Au,dr.isObject=ju,dr.isObjectLike=Tu,dr.isPlainObject=Ou,dr.isRegExp=Cu,dr.isSafeInteger=function(t){return ku(t)&&t>=-D&&t<=D},dr.isSet=qu,dr.isString=Mu,dr.isSymbol=Du,dr.isTypedArray=Bu,dr.isUndefined=function(t){return t===i},dr.isWeakMap=function(t){return Tu(t)&&Ri(t)==at},dr.isWeakSet=function(t){return Tu(t)&&Kr(t)==ut},dr.join=function(t,e){return null==t?"":Un.call(t,e)},dr.kebabCase=gs,dr.last=_a,dr.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Nu(n))<0?Wn(r+o,0):Hn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):un(t,cn,o,!0)},dr.lowerCase=ms,dr.lowerFirst=bs,dr.lt=Pu,dr.lte=zu,dr.max=function(t){return t&&t.length?Rr(t,As,Zr):i},dr.maxBy=function(t,e){return t&&t.length?Rr(t,Bi(e,2),Zr):i},dr.mean=function(t){return fn(t,As)},dr.meanBy=function(t,e){return fn(t,Bi(e,2))},dr.min=function(t){return t&&t.length?Rr(t,As,co):i},dr.minBy=function(t,e){return t&&t.length?Rr(t,Bi(e,2),co):i},dr.stubArray=Rs,dr.stubFalse=Us,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Vs,dr.nth=function(t,e){return t&&t.length?go(t,Nu(e)):i},dr.noConflict=function(){return Me._===this&&(Me._=he),this},dr.noop=Ds,dr.now=Za,dr.pad=function(t,e,n){t=Wu(t);var r=(e=Nu(e))?Cn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return mi(Ln(o),n)+t+mi(zn(o),n)},dr.padEnd=function(t,e,n){t=Wu(t);var r=(e=Nu(e))?Cn(t):0;return e&&r<e?t+mi(e-r,n):t},dr.padStart=function(t,e,n){t=Wu(t);var r=(e=Nu(e))?Cn(t):0;return e&&r<e?mi(e-r,n)+t:t},dr.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Vn(Wu(t).replace(Bt,""),e||0)},dr.random=function(t,e,n){if(n&&"boolean"!=typeof n&&$i(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=Qu(t),e===i?(e=t,t=0):e=Qu(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Yn();return Hn(t+o*(e-t+Ae("1e-"+((o+"").length-1))),e)}return wo(t,e)},dr.reduce=function(t,e,n){var r=gu(t)?en:hn,o=arguments.length<3;return r(t,Bi(e,4),n,o,Lr)},dr.reduceRight=function(t,e,n){var r=gu(t)?nn:hn,o=arguments.length<3;return r(t,Bi(e,4),n,o,Qr)},dr.repeat=function(t,e,n){return e=(n?$i(t,e,n):e===i)?1:Nu(e),_o(Wu(t),e)},dr.replace=function(){var t=arguments,e=Wu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},dr.result=function(t,e,n){var r=-1,o=(e=$o(e,t)).length;for(o||(o=1,t=i);++r<o;){var a=null==t?i:t[la(e[r])];a===i&&(r=o,a=n),t=Iu(a)?a.call(t):a}return t},dr.round=Ys,dr.runInContext=t,dr.sample=function(t){return(gu(t)?Ir:ko)(t)},dr.size=function(t){if(null==t)return 0;if(bu(t))return Mu(t)?Cn(t):t.length;var e=Ri(t);return e==G||e==nt?t.size:so(t).length},dr.snakeCase=ys,dr.some=function(t,e,n){var r=gu(t)?rn:Co;return n&&$i(t,e,n)&&(e=i),r(t,Bi(e,3))},dr.sortedIndex=function(t,e){return qo(t,e)},dr.sortedIndexBy=function(t,e,n){return Mo(t,e,Bi(n,2))},dr.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=qo(t,e);if(r<n&&du(t[r],e))return r}return-1},dr.sortedLastIndex=function(t,e){return qo(t,e,!0)},dr.sortedLastIndexBy=function(t,e,n){return Mo(t,e,Bi(n,2),!0)},dr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=qo(t,e,!0)-1;if(du(t[n],e))return n}return-1},dr.startCase=xs,dr.startsWith=function(t,e,n){return t=Wu(t),n=null==n?0:Mr(Nu(n),0,t.length),e=Po(e),t.slice(n,n+e.length)==e},dr.subtract=Xs,dr.sum=function(t){return t&&t.length?vn(t,As):0},dr.sumBy=function(t,e){return t&&t.length?vn(t,Bi(e,2)):0},dr.template=function(t,e,n){var r=dr.templateSettings;n&&$i(t,e,n)&&(e=i),t=Wu(t),e=Vu({},e,r,Si);var o,a,u=Vu({},e.imports,r.imports,Si),s=rs(u),l=bn(u,s),c=0,f=e.interpolate||Gt,d="__p += '",p=ee((e.escape||Gt).source+"|"+f.source+"|"+(f===Et?Ut:Gt).source+"|"+(e.evaluate||Gt).source+"|$","g"),h="//# sourceURL="+(le.call(e,"sourceURL")?(e.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Se+"]")+"\n";t.replace(p,function(e,n,r,i,u,s){return r||(r=i),d+=t.slice(c,s).replace(Kt,kn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),u&&(a=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+e.length,e}),d+="';\n";var v=le.call(e,"variable")&&e.variable;v||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(yt,""):d).replace(xt,"$1").replace(wt,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=ks(function(){return Zt(s,h+"return "+d).apply(i,l)});if(g.source=d,_u(g))throw g;return g},dr.times=function(t,e){if((t=Nu(t))<1||t>D)return[];var n=z,r=Hn(t,z);e=Bi(e),t-=z;for(var o=gn(r,e);++n<t;)e(n);return o},dr.toFinite=Qu,dr.toInteger=Nu,dr.toLength=Ru,dr.toLower=function(t){return Wu(t).toLowerCase()},dr.toNumber=Uu,dr.toSafeInteger=function(t){return t?Mr(Nu(t),-D,D):0===t?t:0},dr.toString=Wu,dr.toUpper=function(t){return Wu(t).toUpperCase()},dr.trim=function(t,e,n){if((t=Wu(t))&&(n||e===i))return t.replace(Dt,"");if(!t||!(e=Po(e)))return t;var r=qn(t),o=qn(e);return Yo(r,xn(r,o),wn(r,o)+1).join("")},dr.trimEnd=function(t,e,n){if((t=Wu(t))&&(n||e===i))return t.replace(Pt,"");if(!t||!(e=Po(e)))return t;var r=qn(t);return Yo(r,0,wn(r,qn(e))+1).join("")},dr.trimStart=function(t,e,n){if((t=Wu(t))&&(n||e===i))return t.replace(Bt,"");if(!t||!(e=Po(e)))return t;var r=qn(t);return Yo(r,xn(r,qn(e))).join("")},dr.truncate=function(t,e){var n=T,r=E;if(ju(e)){var o="separator"in e?e.separator:o;n="length"in e?Nu(e.length):n,r="omission"in e?Po(e.omission):r}var a=(t=Wu(t)).length;if(Sn(t)){var u=qn(t);a=u.length}if(n>=a)return t;var s=n-Cn(r);if(s<1)return r;var l=u?Yo(u,0,s).join(""):t.slice(0,s);if(o===i)return l+r;if(u&&(s+=l.length-s),Cu(o)){if(t.slice(s).search(o)){var c,f=l;for(o.global||(o=ee(o.source,Wu(Ft.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;l=l.slice(0,d===i?s:d)}}else if(t.indexOf(Po(o),s)!=s){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},dr.unescape=function(t){return(t=Wu(t))&&kt.test(t)?t.replace(_t,Mn):t},dr.uniqueId=function(t){var e=++ce;return Wu(t)+e},dr.upperCase=ws,dr.upperFirst=_s,dr.each=Wa,dr.eachRight=Ha,dr.first=ba,Ms(dr,function(){var t={};return $r(dr,function(e,n){le.call(dr.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),dr.VERSION="4.17.15",Ve(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){dr[t].placeholder=dr}),Ve(["drop","take"],function(t,e){gr.prototype[t]=function(n){n=n===i?1:Wn(Nu(n),0);var r=this.__filtered__&&!e?new gr(this):this.clone();return r.__filtered__?r.__takeCount__=Hn(n,r.__takeCount__):r.__views__.push({size:Hn(n,z),type:t+(r.__dir__<0?"Right":"")}),r},gr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ve(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==C||3==n;gr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Bi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Ve(["head","last"],function(t,e){var n="take"+(e?"Right":"");gr.prototype[t]=function(){return this[n](1).value()[0]}}),Ve(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");gr.prototype[t]=function(){return this.__filtered__?new gr(this):this[n](1)}}),gr.prototype.compact=function(){return this.filter(As)},gr.prototype.find=function(t){return this.filter(t).head()},gr.prototype.findLast=function(t){return this.reverse().find(t)},gr.prototype.invokeMap=Io(function(t,e){return"function"==typeof t?new gr(this):this.map(function(n){return no(n,t,e)})}),gr.prototype.reject=function(t){return this.filter(uu(Bi(t)))},gr.prototype.slice=function(t,e){t=Nu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new gr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=Nu(e))<0?n.dropRight(-e):n.take(e-t)),n)},gr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},gr.prototype.toArray=function(){return this.take(z)},$r(gr.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=dr[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(dr.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,s=e instanceof gr,l=u[0],c=s||gu(e),f=function(t){var e=o.apply(dr,tn([t],u));return r&&d?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,v=s&&!p;if(!a&&c){e=v?e:new gr(this);var g=t.apply(e,u);return g.__actions__.push({func:Qa,args:[f],thisArg:i}),new vr(g,d)}return h&&v?t.apply(this,u):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})}),Ve(["pop","push","shift","sort","splice","unshift"],function(t){var e=oe[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);dr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(gu(o)?o:[],t)}return this[n](function(n){return e.apply(gu(n)?n:[],t)})}}),$r(gr.prototype,function(t,e){var n=dr[e];if(n){var r=n.name+"";le.call(rr,r)||(rr[r]=[]),rr[r].push({name:e,func:n})}}),rr[pi(i,b).name]=[{name:"wrapper",func:i}],gr.prototype.clone=function(){var t=new gr(this.__wrapped__);return t.__actions__=ni(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ni(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ni(this.__views__),t},gr.prototype.reverse=function(){if(this.__filtered__){var t=new gr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},gr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=gu(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Hn(e,t+a);break;case"takeRight":t=Wn(t,e-a)}}return{start:t,end:e}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,f=c.length,d=0,p=Hn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return Ro(t,this.__actions__);var h=[];t:for(;s--&&d<p;){for(var v=-1,g=t[l+=e];++v<f;){var m=c[v],b=m.iteratee,y=m.type,x=b(g);if(y==q)g=x;else if(!x){if(y==C)continue t;break t}}h[d++]=g}return h},dr.prototype.at=Na,dr.prototype.chain=function(){return La(this)},dr.prototype.commit=function(){return new vr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===i&&(this.__values__=Lu(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},dr.prototype.plant=function(t){for(var e,n=this;n instanceof hr;){var r=fa(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},dr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof gr){var e=t;return this.__actions__.length&&(e=new gr(this)),(e=e.reverse()).__actions__.push({func:Qa,args:[ja],thisArg:i}),new vr(e,this.__chain__)}return this.thru(ja)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Ro(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,ze&&(dr.prototype[ze]=function(){return this}),dr}();Me._=Dn,(o=function(){return Dn}.call(e,n,e,r))===i||(r.exports=o)}).call(this)}).call(this,n(14),n(19)(t))},function(t,e,n){var r=n(43),o=n(48),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(12),o=n(10),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&r(t)==i}},function(t,e,n){var r=n(8)(n(5),"Map");t.exports=r},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(30),o=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(46),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,n(19)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(136),o=n(59),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),r(a(t),function(e){return i.call(t,e)}))}:o;t.exports=u},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(56)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(139),o=n(31),i=n(140),a=n(141),u=n(142),s=n(12),l=n(47),c=l(r),f=l(o),d=l(i),p=l(a),h=l(u),v=s;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||u&&"[object WeakMap]"!=v(new u))&&(v=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,n){var r=n(145);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(77);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(44);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(8),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(12),o=n(13),i="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=r(t);return e==a||e==u||e==i||e==s}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(14))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(93),o=n(105),i=n(107),a=n(108),u=n(109);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(20),o=n(33);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e,n){var r=n(123),o=n(53),i=n(9),a=n(54),u=n(50),s=n(126),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),c=!n&&o(t),f=!n&&!c&&a(t),d=!n&&!c&&!f&&s(t),p=n||c||f||d,h=p?r(t.length,String):[],v=h.length;for(var g in t)!e&&!l.call(t,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,v))||h.push(g);return h}},function(t,e,n){var r=n(124),o=n(10),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e,n){(function(t){var r=n(5),o=n(125),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s}).call(this,n(19)(t))},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(45),o=n(55);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){var r=n(52),o=n(131),i=n(57);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(38),o=n(39),i=n(37),a=n(59),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=u},function(t,e,n){var r=n(38),o=n(9);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e,n){var r=n(61),o=n(60),i=n(58);t.exports=function(t){return r(t,i,o)}},function(t,e,n){"use strict";var r=a(n(0)),o=a(n(1)),i=n(4);function a(t){return t&&t.__esModule?t:{default:t}}t.exports={oninit:function(t){(0,i.setLastPage)(),0==o.default.editEntity&&r.default.route.set("/groups")},view:function(t){return(0,r.default)("div",null,"Edit")}}},function(t,e,n){"use strict";var r=c(n(0));n(200);var o=c(n(202)),i=c(n(206)),a=c(n(27)),u=c(n(1)),s=n(6),l=n(28);function c(t){return t&&t.__esModule?t:{default:t}}var f=function(){},d=function(){};t.exports={oninit:function(t){console.log("init"),t.state={options:[],orderBy:(0,l.get)(u.default,"subQuestions["+t.attrs.subQuestionId+"].orderBy",t.attrs.orderBy)},u.default.lastPage="/subquestions/"+t.attrs.groupId+"/"+t.attrs.questionId+"/"+t.attrs.subQuestionId,sessionStorage.setItem("lastPage",u.default.lastPage),void 0==u.default.user.uid&&r.default.route.set("/login");var e=t.attrs;f=(0,s.getSubQuestion)(e.groupId,e.questionId,e.subQuestionId),d=(0,s.getSubQuestionOptions)(e.groupId,e.questionId,e.subQuestionId,"top")},onbeforeupdate:function(t){t.state.orderBy=t.attrs.orderBy},onremove:function(t){f(),d()},view:function(t){return(0,r.default)("div",{class:"wrapper",id:"optionsWrapper"},(0,r.default)("div",{class:"questionSection"},(0,r.default)("div",{class:"questionSectionTitle questions",style:"color:"+t.attrs.info.colors.color+"; background:"+t.attrs.info.colors.background},(0,r.default)("div",null,t.attrs.title),t.attrs.isAlone?(0,r.default)("div",{onclick:function(){r.default.route.set("/question/"+t.attrs.groupId+"/"+t.attrs.questionId)}},(0,r.default)("img",{src:"img/icons8-back-24.png"})):(0,r.default)("div",{onclick:function(){r.default.route.set("/subquestions/"+t.attrs.groupId+"/"+t.attrs.questionId+"/"+t.attrs.subQuestionId)}},(0,r.default)("img",{src:"img/icons8-advertisement-page-24-white.png"}))),function(t,e){var n=(0,l.get)(u.default,"options["+e.attrs.subQuestionId+"]",[]);switch(n=function(t,e){switch(e){case"new":return t.sort(function(t,e){return e.time.seconds-t.time.seconds});case"top":return t.sort(function(t,e){return e.consensusPrecentage-t.consensusPrecentage});case"message":for(var n in t)t[n].hasOwnProperty("lastMessage")||(t[n].lastMessage={seconds:0});return t.sort(function(t,e){return e.lastMessage.seconds-t.lastMessage.seconds});default:return t.sort(function(t,e){return e.consensusPrecentage-t.consensusPrecentage})}}(n,e.state.orderBy),t){case a.default.processes.suggestions:return(0,r.default)(o.default,{groupId:e.attrs.groupId,questionId:e.attrs.questionId,subQuestionId:e.attrs.subQuestionId,options:n});case a.default.processes.votes:return(0,r.default)(i.default,null);default:return(0,r.default)(o.default,{groupId:e.attrs.groupId,questionId:e.attrs.questionId,subQuestionId:e.attrs.subQuestionId,options:n})}}(t.state.processType,t),(0,r.default)("div",{class:"questionSectionFooter"},(0,r.default)("div",{class:"buttons questionSectionAddButton",onclick:function(){!function(t,e){t.attrs.parentVnode.state.showModal={subQuestionId:t.attrs.subQuestionId,which:e,isShow:!0,title:"הוסף אפשרות"}}(t,t.attrs.info.type)}},t.attrs.info.add))))}}},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));n(207),t.exports={oninit:function(t){},view:function(t){return(0,r.default)("div",{class:"lds-css ng-scope spinner"},(0,r.default)("div",{style:"width:100%;height:100%",class:"lds-wedges"},(0,r.default)("div",null,(0,r.default)("div",null,(0,r.default)("div",null)),(0,r.default)("div",null,(0,r.default)("div",null)),(0,r.default)("div",null,(0,r.default)("div",null)),(0,r.default)("div",null,(0,r.default)("div",null)))))}}},function(t,e,n){"use strict";var r=a(n(0));n(212);var o=n(7),i=a(n(1));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e){"on"==t?e.state.showModal=!0:e.state.ParentVnode.state.showModal.isShow=!1}t.exports={oninit:function(t){var e=!1;"subQuestion"===t.attrs.whichModal&&(e=!0),t.state={showModal:t.attrs.showModal,isSubquestion:e,ParentVnode:t.attrs.vnode,add:{title:"",description:"",more:{text:"",URL:""}}}},onbeforeupdate:function(t){t.state.showModal=t.attrs.showModal},view:function(t){var e=t.state.ParentVnode;return(0,r.default)("div",null,t.state.showModal?(0,r.default)("div",{class:"module"},(0,r.default)("div",{class:"moduleBox"},(0,r.default)("div",{class:"moduleTitle"},t.attrs.title),(0,r.default)("div",{class:"moduleInputs"},(0,r.default)("textarea",{class:"moduleQuestionTitle",autofocus:"true",placeholder:t.attrs.placeholderTitle,onkeyup:function(e){t.state.add.title=e.target.value}}),(0,r.default)("textarea",{class:"moduleQuestionTitle moduleDescription",placeholder:t.attrs.placeholderDescription,onkeyup:function(e){t.state.add.description=e.target.value}}),t.state.isSubquestion?(0,r.default)("div",{class:"modalMoreInfo"},(0,r.default)("div",{class:"moduleTitle"},"קישור לקובץ חיצוני"),(0,r.default)("input",{class:"moduleQuestionTitle",value:t.state.add.moreText,type:"text",placeholder:"טקסט",oninput:function(e){t.state.add.more.text=e.target.value}}),(0,r.default)("input",{class:"moduleQuestionTitle",value:t.state.add.moreURL,type:"url",placeholder:"URL",oninput:function(e){t.state.add.more.URL=e.target.value}})):(0,r.default)("div",null)),(0,r.default)("div",{class:"moduleButtons"},(0,r.default)("div",{class:"buttons confirm",onclick:function(){!function(t,e){var n=void 0,r=void 0;t.attrs.hasOwnProperty("id")?(n=t.attrs.id,r=t.state.showModal.subQuestionId):(n=t.attrs.questionId,r=t.attrs.subQuestionId);console.log(e.state),(0,o.createOption)(t.attrs.groupId,n,r,t.state.showModal.which,i.default.user.uid,e.state.add.title,e.state.add.description,e.state.add.more.text,e.state.add.more.URL),t.state.showModal.isShow=!1}(e,t),u("off",t)}},"הוספה"),(0,r.default)("div",{class:"buttons cancel",onclick:function(){u("off",t)}},"ביטול")))):(0,r.default)("div",null))}}},function(t,e,n){"use strict";n(68),n(11);var r=n(72),o=n(15),i=v(n(76)),a=v(n(78)),u=v(n(79)),s=v(n(80)),l=v(n(191)),c=v(n(197)),f=v(n(214)),d=v(n(221)),p=v(n(224)),h=v(n(63));function v(t){return t&&t.__esModule?t:{default:t}}var g=n(0),m=document.body;(0,r.onAuth)(),window.logout=o.logout,g.route.prefix("?");var b=window.document.URL;if(b.includes("&")){var y=b.indexOf("&"),x=b.indexOf("?");b=b.slice(x+2,y),window.history.pushState(null,"test","/?/"+b)}g.route(m,"/login",{"/login":i.default,"/logingoogle":a.default,"/logout":u.default,"/groups":s.default,"/group/:id":l.default,"/question/:groupId/:questionId":c.default,"/questionEdit/:groupId/:questionId":f.default,"/optionchat/:groupId/:questionId/:subQuestionId/:optionId":d.default,"/subquestions/:groupId/:questionId/:subQuestionId":p.default,"/edit":h.default})},function(t,e,n){var r=n(69);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,":root {\n    --mainBackground: #f14a4a;\n    --subBackground: #ee7171;\n    --mainColor: white;\n    --accent: blue;\n    --textHeader: rgba(0, 0, 0, 0.78);\n    --textHeaderSize: 1.3rem;\n    --textHeaderWeight: 600;\n    --textSubHeader: rgba(0, 0, 0, 0.68);\n    --textHeaderSize: 1.1rem;\n    --textHeaderSubTitleSize: 1rem;\n    --textRegular: rgba(0, 0, 0, 0.55);\n    --textRegularSize: 1rem;\n}\n\nhtml, body {\n    width: 100%;\n    height: 100%;\n    margin: 0px;\n    font-family: 'Varela Round', sans-serif;\n    font-size: 12px;\n}\n\nbody {\n    direction: rtl;\n}\n\n.page {\n    width: 100%;\n    height: 100%;\n}\n\n.wrapperAll {\n    position: relative;\n    margin: auto;\n    max-width: 550px;\n    padding: 10px;\n}\n\n.wrapper {\n    max-width: 550px;\n    margin: 20px auto 20px auto;\n    position: relative;\n    z-index: 2;\n}\n\n.card {\n    background: white;\n    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);\n    border-radius: 3px;\n    direction: rtl;\n    padding: 10px;\n    margin: 5px;\n}\n\n.cardTitle {\n    color: var(--textHeader);\n    font-size: var(--textHeaderSize);\n    font-weight: var(--textHeaderWeight);\n    margin-bottom: 10px;\n    overflow-x: hidden;\n    text-overflow: ellipsis;\n}\n\n.cardDescription {\n    color: var(--textSubHeader);\n    font-size: var(--textSubHeaderSize);\n    overflow: hidden;\n    text-overflow: ellipsis;\n}\n\n.centerElement {\n    position: relative;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    text-align: center;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n}\n\n.centerInput {\n    max-width: 300px;\n    position: relative;\n    left: 50%;\n    transform: translateX(-50%)\n}\n\n.newElementShow {\n    animation-name: showUp;\n    animation-duration: 1s;\n}\n\n@keyframes showUp {\n    0% {\n        opacity: 0;\n    }\n    100% {\n        opacity: 1;\n    }\n}\n\n.headers {\n    position: fixed;\n    top: 0px;\n    left: 0px;\n    width: 100%;\n    font-size: 1.4rem;\n    font-weight: 900;\n    box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.5);\n    text-align: center;\n    z-index: 100;\n}\n\n.navSubHeaders {}\n\n.cardsContainer {\n    margin-top: 85px;\n}\n\n/*  Buttons */\n\n.buttons {\n    width: max-content;\n    padding: 12px 25px;\n    margin: 5px 10px;\n    background: teal;\n    border-radius: 5px;\n    /* box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5); */\n    user-select: none;\n    cursor: pointer;\n}\n\n.buttons:active {\n    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);\n}\n\n.confirm {\n    background: #51d051;\n}\n\n.cancel {\n    background: #e85353;\n}\n\n.negative {\n    color: red;\n}\n\n.fav {\n    background: var(--accent);\n    width: 60px;\n    height: 60px;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    position: fixed;\n    right: 6vw;\n    bottom: 6vh;\n    border-radius: 50%;\n    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.5);\n    user-select: none;\n    cursor: pointer;\n    z-index: 5;\n}\n\n.fav:active {\n    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);\n}\n\n.fav>div {\n    color: white;\n    text-align: center;\n    font-size: 3rem;\n}\n\n.footer {\n    position: fixed;\n    bottom: 0px;\n    left: 0%;\n    width: 100%;\n    background: var(--subBackground);\n    color: white;\n    display: flex;\n    justify-content: stretch;\n    box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.5);\n    z-index: 4;\n}\n\n.footerButton {\n    flex: 1;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    user-select: none;\n    cursor: pointer;\n    padding: 11px;\n}\n\n.footerButtonSelected {\n    background: var(--mainBackground);\n}\n\n.checkBoxes [type=\"checkbox\"] {\n    transform: scale(1.5);\n    margin-left: 10px;\n}\n\n.checkBoxes label {\n    font-size: 1.5rem;\n    margin-left: 20px;\n}",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,n){"use strict";t.exports={apiKey:"AIzaSyBEumZUTCL3Jc9pt7_CjiSVTxmz9aMqSvo",authDomain:"synthesistalyaron.firebaseapp.com",databaseURL:"https://synthesistalyaron.firebaseio.com",projectId:"synthesistalyaron",storageBucket:"synthesistalyaron.appspot.com",messagingSenderId:"799655218679",appId:"1:799655218679:web:d0118a27fd956d12"}},function(t,e,n){"use strict";var r=s(n(1)),o=s(n(0)),i=s(n(11)),a=n(6),u=n(4);function s(t){return t&&t.__esModule?t:{default:t}}t.exports={onAuth:function(){firebase.auth().onAuthStateChanged(function(t){if(r.default.user=t,t)if(console.dir(t),console.log("User",r.default.user.uid,"is signed in."),t.isAnonymous){console.log("user is anonymous"),console.log(r.default.user),r.default.user.userName=r.default.userTempName||(0,u.getRandomName)();var e={uid:r.default.user.uid,name:r.default.user.userName,isAnonymous:!0};i.default.collection("users").doc(t.uid).set(e).then(function(){}).catch(function(t){console.error("Error writing User: ",t)});var n=sessionStorage.getItem("lastPage")||"/groups";console.log(n),o.default.route.set(n)}else{console.log("user",t.displayName,"is logged in");var s={uid:r.default.user.uid,name:r.default.user.displayName,email:r.default.user.email,isAnonymous:!1};(0,a.listenToFeeds)(),i.default.collection("users").doc(t.uid).set(s).then(function(){}).catch(function(t){console.error("Error writing User: ",t)});var l=sessionStorage.getItem("lastPage")||"/groups";o.default.route.set(l)}else console.log("User is signed out."),r.default.user={},o.default.redraw()})},AnonymousLogin:function(){firebase.auth().signInAnonymously().catch(function(t){var e=t.code,n=t.message;console.log(e,n)})}}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(74),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(14))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o=1,i={},a=!1,u=t.document,s=Object.getPrototypeOf&&Object.getPrototypeOf(t);s=s&&s.setTimeout?s:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){c(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&c(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),r=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){c(t.data)},r=function(e){t.port2.postMessage(e)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var t=u.documentElement;r=function(e){var n=u.createElement("script");n.onreadystatechange=function(){c(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():r=function(t){setTimeout(c,0,t)},s.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return i[o]=a,r(o),o++},s.clearImmediate=l}function l(t){delete i[t]}function c(t){if(a)setTimeout(c,0,t);else{var e=i[t];if(e){a=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{l(t),a=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(14),n(75))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var s,l=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):f=-1,l.length&&p())}function p(){if(!c){var t=u(d);c=!0;for(var e=l.length;e;){for(s=l,l=[];++f<e;)s&&s[f].run();f=-1,e=l.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new h(t,e)),1!==l.length||c||u(p)},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(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=a(n(0));n(42);var o=a(n(1)),i=n(15);function a(t){return t&&t.__esModule?t:{default:t}}t.exports={view:function(t){return(0,r.default)("div",{class:"page splashPage",href:"/delib",oncreate:r.default.route.link},(0,r.default)("div",{class:"centerElement"},(0,r.default)("div",{id:"splashName"},"Delib"),(0,r.default)("div",{id:"splashSubName"},"מחליטים ביחד"),(0,r.default)("div",{class:"anonymousLogin"},(0,r.default)("input",{type:"text",class:"inputLogin",onkeyup:function(t){return o.default.userTempName=t.target.value},placeholder:"רשמו כינוי"}),(0,r.default)("div",{class:"buttons loginButton",onclick:function(){(0,i.anonymousLogin)()}},(0,r.default)("div",null,"התחברות עם משתמש זמני"))),(0,r.default)("p",null," -- או -- "),(0,r.default)("div",{class:"buttons loginButton",onclick:function(){(0,i.googleLogin)()}},(0,r.default)("div",null,"התחברות עם גוגל"),(0,r.default)("img",{src:"img/icons8-google.svg"}))))}}},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".splashPage {\n    background: var(--mainBackground);\n    color: var(--mainColor)\n}\n\n#splashName {\n    font-size: 3rem;\n    margin-bottom: 1rem;\n}\n\n#splashSubName {\n    font-size: 1.6rem;\n    margin-bottom: 2rem;\n}\n\n.loginButton {\n    background: white !important;\n    color: red !important;\n    display: flex;\n    position: relative;\n}\n\n.loginButton>div {\n    margin: auto;\n    font-size: 1.2rem;\n}\n\n.anonymousLogin {\n    width: fit-content;\n    margin: 40px auto;\n}\n\n.inputLogin {\n    background: #ffffff00;\n    border: 1px solid transparent;\n    border-bottom: 1px solid wheat;\n    color: white;\n    font-size: 1.5rem;\n    font-family: 'Varela Round', sans-serif;\n}\n\n.inputLogin::placeholder {\n    color: white;\n}",""])},function(t,e,n){"use strict";var r=a(n(0));n(42);var o=a(n(1)),i=n(15);function a(t){return t&&t.__esModule?t:{default:t}}t.exports={view:function(t){return(0,r.default)("div",{class:"page splashPage",href:"/delib",oncreate:r.default.route.link},(0,r.default)("div",{class:"centerElement"},(0,r.default)("div",{id:"splashName"},"Delib"),(0,r.default)("div",{id:"splashSubName"},(0,r.default)("p",null,"פעולה זאת דורשת הרשמה"),(0,r.default)("p",null,"האם תרצו להרשם עם גוגל?")),(0,r.default)("div",{class:"buttons loginButton",onclick:function(){(0,i.googleLogin)()}},(0,r.default)("div",null,"התחברות עם גוגל"),(0,r.default)("img",{src:"img/icons8-google.svg"})),(0,r.default)("p",null,"-- או --"),(0,r.default)("div",{class:"buttons loginButton",onclick:function(){r.default.route.set(o.default.lastPage||"/login")}},(0,r.default)("div",null,"חזרה לדף הקודם"))))}}},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),o=n(15);t.exports={view:function(t){return(0,r.default)("input",{type:"button",onclick:o.logout},o.logout)}}},function(t,e,n){"use strict";var r=d(n(0));d(n(81)),d(n(112)),d(n(113)),d(n(173));n(175);var o=d(n(177)),i=d(n(18)),a=d(n(26)),u=n(6),s=n(190),l=n(7),c=n(4),f=d(n(1));function d(t){return t&&t.__esModule?t:{default:t}}t.exports={oninit:function(t){f.default.lastPage="/groups",sessionStorage.setItem("lastPage",f.default.lastPage),(0,s.restrictedPage)("/groups")&&(0,u.getUserGroups)("on",f.default.user.uid)},oncreate:function(t){(0,c.setWrapperHeight)("headerContainer","groupsWrapper")},onupdate:function(t){(0,c.setWrapperHeight)("headerContainer","groupsWrapper")},onremove:function(t){(0,u.getUserGroups)("off",f.default.user.uid)},view:function(t){return(0,r.default)("div",null,(0,r.default)(i.default,{title:"הקבוצות שלי",topic:"דליב",upLevelUrl:!1}),(0,r.default)("div",{class:"groupsWrapper",id:"groupsWrapper"},f.default.userGroups.map(function(t,e){return(0,r.default)(o.default,{route:"/group/",title:t.title,description:t.description,id:t.id,key:e})})),(0,r.default)("div",{class:"fav",onclick:function(){(0,l.createGroup)(f.default.user.uid,"some title","some description")}},(0,r.default)("div",null,"+")),(0,r.default)(a.default,null))}}},function(t,e,n){var r=n(82);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){var r=n(29),o=n(20),i=n(50),a=n(13),u=n(33);t.exports=function(t,e,n,s){if(!a(t))return t;for(var l=-1,c=(e=o(e,t)).length,f=c-1,d=t;null!=d&&++l<c;){var p=u(e[l]),h=n;if(l!=f){var v=d[p];void 0===(h=s?s(v,p,d):void 0)&&(h=a(v)?v:i(e[l+1])?[]:{})}r(d,p,h),d=d[p]}return t}},function(t,e,n){var r=n(45),o=n(86),i=n(13),a=n(47),u=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,f=l.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?d:u).test(a(t))}},function(t,e,n){var r=n(16),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(87),o=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(5)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(9),o=n(30),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n(91)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)}),e});t.exports=i},function(t,e,n){var r=n(92),o=500;t.exports=function(t){var e=r(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var r=n(49),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(94),o=n(22),i=n(31);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(95),o=n(96),i=n(97),a=n(98),u=n(99);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,n){var r=n(21);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(21),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(21),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(21),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(23),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(23);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(23);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(23);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(24);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(24);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(24);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(24);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(111);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(16),o=n(32),i=n(9),a=n(30),u=1/0,s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-u?"-0":n}},function(t,e,n){var r=n(51);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t,e,n){var r=n(32),o=n(114),i=n(156),a=n(20),u=n(17),s=n(160),l=n(162),c=n(62),f=l(function(t,e){var n={};if(null==t)return n;var l=!1;e=r(e,function(e){return e=a(e,t),l||(l=e.length>1),e}),u(t,c(t),n),l&&(n=o(n,7,s));for(var f=e.length;f--;)i(n,e[f]);return n});t.exports=f},function(t,e,n){var r=n(115),o=n(121),i=n(29),a=n(122),u=n(130),s=n(133),l=n(134),c=n(135),f=n(137),d=n(138),p=n(62),h=n(40),v=n(143),g=n(144),m=n(150),b=n(9),y=n(54),x=n(152),w=n(13),_=n(154),I=n(25),k=1,S=2,j=4,T="[object Arguments]",E="[object Function]",A="[object GeneratorFunction]",O="[object Object]",C={};C[T]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[O]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[E]=C["[object WeakMap]"]=!1,t.exports=function t(e,n,q,M,D,B){var P,z=n&k,L=n&S,Q=n&j;if(q&&(P=D?q(e,M,D,B):q(e)),void 0!==P)return P;if(!w(e))return e;var N=b(e);if(N){if(P=v(e),!z)return l(e,P)}else{var R=h(e),U=R==E||R==A;if(y(e))return s(e,z);if(R==O||R==T||U&&!D){if(P=L||U?{}:m(e),!z)return L?f(e,u(P,e)):c(e,a(P,e))}else{if(!C[R])return D?e:{};P=g(e,R,z)}}B||(B=new r);var F=B.get(e);if(F)return F;B.set(e,P),_(e)?e.forEach(function(r){P.add(t(r,n,q,r,e,B))}):x(e)&&e.forEach(function(r,o){P.set(o,t(r,n,q,o,e,B))});var W=Q?L?p:d:L?keysIn:I,H=N?void 0:W(e);return o(H||e,function(r,o){H&&(r=e[o=r]),i(P,o,t(r,n,q,o,e,B))}),P}},function(t,e,n){var r=n(22),o=n(116),i=n(117),a=n(118),u=n(119),s=n(120);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(22);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(22),o=n(31),i=n(49),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var u=n.__data__;if(!o||u.length<a-1)return u.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(u)}return n.set(t,e),this.size=n.size,this}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(17),o=n(25);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(12),o=n(10),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(127),o=n(34),i=n(35),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},function(t,e,n){var r=n(12),o=n(55),i=n(10),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(36),o=n(129),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(56)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(17),o=n(58);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(13),o=n(36),i=n(132),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var u in t)("constructor"!=u||!e&&a.call(t,u))&&n.push(u);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){(function(t){var r=n(5),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(19)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(17),o=n(37);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e,n){var r=n(17),o=n(60);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(61),o=n(37),i=n(25);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(8)(n(5),"DataView");t.exports=r},function(t,e,n){var r=n(8)(n(5),"Promise");t.exports=r},function(t,e,n){var r=n(8)(n(5),"Set");t.exports=r},function(t,e,n){var r=n(8)(n(5),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(41),o=n(146),i=n(147),a=n(148),u=n(149),s="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",v="[object Symbol]",g="[object ArrayBuffer]",m="[object DataView]",b="[object Float32Array]",y="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",I="[object Uint8Array]",k="[object Uint8ClampedArray]",S="[object Uint16Array]",j="[object Uint32Array]";t.exports=function(t,e,n){var T=t.constructor;switch(e){case g:return r(t);case s:case l:return new T(+t);case m:return o(t,n);case b:case y:case x:case w:case _:case I:case k:case S:case j:return u(t,n);case c:return new T;case f:case h:return new T(t);case d:return i(t);case p:return new T;case v:return a(t)}}},function(t,e,n){var r=n(5).Uint8Array;t.exports=r},function(t,e,n){var r=n(41);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(16),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e,n){var r=n(41);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(151),o=n(39),i=n(36);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(13),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var r=n(153),o=n(34),i=n(35),a=i&&i.isMap,u=a?o(a):r;t.exports=u},function(t,e,n){var r=n(40),o=n(10),i="[object Map]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e,n){var r=n(155),o=n(34),i=n(35),a=i&&i.isSet,u=a?o(a):r;t.exports=u},function(t,e,n){var r=n(40),o=n(10),i="[object Set]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e,n){var r=n(20),o=n(157),i=n(158),a=n(33);t.exports=function(t,e){return e=r(e,t),null==(t=i(t,e))||delete t[a(o(e))]}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(51),o=n(159);t.exports=function(t,e){return e.length<2?t:r(t,o(e,0,-1))}},function(t,e){t.exports=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},function(t,e,n){var r=n(161);t.exports=function(t){return r(t)?void 0:t}},function(t,e,n){var r=n(12),o=n(39),i=n(10),a="[object Object]",u=Function.prototype,s=Object.prototype,l=u.toString,c=s.hasOwnProperty,f=l.call(Object);t.exports=function(t){if(!i(t)||r(t)!=a)return!1;var e=o(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}},function(t,e,n){var r=n(163),o=n(166),i=n(168);t.exports=function(t){return i(o(t,void 0,r),t+"")}},function(t,e,n){var r=n(164);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var r=n(38),o=n(165);t.exports=function t(e,n,i,a,u){var s=-1,l=e.length;for(i||(i=o),u||(u=[]);++s<l;){var c=e[s];n>0&&i(c)?n>1?t(c,n-1,i,a,u):r(u,c):a||(u[u.length]=c)}return u}},function(t,e,n){var r=n(16),o=n(53),i=n(9),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(167),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a<u;)s[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=n(s),r(t,this,l)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(169),o=n(172)(r);t.exports=o},function(t,e,n){var r=n(170),o=n(44),i=n(171),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){t.exports=function(t){return t}},function(t,e){var n=800,r=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var a=o(),u=r-(a-i);if(i=a,u>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(174),o=n(25);t.exports=function(t){return null==t?[]:r(t,o(t))}},function(t,e,n){var r=n(32);t.exports=function(t,e){return r(e,function(e){return t[e]})}},function(t,e,n){var r=n(176);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".groupsWrapper {\n  display: grid;\n  grid-template-columns: auto auto auto;\n  background: #e8e8e8;\n}\n\n@media screen and (max-width: 1000px) {\n  .groupsWrapper {\n    grid-template-columns: auto auto;\n  }\n}\n\n@media screen and (max-width: 400px) {\n  .groupsWrapper {\n    grid-template-columns: auto;\n  }\n}",""])},function(t,e,n){"use strict";var r=o(n(0));n(178);o(n(1));function o(t){return t&&t.__esModule?t:{default:t}}t.exports={view:function(t){return(0,r.default)("div",{class:"card groupCard",onclick:function(){r.default.route.set(t.attrs.route+t.attrs.id)}},(0,r.default)("div",{class:"cardTitle"},t.attrs.title),(0,r.default)("div",{class:"cardDescription"},t.attrs.description))}}},function(t,e,n){var r=n(179);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".groupCard {\n    user-select: none;\n    cursor: pointer;\n}\n\n.questionOwned{\n    background: #ef4a497d;\n}",""])},function(t,e,n){var r=n(181);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,"header {\n    position: fixed;\n    top: 0px;\n    left: 0px;\n    width: 100%;\n    background: var(--mainBackground);\n    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.5);\n    padding: 10px 0px;\n    color: var(--mainColor);\n    text-align: center;\n    font-size: 1.3rem;\n    font-weight: 600;\n    z-index: 4;\n}\n\n.headerContainer {\n    display: flex;\n    justify-content: space-between;\n}\n\n.headerTitle {\n    width: 100%;\n}\n\n.headerMessage {\n    padding: 0px 0px 0px 8px;\n}\n\n.headerMesaggeCounter {\n    position: absolute;\n    top: 4px;\n    left: 45px;\n    transition: 0.3s all;\n}\n\n.headerBack {\n    padding-left: 8px;\n    padding-right: 12px;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n}\n\n.headerEmptyBack {\n    width: 40px;\n}\n\n.headerSetFeed {\n    margin-left: 5px;\n}\n\n.headerHamburger {\n    padding: 0px 14px;\n}",""])},function(t,e,n){"use strict";var r=a(n(0));n(183);var o=a(n(1)),i=n(15);function a(t){return t&&t.__esModule?t:{default:t}}t.exports={view:function(t){return(0,r.default)("aside",{id:"aside"},(0,r.default)("div",{class:"topAside"},(0,r.default)("p",null,o.default.user.displayName||"Anonymous")),(0,r.default)("div",{class:"menuAside"},o.default.user.displayName?(0,r.default)("div",{onclick:function(){(0,i.logout)()}},"התנתקות"):(0,r.default)("div",{onclick:function(){o.default.lastPage=r.default.route.get(),r.default.route.set("/logingoogle")}},"התחברות"),(0,r.default)("div",{onclick:function(t){!function(t,e){t.stopPropagation(),console.log(r.default.route.param()),o.default.editEntity=r.default.route.param(),o.default.editEntity.entity}(t)}},"עריכת הדף"),(0,r.default)("div",null,"המכון לדמוקרטיה דיונית"),(0,r.default)("div",null,"תודות")))}}},function(t,e,n){var r=n(184);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,"aside {\n    width: 250px;\n    height: 80vh;\n    display: flex;\n    flex-direction: column;\n    position: fixed;\n    top: 56px;\n    right: -260px;\n    z-index: 3;\n    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.5);\n    transition: all 0.5s;\n}\n\n.topAside {\n    height: 200px;\n    background: var(--mainBackground);\n    display: flex;\n    flex-direction: column;\n    justify-content: flex-end;\n    font-size: 2rem;\n}\n\n.topAside>p{\n    padding-right: 10px;\n}\n\n.menuAside {\n    height: 100%;\n    background: wheat;\n}\n\n.menuAside>div {\n    border-bottom: 1px solid #c3c3c3;\n    padding: 10px;\n    cursor: pointer;\n}\n\n\n",""])},function(t,e,n){var r=n(186);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".feedBox {\n    position: fixed;\n    top: 0%;\n    left: 0%;\n    width: 100%;\n    height: 100%;\n    margin: auto;\n    z-index: 100;\n    background: rgba(0, 0, 0, 0.377);\n}\n\n.hideFeedBox{\n    display: none;\n}\n\n@keyframes hideFeedBox {\n    from {\n        transform: scale(1);\n        top: 0%;\n        left: 0%;\n    }\n    to {\n        transform: scale(0);\n        top: -47%;\n        left: -47%;\n    }\n}\n\n/* .showFeedBox {\n    animation-name: showFeedBox;\n    animation-duration: 0.3s;\n    animation-fill-mode: forwards;\n} */\n\n@keyframes showFeedBox {\n    from {\n        transform: scale(0);\n        top: -47%;\n        left: -47%;\n    }\n    to {\n        transform: scale(1);\n        top: 0%;\n        left: 0%;\n    }\n}\n\n.feedWrapper {\n    max-width: 550px;\n    margin: 65px auto;\n    background: white;\n    padding: 10px;\n    border-radius: 10px;\n    box-shadow: 24px 24px 48px rgba(0, 0, 0, 0.507);\n    overflow-y: auto;\n    max-height: 80vh;\n}",""])},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));n(188);var o=n(4);t.exports={view:function(t){return(0,r.default)("div",{class:"feedContent",onclick:function(){r.default.route.set(function(t){var e=t.split("--");return"messages"==e[e.length-1]?"/optionchat/"+e[1]+"/"+e[3]+"/"+e[5]+"/"+e[7]:"questions"==e[e.length-1]?"/question/"+e[1]+"/"+e[3]:"groups"==e[e.length-1]&&"/group/"+e[1]}(t.attrs.data.path))}},(0,r.default)("div",{class:"feedContentMessage"},t.attrs.data.message),(0,r.default)("div",{class:"feedContentName"},(0,o.msToTime)(t.attrs.data.timeSeconds)," ",t.attrs.data.creatorName," - ",t.attrs.data.groupName," / ",t.attrs.data.questionName,"  / ",t.attrs.data.optionName))}}},function(t,e,n){var r=n(189);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".feedContent {\n    width: 100%;\n    border: 1px solid #80808024;\n    box-sizing: border-box;\n    padding: 10px;\n}\n\n.feedContentMessage {\n    font-size: 1.2rem;\n    margin-bottom: 6px;\n}\n\n.feedContentName {\n    font-size: 0.75rem;\n    color: gray;\n}",""])},function(t,e,n){"use strict";var r=i(n(0)),o=i(n(1));function i(t){return t&&t.__esModule?t:{default:t}}t.exports={restrictedPage:function(t){return!!o.default.user.hasOwnProperty("isAnonymous")||(function(t){o.default.lastPage=t,r.default.route.set("/login")}(),!1)}}},function(t,e,n){"use strict";var r=f(n(0)),o=n(4),i=f(n(1));n(192);var a=f(n(194)),u=f(n(18)),s=f(n(26)),l=(f(n(63)),n(7)),c=n(6);function f(t){return t&&t.__esModule?t:{default:t}}function d(t){t.state.addQuestion=!t.state.addQuestion}t.exports={oninit:function(t){(0,o.setLastPage)(),t.state={add:{title:"",description:""},edit:!0,addQuestion:!1,questions:[],unsubscribe:{},groupName:(0,o.deep_value)(i.default.groups,"["+t.attrs.id+"].title","שם הקבוצה")},(0,c.getQuestions)("on",t.attrs.id,t),t.state.undbGroupDetails=(0,c.getGroupDetails)(t.attrs.id,t)},oncreate:function(t){(0,o.setWrapperHeight)("headerContainer","groupWrapper")},onbeforeupdate:function(t){t.state.groupName=(0,o.deep_value)(i.default.groups,"["+t.attrs.id+"].title","שם הקבוצה"),document.title="דליב - "+t.state.groupName;var e=[];for(var n in i.default.questions[t.attrs.id])e.push(i.default.questions[t.attrs.id][n]);t.state.questions=e},onupdate:function(t){(0,o.setWrapperHeight)("headerContainer","groupWrapper")},onremove:function(t){(0,c.getQuestions)("off",t.attrs.id,t),t.state.undbGroupDetails()},view:function(t){return(0,r.default)("div",{class:"page"},(0,r.default)(u.default,{upLevelUrl:"/groups",topic:"קבוצה",title:t.state.groupName}),(0,r.default)("div",{class:"questionsWrapper",id:"groupWrapper"},t.state.questions.map(function(e,n){return(0,r.default)(a.default,{route:"/question/"+t.attrs.id+"/",question:e,key:n})})),(0,r.default)("div",{class:"fav",onclick:function(){d(t)}},(0,r.default)("div",null,"+")),t.state.addQuestion?(0,r.default)("div",{class:"module"},(0,r.default)("div",{class:"moduleBox"},(0,r.default)("div",{class:"moduleTitle"},"הוספת שאלה"),(0,r.default)("div",{class:"moduleInputs"},(0,r.default)("textarea",{class:"moduleQuestionTitle",autofocus:"true",placeholder:"כותרת השאלה",onkeyup:function(e){t.state.add.title=e.target.value}}),(0,r.default)("textarea",{class:"moduleQuestionTitle moduleDescription",placeholder:"הסבר על השאלה",onkeyup:function(e){t.state.add.description=e.target.value}})),(0,r.default)("div",{class:"moduleButtons"},(0,r.default)("div",{class:"buttons confirm",onclick:function(){t.state.addQuestion=!t.state.addQuestion,(0,l.createQuestion)(t.attrs.id,i.default.user.uid,t.state.add.title,t.state.add.description)}},"הוספה"),(0,r.default)("div",{class:"buttons cancel",onclick:function(){d(t)}},"ביטול")))):(0,r.default)("div",null),(0,r.default)(s.default,null))}}},function(t,e,n){var r=n(193);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".questionsWrapper {\n  display: grid;\n  grid-template-columns: auto auto auto;\n  padding: 100px 30px 100px 30px;\n  background: #e8e8e8;\n}\n\n@media screen and (max-width: 1000px) {\n  .questionsWrapper {\n    grid-template-columns: auto auto;\n  }\n}\n\n@media screen and (max-width: 400px) {\n  .questionsWrapper {\n    grid-template-columns: auto;\n    padding: 100px 10px 100px 10px;\n  }\n}\n",""])},function(t,e,n){"use strict";var r=i(n(0));n(195);var o=i(n(1));function i(t){return t&&t.__esModule?t:{default:t}}function a(t){t.attrs.hasOwnProperty("question")&&t.attrs.question.hasOwnProperty("creatorId")&&t.attrs.question.creatorId==o.default.user.uid&&(t.state.owned=!0)}t.exports={oninit:function(t){t.state={owned:!1},a(t)},onbeforeupdate:function(t){a(t)},view:function(t){return(0,r.default)("div",{class:t.state.owned?"card groupCard questionOwned":"card groupCard",onclick:function(){r.default.route.set(t.attrs.route+t.attrs.question.id)}},(0,r.default)("div",{class:"cardTitle"},t.attrs.question.title),(0,r.default)("div",{class:"cardDescription"},t.attrs.question.description))}}},function(t,e,n){var r=n(196);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".groupCard {\n    user-select: none;\n    cursor: pointer;\n}\n\n.questionOwned{\n    background: #ef4a497d;\n}",""])},function(t,e,n){"use strict";var r=h(n(0));n(198);var o=h(n(18)),i=h(n(26)),a=h(n(64)),u=h(n(65)),s=h(n(209)),l=h(n(66)),c=h(n(1)),f=h(n(27)),d=n(6),p=n(4);function h(t){return t&&t.__esModule?t:{default:t}}t.exports={oninit:function(t){t.state={title:(0,p.deep_value)(c.default.questions,t.attrs.groupId+"."+t.attrs.questionId+".title","כותרת השאלה"),addOption:!1,callDB:!0,subItems:{options:[],subQuestions:[],goals:[],values:[]},subQuestions:[],add:{title:"",description:""},orderBy:"top",options:{},scrollY:!1,subAnswers:{},subAnswersUnsb:{},showModal:{isShow:!1,which:"subQuestion"},unsbscribe:{subQuestions:{}},authorized:{anonymous:!1,public:!1,registered:!1}},c.default.lastPage="/question/"+t.attrs.groupId+"/"+t.attrs.questionId,sessionStorage.setItem("lastPage",c.default.lastPage),void 0==c.default.user.uid?(r.default.route.set("/login"),t.state.callDB=!1):t.state.callDB=!0,t.state.unsubscribeQuestionDetails=(0,d.getQuestionDetails)(t.attrs.groupId,t.attrs.questionId,t)},oncreate:function(t){(0,p.setWrapperHeight)("questionHeadr","questionWrapperAll"),t.state.callDB&&(t.state.unsbscribe.subQuestions=(0,d.getSubQuestions)(t.attrs.groupId,t.attrs.questionId,t,!0))},onbeforeupdate:function(t){t.state.title=(0,p.deep_value)(c.default.questions,t.attrs.groupId+"."+t.attrs.questionId+".title","כותרת השאלה"),t.state.description=(0,p.deep_value)(c.default.questions,t.attrs.groupId+"."+t.attrs.questionId+".description","");(0,p.deep_value)(c.default.questions,t.attrs.groupId+"."+t.attrs.questionId+".roles."+c.default.user.uid,!1)},onupdate:function(t){(0,p.setWrapperHeight)("headerContainer","questionWrapperAll")},onremove:function(t){"function"==typeof t.state.unsbscribe.subQuestions&&t.state.unsbscribe.subQuestions()},view:function(t){return(0,r.default)("div",null,(0,r.default)("div",{class:"headerContainer",id:"questionHeadr",onclick:function(){r.default.route.set("/group/"+t.attrs.groupId)}},(0,r.default)(o.default,{topic:"שאלה",title:t.state.title,upLevelUrl:"/group/"+t.attrs.groupId})),(0,r.default)("div",{class:"wrapperAll",id:"questionWrapperAll"},(0,r.default)("div",{class:"wrapper"},(0,r.default)(s.default,{title:"הסבר על השאלה:",content:t.state.description,groupId:t.attrs.groupId,questionId:t.attrs.questionId,creatorId:t.state.creatorId})),t.state.subQuestions.map(function(e,n){return(0,r.default)(a.default,{groupId:t.attrs.groupId,questionId:t.attrs.questionId,subQuestionId:e.id,orderBy:e.orderBy,title:e.title,subItems:t.state.subItems.options,parentVnode:t,info:f.default.subItems.options,processType:e.processType,isAlone:!1})})),"כותרת השאלה"===t.state.title?(0,r.default)(u.default,null):(0,r.default)("div",null),(0,r.default)(l.default,{showModal:t.state.showModal.isShow,whichModal:t.state.showModal.which,title:t.state.showModal.title,placeholderTitle:"כותרת",placeholderDescription:"הסבר",vnode:t}),(0,r.default)(i.default,null))}}},function(t,e,n){var r=n(199);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".questionHeadr {\n    background: var(--mainBackground);\n    color: white;\n    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);\n    position: fixed;\n    width: 100%;\n    top: 0px;\n    left: 0px;\n    z-index: 100;\n    user-select: none;\n    cursor: pointer;\n}\n\n.mainHeader {\n    padding: 10px;\n    text-align: center;\n}\n\n.subHeader {\n    background: var(--accent);\n    color: white;\n    padding: 40px;\n    border-radius: 10px;\n    position: fixed;\n    top: 30%;\n    left: 50%;\n    width: 90%;\n    max-width: 550px;\n    z-index: 5;\n    transform: translate(-50%, 0vh);\n    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.582);\n}\n\n.hideOnScroll {\n    animation-name: hideOnScroll;\n    animation-duration: 3s;\n    animation-fill-mode: forwards\n}\n\n@keyframes hideOnScroll {\n    from {\n        transform: scaleY(1) translate(-50%, 0vh);\n    }\n    to {\n        transform: scaleY(0) translate(-50%, -50vh);\n    }\n}\n\n.questionSection {\n    box-shadow: 1px 1px 2px #00000099;\n    border-radius: 10px;\n    padding-bottom: 9px;\n    margin-top: 17px;\n}\n\n\n\n.subQuestions {}\n\n.questionSectionMain {\n    padding: 20px;\n}\n\n.questionSectionAddButton {\n    width: max-content;\n    background: white;\n    border: 1px solid #bfbff9;\n    padding: 2px 9px;\n    box-sizing: 2px 2px;\n    box-shadow: 2px 2px 4px #0000006e;\n    color: #4c4a4a;\n}",""])},function(t,e,n){var r=n(201);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".questionSectionTitle {\n    border-radius: 10px 10px 0px 0px;\n    font-size: var(--textHeaderSize);\n    color: white;\n    background: #4f4dce;\n    padding: 10px;\n    box-sizing: border-box;\n    font-weight: 600;\n    display: flex;\n    justify-content: space-between;\n}",""])},function(t,e,n){"use strict";var r=i(n(0)),o=i(n(203));function i(t){return t&&t.__esModule?t:{default:t}}t.exports={oninit:function(t){},view:function(t){return(0,r.default)("div",null,t.attrs.options.map(function(e,n){return(0,r.default)(o.default,{groupId:t.attrs.groupId,questionId:t.attrs.questionId,subQuestionId:t.attrs.subQuestionId,optionId:e.id,creatorId:e.creatorId,title:e.title,description:e.description,totalVoters:e.totalVoters,consensusPrecentage:e.consensusPrecentage,messagesCounter:e.numberOfMessages,more:e.more,key:e.id})}))}}},function(t,e,n){"use strict";var r=u(n(0));n(204);var o=u(n(1)),i=n(7),a=n(6);function u(t){return t&&t.__esModule?t:{default:t}}function s(t,e){"up"==t?(e.state.up=!e.state.up,e.state.down=!1,e.state.up?(0,i.setLike)(e.attrs.groupId,e.attrs.questionId,e.attrs.subQuestionId,e.attrs.optionId,o.default.user.uid,1):(0,i.setLike)(e.attrs.groupId,e.attrs.questionId,e.attrs.subQuestionId,e.attrs.optionId,o.default.user.uid,0)):(e.state.down=!e.state.down,e.state.up=!1,e.state.down?(0,i.setLike)(e.attrs.groupId,e.attrs.questionId,e.attrs.subQuestionId,e.attrs.optionId,o.default.user.uid,-1):(0,i.setLike)(e.attrs.groupId,e.attrs.questionId,e.attrs.subQuestionId,e.attrs.optionId,o.default.user.uid,0))}t.exports={oninit:function(t){t.state={title:"",description:"",up:!1,down:!1,consensusPrecentage:"",isConNegative:!1,posBefore:{top:0,left:0},isAnimating:!1,oldElement:{offsetTop:0,offsetLeft:0},isEdit:!1,more:t.attrs.more||{text:"",URL:""}},t.state.title=t.attrs.title,t.state.description=t.attrs.description,t.state.likeUnsubscribe=(0,a.getOptionVote)(t.attrs.groupId,t.attrs.questionId,t.attrs.subQuestionId,t.attrs.optionId,o.default.user.uid),o.default.optionsDetails[t.attrs.optionId]={title:t.attrs.title,description:t.attrs.description}},onbeforeupdate:function(t){var e=o.default.optionsVotes[t.attrs.optionId];void 0!==t.attrs.consensusPrecentage&&(t.attrs.consensusPrecentage>=0?(t.state.consensusPrecentage=Math.round(100*t.attrs.consensusPrecentage)+"%",t.state.isConNegative=!1):(t.state.consensusPrecentage=Math.abs(Math.round(100*t.attrs.consensusPrecentage))+"% -",t.state.isConNegative=!0)),e>0?(t.state.up=!0,t.state.down=!1):e<0?(t.state.up=!1,t.state.down=!0):(t.state.up=!1,t.state.down=!1)},onupdate:function(t){var e=t.dom,n=e.offsetTop,r=e.offsetLeft,i={offsetTop:0,offsetLeft:0},a=!1;o.default.optionsLoc.hasOwnProperty(t.attrs.optionId)&&(i=o.default.optionsLoc[t.attrs.optionId],a=o.default.optionsLoc[t.attrs.optionId].toAnimate);var u=n-i.offsetTop,s=r-i.offsetLeft;if((Math.abs(u)>30||Math.abs(s)>30)&&a){var l=document.getElementById(t.attrs.optionId);o.default.optionsLoc[t.attrs.optionId]={offsetTop:0,offsetLeft:0,toAnimate:!1},l.velocity({top:-1*u+"px",left:-1*s+"px"},{duration:0,begin:function(t){}}).velocity({top:"0px",left:"0px"},{duration:750,complete:function(t){}},"easeInOutCubic")}},onremove:function(t){t.state.likeUnsubscribe()},view:function(t){return(0,r.default)("div",{class:"card optionCard",id:t.attrs.optionId,key:t.attrs.key},(0,r.default)("div",{class:"optionMain"},(0,r.default)("div",{class:t.state.up?"optionVote optionSelcetUp":"optionVote",onclick:function(){s("up",t)}},(0,r.default)("img",{class:t.state.up?"voteUp":"",src:"img/icons8-facebook-like-32.png"})),(0,r.default)("div",{class:"optionContent"},(0,r.default)("div",{class:"cardTitle"},t.state.isEdit?(0,r.default)("input",{type:"text",value:t.state.title,onkeyup:function(e){t.state.title=e.target.value}}):(0,r.default)("span",null,t.attrs.title)),(0,r.default)("div",{class:"cardDescription"},t.state.isEdit?(0,r.default)("textarea",{value:t.state.description,onkeyup:function(e){t.state.description=e.target.value}}):(0,r.default)("span",null,t.attrs.description)),t.state.more.text.length>0?(0,r.default)("div",null,t.state.isEdit?(0,r.default)("div",{class:"cardTitle"},(0,r.default)("input",{placeholder:"טקסט",type:"text",oninput:function(e){t.state.more.text=e.target.value},value:t.state.more.text}),(0,r.default)("input",{type:"url",placeholder:"URL",oninput:function(e){t.state.more.URL=e.target.value},value:t.state.more.URL})):(0,r.default)("a",{class:"cardMore",href:t.state.more.URL,target:"_blank"},t.state.more.text)):(0,r.default)("div",null,t.state.isEdit?(0,r.default)("div",{class:"cardTitle"},(0,r.default)("input",{type:"text",oninput:function(e){t.state.more.text=e.target.value},placeholder:"טקסט",value:t.state.more.text}),(0,r.default)("input",{type:"url",oninput:function(e){t.state.more.URL=e.target.value},placeholder:"URL",value:t.state.more.URL})):(0,r.default)("div",null))),(0,r.default)("div",{class:t.state.down?"optionVote optionSelcetDown":"optionVote",onclick:function(){s("down",t)}},(0,r.default)("img",{class:t.state.down?"voteDown":"",src:"img/icons8-thumbs-down-32.png"}))),(0,r.default)("div",{class:"optionInfo"},(0,r.default)("div",{class:"optionLikes"},(0,r.default)("img",{src:"img/icons8-user-groups-24.png"}),t.attrs.totalVoters),(0,r.default)("div",{class:t.state.isConNegative?"optionLikes negative":"optionLikes"},(0,r.default)("img",{src:"img/icons8-thumbs-up-down-24.png"}),t.state.consensusPrecentage),(0,r.default)("div",{class:"optionChat",onclick:function(){r.default.route.set("/optionchat/"+t.attrs.groupId+"/"+t.attrs.questionId+"/"+t.attrs.subQuestionId+"/"+t.attrs.optionId)}},(0,r.default)("img",{src:"img/icons8-chat-room-24.png"}),isNaN(t.attrs.messagesCounter)?0:t.attrs.messagesCounter),(0,r.default)("div",{class:"optionChat",onclick:function(){t.state.isEdit=!t.state.isEdit}},t.attrs.creatorId==o.default.user.uid?(0,r.default)("div",null,t.state.isEdit?(0,r.default)("div",{class:"buttons editOptionBtn",onclick:function(){(0,i.updateOption)(t)}},"אישור"):(0,r.default)("img",{src:"img/icons8-pencil-24.png"})):(0,r.default)("div",null))))}}},function(t,e,n){var r=n(205);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".optionCard {\n    display: flex;\n    flex-direction: column;\n    justify-content: space-between;\n    position: relative;\n    top: 0px;\n    left: 0px;\n    animation-name: show;\n    animation-duration: 0.3s;\n    \n}\n\n@keyframes show {\n    from {\n        opacity: 0;\n    }\n    to {\n        opacity: 1;\n    }\n}\n\n.cardTitle>input {\n    width: 95%;\n    box-shadow: inset -2px 2px 4px #00000077;\n    border-radius: 5px;\n    padding: 2px;\n    border: none;\n}\n\n.cardDescription {\n    height: 75px;\n}\n\n.cardDescription>textarea {\n    width: 95%;\n    height: 5rem;\n    resize: none;\n    box-shadow: inset -2px 2px 4px #00000077;\n    border-radius: 5px;\n    padding: 2px;\n    border: none;\n}\n\n.optionMain {\n    display: flex;\n    justify-content: space-between;\n    height: 100%;\n}\n\n.optionContent {\n    width: 54%;\n    padding: 5px;\n}\n\n.optionVote {\n    background: rgba(128, 128, 128, 0.14);\n    border-radius: 5px;\n    padding: 6px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.optionVote:active {\n    background: rgba(128, 128, 128, 0.3);\n}\n\n.optionSelcetUp {\n    background: rgba(21, 128, 26, 0.3);\n}\n\n.optionSelcetDown {\n    background: rgba(124, 30, 30, 0.3);\n}\n\n.voteUp {\n    animation-name: voteUp;\n    animation-duration: 0.3s;\n    animation-direction: alternate-reverse;\n    animation-iteration-count: 3;\n    animation-timing-function: ease-in-out;\n}\n\n@keyframes voteUp {\n    from {\n        transform: rotate(0deg)\n    }\n    to {\n        transform: rotate(-35deg)\n    }\n}\n\n.voteDown {\n    animation-name: voteDown;\n    animation-duration: 0.3s;\n    animation-direction: alternate-reverse;\n    animation-iteration-count: 3;\n    animation-timing-function: ease-in-out;\n}\n\n@keyframes voteDown {\n    from {\n        transform: rotate(0deg)\n    }\n    to {\n        transform: rotate(35deg)\n    }\n}\n\n.optionInfo {\n    display: flex;\n    justify-content: space-around;\n    color: var(--textRegular);\n    margin-top: 8px;\n    border-top: 0.5px solid #d2d2d2;\n}\n\n.optionInfo>div {\n    display: flex;\n    align-items: center;\n    padding: 2px 20px;\n}\n\n.optionChat {\n    cursor: pointer;\n    user-select: none;\n}\n\n.editOptionBtn {\n    margin: 0px !important;\n    padding: 5px 7px !important;\n    color: white !important;\n}",""])},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));t.exports={view:function(t){return(0,r.default)("div",null,"Votes work!")}}},function(t,e,n){var r=n(208);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".spinner {\n    position: fixed;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n    z-index: 100;\n}\n\n@keyframes lds-wedges {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(360deg);\n        transform: rotate(360deg);\n    }\n}\n\n@-webkit-keyframes lds-wedges {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(360deg);\n        transform: rotate(360deg);\n    }\n}\n\n.lds-wedges {\n    position: relative;\n}\n\n.lds-wedges>div>div {\n    -webkit-transform-origin: 100px 100px;\n    transform-origin: 100px 100px;\n    -webkit-animation: lds-wedges 3s linear infinite;\n    animation: lds-wedges 3s linear infinite;\n    opacity: 0.8;\n}\n\n.lds-wedges>div>div>div {\n    position: absolute;\n    left: 30px;\n    top: 30px;\n    width: 70px;\n    height: 70px;\n    border-radius: 70px 0 0 0;\n    -webkit-transform-origin: 100px 100px;\n    transform-origin: 100px 100px;\n}\n\n.lds-wedges>div div:nth-child(1)>div {\n    background: #f08d43;\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n}\n\n.lds-wedges>div div:nth-child(1) {\n    -webkit-animation-duration: 0.75s;\n    animation-duration: 0.75s;\n}\n\n.lds-wedges>div div:nth-child(2)>div {\n    background: #f6eddc;\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n}\n\n.lds-wedges>div div:nth-child(2) {\n    -webkit-animation-duration: 1s;\n    animation-duration: 1s;\n}\n\n.lds-wedges>div div:nth-child(3)>div {\n    background: #f9d887;\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n}\n\n.lds-wedges>div div:nth-child(3) {\n    -webkit-animation-duration: 1.5s;\n    animation-duration: 1.5s;\n}\n\n.lds-wedges>div div:nth-child(4)>div {\n    background: #ab2f0c;\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n}\n\n.lds-wedges>div div:nth-child(4) {\n    -webkit-animation-duration: 3s;\n    animation-duration: 3s;\n}\n\n.lds-wedges {\n    width: 200px !important;\n    height: 200px !important;\n    -webkit-transform: translate(-100px, -100px) scale(1) translate(100px, 100px);\n    transform: translate(-100px, -100px) scale(1) translate(100px, 100px);\n}",""])},function(t,e,n){"use strict";var r=i(n(0)),o=i(n(1));function i(t){return t&&t.__esModule?t:{default:t}}n(210),t.exports={view:function(t){return(0,r.default)("div",{class:"questionSection"},(0,r.default)("div",{class:"questionSectionTitle questions"},"הסבר על השאלה"),(0,r.default)("div",{class:"questionSectionMain"},t.attrs.content),(0,r.default)("div",{class:"questionSectionFooter"},t.attrs.creatorId==(o.default.user.hasOwnProperty("uid")?o.default.user.uid:"none")?(0,r.default)("div",{class:"buttons questionSectionAddButton",onclick:function(){r.default.route.set("/questionEdit/"+t.attrs.groupId+"/"+t.attrs.questionId)}},"עריכת שאלה"):(0,r.default)("div",null)))}}},function(t,e,n){var r=n(211);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,"",""])},function(t,e,n){var r=n(213);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".module {\n    position: fixed;\n    width: 100%;\n    height: 100%;\n    top: 0px;\n    left: 0px;\n    z-index: 100;\n    background: rgba(128, 128, 128, 0.61);\n}\n\n.moduleBox {\n    max-width: 500px;\n    margin: auto;\n    position: relative;\n    top: 20%;\n    background: white;\n    box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.459);\n    border-radius: 10px;\n    padding: 10px;\n}\n\n.moduleTitle {\n    text-align: center;\n    width: 100%;\n    color: var(--textHeader);\n    font-size: var(--textHeaderSize);\n    font-weight: var(--textHeaderWeight);\n}\n\n.moduleInputs {\n    display: flex;\n    flex-direction: column;\n}\n\n.moduleInputs>* {\n    margin-bottom: 10px;\n    resize: none;\n}\n\n.moduleDescription {\n    height: 4rem;\n}\n\n.moduleQuestionTitle {\n    border-bottom: 2px solid #f97676;\n    border-top: 0px;\n    border-left: 0px;\n    border-right: 0px;\n    font-family: 'Varela Round', sans-serif;\n    opacity: 0.75;\n}\n\n.moduleButtons {\n    width: 100%;\n    display: flex;\n    justify-content: center;\n}\n\n.modalMoreInfo{\n    \n    display: flex;\n    flex-direction: column;\n}",""])},function(t,e,n){"use strict";var r=f(n(0)),o=f(n(215)),i=f(n(1)),a=n(6),u=n(7),s=n(4);n(216);var l=f(n(18)),c=f(n(218));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e,n){n.state[t]=e}function h(t,e){e.state.authorized[t.target.value]=t.target.checked,(0,u.updateQuestion)(e.attrs.groupId,e.attrs.questionId,e.state.title,e.state.description,e.state.authorized)}t.exports={oninit:function(t){i.default.lastPage="/questionEdit/"+t.attrs.groupId+"/"+t.attrs.questionId,sessionStorage.setItem("lastPage",i.default.lastPage),void 0==i.default.user.uid&&r.default.route.set("/login"),t.state={title:"כותרת שאלה",description:"תאור שאלה",unsbscribe:{details:{},subQuestions:{}},editabels:{title:!1,description:!1},subQuestions:[],subQuestionsArray:[],addSubQuestin:!1,newSubQuestion:"",authorized:{anonymous:!1,public:!1,registered:!1}},t.state.unsbscribe.details=(0,a.getQuestionDetails)(t.attrs.groupId,t.attrs.questionId,t),(0,a.getSubQuestions)(t.attrs.groupId,t.attrs.questionId,t)},oncreate:function(t){(0,s.setWrapperHeight)("headerContainer","questionEditWrapperAll");var e=document.getElementById("sortOptions");o.default.create(e,{animation:150,onEnd:function(e){for(var n=e.target.children,r=0;r<n.length;r++)(0,u.setSubQuestionsOrder)(t.attrs.groupId,t.attrs.questionId,n[r].id,r)}})},onbeforeupdate:function(t){},onupdate:function(t){(0,s.setWrapperHeight)("headerContainer","questionEditWrapperAll")},onremove:function(t){t.state.unsbscribe.details()},view:function(t){var e;return(0,r.default)("div",null,(0,r.default)(l.default,{title:t.state.title,topic:"עריכת שאלה",description:t.state.description,upLevelUrl:"/question/"+t.attrs.groupId+"/"+t.attrs.questionId}),(0,r.default)("div",{class:"wrapperAll",id:"questionEditWrapperAll"},(0,r.default)("h2",null,"מידע כללי"),(0,r.default)("div",{class:"questionIntro"},t.state.editabels.title?(0,r.default)("div",null,(0,r.default)("input",{type:"text",value:t.state.title,class:"questionIntroTitle",onkeyup:function(e){p("title",e.target.value,t)}}),(0,r.default)("div",{class:"buttons questionIntroButton",onclick:function(e){e.stopPropagation(),t.state.editabels.title=!1,(0,u.updateQuestion)(t.attrs.groupId,t.attrs.questionId,t.state.title,t.state.description,t.state.authorized)}},"שמירה")):(0,r.default)("div",{class:"questionIntroTitle",onclick:function(e){e.stopPropagation(),t.state.editabels.title=!0}},(0,r.default)("div",{class:"subTitleEdit"},"כותרת:"),(0,r.default)("div",null," ",t.state.title)),t.state.editabels.description?(0,r.default)("div",null,(0,r.default)("textarea",{value:t.state.description,class:"questionIntroDescription_texterae",onkeyup:function(e){p("description",e.target.value,t)}}),(0,r.default)("div",{class:"buttons questionIntroButton",onclick:function(e){e.stopPropagation(),t.state.editabels.description=!1,(0,u.updateQuestion)(t.attrs.groupId,t.attrs.questionId,t.state.title,t.state.description)}},"שמירה")):(0,r.default)("div",{class:"questionIntroDescription",onclick:function(e){e.stopPropagation(),t.state.editabels.description=!0}},(0,r.default)("div",{class:"subTitleEdit"},"הסבר: "),(0,r.default)("div",null," ",t.state.description))),(0,r.default)("div",{class:"questionAuthorization checkBoxes"},(0,r.default)("h2",null,"מי רשאי להשתתף"),(0,r.default)("label",null,(0,r.default)("input",{type:"checkbox",name:"checkbox",value:"public",checked:t.state.authorized.public,onclick:function(e){h(e,t)}}),"כולם"),(0,r.default)("label",null,(0,r.default)("input",{type:"checkbox",name:"checkbox",value:"anonymous",checked:t.state.authorized.anonymous,onclick:function(e){h(e,t)}}),"אנונימיים"),(0,r.default)("label",null,(0,r.default)("input",{type:"checkbox",name:"checkbox",value:"registered",checked:t.state.authorized.registered,onclick:function(e){h(e,t)}}),"רשומים")),(0,r.default)("h2",null,"תת-שאלות ומטרות"),(0,r.default)("div",{id:"sortOptions"},t.state.subQuestions.map(function(e,n){return(0,r.default)(c.default,{groupId:t.attrs.groupId,questionId:t.attrs.questionId,subQuestionId:e.id,number:n,title:e.title,processType:e.processType||"suggestions",id:e.id})})),t.state.addSubQuestin?(0,r.default)("div",null,(0,r.default)("input",{type:"text",placeholder:"תת שאלה חדשה או תת מטרה חדשה",class:"inputNewSubQuestion",value:t.state.newSubQuestion,onkeyup:function(e){t.state.newSubQuestion=e.target.value}})):(0,r.default)("div",null),t.state.addSubQuestin?(0,r.default)("div",{class:"buttonsWrapper"},(0,r.default)("div",(d(e={class:!0},"class","buttons addSubQuestin"),d(e,"onclick",function(e){e.stopPropagation(),t.state.addSubQuestin=!1,(0,u.createSubQuestion)(t.attrs.groupId,t.attrs.questionId,t.state.newSubQuestion,t.state.subQuestions.length),(0,a.getSubQuestions)(t.attrs.groupId,t.attrs.questionId,t),t.state.newSubQuestion=""}),e),"הוספה"),(0,r.default)("div",{class:"buttons addSubQuestin cancel",onclick:function(e){e.stopPropagation(),t.state.addSubQuestin=!1,t.state.newSubQuestion=""}},"ביטול")):(0,r.default)("div",{class:"buttons addSubQuestin",onclick:function(){t.state.addSubQuestin=!0}},"הוספת תת-שאלה או מטרה")))}}},function(t,e,n){var r,o;
  /**!
   * Sortable
   * @author	RubaXa   <trash@rubaxa.org>
   * @author	owenm    <owen23355@gmail.com>
   * @license MIT
   */
  /**!
   * Sortable
   * @author	RubaXa   <trash@rubaxa.org>
   * @author	owenm    <owen23355@gmail.com>
   * @license MIT
   */
  !function(i){"use strict";void 0===(o="function"==typeof(r=i)?r.call(e,n,e,t):r)||(t.exports=o)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,r,o,i,a,u,s,l,c,f,d,p,h,v,g,m,b,y,x,w,_,I,k,S,j=[],T=!1,E=!1,A=!1,O=[],C=!1,q=!1,M=[],D=/\s+/g,B="Sortable"+(new Date).getTime(),P=window,z=P.document,L=P.parseInt,Q=P.setTimeout,N=P.jQuery||P.Zepto,R=P.Polymer,U={capture:!1,passive:!1},F=!!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),W=!!navigator.userAgent.match(/Edge/i),H=!!navigator.userAgent.match(/firefox/i),$=!(!navigator.userAgent.match(/safari/i)||navigator.userAgent.match(/chrome/i)||navigator.userAgent.match(/android/i)),V=!!navigator.userAgent.match(/iP(ad|od|hone)/i),Y=W||F?"cssFloat":"float",X="draggable"in z.createElement("div"),G=function(){if(F)return!1;var t=z.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),K=!1,Z=!1,J=Math.abs,tt=Math.min,et=Math.max,nt=[],rt=function(t,e){var n=kt(t),r=L(n.width)-L(n.paddingLeft)-L(n.paddingRight)-L(n.borderLeftWidth)-L(n.borderRightWidth),o=Ct(t,0,e),i=Ct(t,1,e),a=o&&kt(o),u=i&&kt(i),s=a&&L(a.marginLeft)+L(a.marginRight)+Ut(o).width,l=u&&L(u.marginLeft)+L(u.marginRight)+Ut(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==u.clear&&u.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[Y]||i&&"none"===n[Y]&&s+l>r)?"vertical":"horizontal"},ot=function(t,e,n,r,o){var i=Ut(n),a="vertical"===r?i.left:i.top,u="vertical"===r?i.right:i.bottom,s="vertical"===r?t:e;return a<s&&s<u},it=function(t,e){if(!t||!t.getBoundingClientRect)return at();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=kt(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n||!n.getBoundingClientRect||n===z.body)return at();if(r||e)return n;r=!0}}}while(n=n.parentNode);return at()},at=function(){return F?z.documentElement:z.scrollingElement},ut=function(t,e,n){t.scrollLeft+=e,t.scrollTop+=n},st=zt(function(t,e,n,r){if(e.scroll){var o=n?n[B]:window,i=e.scrollSensitivity,a=e.scrollSpeed,c=t.clientX,f=t.clientY,d=at(),p=!1;s!==n&&(lt(),u=e.scroll,l=e.scrollFn,!0===u&&(u=it(n,!0),s=u));var h=0,v=u;do{var g,m,y,x,w,_,I,k,S,E=v,A=Ut(E),O=A.top,C=A.bottom,q=A.left,M=A.right,D=A.width,P=A.height;if(g=E.scrollWidth,m=E.scrollHeight,y=kt(E),k=E.scrollLeft,S=E.scrollTop,E===d?(_=D<g&&("auto"===y.overflowX||"scroll"===y.overflowX||"visible"===y.overflowX),I=P<m&&("auto"===y.overflowY||"scroll"===y.overflowY||"visible"===y.overflowY)):(_=D<g&&("auto"===y.overflowX||"scroll"===y.overflowX),I=P<m&&("auto"===y.overflowY||"scroll"===y.overflowY)),x=_&&(J(M-c)<=i&&k+D<g)-(J(q-c)<=i&&!!k),w=I&&(J(C-f)<=i&&S+P<m)-(J(O-f)<=i&&!!S),!j[h])for(var z=0;z<=h;z++)j[z]||(j[z]={});j[h].vx==x&&j[h].vy==w&&j[h].el===E||(j[h].el=E,j[h].vx=x,j[h].vy=w,clearInterval(j[h].pid),!E||0==x&&0==w||(p=!0,j[h].pid=setInterval(function(){r&&0===this.layer&&(bt.active._emulateDragOver(!0),bt.active._onTouchMove(b,!0));var e=j[this.layer].vy?j[this.layer].vy*a:0,n=j[this.layer].vx?j[this.layer].vx*a:0;"function"==typeof l&&"continue"!==l.call(o,n,e,t,b,j[this.layer].el)||ut(j[this.layer].el,n,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&v!==d&&(v=it(v,!1)));T=p}},30),lt=function(){j.forEach(function(t){clearInterval(t.pid)}),j=[]},ct=function(t){function e(t,n){return function(r,o,i,a){var u=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==t&&(n||u))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},r=t.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},ft=function(e){t&&t.parentNode&&t.parentNode[B]&&t.parentNode[B]._computeIsAligned(e)},dt=function(t,e){for(var n=e;!n[B];)n=n.parentNode;return t===n},pt=function(t,e,n){for(var r=t.parentNode;r&&!r[B];)r=r.parentNode;r&&r[B][n](Lt(e,{artificialBubble:!0}))},ht=function(){!G&&n&&kt(n,"display","none")},vt=function(){!G&&n&&kt(n,"display","")};z.addEventListener("click",function(t){if(A)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),A=!1,!1},!0);var gt,mt=function(e){if(e=e.touches?e.touches[0]:e,t){var n=function(t,e){for(var n=0;n<O.length;n++)if(!qt(O[n])){var r=Ut(O[n]),o=O[n][B].options.emptyInsertThreshold,i=t>=r.left-o&&t<=r.right+o,a=e>=r.top-o&&e<=r.bottom+o;if(i&&a)return O[n]}}(e.clientX,e.clientY);n&&n[B]._onDragOver({clientX:e.clientX,clientY:e.clientY,target:n,rootEl:n})}};function bt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, not "+{}.toString.call(t);this.el=t,this.options=e=Lt({},e),t[B]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0,draggable:/[uo]l/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return rt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,touchStartThreshold:L(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==bt.supportPointer&&("PointerEvent"in window||window.navigator&&"msPointerEnabled"in window.navigator),emptyInsertThreshold:5};for(var r in n)!(r in e)&&(e[r]=n[r]);for(var o in ct(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&X,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?wt(t,"pointerdown",this._onTapStart):(wt(t,"mousedown",this._onTapStart),wt(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(wt(t,"dragover",this),wt(t,"dragenter",this)),O.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[])}function yt(t,e,n,r){if(t){n=n||z;do{if(null!=e&&(">"===e[0]&&t.parentNode===n&&Pt(t,e.substring(1))||Pt(t,e))||r&&t===n)return t;if(t===n)break}while(t=xt(t))}return null}function xt(t){return t.host&&t!==z&&t.host.nodeType?t.host:t.parentNode}function wt(t,e,n){t.addEventListener(e,n,U)}function _t(t,e,n){t.removeEventListener(e,n,U)}function It(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(D," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(D," ")}}function kt(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return z.defaultView&&z.defaultView.getComputedStyle?n=z.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function St(t){var e="";do{var n=kt(t,"transform");n&&"none"!==n&&(e=n+" "+e)}while(t=t.parentNode);return window.DOMMatrix?new DOMMatrix(e):window.WebKitCSSMatrix?new WebKitCSSMatrix(e):window.CSSMatrix?new CSSMatrix(e):void 0}function jt(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Tt(t,e,n,o,i,a,u,s,l){var c,f=(t=t||e[B]).options,d="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||F||W?(c=z.createEvent("Event")).initEvent(n,!0,!0):c=new CustomEvent(n,{bubbles:!0,cancelable:!0}),c.to=i||e,c.from=a||e,c.item=o||e,c.clone=r,c.oldIndex=u,c.newIndex=s,c.originalEvent=l,c.pullMode=p?p.lastPutMode:void 0,e&&e.dispatchEvent(c),f[d]&&f[d].call(t,c)}function Et(t,e,n,r,o,i,a,u){var s,l,c=t[B],f=c.options.onMove;return!window.CustomEvent||F||W?(s=z.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=r,s.related=o||e,s.relatedRect=i||Ut(e),s.willInsertAfter=u,s.originalEvent=a,t.dispatchEvent(s),f&&(l=f.call(c,s,a)),l}function At(t){t.draggable=!1}function Ot(){K=!1}function Ct(e,r,o){for(var i=0,a=0,u=e.children;a<u.length;){if("none"!==u[a].style.display&&u[a]!==n&&u[a]!==t&&yt(u[a],o.draggable,e,!1)){if(i===r)return u[a];i++}a++}return null}function qt(t){for(var e=t.lastElementChild;e&&(e===n||"none"===e.style.display);)e=e.previousElementSibling;return e||null}function Mt(e){return Bt(t)<Bt(e)?1:-1}function Dt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Bt(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t&&(t=t.previousElementSibling);)"TEMPLATE"!==t.nodeName.toUpperCase()&&t!==r&&n++;return n}function Pt(t,e){if(t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}function zt(t,e){return function(){if(!gt){var n=arguments,r=this;gt=Q(function(){1===n.length?t.call(r,n[0]):t.apply(r,n),gt=void 0},e)}}}function Lt(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Qt(t){return R&&R.dom?R.dom(t).cloneNode(!0):N?N(t).clone(!0)[0]:t.cloneNode(!0)}function Nt(t){return Q(t,0)}function Rt(t){return clearTimeout(t)}function Ut(t,e,n,r){if(t.getBoundingClientRect||t===P){var o,i,a,u,s,l,c;if(t!==P&&t!==at()?(i=(o=t.getBoundingClientRect()).top,a=o.left,u=o.bottom,s=o.right,l=o.height,c=o.width):(i=0,a=0,u=window.innerHeight,s=window.innerWidth,l=window.innerHeight,c=window.innerWidth),r&&t!==P&&(n=n||t.parentNode,!F))do{if(n&&n.getBoundingClientRect&&"none"!==kt(n,"transform")){var f=n.getBoundingClientRect();i-=f.top+L(kt(n,"border-top-width")),a-=f.left+L(kt(n,"border-left-width")),u=i+o.height,s=a+o.width;break}}while(n=n.parentNode);if(e&&t!==P){var d=St(n||t),p=d&&d.a,h=d&&d.d;d&&(u=(i/=h)+(l/=h),s=(a/=p)+(c/=p))}return{top:i,left:a,bottom:u,right:s,width:c,height:l}}}function Ft(t,e){for(var n=it(t,!0),r=Ut(t)[e];n;){var o=Ut(n)[e];if(!("top"===e||"left"===e?r>=o:r<=o))return n;if(n===at())break;n=it(n,!1)}return!1}function Wt(t){var e=0,n=0,r=at();if(t)do{var o=St(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}return wt(z,"dragover",mt),wt(z,"mousemove",mt),wt(z,"touchmove",mt),bt.prototype={constructor:bt,_computeIsAligned:function(e){var r;if(n&&!G?(ht(),r=z.elementFromPoint(e.clientX,e.clientY),vt()):r=e.target,r=yt(r,this.options.draggable,this.el,!1),!Z&&t&&t.parentNode===this.el){for(var o=this.el.children,i=0;i<o.length;i++)yt(o[i],this.options.draggable,this.el,!1)&&o[i]!==r&&(o[i].sortableMouseAligned=ot(e.clientX,e.clientY,o[i],this._getDirection(e,null),this.options));yt(r,this.options.draggable,this.el,!0)||(x=null),Z=!0,Q(function(){Z=!1},30)}},_getDirection:function(e,n){return"function"==typeof this.options.direction?this.options.direction.call(this,e,n,t):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n,r=this,o=this.el,i=this.options,u=i.preventOnFilter,s=e.type,l=e.touches&&e.touches[0],c=(l||e).target,f=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,d=i.filter;if(function(t){nt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var r=e[n];r.checked&&nt.push(r)}}(o),(!F||e.artificialBubble||dt(o,c))&&!t&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||i.disabled||f.isContentEditable))if(c=yt(c,i.draggable,o,!1)){if(a!==c){if(n=Bt(c,i.draggable),"function"==typeof d){if(d.call(this,e,c,this))return Tt(r,f,"filter",c,o,o,n),void(u&&e.cancelable&&e.preventDefault())}else if(d&&(d=d.split(",").some(function(t){if(t=yt(f,t.trim(),o,!1))return Tt(r,t,"filter",c,o,o,n),!0})))return void(u&&e.cancelable&&e.preventDefault());i.handle&&!yt(f,i.handle,o,!1)||this._prepareDragStart(e,l,c,n)}}else F&&pt(o,e,"_onTapStart")}},_handleAutoScroll:function(e,n){if(t&&this.options.scroll){var r=e.clientX,o=e.clientY,i=z.elementFromPoint(r,o),a=this;if(n||W||F||$){st(e,a.options,i,n);var u=it(i,!0);!T||h&&r===v&&o===g||(h&&clearInterval(h),h=setInterval(function(){if(t){var i=it(z.elementFromPoint(r,o),!0);i!==u&&(u=i,lt(),st(e,a.options,u,n))}},10),v=r,g=o)}else{if(!a.options.bubbleScroll||it(i,!0)===at())return void lt();st(e,a.options,it(i,!1),!1)}}},_prepareDragStart:function(n,r,u,s){var l,f=this,p=f.el,h=f.options,v=p.ownerDocument;u&&!t&&u.parentNode===p&&(o=p,e=(t=u).parentNode,i=t.nextSibling,a=u,d=h.group,c=s,m={target:t,clientX:(r||n).clientX,clientY:(r||n).clientY},this._lastX=(r||n).clientX,this._lastY=(r||n).clientY,t.style["will-change"]="all",t.style.transition="",t.style.transform="",l=function(){f._disableDelayedDragEvents(),!H&&f.nativeDraggable&&(t.draggable=!0),f._triggerDragStart(n,r),Tt(f,o,"choose",t,o,o,c),It(t,h.chosenClass,!0)},h.ignore.split(",").forEach(function(e){jt(t,e.trim(),At)}),h.supportPointer?wt(v,"pointerup",f._onDrop):(wt(v,"mouseup",f._onDrop),wt(v,"touchend",f._onDrop),wt(v,"touchcancel",f._onDrop)),H&&this.nativeDraggable&&(this.options.touchStartThreshold=4,t.draggable=!0),!h.delay||this.nativeDraggable&&(W||F)?l():(wt(v,"mouseup",f._disableDelayedDrag),wt(v,"touchend",f._disableDelayedDrag),wt(v,"touchcancel",f._disableDelayedDrag),wt(v,"mousemove",f._delayedDragTouchMoveHandler),wt(v,"touchmove",f._delayedDragTouchMoveHandler),h.supportPointer&&wt(v,"pointermove",f._delayedDragTouchMoveHandler),f._dragStartTimer=Q(l,h.delay)))},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;et(J(e.clientX-this._lastX),J(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){t&&At(t),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_t(t,"mouseup",this._disableDelayedDrag),_t(t,"touchend",this._disableDelayedDrag),_t(t,"touchcancel",this._disableDelayedDrag),_t(t,"mousemove",this._delayedDragTouchMoveHandler),_t(t,"touchmove",this._delayedDragTouchMoveHandler),_t(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||("touch"==e.pointerType?e:null),!this.nativeDraggable||n?this.options.supportPointer?wt(z,"pointermove",this._onTouchMove):wt(z,n?"touchmove":"mousemove",this._onTouchMove):(wt(t,"dragend",this),wt(o,"dragstart",this._onDragStart));try{z.selection?Nt(function(){z.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(e,n){if(E=!1,o&&t){this.nativeDraggable&&(wt(z,"dragover",this._handleAutoScroll),wt(z,"dragover",ft));var r=this.options;!e&&It(t,r.dragClass,!1),It(t,r.ghostClass,!0),kt(t,"transform",""),bt.active=this,e&&this._appendGhost(),Tt(this,o,"start",t,o,o,c,void 0,n)}else this._nulling()},_emulateDragOver:function(e){if(b){if(this._lastX===b.clientX&&this._lastY===b.clientY&&!e)return;this._lastX=b.clientX,this._lastY=b.clientY,ht();for(var n=z.elementFromPoint(b.clientX,b.clientY),r=n;n&&n.shadowRoot;)r=n=n.shadowRoot.elementFromPoint(b.clientX,b.clientY);if(r)do{if(r[B])if(r[B]._onDragOver({clientX:b.clientX,clientY:b.clientY,target:n,rootEl:r})&&!this.options.dragoverBubble)break;n=r}while(r=r.parentNode);t.parentNode[B]._computeIsAligned(b),vt()}},_onTouchMove:function(t,e){if(m){var r=this.options,o=r.fallbackTolerance,i=r.fallbackOffset,a=t.touches?t.touches[0]:t,u=n&&St(n),s=n&&u&&u.a,l=n&&u&&u.d,c=V&&k&&Wt(k),f=(a.clientX-m.clientX+i.x)/(s||1)+(c?c[0]-M[0]:0)/(s||1),d=(a.clientY-m.clientY+i.y)/(l||1)+(c?c[1]-M[1]:0)/(l||1),p=t.touches?"translate3d("+f+"px,"+d+"px,0)":"translate("+f+"px,"+d+"px)";if(!bt.active&&!E){if(o&&tt(J(a.clientX-this._lastX),J(a.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}!e&&this._handleAutoScroll(a,!0),y=!0,b=a,kt(n,"webkitTransform",p),kt(n,"mozTransform",p),kt(n,"msTransform",p),kt(n,"transform",p),t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!n){var e=this.options.fallbackOnBody?z.body:o,r=Ut(t,!0,e,!V),i=(kt(t),this.options);if(V){for(k=e;"static"===kt(k,"position")&&"none"===kt(k,"transform")&&k!==z;)k=k.parentNode;if(k!==z){var a=Ut(k,!0);r.top-=a.top,r.left-=a.left}k!==z.body&&k!==z.documentElement?(k===z&&(k=at()),r.top+=k.scrollTop,r.left+=k.scrollLeft):k=at(),M=Wt(k)}It(n=t.cloneNode(!0),i.ghostClass,!1),It(n,i.fallbackClass,!0),It(n,i.dragClass,!0),kt(n,"box-sizing","border-box"),kt(n,"margin",0),kt(n,"top",r.top),kt(n,"left",r.left),kt(n,"width",r.width),kt(n,"height",r.height),kt(n,"opacity","0.8"),kt(n,"position",V?"absolute":"fixed"),kt(n,"zIndex","100000"),kt(n,"pointerEvents","none"),e.appendChild(n)}},_onDragStart:function(e,n){var i=this,a=e.dataTransfer,u=i.options;(r=Qt(t)).draggable=!1,r.style["will-change"]="",this._hideClone(),It(r,i.options.chosenClass,!1),i._cloneId=Nt(function(){i.options.removeCloneOnHide||o.insertBefore(r,t),Tt(i,o,"clone",t)}),!n&&It(t,u.dragClass,!0),n?(A=!0,i._loopId=setInterval(i._emulateDragOver,50)):(_t(z,"mouseup",i._onDrop),_t(z,"touchend",i._onDrop),_t(z,"touchcancel",i._onDrop),a&&(a.effectAllowed="move",u.setData&&u.setData.call(i,a,t)),wt(z,"drop",i),kt(t,"transform","translateZ(0)")),E=!0,i._dragStartId=Nt(i._dragStarted.bind(i,n,e)),wt(z,"selectstart",i),$&&kt(z.body,"user-select","none")},_onDragOver:function(n){var r,a,u,s=this.el,l=n.target,f=this.options,h=f.group,v=bt.active,g=d===h,m=f.sort,b=this;if(!K&&(!F||n.rootEl||n.artificialBubble||dt(s,l))){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),y=!0,l=yt(l,f.draggable,s,!0),yt(n.target,null,t,!0)||l.animated)return W(!1);if(l!==t&&(A=!1),v&&!f.disabled&&(g?m||(u=!o.contains(t)):p===this||(this.lastPutMode=d.checkPull(this,v,t,n))&&h.checkPut(this,v,t,n))){var k=this._getDirection(n,l);if(r=Ut(t),u)return this._hideClone(),e=o,i?o.insertBefore(t,i):o.appendChild(t),W(!0);var j=qt(s);if(!j||function(t,e,n){var r=Ut(qt(n)),o="vertical"===e?t.clientY:t.clientX,i="vertical"===e?t.clientX:t.clientY,a="vertical"===e?r.bottom:r.right,u="vertical"===e?r.left:r.top,s="vertical"===e?r.right:r.bottom;return"vertical"===e?i>s+10||i<=s&&o>a&&i>=u:o>a&&i>u||o<=a&&i>s+10}(n,k,s)&&!j.animated){if(j&&s===n.target&&(l=j),l&&(a=Ut(l)),g?v._hideClone():v._showClone(this),!1!==Et(o,s,t,r,l,a,n,!!l))return s.appendChild(t),e=s,S=null,H(),W(!0)}else if(l&&l!==t&&l.parentNode===s){var T,E=0,O=l.sortableMouseAligned,M=t.parentNode!==s,D="vertical"===k?"top":"left",P=Ft(l,"top")||Ft(t,"top"),L=P?P.scrollTop:void 0;if(x!==l&&(_=null,T=Ut(l)[D],C=!1),function(e,n,r){var o=e===t&&S||Ut(e),i=n===t&&S||Ut(n),a="vertical"===r?o.left:o.top,u="vertical"===r?o.right:o.bottom,s="vertical"===r?o.width:o.height,l="vertical"===r?i.left:i.top,c="vertical"===r?i.right:i.bottom,f="vertical"===r?i.width:i.height;return a===l||u===c||a+s/2===l+f/2}(t,l,k)&&O||M||P||f.invertSwap||"insert"===_||"swap"===_?("swap"!==_&&(q=f.invertSwap||M),E=function(e,n,r,o,i,a,u){var s=Ut(n),l="vertical"===r?e.clientY:e.clientX,c="vertical"===r?s.height:s.width,f="vertical"===r?s.top:s.left,d="vertical"===r?s.bottom:s.right,p=Ut(t),h=!1;if(!a)if(u&&I<c*o)if(!C&&(1===w?l>f+c*i/2:l<d-c*i/2)&&(C=!0),C)h=!0;else{"vertical"===r?p.top:p.left,"vertical"===r?p.bottom:p.right;if(1===w?l<f+I:l>d-I)return-1*w}else if(l>f+c*(1-o)/2&&l<d-c*(1-o)/2)return Mt(n);if((h=h||a)&&(l<f+c*i/2||l>d-c*i/2))return l>f+c/2?1:-1;return 0}(n,l,k,f.swapThreshold,null==f.invertedSwapThreshold?f.swapThreshold:f.invertedSwapThreshold,q,x===l),_="swap"):(E=Mt(l),_="insert"),0===E)return W(!1);S=null,x=l,w=E,a=Ut(l);var N=l.nextElementSibling,R=!1,U=Et(o,s,t,r,l,a,n,R=1===E);if(!1!==U)return 1!==U&&-1!==U||(R=1===U),K=!0,Q(Ot,30),g?v._hideClone():v._showClone(this),R&&!N?s.appendChild(t):l.parentNode.insertBefore(t,R?N:l),P&&ut(P,0,L-P.scrollTop),e=t.parentNode,void 0===T||q||(I=J(T-Ut(l)[D])),H(),W(!0)}if(s.contains(t))return W(!1)}return F&&!n.rootEl&&pt(s,n,"_onDragOver"),!1}function W(e){return e&&(g?v._hideClone():v._showClone(b),v&&(It(t,p?p.options.ghostClass:v.options.ghostClass,!1),It(t,f.ghostClass,!0)),p!==b&&b!==bt.active?p=b:b===bt.active&&(p=null),r&&b._animate(r,t),l&&a&&b._animate(a,l)),(l===t&&!t.animated||l===s&&!l.animated)&&(x=null),f.dragoverBubble||n.rootEl||l===z||(b._handleAutoScroll(n),t.parentNode[B]._computeIsAligned(n)),!f.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),!0}function H(){Tt(b,o,"change",l,s,o,c,Bt(t,f.draggable),n)}},_animate:function(e,n){var r=this.options.animation;if(r){var o=Ut(n);if(n===t&&(S=o),1===e.nodeType&&(e=Ut(e)),e.left+e.width/2!==o.left+o.width/2||e.top+e.height/2!==o.top+o.height/2){var i=St(this.el),a=i&&i.a,u=i&&i.d;kt(n,"transition","none"),kt(n,"transform","translate3d("+(e.left-o.left)/(a||1)+"px,"+(e.top-o.top)/(u||1)+"px,0)"),n.offsetWidth,kt(n,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),kt(n,"transform","translate3d(0,0,0)")}"number"==typeof n.animated&&clearTimeout(n.animated),n.animated=Q(function(){kt(n,"transition",""),kt(n,"transform",""),n.animated=!1},r)}},_offUpEvents:function(){var t=this.el.ownerDocument;_t(z,"touchmove",this._onTouchMove),_t(z,"pointermove",this._onTouchMove),_t(t,"mouseup",this._onDrop),_t(t,"touchend",this._onDrop),_t(t,"pointerup",this._onDrop),_t(t,"touchcancel",this._onDrop),_t(z,"selectstart",this)},_onDrop:function(a){var u=this.el,s=this.options;E=!1,T=!1,q=!1,C=!1,clearInterval(this._loopId),clearInterval(h),lt(),clearTimeout(gt),gt=void 0,clearTimeout(this._dragStartTimer),Rt(this._cloneId),Rt(this._dragStartId),_t(z,"mousemove",this._onTouchMove),this.nativeDraggable&&(_t(z,"drop",this),_t(u,"dragstart",this._onDragStart),_t(z,"dragover",this._handleAutoScroll),_t(z,"dragover",ft)),$&&kt(z.body,"user-select",""),this._offUpEvents(),a&&(y&&(a.cancelable&&a.preventDefault(),!s.dropBubble&&a.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),(o===e||p&&"clone"!==p.lastPutMode)&&r&&r.parentNode&&r.parentNode.removeChild(r),t&&(this.nativeDraggable&&_t(t,"dragend",this),At(t),t.style["will-change"]="",It(t,p?p.options.ghostClass:this.options.ghostClass,!1),It(t,this.options.chosenClass,!1),Tt(this,o,"unchoose",t,e,o,c,null,a),o!==e?((f=Bt(t,s.draggable))>=0&&(Tt(null,e,"add",t,e,o,c,f,a),Tt(this,o,"remove",t,e,o,c,f,a),Tt(null,e,"sort",t,e,o,c,f,a),Tt(this,o,"sort",t,e,o,c,f,a)),p&&p.save()):t.nextSibling!==i&&(f=Bt(t,s.draggable))>=0&&(Tt(this,o,"update",t,e,o,c,f,a),Tt(this,o,"sort",t,e,o,c,f,a)),bt.active&&(null!=f&&-1!==f||(f=c),Tt(this,o,"end",t,e,o,c,f,a),this.save()))),this._nulling()},_nulling:function(){o=t=e=n=i=r=a=u=s=j.length=h=v=g=m=b=y=f=c=x=w=S=p=d=bt.active=null,nt.forEach(function(t){t.checked=!0}),nt.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":t&&(this._onDragOver(e),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)yt(t=n[r],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Dt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,r){var o=n.children[r];yt(o,this.options.draggable,n,!1)&&(e[t]=o)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return yt(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];n[t]=e,"group"===t&&ct(n)},destroy:function(){var t=this.el;t[B]=null,_t(t,"mousedown",this._onTapStart),_t(t,"touchstart",this._onTapStart),_t(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_t(t,"dragover",this),_t(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),O.splice(O.indexOf(this.el),1),this.el=t=null},_hideClone:function(){r.cloneHidden||(kt(r,"display","none"),r.cloneHidden=!0,r.parentNode&&this.options.removeCloneOnHide&&r.parentNode.removeChild(r))},_showClone:function(e){"clone"===e.lastPutMode?r.cloneHidden&&(o.contains(t)&&!this.options.group.revertClone?o.insertBefore(r,t):i?o.insertBefore(r,i):o.appendChild(r),this.options.group.revertClone&&this._animate(t,r),kt(r,"display",""),r.cloneHidden=!1):this._hideClone()}},wt(z,"touchmove",function(t){(bt.active||E)&&t.cancelable&&t.preventDefault()}),bt.utils={on:wt,off:_t,css:kt,find:jt,is:function(t,e){return!!yt(t,e,t,!1)},extend:Lt,throttle:zt,closest:yt,toggleClass:It,clone:Qt,index:Bt,nextTick:Nt,cancelNextTick:Rt,detectDirection:rt,getChild:Ct},bt.create=function(t,e){return new bt(t,e)},bt.version="1.8.4",bt})},function(t,e,n){var r=n(217);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".questionIntro {\n    margin: 20px 0px;\n}\n\n.questionIntro>div {\n    background: wheat;\n    margin: 10px 0px;\n    padding: 10px;\n    font-size: 1.3rem;\n    display: flex;\n    box-sizing: border-box;\n}\n\n.questionIntroTitle {\n    font-size: 1.6rem;\n    width: 100%;\n    cursor: pointer;\n    user-select: none;\n}\n\n.questionIntroButton {\n    margin: 0px 10px !important;\n    color: white;\n    height: fit-content;\n}\n\n.questionIntroDescription {\n    font-size: 1.6rem;\n    width: 100%;\n    height: fit-content;\n    cursor: pointer;\n    user-select: none;\n}\n\n.questionIntroDescription_texterae {\n    font-size: 1.3rem;\n    width: 100%;\n    height: 5rem;\n}\n\n.subTitleEdit {\n    font-weight: 700;\n    margin-left: 15px;\n}\n\n.addSubQuestin {\n    color: white;\n    float: left;\n}\n\n.inputNewSubQuestion {\n    width: 100%;\n}\n\n.buttonsWrapper {\n    display: flex;\n    width: 100%;\n    justify-content: flex-end;\n}\n\n.editselectors{\n    margin: 5px;\n    display: grid;\n    grid-template-columns: 100px auto;\n}",""])},function(t,e,n){"use strict";var r=a(n(0));n(219);var o=n(7),i=a(n(27));function a(t){return t&&t.__esModule?t:{default:t}}t.exports={oninit:function(t){t.state={isEdit:!0,title:t.attrs.title}},view:function(t){var e=t.attrs,n=t.state;return(0,r.default)("div",{class:"optionEditBox draggable",key:t.attrs.number,id:t.attrs.id},(0,r.default)("div",{class:"optionEditContent"},(0,r.default)("div",null,(0,r.default)("div",{class:"optionEditContentText"},t.state.isEdit?(0,r.default)("div",null,"כותרת: ",t.state.title):(0,r.default)("input",{type:"text",value:t.state.title,onkeyup:function(e){t.state.title=e.target.value}})),(0,r.default)("div",{class:"optionEditContentSettings"},(0,r.default)("div",{class:"optionEditEdit"},(0,r.default)("div",{class:"buttons optionEditButton",onclick:function(){t.state.isEdit=!t.state.isEdit,t.state.isEdit&&(0,o.updateSubQuestion)(e.groupId,e.questionId,e.subQuestionId,n.title)}},t.state.isEdit?"עריכה":"שמירה")))),(0,r.default)("div",null,(0,r.default)("div",{class:"editselectors"},(0,r.default)("label",{for:t.attrs.id+"select"},"סוג התהליך"),(0,r.default)("select",{id:t.attrs.id+"select",onchange:function(t){(0,o.updateSubQuestionProcess)(e.groupId,e.questionId,e.subQuestionId,t.target.value)}},(0,r.default)("option",{disabled:!0,selected:t.attrs.processType?"false":"true",value:!0},"please select process"),i.default.processesArr.map(function(e,n){return(0,r.default)("option",{value:e,selected:t.attrs.processType===e,key:n,id:t.attrs.id+"select"},e)}))),(0,r.default)("div",{class:"editselectors"},(0,r.default)("label",{for:t.attrs.id+"orderBy"},"סידור האפשרויות"),(0,r.default)("select",{id:t.attrs.id+"orderBy",onchange:function(t){(0,o.updateSubQuestionOrderBy)(e.groupId,e.questionId,e.subQuestionId,t.target.value)}},(0,r.default)("option",{value:"new"},"הכי חדשות קודם"),(0,r.default)("option",{value:"top"},"הכי מוסכמות קודם"),(0,r.default)("option",{value:"message"},"אלו שדיברו עליהן לאחרונה"))))))}}},function(t,e,n){var r=n(220);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".optionEditBox {\n    display: flex;\n    width: 100%;\n    cursor: grab;\n}\n\n.optionEditBox:active {\n    cursor: grabbing;\n}\n\n.optionEditDragable {\n    width: 30px;\n    height: 100%;\n    margin: 10px;\n    background: wheat;\n}\n\n.optionEditContent {\n    width: 100%;\n    background: wheat;\n    margin: 4px;\n    padding: 10px;\n    border-radius: 5px;\n    box-shadow: 1px 1px 2px black;\n}\n\n.optionEditContent>div {\n    margin-bottom: 18px;\n}\n\n.optionEditContentText {\n    margin-bottom: 6px;\n}\n\n.optionEditContentText>div {\n    padding: 3px 0px;\n}\n\n.optionEditContentText>input {\n    width: 100%;\n    box-sizing: border-box;\n}\n\n.optionEditContentSettings {}\n\n.optionEditButton {\n    color: white;\n    padding: 5px 20px;\n}\n\n.optionEditType {}\n\n.optionEditShow {}",""])},function(t,e,n){"use strict";var r=f(n(0)),o=f(n(18)),i=f(n(26));n(222);var a=f(n(1)),u=n(6),s=n(7),l=n(4),c=f(n(11));function f(t){return t&&t.__esModule?t:{default:t}}function d(t){var e=t.attrs;t.state.input.length>0&&((0,s.setMessage)(e.groupId,e.questionId,e.subQuestionId,e.optionId,a.default.user.uid,a.default.user.displayName||"אנונימי",t.state.input,t.state.groupTitle,t.state.questionTitle,t.state.option.title),t.state.input="")}t.exports={oninit:function(t){t.state={groupTitle:"",questionTitle:"",option:{title:""},optionTitle:"",optionDescription:"",messages:[],messagesIds:{}},a.default.lastPage="/optionchat/"+t.attrs.groupId+"/"+t.attrs.questionId+"/"+t.attrs.subQuestionId+"/"+t.attrs.optionId,sessionStorage.setItem("lastPage",a.default.lastPage),t.state.unsbOptionDetails=(0,u.getOptionDetails)(t.attrs.groupId,t.attrs.questionId,t.attrs.subQuestionId,t.attrs.optionId,t),t.state.unsbGetMessages=(0,u.getMessages)(t.attrs.groupId,t.attrs.questionId,t.attrs.subQuestionId,t.attrs.optionId,t)},onupdate:function(t){window.scrollTo(0,document.body.scrollHeight),(0,l.setWrapperHeight)("headerContainer","chatWrapper"),t.attrs.optionId!=t.state.previuos&&(t.state.unsbOptionDetails(),t.state.unsbGetMessages(),function(t){c.default.collection("groups").doc(t.attrs.groupId).collection("questions").doc(t.attrs.questionId).get().then(function(e){t.state.questionTitle=e.data().title}),c.default.collection("groups").doc(t.attrs.groupId).get().then(function(e){t.state.groupTitle=e.data().title})}(t),t.state.unsbOptionDetails=(0,u.getOptionDetails)(t.attrs.groupId,t.attrs.questionId,t.attrs.subQuestionId,t.attrs.optionId,t),t.state.unsbGetMessages=(0,u.getMessages)(t.attrs.groupId,t.attrs.questionId,t.attrs.subQuestionId,t.attrs.optionId,t)),t.state.previuos=t.attrs.optionId},onremove:function(t){t.state.unsbGetMessages()},view:function(t){return(0,r.default)("div",{class:"page"},(0,r.default)(o.default,{groupId:t.attrs.groupId,questionId:t.attrs.questionId,subQuestionId:t.attrs.subQuestionId,optionId:t.attrs.optionId,groupTitle:t.state.groupTitle,questionTitle:t.state.questionTitle,optionTitle:t.state.option.title,topic:"אופציה",title:t.state.option.title,upLevelUrl:"/subquestions/"+t.attrs.groupId+"/"+t.attrs.questionId+"/"+t.attrs.subQuestionId,entityId:t.attrs.optionId}),(0,r.default)("div",{class:"chatWrapper",id:"chatWrapper"},(0,r.default)("div",{class:"chatOptionDescription"},"הסבר: ",t.state.optionDescription),t.state.messages.map(function(t,e){return(0,r.default)("div",{class:t.isNew?"message newMessage":"message"},(0,r.default)("span",null,t.creatorName),": ",t.message)})),(0,r.default)("form",{class:"chatBox"},(0,r.default)("img",{src:"img/icons8-paper-plane-32.png",onclick:function(e){!function(t,e){t.stopPropagation(),d(e)}(e,t)}}),(0,r.default)("textarea",{class:"chatInput",autofocus:!0,onkeyup:function(e){!function(t,e){t.preventDefault(),e.state.input=t.target.value,"Enter"==t.key&&d(e)}(e,t)},value:t.state.input})),(0,r.default)(i.default,null))}}},function(t,e,n){var r=n(223);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".chatOptionHeader {\n    background: var(--subBackground);\n}\n\nheader {\n    cursor: pointer;\n    user-select: none;\n}\n\n.chatWrapper {\n    margin: 20px auto 100px auto;\n}\n\n.chatOptionDescription {\n    background: rgb(236, 236, 236);\n    padding: 20px;\n    border-radius: 10px;\n    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);\n}\n\n.chatBox {\n    position: fixed;\n    bottom: 0px;\n    left: 0px;\n    width: 100% !important;\n    background: var(--subBackground);\n    display: flex;\n    z-index: 3;\n}\n\n.chatBox>* {\n    margin: 10px;\n}\n\n.chatBox>textarea {\n    width: 100%;\n    height: 3.5rem;\n    border: none;\n    border-radius: 10px;\n    resize: none;\n    padding: 8px;\n    outline: none !important;\n    font-family: 'Varela Round', sans-serif;\n    font-size: 11px;\n    /* -moz-box-shadow: inset 0 0 10px #000000;\n    -webkit-box-shadow: inset 0 0 10px #000000; */\n    box-shadow: inset -2px 2px 4px #00000077;\n    background: wheat;\n}\n\n.chatBox>img {\n    height: 32px;\n    width: 32px;\n    margin-right: 20px;\n    padding: 13px;\n    cursor: pointer;\n    user-select: none;\n}\n\n.chatBox>img:active {\n    background: #a74a4a;\n    transform: scale(0.92);\n}\n\n.chatBox>img:hover {\n    background: #c75858;\n}\n\n.message {\n    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);\n    background: rgb(157, 221, 157);\n    padding: 20px;\n    border-radius: 10px;\n    margin-top: 5px;\n}\n\n.message>span {\n    font-size: .8rem;\n    color: gray;\n}\n\n.newMessage {\n    animation-name: newMessage;\n    animation-duration: 0.5s;\n    position: relative;\n}\n\n@keyframes newMessage {\n    from {\n        transform: scale(0, 0);\n        height: 0px;\n        right: -50%;\n    }\n    to {\n        transform: scaleY(1, 1);\n        height: auto;\n        right: 0%;\n    }\n}",""])},function(t,e,n){"use strict";var r=c(n(0)),o=c(n(1)),i=c(n(27)),a=c(n(64)),u=c(n(66)),s=c(n(65)),l=n(6);n(28);function c(t){return t&&t.__esModule?t:{default:t}}var f=function(){};t.exports={oninit:function(t){o.default.lastPage="/subquestions/"+t.attrs.groupId+"/"+t.attrs.questionId+"/"+t.attrs.subQuestionId,sessionStorage.setItem("lastPage",o.default.lastPage),t.state={orderBy:"top",options:[!1],details:{title:!1,options:[]},showModal:{isShow:!1,which:"subQuestion",title:"הוספת אפשרות"}}},oncreate:function(t){f=(0,l.getSubQuestion)(t.attrs.groupId,t.attrs.questionId,t.attrs.subQuestionId)},onbeforeupdate:function(t){o.default.subQuestions.hasOwnProperty(t.attrs.subQuestionId)&&(t.state.details=o.default.subQuestions[t.attrs.subQuestionId])},onremove:function(t){f()},view:function(t){return(0,r.default)("div",null,t.state.details.title?(0,r.default)("div",null,(0,r.default)(a.default,{groupId:t.attrs.groupId,questionId:t.attrs.questionId,subQuestionId:t.attrs.subQuestionId,orderBy:t.state.details.orderBy,title:t.state.details.title,subItems:t.state.details.options,parentVnode:t,info:i.default.subItems.options,processType:t.state.details.processType,isAlone:!0}),(0,r.default)("div",{class:"fav",onclick:function(){t.state.showModal.isShow=!0}},(0,r.default)("div",null,"+")),(0,r.default)("div",{class:"footer",id:"questionFooter"},(0,r.default)("div",{class:"new"==t.state.details.orderBy?"footerButton footerButtonSelected":"footerButton",onclick:function(){t.state.details.orderBy="new"}},"חדשות"),(0,r.default)("div",{class:"top"==t.state.details.orderBy?"footerButton footerButtonSelected":"footerButton",onclick:function(){t.state.details.orderBy="top"}},"הכי מוסכמות"),(0,r.default)("div",{class:"message"==t.state.details.orderBy?"footerButton footerButtonSelected":"footerButton",onclick:function(){t.state.details.orderBy="message"}},"שיחות אחרונות")),(0,r.default)(u.default,{showModal:t.state.showModal.isShow,whichModal:t.state.showModal.which,title:t.state.showModal.title,placeholderTitle:"כותרת",placeholderDescription:"הסבר",vnode:t})):(0,r.default)(s.default,null))}}}]);