@jesec/flood 0.0.0-master.c329c47 → 0.0.0-master.c3caaf8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.html +1 -1
- package/dist/assets/static/css/{118.bc338a685eec2e79b3a6.css → 118.c6c20e54c62c568da946.css} +1 -1
- package/dist/assets/static/css/main.73d37b77c654c42b31b7.css +1 -0
- package/dist/assets/static/js/118.a223057f.chunk.js +1 -0
- package/dist/assets/static/js/128.c755197c.chunk.js +1 -0
- package/dist/assets/static/js/{535.73f35692.chunk.js → 151.e443b43f.chunk.js} +1 -1
- package/dist/assets/static/js/183.cab3cc9d.chunk.js +1 -0
- package/dist/assets/static/js/about.6f3ddfb9.chunk.js +1 -0
- package/dist/assets/static/js/flag0.24c0b6f2.chunk.js +1 -0
- package/dist/assets/static/js/{flag1.8a6ca159.chunk.js → flag1.0e32e9b1.chunk.js} +1 -1
- package/dist/assets/static/js/{flag4.dd2ddc49.chunk.js → flag4.f23e99b4.chunk.js} +0 -0
- package/dist/assets/static/js/flag8.705bff53.chunk.js +1 -0
- package/dist/assets/static/js/{i18n10.9bfeff12.chunk.js → i18n10.adef5404.chunk.js} +1 -1
- package/dist/assets/static/js/{i18n12.626e5741.chunk.js → i18n12.4d985810.chunk.js} +1 -1
- package/dist/assets/static/js/{i18n15.d50322a6.chunk.js → i18n15.b1424e7a.chunk.js} +1 -1
- package/dist/assets/static/js/i18n18.ef288b60.chunk.js +1 -0
- package/dist/assets/static/js/i18n21.0118a1f4.chunk.js +1 -0
- package/dist/assets/static/js/i18n25.22cf04a7.chunk.js +1 -0
- package/dist/assets/static/js/{i18n27.c2c9fafa.chunk.js → i18n27.2130486a.chunk.js} +1 -1
- package/dist/assets/static/js/{i18n5.dd4d08f7.chunk.js → i18n5.bb561158.chunk.js} +1 -1
- package/dist/assets/static/js/main.f8d72555.js +1 -0
- package/dist/index.js +1 -1
- package/node_modules/geoip-country/data/geoip-country.dat +0 -0
- package/node_modules/geoip-country/data/geoip-country6.dat +0 -0
- package/node_modules/geoip-country/package.json +1 -1
- package/node_modules/geoip-country/scripts/updatedb.js +1 -1
- package/package.json +76 -76
- package/dist/assets/static/css/main.cc7cdab8b2d46d0bb950.css +0 -1
- package/dist/assets/static/js/118.c689ccfd.chunk.js +0 -1
- package/dist/assets/static/js/183.a691ac57.chunk.js +0 -1
- package/dist/assets/static/js/90.aa3b0834.chunk.js +0 -1
- package/dist/assets/static/js/about.066630d4.chunk.js +0 -1
- package/dist/assets/static/js/flag0.e30133a9.chunk.js +0 -1
- package/dist/assets/static/js/flag8.81d490c4.chunk.js +0 -1
- package/dist/assets/static/js/i18n18.90827d52.chunk.js +0 -1
- package/dist/assets/static/js/i18n21.a19f244b.chunk.js +0 -1
- package/dist/assets/static/js/i18n25.19d1a68c.chunk.js +0 -1
- package/dist/assets/static/js/main.dc7abe21.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[183],{917:(e,t,r)=>{"use strict";r.d(t,{iv:()=>o});r(7294),r(6898),r(8679);var n=r(9984);function o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.O)(t)}},8195:(e,t,r)=>{"use strict";function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return n[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}r.d(t,{k:()=>n})},5047:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var c=i[s];if(!u(c))return!1;var l=e[c],f=t[c];if(!1===(o=r?r.call(n,l,f,c):void 0)||void 0===o&&l!==f)return!1}return!0}r.d(t,{w:()=>n})},4967:(e,t,r)=>{"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,s(e,t,"get"))}function u(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,s(e,t,"set"),r),r}function s(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}r.d(t,{Am:()=>x,Tb:()=>_,R:()=>j});var c=new WeakMap,l=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c.set(this,{writable:!0,value:void 0}),i(this,"register",(function(e){a(t,c).push(e)})),i(this,"unregister",(function(e){for(var r;-1!==(r=a(t,c).indexOf(e));)a(t,c).splice(r,1)})),i(this,"backendChanged",(function(e){var r,o=n(a(t,c));try{for(o.s();!(r=o.n()).done;){r.value.backendChanged(e)}}catch(e){o.e(e)}finally{o.f()}})),u(this,c,[])};function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,v(e,t,"get"))}function g(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,v(e,t,"set"),r),r}function v(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var y=new WeakMap,b=new WeakMap,m=new WeakMap,w=new WeakMap,O=new WeakMap,S=new WeakMap,D=new WeakMap,k=new WeakMap,T=new WeakMap,I=new WeakMap,E=new WeakMap,C=function e(t,r,n){var o=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),y.set(this,{writable:!0,value:void 0}),b.set(this,{writable:!0,value:void 0}),m.set(this,{writable:!0,value:void 0}),w.set(this,{writable:!0,value:void 0}),O.set(this,{writable:!0,value:void 0}),S.set(this,{writable:!0,value:function(e,t,r){var n,i;if(!r.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(r)));var a=r.backend(e,t,r.options),u=r.id,s=!r.id&&a&&a.constructor;if(s&&(u=a.constructor.name),!u)throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(r),"\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx"));if(s&&console.warn("Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.\n This might be unsupported in the future, please specify 'id' explicitely for every backend."),h(o,m)[u])throw new Error("You must specify a unique 'id' property in your Backend entry:\n ".concat(JSON.stringify(r)," (conflicts with: ").concat(JSON.stringify(h(o,m)[u]),")"));return{id:u,instance:a,preview:null!==(n=r.preview)&&void 0!==n&&n,transition:r.transition,skipDispatchOnTransition:null!==(i=r.skipDispatchOnTransition)&&void 0!==i&&i}}}),p(this,"setup",(function(){if("undefined"!=typeof window){if(e.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");e.isSetUp=!0,h(o,D).call(o,window),h(o,m)[h(o,y)].instance.setup()}})),p(this,"teardown",(function(){"undefined"!=typeof window&&(e.isSetUp=!1,h(o,k).call(o,window),h(o,m)[h(o,y)].instance.teardown())})),p(this,"connectDragSource",(function(e,t,r){return h(o,E).call(o,"connectDragSource",e,t,r)})),p(this,"connectDragPreview",(function(e,t,r){return h(o,E).call(o,"connectDragPreview",e,t,r)})),p(this,"connectDropTarget",(function(e,t,r){return h(o,E).call(o,"connectDropTarget",e,t,r)})),p(this,"profile",(function(){return h(o,m)[h(o,y)].instance.profile()})),p(this,"previewEnabled",(function(){return h(o,m)[h(o,y)].preview})),p(this,"previewsList",(function(){return h(o,b)})),p(this,"backendsList",(function(){return h(o,w)})),D.set(this,{writable:!0,value:function(e){h(o,w).forEach((function(t){t.transition&&e.addEventListener(t.transition.event,h(o,T))}))}}),k.set(this,{writable:!0,value:function(e){h(o,w).forEach((function(t){t.transition&&e.removeEventListener(t.transition.event,h(o,T))}))}}),T.set(this,{writable:!0,value:function(e){var t=h(o,y);if(h(o,w).some((function(t){return!(t.id===h(o,y)||!t.transition||!t.transition.check(e))&&(g(o,y,t.id),!0)})),h(o,y)!==t){var r;h(o,m)[t].instance.teardown(),Object.keys(h(o,O)).forEach((function(e){var t,r=h(o,O)[e];r.unsubscribe(),r.unsubscribe=(t=h(o,I)).call.apply(t,[o,r.func].concat(f(r.args)))})),h(o,b).backendChanged(o);var n=h(o,m)[h(o,y)];if(n.instance.setup(),n.skipDispatchOnTransition)return;var i=null;try{i=e.constructor(e.type,e)}catch(t){(i=document.createEvent("Event")).initEvent(e.type,e.bubbles,e.cancelable)}null===(r=e.target)||void 0===r||r.dispatchEvent(i)}}}),I.set(this,{writable:!0,value:function(e,t,r,n){return h(o,m)[h(o,y)].instance[e](t,r,n)}}),E.set(this,{writable:!0,value:function(e,t,r,n){var i="".concat(e,"_").concat(t),a=h(o,I).call(o,e,t,r,n);return h(o,O)[i]={func:e,args:[t,r,n],unsubscribe:a},function(){h(o,O)[i].unsubscribe(),delete h(o,O)[i]}}}),!n||!n.backends||n.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");g(this,b,new l),g(this,m,{}),g(this,w,[]),n.backends.forEach((function(e){var n=h(o,S).call(o,t,r,e);h(o,m)[n.id]=n,h(o,w).push(n)})),g(this,y,h(this,w)[0].id),g(this,O,{})};p(C,"isSetUp",!1);var x=function(e,t,r){return new C(e,t,r)},P=function(e,t){return{event:e,check:t}},j=P("touchstart",(function(e){var t=e;return null!==t.touches&&void 0!==t.touches})),_=(P("dragstart",(function(e){return-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop")})),P("mousedown",(function(e){return-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse")})),P("pointerdown",(function(e){return"mouse"==e.pointerType})))},6425:(e,t,r)=>{var n=r(3118),o=r(456);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},7548:(e,t,r)=>{var n=r(3118),o=r(456);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},6874:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},1078:(e,t,r)=>{var n=r(2488),o=r(5708);e.exports=function e(t,r,i,a,u){var s=-1,c=t.length;for(i||(i=o),u||(u=[]);++s<c;){var l=t[s];r>0&&i(l)?r>1?e(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:u).test(a(e))}},456:e=>{e.exports=function(){}},6560:(e,t,r)=>{var n=r(5703),o=r(8777),i=r(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},7561:(e,t,r)=>{var n=r(7990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},6450:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},3468:(e,t,r)=>{var n=r(7548),o=r(9021),i=r(6833),a=r(7658),u=r(1469),s=r(6528);e.exports=function(e){return o((function(t){var r=t.length,o=r,c=n.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(c&&!f&&"wrapper"==a(l))var f=new n([],!0)}for(o=f?o:r;++o<r;){l=t[o];var d=a(l),p="wrapper"==d?i(l):void 0;f=p&&s(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?f[a(p[0])].apply(f,p[3]):1==l.length&&s(l)?f[d]():f.thru(l)}return function(){var e=arguments,n=e[0];if(f&&1==e.length&&u(n))return f.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},9021:(e,t,r)=>{var n=r(5564),o=r(5357),i=r(61);e.exports=function(e){return i(o(e,void 0,n),e+"")}},6833:(e,t,r)=>{var n=r(9250),o=r(308),i=n?function(e){return n.get(e)}:o;e.exports=i},7658:(e,t,r)=>{var n=r(2060),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],i=o.call(n,t)?r.length:0;i--;){var a=r[i],u=a.func;if(null==u||u==e)return a.name}return t}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5708:(e,t,r)=>{var n=r(2705),o=r(5694),i=r(1469),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},6528:(e,t,r)=>{var n=r(6425),o=r(6833),i=r(7658),a=r(2170);e.exports=function(e){var t=i(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var u=o(r);return!!u&&e===u[0]}},5346:(e,t,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},9250:(e,t,r)=>{var n=r(577),o=n&&new n;e.exports=o},5357:(e,t,r)=>{var n=r(6874),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=o(i.length-t,0),s=Array(u);++a<u;)s[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(s),n(e,this,c)}}},2060:e=>{e.exports={}},61:(e,t,r)=>{var n=r(6560),o=r(1275)(n);e.exports=o},1275:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},1913:(e,t,r)=>{var n=r(6425),o=r(7548),i=r(6450);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},5703:e=>{e.exports=function(e){return function(){return e}}},3279:(e,t,r)=>{var n=r(3218),o=r(7771),i=r(4841),a=Math.max,u=Math.min;e.exports=function(e,t,r){var s,c,l,f,d,p,h=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=s,n=c;return s=c=void 0,h=t,f=e.apply(n,r)}function m(e){return h=e,d=setTimeout(O,t),g?b(e):f}function w(e){var r=e-p;return void 0===p||r>=t||r<0||v&&e-h>=l}function O(){var e=o();if(w(e))return S(e);d=setTimeout(O,function(e){var r=t-(e-p);return v?u(r,l-(e-h)):r}(e))}function S(e){return d=void 0,y&&s?b(e):(s=c=void 0,f)}function D(){var e=o(),r=w(e);if(s=arguments,c=this,p=e,r){if(void 0===d)return m(p);if(v)return clearTimeout(d),d=setTimeout(O,t),b(p)}return void 0===d&&(d=setTimeout(O,t)),f}return t=i(t)||0,n(r)&&(g=!!r.leading,l=(v="maxWait"in r)?a(i(r.maxWait)||0,t):l,y="trailing"in r?!!r.trailing:y),D.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},D.flush=function(){return void 0===d?f:S(o())},D}},5564:(e,t,r)=>{var n=r(1078);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},9242:(e,t,r)=>{var n=r(3468)();e.exports=n},5694:(e,t,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},308:e=>{e.exports=function(){}},7771:(e,t,r)=>{var n=r(5639);e.exports=function(){return n.Date.now()}},4841:(e,t,r)=>{var n=r(7561),o=r(3218),i=r(3448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||s.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},2170:(e,t,r)=>{var n=r(6425),o=r(7548),i=r(456),a=r(1469),u=r(7005),s=r(1913),c=Object.prototype.hasOwnProperty;function l(e){if(u(e)&&!a(e)&&!(e instanceof n)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return s(e)}return new o(e)}l.prototype=i.prototype,l.prototype.constructor=l,e.exports=l},4166:(e,t,r)=>{"use strict";r.d(t,{_j:()=>F,$n:()=>W,m4:()=>N,p_:()=>Y});var n=r(7462),o=r(7326),i=r(4578),a=r(1120),u=r(9611);function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,r){return c=s()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&(0,u.Z)(o,r.prototype),o},c.apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,(0,a.Z)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,u.Z)(n,e)},l(e)}var f=function(e){function t(t){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,o.Z)(r)}return(0,i.Z)(t,e),t}(l(Error));function d(e){return Math.round(255*e)}function p(e,t,r){return d(e)+","+d(t)+","+d(r)}function h(e,t,r,n){if(void 0===n&&(n=p),0===t)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),u=0,s=0,c=0;o>=0&&o<1?(u=i,s=a):o>=1&&o<2?(u=a,s=i):o>=2&&o<3?(s=i,c=a):o>=3&&o<4?(s=a,c=i):o>=4&&o<5?(u=a,c=i):o>=5&&o<6&&(u=i,c=a);var l=r-i/2;return n(u+l,s+l,c+l)}var g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var v=/^#[a-fA-F0-9]{6}$/,y=/^#[a-fA-F0-9]{8}$/,b=/^#[a-fA-F0-9]{3}$/,m=/^#[a-fA-F0-9]{4}$/,w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,O=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,S=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,D=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function k(e){if("string"!=typeof e)throw new f(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return g[t]?"#"+g[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(y)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(b))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(m)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=w.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=O.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=S.exec(t);if(a){var u="rgb("+h(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=w.exec(u);if(!s)throw new f(4,t,u);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=D.exec(t.substring(0,50));if(c){var l="rgb("+h(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=w.exec(l);if(!d)throw new f(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])}}throw new f(5)}function T(e){return function(e){var t,r=e.red/255,n=e.green/255,o=e.blue/255,i=Math.max(r,n,o),a=Math.min(r,n,o),u=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var s=i-a,c=u>.5?s/(2-i-a):s/(i+a);switch(i){case r:t=(n-o)/s+(n<o?6:0);break;case n:t=(o-r)/s+2;break;default:t=(r-n)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:u,alpha:e.alpha}:{hue:t,saturation:c,lightness:u}}(k(e))}var I=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function E(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function C(e){return E(Math.round(255*e))}function x(e,t,r){return I("#"+C(e)+C(t)+C(r))}function P(e,t,r){return h(e,t,r,x)}function j(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return P(e,t,r);if("object"==typeof e&&void 0===t&&void 0===r)return P(e.hue,e.saturation,e.lightness);throw new f(1)}function _(e,t,r,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof n)return n>=1?P(e,t,r):"rgba("+h(e,t,r)+","+n+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===n)return e.alpha>=1?P(e.hue,e.saturation,e.lightness):"rgba("+h(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new f(2)}function M(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return I("#"+E(e)+E(t)+E(r));if("object"==typeof e&&void 0===t&&void 0===r)return I("#"+E(e.red)+E(e.green)+E(e.blue));throw new f(6)}function N(e,t,r,n){if("string"==typeof e&&"number"==typeof t){var o=k(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof n)return n>=1?M(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===n)return e.alpha>=1?M(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new f(7)}function A(e){if("object"!=typeof e)throw new f(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return N(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return M(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return _(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return j(e);throw new f(8)}function R(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):R(e,t,n)}}function L(e){return R(e,e.length,[])}function H(e,t,r){return Math.max(e,Math.min(t,r))}function U(e,t){if("transparent"===t)return t;var r=T(t);return A((0,n.Z)({},r,{lightness:H(0,1,r.lightness-parseFloat(e))}))}var F=L(U);function B(e,t){if("transparent"===t)return t;var r=T(t);return A((0,n.Z)({},r,{lightness:H(0,1,r.lightness+parseFloat(e))}))}var W=L(B);function $(e,t){if("transparent"===t)return t;var r=T(t);return A((0,n.Z)({},r,{saturation:H(0,1,r.saturation+parseFloat(e))}))}var Y=L($)},4920:(e,t,r)=>{"use strict";r.d(t,{r:()=>X});var n={};function o(e){var t=null;return function(){return null==t&&(t=e()),t}}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.r(n),r.d(n,{FILE:()=>g,HTML:()=>b,TEXT:()=>y,URL:()=>v});var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,r,n;return t=e,(r=[{key:"enter",value:function(e){var t=this,r=this.entered.length;return this.entered=function(e,t){var r=new Set,n=function(e){return r.add(e)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(r){return t.isNodeInDocument(r)&&(!r.contains||r.contains(e))})),[e]),0===r&&this.entered.length>0}},{key:"leave",value:function(e){var t,r,n=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),r=e,t.filter((function(e){return e!==r}))),n>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&i(t.prototype,r),n&&i(t,n),e}(),u=o((function(){return/firefox/i.test(navigator.userAgent)})),s=o((function(){return Boolean(window.safari)}));function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=t.length,o=[],i=0;i<n;i++)o.push(i);o.sort((function(e,r){return t[e]<t[r]?-1:1}));for(var a,u,s=[],c=[],l=[],f=0;f<n-1;f++)a=t[f+1]-t[f],u=r[f+1]-r[f],c.push(a),s.push(u),l.push(u/a);for(var d=[l[0]],p=0;p<c.length-1;p++){var h=l[p],g=l[p+1];if(h*g<=0)d.push(0);else{a=c[p];var v=c[p+1],y=a+v;d.push(3*y/((y+v)/h+(y+a)/g))}}d.push(l[l.length-1]);for(var b,m=[],w=[],O=0;O<d.length-1;O++){b=l[O];var S=d[O],D=1/c[O],k=S+d[O+1]-b-b;m.push((b-S-k)*D),w.push(k*D*D)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=m,this.c3s=w}var t,r,n;return t=e,(r=[{key:"interpolate",value:function(e){var t=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return r[a];for(var u,s=0,c=i.length-1;s<=c;){var l=t[u=Math.floor(.5*(s+c))];if(l<e)s=u+1;else{if(!(l>e))return r[u];c=u-1}}var f=e-t[a=Math.max(0,c)],d=f*f;return r[a]+n[a]*f+o[a]*d+i[a]*f*d}}])&&c(t.prototype,r),n&&c(t,n),e}();function f(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function d(e){return{x:e.clientX,y:e.clientY}}function p(e,t,r,n,o){var i,a,c,d="IMG"===(i=t).nodeName&&(u()||!(null!==(a=document.documentElement)&&void 0!==a&&a.contains(i))),p=f(d?e:t),h={x:r.x-p.x,y:r.y-p.y},g=e.offsetWidth,v=e.offsetHeight,y=n.anchorX,b=n.anchorY,m=function(e,t,r,n){var o=e?t.width:r,i=e?t.height:n;return s()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(d,t,g,v),w=m.dragPreviewWidth,O=m.dragPreviewHeight,S=o.offsetX,D=o.offsetY,k=0===D||D;return{x:0===S||S?S:new l([0,.5,1],[h.x,h.x/g*w,h.x+w-g]).interpolate(y),y:k?D:(c=new l([0,.5,1],[h.y,h.y/v*O,h.y+O-v]).interpolate(b),s()&&d&&(c+=(window.devicePixelRatio-1)*O),c)}}var h,g="__NATIVE_FILE__",v="__NATIVE_URL__",y="__NATIVE_TEXT__",b="__NATIVE_HTML__";function m(e,t,r){var n=t.reduce((function(t,r){return t||e.getData(r)}),"");return null!=n?n:r}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=(w(h={},g,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),w(h,b,{exposeProperties:{html:function(e,t){return m(e,t,"")}},matchesTypes:["Html","text/html"]}),w(h,v,{exposeProperties:{urls:function(e,t){return m(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),w(h,y,{exposeProperties:{text:function(e,t){return m(e,t,"")}},matchesTypes:["Text","text/plain"]}),h);function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var D=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,r,n;return t=e,(r=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach((function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&S(t.prototype,r),n&&S(t,n),e}();function k(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(O).filter((function(e){return O[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var I=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&T(t.prototype,r),n&&T(t,n),e}();function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var j,_=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&f(t)||null},this.endDragNativeItem=function(){o.isDraggingNativeItem()&&(o.actions.endDrag(),o.currentNativeHandle&&o.registry.removeSource(o.currentNativeHandle),o.currentNativeHandle=null,o.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&o.document&&o.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=o.currentDragSourceNode;null==e||o.isNodeInDocument(e)||o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()},this.handleTopDragStartCapture=function(){o.clearCurrentDragSourceNode(),o.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=o.dragStartSourceIds;o.dragStartSourceIds=null;var r=d(e);o.monitor.isDragging()&&o.actions.endDrag(),o.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:o.getSourceClientOffset,clientOffset:r});var n=e.dataTransfer,i=k(n);if(o.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){var a=o.monitor.getSourceId(),u=o.sourceNodes.get(a),s=o.sourcePreviewNodes.get(a)||u;if(s){var c=o.getCurrentSourcePreviewNodeOptions(),l=p(u,s,r,{anchorX:c.anchorX,anchorY:c.anchorY},{offsetX:c.offsetX,offsetY:c.offsetY});n.setDragImage(s,l.x,l.y)}}try{null==n||n.setData("application/json",{})}catch(e){}o.setCurrentDragSourceNode(e.target),o.getCurrentSourcePreviewNodeOptions().captureDraggingState?o.actions.publishDragSource():setTimeout((function(){return o.actions.publishDragSource()}),0)}else if(i)o.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(o.dragEnterTargetIds=[],o.enterLeaveCounter.enter(e.target)&&!o.monitor.isDragging()){var t=e.dataTransfer,r=k(t);r&&o.beginDragNativeItem(r,t)}},this.handleTopDragEnter=function(e){var t=o.dragEnterTargetIds;(o.dragEnterTargetIds=[],o.monitor.isDragging())&&(o.altKeyPressed=e.altKey,t.length>0&&o.actions.hover(t,{clientOffset:d(e)}),t.some((function(e){return o.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){o.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));o.altKeyPressed=e.altKey,o.actions.hover(t||[],{clientOffset:d(e)}),(t||[]).some((function(e){return o.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){o.isDraggingNativeItem()&&e.preventDefault(),o.enterLeaveCounter.leave(e.target)&&o.isDraggingNativeItem()&&setTimeout((function(){return o.endDragNativeItem()}),0)},this.handleTopDropCapture=function(e){var t;(o.dropTargetIds=[],o.isDraggingNativeItem())&&(e.preventDefault(),null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));o.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(t,{clientOffset:d(e)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new I(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var t,r,o;return t=e,(r=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},i=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},i=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return C({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return C({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(n).some((function(t){return n[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var r=new D(O[e]);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])&&P(t.prototype,r),o&&P(t,o),e}(),M=r(8195);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(j||(j={}));var N=1,A=0;function R(e){return void 0===e.button||e.button===A}function L(e){return!!e.targetTouches}function H(e,t){return L(e)?function(e,t){return 1===e.targetTouches.length?H(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?H(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var U=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var B,W=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=r,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(n[e]=t[e])}))}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.context)&&void 0!==e&&e.document?this.context.document:this.window?this.window.document:void 0}}])&&F(t.prototype,r),n&&F(t,n),e}();function $(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var q=(Y(B={},j.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),Y(B,j.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),Y(B,j.keyboard,{keydown:"keydown"}),B),G=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&function(e){var t=1===e.nodeType?e:e.parentElement;if(t){var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}}(t)},this.handleTopMoveStartCapture=function(e){R(e)&&(o.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(o.moveStartSourceIds)&&o.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if(R(e)){var t=H(e);t&&(L(e)&&(o.lastTargetTouchFallback=e.targetTouches[0]),o._mouseClientOffset=t),o.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(R(e)){var t=e.type===q.touch.start?o.options.delayTouchStart:o.options.delayMouseStart;o.timeout=setTimeout(o.handleTopMoveStart.bind(o,e),t),o.waitingForDelay=!0}},this.handleTopMoveCapture=function(){o.dragOverTargetIds=[]},this.handleMove=function(e,t){o.dragOverTargetIds&&o.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(o.timeout&&clearTimeout(o.timeout),o.document&&!o.waitingForDelay){var t,r,n,i,a=o.moveStartSourceIds,u=o.dragOverTargetIds,s=o.options.enableHoverOutsideTarget,c=H(e,o.lastTargetTouchFallback);if(c)if(o._isScrolling||!o.monitor.isDragging()&&function(e,t,r,n,o){if(!o)return!1;for(var i=180*Math.atan2(n-t,r-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,c.x,c.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&a&&(t=o._mouseClientOffset.x||0,r=o._mouseClientOffset.y||0,n=c.x,i=c.y,Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(i-r),2))>(o.options.touchSlop?o.options.touchSlop:0))&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(a,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var l=o.sourceNodes.get(o.monitor.getSourceId());o.installSourceNodeRemovalObserver(l),o.actions.publishDragSource(),e.cancelable&&e.preventDefault();var f=(u||[]).map((function(e){return o.targetNodes.get(e)})).filter((function(e){return!!e})),d=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(c.x,c.y,f):o.document.elementsFromPoint(c.x,c.y),p=[];for(var h in d)if(d.hasOwnProperty(h)){var g=d[h];for(p.push(g);g;)(g=g.parentElement)&&-1===p.indexOf(g)&&p.push(g)}var v=p.filter((function(e){return f.indexOf(e)>-1})).map((function(e){return o._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,r){return r.indexOf(e)===t}));if(s)for(var y in o.targetNodes){var b=o.targetNodes.get(y);if(l&&b&&b.contains(l)&&-1===v.indexOf(y)){v.unshift(y);break}}v.reverse(),o.actions.hover(v,{clientOffset:c})}}},this._getDropTargetId=function(e){for(var t=o.targetNodes.keys(),r=t.next();!1===r.done;){var n=r.value;if(e===o.targetNodes.get(n))return n;r=t.next()}},this.handleTopMoveEndCapture=function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0==(e.buttons&N)}(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.cancelable&&e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag()):o.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())},this.options=new W(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(j.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(j.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(j.keyboard)}var t,r,n;return t=e,(r=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"document",get:function(){return this.options.document}},{key:"setup",value:function(){this.document&&((0,M.k)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.document,"start",this.getTopMoveStartHandler()),this.addEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.document,"move",this.handleTopMove),this.addEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.document,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.document&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.document,"start",this.handleTopMoveStart),this.removeEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.document,"move",this.handleTopMove),this.removeEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.document,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,r,n){var o=U?{capture:n,passive:!1}:n;this.listenerTypes.forEach((function(n){var i=q[n][t];i&&e.addEventListener(i,r,o)}))}},{key:"removeEventListener",value:function(e,t,r,n){var o=U?{capture:n,passive:!1}:n;this.listenerTypes.forEach((function(n){var i=q[n][t];i&&e.removeEventListener(i,r,o)}))}},{key:"connectDragSource",value:function(e,t){var r=this,n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",n),function(){r.sourceNodes.delete(e),r.removeEventListener(t,"start",n)}}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var r=this;if(!this.document)return function(){};var n=function(n){if(r.document&&r.monitor.isDragging()){var o;switch(n.type){case q.mouse.move:o={x:n.clientX,y:n.clientY};break;case q.touch.move:o={x:n.touches[0].clientX,y:n.touches[0].clientY}}var i=null!=o?r.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?r.handleMove(n,e):void 0}};return this.addEventListener(this.document.body,"move",n),this.targetNodes.set(e,t),function(){r.document&&(r.targetNodes.delete(e),r.removeEventListener(r.document.body,"move",n))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}}])&&$(t.prototype,r),n&&$(t,n),e}(),K=r(4967),X={backends:[{id:"html5",backend:function(e,t,r){return new _(e,t,r)},transition:K.Tb},{id:"touch",backend:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new G(e,t,r)},options:{enableMouseEvents:!0},preview:!0,transition:K.R}]}},6408:(e,t,r)=>{"use strict";var n;function o(){return n||((n=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n}r.d(t,{r:()=>o})},3928:(e,t,r)=>{"use strict";r.d(t,{WG:()=>dt});var n=r(4967),o=r(7294),i=r(5893),a=r(8195),u="dnd-core/INIT_COORDS",s="dnd-core/BEGIN_DRAG",c="dnd-core/PUBLISH_DRAG_SOURCE",l="dnd-core/HOVER",f="dnd-core/DROP",d="dnd-core/END_DRAG";function p(e,t){return{type:u,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t,r){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),e)}function v(e,t){return e.filter((function(e){return e!==t}))}function y(e){return"object"===h(e)}function b(e,t){var r=new Map,n=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e,t){1===e&&o.push(t)})),o}var m={type:u,payload:{clientOffset:null,sourceClientOffset:null}};function w(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,i=r.clientOffset,a=r.getSourceClientOffset,u=e.getMonitor(),c=e.getRegistry();e.dispatch(p(i)),O(t,u,c);var l=k(t,u);if(null!==l){var f=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");S(a),f=a(l)}e.dispatch(p(i,f));var d=c.getSource(l),h=d.beginDrag(u,l);D(h),c.pinSource(l);var g=c.getSourceType(l);return{type:s,payload:{itemType:g,item:h,sourceId:l,clientOffset:i||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}e.dispatch(m)}}function O(e,t,r){(0,a.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,a.k)(r.getSource(e),"Expected sourceIds to be registered.")}))}function S(e){(0,a.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function D(e){(0,a.k)(y(e),"Item must be an object.")}function k(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function T(e){return function(){if(e.getMonitor().isDragging())return{type:c}}}function I(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function E(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.clientOffset;C(t);var o=t.slice(0),i=e.getMonitor(),a=e.getRegistry();x(o,i,a);var u=i.getItemType();return P(o,a,u),j(o,i,a),{type:l,payload:{targetIds:o,clientOffset:n||null}}}}function C(e){(0,a.k)(Array.isArray(e),"Expected targetIds to be an array.")}function x(e,t,r){(0,a.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,a.k)(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];(0,a.k)(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var i=r.getTarget(o);(0,a.k)(i,"Expected targetIds to be registered.")}}function P(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];I(t.getTargetType(o),r)||e.splice(n,1)}}function j(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();R(r);var o=H(r);o.forEach((function(o,i){var a=L(o,i,n,r),u={type:f,payload:{dropResult:M(M({},t),a)}};e.dispatch(u)}))}}function R(e){(0,a.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,a.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function L(e,t,r,n){var o=r.getTarget(e),i=o?o.drop(n,e):void 0;return function(e){(0,a.k)(void 0===e||y(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:n.getDropResult()),i}function H(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function U(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){(0,a.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource());return{type:d}}}function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var B=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=n.store.getState().refCount>0;n.backend&&(e&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!e&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}var t,r,n;return t=e,r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,r=function(e){return{beginDrag:w(e),publishDragSource:T(e),hover:E(e),drop:A(e),endDrag:U(e)}}(this);return Object.keys(r).reduce((function(n,o){var i,a=r[o];return n[o]=(i=a,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=i.apply(e,n);void 0!==a&&t(a)}),n}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],r&&F(t.prototype,r),n&&F(t,n),e}();function W(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $="function"==typeof Symbol&&Symbol.observable||"@@observable",Y=function(){return Math.random().toString(36).substring(7).split("").join(".")},q={INIT:"@@redux/INIT"+Y(),REPLACE:"@@redux/REPLACE"+Y(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Y()}};function G(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function K(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(W(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(W(1));return r(K)(e,t)}if("function"!=typeof e)throw new Error(W(2));var o=e,i=t,a=[],u=a,s=!1;function c(){u===a&&(u=a.slice())}function l(){if(s)throw new Error(W(3));return i}function f(e){if("function"!=typeof e)throw new Error(W(4));if(s)throw new Error(W(5));var t=!0;return c(),u.push(e),function(){if(t){if(s)throw new Error(W(6));t=!1,c();var r=u.indexOf(e);u.splice(r,1),a=null}}}function d(e){if(!G(e))throw new Error(W(7));if(void 0===e.type)throw new Error(W(8));if(s)throw new Error(W(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=u,r=0;r<t.length;r++){(0,t[r])()}return e}function p(e){if("function"!=typeof e)throw new Error(W(10));o=e,d({type:q.REPLACE})}function h(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(W(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[$]=function(){return this},e}return d({type:q.INIT}),(n={dispatch:d,subscribe:f,getState:l,replaceReducer:p})[$]=h,n}var X=function(e,t){return e===t};function Z(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function z(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){Q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ee={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case u:case s:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case l:return Z(e.clientOffset,r.clientOffset)?e:J(J({},e),{},{clientOffset:r.clientOffset});case d:case f:return ee;default:return e}}var re="dnd-core/ADD_SOURCE",ne="dnd-core/ADD_TARGET",oe="dnd-core/REMOVE_SOURCE",ie="dnd-core/REMOVE_TARGET";function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ce={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case s:return ue(ue({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case c:return ue(ue({},e),{},{isSourcePublic:!0});case l:return ue(ue({},e),{},{targetIds:r.targetIds});case ie:return-1===e.targetIds.indexOf(r.targetId)?e:ue(ue({},e),{},{targetIds:v(e.targetIds,r.targetId)});case f:return ue(ue({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case d:return ue(ue({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case re:case ne:return e+1;case oe:case ie:return e-1;default:return e}}var de=[],pe=[];function he(e,t){return e!==de&&(e===pe||void 0===t||(r=e,t.filter((function(e){return r.indexOf(e)>-1}))).length>0);var r}function ge(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case l:break;case re:case ne:case ie:case oe:return de;default:return pe}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,i=void 0===o?[]:o,a=b(n,i),u=a.length>0||!z(n,i);if(!u)return de;var s=i[i.length-1],c=n[n.length-1];return s!==c&&(s&&a.push(s),c&&a.push(c)),a}function ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(r),!0).forEach((function(t){me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:ge(e.dirtyHandlerIds,{type:t.type,payload:be(be({},t.payload),{},{prevTargetIds:g(e,"dragOperation.targetIds",[])})}),dragOffset:te(e.dragOffset,t),refCount:fe(e.refCount,t),dragOperation:le(e.dragOperation,t),stateId:ve(e.stateId)}}function Oe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}de.__IS_NONE__=!0,pe.__IS_ALL__=!0;var De,ke=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r,n;return t=e,r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},n=r.handlerIds;(0,a.k)("function"==typeof e,"listener must be a function."),(0,a.k)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var r=t.store.getState(),i=r.stateId;try{i===o||i===o+1&&!he(r.dirtyHandlerIds,n)||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,a.k)("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,a.k)(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,a.k)(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&I(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,a.k)(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var r=t.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!I(n,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return r?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,n=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,n&&o&&i?Oe((r=i,{x:(t=n).x+r.x,y:t.y+r.y}),o):null;var e,t,r,n,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,r=e.initialClientOffset,t&&r?Oe(t,r):null;var e,t,r}}],r&&Se(t.prototype,r),n&&Se(t,n),e}(),Te=0;function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}function Ee(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Ee(e,!1)})):(0,a.k)("string"==typeof e||"symbol"===Ie(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Ce(e){Pe.length||(xe(),!0),Pe[Pe.length]=e}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(De||(De={}));var xe,Pe=[],je=0;function _e(){for(;je<Pe.length;){var e=je;if(je+=1,Pe[e].call(),je>1024){for(var t=0,r=Pe.length-je;t<r;t++)Pe[t]=Pe[t+je];Pe.length-=je,je=0}}Pe.length=0,je=0,!1}var Me,Ne,Ae,Re=void 0!==r.g?r.g:self,Le=Re.MutationObserver||Re.WebKitMutationObserver;function He(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}"function"==typeof Le?(Me=1,Ne=new Le(_e),Ae=document.createTextNode(""),Ne.observe(Ae,{characterData:!0}),xe=function(){Me=-Me,Ae.data=Me}):xe=He(_e),Ce.requestFlush=xe,Ce.makeRequestCallFromTimer=He;var Ue=[],Fe=[],Be=Ce.makeRequestCallFromTimer((function(){if(Fe.length)throw Fe.shift()}));function We(e){var t;(t=Ue.length?Ue.pop():new $e).task=e,Ce(t)}var $e=function(){function e(){}return e.prototype.call=function(){try{this.task.call()}catch(e){We.onerror?We.onerror(e):(Fe.push(e),Be())}finally{this.task=null,Ue[Ue.length]=this}},e}();function Ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ke(e){var t=(Te++).toString();switch(e){case De.SOURCE:return"S".concat(t);case De.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Xe(e){switch(e[0]){case"S":return De.SOURCE;case"T":return De.TARGET;default:(0,a.k)(!1,"Cannot parse handler ID: ".concat(e))}}function Ze(e,t){var r=e.entries(),n=!1;do{var o=r.next(),i=o.done;if(qe(o.value,2)[1]===t)return!0;n=!!i}while(!n);return!1}var ze=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r,n;return t=e,r=[{key:"addSource",value:function(e,t){Ee(e),function(e){(0,a.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,a.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,a.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(De.SOURCE,e,t);return this.store.dispatch(function(e){return{type:re,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){Ee(e,!0),function(e){(0,a.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,a.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,a.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(De.TARGET,e,t);return this.store.dispatch(function(e){return{type:ne,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return Ze(this.dragSources,e)||Ze(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.k)(this.isSourceId(e),"Expected a valid source ID.");var r=t&&e===this.pinnedSourceId,n=r?this.pinnedSource:this.dragSources.get(e);return n}},{key:"getTarget",value:function(e){return(0,a.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,a.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,a.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Xe(e)===De.SOURCE}},{key:"isTargetId",value:function(e){return Xe(e)===De.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,a.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:oe,payload:{sourceId:e}}}(e)),We((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){(0,a.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:ie,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,a.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,a.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=Ke(e);return this.types.set(n,t),e===De.SOURCE?this.dragSources.set(n,r):e===De.TARGET&&this.dropTargets.set(n,r),n}}],r&&Ye(t.prototype,r),n&&Ye(t,n),e}();function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Je(n),i=new ke(o,new ze(o)),a=new B(o,i),u=e(a,t,r);return a.receiveBackend(u),a}function Je(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return K(we,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var Qe=r(4566);function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var nt=0,ot=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),it=(0,o.memo)((function(e){var t=e.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;o[ot]||(o[ot]={dragDropManager:Ve(e,t,r,n)});return o[ot]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(rt(e,["children"])),n=et(r,2),a=n[0],u=n[1];return(0,o.useEffect)((function(){if(u){var e=at();return++nt,function(){0==--nt&&(e[ot]=null)}}}),[]),(0,i.jsx)(Qe.L.Provider,Object.assign({value:a},{children:t}),void 0)}));function at(){return void 0!==r.g?r.g:window}function ut(){return ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ut.apply(this,arguments)}function st(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ct(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ct(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ft=(0,o.createContext)(null),dt=function(e){var t=e.portal,r=lt(e,["portal"]),i=st((0,o.useState)(null),2),a=i[0],u=i[1];return o.createElement(ft.Provider,{value:null!=t?t:a},o.createElement(it,ut({backend:n.Am},r)),t?null:o.createElement("div",{ref:u}))},pt=r(3935);var ht=r(5047),gt="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wt(e){var t=function(){var e=(0,o.useContext)(Qe.L).dragDropManager;return(0,a.k)(null!=e,"Expected drag drop context"),e}().getMonitor(),r=function(e,t,r){var n=vt((0,o.useState)((function(){return t(e)})),2),i=n[0],a=n[1],u=(0,o.useCallback)((function(){var n=t(e);(0,ht.w)(i,n)||(a(n),r&&r())}),[i,e,r]);return gt(u,[]),[i,u]}(t,e),n=bt(r,2),i=n[0],u=n[1];return(0,o.useEffect)((function(){return t.subscribeToOffsetChange(u)})),(0,o.useEffect)((function(){return t.subscribeToStateChange(u)})),i}var Ot=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},St=function(e,t){var r=e.getClientOffset();if(null===r)return null;if(!t.current||!t.current.getBoundingClientRect)return Ot(r,function(e){var t=e.getInitialClientOffset(),r=e.getInitialSourceClientOffset();return null===t||null===r||void 0===t.x||void 0===t.y?{x:0,y:0}:Ot(t,r)}(e));var n=t.current.getBoundingClientRect(),o={x:n.width/2,y:n.height/2};return Ot(r,o)},Dt=(0,o.createContext)(void 0);function kt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Tt=function(e){var t=function(){var e,t,r=(0,o.useRef)(null),n=wt((function(e){return{currentOffset:St(e,r),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem(),monitor:e}}));return n.isDragging&&null!==n.currentOffset?{display:!0,itemType:n.itemType,item:n.item,style:(e=n.currentOffset,t="translate(".concat(e.x,"px, ").concat(e.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}),monitor:n.monitor,ref:r}:{display:!1}}();if(!t.display)return null;t.display;var r,n=kt(t,["display"]);return r="children"in e&&"function"==typeof e.children?e.children(n):"children"in e?e.children:e.generator(n),o.createElement(Dt.Provider,{value:n},r)};function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Et(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}(function(e){var t=function(){var e=It((0,o.useState)(!1),2),t=e[0],r=e[1],n=(0,o.useContext)(Qe.L);return(0,o.useEffect)((function(){var e,t=null==n||null===(e=n.dragDropManager)||void 0===e?void 0:e.getBackend(),o={backendChanged:function(e){r(e.previewEnabled())}};return r(t.previewEnabled()),t.previewsList().register(o),function(){t.previewsList().unregister(o)}}),[n,n.dragDropManager]),t}(),r=(0,o.useContext)(ft);if(!t)return null;var n=o.createElement(Tt,e);return null!==r?(0,pt.createPortal)(n,r):n}).Context=Dt},4566:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var n=(0,r(7294).createContext)({dragDropManager:void 0})},6436:(e,t,r)=>{"use strict";r.d(t,{E:()=>O});var n=r(8195),o=r(898),i=r(1618),a=r(5047);function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,o.p)({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,(0,i.d)(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,(0,i.d)(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,a.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,a.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&u(t.prototype,r),n&&u(t,n),e}();function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=!1,f=!1,d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r,o;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,n.k)(!l,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return l=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{l=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,n.k)(!f,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return f=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{f=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&c(t.prototype,r),o&&c(t,o),e}(),p=r(5934),h=r(9396),g=r(14);function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var y=["canDrag","beginDrag","isDragging","endDrag"],b=["beginDrag"],m=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,(0,h.Al)(this.ref))}}])&&v(t.prototype,r),n&&v(t,n),e}();function w(e){return Object.keys(e).forEach((function(t){(0,n.k)(y.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',y.join(", "),t),(0,n.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),b.forEach((function(t){(0,n.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,r){return new m(e,t,r)}}function O(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,h.U9)("DragSource","type, spec, collect[, options]",e,t,r,o);var i=e;"function"!=typeof e&&((0,n.k)((0,h.m5)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),i=function(){return e}),(0,n.k)((0,h.PO)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var a=w(t);return(0,n.k)("function"==typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),(0,n.k)((0,h.PO)(o),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),function(e){return(0,g.K)({containerDisplayName:"DragSource",createHandler:a,registerHandler:p.w,createConnector:function(e){return new s(e)},createMonitor:function(e){return new d(e)},DecoratedComponent:e,getType:i,collect:r,options:o})}}},4387:(e,t,r)=>{"use strict";r.d(t,{G:()=>m});var n=r(8195);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=!1,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r,a;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,n.k)(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,r),a&&o(t,a),e}(),u=r(5047),s=r(898),c=r(1618);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,s.p)({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,(0,c.d)(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,u.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&l(t.prototype,r),n&&l(t,n),e}(),d=r(5934),p=r(9396),h=r(14);function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var v=["canDrop","hover","drop"],y=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,(0,p.Al)(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&g(t.prototype,r),n&&g(t,n),e}();function b(e){return Object.keys(e).forEach((function(t){(0,n.k)(v.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',v.join(", "),t),(0,n.k)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,r){return new y(e,t,r)}}function m(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,p.U9)("DropTarget","type, spec, collect[, options]",e,t,r,o);var i=e;"function"!=typeof e&&((0,n.k)((0,p.m5)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=function(){return e}),(0,n.k)((0,p.PO)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var u=b(t);return(0,n.k)("function"==typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),(0,n.k)((0,p.PO)(o),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),function(e){return(0,h.K)({containerDisplayName:"DropTarget",createHandler:u,registerHandler:d.n,createMonitor:function(e){return new a(e)},createConnector:function(e){return new f(e)},DecoratedComponent:e,getType:i,collect:r,options:o})}}},14:(e,t,r)=>{"use strict";r.d(t,{K:()=>T});var n=r(5893),o=r(7294),i=r(5047),a=r(8195),u=r(4566),s=r(9396);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}var d=function(){function e(t){c(this,e),this.isDisposed=!1,this.action=(0,s.mf)(t)?t:s.ZT}return f(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&(0,s.mf)(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();d.empty={dispose:s.ZT};var p=function(){function e(){c(this,e),this.isDisposed=!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.disposables=r}return f(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var r=this.disposables.indexOf(e);-1!==r&&(t=!0,this.disposables.splice(r,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}}]),e}(),h=function(){function e(){c(this,e),this.isDisposed=!1}return f(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var r=this.current;this.current=e,r&&r.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}(),g=r(8679),v=r.n(g);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var o=k(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function T(e){var t=e.DecoratedComponent,r=e.createHandler,c=e.createMonitor,l=e.createConnector,f=e.registerHandler,g=e.containerDisplayName,y=e.getType,m=e.collect,D=e.options.arePropsEqual,k=void 0===D?i.w:D,T=t,I=t.displayName||t.name||"Component",E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(E,e);var t,g,v,D=S(E);function E(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),(t=D.call(this,e)).decoratedRef=(0,o.createRef)(),t.handleChange=function(){var e=t.getCurrentState();(0,i.w)(e,t.state)||t.setState(e)},t.disposable=new h,t.receiveProps(e),t.dispose(),t}return t=E,(g=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,a.k)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!k(e,this.props)||!(0,i.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new h,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){k(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(y(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=b(f(e,this.handler,this.manager),2),r=t[0],n=t[1];this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new p(new d(o),new d(n)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?m(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return(0,n.jsx)(u.L.Consumer,{children:function(t){var r=t.dragDropManager;return e.receiveDragDropManager(r),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),(0,n.jsx)(T,Object.assign({},e.props,e.getCurrentState(),{ref:(0,s.J7)(T)?e.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,a.k)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",I,I),void 0!==e&&(this.manager=e,this.handlerMonitor=c(e),this.handlerConnector=l(e.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}])&&w(t.prototype,g),v&&w(t,v),E}(o.Component);return E.DecoratedComponent=t,E.displayName="".concat(g,"(").concat(I,")"),v()(E,t)}},9396:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function i(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){var t,r=e;return"Symbol(react.forward_ref)"===(null==r||null===(t=r.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}function a(e,t){}function u(e){return"function"==typeof e}function s(){}function c(e){if(!function(e){return"object"===n(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t){return"string"==typeof e||"symbol"===n(e)||!!t&&Array.isArray(e)&&e.every((function(e){return l(e,!1)}))}r.d(t,{Al:()=>o,J7:()=>i,U9:()=>a,mf:()=>u,ZT:()=>s,PO:()=>c,m5:()=>l})},1618:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return null!==e&&"object"===n(e)&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{d:()=>o})},5934:(e,t,r)=>{"use strict";function n(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function o(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}r.d(t,{n:()=>n,w:()=>o})},898:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var n=r(8195),o=r(7294);function i(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function a(e){var t={};return Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var a=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(t)){var n=t;return e(n,r),n}var a=t;i(a);var u=r?function(t){return e(t,r)}:e;return s(a,u)}}(n);t[r]=function(){return a}}})),t}function u(e,t){"function"==typeof e?e(t):e.current=t}function s(e,t){var r=e.ref;return(0,n.k)("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,o.cloneElement)(e,{ref:function(e){u(r,e),u(t,e)}}):(0,o.cloneElement)(e,{ref:t})}},3337:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(7294);const o=function(e,t){var r=(0,n.useRef)((function(){}));(0,n.useEffect)((function(){r.current=e})),(0,n.useEffect)((function(){if(null!==t){var e=setInterval((function(){return r.current()}),t||0);return function(){return clearInterval(e)}}}),[t])}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[90],{9335:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(9669),a=n.n(r),s=n(5823),i=n.n(s),o=n(3768),l=n(4355),c=n(3529);const{baseURI:d}=l.Z,u=e=>{o.Z.add({id:"alert.torrent.add.sent",count:e})},p=e=>{o.Z.add({id:"alert.torrent.add",type:"success",count:e})},h=e=>{o.Z.add({id:"alert.torrent.add.failed",type:"error",count:e})},m={addTorrentsByUrls:e=>a().post(`${d}api/torrents/add-urls`,e).then((t=>{let{data:n}=t;n.length?p(n.length):u(e.urls.length)}),(()=>{h(e.urls.length)})),addTorrentsByFiles:e=>a().post(`${d}api/torrents/add-files`,e).then((t=>{let{data:n}=t;n.length?p(n.length):u(e.files.length)}),(()=>{h(e.files.length)})),createTorrent:e=>a().post(`${d}api/torrents/create`,e,{responseType:"blob"}).then((t=>{let{data:n}=t;i()(n,(e.name||`${Date.now()}`).concat(".torrent")),p(1)}),(()=>{h(1)})),deleteTorrents:e=>a().post(`${d}api/torrents/delete`,e).then((()=>o.Z.add({id:"alert.torrent.remove",type:"success",count:e.hashes.length})),(()=>o.Z.add({id:"alert.torrent.remove.failed",type:"error",count:e.hashes.length}))),checkHash:e=>a().post(`${d}api/torrents/check-hash`,e).then((()=>{}),(()=>{})),fetchMediainfo:(e,t)=>a().get(`${d}api/torrents/${e}/mediainfo`,{cancelToken:t}).then((e=>e.data)),fetchTorrentContents:e=>a().get(`${d}api/torrents/${e}/contents`).then((e=>e.data),(()=>null)),fetchTorrentPeers:e=>a().get(`${d}api/torrents/${e}/peers`).then((e=>e.data),(()=>null)),fetchTorrentTrackers:e=>a().get(`${d}api/torrents/${e}/trackers`).then((e=>e.data),(()=>null)),getTorrentContentsDataPermalink:(e,t)=>a().get(`${l.Z.baseURI}api/torrents/${e}/contents/${t.join(",")}/token`).then((n=>`${window.location.protocol}//${window.location.host}${l.Z.baseURI}api/torrents/${e}/contents/${t.join(",")}/data?token=${n.data}`)),moveTorrents:e=>a().post(`${d}api/torrents/move`,e).then((()=>o.Z.add({id:"alert.torrent.move",type:"success",count:e.hashes.length})),(()=>o.Z.add({id:"alert.torrent.move.failed",type:"error",count:e.hashes.length}))),reannounce:e=>a().post(`${d}api/torrents/reannounce`,e).then((()=>{}),(()=>{})),startTorrents:async e=>{if(e.hashes.length>0)return a().post(`${d}api/torrents/start`,e).then((()=>{}),(()=>{}))},stopTorrents:async e=>{if(e.hashes.length>0)return a().post(`${d}api/torrents/stop`,e).then((()=>{}),(()=>{}))},setInitialSeeding:e=>a().patch(`${d}api/torrents/initial-seeding`,e).then((()=>{}),(()=>{})),setPriority:e=>a().patch(`${d}api/torrents/priority`,e).then((()=>{}),(()=>{})),setSequential:e=>a().patch(`${d}api/torrents/sequential`,e).then((()=>{}),(()=>{})),setFilePriority:(e,t)=>a().patch(`${d}api/torrents/${e}/contents`,t).then((()=>{}),(()=>{})),setTags:e=>a().patch(`${d}api/torrents/tags`,e).then((()=>c.Z.handleSetTaxonomySuccess()),(()=>{})),setTrackers:e=>a().patch(`${d}api/torrents/trackers`,e).then((()=>{}),(()=>{}))}},2159:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(7294),a=n(3799),s=n(6974),i=n(8441),o=n(8111),l=n(2809),c=n(4982),d=n(5954);const u=e=>{let{mode:t}=e;const{i18n:n}=(0,a.mV)(),u=(0,r.useRef)(null),p=(0,r.useRef)(null),[h,m]=(0,r.useState)(void 0),[Z,_]=(0,r.useState)(!1),b=(0,s.s0)(),g="login"===t;return(0,d.tZ)("div",{className:"application__entry-barrier",children:(0,d.tZ)(i.s_,{spacing:"large",children:(0,d.BX)(i.l0,{onSubmit:e=>{e.event.preventDefault(),_(!0);const t=e.formData;if(null==t.username||""===t.username)return _(!1),void m({id:"auth.error.username.empty"});if(null==t.password||""===t.password)return _(!1),void m({id:"auth.error.password.empty"});if(g){const e=t;o.Z.authenticate({username:e.username,password:e.password}).then((()=>{_(!1),b("/overview",{replace:!0})})).catch((e=>{_(!1),m(e.message),b("/login",{replace:!0})}))}else{const e=t;if(null==p.current)return _(!1),void m({id:"connection.settings.error.empty"});const n=p.current;if(null==n)return _(!1),void m({id:"connection.settings.error.empty"});o.Z.register({username:e.username,password:e.password,client:n,level:l.u.ADMINISTRATOR}).then((()=>{_(!1),b("/overview",{replace:!0})}),(e=>{_(!1),m(e.message)}))}},ref:u,children:[(0,d.tZ)(i.V9,{children:(0,d.tZ)("h1",{children:g?n._("auth.login"):n._("auth.create.an.account")})}),(0,d.BX)(i.KG,{children:[(0,d.tZ)("p",{className:"copy--lead",children:g?n._("auth.login.intro"):n._("auth.create.an.account.intro")}),null!=h?(0,d.tZ)(i.p7,{children:(0,d.tZ)(i.Xq,{isLoading:Z,children:"string"==typeof h?h:n._(h)})}):null,(0,d.tZ)(i.p7,{children:(0,d.tZ)(i.fE,{placeholder:n._("auth.username"),id:"username",autoComplete:"username"})}),(0,d.tZ)(i.p7,{children:(0,d.tZ)(i.fE,{placeholder:n._("auth.password"),id:"password",type:"password",autoComplete:g?"current-password":"new-password"})})]}),g?null:(0,d.tZ)(i.KG,{hasBorder:!0,children:(0,d.tZ)(c.Z,{onSettingsChange:e=>{p.current=e}})}),(0,d.tZ)(i.jH,{hasBorder:!0,children:(0,d.BX)(i.p7,{justify:"end",children:[(0,d.tZ)(i.zx,{priority:"tertiary",onClick:()=>{null!=u.current&&u.current.resetForm()},children:n._("auth.input.clear")}),(0,d.tZ)(i.zx,{isLoading:Z,type:"submit",children:g?n._("auth.log.in"):n._("auth.create.account")})]})})]})})})}},8447:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(5954);const a=e=>{let{children:t}=e;return(0,r.tZ)("div",{className:"badge",children:t})}},228:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(3799),a=n(5954);const s=e=>{const{suffix:t,value:n}=e;if(null==n)return null;let s=null,i=null;t&&(i=(0,a.tZ)("span",{className:"duration--segment",children:t}));const o=-1===n?-1:(e=>{const t=Math.floor(e/31536e3),n=Math.floor(e%31536e3/604800),r=Math.floor(e%31536e3%604800/86400),a=Math.floor(e%31536e3%604800%86400/3600),s=Math.floor(e%31536e3%604800%86400%3600/60),i=Math.floor(e-60*s);let o=null;return o=t>0?{years:t,weeks:n,cumSeconds:e}:n>0?{weeks:n,days:r,cumSeconds:e}:r>0?{days:r,hours:a,cumSeconds:e}:a>0?{hours:a,minutes:s,cumSeconds:e}:s>0?{minutes:s,seconds:i,cumSeconds:e}:{seconds:i,cumSeconds:e},o})(n);return s=-1===o?(0,a.tZ)(r.cC,{id:"unit.time.infinity"}):null!=o.years&&o.years>0?[(0,a.BX)("span",{className:"duration--segment",children:[o.years,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.year"})})]},"years"),(0,a.BX)("span",{className:"duration--segment",children:[o.weeks,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.week"})})]},"weeks")]:null!=o.weeks&&o.weeks>0?[(0,a.BX)("span",{className:"duration--segment",children:[o.weeks,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.week"})})]},"weeks"),(0,a.BX)("span",{className:"duration--segment",children:[o.days,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.day"})})]},"days")]:null!=o.days&&o.days>0?[(0,a.BX)("span",{className:"duration--segment",children:[o.days,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.day"})})]},"days"),(0,a.BX)("span",{className:"duration--segment",children:[o.hours,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.hour"})})]},"hours")]:null!=o.hours&&o.hours>0?[(0,a.BX)("span",{className:"duration--segment",children:[o.hours,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.hour"})})]},"hours"),(0,a.BX)("span",{className:"duration--segment",children:[o.minutes,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.minute"})})]},"minutes")]:null!=o.minutes&&o.minutes>0?[(0,a.BX)("span",{className:"duration--segment",children:[o.minutes,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.minute"})})]},"minutes"),(0,a.BX)("span",{className:"duration--segment",children:[o.seconds,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.second"})})]},"seconds")]:(0,a.BX)("span",{className:"duration--segment",children:[o.seconds,(0,a.tZ)("em",{className:"unit",children:(0,a.tZ)(r.cC,{id:"unit.time.second"})})]}),(0,a.BX)("span",{className:"duration",children:[s,i]})};s.defaultProps={suffix:void 0};const i=s},2036:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(7294),a=n(3799);const s={file:{0:"DONT_DOWNLOAD",1:"NORMAL",2:"HIGH"},torrent:{0:"DONT_DOWNLOAD",1:"LOW",2:"NORMAL",3:"HIGH"}};var i=n(5954);var o={name:"1gxvag8",styles:":focus{outline:none;-webkit-tap-highlight-color:transparent;}:focus-visible{outline:dashed;}"};const l=e=>{let{id:t,level:n,maxLevel:l,priorityType:c,showLabel:d,clickHandled:u,changePriorityFuncRef:p,onChange:h}=e;const{i18n:m}=(0,a.mV)(),[Z,_]=(0,r.useState)(n),b=()=>{let e=Z;return e>=l?e=0:e+=1,_(e),h(t,e),e};let g;if(null!=p&&(p.current=b),d){let e;switch(s[c][Z]){case"DONT_DOWNLOAD":e=m._("priority.dont.download");break;case"HIGH":e=m._("priority.high");break;case"LOW":e=m._("priority.low");break;default:e=m._("priority.normal")}g=(0,i.tZ)("span",{className:"priority-meter__label",children:e})}const v=(0,i.tZ)("div",{className:`priority-meter priority-meter--max-${l} priority-meter--level-${Z}`}),f=o;return u?(0,i.BX)("div",{className:"priority-meter__wrapper",css:f,children:[v,g]}):(0,i.BX)("button",{className:"priority-meter__wrapper",css:f,type:"button",onClick:()=>{b()},children:[v,g]})};l.defaultProps={showLabel:!1,clickHandled:!1,changePriorityFuncRef:void 0};const c=l},6882:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(1647),a=n(7294),s=n(4916),i=n(5954);const o=(0,a.memo)((e=>{let{status:t}=e;switch(t){case"error":return(0,i.tZ)(s.jj,{});case"checking":return(0,i.tZ)(s.$j,{});case"downloading":case"seeding":return(0,i.tZ)(s.zf,{});default:return(0,i.tZ)(s.dV,{})}})),l=(0,r.Pi)((e=>{let{percent:t,status:n}=e;return(0,i.BX)("div",{className:"progress-bar",children:[(0,i.tZ)("div",{className:"progress-bar__icon",children:n&&(0,i.tZ)(o,{status:n})}),(0,i.tZ)("div",{className:"progress-bar__fill__wrapper",children:(0,i.tZ)("div",{className:"progress-bar__fill",style:{width:`${t}%`}})})]})}));l.defaultProps={status:void 0};const c=l},2104:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3799),a=n(485),s=n(5954);const i=e=>{let{value:t,isSpeed:n,className:i,precision:o}=e;const l=(0,a.Q)(t,o),{i18n:c}=(0,r.mV)();let d=c._((0,a.A)(l.unit));return n&&(d=c._("unit.speed",{baseUnit:d})),(0,s.BX)("span",{className:i,children:[Number.isNaN(l.value)?"—":c.number(l.value),(0,s.tZ)("em",{className:"unit",children:d})]})};i.defaultProps={isSpeed:!1,precision:2,className:void 0};const o=i},2656:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(4184),a=n.n(r),s=n(5954);const i=e=>{const{children:t,modifier:n}=e,r=a()("application__view",{[`application__view--${n}`]:null!=n});return(0,s.tZ)("div",{className:r,children:t})};i.defaultProps={modifier:void 0};const o=i},8737:(e,t,n)=>{n.d(t,{Z:()=>r});const r={start:"torrents.list.context.start",stop:"torrents.list.context.stop",remove:"torrents.list.context.remove",checkHash:"torrents.list.context.check.hash",reannounce:"torrents.list.context.reannounce",setTaxonomy:"torrents.list.context.set.tags",move:"torrents.list.context.move",setTrackers:"torrents.list.context.set.trackers",torrentDetails:"torrents.list.context.details",downloadContents:"torrents.list.context.download.contents",downloadMetainfo:"torrents.list.context.download.metainfo",generateMagnet:"torrents.list.context.generate.magnet",setInitialSeeding:"torrents.list.context.initial.seeding",setSequential:"torrents.list.context.sequential",setPriority:"torrents.list.context.priority"}},882:(e,t,n)=>{n.d(t,{Z:()=>r});const r={dateAdded:"torrents.properties.date.added",downRate:"torrents.properties.download.speed",downTotal:"torrents.properties.download.total",eta:"torrents.properties.eta",name:"torrents.properties.name",peers:"torrents.properties.peers",percentComplete:"torrents.properties.percentage",ratio:"torrents.properties.ratio",seeds:"torrents.properties.seeds",sizeBytes:"torrents.properties.size",tags:"torrents.properties.tags",upRate:"torrents.properties.upload.speed",upTotal:"torrents.properties.upload.total",dateCreated:"torrents.properties.date.created",directory:"torrents.properties.directory",hash:"torrents.properties.hash",isPrivate:"torrents.properties.is.private",message:"torrents.properties.tracker.message",trackerURIs:"torrents.properties.trackers"}},9343:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(2656),a=n(2159),s=n(5954);const i=()=>(0,s.tZ)(r.Z,{modifier:"auth-form",children:(0,s.tZ)(a.Z,{mode:"login"})})},9439:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Yt});var r=n(7294),a=n(4184),s=n.n(a),i=n(1647),o=n(3799),l=n(4916),c=n(1540),d=n(879),u=n(9335),p=n(4936),h=n(3529),m=n(9097),Z=n(5954);const _=e=>{const{clickHandler:t,icon:n,label:r,slug:a,noTip:i}=e,o=s()("action tooltip__wrapper",{[`action--${a}`]:null!=a});return(0,Z.BX)(m.Z,{content:r,onClick:t,position:"bottom",wrapperClassName:o,suppress:i,children:[n,(0,Z.tZ)("span",{className:"action__label",children:r})]})};_.defaultProps={noTip:!1};const b=_,g={dateAdded:"desc",downRate:"desc",downTotal:"desc",upRate:"desc",upTotal:"desc"};var v=n(8983),f=n(4537),y=n(3955),w=n.n(y),N=n(7264);var k={name:"140xmhl",styles:"width:100%;height:100%;text-align:left;:focus-visible{outline:dashed;}"};const C=e=>{let{className:t,label:n,isFocusHandled:r,onClick:a}=e;return r?(0,Z.tZ)("div",{role:"none",className:t,onClick:a,children:n}):(0,Z.tZ)("button",{type:"button",className:t,css:k,onClick:a,children:n})};C.defaultProps={className:void 0};const S=(0,i.Pi)((e=>{let{baseClassName:t,dropdownWrapperClass:n,dropdownButtonClass:a,dropdownClickRef:i,direction:o,header:l,matchButtonWidth:c,menuItems:d,noWrap:u,trigger:p,width:m,isFocusHandled:_,handleItemSelect:b,onOpen:g}=e;const y=(0,r.useRef)(w()("dropdown_")),k=h.Z.activeDropdownMenu===y.current,S=s()(n,`${t}--direction-${o}`,{[`${t}--match-button-width`]:c,[`${t}--width-${m}`]:null!=m,[`${t}--no-wrap`]:u,"is-expanded":k}),P=(0,r.useCallback)((()=>{window.removeEventListener("click",P),h.Z.setActiveDropdownMenu(null)}),[]);(0,N.Z)("Escape",(()=>P()));const O=(0,r.useCallback)((()=>{window.addEventListener("click",P),g&&g(),h.Z.setActiveDropdownMenu(y.current)}),[P,g]),T=e=>{null==e||e.stopPropagation(),k?P():O()};let R;if(i&&(i.current=T),k){const e=(0,Z.tZ)("div",{className:"dropdown__header",children:(0,Z.tZ)(C,{className:a,label:l,isFocusHandled:_??!1,onClick:T})},"dropdown-header"),t=(0,Z.tZ)("ul",{className:"dropdown__items",children:d.map(((e,t)=>(0,Z.tZ)("div",{className:"dropdown__list",children:e.map(((e,t)=>{const n=s()("dropdown__item menu__item",e.className,{"is-selectable":!1!==e.selectable,"is-selected":e.selected});return(0,Z.tZ)("li",{className:n,children:(0,Z.tZ)("button",{type:"button",disabled:!1===e.selectable,onClick:!1===e.selectable?void 0:()=>{P(),b(e)},children:e.displayName})},t)}))},t)))},"dropdown-items");R=(0,Z.tZ)(v.Z,{classNames:"menu",timeout:{enter:250,exit:250},children:(0,Z.tZ)("div",{className:"dropdown__content menu",children:"up"===o?[t,e]:[e,t]})})}return(0,Z.BX)("div",{className:S,children:[(0,Z.tZ)(C,{className:a,label:p??l,isFocusHandled:_??!1,onClick:T}),(0,Z.tZ)(f.Z,{children:R})]})}));S.defaultProps={baseClassName:"dropdown",direction:"down",dropdownWrapperClass:"dropdown",dropdownButtonClass:"dropdown__trigger",matchButtonWidth:!1,noWrap:!1,isFocusHandled:!1};const P=S;var O=n(882);const T=["name","eta","downRate","upRate","ratio","percentComplete","downTotal","upTotal","sizeBytes","dateAdded"],R=e=>{const{direction:t,selectedProperty:n,onSortChange:r}=e,{i18n:a}=(0,o.mV)();if(null==n)return null;const s=(0,Z.BX)("div",{className:"dropdown__button",children:[(0,Z.tZ)("span",{className:"dropdown__label",children:(0,Z.tZ)(o.cC,{id:"torrents.sort.title"})}),(0,Z.tZ)("span",{className:"dropdown__value",children:(0,Z.tZ)(o.cC,{id:O.Z[n]})})]}),i=[T.map((e=>{const r=e===n,s=r?(0,Z.tZ)("span",{className:`sort-dropdown__indicator sort-dropdown__indicator--${t}`}):null;return{displayName:(0,Z.BX)("div",{className:"sort-dropdown__item",children:[a._(O.Z[e]),s]}),selected:r,property:e}}))];return(0,Z.tZ)(P,{handleItemSelect:e=>{const{property:a}=e;if(null==a)return;let s=g[a]??"asc";n===a&&(s="asc"===t?"desc":"asc"),r({direction:s,property:a})},header:s,menuItems:i})},x=(0,i.Pi)((()=>{const{i18n:e}=(0,o.mV)(),{sortTorrents:t,torrentListViewSize:n}=d.Z.floodSettings,r=s()("action-bar",{"action-bar--is-condensed":"condensed"===n});return(0,Z.BX)("nav",{className:r,children:[(0,Z.tZ)("div",{className:"actions action-bar__item action-bar__item--sidebar-expand-collapse",children:(0,Z.tZ)(b,{label:"actionbar.button.sidebar.expand.collapse",slug:"sidebar-expand-collapse",icon:(0,Z.tZ)(l.v2,{}),clickHandler:()=>{const e=document.getElementsByClassName("application__view")[0];null!=e&&e.classList.toggle("application__view--sidebar-alternative-state")},noTip:!0})}),(0,Z.tZ)("div",{className:"actions action-bar__item action-bar__item--sort-torrents",children:(0,Z.tZ)(R,{direction:null!=t?t.direction:"desc",onSortChange:e=>{c.Z.saveSetting("sortTorrents",e)},selectedProperty:null!=t?t.property:"dateAdded"})}),(0,Z.BX)("div",{className:"actions action-bar__item action-bar__item--torrent-operations",children:[(0,Z.BX)("div",{className:"action-bar__group",children:[(0,Z.tZ)(b,{label:e._("actionbar.button.start.torrent"),slug:"start-torrent",icon:(0,Z.tZ)(l.zf,{}),clickHandler:()=>u.Z.startTorrents({hashes:p.Z.selectedTorrents})}),(0,Z.tZ)(b,{label:e._("actionbar.button.stop.torrent"),slug:"stop-torrent",icon:(0,Z.tZ)(l.dV,{}),clickHandler:()=>u.Z.stopTorrents({hashes:p.Z.selectedTorrents})})]}),(0,Z.BX)("div",{className:"action-bar__group action-bar__group--has-divider",children:[(0,Z.tZ)(b,{label:e._("actionbar.button.add.torrent"),slug:"add-torrent",icon:(0,Z.tZ)(l.mm,{}),clickHandler:()=>h.Z.setActiveModal({id:"add-torrents"})}),(0,Z.tZ)(b,{label:e._("actionbar.button.remove.torrent"),slug:"remove-torrent",icon:(0,Z.tZ)(l.JW,{}),clickHandler:()=>h.Z.setActiveModal({id:"remove-torrents"})})]})]})]})})),B=e=>{let{children:t}=e;return(0,Z.tZ)("div",{className:"application__content",children:t})},$=e=>{const{children:t,baseClassName:n,className:r,modifier:a}=e,i=s()(n,{[`${n}--${a}`]:n,[r]:r});return(0,Z.tZ)("div",{className:i,children:t})};$.defaultProps={baseClassName:"application__panel"};const X=$;var j=n(2656),M=n(5051),D=n(1861),H=n(8826),E=n(2104),A=n(6882);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F=e=>{let{label:t,value:n}=e;return(0,Z.BX)("li",{"aria-label":"label",className:"diskusage__details-list__item",role:"cell",children:[(0,Z.tZ)("span",{className:"diskusage__details-list__label",children:t}),(0,Z.tZ)(E.Z,{className:"diskuage__size-used",value:n})]})};var V={name:"1ll9bqd",styles:"cursor:default"};const U=(0,i.Pi)((()=>{const{i18n:e}=(0,o.mV)(),{disks:t}=H.Z,{mountPoints:n}=d.Z.floodSettings;if(null==t||null==n)return null;const r=t.reduce(((e,t)=>I(I({},e),{},{[t.target]:t})),{}),a=n.filter((e=>e in r)).map((e=>r[e])).map((t=>(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar__diskusage",role:"row",children:(0,Z.BX)(m.Z,{content:(0,Z.BX)("ul",{className:"diskusage__details-list",role:"tooltip",children:[(0,Z.tZ)(F,{value:t.used,label:e._("status.diskusage.used")}),(0,Z.tZ)(F,{value:t.avail,label:e._("status.diskusage.free")}),(0,Z.tZ)(F,{value:t.size,label:e._("status.diskusage.total")})]}),position:"top",styles:V,wrapperClassName:"diskusage__item",children:[(0,Z.BX)("div",{className:"diskusage__text-row",children:[t.target,(0,Z.BX)("span",{children:[Math.round(100*t.used/t.size),"%"]})]}),(0,Z.tZ)(A.Z,{percent:Math.round(100*t.used/t.size)})]})},t.target)));if(null==a||0===a.length)return null;const s=e._("status.diskusage.title");return(0,Z.BX)("ul",{"aria-label":s,className:"sidebar-filter sidebar__item",role:"table",children:[(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar-filter__item--heading",children:s}),a]})})),G=()=>{const{i18n:e}=(0,o.mV)(),t=(0,r.useRef)(null);return(0,Z.tZ)(m.Z,{content:e._("sidebar.button.feeds"),onClick:()=>{null!=t.current&&t.current.dismissTooltip(),h.Z.setActiveModal({id:"feeds"})},ref:t,position:"bottom",wrapperClassName:"sidebar__action sidebar__icon-button sidebar__icon-button--interactive tooltip__wrapper",children:(0,Z.tZ)(l.fR,{})})};var W=n(5727),q=n(95);const K=10,Q=e=>M.Z.fetchNotifications({id:"notification-tooltip",limit:K,start:e}),Y=e=>{let{paginationStart:t,notificationTotal:n}=e;const{i18n:r}=(0,o.mV)();if(n>K){let e=t+1,a=t+K;return e>n&&(e=n),a>n&&(a=n),(0,Z.tZ)("div",{className:"toolbar toolbar--dark toolbar--top tooltip__toolbar tooltip__content--padding-surrogate",children:(0,Z.BX)("span",{className:"toolbar__item toolbar__item--label",children:[`${r._("notification.showing")} `,(0,Z.BX)("strong",{children:[e,` ${r._("general.to")} `,a]}),` ${r._("general.of")} `,(0,Z.tZ)("strong",{children:n})]})})}return null},J=e=>{let{index:t,notification:n}=e;const{i18n:r}=(0,o.mV)();return(0,Z.BX)("li",{className:"notifications__list__item",children:[(0,Z.BX)("div",{className:"notification__heading",children:[(0,Z.tZ)("span",{className:"notification__category",children:r._(`${n.id}.heading`)})," — ",(0,Z.tZ)("span",{className:"notification__timestamp",children:r.date(new Date(n.ts),{year:"numeric",month:"long",day:"2-digit",hour:"numeric",minute:"numeric"})})]}),(0,Z.tZ)("div",{className:"notification__message",children:r._(`${n.id}.body`,n.data)})]},t)},ee=e=>{let{paginationStart:t,notificationTotal:n,onPrevClick:r,onClearClick:a,onNextClick:i}=e;const{i18n:c}=(0,o.mV)();if(n>0){let e=t+20,o=t-K;return e>n&&(e=n),o<0&&(o=0),(0,Z.BX)("ul",{className:"notifications__toolbar toolbar toolbar--dark toolbar--bottom",children:[(0,Z.tZ)("li",{className:s()("toolbar__item toolbar__item--button",{"is-disabled":0===t}),children:(0,Z.BX)("button",{className:"tooltip__content--padding-surrogate",type:"button",onClick:r,children:[(0,Z.tZ)(l.s$,{}),`${o+1} - ${t}`]})}),(0,Z.tZ)("li",{className:"toolbar__item toolbar__item--button",children:(0,Z.tZ)("button",{className:"tooltip__content--padding-surrogate",type:"button",onClick:a,children:c._("notification.clear.all")})}),(0,Z.tZ)("li",{className:s()("toolbar__item toolbar__item--button",{"is-disabled":t+K>=n}),children:(0,Z.BX)("button",{className:"tooltip__content--padding-surrogate",type:"button",onClick:i,children:[`${t+K+1} - ${e}`,(0,Z.tZ)(l._Q,{})]})})]})}return null},te=(0,i.Pi)((()=>{const{i18n:e}=(0,o.mV)(),t=(0,r.useRef)(null),n=(0,r.useRef)(null),[a,i]=(0,r.useState)(!1),[c,d]=(0,r.useState)(0),[u,p]=(0,r.useState)(0),{hasNotification:h,notifications:_,notificationCount:b}=q.Z;return(0,r.useEffect)((()=>{var e;b.total>0&&null!==(e=t.current)&&void 0!==e&&e.isOpen()&&(i(!0),Q(c).finally((()=>i(!1))))}),[b,c]),(0,Z.BX)(m.Z,{contentClassName:"tooltip__content tooltip__content--no-padding",content:h?(0,Z.BX)("div",{className:s()("notifications",{"notifications--is-loading":a}),children:[(0,Z.tZ)(Y,{paginationStart:c,notificationTotal:b.total}),(0,Z.tZ)("div",{className:"notifications__loading-indicator",children:(0,Z.tZ)(l.Hj,{})}),(0,Z.tZ)("ul",{className:"notifications__list tooltip__content--padding-surrogate",ref:n,style:{minHeight:u},children:_.map(((e,t)=>(0,Z.tZ)(J,{index:t,notification:e})))}),(0,Z.tZ)(ee,{paginationStart:c,notificationTotal:b.total,onPrevClick:()=>{const e=c-K;var t;e>=0&&(p((null===(t=n.current)||void 0===t?void 0:t.clientHeight)||0),d(e))},onClearClick:()=>{null!=t.current&&t.current.dismissTooltip(),M.Z.clearNotifications(),p(0),d(0)},onNextClick:()=>{const e=c+K;var t;b.total>e&&(p((null===(t=n.current)||void 0===t?void 0:t.clientHeight)||0),d(e))}})]}):(0,Z.tZ)("div",{className:"notifications tooltip__content--padding-surrogate",style:{textAlign:"center"},children:e._("notification.no.notification")}),interactive:!0,onOpen:()=>Q(c),ref:t,width:340,position:"bottom",wrapperClassName:"sidebar__action sidebar__icon-button tooltip__wrapper",children:[(0,Z.tZ)(l.P_,{}),h?(0,Z.tZ)("span",{className:"notifications__badge",children:b.total}):null]})}));var ne=n(8232);const re=(0,i.Pi)((()=>{const{i18n:e}=(0,o.mV)(),t=(0,r.useRef)(null),{searchFilter:n}=ne.Z;(0,r.useEffect)((()=>{null!=t.current&&n!==t.current.value&&(t.current.value=n)}),[t,n]);const a=""!==n;return(0,Z.BX)("div",{className:s()({sidebar__item:!0,search:!0,"is-in-use":a}),children:[a&&(0,Z.tZ)("button",{className:"button search__reset-button",onClick:()=>{ne.Z.setSearchFilter(""),null!=t.current&&t.current.blur()},type:"button",children:(0,Z.tZ)(l.x8,{})}),(0,Z.tZ)(l.ol,{}),(0,Z.tZ)("input",{className:"textbox",ref:t,type:"text",placeholder:e._("sidebar.search.placeholder"),onChange:e=>{ne.Z.setSearchFilter(e.target.value)}})]})})),ae=()=>{const{i18n:e}=(0,o.mV)(),t=(0,r.useRef)(null);return(0,Z.tZ)(m.Z,{content:e._("sidebar.button.settings"),onClick:()=>{null!=t.current&&t.current.dismissTooltip(),h.Z.setActiveModal({id:"settings"})},ref:t,position:"bottom",wrapperClassName:"sidebar__action sidebar__icon-button sidebar__icon-button--interactive tooltip__wrapper",children:(0,Z.tZ)(l.Zr,{})})},se=e=>{let{children:t}=e;return(0,Z.tZ)("div",{className:"sidebar__actions",children:t})};var ie=n(1159),oe=n.n(ie),le=n(5181);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pe=e=>{let{bytes:t}=e;return 0===t?(0,Z.tZ)(o.cC,{id:"speed.unlimited"}):(0,Z.tZ)(E.Z,{value:t,isSpeed:!0,precision:1})},he=e=>{let{i18n:t,direction:n,speedLimits:r,throttleGlobalDownSpeed:a,throttleGlobalUpSpeed:s}=e;const i=de(de({className:`dropdown__label dropdown__label--${n}`},"download"===n?{displayName:t._("sidebar.speedlimits.download")}:{displayName:t._("sidebar.speedlimits.upload")}),{},{selectable:!1,value:null}),o={download:a,upload:s},l=r[n];let c=!0;const d=l.map((e=>{let t=!1;return o&&o[n]===e&&(t=!0,c=!1),{displayName:(0,Z.tZ)(pe,{bytes:e}),property:n,selected:t,selectable:!0,value:e}}));if(c&&o){const e=oe()(l,o[n]);d.splice(e,0,{displayName:(0,Z.tZ)(pe,{bytes:o[n]}),property:n,selected:!0,selectable:!0,value:o[n]})}return d.unshift(i),d},me=(0,i.Pi)((()=>{var e,t;const{i18n:n}=(0,o.mV)(),a=(0,r.useRef)(null),s=(0,r.useRef)((()=>{})),i=n._("sidebar.button.speedlimits"),c={i18n:n,speedLimits:d.Z.floodSettings.speedLimits,throttleGlobalDownSpeed:(null===(e=d.Z.clientSettings)||void 0===e?void 0:e.throttleGlobalDownSpeed)??0,throttleGlobalUpSpeed:(null===(t=d.Z.clientSettings)||void 0===t?void 0:t.throttleGlobalUpSpeed)??0};return(0,Z.tZ)(P,{dropdownClickRef:s,dropdownWrapperClass:"dropdown dropdown--speed-limits sidebar__action",handleItemSelect:e=>{null!=e.value&&("download"===e.property?le.Z.saveSetting("throttleGlobalDownSpeed",e.value):"upload"===e.property&&le.Z.saveSetting("throttleGlobalUpSpeed",e.value))},header:(0,Z.BX)("div",{className:"sidebar__icon-button sidebar__icon-button--interactive sidebar__icon-button--limits",title:i,children:[(0,Z.tZ)(l.f9,{}),i]}),menuItems:[he(de({direction:"download"},c)),he(de({direction:"upload"},c))],onOpen:()=>{null!=a.current&&a.current.dismissTooltip()},trigger:(0,Z.tZ)(m.Z,{content:i,position:"bottom",ref:a,wrapperClassName:"sidebar__icon-button tooltip__wrapper",onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.call(s)},children:(0,Z.tZ)(l.f9,{})}),isFocusHandled:!0})}));var Ze=n(8447);var _e={name:"1wfsguk",styles:":focus{outline:none;-webkit-tap-highlight-color:transparent;}"};const be=e=>{let{name:t,icon:n,isActive:r,slug:a,count:i,size:l,handleClick:c}=e;const{i18n:d}=(0,o.mV)(),u=s()("sidebar-filter__item",{"is-active":r});let p=t;if(""===p)p=d._("filter.all");else if("untagged"===p){if(0===i)return null;p=d._("filter.untagged")}return"checking"!==a&&"error"!==a||0!==i?(0,Z.tZ)("li",{children:(0,Z.BX)("button",{className:u,css:_e,type:"button",onClick:e=>c(a,e),role:"menuitem",children:[n,(0,Z.tZ)("span",{className:"name",children:p}),(0,Z.tZ)(Ze.Z,{children:i}),l&&(0,Z.tZ)(E.Z,{value:l,className:"size"})]})}):null};be.defaultProps={icon:void 0,size:void 0};const ge=be,ve=(0,i.Pi)((()=>{const{i18n:e}=(0,o.mV)(),t=[{label:e._("filter.all"),slug:"",icon:(0,Z.tZ)(l.oT,{})},{label:e._("filter.status.downloading"),slug:"downloading",icon:(0,Z.tZ)(l.Cz,{})},{label:e._("filter.status.seeding"),slug:"seeding",icon:(0,Z.tZ)(l.TV,{})},{label:e._("filter.status.checking"),slug:"checking",icon:(0,Z.tZ)(l.$j,{})},{label:e._("filter.status.completed"),slug:"complete",icon:(0,Z.tZ)(l.FG,{})},{label:e._("filter.status.stopped"),slug:"stopped",icon:(0,Z.tZ)(l.dV,{})},{label:e._("filter.status.active"),slug:"active",icon:(0,Z.tZ)(l.ZS,{})},{label:e._("filter.status.inactive"),slug:"inactive",icon:(0,Z.tZ)(l.Rz,{})},{label:e._("filter.status.error"),slug:"error",icon:(0,Z.tZ)(l.jj,{})}].map((e=>(0,Z.tZ)(ge,{handleClick:(e,t)=>ne.Z.setStatusFilters(e,t),count:ne.Z.taxonomy.statusCounts[e.slug]||0,icon:e.icon,isActive:""===e.slug&&!ne.Z.statusFilter.length||ne.Z.statusFilter.includes(e.slug),name:e.label,slug:e.slug},e.slug))),n=e._("filter.status.title");return(0,Z.BX)("ul",{"aria-label":n,className:"sidebar-filter sidebar__item",role:"menu",children:[(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar-filter__item--heading",role:"none",children:n}),t]})})),fe=(0,i.Pi)((()=>{const{i18n:e}=(0,o.mV)(),t=Object.keys(ne.Z.taxonomy.tagCounts);if(1===t.length&&""===t[0]||2===t.length&&"untagged"===t[1])return null;const n=t.slice().sort(((e,t)=>""===e||"untagged"===e?-1:""===t||"untagged"===t?1:e.localeCompare(t))).map((e=>(0,Z.tZ)(ge,{handleClick:(e,t)=>ne.Z.setTagFilters(e,t),count:ne.Z.taxonomy.tagCounts[e]||0,isActive:""===e&&!ne.Z.tagFilter.length||ne.Z.tagFilter.includes(e),name:e,slug:e,size:ne.Z.taxonomy.tagSizes[e]},e))),r=e._("filter.tag.title");return(0,Z.BX)("ul",{"aria-label":r,className:"sidebar-filter sidebar__item",role:"menu",children:[(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar-filter__item--heading",role:"none",children:r}),n]})}));var ye=n(4355);const we=()=>{const{i18n:e}=(0,o.mV)();return(0,Z.tZ)(m.Z,{content:e._(ye.Z.isPreferDark?"sidebar.button.theme.light":"sidebar.button.theme.dark"),onClick:()=>ye.Z.setUserPreferDark(!ye.Z.isPreferDark),position:"bottom",wrapperClassName:"sidebar__action sidebar__icon-button sidebar__icon-button--interactive tooltip__wrapper",children:(0,Z.tZ)(l.R5,{})})},Ne=(0,i.Pi)((()=>{const{i18n:e}=(0,o.mV)(),t=Object.keys(ne.Z.taxonomy.trackerCounts);if(1===t.length&&""===t[0])return null;const n=t.slice().sort(((e,t)=>""===e?-1:""===t?1:e.localeCompare(t))).map((e=>(0,Z.tZ)(ge,{handleClick:(e,t)=>ne.Z.setTrackerFilters(e,t),count:ne.Z.taxonomy.trackerCounts[e]||0,isActive:""===e&&!ne.Z.trackerFilter.length||ne.Z.trackerFilter.includes(e),name:e,slug:e,size:ne.Z.taxonomy.trackerSizes[e]},e))),r=e._("filter.tracker.title");return(0,Z.BX)("ul",{"aria-label":r,className:"sidebar-filter sidebar__item",role:"menu",children:[(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar-filter__item--heading",role:"none",children:r}),n]})}));var ke=n(8699),Ce=n(1909),Se=n(9509),Pe=n(228);const Oe={download:(0,Z.tZ)(l.UW,{}),infinity:(0,Z.tZ)(l.ZG,{}),upload:(0,Z.tZ)(l.gq,{})},Te=(0,i.Pi)((e=>{let{inspectorPoint:t}=e;const{i18n:n}=(0,o.mV)(),r=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{throttleGlobalDownSpeed:a=0,throttleGlobalUpSpeed:i=0}=d.Z.clientSettings||{},{transferSummary:o}=Se.Z,l={download:a,upload:i},c={download:o.downTotal,upload:o.upTotal};let u={download:o.downRate,upload:o.upRate};null!=t&&(u={upload:t.upload,download:t.download});const p=s()("client-stats__rate__data--secondary",{"is-visible":null==t&&Ce.Z.isConnected}),h=s()("client-stats__rate__data--timestamp",{"is-visible":null!=t&&r.showHoverDuration});let m=null;null!=(null==t?void 0:t.timestamp)&&(m=(0,Z.tZ)("div",{className:h,children:(0,Z.tZ)(Pe.Z,{suffix:n._("general.ago"),value:Math.trunc((Date.now()-t.timestamp)/1e3)})}));let _=null;return _=0===l[e]?Oe.infinity:(0,Z.tZ)(E.Z,{value:l[e],isSpeed:!0}),(0,Z.BX)("div",{className:`client-stats__rate client-stats__rate--${e}`,children:[(0,Z.tZ)("div",{className:"client-stats__rate__icon",children:Oe[e]}),(0,Z.BX)("div",{className:"client-stats__rate__data",children:[(0,Z.tZ)("div",{className:"client-stats__rate__data--primary",children:(0,Z.tZ)(E.Z,{value:u[e],isSpeed:!0})}),m,(0,Z.BX)("div",{className:p,children:[(0,Z.tZ)("div",{className:"client-stats__rate__data--total",children:(0,Z.tZ)(E.Z,{value:c[e]})}),(0,Z.tZ)("div",{className:"client-stats__rate__data--limit",children:_})]})]})]})};return(0,Z.BX)("div",{className:"client-stats__rates",children:[r("download",{showHoverDuration:!0}),r("upload")]})})),Re=Te;var xe=n(9786),Be=n(3419),$e=n(7281),Xe=n(8776),je=n(5622);const Me=e=>{let{direction:t}=e;return(0,Z.BX)("linearGradient",{id:`graph__gradient--${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,Z.tZ)("stop",{className:`graph__gradient--top graph__gradient--top--${t}`,offset:"0%"}),(0,Z.tZ)("stop",{className:`graph__gradient--bottom graph__gradient--bottom--${t}`,offset:"100%"})]})},De=(e,t,n)=>{const r=e[t][Math.ceil(n)],a=e[t][Math.floor(n)];return a+n%1*(r-a)},He=(0,i.Pi)((e=>{let{id:t,height:n,width:a,handlerRefs:s,onHover:i,onMouseOut:o}=e;const[l,c]=(0,r.useState)(!1),d=(0,r.useRef)(0),u=(0,r.useRef)({download:0,upload:0,timestamp:0}),p=Se.Z.transferRates,h=(0,je.Z)().domain([0,p.download.length-1]).range([0,a]),m=(0,je.Z)().domain([0,(0,Xe.Z)(p.download,((e,t)=>Math.max(e,p.upload[t])))]).range([n-10,10]);s.current={handleMouseMove:e=>{d.current=h.invert(e),i(u.current)},handleMouseOut:()=>{c(!1),o()},handleMouseOver:()=>{c(!0)}},l&&(u.current={download:De(p,"download",d.current),upload:De(p,"upload",d.current),timestamp:p.timestamps[Math.round(d.current)]});const _=xe.Z;return(0,Z.BX)("svg",{className:"graph",id:t,children:[(0,Z.BX)("defs",{children:[(0,Z.tZ)(Me,{direction:"upload"}),(0,Z.tZ)(Me,{direction:"download"})]}),Se.e.map((e=>[(0,Z.tZ)("path",{className:"graph__area",fill:`url('#graph__gradient--${e}')`,d:(0,Be.Z)().x(((e,t)=>h(t)||0)).y0(n).y1((e=>m(e)||0)).curve(_)(p[e])},`area-${e}`),(0,Z.tZ)("path",{className:`graph__line graph__line--${e}`,d:(0,$e.Z)().x(((e,t)=>h(t)||0)).y((e=>m(e)||0)).curve(_)(p[e])},`line-${e}`),(0,Z.tZ)("circle",{className:`graph__circle graph__circle--${e}`,r:2.5,style:{opacity:l?1:0},transform:`translate(${h(d.current)},${m(u.current[e])})`},`point-${e}`)]))]})})),Ee=He,Ae=(0,i.Pi)((()=>{const[e,t]=(0,r.useState)(null),[n,a]=(0,r.useState)(0),s=(0,r.useRef)(null);return(0,Z.tZ)(ke.Z,{offset:!0,onResize:e=>{null!=e.offset&&a(e.offset.width)},children:r=>{let{measureRef:a}=r;return(0,Z.tZ)("div",{ref:a,className:"client-stats__wrapper sidebar__item",children:(0,Z.BX)("div",{className:"client-stats",onMouseMove:e=>{var t,n;null!=(null==e||null===(t=e.nativeEvent)||void 0===t?void 0:t.clientX)&&(null===(n=s.current)||void 0===n||n.handleMouseMove(e.nativeEvent.clientX))},onMouseOver:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.handleMouseOver()},onMouseOut:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.handleMouseOut()},onFocus:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.handleMouseOver()},onBlur:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.handleMouseOut()},children:[(0,Z.tZ)(Re,{inspectorPoint:e}),Ce.Z.isConnected&&(0,Z.tZ)(Ee,{height:150,id:"transfer-rate-graph",onMouseOut:()=>{t(null)},onHover:e=>{t(e)},handlerRefs:s,width:n})]})})}})})),Le=Ae,Ie=()=>(0,Z.BX)(D.E,{options:{scrollbars:{autoHide:"scroll",clickScrolling:!1,dragScrolling:!1},className:"application__sidebar os-theme-thin"},children:[(0,Z.BX)(se,{children:[(0,Z.tZ)(me,{}),(0,Z.tZ)(ae,{}),(0,Z.tZ)(G,{}),(0,Z.tZ)(te,{}),(0,Z.tZ)(W.Z,{})]}),(0,Z.tZ)(Le,{}),(0,Z.tZ)(re,{}),(0,Z.tZ)(ve,{}),(0,Z.tZ)(fe,{}),(0,Z.tZ)(Ne,{}),(0,Z.tZ)(U,{}),(0,Z.tZ)("div",{style:{flexGrow:1}}),(0,Z.tZ)(se,{children:(0,Z.tZ)(we,{})})]});var ze=n(8949),Fe=n(9929),Ve=n(8441),Ue=n(2433);const Ge=(0,i.Pi)((e=>{var t,n,r;let{id:a}=e;const i=(null===(t=h.Z.activeContextMenu)||void 0===t?void 0:t.id)===a,l=(null===(n=h.Z.activeContextMenu)||void 0===n?void 0:n.items)??[],c=(null===(r=h.Z.activeContextMenu)||void 0===r?void 0:r.clickPosition)??{x:0,y:0},{i18n:d}=(0,o.mV)();return(0,N.Z)("Escape",(()=>h.Z.dismissContextMenu(a))),(0,Z.tZ)(Ve.xV,{triggerCoordinates:c,onOverlayClick:()=>{h.Z.dismissContextMenu(a)},onOverlayRightClick:e=>{e.preventDefault()},isIn:i,children:l.map(((e,t)=>{let n,r;if("action"===e.type)r=s()("menu__item",{"is-selectable":e.clickHandler}),n=(0,Z.BX)("span",{children:[(0,Z.BX)("span",{className:s()("menu__item__label--primary",{"has-action":e.labelAction}),children:[(0,Z.tZ)("span",{className:"menu__item__label",children:d._(e.label)}),e.labelAction?(0,Z.tZ)("span",{className:"menu__item__label__action",children:(0,Z.tZ)(e.labelAction,{})}):void 0]}),e.labelSecondary?(0,Z.tZ)("span",{className:"menu__item__label--secondary",children:(0,Z.tZ)(e.labelSecondary,{})}):void 0]});else r=s()("menu__item",{"menu__item--separator":"separator"===e.type});return(0,Z.tZ)("li",{className:r,children:(0,Z.tZ)("button",{type:"button",disabled:"action"!==e.type||!e.clickHandler,onClick:t=>("separator"!==e.type&&(!1===e.dismissMenu&&t.nativeEvent.stopImmediatePropagation(),e.clickHandler&&e.clickHandler(t),!1!==e.dismissMenu&&h.Z.dismissContextMenu(a)),!1),onContextMenu:e=>{e.preventDefault()},children:n})},"action"===e.type?e.action:`sep-${t}`)}))})})),We=Ge;var qe=n(4356),Ke=n(5603);function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const et=(0,r.forwardRef)(((e,t)=>{const{children:n,className:a,onScroll:s}=e,i=(0,r.useRef)(null);return(0,r.useEffect)((()=>{var e;const n=i.current;if(null==n)return()=>{};const r=null===(e=n.osInstance())||void 0===e?void 0:e.getElements().viewport;return t(r),s&&r.addEventListener("scroll",(e=>s(e)),{passive:!0}),()=>{s&&r.removeEventListener("scroll",(e=>s(e)))}}),[s,t]),(0,Z.tZ)(D.E,Ye(Ye({},e),{},{options:{scrollbars:{autoHide:"leave",clickScrolling:!0},className:a},ref:i,children:n}))})),tt=(0,r.forwardRef)(((e,t)=>{const{className:n,itemCount:r,itemKey:a,itemRenderer:s,itemSize:i,outerRef:o}=e,{height:l}=(0,Ke.Z)();return(0,Z.tZ)(qe.t7,{className:`${n} ${ye.Z.isPreferDark?"os-theme-light":"os-theme-dark"}`,height:Math.max(30*i,l),itemCount:r,itemKey:a,itemSize:i,width:"100%",outerElementType:ye.Z.isSmallScreen?void 0:et,ref:t,overscanCount:30,outerRef:o,children:s})})),nt=(0,i.Pi)(tt);var rt=n(4656);const at="\n body { user-select: none !important; }\n * { cursor: col-resize !important; }\n";var st={name:"3v16dc",styles:"text-align:left;:focus{outline:none;-webkit-tap-highlight-color:transparent;}"};const it=(0,i.Pi)((0,r.forwardRef)(((e,t)=>{let{onCellClick:n,onCellFocus:a,onWidthsChange:i}=e;const[l,c]=(0,r.useState)(!1),u=(0,r.useRef)(),p=(0,r.useRef)(),m=(0,r.useRef)(),_=(0,rt.Z)(t),b=(0,r.useRef)(null),{i18n:g}=(0,o.mV)(),v=e=>{let t=0;null!=m.current&&(t=e.clientX-m.current);let n=20;null!=p.current&&(n=p.current+t),n>20&&(p.current=n,m.current=e.clientX,null!=b.current&&null!=_.current&&(b.current.style.transform=`translate(${Math.max(0,e.clientX)}px, ${_.current.getBoundingClientRect().top}px)`))},f=()=>{h.Z.removeGlobalStyle(at),window.removeEventListener("pointerup",f),window.removeEventListener("pointermove",v),c(!1),m.current=void 0,null!=b.current&&(b.current.style.opacity="0"),null!=u.current&&null!=p.current&&i(u.current,p.current),u.current=void 0,p.current=void 0};return(0,Z.BX)("div",{className:"table__row table__row--heading",role:"row",ref:_,children:[d.Z.floodSettings.torrentListColumns.reduce(((e,t)=>{let{id:r,visible:i}=t;if(!i)return e;const y=O.Z[r];if(null==y)return e;let w=null;const N=d.Z.floodSettings.torrentListColumnWidths[r]||100;l||(w=(0,Z.tZ)("span",{className:"table__heading__handle",onPointerDown:e=>{l||null==b.current||null==_.current||(c(!0),u.current=r,p.current=N,m.current=e.clientX,window.addEventListener("pointerup",f),window.addEventListener("pointermove",v),h.Z.addGlobalStyle(at),b.current.style.transform=`translate(${Math.max(0,e.clientX)}px, ${_.current.getBoundingClientRect().top}px)`,b.current.style.opacity="1")}}));const k=r===d.Z.floodSettings.sortTorrents.property,C=s()("table__cell table__heading",{"table__heading--is-sorted":k,[`table__heading--direction--${d.Z.floodSettings.sortTorrents.direction}`]:k});return e.push((0,Z.BX)("button",{className:C,css:st,role:"columnheader","aria-sort":k?"asc"===d.Z.floodSettings.sortTorrents.direction?"ascending":"descending":"none",type:"button",onClick:()=>n(r),onFocus:()=>a(),style:{width:`${N}px`},children:[(0,Z.tZ)("span",{className:"table__heading__label",title:g._(y),children:(0,Z.tZ)(o.cC,{id:y})}),w]},r)),e}),[]),(0,Z.tZ)("div",{className:"table__cell table__heading table__heading--fill"}),(0,Z.tZ)("div",{className:"table__heading__resize-line",ref:b})]})}))),ot=it;var lt=n(463);function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pt=e=>{const t=[];e.forEach((n=>{const r=new FileReader;r.onload=n=>{var r,a,s,i;null!=(null===(r=n.target)||void 0===r?void 0:r.result)&&"string"==typeof n.target.result&&(a=n.target.result.split("base64,")[1],t.push(a),t.length===e.length&&null!=t[0]&&u.Z.addTorrentsByFiles({files:t,destination:(null===(s=d.Z.floodSettings.torrentDestinations)||void 0===s?void 0:s[""])??(null===(i=d.Z.clientSettings)||void 0===i?void 0:i.directoryDefault)??"",isBasePath:!1,start:d.Z.floodSettings.startTorrentsOnLoad}))},r.readAsDataURL(n)}))},ht=e=>{let{children:t}=e;const{getRootProps:n,isDragActive:r}=(0,lt.uI)({onDrop:pt,noClick:!0,noKeyboard:!0});return(0,Z.tZ)("div",dt(dt({},n({onClick:e=>e.preventDefault()})),{},{className:"dropzone dropzone--with-overlay torrents "+(r?"dropzone--is-dragging":""),children:t}))};var mt=n(1773),Zt=n(1109),_t=n(8737),bt=n(2036);const gt=()=>p.Z.selectedTorrents[p.Z.selectedTorrents.length-1],vt=(0,i.Pi)((e=>{let{property:t}=e;return(0,Z.tZ)("span",{className:"toggle-input checkbox",style:{display:"inline"},children:(0,Z.tZ)("div",{className:"toggle-input__indicator",children:(0,Z.tZ)("div",{className:"toggle-input__indicator__icon",style:{opacity:p.Z.torrents[gt()][t]?"1":void 0},children:(0,Z.tZ)(l.MC,{})})})})})),ft=e=>{const t=(0,r.createRef)();return[{type:"action",action:"start",label:_t.Z.start,clickHandler:()=>{u.Z.startTorrents({hashes:p.Z.selectedTorrents})}},{type:"action",action:"stop",label:_t.Z.stop,clickHandler:()=>{u.Z.stopTorrents({hashes:p.Z.selectedTorrents})}},{type:"action",action:"remove",label:_t.Z.remove,clickHandler:()=>{h.Z.setActiveModal({id:"remove-torrents"})}},{type:"action",action:"checkHash",label:_t.Z.checkHash,clickHandler:()=>{u.Z.checkHash({hashes:p.Z.selectedTorrents})}},{type:"action",action:"reannounce",label:_t.Z.reannounce,clickHandler:()=>{u.Z.reannounce({hashes:p.Z.selectedTorrents})}},{type:"separator"},{type:"action",action:"setTaxonomy",label:_t.Z.setTaxonomy,clickHandler:()=>{h.Z.setActiveModal({id:"set-taxonomy"})}},{type:"action",action:"move",label:_t.Z.move,clickHandler:()=>{h.Z.setActiveModal({id:"move-torrents"})}},{type:"action",action:"setTrackers",label:_t.Z.setTrackers,clickHandler:()=>{h.Z.setActiveModal({id:"set-trackers"})}},{type:"separator"},{type:"action",action:"torrentDetails",label:_t.Z.torrentDetails,clickHandler:()=>{h.Z.setActiveModal({id:"torrent-details",hash:gt()})}},{type:"action",action:"downloadContents",label:_t.Z.downloadContents,clickHandler:e=>{e.preventDefault(),p.Z.selectedTorrents.forEach((e=>{const t=document.createElement("a");t.download="",t.href=`${ye.Z.baseURI}api/torrents/${e}/contents/all/data`,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}))}},{type:"action",action:"downloadMetainfo",label:_t.Z.downloadMetainfo,clickHandler:e=>{e.preventDefault();const t=document.createElement("a");t.download="",t.href=`${ye.Z.baseURI}api/torrents/${p.Z.selectedTorrents.join(",")}/metainfo`,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},{type:"action",action:"generateMagnet",label:_t.Z.generateMagnet,clickHandler:()=>{h.Z.setActiveModal({id:"generate-magnet"})}},{type:"action",action:"setInitialSeeding",label:_t.Z.setInitialSeeding,clickHandler:()=>{const{selectedTorrents:e}=p.Z;u.Z.setInitialSeeding({hashes:e,isInitialSeeding:!p.Z.torrents[gt()].isInitialSeeding})},dismissMenu:!1,labelAction:()=>(0,Z.tZ)(vt,{property:"isInitialSeeding"})},{type:"action",action:"setSequential",label:_t.Z.setSequential,clickHandler:()=>{const{selectedTorrents:e}=p.Z;u.Z.setSequential({hashes:e,isSequential:!p.Z.torrents[gt()].isSequential})},dismissMenu:!1,labelAction:()=>(0,Z.tZ)(vt,{property:"isSequential"})},{type:"action",action:"setPriority",label:_t.Z.setPriority,clickHandler:()=>{null!=t.current&&u.Z.setPriority({hashes:p.Z.selectedTorrents,priority:t.current()})},dismissMenu:!1,labelAction:()=>(0,Z.tZ)(bt.Z,{id:e.hash,level:e.priority,maxLevel:3,onChange:()=>{},priorityType:"torrent",showLabel:!1,changePriorityFuncRef:t,clickHandled:!0},e.hash)}]};const yt={eta:(0,Z.tZ)(l.SU,{}),sizeBytes:(0,Z.tZ)(l.Zd,{}),downRate:(0,Z.tZ)(l.ki,{}),directory:(0,Z.tZ)(l.Bm,{}),hash:(0,Z.tZ)(l.kb,{}),dateAdded:(0,Z.tZ)(l.f,{}),dateCreated:(0,Z.tZ)(l.Oo,{}),isPrivate:(0,Z.tZ)(l.HE,{}),message:(0,Z.tZ)(l.Ey,{}),percentComplete:(0,Z.tZ)(l.ki,{}),peers:(0,Z.tZ)(l.Ib,{}),ratio:(0,Z.tZ)(l.T_,{}),seeds:(0,Z.tZ)(l.O5,{}),trackerURIs:(0,Z.tZ)(l.Fk,{}),upRate:(0,Z.tZ)(l.u3,{}),upTotal:(0,Z.tZ)(l.u3,{})},wt=(0,i.Pi)((e=>{let{value:t}=e;return t?(0,Z.tZ)(l.FV,{className:"torrent__detail__icon torrent__detail__icon--checkmark"}):null})),Nt=(0,i.Pi)((e=>{let{date:t}=e;const{i18n:n}=(0,o.mV)();return(0,Z.tZ)("span",{children:n.date(new Date(1e3*t))})})),kt=(0,i.Pi)((e=>{let{eta:t}=e;return t?(0,Z.tZ)(Pe.Z,{value:t}):null})),Ct=(0,i.Pi)((e=>{let{peersConnected:t,totalPeers:n}=e;const{i18n:r}=(0,o.mV)();return(0,Z.tZ)(o.cC,{id:"torrent.list.peers",values:{connected:r.number(t),of:(0,Z.tZ)("em",{className:"unit",children:(0,Z.tZ)(o.cC,{id:"torrent.list.peers.of"})}),total:r.number(n)}})})),St=(0,i.Pi)((e=>{let{ratio:t}=e;const{i18n:n}=(0,o.mV)();return(0,Z.tZ)("span",{children:n.number(t,{maximumFractionDigits:2})})})),Pt=(0,i.Pi)((e=>{let{tags:t}=e;return(0,Z.tZ)("ul",{className:"torrent__tags tag",children:t.map((e=>(0,Z.tZ)("li",{className:"torrent__tag",children:e},e)))})})),Ot=(0,i.Pi)((e=>{let{trackers:t}=e;return(0,Z.tZ)("span",{children:t.join(", ")})})),Tt=(0,i.Pi)((e=>{let{torrent:t,column:n}=e;switch(n){case"dateAdded":case"dateCreated":return(0,Z.tZ)(Nt,{date:t[n]});case"downRate":case"upRate":return(0,Z.tZ)(E.Z,{value:t[n],isSpeed:!0});case"downTotal":case"upTotal":case"sizeBytes":return(0,Z.tZ)(E.Z,{value:t[n]});case"ratio":return(0,Z.tZ)(St,{ratio:t[n]});case"isPrivate":return(0,Z.tZ)(wt,{value:t[n]});case"tags":return(0,Z.tZ)(Pt,{tags:t[n]});case"trackerURIs":return(0,Z.tZ)(Ot,{trackers:t[n]});case"eta":return(0,Z.tZ)(kt,{eta:t[n]});case"seeds":return(0,Z.tZ)(Ct,{peersConnected:t.seedsConnected,totalPeers:t.seedsTotal});case"peers":return(0,Z.tZ)(Ct,{peersConnected:t.peersConnected,totalPeers:t.peersTotal});case"percentComplete":return(0,Z.tZ)(A.Z,{percent:(0,ze.Fl)((()=>Math.ceil(t.percentComplete))).get(),status:(0,ze.Fl)((()=>(0,Zt.o)(t.status))).get()});default:return(0,Z.tZ)("span",{children:t[n]})}}));var Rt={name:"1te7sjq",styles:"pointer-events:none;user-select:none"};const xt=(0,i.Pi)((e=>{let{hash:t,content:n,column:r,className:a,classNameOverride:i,width:o,showIcon:c}=e;const d=c?yt[r]:null;return(0,Z.BX)("div",{className:i?a:s()("torrent__detail",`torrent__detail--${r}`,a),css:Rt,role:"cell",style:{width:`${o}px`},children:[d,n?(0,Z.tZ)(n,{torrent:p.Z.torrents[t],column:r}):(0,Z.tZ)(l._P,{})]})}));xt.defaultProps={className:void 0,classNameOverride:!1,content:Tt,width:void 0,showIcon:!1};const Bt=xt,$t=(0,i.Pi)((0,r.forwardRef)(((e,t)=>{let{className:n,style:r,hash:a,handleClick:s,handleDoubleClick:i,handleRightClick:o,handleTouchStart:l,handleTouchEnd:c,handleKeyPress:u}=e;const p=d.Z.floodSettings.torrentListColumns.reduce(((e,t)=>{let{id:n,visible:r}=t;return null==O.Z[n]?e:r?(e.push((0,Z.tZ)(Bt,{className:"table__cell",hash:a,column:n,width:d.Z.floodSettings.torrentListColumnWidths[n]},n)),e):e}),[]);return(0,Z.tZ)("div",{className:n,role:"row",style:r,tabIndex:0,onClick:e=>s(a,e),onContextMenu:e=>o(a,e),onDoubleClick:()=>i(a),onTouchStart:l,onTouchEnd:c,onKeyPress:u,ref:t,children:p})}))),Xt=$t;const jt=(0,i.Pi)((e=>{let{torrent:t}=e;const{i18n:n}=(0,o.mV)();return(0,Z.BX)("span",{children:[n.number(t.percentComplete,{maximumFractionDigits:1}),(0,Z.tZ)("em",{className:"unit",children:"%"})," — ",(0,Z.tZ)(E.Z,{value:t.downTotal})]})}));var Mt={name:"1vr7vmn",styles:"align-items:center;display:flex"};const Dt=(0,i.Pi)((0,r.forwardRef)(((e,t)=>{let{className:n,style:r,hash:a,handleClick:s,handleDoubleClick:i,handleRightClick:o,handleTouchStart:l,handleTouchEnd:c,handleKeyPress:u}=e;const p=d.Z.floodSettings.torrentListColumns,h=[(0,Z.tZ)(Bt,{hash:a,column:"name",className:"torrent__details__section torrent__details__section--primary"},"name")],m=[(0,Z.tZ)(Bt,{hash:a,column:"eta",showIcon:!0},"eta"),(0,Z.tZ)(Bt,{hash:a,column:"downRate",showIcon:!0},"downRate"),(0,Z.tZ)(Bt,{hash:a,column:"upRate",showIcon:!0},"upRate")],_=[(0,Z.tZ)(Bt,{hash:a,column:"percentComplete",content:jt,showIcon:!0},"percentComplete")],b=[(0,Z.tZ)(Bt,{hash:a,column:"percentComplete",className:"torrent__details__section torrent__details__section--quaternary",classNameOverride:!0},"percentBar")];for(let e=0;e<p.length;e+=1){const{id:t,visible:n}=p[e];if(null!=O.Z[t]&&n)switch(t){case"name":case"downRate":case"upRate":case"eta":case"downTotal":case"percentComplete":break;default:_.push((0,Z.tZ)(Bt,{hash:a,column:t,showIcon:!0},t))}}return(0,Z.BX)("div",{className:n,role:"row",style:r,tabIndex:0,onClick:e=>s(a,e),onContextMenu:e=>o(a,e),onDoubleClick:()=>i(a),onTouchStart:l,onTouchEnd:c,onKeyPress:u,ref:t,children:[(0,Z.BX)("div",{css:Mt,children:[h,(0,Z.tZ)("div",{className:"torrent__details__section torrent__details__section--secondary",children:m})]}),(0,Z.tZ)("div",{className:"torrent__details__section torrent__details__section--tertiary",children:_}),b]})}))),Ht=Dt,Et=(e,t)=>{var n,r;!0===t.cancelable&&t.preventDefault();const a=t.clientX,s=t.clientY,i=null===(n=t.touches)||void 0===n?void 0:n[0].clientX,o=null===(r=t.touches)||void 0===r?void 0:r[0].clientY;p.Z.selectedTorrents.includes(e)||p.Z.setSelectedTorrents({hash:e,event:t});const{torrentContextMenuActions:l=Ue.Z.torrentContextMenuActions}=d.Z.floodSettings,c=p.Z.torrents[e];h.Z.setActiveContextMenu({id:"torrent-list-item",clickPosition:{x:a||i||0,y:s||o||0},items:ft(c).filter((e=>"separator"===e.type||l.some((t=>t.id===e.action&&!0===t.visible))))})},At=e=>h.Z.setActiveModal({id:"torrent-details",hash:e}),Lt=(e,t)=>p.Z.setSelectedTorrents({hash:e,event:t}),It=(e,t)=>{" "!==t.key&&"Enter"!==t.key&&"ContextMenu"!==t.key||(t.preventDefault(),p.Z.selectedTorrents.includes(e)?"Enter"===t.key?At(e):"ContextMenu"===t.key&&Et(e,t):Lt(e,t))},zt=(0,i.Pi)((e=>{var t;let{hash:n,style:a}=e;const[i,o]=(0,r.useState)(0),l=(0,r.useRef)(!1),c=(0,r.useRef)(null),u="condensed"===d.Z.floodSettings.torrentListViewSize,h=(0,ze.Fl)((()=>p.Z.selectedTorrents.includes(n))).get(),{status:m,upRate:_,downRate:b}=(null===(t=p.Z.torrents)||void 0===t?void 0:t[n])||{},g=(0,Zt.T)({status:m,upRate:_,downRate:b},s()({"torrent--is-selected":h,"torrent--is-condensed":u,"torrent--is-expanded":!u}),"torrent"),{onTouchStart:v,onTouchEnd:f}=(0,mt.Z)((e=>{var t;const r=null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect().top;null!=e&&null!=r&&Math.abs(r-i)<25&&Et(n,e)})),y=e=>{var t;p.Z.selectedTorrents.includes(n)||Lt(n,e),l.current?At(n):(l.current=!0,setTimeout((()=>{l.current=!1}),200)),o((null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect().top)||0),v(e)};return u?(0,Z.tZ)(Xt,{className:g,ref:c,style:a,hash:n,handleClick:Lt,handleDoubleClick:At,handleRightClick:Et,handleTouchStart:y,handleTouchEnd:f,handleKeyPress:e=>It(n,e)}):(0,Z.tZ)(Ht,{className:g,ref:c,style:a,hash:n,handleClick:Lt,handleDoubleClick:At,handleRightClick:Et,handleTouchStart:y,handleTouchEnd:f,handleKeyPress:e=>It(n,e)})})),Ft=zt;function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wt=(0,i.Pi)((e=>{let{index:t,style:n}=e;return(0,Z.tZ)(Ft,{hash:p.Z.filteredTorrents[t].hash,style:n})})),qt=(0,i.Pi)((()=>{const e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null);(0,r.useEffect)((()=>(0,ze.U5)((()=>ne.Z.filterTrigger),(()=>{null!=t.current&&t.current.scrollTo(0)}))),[]),(0,Fe.Z)("keydown",(e=>{const{ctrlKey:t,key:n,metaKey:r,repeat:a,target:s}=e,i=null==s?void 0:s.tagName.toUpperCase();"INPUT"!==i&&"TEXTAREA"!==i&&(a||(r||t)&&"a"===n&&(e.preventDefault(),p.Z.selectAllTorrents()))}));const a=p.Z.filteredTorrents,{torrentListViewSize:s="condensed"}=d.Z.floodSettings,i="condensed"===s,u=null==a||0===a.length;let h=null,m=null;return Ce.Z.isConnected?u||null==a?h=(0,Z.BX)("div",{className:"torrents__alert__wrapper",children:[(0,Z.tZ)("div",{className:"torrents__alert",children:(0,Z.tZ)(o.cC,{id:"torrents.list.no.torrents"})}),ne.Z.isFilterActive&&(0,Z.tZ)("div",{className:"torrents__alert__action",children:(0,Z.tZ)(Ve.zx,{onClick:()=>{ne.Z.clearAllFilters()},priority:"tertiary",children:(0,Z.tZ)(o.cC,{id:"torrents.list.clear.filters"})})})]}):(i&&(m=(0,Z.tZ)(ot,{onCellFocus:()=>{null!=n.current&&null!=e.current&&(n.current.scrollLeft=e.current.scrollLeft)},onCellClick:e=>{const t=d.Z.floodSettings.sortTorrents;let n=g[e]??"asc";t.property===e&&(n="asc"===t.direction?"desc":"asc");const r={property:e,direction:n};c.Z.saveSetting("sortTorrents",r)},onWidthsChange:(e,t)=>{const{torrentListColumnWidths:n=Ue.Z.torrentListColumnWidths}=d.Z.floodSettings;c.Z.saveSetting("torrentListColumnWidths",Ut(Ut({},n),{},{[e]:t}))},ref:e})),h=(0,Z.tZ)(nt,{className:"torrent__list__viewport",itemCount:a.length,itemKey:e=>p.Z.filteredTorrents[e].hash,itemRenderer:Wt,itemSize:i?30:70,ref:t,outerRef:t=>{const r=t;null!=r&&null==r.onscroll&&(r.onscroll=()=>{null!=e.current&&(e.current.scrollLeft=r.scrollLeft)}),n.current=r}})):h=(0,Z.tZ)("div",{className:"torrents__alert__wrapper",children:(0,Z.tZ)("div",{className:"torrents__alert",children:(0,Z.tZ)(o.cC,{id:"torrents.list.cannot.connect"})})}),(0,Z.BX)(ht,{children:[(0,Z.BX)("div",{className:"torrent__list__wrapper",role:"table",children:[(0,Z.tZ)(We,{id:"torrent-list-item"}),m,h]}),(0,Z.tZ)("div",{className:"dropzone__overlay",children:(0,Z.BX)("div",{className:"dropzone__copy",children:[(0,Z.tZ)("div",{className:"dropzone__icon",children:(0,Z.tZ)(l.hv,{})}),(0,Z.tZ)(o.cC,{id:"torrents.list.drop"})]})})]})}));n(3649);const Kt=(0,r.lazy)((()=>n.e(33).then(n.bind(n,3975)))),Qt=(0,r.lazy)((()=>Promise.all([n.e(183),n.e(535)]).then(n.bind(n,4535)))),Yt=()=>((0,r.useEffect)((()=>{M.Z.startActivityStream()}),[]),(0,Z.BX)(j.Z,{children:[(0,Z.tZ)(Ie,{}),(0,Z.BX)(B,{children:[(0,Z.BX)(X,{modifier:"torrent-list",className:"view--torrent-list",children:[(0,Z.tZ)(x,{}),(0,Z.tZ)(qt,{})]}),(0,Z.tZ)(Qt,{}),(0,Z.tZ)(Kt,{})]})]}))},2258:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(2159),a=n(2656),s=n(5954);const i=()=>(0,s.tZ)(a.Z,{modifier:"auth-form",children:(0,s.tZ)(r.Z,{mode:"register"})})},1109:(e,t,n)=>{n.d(t,{T:()=>s,o:()=>i});var r=n(4184),a=n.n(r);const s=function(e){let{status:t,downRate:n,upRate:r}=e;for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;o<s;o++)i[o-1]=arguments[o];return a()(i,{"torrent--has-error":t.includes("error"),"torrent--is-stopped":t.includes("stopped"),"torrent--is-downloading":t.includes("downloading"),"torrent--is-downloading--actively":n>0,"torrent--is-uploading--actively":r>0,"torrent--is-seeding":t.includes("seeding"),"torrent--is-completed":t.includes("complete"),"torrent--is-checking":t.includes("checking"),"torrent--is-inactive":t.includes("inactive")})},i=e=>{let t="stopped";return["error","checking","stopped","downloading","seeding"].some((n=>!!e.includes(n)&&(t=n,!0))),t}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[443],{6641:(e,t,s)=>{const a=s(7294);e.exports={attributes:{},react:function(e){Object.keys(e).forEach((function(t){this[t]=e[t]}));return a.createElement("div",{className:"frontmatter-markdown"},a.createElement("h1",null,"Flood ",a.createElement(FloodVersion,null)),a.createElement("p",null,a.createElement("a",{href:"https://www.npmjs.com/flood"},a.createElement("img",{src:"https://img.shields.io/npm/v/flood?label=Latest%20Release",alt:"Latest release badge"}))," ",a.createElement(CommitBadge,null)),a.createElement("p",null,a.createElement("a",{href:"https://github.com/jesec/flood/actions"},a.createElement("img",{src:"https://github.com/jesec/flood/workflows/Build/badge.svg?branch=master&event=push",alt:"Github Actions build status badge"}))," ",a.createElement("a",{href:"https://crowdin.com/project/flood"},a.createElement("img",{src:"https://badges.crowdin.net/flood/localized.svg",alt:"Crowdin"}))," ",a.createElement("a",{href:"https://discord.gg/Z7yR5Uf"},a.createElement("img",{src:"https://img.shields.io/discord/418267176873623553.svg?style=flat-square",alt:"Discord server badge"}))),a.createElement("p",null,"Flood is a monitoring service for various torrent clients. It's a Node.js service that communicates with your favorite torrent client and serves a decent web UI for administration. This project is based on the ",a.createElement("a",{href:"https://github.com/Flood-UI/flood"},"original Flood project"),"."),a.createElement("h4",null,"Feedback"),a.createElement("p",null,"If you have a specific issue or bug, please file a ",a.createElement("a",{href:"https://github.com/jesec/flood/issues"},"GitHub issue"),". Please join the ",a.createElement("a",{href:"https://discord.gg/Z7yR5Uf"},"Flood Discord server")," to discuss feature requests and implementation details."),a.createElement("h4",null,"More Information"),a.createElement("p",null,"Check out the ",a.createElement("a",{href:"https://github.com/jesec/flood/wiki"},"Wiki")," for more information."))}}},2180:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/am.c84ee0cf.png"},7679:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/bg.d9346b96.png"},9339:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/bh.f06d5914.png"},2226:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/bo.8fb15fc6.png"},3998:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/cr.c895e035.png"},9522:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/dk.da382fe2.png"},3442:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/es.2a6eaee4.png"},7017:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/fj.7724d800.png"},299:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/ga.77ed474c.png"},3807:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/gr.26f3ac0b.png"},5611:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/gt.9d81c52e.png"},9132:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/hu.bb30f05d.png"},3557:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/ie.b4dd1f19.png"},7678:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/ke.ab2e43b8.png"},5647:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/lu.c9872bc1.png"},8833:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/mn.dc1daa04.png"},6747:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/mw.960cd4fb.png"},8034:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/na.472666a9.png"},1176:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/ni.7140131c.png"},2263:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/ru.a9b948c1.png"},4501:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/rw.e8aecba0.png"},9435:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/sd.19c94faa.png"},2803:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/sl.4b174b1c.png"},6275:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/th.683600c7.png"},3727:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/tj.d20c5570.png"},2888:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/tm.15960215.png"},7049:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/va.a29e1b53.png"},3104:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/vn.7d2eff1b.png"},1047:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/ye.311a0e50.png"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[33],{3975:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var p=a(4537),s=a(8983),i=a(1647),c=a(4184),d=a.n(c),n=a(3799),r=a(3768),o=a(4916),m=a(5954);const l=(0,i.Pi)((t=>{const{id:e}=t,{count:a,type:p}=r.Z.alerts[e]||{};if(null==e||null==a||null==p)return null;const s=d()("alert",{"is-success":"success"===p,"is-error":"error"===p});let i=(0,m.tZ)(o.K9,{});return"error"===p&&(i=(0,m.tZ)(o.o7,{})),(0,m.BX)("li",{className:s,children:[i,(0,m.tZ)("span",{className:"alert__content",children:(0,m.tZ)(n.cC,{id:e,values:{count:a,countElement:(0,m.tZ)("span",{className:"alert__count",children:a})}})})]})})),g=(0,i.Pi)((()=>{const{sortedAlerts:t}=r.Z;return(0,m.tZ)(p.Z,{children:null!=t&&t.length>0?(0,m.tZ)(s.Z,{classNames:"alerts__list",timeout:{enter:250,exit:250},children:(0,m.tZ)("ul",{className:"alerts__list",children:t.map((t=>(0,m.tZ)(l,{id:t.id},t.id)))},"alerts-list")}):null})}))},7429:(t,e,a)=>{t.exports=a.p+"static/media/ad.1b24595d.png"},9564:(t,e,a)=>{t.exports=a.p+"static/media/ag.fd9409e4.png"},8999:(t,e,a)=>{t.exports=a.p+"static/media/bd.516278fc.png"},3848:(t,e,a)=>{t.exports=a.p+"static/media/bi.4923e3a3.png"},2639:(t,e,a)=>{t.exports=a.p+"static/media/br.ec051f0c.png"},5851:(t,e,a)=>{t.exports=a.p+"static/media/bs.a74a126f.png"},4063:(t,e,a)=>{t.exports=a.p+"static/media/cd.a5bfda53.png"},8446:(t,e,a)=>{t.exports=a.p+"static/media/cf.de7d5d92.png"},9899:(t,e,a)=>{t.exports=a.p+"static/media/cn.e6a26073.png"},7140:(t,e,a)=>{t.exports=a.p+"static/media/cz.8ec5948b.png"},8517:(t,e,a)=>{t.exports=a.p+"static/media/gb.e00065bf.png"},1740:(t,e,a)=>{t.exports=a.p+"static/media/gd.b4522267.png"},6569:(t,e,a)=>{t.exports=a.p+"static/media/gh.4759f92f.png"},3445:(t,e,a)=>{t.exports=a.p+"static/media/gy.a4f62b6c.png"},1223:(t,e,a)=>{t.exports=a.p+"static/media/hn.64ee6aad.png"},1736:(t,e,a)=>{t.exports=a.p+"static/media/ht.42ca1596.png"},9142:(t,e,a)=>{t.exports=a.p+"static/media/id.2cb49f2d.png"},4060:(t,e,a)=>{t.exports=a.p+"static/media/il.cd1d1faf.png"},5580:(t,e,a)=>{t.exports=a.p+"static/media/kg.2c47c2af.png"},9090:(t,e,a)=>{t.exports=a.p+"static/media/kh.4732c810.png"},2012:(t,e,a)=>{t.exports=a.p+"static/media/km.7bbed3e9.png"},7558:(t,e,a)=>{t.exports=a.p+"static/media/kw.af3521bc.png"},5326:(t,e,a)=>{t.exports=a.p+"static/media/li.61c564a4.png"},6871:(t,e,a)=>{t.exports=a.p+"static/media/ls.901ddb71.png"},176:(t,e,a)=>{t.exports=a.p+"static/media/mc.4bd5d57a.png"},8734:(t,e,a)=>{t.exports=a.p+"static/media/me.1f1d1772.png"},6854:(t,e,a)=>{t.exports=a.p+"static/media/my.916a8392.png"},742:(t,e,a)=>{t.exports=a.p+"static/media/mz.facb4ea3.png"},8967:(t,e,a)=>{t.exports=a.p+"static/media/np.54fb4f2f.png"},6396:(t,e,a)=>{t.exports=a.p+"static/media/nr.7527cc38.png"},1881:(t,e,a)=>{t.exports=a.p+"static/media/nz.738be05b.png"},9555:(t,e,a)=>{t.exports=a.p+"static/media/pa.b28a9059.png"},7963:(t,e,a)=>{t.exports=a.p+"static/media/pe.c1fc1d96.png"},251:(t,e,a)=>{t.exports=a.p+"static/media/pl.41521283.png"},3615:(t,e,a)=>{t.exports=a.p+"static/media/sc.3293efde.png"},185:(t,e,a)=>{t.exports=a.p+"static/media/sr.5adc1c00.png"},4645:(t,e,a)=>{t.exports=a.p+"static/media/st.5ae44155.png"},5634:(t,e,a)=>{t.exports=a.p+"static/media/tz.b2f0dc37.png"},3059:(t,e,a)=>{t.exports=a.p+"static/media/ws.f3d9202f.png"},3681:(t,e,a)=>{t.exports=a.p+"static/media/zw.a6809447.png"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[420],{7747:t=>{t.exports={messages:{}}},8807:t=>{t.exports={messages:{}}},713:t=>{t.exports={messages:{}}},8745:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/at.5aa9728a.png"},7431:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/au.155b51d8.png"},4347:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ba.5ce8f273.png"},6506:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/bb.f369fc62.png"},9237:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/be.08ec4a8d.png"},6358:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/bj.019fa79b.png"},453:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/bw.21fe1567.png"},1500:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ch.445f47a1.png"},5172:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ci.a6009c5b.png"},5527:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/co.e9244faa.png"},9301:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/de.d12f391a.png"},6135:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/do.c6bd7637.png"},8298:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/dz.672a69c0.png"},2106:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ee.2396205f.png"},3519:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/eg.ccbf3f45.png"},5826:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/er.21afb638.png"},2209:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/fr.5d5ab008.png"},3923:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/gn.9f3d376e.png"},7966:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/gw.dc906982.png"},8090:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/hk.56555c3f.png"},1786:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/hr.93ebecd3.png"},6461:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/iq.a9b670ab.png"},9951:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ir.9a3de085.png"},9143:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/it.b73713e3.png"},2534:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/jo.eb66f1d1.png"},1183:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ki.5fba09fd.png"},9619:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/kr.5273be1d.png"},3083:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/kz.ea47ef79.png"},1847:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/lt.9209ace3.png"},1053:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/lv.7bcacf0a.png"},7062:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ly.2830aa63.png"},5678:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/mg.89101bd2.png"},7813:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ml.4db47c66.png"},6769:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/mu.d93db6c7.png"},4084:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ng.7b06a49f.png"},1714:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/nl.4c04aa96.png"},9983:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/om.b25e0a17.png"},7858:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/pg.380115db.png"},986:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ph.02199ddc.png"},5907:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/py.926c65ed.png"},3643:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/qa.c6a3c20e.png"},5608:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ro.a36876c9.png"},9078:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/rs.c6629de8.png"},6652:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/se.195b3f93.png"},8027:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/sg.19d81907.png"},2185:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/si.367c5443.png"},9862:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/sv.43aa6cdf.png"},8716:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/sz.ff204912.png"},386:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/td.c7aa2a4e.png"},4824:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/tg.857c3bec.png"},3379:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/tn.40df718e.png"},8783:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/tr.adeace6d.png"},278:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/tt.839bd7f1.png"},5657:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ua.6b103313.png"},3487:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ug.c84042fc.png"},9789:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/us.8523c31d.png"},2597:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/vc.7480bd37.png"},6286:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/ve.fd4273c2.png"},1509:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/vu.48b64cf3.png"},6307:(t,s,e)=>{"use strict";t.exports=e.p+"static/media/zm.8371e197.png"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[445],{192:e=>{e.exports={messages:{"actionbar.button.add.torrent":"Dodaj torrent","actionbar.button.remove.torrent":"Usuń torrent","actionbar.button.start.torrent":"Uruchom torrent","actionbar.button.stop.torrent":"Zatrzymaj torrent","alert.settings.saved":"Zapisano ustawienia.","alert.torrent.add":["Pomyślnie dodano ",["countElement"]," ",["count","plural",{1:"torrent",other:"torrenty"}],"."],"alert.torrent.add.failed":["Nie udało się dodać ",["countElement"]," ",["count","plural",{1:"torrent",other:"torrenty"}],"."],"alert.torrent.add.sent":[["countElement"]," ",["count","plural",{1:"żądanie wysłane",few:"żądania wysłane",other:"żądań wysłanych"}]," do klienta torrent."],"alert.torrent.move":["Pomyślnie przeniesiono ",["countElement"]," ",["count","plural",{1:"torrenty",other:"torrenty"}],"."],"alert.torrent.move.failed":["Nie udało się przenieść ",["countElement"]," ",["count","plural",{1:"torrentów",other:"torrentów"}],"."],"alert.torrent.remove":["Pomyślnie usunięto ",["countElement"]," ",["count","plural",{1:"torrent",few:"torrenty",other:"torrentów"}],"."],"alert.torrent.remove.failed":["Nie udało się usunąć ",["countElement"]," ",["count","plural",{1:"torrenta",other:"torrentów"}],"."],"auth.add.user":"Dodaj użytkownika","auth.admin":"Administrator","auth.create.account":"Utwórz konto","auth.create.an.account":"Utwórz konto","auth.create.an.account.intro":"Witaj we Flood!","auth.current.user":"Bieżący użytkownik","auth.error.password.empty":"Hasło nie może być puste.","auth.error.username.empty":"Nazwa użytkownika nie może być pusta.","auth.input.clear":"Wyczyść","auth.log.in":"Zaloguj się","auth.login":"Logowanie","auth.login.intro":"Zaloguj się do swojego konta.","auth.message.not.admin":"Użytkownik nie jest administratorem","auth.password":"Hasło","auth.user.accounts":"Konta użytkowników","auth.username":"Nazwa użytkownika","button.add":"Dodaj","button.cancel":"Anuluj","button.close":"Zamknij","button.download":"Pobierz","button.new":"Nowy","button.no":"Nie","button.ok":"OK","button.retry":"Ponów","button.save":"Zapisz ustawienia","button.save.feed":"Zapisz","button.yes":"Tak","connection-interruption.action.selection.config":"Zaktualizuj ustawienia połączenia klienta","connection-interruption.action.selection.retry":"Ponów z bieżącymi ustawieniami połączenia klienta","connection-interruption.heading":"Nie można połączyć się z klientem","connection-interruption.not.admin":"Skontaktuj się z twoim administratorem Flood jeśli się to powtarza.","connection-interruption.verification-error":"Nie można zweryfikować połączenia.","connection.settings.client.select":"Klient","connection.settings.error.empty":"Ustawienia połączenia nie mogą być puste.","connection.settings.deluge":"Deluge","connection.settings.deluge.host":"Serwer","connection.settings.deluge.host.input.placeholder":"np. localhost","connection.settings.deluge.password":"Hasło","connection.settings.deluge.password.input.placeholder":"Hasło","connection.settings.deluge.port":"Port","connection.settings.deluge.port.input.placeholder":"np. 58846","connection.settings.deluge.username":"Użytkownik","connection.settings.deluge.username.input.placeholder":"np. klientlokalny","connection.settings.qbittorrent":"qBittorrent","connection.settings.qbittorrent.password":"Hasło","connection.settings.qbittorrent.password.input.placeholder":"Hasło","connection.settings.qbittorrent.url":"Adres URL","connection.settings.qbittorrent.url.input.placeholder":"np. http://localhost:8080","connection.settings.qbittorrent.username":"Nazwa użytkownika","connection.settings.qbittorrent.username.input.placeholder":"Nazwa użytkownika","connection.settings.rtorrent":"rTorrent","connection.settings.rtorrent.host":"Serwer","connection.settings.rtorrent.host.input.placeholder":"Nazwa hosta lub IP","connection.settings.rtorrent.port":"Port","connection.settings.rtorrent.port.input.placeholder":"Port","connection.settings.rtorrent.socket":"Ścieżka","connection.settings.rtorrent.socket.input.placeholder":"np. ~/.local/share/rtorrent/rtorrent.sock","connection.settings.rtorrent.type":"Typ połączenia","connection.settings.rtorrent.type.socket":"Gniazdo","connection.settings.rtorrent.type.tcp":"TCP","connection.settings.rtorrent.type.tcp.warning":"Wystawianie rTorrent poprzez TCP może doprowadzić do eskalacji uprawnień.","connection.settings.transmission":"Transmission","connection.settings.transmission.password":"Hasło","connection.settings.transmission.password.input.placeholder":"Hasło","connection.settings.transmission.url":"Adres URL","connection.settings.transmission.url.input.placeholder":"np. http://localhost:9091/transmission/rpc","connection.settings.transmission.username":"Użytkownik","connection.settings.transmission.username.input.placeholder":"Użytkownik","dependency.loading.notifications":"Powiadomienia","dependency.loading.torrent.list":"Lista torrentów","dependency.loading.torrent.taxonomy":"Taksonomia torrent","dependency.loading.transfer.history":"Historia transferu danych","dependency.loading.transfer.rate.details":"Szczegóły tempa transferu danych","feeds.applicable.feed":"Stosowany kanał","feeds.apply.tags":"Zastosuj tagi","feeds.browse.feeds":"Przeglądaj kanały","feeds.check":"Zweryfikuj regułę poprzez próbę. Nie przesyłane ani zapisywane.","feeds.exclude":"Wyklucz","feeds.exclude.pattern":"Wyklucz wzór","feeds.existing.feeds":"Istniejące kanały","feeds.existing.rules":"Istniejące reguły","feeds.interval":"Interwał","feeds.label":"Etykieta","feeds.match":"Dopasowanie","feeds.match.count":[["count","plural",{1:["#"," pasuje do"],few:["#"," pasują do"],other:["#"," pasuje do"]}]],"feeds.match.pattern":"Wzorzec dopasowania","feeds.no.feeds.available":"Brak dostępnych kanałów.","feeds.no.feeds.defined":"Nie zdefiniowano kanałów.","feeds.no.items.matching":"Brak elementów pasujących do szukanego wyrażenia.","feeds.no.rules.defined":"Nie zdefiniowano reguł.","feeds.regEx":"Wyrażenie regularne","feeds.search":"Szukaj frazy","feeds.search.term":"Szukaj frazy","feeds.select.feed":"Wybierz kanał","feeds.select.interval":"Interwał","feeds.start.on.load":"Rozpocznij po załadowaniu","feeds.tabs.download.rules":"Reguly pobierania","feeds.tabs.feeds":"Kanały","feeds.tabs.heading":"Kanały torrent","feeds.tags":"Tagi","feeds.test.match":"Testowy wzór dopasowania","feeds.time.day":"Dni","feeds.time.hr":"Godziny","feeds.time.min":"Minuty","feeds.torrent.destination":"Miejsce docelowe torrenta","feeds.url":"Adres URL","feeds.validation.interval.not.positive":"Interwał musi być dodatnią liczbą całkowitą.","feeds.validation.invalid.regular.expression":"Nieprawidłowe wyrażenie regularne.","feeds.validation.must.select.feed":"Musisz wybrać kanał.","feeds.validation.must.specify.destination":"Musisz określić miejsce docelowe.","feeds.validation.must.specify.label":"Musisz określić etykietę.","feeds.validation.must.specify.valid.feed.url":"Musisz podać poprawny adres URL kanału.","filesystem.empty.directory":"Pusty katalog.","filesystem.error.eacces":"Flood nie ma uprawnień do odczytu tego katalogu.","filesystem.error.enoent":"Ta ścieżka nie istnieje. Zostanie utworzona.","filesystem.error.no.input":"Proszę podać ścieżkę.","filesystem.error.unknown":"Wystąpił nieznany błąd. Spróbuj ponownie.","filesystem.fetching":"Pobieranie struktury katalogu...","filter.all":"Wszystkie","filter.status.active":"Aktywne","filter.status.checking":"Sprawdzanie","filter.status.completed":"Zakończone","filter.status.downloading":"Pobieranie","filter.status.error":"Błąd","filter.status.inactive":"Nieaktywny","filter.status.seeding":"Wysyłanie","filter.status.stopped":"Zatrzymano","filter.status.title":"Filtruj według statusu","filter.tag.title":"Filtruj według tagu","filter.tracker.title":"Filtruj według trackera","filter.untagged":"Nietagowane","general.ago":"temu","general.clipboard.copied":"Skopiowano","general.clipboard.copy":"Kopiuj","general.error.unknown":"Wystąpił nieznany błąd","general.of":"z","general.to":"do","locale.language.auto":"Automatyczne","mediainfo.execError":"Wystąpił błąd podczas uruchamiania mediainfo na serwerze. Sprawdź, czy mediainfo jest zainstalowany i dostępny w PATH dla Flood.","mediainfo.fetching":"Pobieranie...","mediainfo.heading":"Wynik mediainfo","notification.clear.all":"Wyczyść wszystko","notification.feed.torrent.added.body":[["title"]],"notification.feed.torrent.added.heading":"Element RSS w kolejce","notification.no.notification":"Brak powiadomień do wyświetlenia.","notification.showing":"Wyświetlanie","notification.torrent.errored.body":[["name"]],"notification.torrent.errored.heading":"Błąd zgłoszony","notification.torrent.finished.body":[["name"]],"notification.torrent.finished.heading":"Pobieranie zakończone","priority.dont.download":"Nie pobieraj","priority.high":"Wysoki","priority.low":"Niski","priority.normal":"Normalny","settings.bandwidth.slots.download.global.label":"Ilość jednoczesnych pobierań globalnie","settings.bandwidth.slots.download.label":"Ilość jednoczesnych pobierań per torrent","settings.bandwidth.slots.heading":"Dostępność miejsc","settings.bandwidth.slots.upload.global.label":"Ilość jednoczesnych wysyłań globalnie","settings.bandwidth.slots.upload.label":"Ilość jednoczesnych wysyłań per torrent","settings.bandwidth.transferrate.dropdown.preset.download.label":"Rozwijane ustawienia: Pobierz","settings.bandwidth.transferrate.dropdown.preset.upload.label":"Rozwijane ustawienia: Prześlij","settings.bandwidth.transferrate.global.throttle.download":"Globalny limit prędkości pobierania","settings.bandwidth.transferrate.global.throttle.upload":"Globalny limit prędkości wysyłania","settings.bandwidth.transferrate.heading":"Limity transferu","settings.connectivity.dht.label":"Włącz DHT","settings.connectivity.dht.port.label":"Port DHT","settings.connectivity.dpd.heading":"Odkrycie zdecentralizowanego peera","settings.connectivity.incoming.heading":"Połączenia przychodzące","settings.connectivity.ip.hostname.label":"Zgłoszone IP/nazwa hosta","settings.connectivity.max.http.connections":"Maksymalna liczba połączeń HTTP","settings.connectivity.peer.exchange.label":"Włącz wymianę peerów","settings.connectivity.peers.desired.label":"Peery pożądane","settings.connectivity.peers.heading":"Peery","settings.connectivity.peers.max.label":"Maksymalna liczba peerów","settings.connectivity.peers.min.label":"Minimalna liczba peerów","settings.connectivity.peers.seeding.max.label":"Maksymalna ilość peerów wysyłających","settings.connectivity.peers.seeding.min.label":"Maksymalna ilość peerów wysyłających","settings.connectivity.port.open.label":"Otwórz port","settings.connectivity.port.randomize.label":"Losowy port","settings.connectivity.port.range.label":"Zakres portów","settings.diskusage.mount.points":"Punkty montowania dysku","settings.diskusage.show":"Pokaż","settings.resources.disk.check.hash.label":"Zweryfikuj skrót po zakończeniu","settings.resources.disk.download.location.label":"Domyślny katalog pobierania","settings.resources.disk.heading":"Dysk","settings.resources.max.open.files":"Maksymalna liczba otwartych plików","settings.resources.memory.heading":"Pamięć","settings.resources.memory.max.label":"Maksymalne zużycie pamięci","settings.tabs.about":"O programie","settings.tabs.authentication":"Uwierzytelnianie","settings.tabs.bandwidth":"Przepustowość","settings.tabs.connectivity":"Łączność","settings.tabs.diskusage":"Użycie dysku","settings.tabs.heading":"Ustawienia","settings.tabs.resources":"Zasoby","settings.tabs.userinterface":"Interfejs użytkownika","settings.ui.displayed.context.menu.items":"Pozycje menu kontekstowego","settings.ui.displayed.details":"Kolumny szczegółów torrenta","settings.ui.language":"Język","settings.ui.locale":"Język","settings.ui.tag.selector.mode":"Ustawienia selektora tagów","settings.ui.tag.selector.mode.multi":"Wielokrotne zaznaczenie","settings.ui.tag.selector.mode.single":"Pojedynczy wybór","settings.ui.torrent.context.menu.items.show":"Pokaż","settings.ui.torrent.details.enabled":"Włączone","settings.ui.torrent.details.tags.placement":"W rozszerzonym widoku tagi działają najlepiej na końcu listy.","settings.ui.torrent.list":"Wyświetlanie listy torrentów","settings.ui.torrent.size":"Rozmiar torrenta","settings.ui.torrent.size.condensed":"Widok skondensowany","settings.ui.torrent.size.expanded":"Widok rozszerzony","sidebar.button.feeds":"Kanały","sidebar.button.log.out":"Wyloguj","sidebar.button.settings":"Ustawienia","sidebar.button.speedlimits":"Ograniczenia prędkości","sidebar.button.theme.dark":"Ciemny motyw","sidebar.button.theme.light":"Jasny motyw","sidebar.search.placeholder":"Szukaj torrentów","sidebar.speedlimits.download":"POBIERZ","sidebar.speedlimits.upload":"PRZEŚLIJ","sidebar.transferdata.downloaded":"Pobrano","sidebar.transferdata.uploaded":"Przesłano","speed.unlimited":"Nieograniczona","status.diskusage.free":"Wolne","status.diskusage.title":"Użycie dysku","status.diskusage.total":"Łącznie","status.diskusage.used":"Używane","torrent.list.peers":[["connected"]," ",["of"]," ",["total"]],"torrent.list.peers.of":"z","torrents.add.button.add":"Dodaj torrent","torrents.add.cookies.input.placeholder":"Opcjonalnie nazwa-ciasteczka=wartość-ciasteczka","torrents.add.cookies.label":"Ciasteczka","torrents.add.destination.label":"Miejsce przeznaczenia","torrents.add.destination.placeholder":"Miejsce przeznaczenia","torrents.add.heading":"Dodaj torrenty","torrents.add.start.label":"Uruchom torrent","torrents.add.tab.create.title":"Utwórz","torrents.add.tab.file.browse":"lub kliknij, aby przeglądać","torrents.add.tab.file.drop":"Upuść pliki tutaj,","torrents.add.tab.file.title":"Wg pliku","torrents.add.tab.url.input.placeholder":"URL torrenta lub odnośnik magnetyczny","torrents.add.tab.url.register.magnet.handler":"Zarejestruj aby obsłużyć odnośniki magnetyczne","torrents.add.tab.url.title":"Według adresu URL","torrents.add.tags":"Tagi","torrents.add.torrents.label":"Torrenty","torrents.create.base.name.input.placeholder":"Opcjonalny plik podstawowy lub nazwa katalogu torrenta","torrents.create.base.name.label":"Nazwa podstawowa","torrents.create.comment.input.placeholder":"Opcjonalny komentarz w pliku torrent","torrents.create.comment.label":"Komentarz","torrents.create.info.source.input.placeholder":"Opcjonalny wpis źródłowy w infohash","torrents.create.info.source.label":"Źródło informacji","torrents.create.is.private.label":"Prywatny","torrents.create.source.path.label":"Źródło","torrents.create.tags.input.placeholder":"Tagi we Flood. Nie dodawane do tworzonego torrenta.","torrents.create.tracker.input.placeholder":"URL trackera","torrents.create.trackers.label":"Trackery","torrents.destination.base_path":"Użyj jako ścieżki bazowej","torrents.destination.completed":"Zakończone","torrents.destination.sequential":"Pobieranie sekwencyjne","torrents.details.actions.pause":"Wstrzymaj","torrents.details.actions.start":"Rozpocznij","torrents.details.actions.stop":"Zatrzymaj","torrents.details.details":"Szczegóły","torrents.details.files":"Pliki","torrents.details.files.download.file":[["count","plural",{1:"Pobierz plik",few:"Pobierz pliki",other:"Pobierz plików"}]],"torrents.details.files.loading":"Ładowanie szczegółów pliku...","torrents.details.general.comment":"Komentarz","torrents.details.general.connected":[["connected"]," ",["count","plural",{1:"połączony",few:"połączone",other:"połączonych"}]," z ",["total"]],"torrents.details.general.date.active":"Ostatnia aktywność","torrents.details.general.date.active.now":"Teraz","torrents.details.general.date.added":"Dodano","torrents.details.general.date.created":"Utworzony","torrents.details.general.date.finished":"Zakończony","torrents.details.general.downloaded":"Pobrano","torrents.details.general.free.disk.space":"Wolne miejsce na dysku","torrents.details.general.hash":"Hash","torrents.details.general.heading.general":"Ogólny","torrents.details.general.heading.torrent":"Torrent","torrents.details.general.heading.tracker":"Tracker","torrents.details.general.heading.transfer":"Transfer","torrents.details.general.location":"Lokalizacja","torrents.details.general.none":"Brak","torrents.details.general.peers":"Peery","torrents.details.general.scheduler":"Harmonogram","torrents.details.general.scheduler.ignored":"Ignorowane","torrents.details.general.scheduler.obeyed":"Przestrzegane","torrents.details.general.seeds":"Seedy","torrents.details.general.size":"Rozmiar","torrents.details.general.tags":"Tagi","torrents.details.general.tracker.message":"Wiadomość trackera","torrents.details.general.type":"Typ","torrents.details.general.type.private":"Prywatny","torrents.details.general.type.public":"Publiczne","torrents.details.mediainfo":"Mediainfo","torrents.details.peers":"Uczestnicy","torrents.details.peers.no.data":"Brak danych peerów dla tego torrentu.","torrents.details.selected.files":[["count","plural",{1:[["countElement"]," wybrany plik"],other:[["countElement"]," wybrano pliki"]}]],"torrents.details.selected.files.set.priority":"Ustaw priorytet","torrents.details.trackers":"Śledzenie","torrents.details.trackers.no.data":"Brak danych trackera dla tego torrentu.","torrents.details.trackers.type":"Typ","torrents.generate.magnet.heading":"Generuj odnośnik magnetyczny","torrents.generate.magnet.loading.trackers":"Ładowanie trackerów...","torrents.generate.magnet.magnet":"Odnośnik magnetyczny","torrents.generate.magnet.magnet.with.trackers":"Odnośnik magnetyczny z trackerem","torrents.generate.magnet.private.torrent":"Ten torrent jest prywatny.","torrents.list.cannot.connect":"Nie można połączyć się z klientem.","torrents.list.clear.filters":"Wyczyść filtry","torrents.list.context.check.hash":"Sprawdź hash","torrents.list.context.details":"Szczegóły torrenta","torrents.list.context.download.contents":"Pobierz zawartość","torrents.list.context.download.metainfo":"Pobierz plik .torrent","torrents.list.context.generate.magnet":"Generuj odnośnik magnetyczny","torrents.list.context.initial.seeding":"Wysyłanie wstępne","torrents.list.context.move":"Ustaw lokalizację torrenta","torrents.list.context.pause":"Wstrzymaj","torrents.list.context.priority":"Priorytet","torrents.list.context.reannounce":"Ponowne rozgłoszenie","torrents.list.context.remove":"Usuń","torrents.list.context.sequential":"Sekwencyjnie","torrents.list.context.set.tags":"Ustaw tagi","torrents.list.context.set.trackers":"Ustaw trackery","torrents.list.context.start":"Rozpocznij","torrents.list.context.stop":"Zatrzymaj","torrents.list.drop":"Upuść pliki tutaj, aby je dodać.","torrents.list.no.torrents":"Brak torrentów do wyświetlenia.","torrents.move.button.set.location":"Ustaw lokalizację","torrents.move.button.state.setting":"Ustawienie...","torrents.move.check_hash.label":"Sprawdź skrót","torrents.move.data.label":"Przenieś dane","torrents.move.heading":"Ustaw lokalizację torrenta","torrents.properties.comment":"Komentarz","torrents.properties.date.added":"Dodano","torrents.properties.date.created":"Utworzony","torrents.properties.directory":"Lokalizacja","torrents.properties.download.speed":"Prędkość pobierania","torrents.properties.download.total":"Pobrano","torrents.properties.eta":"ETA","torrents.properties.free.disk.space":"Wolne miejsce na dysku","torrents.properties.hash":"Hash","torrents.properties.ignore.schedule":"Ignoruj harmonogram","torrents.properties.is.private":"Prywatny","torrents.properties.name":"Nazwisko","torrents.properties.peers":"Uczestnicy","torrents.properties.percentage":"Procent zakończony","torrents.properties.ratio":"Stosunek","torrents.properties.seeds":"Nasiona","torrents.properties.size":"Rozmiar pliku","torrents.properties.tags":"Tagi","torrents.properties.tracker.message":"Wiadomość trackera","torrents.properties.trackers":"Śledzenie","torrents.properties.upload.speed":"Prędkość przesyłania","torrents.properties.upload.total":"Przesłano","torrents.remove":"Usuń torrenty","torrents.remove.are.you.sure":["Czy na pewno chcesz usunąć ",["count","plural",{1:["#"," torrenty"],other:["#"," torrentów"]}],"?"],"torrents.remove.delete.data":"Usuń dane","torrents.remove.error.no.torrents.selected":"Nie wybrałeś żadnych torrentów.","torrents.set.tags.button.set":"Ustaw tagi","torrents.set.tags.enter.tags":"Wprowadź tagi","torrents.set.tags.heading":"Ustaw tagi","torrents.set.trackers.button.set":"Ustaw trackery","torrents.set.trackers.enter.tracker":"Wprowadź tracker","torrents.set.trackers.heading":"Ustaw trackery","torrents.set.trackers.loading.trackers":"Ładowanie trackerów...","torrents.sort.title":"Sortuj wg","unit.size.byte":"B","unit.size.gigabyte":"GB","unit.size.kilobyte":"kB","unit.size.megabyte":"MB","unit.size.terabyte":"TB","unit.speed":[["baseUnit"],"/s"],"unit.time.day":"ob","unit.time.hour":"godz.","unit.time.infinity":"∞","unit.time.minute":"m","unit.time.second":"u rot ob","unit.time.week":"tyg.","unit.time.year":"lat"}}}}]);
|