Media File Renamer - Version 5.4.1

Version Description

(2022/08/03) * Fix: Tiny UI bug in Safari. * Note 1: I released a new plugin! It's simply called Database Cleaner. It's probably already the most powerful cleaner for DB, so please give it a try: Database Cleaner. * Note 2: This plugin is a lot of work. If you like it, please write a little review by clicking here. Thank you

Download this release

Release Info

Developer TigrouMeow
Plugin Icon 128x128 Media File Renamer
Version 5.4.1
Comparing to
See all releases

Code changes from version 5.4.0 to 5.4.1

Files changed (5) hide show
  1. app/index.js +1 -1
  2. app/vendor.js +1 -1
  3. common/admin.php +1 -1
  4. media-file-renamer.php +2 -2
  5. readme.txt +6 -3
app/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e){function t(t){for(var r,o,l=t[0],i=t[1],u=t[2],m=0,d=[];m<l.length;m++)o=l[m],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(s&&s(t);d.length;)d.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==a[i]&&(r=!1)}r&&(c.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},a={0:0},c=[];function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var l=window.wpJsonMfrh=window.wpJsonMfrh||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var s=i;c.push([141,1]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";var r=n(15);n.d(t,"b",(function(){return r.a}));var a=n(11);n.d(t,"c",(function(){return a.a}));n(39);var c=n(51);n.d(t,"q",(function(){return c.a}));var o=n(52);n.d(t,"a",(function(){return o.a}));var l=n(53);n.d(t,"g",(function(){return l.a}));var i=n(54);n.d(t,"v",(function(){return i.a}));n(55);var u=n(40);n.d(t,"C",(function(){return u.b})),n.d(t,"f",(function(){return u.a}));var s=n(56);n.d(t,"d",(function(){return s.a}));var m=n(57);n.d(t,"e",(function(){return m.a}));var d=n(23);n.d(t,"k",(function(){return d.a}));n(58);var f=n(41);n.d(t,"u",(function(){return f.b})),n.d(t,"p",(function(){return f.a}));n(59),n(60),n(9),n(42),n(24);var p=n(61);n.d(t,"s",(function(){return p.a}));var h=n(62);n.d(t,"i",(function(){return h.a}));var y=n(25);n.d(t,"r",(function(){return y.a}));var g=n(6);n.d(t,"j",(function(){return g.a}));var v=n(17);n.d(t,"B",(function(){return v.a}));var b=n(43);n.d(t,"t",(function(){return b.b})),n.d(t,"l",(function(){return b.a}));var E=n(63);n.d(t,"h",(function(){return E.a}));var R=n(44);n.d(t,"m",(function(){return R.a})),n.d(t,"n",(function(){return R.b}));n(64),n(26),n(20),n(16),n(65);var w=n(27);n.d(t,"o",(function(){return w.a}));n(70);var _=n(28);n.d(t,"x",(function(){return _.a}));var k=n(46);n.d(t,"y",(function(){return k.b})),n.d(t,"w",(function(){return k.a}));n(47);var x=n(71);n.d(t,"A",(function(){return x.a}));var O=n(3);n.d(t,"z",(function(){return O.a}));var T=n(8);n.d(t,"J",(function(){return T.d})),n.d(t,"H",(function(){return T.b})),n.d(t,"I",(function(){return T.c}));var P=n(14);n.d(t,"G",(function(){return P.d})),n.d(t,"F",(function(){return P.c})),n.d(t,"E",(function(){return P.b})),n.d(t,"D",(function(){return P.a}));n(21)},132:function(e,t){e.exports=ReactDOM},141:function(e,t,n){"use strict";n.r(t);var r=n(12),a=n(1),c=n(4),o=wp.i18n.__,l={};l.RENAME=o("Rename","media-file-renamer"),l.MOVE=o("Move","media-file-renamer"),l.DASHBOARD=o("Dashboard","media-file-renamer"),l.PENDING=o("Pending","media-file-renamer"),l.RENAMED=o("Renamed","media-file-renamer"),l.ALL=o("All","media-file-renamer"),l.THUMB=o("","media-file-renamer"),l.TITLE=o("Title","media-file-renamer"),l.ATTACHED_TO=o("Attached To","media-file-renamer"),l.FILENAME=o("Filename","media-file-renamer");var i,u=l,s=mfrh_media_file_renamer.prefix,m=mfrh_media_file_renamer.domain,d=mfrh_media_file_renamer.rest_url.replace(/\/+$/,""),f=mfrh_media_file_renamer.api_url.replace(/\/+$/,""),p=mfrh_media_file_renamer.plugin_url.replace(/\/+$/,""),h="1"===mfrh_media_file_renamer.is_pro,y=h&&"1"===mfrh_media_file_renamer.is_registered,g=mfrh_media_file_renamer.rest_nonce,v="1"===mfrh_media_file_renamer.mfrh_undo,b="1"===mfrh_media_file_renamer.mfrh_move,E="1"===mfrh_media_file_renamer.mfrh_manual_rename;function R(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function w(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){R(c,r,a,o,l,"next",e)}function l(e){R(c,r,a,o,l,"throw",e)}o(void 0)}))}}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(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 k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var x,O,T,P,S,A,j,C=wp.element,I=C.useState,D=C.useEffect,M=c.a.div(i||(x=["\n display: flex;\n flex-direction: column;\n\n .renamer-field {\n display: flex;\n margin-bottom: 5px;\n }\n\n .renamer-actions {\n display: flex;\n align-items: center;\n }\n\n \n @media (min-width: 1400px) {\n flex-direction: row;\n\n .renamer-field {\n flex: auto;\n margin-right: 5px;\n margin-bottom: 0;\n }\n }\n"],O||(O=x.slice(0)),i=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(O)}})))),U=function(e){var t=e.mutate,n=_(I(e.entry),2),r=n[0],c=n[1],o=_(I(!1),2),l=o[0],i=o[1],s=_(I(""),2),m=s[0],d=s[1],p=_(I(null),2),h=p[0],y=p[1],R=e.natural,k=void 0!==R&&R,x=Object(a.I)({concurrency:2}).runTask;D((function(){d(""),e.entry?c(e.entry):e.mediaId&&O(e.mediaId)}),[e.entry]);var O=function(){var e=w(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,x(w(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(a.G)("".concat(f,"/analyze"),{nonce:g,json:{mediaId:t}}));case 1:case"end":return e.stop()}}),e)}))));case 3:n=e.sent,c(n.data),i((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=w(regeneratorRuntime.mark((function e(t){var n,r,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=220)){e.next=3;break}return d(t),e.abrupt("return");case 3:n=t.lastIndexOf("."),r=-1===n?"":".".concat(t.slice(n+1)),a=r.length>0?r.length:0,c="".concat(t.slice(0,220-a)).concat(r),d(c);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=w(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c(n),t&&t();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,Object(a.G)("".concat(f,"/rename"),{nonce:g,json:{mediaId:r.ID}});case 3:t=e.sent,P(t.data),y(null),i((function(e){return e-1}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,Object(a.G)("".concat(f,"/rename"),{nonce:g,json:{mediaId:r.ID,filename:m}});case 3:t=e.sent,P(t.data),y(null),d(""),i((function(e){return e-1}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,Object(a.G)("".concat(f,"/undo"),{nonce:g,json:{mediaId:r.ID}});case 3:t=e.sent,P(t.data,r.current_filename),i((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,Object(a.G)("".concat(f,"/set_lock"),{nonce:g,json:{mediaId:r.ID,lock:!r.locked}});case 3:t=e.sent,P(t.data),i((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=w(regeneratorRuntime.mark((function e(){var t,n,c,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log({entry:r}),t=r.metadata.file||"",n="/"+t.substring(0,t.lastIndexOf("/")),!(c=(c=(c=prompt("Where would you like to move this file (in the /uploads directory)?",n)).replace(/\/+$/,""))||"/")){e.next=13;break}return i((function(e){return e+1})),e.next=10,Object(a.G)("".concat(f,"/move"),{nonce:g,json:{mediaId:r.ID,newPath:c}});case 10:o=e.sent,P(o.data),i((function(e){return e-1}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=!!m,N=B?m:h||(null==r?void 0:r.current_filename);return React.createElement(a.b,{busy:l},React.createElement(M,null,React.createElement("div",{className:"renamer-field"},React.createElement(a.k,{natural:k,readOnly:!E||l,value:N,onChange:T,onEnter:A,maxLength:220,style:{marginRight:0,flex:"auto"}}),!B&&React.createElement(a.j,{icon:null!=r&&r.locked?"lock":"lock-open",width:24,title:null!=r&&r.locked?"Unlock, to allow future actions":"Lock, to avoid future actions",style:{position:"relative",left:-26,marginRight:-22},color:null!=r&&r.locked?a.z.blue:"#5a5a5a82",onClick:C}),B&&React.createElement(a.j,{icon:"close",width:24,style:{position:"relative",left:-26,marginRight:-22},color:null!=r&&r.locked?a.z.blue:"#5a5a5a82",onClick:function(){d("")}}),(null==r?void 0:r.proposed_filename_exists)&&React.createElement(a.j,{icon:"alert",color:"orange",tooltip:{text:"The ideal filename (".concat(r.proposed_filename,") already exists."),position:"left"}}),v&&!B&&(null==r?void 0:r.original_filename)&&React.createElement(a.j,{icon:"file-undo",title:"Rollback to original",color:a.z.red,onClick:j,onMouseEnter:function(){return y(null==r?void 0:r.original_filename)},onMouseLeave:function(){return y(null)}})),React.createElement("div",{className:"renamer-actions"},!B&&(null==r?void 0:r.proposed_filename)&&!(null!=r&&r.proposed_filename_exists)&&React.createElement(a.c,{style:{flex:3},title:"Rename automatically",onMouseEnter:function(){return y(null==r?void 0:r.proposed_filename)},onMouseLeave:function(){return y(null)},onClick:S},"Auto Rename"),E&&B&&React.createElement(a.c,{style:{flex:3},title:"Rename manually",onClick:A},u.RENAME),b&&React.createElement(a.c,{style:{flex:1},title:"Move",onClick:U},u.MOVE))))};function B(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var N=c.a.div(T||(T=B(["\n color: white;\n padding: 15px;\n margin-bottom: -15px;\n\n a {\n color: #7dedff;\n text-decoration: none;\n }\n\n p {\n font-size: 15px;\n }\n"]))),L=Object(c.a)(a.a)(P||(P=B(["\n\n .nui-block-title {\n display: none;\n }\n\n .nui-block-content {\n display: flex;\n padding: 10px;\n\n h2 {\n color: #055082;\n font-size: 16px;\n margin: 5px 0 5px 0;\n\n a {\n text-decoration: none;\n }\n }\n\n p {\n margin: 0px;\n line-height: 18px;\n }\n }\n"]))),F=c.a.img(S||(S=B(["\n width: 85px;\n height: 85px;\n padding-right: 10px;\n"]))),q=c.a.div(A||(A=B(["\n\n margin: 15px;\n\n .center {\n background: white;\n border-radius: 10px;\n padding: 10px;\n max-width: 100%\n overflow: none;\n\n h2 {\n font-size: 26px;\n }\n\n table {\n width: 100%;\n\n tr td:first-child {\n width: 220px;\n font-weight: bold;\n color: #1e7cba;\n }\n\n * {\n overflow-wrap: anywhere;\n }\n }\n }\n\n hr {\n border-color: #1e7cba;\n }\n"]))),G=c.a.ul(j||(j=B(["\n margin-top: 10px;\n background: rgb(0, 72, 88);\n padding: 10px;\n color: rgb(58, 212, 58);\n max-height: 600px;\n min-height: 200px;\n display: block;\n font-family: monospace;\n font-size: 12px;\n white-space: pre;\n overflow-x: auto;\n width: calc(100vw - 276px);\n\n .log-date {\n color: white;\n margin-left: 8px;\n }\n\n .log-type {\n background: #0000004d;\n padding: 2px 5px;\n border-radius: 8px;\n text-transform: uppercase;\n }\n\n .log-content {\n display: block;\n }\n\n .log-warning .log-type {\n background: #ccb028;\n color: white;\n }\n\n .log-fatal .log-type {\n background: #cc2828;\n color: white;\n }\n"])));function z(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(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 H(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function Y(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){H(c,r,a,o,l,"next",e)}function l(e){H(c,r,a,o,l,"throw",e)}o(void 0)}))}}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||V(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 V(e,t){if(e){if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var J=wp.element,X=J.useState,K=J.useEffect,Q="".concat(d,"/meow-common/v1"),Z=function(e){var t=e.request,n=e.title,r=e.max,c=W(X(!1),2),o=c[0],l=c[1],i=W(X([]),2),u=i[0],s=i[1],m=u.length>0?u.reduce((function(e,t){return e+t})):0,d=u.length>0?Math.ceil(m/u.length):0,f=!u.length&&o;K((function(){o&&setTimeout(Y(regeneratorRuntime.mark((function e(){var n,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(new Date).getTime(),e.next=3,Object(a.G)("".concat(Q,"/").concat(t),{nonce:g});case 3:r=(new Date).getTime(),c=r-n,s((function(e){return[].concat(z(e),[c])}));case 6:case"end":return e.stop()}}),e)}))),1e3)}),[u]);return React.createElement(N,{style:{width:200,textAlign:"center"}},React.createElement(a.B,{h2:!0,style:{color:"white"}},n),React.createElement(a.h,{size:200,value:f?r:d,max:r},React.createElement("span",{style:{fontSize:20}},f?"START":d+" ms"),React.createElement("span",{style:{fontSize:12}},f?"YOUR ENGINE":u.length+" requests")),React.createElement(a.c,{style:{width:"100%",marginTop:10},color:o?"#cc3627":"#ccb027",onClick:function(){o||s([]),l(!o)}},o?"Stop":"Start"))};function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function ae(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){re(c,r,a,o,l,"next",e)}function l(e){re(c,r,a,o,l,"throw",e)}o(void 0)}))}}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(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 oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var le=wp.element,ie=le.useState,ue=le.useEffect;f&&d&&p||console.error("[@common/dashboard] apiUrl, restUrl and pluginUrl are mandatory.");var se="".concat(d,"/meow-common/v1"),me=React.createElement(N,null,React.createElement(a.B,{p:!0},"Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking ",React.createElement("a",{target:"_blank",href:"https://offbeatjapan.org"},"a lot of photos"),"). Meow Apps proposes a suite of plugins focusing on photography, imaging, optimization and SEO. The ultimate goal is to make your website better, faster, while making it easy. Meow Apps also teams up with the best players in the community. For more information, please check ",React.createElement("a",{href:"http://meowapps.com",target:"_blank"},"Meow Apps"),".")),de=React.createElement(N,null,React.createElement(a.B,{p:!0},"The ",React.createElement("b",null,"Empty Request Time")," helps you analyzing the raw performance of your install by giving you the average time it takes to run an empty request to your server. You can try to disable some plugins (or change their options) then Start this again to see how it influences the results. An excellent install would have an Empty Request Time of less than 500 ms. Keep it absolutely under 2,000 ms! For more information, ",React.createElement("a",{href:"https://meowapps.com/clean-optimize-wordpress/#Optimize_your_Empty_Request_Time",target:"_blank"},"click here"),"."),React.createElement(a.B,{p:!0},React.createElement("b",null,"File Operation Time")," creates a temporary size of 10MB every time. ",React.createElement("b",null,"SQL Request Time")," counts the number of posts. Those two should be very fast, and almost the same as the ",React.createElement("b",null,"Empty Request Time"),".")),fe=React.createElement(N,null,React.createElement(a.B,{p:!0},"Too many WordPress installs are blown-up with useless and/or heavy plugins, and not aware of best practices. That's not the fault of the users; WordPress pretends to be simple but it is in fact very complex, and the immensity and diversity of the community around it makes it a real jungle where everything is possible."),React.createElement(a.B,{p:!0},"A rule of thumb is to keep your WordPress install as simple as possible, with the least number of plugins installed (run away from the heavy ones) and an excellent hosting service. Avoid VPS or self-hosted solutions; you must be a professional to actually set them up so that they are actually performant."),React.createElement(a.B,{p:!0},"On the Meow Apps website, you will find articles which are always updated with the latest recommendations.",React.createElement("ul",null,React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/how-to-debug-wordpress-errors/",target:"_blank"},"How To Debug WordPress")),React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/tutorial-improve-seo-wordpress/",target:"_blank"},"SEO Checklist & Optimization")),React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/tutorial-faster-wordpress-optimize/",target:"_blank"},"Optimize your WordPress Speed")),React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/tutorial-optimize-images-wordpress/",target:"_blank"},"Optimize Images (CDN, and so on)")),React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/tutorial-hosting-service-wordpress/",target:"_blank"},"Best Hosting Services for WordPress"))))),pe=["".concat(se,"/all_settings/"),{headers:{"X-WP-Nonce":g}}],he=function(){var e=ce(ie(!1),2),t=e[0],n=e[1],c=Object(r.b)(pe,a.F),o=c.data,l=c.mutate,i=c.error,u=null==o?void 0:o.data,s=null==u?void 0:u.meowapps_hide_meowapps,m=null==u?void 0:u.force_sslverify,d=ce(ie(!1),2),f=d[0],h=d[1],y=ce(ie([]),2),v=y[0],b=y[1],E=ce(ie(""),2),R=E[0],w=E[1];ue((function(){i&&!t&&(n(!0),console.error("Error from UseSWR",i.message))}),[i]),ue((function(){var e=document.getElementById("meow-common-phpinfo");w(e.innerHTML)}),[]);var _=function(){var e=ae(regeneratorRuntime.mark((function e(t,n){var r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=te({},o.data))[n]=t,l(te(te({},o),{},{data:r}),!1),h(!0),e.next=6,Object(a.G)("".concat(se,"/update_option"),{json:{name:n,value:t},nonce:g});case 6:c=e.sent,h(!1),c.success||alert(c.message),l();case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),k=function(){var e=ae(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.next=3,Object(a.G)("".concat(se,"/error_logs"),{nonce:g});case 3:t=e.sent,n=t&&t.data?t.data:[],b(n.reverse()),h(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=React.createElement(a.v,{title:"Main Menu"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"meowapps_hide_meowapps",label:"Hide (Not Recommended)",description:React.createElement(a.B,{p:!0},"This will hide the Meow Apps Menu (on the left side) and everything it contains. You can re-enable it through though an option that will be added in Settings → General."),value:"1",disabled:f,checked:s,onChange:_}))),O=React.createElement(a.v,{title:"SSL Verify"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"force_sslverify",label:"Force (Not Recommended)",description:React.createElement(a.B,{p:!0},"This will enforce the usage of SSL when checking the license or updating the plugin."),value:"1",disabled:f,checked:m,onChange:_})));return React.createElement(a.q,{showRestError:t},React.createElement(a.i,{title:"The Dashboard"}),React.createElement(a.C,null,React.createElement(a.f,{full:!0},React.createElement(a.y,null,React.createElement(a.w,{title:"Meow Apps"},me,React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(L,{title:"Media Cleaner",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/media-cleaner.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-cleaner/"},"Media Cleaner")),React.createElement("p",null,"The Cleaner analyzes your WordPress entirely to find out which files are not used. You can trash them, before deleting them permanently. Your WordPress will breath again :)"))),React.createElement(L,{title:"Database Cleaner",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/database-cleaner.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/database-cleaner/"},"Database Cleaner")),React.createElement("p",null,"Clean your WordPress database. This plugin is simple, handles risk levels, and aims to work even on oversized databases on which other plugins fail to operate."))),React.createElement(L,{title:"Media File Renamer",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/media-file-renamer.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-file-renamer/"},"Media File Renamer")),React.createElement("p",null,"The Renamer will help you in getting nicer filenames for an improved SEO and a tidier filesystem. It's mostly automatic and very fun to use."))),React.createElement(L,{title:"Social Engine",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/social-engine.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/social-engine/"},"Social Engine")),React.createElement("p",null,"Organize, schedule and automate the publishing of your content and photos on social accounts. Similar to Buffer, TweetDeck, etc, but without all the limitations, and in your WordPress."))),React.createElement(L,{title:"Meow Analytics",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/meow-analytics.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-analytics/"},"Meow Analytics")),React.createElement("p",null,"Are you tired of those heavy plugins, accessing your Google Analytics deliberately? Switch to Meow Analytics!")))),React.createElement(a.f,{minimal:!0},React.createElement(L,{title:"Photo Engine",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/wplr-sync.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wplr-sync/"},"Photo Engine")),React.createElement("p",null,"Are you using Lightroom? So you know Photo Engine already. Wait, you don't? You must try it! This plugin will be your favorite very soon."))),React.createElement(L,{title:"Meow Gallery",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/meow-gallery.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")),React.createElement("p",null,"This is the fastest gallery system... and it is pretty as well! It is 100% compatible with the native WordPress galleries and therefore, works right away."))),React.createElement(L,{title:"Meow Lightbox",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/meow-lightbox.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-lightbox/"},"Meow Lightbox")),React.createElement("p",null,"A very sleek and performant Lightbox which will also display your EXIF data (camera, lens, aperture...). Photographers love it."))),React.createElement(L,{title:"Perfect Images (Retina)",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/wp-retina-2x.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wp-retina-2x/"},"Perfect Images + Retina")),React.createElement("p",null,"It handles Retina, help you managing the Image Sizes registered in your WP, and much more."))),React.createElement(L,{title:"Contact Form Block",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/contact-form-block.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/contact-form-block/"},"Contact Form Block")),React.createElement("p",null,"A simple, pretty and superlight contact form. If you simply want your visitors to get in touch with you, this contact form will be perfect for you and your WordPress.")))))),React.createElement(a.w,{title:"Performance"},de,React.createElement("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:25}},React.createElement(Z,{title:"Empty Request Time",request:"empty_request",max:2500}),React.createElement(Z,{title:"File Operation Time",request:"file_operation",max:2600}),React.createElement(Z,{title:"SQL Request Time",request:"sql_request",max:2800}))),React.createElement(a.w,{title:"Recommendations"},fe),React.createElement(a.w,{title:"PHP Info"},React.createElement(q,{dangerouslySetInnerHTML:{__html:R}})),React.createElement(a.w,{title:"PHP Error Logs"},React.createElement(N,null,React.createElement(a.c,{style:{marginBottom:10},color:"#ccb027",onClick:k},"Load PHP Error Logs"),React.createElement(G,null,v.map((function(e){return React.createElement("li",{class:"log-".concat(e.type)},React.createElement("span",{class:"log-type"},e.type),React.createElement("span",{class:"log-date"},e.date),React.createElement("span",{class:"log-content"},e.content))}))))),React.createElement(a.w,{title:"Settings"},React.createElement(a.a,{title:"Settings",className:"primary"},x,O))))))};function ye(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function ge(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){ye(c,r,a,o,l,"next",e)}function l(e){ye(c,r,a,o,l,"throw",e)}o(void 0)}))}}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return be(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 be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ee=wp.element,Re=Ee.useState,we=Ee.useEffect,_e="".concat(d,"/meow-licenser/").concat(s,"/v1"),ke=function(){var e=ve(Re(!1),2),t=e[0],n=e[1],r=ve(Re(!1),2),c=r[0],o=r[1],l=ve(Re(null),2),i=l[0],u=l[1],s=ve(Re(null),2),m=s[0],d=s[1],f=ve(Re(""),2),p=f[0],v=f[1],b=y&&(!m||"valid"!==m.license),E=function(){var e=ge(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return");case 2:return n(!0),e.next=5,Object(a.G)("".concat(_e,"/get_license"),{nonce:g});case 5:t=e.sent,d(t.data),t.data.key&&v(t.data.key),n(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=ge(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.next=3,Object(a.G)("".concat(_e,"/set_license"),{nonce:g,json:{serialKey:null}});case 3:e.sent.success&&(v(""),d(null),u("licenseRemoved")),n(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=ge(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.next=3,Object(a.G)("".concat(_e,"/set_license"),{nonce:g,json:{serialKey:p,override:!0}});case 3:(t=e.sent).success&&(d(t.data),t.data&&!t.data.issue&&u("licenseAdded")),n(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=ge(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("MEOW_OVERRIDE"!==p){e.next=5;break}return o(!0),d(null),v(""),e.abrupt("return");case 5:return n(!0),e.next=8,Object(a.G)("".concat(_e,"/set_license"),{nonce:g,json:{serialKey:p}});case 8:(t=e.sent).success&&(d(t.data),t.data&&!t.data.issue&&u("licenseAdded")),n(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();we((function(){E()}),[]);var k=b?"Forced License":y?"Enabled":"Disabled",x=b||m&&"valid"===m.license,O="Your license is active. Thanks a lot for your support :)";b&&m&&m.check_url&&(O=React.createElement(React.Fragment,null,React.createElement("span",null,O),React.createElement("br",null),React.createElement("small",null,"This license was enabled manually. To check your license status, please click ",React.createElement("a",{target:"_blank",href:m.check_url+"&cache="+642e3*Math.random()},"here"),"."))),x||(m?"no_activations_left"===m.issue?O=React.createElement("span",null,"There are no activations left for this license. You can visit your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"Meow Apps Store"),", unregister a site, and click on ",React.createElement("i",null,"Retry to validate"),"."):"expired"===m.issue?O=React.createElement("span",null,"Your license has expired. You can get another license or renew the current one by visiting your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"Meow Apps Store"),"."):"missing"===m.issue?O="This license does not exist.":"disabled"===m.issue?O="This license has been disabled.":"item_name_mismatch"===m.issue?O="This license seems to be for a different plugin... isn't it? :)":"forced"===m.issue?O="ABC":(O=React.createElement("span",null,"There is an unknown error related to the system or this serial key. Really sorry about this! Make sure your security plugins and systems are off temporarily. If you are still experiencing an issue, please ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com/contact/"},"contact us"),"."),console.error({license:m})):O="Unknown error :(");var T=React.createElement(a.a,{title:"Pro Version (Not Installed)",className:"primary"},"You will find more information about the Pro Version ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"here"),". If you actually bought the Pro Version already, please remove the current plugin and download the Pro Version from your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com/"},"Meow Apps Store"),"."),P=React.createElement(a.a,{title:"Pro Version (".concat(k,")"),busy:t,className:"primary"},React.createElement(a.v,{title:"Serial Key",style:{fontWeight:"bold"}},React.createElement(a.k,{id:"mfrh_pro_serial",name:"mfrh_pro_serial",disabled:t,value:p,onChange:function(e){return v(e)},placeholder:""})),m&&!x&&React.createElement(a.m,null,O),m&&x&&React.createElement(a.n,null,O),!m&&React.createElement(a.B,{p:!0},"Insert your serial key above. If you don't have one yet, you can get one ",React.createElement("a",{href:"https://meowapps.com"},"here"),". If there was an error during the validation, try the ",React.createElement("i",null,"Retry")," to ",React.createElement("i",null,"validate")," button."),React.createElement(a.v,{contentAlign:"right"},m&&!x&&React.createElement(a.c,{className:"secondary",disabled:t||!p,onClick:_},"Retry to validate"),m&&m.key===p&&React.createElement(a.c,{className:"secondary",disabled:t||!p,onClick:R},"Remove License"),React.createElement(a.c,{disabled:t||!p||m&&m.key===p,onClick:_},"Validate License"),c&&!x&&React.createElement(a.c,{disabled:t||!p||m&&m.key===p,onClick:w,className:"danger"},"Force License")),React.createElement(a.o,{isOpen:"licenseAdded"===i,title:"Thank you :)",content:"The Pro features have been enabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}),React.createElement(a.o,{isOpen:"licenseRemoved"===i,title:"Goodbye :(",content:"The Pro features have been disabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}));return h?P:T},xe=wp.element.render;function Oe(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 Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function Ae(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){Se(c,r,a,o,l,"next",e)}function l(e){Se(c,r,a,o,l,"throw",e)}o(void 0)}))}}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(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 Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}document.meowDashboardLoaded||(document.meowDashboardLoaded=!0,document.addEventListener("DOMContentLoaded",(function(e){var t=document.getElementById("meow-common-dashboard");t&&xe(React.createElement(he,null),t)})));var Ie=wp.element,De=Ie.useState,Me=Ie.useMemo,Ue=Ie.useCallback,Be={marginTop:10,background:"rgb(0, 72, 88)",padding:10,color:"rgb(58, 212, 58)",maxHeight:600,minHeight:200,display:"block",fontFamily:"monospace",fontSize:12,whiteSpace:"pre",overflowX:"auto",width:"calc(100vw - 276px)"},Ne=["".concat(f,"/all_settings/"),{headers:{"X-WP-Nonce":g}}],Le=function(){var e,t,n,c=Object(r.b)(Ne,a.F),o=c.data,l=c.mutate,i=Object(a.H)(o,{},!0),u=i.busy,d=i.data,p=i.error,v=je(De(""),2),b=v[0],E=v[1],R=je(De(!1),2),w=R[0],_=R[1],k=u||w,x=null==d?void 0:d.mfrh_auto_rename,O=null==d?void 0:d.mfrh_on_upload,T=null==d?void 0:d.mfrh_rename_slug,P=null==d?void 0:d.mfrh_convert_to_ascii,S=null==d?void 0:d.mfrh_update_posts,A=null==d?void 0:d.mfrh_update_excerpts,j=null==d?void 0:d.mfrh_update_postmeta,C=null==d?void 0:d.mfrh_update_elementor,I=null==d?void 0:d.mfrh_undo,D=null==d?void 0:d.mfrh_move,M=null==d?void 0:d.mfrh_manual_rename,U=null==d?void 0:d.mfrh_manual_sanitize,B=null==d?void 0:d.mfrh_numbered_files,N=null==d?void 0:d.mfrh_sync_alt,L=null==d?void 0:d.mfrh_sync_media_title,F=null==d?void 0:d.mfrh_force_rename,q=null==d?void 0:d.mfrh_log,G=null==d?void 0:d.mfrh_logsql,z=null==d?void 0:d.mfrh_rename_guid,H=null==d?void 0:d.mfrh_case_insensitive_check,Y=null==d?void 0:d.mfrh_rename_on_save,W=null!==(e=null==d?void 0:d.mfrh_acf_field_name)&&void 0!==e?e:null,V=null!==(t=null==d?void 0:d.mfrh_images_only)&&void 0!==t&&t,$=null!==(n=null==d?void 0:d.mfrh_featured_only)&&void 0!==n&&n,J=null==d?void 0:d.mfrh_clean_uninstall,X=null==d?void 0:d.mfrh_delay,K=null==d?void 0:d.mfrh_autolock_auto,Q=null==d?void 0:d.mfrh_autolock_manual,Z=[{id:"media_title",value:"media_title",label:React.createElement("span",null,"Based on Media Title"),requirePro:!1},{id:"post_acf_field",value:"post_acf_field",label:React.createElement("span",null,"Based on Attached Post (ACF Field)"),requirePro:!1},{id:"post_title",value:"post_title",label:React.createElement("span",null,"Based on Attached Post Title"),requirePro:!y},{id:"alt_text",value:"alt_text",label:React.createElement("span",null,"Based on Alternative Text"),requirePro:!y},{id:"anonymize_md5",value:"anonymize_md5",label:React.createElement("span",null,"Anonymize with MD5"),requirePro:!y},{id:"none",value:"none",label:React.createElement("span",null,"Disable Automatic Rename"),requirePro:!1}],ee=Ue(function(){var e=Ae(regeneratorRuntime.mark((function e(t,n){var r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=Te({},o.data))[n]=t,l(Te(Te({},o),{},{data:r}),!1),_(!0),e.prev=4,e.next=7,Object(a.G)("".concat(f,"/update_option"),{nonce:g,json:{name:n,value:t}});case 7:(c=e.sent).success||alert(c.message),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),alert(e.t0.message);case 14:return e.prev=14,_(!1),l(),e.finish(14);case 18:case"end":return e.stop()}}),e,null,[[4,11,14,18]])})));return function(t,n){return e.apply(this,arguments)}}(),[l,o]),te=function(){var e=Ae(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,Object(a.G)("".concat(f,"/refresh_logs"),{nonce:g});case 3:(t=e.sent).success&&E(t.data),_(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=Ae(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,Object(a.G)("".concat(f,"/clear_logs"),{nonce:g});case 3:(t=e.sent).success&&E(t.data),_(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),re=React.createElement(a.a,{busy:k,title:"Side Updates",className:"primary"},React.createElement(a.B,{p:!0,style:{marginTop:0}},"When the files are renamed, many links to them on your WordPress might be broken. Those options are updating the references to those files. ",React.createElement("strong",null,"Give it a try, every install is different and it might not work for certain kind of references.")),React.createElement(a.v,{title:"Posts"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_posts",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references to the renamed files in the ",React.createElement("strong",null,"content")," of the posts (of all types)."),value:"1",checked:S,onChange:ee}))),React.createElement(a.v,{title:"Excerpts"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_excerpts",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references to the renamed files in the ",React.createElement("strong",null,"excerpts")," of the posts (of all types)."),value:"1",checked:A,onChange:ee}))),React.createElement(a.v,{title:"Post Meta"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_postmeta",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references in the ",React.createElement("strong",null,"custom fields")," of the posts (including pages and custom types metadata)."),value:"1",checked:j,onChange:ee}))),React.createElement(a.v,{title:"Elementor"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_elementor",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references in the ",React.createElement("strong",null,"encrypted data")," of the posts handled by Elementor. ",React.createElement("span",null,"This will probably slow down the renaming extremely and cause timeouts. Test it carefully.")),value:"1",checked:C,onChange:ee})))),ae=React.createElement(a.v,{title:"Method"},React.createElement(a.u,{id:"mfrh_auto_rename",disabled:k,value:x,scrolldown:!0,name:"mfrh_auto_rename",description:"Attached Post includes all kinds of Post Types: Posts, Pages, Products, etc.",onChange:ee},Z.map((function(e){return React.createElement(a.p,{key:e.id,id:e.id,value:e.value,label:e.label,requirePro:e.requirePro})})))),ce=Me((function(){return"post_acf_field"!==x?null:React.createElement(a.v,{title:"ACF Field Name"},React.createElement(a.k,{id:"mfrh_acf_field_name",name:"mfrh_acf_field_name",value:W,onBlur:ee}))}),[W,x,ee]),oe=React.createElement(a.v,{title:"Images Only"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_images_only",label:"Enable",description:"Restricts the renaming to images and icons. Nothing else will be renamed.",value:"1",checked:V,onChange:ee}))),le=React.createElement(a.v,{title:"Featured Only"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_featured_only",label:"Enable",description:"Restricts the renaming to Featured Images only.",value:"1",checked:$,onChange:ee}))),ie=React.createElement(a.v,{title:"On Upload"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_on_upload",disabled:k,label:"Enable",description:React.createElement(React.Fragment,null,React.createElement("span",null,"If your image has an EXIF title, it will be used to decide the filename. "),"post_title"===x&&React.createElement("span",null,"Note: The Attached Post Title ",React.createElement("u",null,"will not be used")," at the time of the upload due to WordPress API constraints.")),value:"1",checked:O,onChange:ee}))),ue=React.createElement(a.v,{title:"Slug/Permalink"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_slug",disabled:k,label:"Sync with filename",description:"Better to keep this un-checked as the link might have been referenced somewhere else.",value:"1",checked:T,onChange:ee}))),se=React.createElement(a.v,{title:"Transliteration"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_convert_to_ascii",disabled:k,label:"Enable (Recommended)",description:React.createElement(a.B,{p:!0},"Replace accents, emoticons, diacritics, umlauts, cyrillic and any kind of tricky characters by their ASCII equivalent.",React.createElement("br",null)," ",React.createElement("i",null,"Examples: tête → tete, schön → schon, Добро → dobro, etc.")),value:"1",requirePro:!y,checked:P,onChange:ee}))),me=React.createElement(a.v,{title:"Undo"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_undo",disabled:k,label:"Enable",description:"An undo icon will be added to the UI. This allows to rollback to the original filename.",value:"1",checked:I,onChange:ee}))),de=React.createElement(a.v,{title:"Move"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_move",disabled:k,label:"Enable",description:"A move button will be added, and will allow you to move a file to another directory.",value:"1",checked:D,onChange:ee,requirePro:!y}))),fe=React.createElement(a.v,{title:"Rename Field"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_manual_rename",disabled:k,label:"Enable",description:"An editable field will be added everywhere your files appear in the UI.",value:"1",checked:M,onChange:ee}))),pe=React.createElement(a.v,{title:"Sanitize"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_manual_sanitize",disabled:k,label:"Enable",description:"Even if it is manual, the plugin will sanitize the filename you type. That way, you are sure the final filename will be clean and safe to use.",value:"1",checked:U,onChange:ee}))),he=React.createElement(a.v,{title:"Force Rename"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_force_rename",disabled:k,label:"Enable",description:"Update the references to the file even if the file renaming itself was not successful. You might want to use that option if your install is broken and you are trying to link your Media to files for which the filenames has been altered (after a migration for exemple)",value:"1",requirePro:!y,checked:F,onChange:ee}))),ye=React.createElement(a.v,{title:"Numbered Files"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_numbered_files",disabled:k,label:"Enable Numbering",description:"Identical filenames will be allowed by the plugin and a number will be appended automatically (myfile.jpg, myfile-2.jpg, myfile-3.jpg, etc).",requirePro:!y,value:"1",checked:B,onChange:ee}))),ge=React.createElement(a.v,{title:"ALT Text"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_sync_alt",disabled:k||"alt_text"==x,label:React.createElement(a.B,null,"Synchronize"),description:"The ALT Text will be synchronized with the same source used for the filename.",requirePro:!y,value:"1",checked:N,onChange:ee}))),ve=React.createElement(a.v,{title:"Media Title"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_sync_media_title",disabled:k||"media_title"===x,label:React.createElement(a.B,null,"Synchronize"),description:"The Media Title will be synchronized with the same source used for the filename.",requirePro:!y,value:"1",checked:L,onChange:ee}))),be=React.createElement(a.v,{title:"Logs"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_log",label:"Enable",description:React.createElement(a.B,{p:!0},"Simple logging that explains which actions has been run."),value:"1",checked:q,onChange:ee}),React.createElement("div",{style:{marginTop:20}},React.createElement(a.c,{onClick:te},"Refresh Logs"),React.createElement(a.c,{className:"danger",onClick:ne},"Clear Logs")))),Ee=React.createElement(a.v,{title:"SQL Logs"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_logsql",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"The files mfrh_sql.log and mfrh_sql_revert.log will be created in the /logs directory and will include the raw SQL queries which were run by the plugin. If there is an issue, the revert SQL file can help you."),requirePro:!y,value:"1",checked:G,onChange:ee}))),Re=React.createElement(a.v,{title:"GUID"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_guid",disabled:k,label:"Sync with filename",description:"The GUID will be renamed like the new filename. Better to keep this un-checked.",value:"1",checked:z,onChange:ee}))),we=React.createElement(a.v,{title:"Case Insensitive"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_case_insensitive_check",label:"Enable",value:"1",checked:H,onChange:ee,description:React.createElement(React.Fragment,null,'This will consider the file such as "abc.jpg" and "ABC.JPG" as the same file. More information ',React.createElement("a",{target:"_blank",href:"https://meowapps.com/media-file-renamer-faq-issues/"},"here"),". You should check this if you are on a Windows-based server.")}))),_e=React.createElement(a.v,{title:"Rename on Post Save"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_on_save",disabled:k,label:"Enable (Unsafe)",description:"You can modify the titles of your media while editing a post but, of course, the plugin can't update the HTML at this stage. With this option, the plugin will update the filenames and HTML after that you saved the post.",value:"1",checked:Y,onChange:ee}))),xe=React.createElement(a.v,{title:"Plugin Data"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_clean_uninstall",label:"Delete all",description:"The database and all the options of the plugin will be removed on uninstall. This also includes the information about the plugin's trash.",value:"1",checked:J,onChange:ee}))),Oe=React.createElement(a.v,{title:"Delay (in ms)"},React.createElement(a.k,{id:"mfrh_delay",type:"number",value:X,min:"0",max:"20000",onEnter:ee,onBlur:ee,description:"Time to wait between each request (in milliseconds). The overall process is intensive so this gives the chance to your server to chill out a bit. A very good server doesn't need it, but a slow/shared hosting might even reject requests if they are too fast and frequent. Recommended value is actually 0, 100 for safety, 2000 or 5000 if your hosting is kind of cheap."})),Pe=React.createElement(a.v,{title:"Automatic Rename"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_autolock_auto",disabled:k,label:"Lock",description:"This is disabled by default; your media will be always renamed when needed.",value:"1",checked:K,onChange:ee}))),Se=React.createElement(a.v,{title:"Manual Rename"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_autolock_manual",disabled:k,label:"Lock",description:"This is enabled by default; when you rename a media manually, it normally means that you want to fix the filename by yourself.",value:"1",checked:Q,onChange:ee})));return React.createElement(a.q,{nekoErrors:[p]},React.createElement(a.i,{title:"Media File Renamer | Settings",subtitle:"By Jordy Meow"},React.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},React.createElement(a.c,{className:"header",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Tutorial"),React.createElement(a.c,{className:"header",icon:"dashboard",onClick:function(){return location.href="upload.php?page=mfrh_dashboard"}},"Dashboard"))),React.createElement(a.C,null,React.createElement(a.f,{full:!0},React.createElement(a.g,null,React.createElement(a.B,{p:!0},"It works out of the box, the default settings are good for most installs. However, you should really have a look at the ",React.createElement("a",{href:"https://meowapps.com/plugin/media-file-renamer/"},"tutorial"),". If you are a SEO guru or someone who loves having a perfectly neat filesystem, it is recommended to use automatic renaming first, then to tweak specific files with manual renaming. The ",React.createElement("a",{href:"/wp-admin/upload.php?page=mfrh_dashboard"},"Renamer Dashboard")," makes it very easy.")),React.createElement(a.y,{keepTabOnReload:!0},React.createElement(a.w,{title:"Basic"},React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Settings",className:"primary"},React.createElement(a.B,{h2:!0},"Automatic"),React.createElement(a.B,{p:!0},"This plugin's main goal is to make the process of optimizing your filenames entirely automatic. By default, your files will be named after the title of your media entry."),ae,ce,React.createElement(a.B,{h2:!0},"Manual"),fe,pe,React.createElement(a.B,{h2:!0},"Extra Options"),ie,oe,le)),React.createElement(a.f,{minimal:!0},re,React.createElement(a.a,{busy:k,title:"UI (Extra Features)",className:"primary"},me,de)))),React.createElement(a.w,{title:"Advanced"},React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Renaming",className:"primary"},se,ye),React.createElement(a.a,{busy:k,title:"Fields Syncing",className:"primary"},ue,Re,ge,ve,React.createElement(a.B,{p:!0},"The fields in the database will be synchronized, but the data already written in your HTML will not be overwritten.")),React.createElement(a.a,{busy:k,title:"Auto Lock",className:"primary"},Pe,Se),React.createElement(a.a,{busy:k,title:"On Uninstall",className:"primary"},xe)),React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Performance",className:"primary"},Oe),React.createElement(a.a,{busy:k,title:"For Developers",className:"primary"},we,he,Ee,_e)))),React.createElement(a.w,{title:"License (Pro)"},React.createElement(ke,{domain:m,prefix:s,isPro:h,isRegistered:y})),React.createElement(a.w,{title:"Logs & Debug"},React.createElement(a.a,{busy:k,className:"primary"},be),React.createElement("div",{style:Be},b))))))},Fe=n(0);function qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ze(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 He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function Ve(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){We(c,r,a,o,l,"next",e)}function l(e){We(c,r,a,o,l,"throw",e)}o(void 0)}))}}var $e,Je,Xe,Ke={pending:"-",renamed:"-",locked:"-",all:"-"},Qe={accessor:"id",by:"asc"},Ze=0,et={filterBy:"pending",sort:Qe,page:1,limit:10,search:"",busy:!1,stats:Ke,apiErrors:null,status:"",entries:[],selectedItems:[],total:0,autoRename:!1,onUpload:!1,renameSlug:!1,convertToAscii:!1,updatePosts:!0,updatePostmeta:!0,undo:!1,move:!1,manualRename:!1,numberedFiles:!1,syncAlt:!1,syncMedia_title:!1,forceRename:!1,log:!1,logsql:!1,renameGuid:!1,caseInsensitiveCheck:!1,renameOnSave:!1,acfFieldName:null,imagesOnly:!1,delay:100,modals:{renameAll:!1,undoAll:!1,editTitle:!1,autoAttach:!1},mutateEntries:(Xe=Ve(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return Xe.apply(this,arguments)}),mutateStats:(Je=Ve(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return Je.apply(this,arguments)}),mutateSettings:($e=Ve(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return $e.apply(this,arguments)})},tt=function(e,t){switch(t.type){case"ENTRIES_UPDATED":var n=t.entries;return He(He({},e),{},{entries:n});case"STATS_UPDATED":var r=t.stats;return He(He({},e),{},{stats:r});case"ERROR_UPDATED":var a=t.apiErrors;return He(He({},e),{},{apiErrors:a});case"PAGE_UPDATED":var c=t.page;return He(He({},e),{},{page:c});case"SET_ENTRIES_MUTATE":var o=t.mutateEntries;return He(He({},e),{},{mutateEntries:o});case"SET_STATS_MUTATE":var l=t.mutateStats;return He(He({},e),{},{mutateStats:l});case"SET_SETTINGS_MUTATE":var i=t.mutateSettings;return He(He({},e),{},{mutateSettings:i});case"LIMIT_UPDATED":var u=t.limit;return He(He({},e),{},{limit:u});case"FILTER_UPDATED":var s=t.filter;return He(He({},e),{},{filterBy:s});case"SORT_UPDATED":var m=t.sort,d=void 0===m?Qe:m;return He(He({},e),{},{sort:d});case"SEARCH_UPDATED":var f=t.search;return He(He({},e),{},{search:f});case"TOTAL_UPDATED":var p=t.total;return He(He({},e),{},{total:p});case"TOGGLE_MODAL":var h=t.modal,y=t.enable;if(void 0===e.modals[h])return alert("The modal ".concat(h," doesn't exist.")),console.error("The modal ".concat(h," doesn't exist.")),e;void 0===y&&(y=!e.modals[h]);var g=He({},e);return g.modals=He({},g.modals),g.modals[h]=y,g;case"PUSH_BUSY":var v=t.status,b=void 0===v?"":v;return He(He({},e),{},{busy:++Ze>0,status:b});case"POP_BUSY":var E=t.status,R=void 0===E?"":E;return He(He({},e),{},{busy:--Ze>0,status:R});case"STATUS_UPDATED":var w=t.status,_=void 0===w?"":w;return He(He({},e),{},{status:_});case"SETTINGS_UPDATED":var k,x,O,T,P,S,A,j,C,I,D,M,U,B,N,L,F,q,G,z,H=t.settings,Y=null!==(k=H.mfrh_auto_rename)&&void 0!==k&&k,W=null!==(x=H.mfrh_on_upload)&&void 0!==x&&x,V=null!==(O=H.mfrh_rename_slug)&&void 0!==O&&O,$=null!==(T=H.mfrh_convert_to_ascii)&&void 0!==T&&T,J=null===(P=H.mfrh_update_posts)||void 0===P||P,X=null===(S=H.mfrh_update_postmeta)||void 0===S||S,K=(A=H.mfrh_update_elementor,null!==(j=H.mfrh_undo)&&void 0!==j&&j),Q=null!==(C=H.mfrh_move)&&void 0!==C&&C,Z=null!==(I=H.mfrh_manual_rename)&&void 0!==I&&I,ee=null!==(D=H.mfrh_numbered_files)&&void 0!==D&&D,te=null!==(M=H.mfrh_sync_alt)&&void 0!==M&&M,ne=null!==(U=H.mfrh_sync_media_title)&&void 0!==U&&U,re=null!==(B=H.mfrh_force_rename)&&void 0!==B&&B,ae=null!==(N=H.mfrh_log)&&void 0!==N&&N,ce=null!==(L=H.mfrh_logsql)&&void 0!==L&&L,oe=null!==(F=H.mfrh_rename_guid)&&void 0!==F&&F,le=null!==(q=H.mfrh_case_insensitive_check)&&void 0!==q&&q,ie=null!==(G=H.mfrh_rename_on_save)&&void 0!==G&&G,ue=H.mfrh_acf_field_name,se=null!==(z=H.mfrh_images_only)&&void 0!==z&&z,me=H.mfrh_posts_per_page?parseInt(H.mfrh_posts_per_page):10,de=H.mfrh_delay?parseInt(H.mfrh_delay):0;return He(He({},e),{},{autoRename:Y,onUpload:W,renameSlug:V,convertToAscii:$,updatePosts:J,updatePostmeta:X,undo:K,move:Q,manualRename:Z,numberedFiles:ee,syncAlt:te,syncMedia_title:ne,forceRename:re,log:ae,logsql:ce,renameGuid:oe,caseInsensitiveCheck:le,renameOnSave:ie,acfFieldName:ue,imagesOnly:se,limit:me,delay:de});case"ITEMS_SELECTED":var fe=t.selectedItems;return He(He({},e),{},{selectedItems:fe});default:return e}},nt=Object(Fe.createContext)(),rt=function(e){var t=e.children,n=qe(Object(Fe.useReducer)(tt,et),2),c=n[0],o=n[1],l=c.filterBy,i=c.sort,u=c.search,s=c.page,m=c.limit,d=Object(Fe.useMemo)((function(){return[Object(a.D)("".concat(f,"/media"),{limit:m,skip:(s-1)*m,filterBy:l,orderBy:i.accessor,order:i.by,search:u}),{headers:{"X-WP-Nonce":g}}]}),[m,s,l,i,u]),p=Object(Fe.useMemo)((function(){return[Object(a.D)("".concat(f,"/stats"),{search:u}),{headers:{"X-WP-Nonce":g}}]}),[u]),h=Object(Fe.useMemo)((function(){return["".concat(f,"/all_settings/"),{headers:{"X-WP-Nonce":g}}]}),[]),y=Object(r.b)(d,a.F),v=y.data,b=y.mutate;Object(Fe.useEffect)((function(){o({type:"SET_ENTRIES_MUTATE",mutateEntries:b})}),[b]),Object(Fe.useEffect)((function(){o({type:"SET_STATS_MUTATE",mutateStats:T})}),[T]),Object(Fe.useEffect)((function(){o({type:"SET_SETTINGS_MUTATE",mutateSettings:D})}),[D]);var E=Object(a.H)(v,[],!0),R=E.busy,w=E.data,_=E.total,k=E.error;Object(Fe.useEffect)((function(){o({type:R?"PUSH_BUSY":"POP_BUSY"})}),[R]),Object(Fe.useEffect)((function(){o({type:"ENTRIES_UPDATED",entries:w})}),[w]),Object(Fe.useEffect)((function(){o({type:"TOTAL_UPDATED",total:_})}),[_]),Object(Fe.useEffect)((function(){o({type:"ERROR_UPDATED",apiError:k})}),[k]);var x=Object(r.b)(p,a.F),O=x.data,T=x.mutate,P=Object(a.H)(O,Ke,!0),S=P.busy,A=P.data,j=P.error;Object(Fe.useEffect)((function(){o({type:S?"PUSH_BUSY":"POP_BUSY"})}),[S]),Object(Fe.useEffect)((function(){o({type:"STATS_UPDATED",stats:A})}),[A]),Object(Fe.useEffect)((function(){o({type:"ERROR_UPDATED",apiError:j})}),[j]);var C=Object(r.b)(h,a.F),I=C.data,D=C.mutate,M=Object(a.H)(I,{},!0),U=M.busy,B=M.data,N=M.error;return Object(Fe.useEffect)((function(){o({type:U?"PUSH_BUSY":"POP_BUSY"})}),[U]),Object(Fe.useEffect)((function(){o({type:"SETTINGS_UPDATED",settings:B})}),[B]),Object(Fe.useEffect)((function(){o({type:"ERROR_UPDATED",apiError:N})}),[N]),React.createElement(nt.Provider,{value:[c,o]},t)},at=function(){var e={},t=qe(Object(Fe.useContext)(nt),2),n=t[0],r=t[1];return e.setSelectedItems=function(e){r({type:"ITEMS_SELECTED",selectedItems:e})},e.setStatus=function(e){r({type:"STATUS_UPDATED",status:e})},e.updateOption=function(){var e=Ve(regeneratorRuntime.mark((function e(t,c){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"PUSH_BUSY"}),e.prev=1,e.next=4,Object(a.G)("".concat(f,"/update_option"),{nonce:g,json:{name:c,value:t}});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),alert(e.t0);case 9:r({type:"POP_BUSY"}),n.mutateSettings();case 11:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}(),e.updateEntry=function(){var e=Ve(regeneratorRuntime.mark((function e(t,c){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"STATUS_UPDATED",status:"Updating..."}),r({type:"PUSH_BUSY"}),e.prev=2,e.next=5,Object(a.G)("".concat(f,"/update_media"),{nonce:g,json:He({id:c},t)});case 5:if(e.sent.success){e.next=8;break}throw new Error("Failed to move the folder/gallery.");case 8:n.mutateEntries(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),alert(e.t0.message);case 14:return e.prev=14,r({type:"POP_BUSY"}),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,11,14,17]])})));return function(t,n){return e.apply(this,arguments)}}(),e.setPage=function(e){r({type:"PAGE_UPDATED",page:e})},e.setLimit=function(e){r({type:"LIMIT_UPDATED",limit:e})},e.setFilter=function(e){r({type:"FILTER_UPDATED",filter:e})},e.setSort=function(e){r({type:"SORT_UPDATED",sort:e})},e.setSearch=function(e){r({type:"SEARCH_UPDATED",search:e})},e.toggleModal=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;r({type:"TOGGLE_MODAL",modal:e,enable:t})},e.pushBusy=function(){r({type:"PUSH_BUSY"})},e.popBusy=function(){r({type:"POP_BUSY"})},He(He({},n),e)},ct=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function ot(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 lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){it(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e){return function(e){if(Array.isArray(e))return pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ft(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 st(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function mt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){st(c,r,a,o,l,"next",e)}function l(e){st(c,r,a,o,l,"throw",e)}o(void 0)}))}}function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||ft(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 ft(e,t){if(e){if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(e,t):void 0}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ht=wp.element,yt=ht.useState,gt=ht.useEffect,vt=ht.useMemo,bt={width:40,height:40,objectFit:"cover"},Et=[{accessor:"thumbnail_url",title:u.THUMB,style:{width:16}},{accessor:"post_title",title:u.TITLE,sortable:!0,style:{width:"25%"}},{accessor:"post_parent",title:u.ATTACHED_TO,sortable:!0,style:{width:"25%"}},{accessor:"current_filename",title:u.FILENAME,sortable:!0}],Rt=function(){var e=at(),t=e.apiErrors,n=e.busy,r=e.selectedItems,c=e.entries,o=e.stats,l=e.total,i=e.filterBy,s=e.search,m=e.status,d=e.sort,p=e.page,h=e.limit,b=e.modals,E=at(),R=E.setSelectedItems,w=E.setSearch,_=E.setStatus,k=E.setSort,x=E.setPage,O=E.setLimit,T=E.setFilter,P=E.delay,S=E.mutateEntries,A=E.mutateStats,j=E.toggleModal,C=E.updateOption,I=E.updateEntry,D=dt(yt(!1),2),M=D[0],B=D[1],N=dt(yt(""),2),L=N[0],F=N[1],q=dt(yt(),2),G=q[0],z=q[1],H=Object(a.J)(),Y=vt((function(){return c.map((function(e){return{id:e.ID,thumbnail_url:React.createElement("img",{src:e.thumbnail_url,style:bt}),post_title:React.createElement("div",{style:{display:"flex",alignItems:"center"}},React.createElement("a",{href:"post.php?post=".concat(e.ID,"&action=edit")},e.post_title),React.createElement(a.j,{icon:"pencil",width:"20",height:"20",color:a.z.blue,style:{marginLeft:"2px",cursor:"pointer"},onClick:function(){z(e),j("editTitle")}})),post_parent:React.createElement("div",{style:{maxHeight:35,overflow:"hidden"}},e.post_parent_title?e.post_parent_title:React.createElement("i",{style:{color:"#c1c1c1"}},"None")),current_filename:React.createElement(U,{entry:e,mutate:function(){S(),A()}})}}))}),[c]);gt((function(){R([]),k(),x(1)}),[i,s]),gt((function(){if(null!==H.busy&&(B(H.busy),!H.busy)){var e=H.getErrorCount();e>0&&F("The process has finished, but ".concat(e," error(s) occurred (check your console).")),H.reset(),R([]),S(),A()}}),[H.busy]);var W=function(){var e=mt(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(P>0)){e.next=3;break}return e.next=3,ct(P);case 3:return e.next=5,Object(a.G)("".concat(f,"/get_all_ids"),{nonce:g,json:{unlockedOnly:t}});case 5:if((n=e.sent).success){e.next=9;break}return alert(n.message),e.abrupt("return",[]);case 9:return e.abrupt("return",n.data);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=mt(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(P>0)){e.next=3;break}return e.next=3,ct(P);case 3:return e.next=5,Object(a.G)("".concat(f,"/get_all_post_ids"),{nonce:g});case 5:if((t=e.sent).success){e.next=9;break}return alert(t.message),e.abrupt("return",[]);case 9:return e.abrupt("return",t.data);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _("Preparing..."),B(!0),e.next=4,V();case 4:if(!(t=e.sent)){e.next=11;break}return _("Auto attaching..."),n=Object(a.E)(t,20),r=n.map((function(e){return function(){var t=mt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(P>0)){t.next=3;break}return t.next=3,ct(P);case 3:return t.next=5,Object(a.G)("".concat(f,"/auto_attach"),{nonce:g,json:{postIds:e},signal:n});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),H.start(r),e.abrupt("return");case 11:B(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:null,_("Preparing..."),B(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,W(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=16;break}return _("Undoing..."),r=n.map((function(e){return function(){var t=mt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_("Undo Media ".concat(e)),!(P>0)){t.next=4;break}return t.next=4,ct(P);case 4:return t.next=6,Object(a.G)("".concat(f,"/undo"),{nonce:g,json:{mediaId:e},signal:n});case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),H.start(r),e.abrupt("return");case 16:B(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r,c,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:null,_("Preparing..."),B(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,W(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=17;break}return _("Analyzing..."),r=Object(a.E)(n,20),c=r.map((function(e){return function(){var t=mt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(P>0)){t.next=3;break}return t.next=3,ct(P);case 3:return t.next=5,Object(a.G)("".concat(f,"/analyze"),{nonce:g,json:{mediaIds:e},signal:n});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),H.start(c),e.abrupt("return");case 17:B(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r,c,o,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(l.length>0&&void 0!==l[0])||l[0],n=l.length>1&&void 0!==l[1]?l[1]:null,_("Preparing..."),B(!0),!n){e.next=8;break}e.t0=n,e.next=11;break;case 8:return e.next=10,W(t);case 10:e.t0=e.sent;case 11:if(!(r=e.t0)){e.next=18;break}return _("".concat(t?"Locking..":"Unlocking...")),c=Object(a.E)(r,50),o=c.map((function(e){return function(){var e=mt(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(P>0)){e.next=3;break}return e.next=3,ct(P);case 3:return e.next=5,Object(a.G)("".concat(f,"/set_lock"),{nonce:g,json:{mediaIds:r,lock:t},signal:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),H.start(o),e.abrupt("return");case 18:B(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:null,_("Preparing..."),B(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,W(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=15;break}return r=n.map((function(e){return function(){var t=mt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_("Renaming #".concat(e)),!(P>0)){t.next=4;break}return t.next=4,ct(P);case 4:return t.next=6,Object(a.G)("".concat(f,"/rename"),{nonce:g,json:{mediaId:e},signal:n});case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),H.start(r),e.abrupt("return");case 15:B(!1);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=mt(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:I({post_title:t.post_title},t.ID);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=function(){var e=mt(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C(t,"mfrh_posts_per_page");case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),te=React.createElement(React.Fragment,null,React.createElement("div",null,"All your posts, pages, products (and other post types) will be scanned, and if images are used in them, they will be attached. Currently, Featured Images and Product Galleries are supported. Should we start?"),!y&&React.createElement("div",{style:{marginTop:20}},React.createElement("b",null,"This feature is only available in the Pro version."))),ne=React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return window.open("https://meowapps.com/plugin/media-file-renamer/","_blank")}},"Get the Pro Version"),React.createElement(a.c,{className:"primary",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Read the tutorial"));return React.createElement(a.q,{nekoErrors:[t]},React.createElement(a.i,{title:"Media File Renamer | Dashboard",subtitle:"By Jordy Meow"},React.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},React.createElement(a.c,{className:"header",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Tutorial"),React.createElement(a.c,{icon:"cog",className:"header",onClick:function(){return location.href="admin.php?page=mfrh_settings"}},"Settings"))),React.createElement(a.C,null,React.createElement(a.f,{full:!0},!y&&React.createElement(a.g,{footer:ne},React.createElement(a.B,{p:!0},"You must ",React.createElement("b",null,"backup the uploads folder and DB")," before using the Renamer. If you don't know how, give a try to ",React.createElement("a",{target:"_blank",href:"https://meow.click/blogvault"},"BlogVault"),". It is also highly recommanded to read the tutorial. Last but not least, check the ",React.createElement("b",null,"Pro Version"),", as it adds many features and also supports the development. This message is only displayed in the free version. Thank you!")),React.createElement(a.A,null,React.createElement(a.c,{onClick:function(){return X()}},"Analyze Library"),React.createElement(a.c,{onClick:function(){return j("autoAttach")}},"Auto Attach"),"pending"===i&&r.length>0&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return Q(r)}},"Rename ",React.createElement("strong",null,r.length)," entries"),React.createElement(a.c,{className:"secondary",onClick:function(){return K(!0,r)}},"Lock ",React.createElement("strong",null,r.length)," entries")),v&&"renamed"===i&&r.length>0&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return J(r)}},"Undo ",React.createElement("strong",null,r.length)," entries")),React.createElement("div",{style:{flex:1}},M&&React.createElement(a.s,{status:function(e){return"".concat(m," (").concat(e,"%)")},busy:M,value:H.value,max:H.max,onStopClick:H.stop})),!(n||M)&&React.createElement(React.Fragment,null,React.createElement(a.k,{onBlur:function(e){w(e)},value:s,onEnter:function(e){w(e)}}),!s&&React.createElement(a.j,{icon:"search",width:24,style:{position:"relative",left:-34,marginRight:-22},color:"#5a5a5a82"}),s&&React.createElement(a.j,{icon:"close",width:24,style:{position:"relative",left:-34,marginRight:-22},color:a.z.blue,onClick:function(){w("")}})),"all"===i&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return K(!0)}},"Lock ",React.createElement("strong",null,"All")),React.createElement(a.c,{className:"secondary",onClick:function(){return K(!1)}},"Unlock ",React.createElement("strong",null,"All"))),("all"===i||"pending"===i)&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"primary",onClick:function(){return j("renameAll")}},"Rename ",React.createElement("strong",null,"All"))),v&&("all"===i||"renamed"===i)&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"danger",onClick:function(){return j("undoAll")}},"Undo ",React.createElement("strong",null,"All")))),React.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:10,marginBottom:10}},React.createElement(a.t,{value:i,busy:n||M,onChange:function(e){T(e),x(1)}},React.createElement(a.l,{title:u.PENDING,value:"pending",count:o.pending}),React.createElement(a.l,{title:"Renamed",value:"renamed",count:o.renamed}),React.createElement(a.l,{title:"Locked",value:"locked",count:o.locked}),React.createElement(a.l,{title:"All",value:"all",count:o.all})),React.createElement(a.r,{currentPage:p,limit:h,total:l,onClick:function(e){return x(e)},onCurrentPageChanged:function(e){return x(e)}})),React.createElement(a.x,{busy:n||M,data:Y,columns:Et,sort:d,onSortChange:function(e,t){k({accessor:e,by:t})},onSelect:function(e){R([].concat(ut(r),ut(e)))},onUnselect:function(e){R(ut(r.filter((function(t){return!e.includes(t)}))))},selectedItems:r}),React.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:10}},React.createElement(a.u,{scrolldown:!0,value:h,onChange:function(e){O(e),x(1),ee(e)}},React.createElement(a.p,{value:5,label:"5 items per page"}),React.createElement(a.p,{value:10,label:"10 items per page"}),React.createElement(a.p,{value:25,label:"25 items per page"}),React.createElement(a.p,{value:50,label:"50 items per page"}),React.createElement(a.p,{value:100,label:"100 items per page"}),React.createElement(a.p,{value:200,label:"200 items per page"})),React.createElement(a.r,{currentPage:p,limit:h,total:l,onClick:function(e){return x(e)},onCurrentPageChanged:function(e){return x(e)}}))),React.createElement(a.o,{isOpen:b.autoAttach,onRequestClose:function(){return j("autoAttach",!1)},title:"Automatically attach your images to your posts",content:te,ok:y?"Run":"I need the Pro Version",onOkClick:function(){j("autoAttach",!1),y&&$()},onCancelClick:function(){j("autoAttach",!1)}}),React.createElement(a.o,{isOpen:b.renameAll,onRequestClose:function(){return j("renameAll",!1)},title:"You are about to rename all your (unlocked) files",content:"Renaming files is a dangerous operation. Please make sure you made a backup or your entire WordPress install. Should we start?",onOkClick:function(){j("renameAll",!1),Q()},onCancelClick:function(){j("renameAll",!1)}}),React.createElement(a.o,{isOpen:b.undoAll,onRequestClose:function(){return j("undoAll",!1)},title:"You are about to undo the renaming for all your files",content:"Are you sure you would like to proceed?",onOkClick:function(){j("undoAll",!1),J()},onCancelClick:function(){j("undoAll",!1)}}),React.createElement(a.o,{isOpen:L,title:"Success",ok:"Close",content:L,onOkClick:function(){F(""),H.reset()}}),React.createElement(a.o,{isOpen:b.editTitle,onRequestClose:function(){return j("editTitle",!1)},title:"Edit the title",okOnEnter:!0,content:React.createElement(a.k,{autoFocus:!0,id:"mfrh_edit_title",name:"mfrh_edit_title",placeholder:"title...",value:null==G?void 0:G.post_title,onBlur:function(e){return z(lt(lt({},G),{},{post_title:e}))}}),onOkClick:function(){j("editTitle",!1),Z(G)},onCancelClick:function(){j("editTitle",!1)}})))},wt=wp.element.render,_t={fetcher:a.F,revalidateOnFocus:!1};function kt(){Array.from(document.getElementsByClassName("mfrh-renamer-field")).forEach((function(e){var t=e.getAttribute("data-id");wt(React.createElement(U,{natural:!0,mediaId:t}),e)}))}document.addEventListener("DOMContentLoaded",(function(e){var t,n;new MutationObserver((function(){kt()})).observe(document.documentElement,{childList:!0,subtree:!0}),(t=document.getElementById("mfrh-admin-settings"))&&wt(React.createElement(r.a,{value:_t},React.createElement(Le,null)),t),(n=document.getElementById("mfrh-media-rename"))&&wt(React.createElement(r.a,{value:_t},React.createElement(rt,null,React.createElement(Rt,null))),n),kt()}))}});
2
  //# sourceMappingURL=index.js.map
1
+ !function(e){function t(t){for(var r,o,l=t[0],i=t[1],u=t[2],m=0,d=[];m<l.length;m++)o=l[m],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(s&&s(t);d.length;)d.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==a[i]&&(r=!1)}r&&(c.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},a={0:0},c=[];function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var l=window.wpJsonMfrh=window.wpJsonMfrh||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var s=i;c.push([141,1]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";var r=n(15);n.d(t,"b",(function(){return r.a}));var a=n(11);n.d(t,"c",(function(){return a.a}));n(39);var c=n(51);n.d(t,"q",(function(){return c.a}));var o=n(52);n.d(t,"a",(function(){return o.a}));var l=n(53);n.d(t,"g",(function(){return l.a}));var i=n(54);n.d(t,"v",(function(){return i.a}));n(55);var u=n(40);n.d(t,"C",(function(){return u.b})),n.d(t,"f",(function(){return u.a}));var s=n(56);n.d(t,"d",(function(){return s.a}));var m=n(57);n.d(t,"e",(function(){return m.a}));var d=n(23);n.d(t,"k",(function(){return d.a}));n(58);var f=n(41);n.d(t,"u",(function(){return f.b})),n.d(t,"p",(function(){return f.a}));n(59),n(60),n(9),n(42),n(24);var p=n(61);n.d(t,"s",(function(){return p.a}));var h=n(62);n.d(t,"i",(function(){return h.a}));var y=n(25);n.d(t,"r",(function(){return y.a}));var g=n(6);n.d(t,"j",(function(){return g.a}));var v=n(17);n.d(t,"B",(function(){return v.a}));var b=n(43);n.d(t,"t",(function(){return b.b})),n.d(t,"l",(function(){return b.a}));var E=n(63);n.d(t,"h",(function(){return E.a}));var R=n(44);n.d(t,"m",(function(){return R.a})),n.d(t,"n",(function(){return R.b}));n(64),n(26),n(20),n(16),n(65);var w=n(27);n.d(t,"o",(function(){return w.a}));n(70);var _=n(28);n.d(t,"x",(function(){return _.a}));var k=n(46);n.d(t,"y",(function(){return k.b})),n.d(t,"w",(function(){return k.a}));n(47);var x=n(71);n.d(t,"A",(function(){return x.a}));var O=n(3);n.d(t,"z",(function(){return O.a}));var T=n(7);n.d(t,"J",(function(){return T.d})),n.d(t,"H",(function(){return T.b})),n.d(t,"I",(function(){return T.c}));var P=n(14);n.d(t,"G",(function(){return P.d})),n.d(t,"F",(function(){return P.c})),n.d(t,"E",(function(){return P.b})),n.d(t,"D",(function(){return P.a}));n(21)},132:function(e,t){e.exports=ReactDOM},141:function(e,t,n){"use strict";n.r(t);var r=n(12),a=n(1),c=n(4),o=wp.i18n.__,l={};l.RENAME=o("Rename","media-file-renamer"),l.MOVE=o("Move","media-file-renamer"),l.DASHBOARD=o("Dashboard","media-file-renamer"),l.PENDING=o("Pending","media-file-renamer"),l.RENAMED=o("Renamed","media-file-renamer"),l.ALL=o("All","media-file-renamer"),l.THUMB=o("","media-file-renamer"),l.TITLE=o("Title","media-file-renamer"),l.ATTACHED_TO=o("Attached To","media-file-renamer"),l.FILENAME=o("Filename","media-file-renamer");var i,u=l,s=mfrh_media_file_renamer.prefix,m=mfrh_media_file_renamer.domain,d=mfrh_media_file_renamer.rest_url.replace(/\/+$/,""),f=mfrh_media_file_renamer.api_url.replace(/\/+$/,""),p=mfrh_media_file_renamer.plugin_url.replace(/\/+$/,""),h="1"===mfrh_media_file_renamer.is_pro,y=h&&"1"===mfrh_media_file_renamer.is_registered,g=mfrh_media_file_renamer.rest_nonce,v="1"===mfrh_media_file_renamer.mfrh_undo,b="1"===mfrh_media_file_renamer.mfrh_move,E="1"===mfrh_media_file_renamer.mfrh_manual_rename;function R(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function w(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){R(c,r,a,o,l,"next",e)}function l(e){R(c,r,a,o,l,"throw",e)}o(void 0)}))}}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(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 k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var x,O,T,P,S,A,j,C=wp.element,I=C.useState,D=C.useEffect,M=c.a.div(i||(x=["\n display: flex;\n flex-direction: column;\n\n .renamer-field {\n display: flex;\n margin-bottom: 5px;\n }\n\n .renamer-actions {\n display: flex;\n align-items: center;\n }\n\n \n @media (min-width: 1400px) {\n flex-direction: row;\n\n .renamer-field {\n flex: auto;\n margin-right: 5px;\n margin-bottom: 0;\n }\n }\n"],O||(O=x.slice(0)),i=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(O)}})))),U=function(e){var t=e.mutate,n=_(I(e.entry),2),r=n[0],c=n[1],o=_(I(!1),2),l=o[0],i=o[1],s=_(I(""),2),m=s[0],d=s[1],p=_(I(null),2),h=p[0],y=p[1],R=e.natural,k=void 0!==R&&R,x=Object(a.I)({concurrency:2}).runTask;D((function(){d(""),e.entry?c(e.entry):e.mediaId&&O(e.mediaId)}),[e.entry]);var O=function(){var e=w(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,x(w(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(a.G)("".concat(f,"/analyze"),{nonce:g,json:{mediaId:t}}));case 1:case"end":return e.stop()}}),e)}))));case 3:n=e.sent,c(n.data),i((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=w(regeneratorRuntime.mark((function e(t){var n,r,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<=220)){e.next=3;break}return d(t),e.abrupt("return");case 3:n=t.lastIndexOf("."),r=-1===n?"":".".concat(t.slice(n+1)),a=r.length>0?r.length:0,c="".concat(t.slice(0,220-a)).concat(r),d(c);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=w(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c(n),t&&t();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,Object(a.G)("".concat(f,"/rename"),{nonce:g,json:{mediaId:r.ID}});case 3:t=e.sent,P(t.data),y(null),i((function(e){return e-1}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,Object(a.G)("".concat(f,"/rename"),{nonce:g,json:{mediaId:r.ID,filename:m}});case 3:t=e.sent,P(t.data),y(null),d(""),i((function(e){return e-1}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,Object(a.G)("".concat(f,"/undo"),{nonce:g,json:{mediaId:r.ID}});case 3:t=e.sent,P(t.data,r.current_filename),i((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=w(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i((function(e){return e+1})),e.next=3,Object(a.G)("".concat(f,"/set_lock"),{nonce:g,json:{mediaId:r.ID,lock:!r.locked}});case 3:t=e.sent,P(t.data),i((function(e){return e-1}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=w(regeneratorRuntime.mark((function e(){var t,n,c,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log({entry:r}),t=r.metadata.file||"",n="/"+t.substring(0,t.lastIndexOf("/")),!(c=(c=(c=prompt("Where would you like to move this file (in the /uploads directory)?",n)).replace(/\/+$/,""))||"/")){e.next=13;break}return i((function(e){return e+1})),e.next=10,Object(a.G)("".concat(f,"/move"),{nonce:g,json:{mediaId:r.ID,newPath:c}});case 10:o=e.sent,P(o.data),i((function(e){return e-1}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=!!m,N=B?m:h||(null==r?void 0:r.current_filename);return React.createElement(a.b,{busy:l},React.createElement(M,null,React.createElement("div",{className:"renamer-field"},React.createElement(a.k,{natural:k,readOnly:!E||l,value:N,onChange:T,onEnter:A,maxLength:220,style:{marginRight:0,flex:"auto"}}),!B&&React.createElement(a.j,{icon:null!=r&&r.locked?"lock":"lock-open",width:24,title:null!=r&&r.locked?"Unlock, to allow future actions":"Lock, to avoid future actions",style:{position:"relative",left:-26,marginRight:-22},color:null!=r&&r.locked?a.z.blue:"#5a5a5a82",onClick:C}),B&&React.createElement(a.j,{icon:"close",width:24,style:{position:"relative",left:-26,marginRight:-22},color:null!=r&&r.locked?a.z.blue:"#5a5a5a82",onClick:function(){d("")}}),(null==r?void 0:r.proposed_filename_exists)&&React.createElement(a.j,{icon:"alert",color:"orange",tooltip:{text:"The ideal filename (".concat(r.proposed_filename,") already exists."),position:"left"}}),v&&!B&&(null==r?void 0:r.original_filename)&&React.createElement(a.j,{icon:"file-undo",title:"Rollback to original",color:a.z.red,onClick:j,onMouseEnter:function(){return y(null==r?void 0:r.original_filename)},onMouseLeave:function(){return y(null)}})),React.createElement("div",{className:"renamer-actions"},!B&&(null==r?void 0:r.proposed_filename)&&!(null!=r&&r.proposed_filename_exists)&&React.createElement(a.c,{style:{flex:3},title:"Rename automatically",onMouseEnter:function(){return y(null==r?void 0:r.proposed_filename)},onMouseLeave:function(){return y(null)},onClick:S},"Auto Rename"),E&&B&&React.createElement(a.c,{style:{flex:3},title:"Rename manually",onClick:A},u.RENAME),b&&React.createElement(a.c,{style:{flex:1},title:"Move",onClick:U},u.MOVE))))};function B(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var N=c.a.div(T||(T=B(["\n color: white;\n padding: 15px;\n margin-bottom: -15px;\n\n a {\n color: #7dedff;\n text-decoration: none;\n }\n\n p {\n font-size: 15px;\n }\n"]))),L=Object(c.a)(a.a)(P||(P=B(["\n\n .nui-block-title {\n display: none;\n }\n\n .nui-block-content {\n display: flex;\n padding: 10px;\n\n h2 {\n color: #055082;\n font-size: 16px;\n margin: 5px 0 5px 0;\n\n a {\n text-decoration: none;\n }\n }\n\n p {\n margin: 0px;\n line-height: 18px;\n }\n }\n"]))),F=c.a.img(S||(S=B(["\n width: 85px;\n height: 85px;\n padding-right: 10px;\n"]))),q=c.a.div(A||(A=B(["\n\n margin: 15px;\n\n .center {\n background: white;\n border-radius: 10px;\n padding: 10px;\n max-width: 100%\n overflow: none;\n\n h2 {\n font-size: 26px;\n }\n\n table {\n width: 100%;\n\n tr td:first-child {\n width: 220px;\n font-weight: bold;\n color: #1e7cba;\n }\n\n * {\n overflow-wrap: anywhere;\n }\n }\n }\n\n hr {\n border-color: #1e7cba;\n }\n"]))),G=c.a.ul(j||(j=B(["\n margin-top: 10px;\n background: rgb(0, 72, 88);\n padding: 10px;\n color: rgb(58, 212, 58);\n max-height: 600px;\n min-height: 200px;\n display: block;\n font-family: monospace;\n font-size: 12px;\n white-space: pre;\n overflow-x: auto;\n width: calc(100vw - 276px);\n\n .log-date {\n color: white;\n margin-left: 8px;\n }\n\n .log-type {\n background: #0000004d;\n padding: 2px 5px;\n border-radius: 8px;\n text-transform: uppercase;\n }\n\n .log-content {\n display: block;\n }\n\n .log-warning .log-type {\n background: #ccb028;\n color: white;\n }\n\n .log-fatal .log-type {\n background: #cc2828;\n color: white;\n }\n"])));function z(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(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 H(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function Y(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){H(c,r,a,o,l,"next",e)}function l(e){H(c,r,a,o,l,"throw",e)}o(void 0)}))}}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||V(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 V(e,t){if(e){if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var J=wp.element,X=J.useState,K=J.useEffect,Q="".concat(d,"/meow-common/v1"),Z=function(e){var t=e.request,n=e.title,r=e.max,c=W(X(!1),2),o=c[0],l=c[1],i=W(X([]),2),u=i[0],s=i[1],m=u.length>0?u.reduce((function(e,t){return e+t})):0,d=u.length>0?Math.ceil(m/u.length):0,f=!u.length&&o;K((function(){o&&setTimeout(Y(regeneratorRuntime.mark((function e(){var n,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(new Date).getTime(),e.next=3,Object(a.G)("".concat(Q,"/").concat(t),{nonce:g});case 3:r=(new Date).getTime(),c=r-n,s((function(e){return[].concat(z(e),[c])}));case 6:case"end":return e.stop()}}),e)}))),1e3)}),[u]);return React.createElement(N,{style:{width:200,textAlign:"center"}},React.createElement(a.B,{h2:!0,style:{color:"white"}},n),React.createElement(a.h,{size:200,value:f?r:d,max:r},React.createElement("span",{style:{fontSize:20}},f?"START":d+" ms"),React.createElement("span",{style:{fontSize:12}},f?"YOUR ENGINE":u.length+" requests")),React.createElement(a.c,{style:{width:"100%",marginTop:10},color:o?"#cc3627":"#ccb027",onClick:function(){o||s([]),l(!o)}},o?"Stop":"Start"))};function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function ae(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){re(c,r,a,o,l,"next",e)}function l(e){re(c,r,a,o,l,"throw",e)}o(void 0)}))}}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(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 oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var le=wp.element,ie=le.useState,ue=le.useEffect;f&&d&&p||console.error("[@common/dashboard] apiUrl, restUrl and pluginUrl are mandatory.");var se="".concat(d,"/meow-common/v1"),me=React.createElement(N,null,React.createElement(a.B,{p:!0},"Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking ",React.createElement("a",{target:"_blank",href:"https://offbeatjapan.org"},"a lot of photos"),"). Meow Apps proposes a suite of plugins focusing on photography, imaging, optimization and SEO. The ultimate goal is to make your website better, faster, while making it easy. Meow Apps also teams up with the best players in the community. For more information, please check ",React.createElement("a",{href:"http://meowapps.com",target:"_blank"},"Meow Apps"),".")),de=React.createElement(N,null,React.createElement(a.B,{p:!0},"The ",React.createElement("b",null,"Empty Request Time")," helps you analyzing the raw performance of your install by giving you the average time it takes to run an empty request to your server. You can try to disable some plugins (or change their options) then Start this again to see how it influences the results. An excellent install would have an Empty Request Time of less than 500 ms. Keep it absolutely under 2,000 ms! For more information, ",React.createElement("a",{href:"https://meowapps.com/clean-optimize-wordpress/#Optimize_your_Empty_Request_Time",target:"_blank"},"click here"),"."),React.createElement(a.B,{p:!0},React.createElement("b",null,"File Operation Time")," creates a temporary size of 10MB every time. ",React.createElement("b",null,"SQL Request Time")," counts the number of posts. Those two should be very fast, and almost the same as the ",React.createElement("b",null,"Empty Request Time"),".")),fe=React.createElement(N,null,React.createElement(a.B,{p:!0},"Too many WordPress installs are blown-up with useless and/or heavy plugins, and not aware of best practices. That's not the fault of the users; WordPress pretends to be simple but it is in fact very complex, and the immensity and diversity of the community around it makes it a real jungle where everything is possible."),React.createElement(a.B,{p:!0},"A rule of thumb is to keep your WordPress install as simple as possible, with the least number of plugins installed (run away from the heavy ones) and an excellent hosting service. Avoid VPS or self-hosted solutions; you must be a professional to actually set them up so that they are actually performant."),React.createElement(a.B,{p:!0},"On the Meow Apps website, you will find articles which are always updated with the latest recommendations.",React.createElement("ul",null,React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/how-to-debug-wordpress-errors/",target:"_blank"},"How To Debug WordPress")),React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/tutorial-improve-seo-wordpress/",target:"_blank"},"SEO Checklist & Optimization")),React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/tutorial-faster-wordpress-optimize/",target:"_blank"},"Optimize your WordPress Speed")),React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/tutorial-optimize-images-wordpress/",target:"_blank"},"Optimize Images (CDN, and so on)")),React.createElement("li",null,"☘️  ",React.createElement("a",{href:"https://meowapps.com/tutorial-hosting-service-wordpress/",target:"_blank"},"Best Hosting Services for WordPress"))))),pe=["".concat(se,"/all_settings/"),{headers:{"X-WP-Nonce":g}}],he=function(){var e=ce(ie(!1),2),t=e[0],n=e[1],c=Object(r.b)(pe,a.F),o=c.data,l=c.mutate,i=c.error,u=null==o?void 0:o.data,s=null==u?void 0:u.meowapps_hide_meowapps,m=null==u?void 0:u.force_sslverify,d=ce(ie(!1),2),f=d[0],h=d[1],y=ce(ie([]),2),v=y[0],b=y[1],E=ce(ie(""),2),R=E[0],w=E[1];ue((function(){i&&!t&&(n(!0),console.error("Error from UseSWR",i.message))}),[i]),ue((function(){var e=document.getElementById("meow-common-phpinfo");w(e.innerHTML)}),[]);var _=function(){var e=ae(regeneratorRuntime.mark((function e(t,n){var r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=te({},o.data))[n]=t,l(te(te({},o),{},{data:r}),!1),h(!0),e.next=6,Object(a.G)("".concat(se,"/update_option"),{json:{name:n,value:t},nonce:g});case 6:c=e.sent,h(!1),c.success||alert(c.message),l();case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),k=function(){var e=ae(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.next=3,Object(a.G)("".concat(se,"/error_logs"),{nonce:g});case 3:t=e.sent,n=t&&t.data?t.data:[],b(n.reverse()),h(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=React.createElement(a.v,{title:"Main Menu"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"meowapps_hide_meowapps",label:"Hide (Not Recommended)",description:React.createElement(a.B,{p:!0},"This will hide the Meow Apps Menu (on the left side) and everything it contains. You can re-enable it through though an option that will be added in Settings → General."),value:"1",disabled:f,checked:s,onChange:_}))),O=React.createElement(a.v,{title:"SSL Verify"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"force_sslverify",label:"Force (Not Recommended)",description:React.createElement(a.B,{p:!0},"This will enforce the usage of SSL when checking the license or updating the plugin."),value:"1",disabled:f,checked:m,onChange:_})));return React.createElement(a.q,{showRestError:t},React.createElement(a.i,{title:"The Dashboard"}),React.createElement(a.C,null,React.createElement(a.f,{full:!0},React.createElement(a.y,null,React.createElement(a.w,{title:"Meow Apps"},me,React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(L,{title:"Media Cleaner",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/media-cleaner.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-cleaner/"},"Media Cleaner")),React.createElement("p",null,"The Cleaner analyzes your WordPress entirely to find out which files are not used. You can trash them, before deleting them permanently. Your WordPress will breath again :)"))),React.createElement(L,{title:"Database Cleaner",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/database-cleaner.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/database-cleaner/"},"Database Cleaner")),React.createElement("p",null,"Clean your WordPress database. This plugin is simple, handles risk levels, and aims to work even on oversized databases on which other plugins fail to operate."))),React.createElement(L,{title:"Media File Renamer",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/media-file-renamer.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-file-renamer/"},"Media File Renamer")),React.createElement("p",null,"The Renamer will help you in getting nicer filenames for an improved SEO and a tidier filesystem. It's mostly automatic and very fun to use."))),React.createElement(L,{title:"Social Engine",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/social-engine.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/social-engine/"},"Social Engine")),React.createElement("p",null,"Organize, schedule and automate the publishing of your content and photos on social accounts. Similar to Buffer, TweetDeck, etc, but without all the limitations, and in your WordPress."))),React.createElement(L,{title:"Meow Analytics",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/meow-analytics.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-analytics/"},"Meow Analytics")),React.createElement("p",null,"Are you tired of those heavy plugins, accessing your Google Analytics deliberately? Switch to Meow Analytics!")))),React.createElement(a.f,{minimal:!0},React.createElement(L,{title:"Photo Engine",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/wplr-sync.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wplr-sync/"},"Photo Engine")),React.createElement("p",null,"Are you using Lightroom? So you know Photo Engine already. Wait, you don't? You must try it! This plugin will be your favorite very soon."))),React.createElement(L,{title:"Meow Gallery",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/meow-gallery.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")),React.createElement("p",null,"This is the fastest gallery system... and it is pretty as well! It is 100% compatible with the native WordPress galleries and therefore, works right away."))),React.createElement(L,{title:"Meow Lightbox",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/meow-lightbox.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-lightbox/"},"Meow Lightbox")),React.createElement("p",null,"A very sleek and performant Lightbox which will also display your EXIF data (camera, lens, aperture...). Photographers love it."))),React.createElement(L,{title:"Perfect Images (Retina)",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/wp-retina-2x.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wp-retina-2x/"},"Perfect Images + Retina")),React.createElement("p",null,"It handles Retina, help you managing the Image Sizes registered in your WP, and much more."))),React.createElement(L,{title:"Contact Form Block",className:"primary"},React.createElement(F,{src:"".concat(p,"/common/img/contact-form-block.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/contact-form-block/"},"Contact Form Block")),React.createElement("p",null,"A simple, pretty and superlight contact form. If you simply want your visitors to get in touch with you, this contact form will be perfect for you and your WordPress.")))))),React.createElement(a.w,{title:"Performance"},de,React.createElement("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:25}},React.createElement(Z,{title:"Empty Request Time",request:"empty_request",max:2500}),React.createElement(Z,{title:"File Operation Time",request:"file_operation",max:2600}),React.createElement(Z,{title:"SQL Request Time",request:"sql_request",max:2800}))),React.createElement(a.w,{title:"Recommendations"},fe),React.createElement(a.w,{title:"PHP Info"},React.createElement(q,{dangerouslySetInnerHTML:{__html:R}})),React.createElement(a.w,{title:"PHP Error Logs"},React.createElement(N,null,React.createElement(a.c,{style:{marginBottom:10},color:"#ccb027",onClick:k},"Load PHP Error Logs"),React.createElement(G,null,v.map((function(e){return React.createElement("li",{class:"log-".concat(e.type)},React.createElement("span",{class:"log-type"},e.type),React.createElement("span",{class:"log-date"},e.date),React.createElement("span",{class:"log-content"},e.content))}))))),React.createElement(a.w,{title:"Settings"},React.createElement(a.a,{title:"Settings",className:"primary"},x,O))))))};function ye(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function ge(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){ye(c,r,a,o,l,"next",e)}function l(e){ye(c,r,a,o,l,"throw",e)}o(void 0)}))}}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return be(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 be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ee=wp.element,Re=Ee.useState,we=Ee.useEffect,_e="".concat(d,"/meow-licenser/").concat(s,"/v1"),ke=function(){var e=ve(Re(!1),2),t=e[0],n=e[1],r=ve(Re(!1),2),c=r[0],o=r[1],l=ve(Re(null),2),i=l[0],u=l[1],s=ve(Re(null),2),m=s[0],d=s[1],f=ve(Re(""),2),p=f[0],v=f[1],b=y&&(!m||"valid"!==m.license),E=function(){var e=ge(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return");case 2:return n(!0),e.next=5,Object(a.G)("".concat(_e,"/get_license"),{nonce:g});case 5:t=e.sent,d(t.data),t.data.key&&v(t.data.key),n(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=ge(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.next=3,Object(a.G)("".concat(_e,"/set_license"),{nonce:g,json:{serialKey:null}});case 3:e.sent.success&&(v(""),d(null),u("licenseRemoved")),n(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=ge(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.next=3,Object(a.G)("".concat(_e,"/set_license"),{nonce:g,json:{serialKey:p,override:!0}});case 3:(t=e.sent).success&&(d(t.data),t.data&&!t.data.issue&&u("licenseAdded")),n(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=ge(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("MEOW_OVERRIDE"!==p){e.next=5;break}return o(!0),d(null),v(""),e.abrupt("return");case 5:return n(!0),e.next=8,Object(a.G)("".concat(_e,"/set_license"),{nonce:g,json:{serialKey:p}});case 8:(t=e.sent).success&&(d(t.data),t.data&&!t.data.issue&&u("licenseAdded")),n(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();we((function(){E()}),[]);var k=b?"Forced License":y?"Enabled":"Disabled",x=b||m&&"valid"===m.license,O="Your license is active. Thanks a lot for your support :)";b&&m&&m.check_url&&(O=React.createElement(React.Fragment,null,React.createElement("span",null,O),React.createElement("br",null),React.createElement("small",null,"This license was enabled manually. To check your license status, please click ",React.createElement("a",{target:"_blank",href:m.check_url+"&cache="+642e3*Math.random()},"here"),"."))),x||(m?"no_activations_left"===m.issue?O=React.createElement("span",null,"There are no activations left for this license. You can visit your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"Meow Apps Store"),", unregister a site, and click on ",React.createElement("i",null,"Retry to validate"),"."):"expired"===m.issue?O=React.createElement("span",null,"Your license has expired. You can get another license or renew the current one by visiting your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"Meow Apps Store"),"."):"missing"===m.issue?O="This license does not exist.":"disabled"===m.issue?O="This license has been disabled.":"item_name_mismatch"===m.issue?O="This license seems to be for a different plugin... isn't it? :)":"forced"===m.issue?O="ABC":(O=React.createElement("span",null,"There is an unknown error related to the system or this serial key. Really sorry about this! Make sure your security plugins and systems are off temporarily. If you are still experiencing an issue, please ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com/contact/"},"contact us"),"."),console.error({license:m})):O="Unknown error :(");var T=React.createElement(a.a,{title:"Pro Version (Not Installed)",className:"primary"},"You will find more information about the Pro Version ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"here"),". If you actually bought the Pro Version already, please remove the current plugin and download the Pro Version from your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com/"},"Meow Apps Store"),"."),P=React.createElement(a.a,{title:"Pro Version (".concat(k,")"),busy:t,className:"primary"},React.createElement(a.v,{title:"Serial Key",style:{fontWeight:"bold"}},React.createElement(a.k,{id:"mfrh_pro_serial",name:"mfrh_pro_serial",disabled:t,value:p,onChange:function(e){return v(e)},placeholder:""})),m&&!x&&React.createElement(a.m,null,O),m&&x&&React.createElement(a.n,null,O),!m&&React.createElement(a.B,{p:!0},"Insert your serial key above. If you don't have one yet, you can get one ",React.createElement("a",{href:"https://meowapps.com"},"here"),". If there was an error during the validation, try the ",React.createElement("i",null,"Retry")," to ",React.createElement("i",null,"validate")," button."),React.createElement(a.v,{contentAlign:"right"},m&&!x&&React.createElement(a.c,{className:"secondary",disabled:t||!p,onClick:_},"Retry to validate"),m&&m.key===p&&React.createElement(a.c,{className:"secondary",disabled:t||!p,onClick:R},"Remove License"),React.createElement(a.c,{disabled:t||!p||m&&m.key===p,onClick:_},"Validate License"),c&&!x&&React.createElement(a.c,{disabled:t||!p||m&&m.key===p,onClick:w,className:"danger"},"Force License")),React.createElement(a.o,{isOpen:"licenseAdded"===i,title:"Thank you :)",content:"The Pro features have been enabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}),React.createElement(a.o,{isOpen:"licenseRemoved"===i,title:"Goodbye :(",content:"The Pro features have been disabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}));return h?P:T},xe=wp.element.render;function Oe(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 Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function Ae(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){Se(c,r,a,o,l,"next",e)}function l(e){Se(c,r,a,o,l,"throw",e)}o(void 0)}))}}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(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 Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}document.meowDashboardLoaded||(document.meowDashboardLoaded=!0,document.addEventListener("DOMContentLoaded",(function(e){var t=document.getElementById("meow-common-dashboard");t&&xe(React.createElement(he,null),t)})));var Ie=wp.element,De=Ie.useState,Me=Ie.useMemo,Ue=Ie.useCallback,Be={marginTop:10,background:"rgb(0, 72, 88)",padding:10,color:"rgb(58, 212, 58)",maxHeight:600,minHeight:200,display:"block",fontFamily:"monospace",fontSize:12,whiteSpace:"pre",overflowX:"auto",width:"calc(100vw - 276px)"},Ne=["".concat(f,"/all_settings/"),{headers:{"X-WP-Nonce":g}}],Le=function(){var e,t,n,c=Object(r.b)(Ne,a.F),o=c.data,l=c.mutate,i=Object(a.H)(o,{},!0),u=i.busy,d=i.data,p=i.error,v=je(De(""),2),b=v[0],E=v[1],R=je(De(!1),2),w=R[0],_=R[1],k=u||w,x=null==d?void 0:d.mfrh_auto_rename,O=null==d?void 0:d.mfrh_on_upload,T=null==d?void 0:d.mfrh_rename_slug,P=null==d?void 0:d.mfrh_convert_to_ascii,S=null==d?void 0:d.mfrh_update_posts,A=null==d?void 0:d.mfrh_update_excerpts,j=null==d?void 0:d.mfrh_update_postmeta,C=null==d?void 0:d.mfrh_update_elementor,I=null==d?void 0:d.mfrh_undo,D=null==d?void 0:d.mfrh_move,M=null==d?void 0:d.mfrh_manual_rename,U=null==d?void 0:d.mfrh_manual_sanitize,B=null==d?void 0:d.mfrh_numbered_files,N=null==d?void 0:d.mfrh_sync_alt,L=null==d?void 0:d.mfrh_sync_media_title,F=null==d?void 0:d.mfrh_force_rename,q=null==d?void 0:d.mfrh_log,G=null==d?void 0:d.mfrh_logsql,z=null==d?void 0:d.mfrh_rename_guid,H=null==d?void 0:d.mfrh_case_insensitive_check,Y=null==d?void 0:d.mfrh_rename_on_save,W=null!==(e=null==d?void 0:d.mfrh_acf_field_name)&&void 0!==e?e:null,V=null!==(t=null==d?void 0:d.mfrh_images_only)&&void 0!==t&&t,$=null!==(n=null==d?void 0:d.mfrh_featured_only)&&void 0!==n&&n,J=null==d?void 0:d.mfrh_clean_uninstall,X=null==d?void 0:d.mfrh_delay,K=null==d?void 0:d.mfrh_autolock_auto,Q=null==d?void 0:d.mfrh_autolock_manual,Z=[{id:"media_title",value:"media_title",label:React.createElement("span",null,"Based on Media Title"),requirePro:!1},{id:"post_acf_field",value:"post_acf_field",label:React.createElement("span",null,"Based on Attached Post (ACF Field)"),requirePro:!1},{id:"post_title",value:"post_title",label:React.createElement("span",null,"Based on Attached Post Title"),requirePro:!y},{id:"alt_text",value:"alt_text",label:React.createElement("span",null,"Based on Alternative Text"),requirePro:!y},{id:"anonymize_md5",value:"anonymize_md5",label:React.createElement("span",null,"Anonymize with MD5"),requirePro:!y},{id:"none",value:"none",label:React.createElement("span",null,"Disable Automatic Rename"),requirePro:!1}],ee=Ue(function(){var e=Ae(regeneratorRuntime.mark((function e(t,n){var r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=Te({},o.data))[n]=t,l(Te(Te({},o),{},{data:r}),!1),_(!0),e.prev=4,e.next=7,Object(a.G)("".concat(f,"/update_option"),{nonce:g,json:{name:n,value:t}});case 7:(c=e.sent).success||alert(c.message),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),alert(e.t0.message);case 14:return e.prev=14,_(!1),l(),e.finish(14);case 18:case"end":return e.stop()}}),e,null,[[4,11,14,18]])})));return function(t,n){return e.apply(this,arguments)}}(),[l,o]),te=function(){var e=Ae(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,Object(a.G)("".concat(f,"/refresh_logs"),{nonce:g});case 3:(t=e.sent).success&&E(t.data),_(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=Ae(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,Object(a.G)("".concat(f,"/clear_logs"),{nonce:g});case 3:(t=e.sent).success&&E(t.data),_(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),re=React.createElement(a.a,{busy:k,title:"Side Updates",className:"primary"},React.createElement(a.B,{p:!0,style:{marginTop:0}},"When the files are renamed, many links to them on your WordPress might be broken. Those options are updating the references to those files. ",React.createElement("strong",null,"Give it a try, every install is different and it might not work for certain kind of references.")),React.createElement(a.v,{title:"Posts"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_posts",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references to the renamed files in the ",React.createElement("strong",null,"content")," of the posts (of all types)."),value:"1",checked:S,onChange:ee}))),React.createElement(a.v,{title:"Excerpts"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_excerpts",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references to the renamed files in the ",React.createElement("strong",null,"excerpts")," of the posts (of all types)."),value:"1",checked:A,onChange:ee}))),React.createElement(a.v,{title:"Post Meta"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_postmeta",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references in the ",React.createElement("strong",null,"custom fields")," of the posts (including pages and custom types metadata)."),value:"1",checked:j,onChange:ee}))),React.createElement(a.v,{title:"Elementor"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_update_elementor",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"Update the references in the ",React.createElement("strong",null,"encrypted data")," of the posts handled by Elementor. ",React.createElement("span",null,"This will probably slow down the renaming extremely and cause timeouts. Test it carefully.")),value:"1",checked:C,onChange:ee})))),ae=React.createElement(a.v,{title:"Method"},React.createElement(a.u,{id:"mfrh_auto_rename",disabled:k,value:x,scrolldown:!0,name:"mfrh_auto_rename",description:"Attached Post includes all kinds of Post Types: Posts, Pages, Products, etc.",onChange:ee},Z.map((function(e){return React.createElement(a.p,{key:e.id,id:e.id,value:e.value,label:e.label,requirePro:e.requirePro})})))),ce=Me((function(){return"post_acf_field"!==x?null:React.createElement(a.v,{title:"ACF Field Name"},React.createElement(a.k,{id:"mfrh_acf_field_name",name:"mfrh_acf_field_name",value:W,onBlur:ee}))}),[W,x,ee]),oe=React.createElement(a.v,{title:"Images Only"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_images_only",label:"Enable",description:"Restricts the renaming to images and icons. Nothing else will be renamed.",value:"1",checked:V,onChange:ee}))),le=React.createElement(a.v,{title:"Featured Only"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_featured_only",label:"Enable",description:"Restricts the renaming to Featured Images only.",value:"1",checked:$,onChange:ee}))),ie=React.createElement(a.v,{title:"On Upload"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_on_upload",disabled:k,label:"Enable",description:React.createElement(React.Fragment,null,React.createElement("span",null,"If your image has an EXIF title, it will be used to decide the filename. "),"post_title"===x&&React.createElement("span",null,"Note: The Attached Post Title ",React.createElement("u",null,"will not be used")," at the time of the upload due to WordPress API constraints.")),value:"1",checked:O,onChange:ee}))),ue=React.createElement(a.v,{title:"Slug/Permalink"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_slug",disabled:k,label:"Sync with filename",description:"Better to keep this un-checked as the link might have been referenced somewhere else.",value:"1",checked:T,onChange:ee}))),se=React.createElement(a.v,{title:"Transliteration"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_convert_to_ascii",disabled:k,label:"Enable (Recommended)",description:React.createElement(a.B,{p:!0},"Replace accents, emoticons, diacritics, umlauts, cyrillic and any kind of tricky characters by their ASCII equivalent.",React.createElement("br",null)," ",React.createElement("i",null,"Examples: tête → tete, schön → schon, Добро → dobro, etc.")),value:"1",requirePro:!y,checked:P,onChange:ee}))),me=React.createElement(a.v,{title:"Undo"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_undo",disabled:k,label:"Enable",description:"An undo icon will be added to the UI. This allows to rollback to the original filename.",value:"1",checked:I,onChange:ee}))),de=React.createElement(a.v,{title:"Move"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_move",disabled:k,label:"Enable",description:"A move button will be added, and will allow you to move a file to another directory.",value:"1",checked:D,onChange:ee,requirePro:!y}))),fe=React.createElement(a.v,{title:"Rename Field"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_manual_rename",disabled:k,label:"Enable",description:"An editable field will be added everywhere your files appear in the UI.",value:"1",checked:M,onChange:ee}))),pe=React.createElement(a.v,{title:"Sanitize"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_manual_sanitize",disabled:k,label:"Enable",description:"Even if it is manual, the plugin will sanitize the filename you type. That way, you are sure the final filename will be clean and safe to use.",value:"1",checked:U,onChange:ee}))),he=React.createElement(a.v,{title:"Force Rename"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_force_rename",disabled:k,label:"Enable",description:"Update the references to the file even if the file renaming itself was not successful. You might want to use that option if your install is broken and you are trying to link your Media to files for which the filenames has been altered (after a migration for exemple)",value:"1",requirePro:!y,checked:F,onChange:ee}))),ye=React.createElement(a.v,{title:"Numbered Files"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_numbered_files",disabled:k,label:"Enable Numbering",description:"Identical filenames will be allowed by the plugin and a number will be appended automatically (myfile.jpg, myfile-2.jpg, myfile-3.jpg, etc).",requirePro:!y,value:"1",checked:B,onChange:ee}))),ge=React.createElement(a.v,{title:"ALT Text"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_sync_alt",disabled:k||"alt_text"==x,label:React.createElement(a.B,null,"Synchronize"),description:"The ALT Text will be synchronized with the same source used for the filename.",requirePro:!y,value:"1",checked:N,onChange:ee}))),ve=React.createElement(a.v,{title:"Media Title"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_sync_media_title",disabled:k||"media_title"===x,label:React.createElement(a.B,null,"Synchronize"),description:"The Media Title will be synchronized with the same source used for the filename.",requirePro:!y,value:"1",checked:L,onChange:ee}))),be=React.createElement(a.v,{title:"Logs"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_log",label:"Enable",description:React.createElement(a.B,{p:!0},"Simple logging that explains which actions has been run."),value:"1",checked:q,onChange:ee}),React.createElement("div",{style:{marginTop:20}},React.createElement(a.c,{onClick:te},"Refresh Logs"),React.createElement(a.c,{className:"danger",onClick:ne},"Clear Logs")))),Ee=React.createElement(a.v,{title:"SQL Logs"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_logsql",disabled:k,label:"Enable",description:React.createElement(a.B,{p:!0},"The files mfrh_sql.log and mfrh_sql_revert.log will be created in the /logs directory and will include the raw SQL queries which were run by the plugin. If there is an issue, the revert SQL file can help you."),requirePro:!y,value:"1",checked:G,onChange:ee}))),Re=React.createElement(a.v,{title:"GUID"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_guid",disabled:k,label:"Sync with filename",description:"The GUID will be renamed like the new filename. Better to keep this un-checked.",value:"1",checked:z,onChange:ee}))),we=React.createElement(a.v,{title:"Case Insensitive"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_case_insensitive_check",label:"Enable",value:"1",checked:H,onChange:ee,description:React.createElement(React.Fragment,null,'This will consider the file such as "abc.jpg" and "ABC.JPG" as the same file. More information ',React.createElement("a",{target:"_blank",href:"https://meowapps.com/media-file-renamer-faq-issues/"},"here"),". You should check this if you are on a Windows-based server.")}))),_e=React.createElement(a.v,{title:"Rename on Post Save"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_rename_on_save",disabled:k,label:"Enable (Unsafe)",description:"You can modify the titles of your media while editing a post but, of course, the plugin can't update the HTML at this stage. With this option, the plugin will update the filenames and HTML after that you saved the post.",value:"1",checked:Y,onChange:ee}))),xe=React.createElement(a.v,{title:"Plugin Data"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_clean_uninstall",label:"Delete all",description:"The database and all the options of the plugin will be removed on uninstall. This also includes the information about the plugin's trash.",value:"1",checked:J,onChange:ee}))),Oe=React.createElement(a.v,{title:"Delay (in ms)"},React.createElement(a.k,{id:"mfrh_delay",type:"number",value:X,min:"0",max:"20000",onEnter:ee,onBlur:ee,description:"Time to wait between each request (in milliseconds). The overall process is intensive so this gives the chance to your server to chill out a bit. A very good server doesn't need it, but a slow/shared hosting might even reject requests if they are too fast and frequent. Recommended value is actually 0, 100 for safety, 2000 or 5000 if your hosting is kind of cheap."})),Pe=React.createElement(a.v,{title:"Automatic Rename"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_autolock_auto",disabled:k,label:"Lock",description:"This is disabled by default; your media will be always renamed when needed.",value:"1",checked:K,onChange:ee}))),Se=React.createElement(a.v,{title:"Manual Rename"},React.createElement(a.e,{max:"1"},React.createElement(a.d,{id:"mfrh_autolock_manual",disabled:k,label:"Lock",description:"This is enabled by default; when you rename a media manually, it normally means that you want to fix the filename by yourself.",value:"1",checked:Q,onChange:ee})));return React.createElement(a.q,{nekoErrors:[p]},React.createElement(a.i,{title:"Media File Renamer | Settings",subtitle:"By Jordy Meow"},React.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},React.createElement(a.c,{className:"header",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Tutorial"),React.createElement(a.c,{className:"header",icon:"dashboard",onClick:function(){return location.href="upload.php?page=mfrh_dashboard"}},"Dashboard"))),React.createElement(a.C,null,React.createElement(a.f,{full:!0},React.createElement(a.g,null,React.createElement(a.B,{p:!0},"It works out of the box, the default settings are good for most installs. However, you should really have a look at the ",React.createElement("a",{href:"https://meowapps.com/plugin/media-file-renamer/"},"tutorial"),". If you are a SEO guru or someone who loves having a perfectly neat filesystem, it is recommended to use automatic renaming first, then to tweak specific files with manual renaming. The ",React.createElement("a",{href:"/wp-admin/upload.php?page=mfrh_dashboard"},"Renamer Dashboard")," makes it very easy.")),React.createElement(a.y,{keepTabOnReload:!0},React.createElement(a.w,{title:"Basic"},React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Settings",className:"primary"},React.createElement(a.B,{h2:!0},"Automatic"),React.createElement(a.B,{p:!0},"This plugin's main goal is to make the process of optimizing your filenames entirely automatic. By default, your files will be named after the title of your media entry."),ae,ce,React.createElement(a.B,{h2:!0},"Manual"),fe,pe,React.createElement(a.B,{h2:!0},"Extra Options"),ie,oe,le)),React.createElement(a.f,{minimal:!0},re,React.createElement(a.a,{busy:k,title:"UI (Extra Features)",className:"primary"},me,de)))),React.createElement(a.w,{title:"Advanced"},React.createElement(a.C,null,React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Renaming",className:"primary"},se,ye),React.createElement(a.a,{busy:k,title:"Fields Syncing",className:"primary"},ue,Re,ge,ve,React.createElement(a.B,{p:!0},"The fields in the database will be synchronized, but the data already written in your HTML will not be overwritten.")),React.createElement(a.a,{busy:k,title:"Auto Lock",className:"primary"},Pe,Se),React.createElement(a.a,{busy:k,title:"On Uninstall",className:"primary"},xe)),React.createElement(a.f,{minimal:!0},React.createElement(a.a,{busy:k,title:"Performance",className:"primary"},Oe),React.createElement(a.a,{busy:k,title:"For Developers",className:"primary"},we,he,Ee,_e)))),React.createElement(a.w,{title:"License (Pro)"},React.createElement(ke,{domain:m,prefix:s,isPro:h,isRegistered:y})),React.createElement(a.w,{title:"Logs & Debug"},React.createElement(a.a,{busy:k,className:"primary"},be),React.createElement("div",{style:Be},b))))))},Fe=n(0);function qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ze(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 He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function Ve(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){We(c,r,a,o,l,"next",e)}function l(e){We(c,r,a,o,l,"throw",e)}o(void 0)}))}}var $e,Je,Xe,Ke={pending:"-",renamed:"-",locked:"-",all:"-"},Qe={accessor:"id",by:"asc"},Ze=0,et={filterBy:"pending",sort:Qe,page:1,limit:10,search:"",busy:!1,stats:Ke,apiErrors:null,status:"",entries:[],selectedItems:[],total:0,autoRename:!1,onUpload:!1,renameSlug:!1,convertToAscii:!1,updatePosts:!0,updatePostmeta:!0,undo:!1,move:!1,manualRename:!1,numberedFiles:!1,syncAlt:!1,syncMedia_title:!1,forceRename:!1,log:!1,logsql:!1,renameGuid:!1,caseInsensitiveCheck:!1,renameOnSave:!1,acfFieldName:null,imagesOnly:!1,delay:100,modals:{renameAll:!1,undoAll:!1,editTitle:!1,autoAttach:!1},mutateEntries:(Xe=Ve(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return Xe.apply(this,arguments)}),mutateStats:(Je=Ve(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return Je.apply(this,arguments)}),mutateSettings:($e=Ve(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return $e.apply(this,arguments)})},tt=function(e,t){switch(t.type){case"ENTRIES_UPDATED":var n=t.entries;return He(He({},e),{},{entries:n});case"STATS_UPDATED":var r=t.stats;return He(He({},e),{},{stats:r});case"ERROR_UPDATED":var a=t.apiErrors;return He(He({},e),{},{apiErrors:a});case"PAGE_UPDATED":var c=t.page;return He(He({},e),{},{page:c});case"SET_ENTRIES_MUTATE":var o=t.mutateEntries;return He(He({},e),{},{mutateEntries:o});case"SET_STATS_MUTATE":var l=t.mutateStats;return He(He({},e),{},{mutateStats:l});case"SET_SETTINGS_MUTATE":var i=t.mutateSettings;return He(He({},e),{},{mutateSettings:i});case"LIMIT_UPDATED":var u=t.limit;return He(He({},e),{},{limit:u});case"FILTER_UPDATED":var s=t.filter;return He(He({},e),{},{filterBy:s});case"SORT_UPDATED":var m=t.sort,d=void 0===m?Qe:m;return He(He({},e),{},{sort:d});case"SEARCH_UPDATED":var f=t.search;return He(He({},e),{},{search:f});case"TOTAL_UPDATED":var p=t.total;return He(He({},e),{},{total:p});case"TOGGLE_MODAL":var h=t.modal,y=t.enable;if(void 0===e.modals[h])return alert("The modal ".concat(h," doesn't exist.")),console.error("The modal ".concat(h," doesn't exist.")),e;void 0===y&&(y=!e.modals[h]);var g=He({},e);return g.modals=He({},g.modals),g.modals[h]=y,g;case"PUSH_BUSY":var v=t.status,b=void 0===v?"":v;return He(He({},e),{},{busy:++Ze>0,status:b});case"POP_BUSY":var E=t.status,R=void 0===E?"":E;return He(He({},e),{},{busy:--Ze>0,status:R});case"STATUS_UPDATED":var w=t.status,_=void 0===w?"":w;return He(He({},e),{},{status:_});case"SETTINGS_UPDATED":var k,x,O,T,P,S,A,j,C,I,D,M,U,B,N,L,F,q,G,z,H=t.settings,Y=null!==(k=H.mfrh_auto_rename)&&void 0!==k&&k,W=null!==(x=H.mfrh_on_upload)&&void 0!==x&&x,V=null!==(O=H.mfrh_rename_slug)&&void 0!==O&&O,$=null!==(T=H.mfrh_convert_to_ascii)&&void 0!==T&&T,J=null===(P=H.mfrh_update_posts)||void 0===P||P,X=null===(S=H.mfrh_update_postmeta)||void 0===S||S,K=(A=H.mfrh_update_elementor,null!==(j=H.mfrh_undo)&&void 0!==j&&j),Q=null!==(C=H.mfrh_move)&&void 0!==C&&C,Z=null!==(I=H.mfrh_manual_rename)&&void 0!==I&&I,ee=null!==(D=H.mfrh_numbered_files)&&void 0!==D&&D,te=null!==(M=H.mfrh_sync_alt)&&void 0!==M&&M,ne=null!==(U=H.mfrh_sync_media_title)&&void 0!==U&&U,re=null!==(B=H.mfrh_force_rename)&&void 0!==B&&B,ae=null!==(N=H.mfrh_log)&&void 0!==N&&N,ce=null!==(L=H.mfrh_logsql)&&void 0!==L&&L,oe=null!==(F=H.mfrh_rename_guid)&&void 0!==F&&F,le=null!==(q=H.mfrh_case_insensitive_check)&&void 0!==q&&q,ie=null!==(G=H.mfrh_rename_on_save)&&void 0!==G&&G,ue=H.mfrh_acf_field_name,se=null!==(z=H.mfrh_images_only)&&void 0!==z&&z,me=H.mfrh_posts_per_page?parseInt(H.mfrh_posts_per_page):10,de=H.mfrh_delay?parseInt(H.mfrh_delay):0;return He(He({},e),{},{autoRename:Y,onUpload:W,renameSlug:V,convertToAscii:$,updatePosts:J,updatePostmeta:X,undo:K,move:Q,manualRename:Z,numberedFiles:ee,syncAlt:te,syncMedia_title:ne,forceRename:re,log:ae,logsql:ce,renameGuid:oe,caseInsensitiveCheck:le,renameOnSave:ie,acfFieldName:ue,imagesOnly:se,limit:me,delay:de});case"ITEMS_SELECTED":var fe=t.selectedItems;return He(He({},e),{},{selectedItems:fe});default:return e}},nt=Object(Fe.createContext)(),rt=function(e){var t=e.children,n=qe(Object(Fe.useReducer)(tt,et),2),c=n[0],o=n[1],l=c.filterBy,i=c.sort,u=c.search,s=c.page,m=c.limit,d=Object(Fe.useMemo)((function(){return[Object(a.D)("".concat(f,"/media"),{limit:m,skip:(s-1)*m,filterBy:l,orderBy:i.accessor,order:i.by,search:u}),{headers:{"X-WP-Nonce":g}}]}),[m,s,l,i,u]),p=Object(Fe.useMemo)((function(){return[Object(a.D)("".concat(f,"/stats"),{search:u}),{headers:{"X-WP-Nonce":g}}]}),[u]),h=Object(Fe.useMemo)((function(){return["".concat(f,"/all_settings/"),{headers:{"X-WP-Nonce":g}}]}),[]),y=Object(r.b)(d,a.F),v=y.data,b=y.mutate;Object(Fe.useEffect)((function(){o({type:"SET_ENTRIES_MUTATE",mutateEntries:b})}),[b]),Object(Fe.useEffect)((function(){o({type:"SET_STATS_MUTATE",mutateStats:T})}),[T]),Object(Fe.useEffect)((function(){o({type:"SET_SETTINGS_MUTATE",mutateSettings:D})}),[D]);var E=Object(a.H)(v,[],!0),R=E.busy,w=E.data,_=E.total,k=E.error;Object(Fe.useEffect)((function(){o({type:R?"PUSH_BUSY":"POP_BUSY"})}),[R]),Object(Fe.useEffect)((function(){o({type:"ENTRIES_UPDATED",entries:w})}),[w]),Object(Fe.useEffect)((function(){o({type:"TOTAL_UPDATED",total:_})}),[_]),Object(Fe.useEffect)((function(){o({type:"ERROR_UPDATED",apiError:k})}),[k]);var x=Object(r.b)(p,a.F),O=x.data,T=x.mutate,P=Object(a.H)(O,Ke,!0),S=P.busy,A=P.data,j=P.error;Object(Fe.useEffect)((function(){o({type:S?"PUSH_BUSY":"POP_BUSY"})}),[S]),Object(Fe.useEffect)((function(){o({type:"STATS_UPDATED",stats:A})}),[A]),Object(Fe.useEffect)((function(){o({type:"ERROR_UPDATED",apiError:j})}),[j]);var C=Object(r.b)(h,a.F),I=C.data,D=C.mutate,M=Object(a.H)(I,{},!0),U=M.busy,B=M.data,N=M.error;return Object(Fe.useEffect)((function(){o({type:U?"PUSH_BUSY":"POP_BUSY"})}),[U]),Object(Fe.useEffect)((function(){o({type:"SETTINGS_UPDATED",settings:B})}),[B]),Object(Fe.useEffect)((function(){o({type:"ERROR_UPDATED",apiError:N})}),[N]),React.createElement(nt.Provider,{value:[c,o]},t)},at=function(){var e={},t=qe(Object(Fe.useContext)(nt),2),n=t[0],r=t[1];return e.setSelectedItems=function(e){r({type:"ITEMS_SELECTED",selectedItems:e})},e.setStatus=function(e){r({type:"STATUS_UPDATED",status:e})},e.updateOption=function(){var e=Ve(regeneratorRuntime.mark((function e(t,c){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"PUSH_BUSY"}),e.prev=1,e.next=4,Object(a.G)("".concat(f,"/update_option"),{nonce:g,json:{name:c,value:t}});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),alert(e.t0);case 9:r({type:"POP_BUSY"}),n.mutateSettings();case 11:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}(),e.updateEntry=function(){var e=Ve(regeneratorRuntime.mark((function e(t,c){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"STATUS_UPDATED",status:"Updating..."}),r({type:"PUSH_BUSY"}),e.prev=2,e.next=5,Object(a.G)("".concat(f,"/update_media"),{nonce:g,json:He({id:c},t)});case 5:if(e.sent.success){e.next=8;break}throw new Error("Failed to move the folder/gallery.");case 8:n.mutateEntries(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),alert(e.t0.message);case 14:return e.prev=14,r({type:"POP_BUSY"}),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,11,14,17]])})));return function(t,n){return e.apply(this,arguments)}}(),e.setPage=function(e){r({type:"PAGE_UPDATED",page:e})},e.setLimit=function(e){r({type:"LIMIT_UPDATED",limit:e})},e.setFilter=function(e){r({type:"FILTER_UPDATED",filter:e})},e.setSort=function(e){r({type:"SORT_UPDATED",sort:e})},e.setSearch=function(e){r({type:"SEARCH_UPDATED",search:e})},e.toggleModal=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;r({type:"TOGGLE_MODAL",modal:e,enable:t})},e.pushBusy=function(){r({type:"PUSH_BUSY"})},e.popBusy=function(){r({type:"POP_BUSY"})},He(He({},n),e)},ct=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function ot(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 lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){it(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e){return function(e){if(Array.isArray(e))return pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ft(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 st(e,t,n,r,a,c,o){try{var l=e[c](o),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,a)}function mt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){st(c,r,a,o,l,"next",e)}function l(e){st(c,r,a,o,l,"throw",e)}o(void 0)}))}}function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,c=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return c}(e,t)||ft(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 ft(e,t){if(e){if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(e,t):void 0}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ht=wp.element,yt=ht.useState,gt=ht.useEffect,vt=ht.useMemo,bt={width:40,height:40,objectFit:"cover"},Et=[{accessor:"thumbnail_url",title:u.THUMB,style:{width:16}},{accessor:"post_title",title:u.TITLE,sortable:!0,style:{width:"25%"}},{accessor:"post_parent",title:u.ATTACHED_TO,sortable:!0,style:{width:"25%"}},{accessor:"current_filename",title:u.FILENAME,sortable:!0}],Rt=function(){var e=at(),t=e.apiErrors,n=e.busy,r=e.selectedItems,c=e.entries,o=e.stats,l=e.total,i=e.filterBy,s=e.search,m=e.status,d=e.sort,p=e.page,h=e.limit,b=e.modals,E=at(),R=E.setSelectedItems,w=E.setSearch,_=E.setStatus,k=E.setSort,x=E.setPage,O=E.setLimit,T=E.setFilter,P=E.delay,S=E.mutateEntries,A=E.mutateStats,j=E.toggleModal,C=E.updateOption,I=E.updateEntry,D=dt(yt(!1),2),M=D[0],B=D[1],N=dt(yt(""),2),L=N[0],F=N[1],q=dt(yt(),2),G=q[0],z=q[1],H=Object(a.J)(),Y=vt((function(){return c.map((function(e){return{id:e.ID,thumbnail_url:React.createElement("img",{src:e.thumbnail_url,style:bt}),post_title:React.createElement("div",{style:{display:"flex",alignItems:"center"}},React.createElement("a",{href:"post.php?post=".concat(e.ID,"&action=edit")},e.post_title),React.createElement(a.j,{icon:"pencil",width:"20",height:"20",color:a.z.blue,style:{marginLeft:"2px",cursor:"pointer"},onClick:function(){z(e),j("editTitle")}})),post_parent:React.createElement("div",{style:{maxHeight:35,overflow:"hidden"}},e.post_parent_title?e.post_parent_title:React.createElement("i",{style:{color:"#c1c1c1"}},"None")),current_filename:React.createElement(U,{entry:e,mutate:function(){S(),A()}})}}))}),[c]);gt((function(){R([]),k(),x(1)}),[i,s]),gt((function(){if(null!==H.busy&&(B(H.busy),!H.busy)){var e=H.getErrorCount();e>0&&F("The process has finished, but ".concat(e," error(s) occurred (check your console).")),H.reset(),R([]),S(),A()}}),[H.busy]);var W=function(){var e=mt(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(P>0)){e.next=3;break}return e.next=3,ct(P);case 3:return e.next=5,Object(a.G)("".concat(f,"/get_all_ids"),{nonce:g,json:{unlockedOnly:t}});case 5:if((n=e.sent).success){e.next=9;break}return alert(n.message),e.abrupt("return",[]);case 9:return e.abrupt("return",n.data);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=mt(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(P>0)){e.next=3;break}return e.next=3,ct(P);case 3:return e.next=5,Object(a.G)("".concat(f,"/get_all_post_ids"),{nonce:g});case 5:if((t=e.sent).success){e.next=9;break}return alert(t.message),e.abrupt("return",[]);case 9:return e.abrupt("return",t.data);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _("Preparing..."),B(!0),e.next=4,V();case 4:if(!(t=e.sent)){e.next=11;break}return _("Auto attaching..."),n=Object(a.E)(t,20),r=n.map((function(e){return function(){var t=mt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(P>0)){t.next=3;break}return t.next=3,ct(P);case 3:return t.next=5,Object(a.G)("".concat(f,"/auto_attach"),{nonce:g,json:{postIds:e},signal:n});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),H.start(r),e.abrupt("return");case 11:B(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:null,_("Preparing..."),B(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,W(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=16;break}return _("Undoing..."),r=n.map((function(e){return function(){var t=mt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_("Undo Media ".concat(e)),!(P>0)){t.next=4;break}return t.next=4,ct(P);case 4:return t.next=6,Object(a.G)("".concat(f,"/undo"),{nonce:g,json:{mediaId:e},signal:n});case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),H.start(r),e.abrupt("return");case 16:B(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r,c,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:null,_("Preparing..."),B(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,W(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=17;break}return _("Analyzing..."),r=Object(a.E)(n,20),c=r.map((function(e){return function(){var t=mt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(P>0)){t.next=3;break}return t.next=3,ct(P);case 3:return t.next=5,Object(a.G)("".concat(f,"/analyze"),{nonce:g,json:{mediaIds:e},signal:n});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),H.start(c),e.abrupt("return");case 17:B(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r,c,o,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(l.length>0&&void 0!==l[0])||l[0],n=l.length>1&&void 0!==l[1]?l[1]:null,_("Preparing..."),B(!0),!n){e.next=8;break}e.t0=n,e.next=11;break;case 8:return e.next=10,W(t);case 10:e.t0=e.sent;case 11:if(!(r=e.t0)){e.next=18;break}return _("".concat(t?"Locking..":"Unlocking...")),c=Object(a.E)(r,50),o=c.map((function(e){return function(){var e=mt(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(P>0)){e.next=3;break}return e.next=3,ct(P);case 3:return e.next=5,Object(a.G)("".concat(f,"/set_lock"),{nonce:g,json:{mediaIds:r,lock:t},signal:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),H.start(o),e.abrupt("return");case 18:B(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=mt(regeneratorRuntime.mark((function e(){var t,n,r,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:null,_("Preparing..."),B(!0),!t){e.next=7;break}e.t0=t,e.next=10;break;case 7:return e.next=9,W(!0);case 9:e.t0=e.sent;case 10:if(!(n=e.t0)){e.next=15;break}return r=n.map((function(e){return function(){var t=mt(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_("Renaming #".concat(e)),!(P>0)){t.next=4;break}return t.next=4,ct(P);case 4:return t.next=6,Object(a.G)("".concat(f,"/rename"),{nonce:g,json:{mediaId:e},signal:n});case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),H.start(r),e.abrupt("return");case 15:B(!1);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=mt(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:I({post_title:t.post_title},t.ID);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=function(){var e=mt(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C(t,"mfrh_posts_per_page");case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),te=React.createElement(React.Fragment,null,React.createElement("div",null,"All your posts, pages, products (and other post types) will be scanned, and if images are used in them, they will be attached. Currently, Featured Images and Product Galleries are supported. Should we start?"),!y&&React.createElement("div",{style:{marginTop:20}},React.createElement("b",null,"This feature is only available in the Pro version."))),ne=React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return window.open("https://meowapps.com/plugin/media-file-renamer/","_blank")}},"Get the Pro Version"),React.createElement(a.c,{className:"primary",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Read the tutorial"));return React.createElement(a.q,{nekoErrors:[t]},React.createElement(a.i,{title:"Media File Renamer | Dashboard",subtitle:"By Jordy Meow"},React.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},React.createElement(a.c,{className:"header",onClick:function(){return window.open("https://meowapps.com/media-file-renamer-tutorial/","_blank")}},"Tutorial"),React.createElement(a.c,{icon:"cog",className:"header",onClick:function(){return location.href="admin.php?page=mfrh_settings"}},"Settings"))),React.createElement(a.C,null,React.createElement(a.f,{full:!0},!y&&React.createElement(a.g,{footer:ne},React.createElement(a.B,{p:!0},"You must ",React.createElement("b",null,"backup the uploads folder and DB")," before using the Renamer. If you don't know how, give a try to ",React.createElement("a",{target:"_blank",href:"https://meow.click/blogvault"},"BlogVault"),". It is also highly recommanded to read the tutorial. Last but not least, check the ",React.createElement("b",null,"Pro Version"),", as it adds many features and also supports the development. This message is only displayed in the free version. Thank you!")),React.createElement(a.A,null,React.createElement(a.c,{onClick:function(){return X()}},"Analyze Library"),React.createElement(a.c,{onClick:function(){return j("autoAttach")}},"Auto Attach"),"pending"===i&&r.length>0&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return Q(r)}},"Rename ",React.createElement("strong",null,r.length)," entries"),React.createElement(a.c,{className:"secondary",onClick:function(){return K(!0,r)}},"Lock ",React.createElement("strong",null,r.length)," entries")),v&&"renamed"===i&&r.length>0&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return J(r)}},"Undo ",React.createElement("strong",null,r.length)," entries")),React.createElement("div",{style:{flex:1}},M&&React.createElement(a.s,{status:function(e){return"".concat(m," (").concat(e,"%)")},busy:M,value:H.value,max:H.max,onStopClick:H.stop})),!(n||M)&&React.createElement(React.Fragment,null,React.createElement(a.k,{onBlur:function(e){w(e)},value:s,onEnter:function(e){w(e)}}),!s&&React.createElement(a.j,{icon:"search",width:24,style:{position:"relative",left:-34,marginRight:-22},color:"#5a5a5a82"}),s&&React.createElement(a.j,{icon:"close",width:24,style:{position:"relative",left:-34,marginRight:-22},color:a.z.blue,onClick:function(){w("")}})),"all"===i&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"secondary",onClick:function(){return K(!0)}},"Lock ",React.createElement("strong",null,"All")),React.createElement(a.c,{className:"secondary",onClick:function(){return K(!1)}},"Unlock ",React.createElement("strong",null,"All"))),("all"===i||"pending"===i)&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"primary",onClick:function(){return j("renameAll")}},"Rename ",React.createElement("strong",null,"All"))),v&&("all"===i||"renamed"===i)&&React.createElement(React.Fragment,null,React.createElement(a.c,{className:"danger",onClick:function(){return j("undoAll")}},"Undo ",React.createElement("strong",null,"All")))),React.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:10,marginBottom:10}},React.createElement(a.t,{value:i,busy:n||M,onChange:function(e){T(e),x(1)}},React.createElement(a.l,{title:u.PENDING,value:"pending",count:o.pending}),React.createElement(a.l,{title:"Renamed",value:"renamed",count:o.renamed}),React.createElement(a.l,{title:"Locked",value:"locked",count:o.locked}),React.createElement(a.l,{title:"All",value:"all",count:o.all})),React.createElement(a.r,{currentPage:p,limit:h,total:l,onClick:function(e){return x(e)},onCurrentPageChanged:function(e){return x(e)}})),React.createElement(a.x,{busy:n||M,data:Y,columns:Et,sort:d,onSortChange:function(e,t){k({accessor:e,by:t})},onSelect:function(e){R([].concat(ut(r),ut(e)))},onUnselect:function(e){R(ut(r.filter((function(t){return!e.includes(t)}))))},selectedItems:r}),React.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:10}},React.createElement(a.u,{scrolldown:!0,value:h,onChange:function(e){O(e),x(1),ee(e)}},React.createElement(a.p,{value:5,label:"5 items per page"}),React.createElement(a.p,{value:10,label:"10 items per page"}),React.createElement(a.p,{value:25,label:"25 items per page"}),React.createElement(a.p,{value:50,label:"50 items per page"}),React.createElement(a.p,{value:100,label:"100 items per page"}),React.createElement(a.p,{value:200,label:"200 items per page"})),React.createElement(a.r,{currentPage:p,limit:h,total:l,onClick:function(e){return x(e)},onCurrentPageChanged:function(e){return x(e)}}))),React.createElement(a.o,{isOpen:b.autoAttach,onRequestClose:function(){return j("autoAttach",!1)},title:"Automatically attach your images to your posts",content:te,ok:y?"Run":"I need the Pro Version",onOkClick:function(){j("autoAttach",!1),y&&$()},onCancelClick:function(){j("autoAttach",!1)}}),React.createElement(a.o,{isOpen:b.renameAll,onRequestClose:function(){return j("renameAll",!1)},title:"You are about to rename all your (unlocked) files",content:"Renaming files is a dangerous operation. Please make sure you made a backup or your entire WordPress install. Should we start?",onOkClick:function(){j("renameAll",!1),Q()},onCancelClick:function(){j("renameAll",!1)}}),React.createElement(a.o,{isOpen:b.undoAll,onRequestClose:function(){return j("undoAll",!1)},title:"You are about to undo the renaming for all your files",content:"Are you sure you would like to proceed?",onOkClick:function(){j("undoAll",!1),J()},onCancelClick:function(){j("undoAll",!1)}}),React.createElement(a.o,{isOpen:L,title:"Success",ok:"Close",content:L,onOkClick:function(){F(""),H.reset()}}),React.createElement(a.o,{isOpen:b.editTitle,onRequestClose:function(){return j("editTitle",!1)},title:"Edit the title",okOnEnter:!0,content:React.createElement(a.k,{autoFocus:!0,id:"mfrh_edit_title",name:"mfrh_edit_title",placeholder:"title...",value:null==G?void 0:G.post_title,onBlur:function(e){return z(lt(lt({},G),{},{post_title:e}))}}),onOkClick:function(){j("editTitle",!1),Z(G)},onCancelClick:function(){j("editTitle",!1)}})))},wt=wp.element.render,_t={fetcher:a.F,revalidateOnFocus:!1};function kt(){Array.from(document.getElementsByClassName("mfrh-renamer-field")).forEach((function(e){var t=e.getAttribute("data-id");wt(React.createElement(U,{natural:!0,mediaId:t}),e)}))}document.addEventListener("DOMContentLoaded",(function(e){var t,n;new MutationObserver((function(){kt()})).observe(document.documentElement,{childList:!0,subtree:!0}),(t=document.getElementById("mfrh-admin-settings"))&&wt(React.createElement(r.a,{value:_t},React.createElement(Le,null)),t),(n=document.getElementById("mfrh-media-rename"))&&wt(React.createElement(r.a,{value:_t},React.createElement(rt,null,React.createElement(Rt,null))),n),kt()}))}});
2
  //# sourceMappingURL=index.js.map
app/vendor.js CHANGED
@@ -1,4 +1,4 @@
1
- (window.wpJsonMfrh=window.wpJsonMfrh||[]).push([[1],[,,function(e,n,t){e.exports=t(121)()},function(e,n,t){"use strict";function r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var i={black:"#000000",blackRGB:"0, 0, 0",blue:"#007cba",blueRGB:"0, 124, 186",deepBlue:"#134575",finderBorder:"#DEDEDE",lightBlue:"#EBF3FF",lightGray:"#cacaca",lightGray2:"#F5F5F5",lightPurple:"#D8B1FF",gray:"#E8E8E8",green:"#0EA480",darkGray:"#A0A0A0",disabledForm:"#828282",orange:"#daa827",overlay:"rgba(16, 16, 16, 0.92)",red:"#ba4300",redHighlight:"#de5307",header:"#007cba",proGray:"#7F8EA0",progress:"#8414a8",purple:"#956DBE",tableGray:"#FAFAFA",yellow:"#e4b42b",yellowRGB:"224, 156, 54",white:"#ffffff",whiteRGB:"255, 255, 255"},l={danger:i.red,primary:i.blue,secondary:i.lightBlue,success:i.green},c=o(o(o({},i),l),{},{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',fontSizeH1:"24px",fontSizeH2:"18px",fontSizeText:"13px",fontSizeSmall:"12px",fontSizeSmallButton:"10px",lightShadow:"0px 0px 10px rgba(0,0,0,0.1)"});n.a=c},function(e,n,t){"use strict";(function(e){var r=t(29),o=t(0),a=t.n(o),i=t(72),l=t.n(i),c=t(73),u=t(74),s=t(50),f=t(48),d=t.n(f);function p(){return(p=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var h=function(e,n){for(var t=[e[0]],r=0,o=n.length;r<o;r+=1)t.push(n[r],e[r+1]);return t},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},b=Object.freeze([]),v=Object.freeze({});function y(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var x=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",O="undefined"!=typeof window&&"HTMLElement"in window,k=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY));function C(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(t.length>0?" Args: "+t.join(", "):""))}var E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var n=e.prototype;return n.indexOfGroup=function(e){for(var n=0,t=0;t<e;t++)n+=this.groupSizes[t];return n},n.insertRules=function(e,n){if(e>=this.groupSizes.length){for(var t=this.groupSizes,r=t.length,o=r;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),l=0,c=n.length;l<c;l++)this.tag.insertRule(i,n[l])&&(this.groupSizes[e]++,i++)},n.clearGroup=function(e){if(e<this.length){var n=this.groupSizes[e],t=this.indexOfGroup(e),r=t+n;this.groupSizes[e]=0;for(var o=t;o<r;o++)this.tag.deleteRule(t)}},n.getGroup=function(e){var n="";if(e>=this.length||0===this.groupSizes[e])return n;for(var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t,a=r;a<o;a++)n+=this.tag.getRule(a)+"/*!sc*/\n";return n},e}(),S=new Map,j=new Map,_=1,P=function(e){if(S.has(e))return S.get(e);for(;j.has(_);)_++;var n=_++;return S.set(e,n),j.set(n,e),n},A=function(e){return j.get(e)},M=function(e,n){n>=_&&(_=n+1),S.set(e,n),j.set(n,e)},I="style["+x+'][data-styled-version="5.3.1"]',T=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,n,t){for(var r,o=t.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(n,r)},R=function(e,n){for(var t=(n.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,a=t.length;o<a;o++){var i=t[o].trim();if(i){var l=i.match(T);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(M(u,c),N(e,u,l[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},z=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},D=function(e){var n=document.head,t=e||n,r=document.createElement("style"),o=function(e){for(var n=e.childNodes,t=n.length;t>=0;t--){var r=n[t];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(t),a=void 0!==o?o.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.3.1");var i=z();return i&&r.setAttribute("nonce",i),t.insertBefore(r,a),r},L=function(){function e(e){var n=this.element=D(e);n.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var n=document.styleSheets,t=0,r=n.length;t<r;t++){var o=n[t];if(o.ownerNode===e)return o}C(17)}(n),this.length=0}var n=e.prototype;return n.insertRule=function(e,n){try{return this.sheet.insertRule(n,e),this.length++,!0}catch(e){return!1}},n.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.getRule=function(e){var n=this.sheet.cssRules[e];return void 0!==n&&"string"==typeof n.cssText?n.cssText:""},e}(),F=function(){function e(e){var n=this.element=D(e);this.nodes=n.childNodes,this.length=0}var n=e.prototype;return n.insertRule=function(e,n){if(e<=this.length&&e>=0){var t=document.createTextNode(n),r=this.nodes[e];return this.element.insertBefore(t,r||null),this.length++,!0}return!1},n.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var n=e.prototype;return n.insertRule=function(e,n){return e<=this.length&&(this.rules.splice(e,0,n),this.length++,!0)},n.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=O,H={isServer:!O,useCSSOMInjection:!k},V=function(){function e(e,n,t){void 0===e&&(e=v),void 0===n&&(n={}),this.options=p({},H,{},e),this.gs=n,this.names=new Map(t),this.server=!!e.isServer,!this.server&&O&&U&&(U=!1,function(e){for(var n=document.querySelectorAll(I),t=0,r=n.length;t<r;t++){var o=n[t];o&&"active"!==o.getAttribute(x)&&(R(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return P(e)};var n=e.prototype;return n.reconstructWithOptions=function(n,t){return void 0===t&&(t=!0),new e(p({},this.options,{},n),this.gs,t&&this.names||void 0)},n.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.getTag=function(){return this.tag||(this.tag=(t=(n=this.options).isServer,r=n.useCSSOMInjection,o=n.target,e=t?new B(o):r?new L(o):new F(o),new E(e)));var e,n,t,r,o},n.hasNameForId=function(e,n){return this.names.has(e)&&this.names.get(e).has(n)},n.registerName=function(e,n){if(P(e),this.names.has(e))this.names.get(e).add(n);else{var t=new Set;t.add(n),this.names.set(e,t)}},n.insertRules=function(e,n,t){this.registerName(e,n),this.getTag().insertRules(P(e),t)},n.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},n.clearTag=function(){this.tag=void 0},n.toString=function(){return function(e){for(var n=e.getTag(),t=n.length,r="",o=0;o<t;o++){var a=A(o);if(void 0!==a){var i=e.names.get(a),l=n.getGroup(o);if(i&&l&&i.size){var c=x+".g"+o+'[id="'+a+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),q=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function W(e){var n,t="";for(n=Math.abs(e);n>52;n=n/52|0)t=$(n%52)+t;return($(n%52)+t).replace(q,"$1-$2")}var Z=function(e,n){for(var t=n.length;t;)e=33*e^n.charCodeAt(--t);return e},G=function(e){return Z(5381,e)};function Y(e){for(var n=0;n<e.length;n+=1){var t=e[n];if(y(t)&&!w(t))return!1}return!0}var K=G("5.3.1"),X=function(){function e(e,n,t){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===t||t.isStatic)&&Y(e),this.componentId=n,this.baseHash=Z(K,n),this.baseStyle=t,V.registerId(n)}return e.prototype.generateAndInjectStyles=function(e,n,t){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,n,t)),this.isStatic&&!t.hash)if(this.staticRulesId&&n.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var a=me(this.rules,e,n,t).join(""),i=W(Z(this.baseHash,a)>>>0);if(!n.hasNameForId(r,i)){var l=t(a,"."+i,void 0,r);n.insertRules(r,i,l)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=Z(this.baseHash,t.hash),s="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)s+=d;else if(d){var p=me(d,e,n,t),h=Array.isArray(p)?p.join(""):p;u=Z(u,h+f),s+=h}}if(s){var m=W(u>>>0);if(!n.hasNameForId(r,m)){var b=t(s,"."+m,void 0,r);n.insertRules(r,m,b)}o.push(m)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,Q=[":","[",".","#"];function ee(e){var n,t,r,o,a=void 0===e?v:e,i=a.options,l=void 0===i?v:i,u=a.plugins,s=void 0===u?b:u,f=new c.a(l),d=[],p=function(e){function n(n){if(n)try{e(n+"}")}catch(e){}}return function(t,r,o,a,i,l,c,u,s,f){switch(t){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(n)}}}((function(e){d.push(e)})),h=function(e,r,a){return 0===r&&-1!==Q.indexOf(a[t.length])||a.match(o)?e:"."+n};function m(e,a,i,l){void 0===l&&(l="&");var c=e.replace(J,""),u=a&&i?i+" "+a+" { "+c+" }":c;return n=l,t=a,r=new RegExp("\\"+t+"\\b","g"),o=new RegExp("(\\"+t+"\\b){2,}"),f(i||!a?"":a,u)}return f.use([].concat(s,[function(e,n,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var n=d;return d=[],n}}])),m.hash=s.length?s.reduce((function(e,n){return n.name||C(15),Z(e,n.name)}),5381).toString():"",m}var ne=a.a.createContext(),te=(ne.Consumer,a.a.createContext()),re=(te.Consumer,new V),oe=ee();function ae(){return Object(o.useContext)(ne)||re}function ie(){return Object(o.useContext)(te)||oe}function le(e){var n=Object(o.useState)(e.stylisPlugins),t=n[0],r=n[1],i=ae(),c=Object(o.useMemo)((function(){var n=i;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n}),[e.disableCSSOMInjection,e.sheet,e.target]),u=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:t})}),[e.disableVendorPrefixes,t]);return Object(o.useEffect)((function(){l()(t,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a.a.createElement(ne.Provider,{value:c},a.a.createElement(te.Provider,{value:u},e.children))}var ce=function(){function e(e,n){var t=this;this.inject=function(e,n){void 0===n&&(n=oe);var r=t.name+n.hash;e.hasNameForId(t.id,r)||e.insertRules(t.id,r,n(t.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(t.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,se=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function pe(e){return ue.test(e)?e.replace(se,de).replace(fe,"-ms-"):e}var he=function(e){return null==e||!1===e||""===e};function me(e,n,t,r){if(Array.isArray(e)){for(var o,a=[],i=0,l=e.length;i<l;i+=1)""!==(o=me(e[i],n,t,r))&&(Array.isArray(o)?a.push.apply(a,o):a.push(o));return a}return he(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!n?e:me(e(n),n,t,r):e instanceof ce?t?(e.inject(t,r),e.getName(r)):e:m(e)?function e(n,t){var r,o,a=[];for(var i in n)n.hasOwnProperty(i)&&!he(n[i])&&(Array.isArray(n[i])&&n[i].isCss||y(n[i])?a.push(pe(i)+":",n[i],";"):m(n[i])?a.push.apply(a,e(n[i],i)):a.push(pe(i)+": "+(r=i,(null==(o=n[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in u.a?String(o).trim():o+"px")+";")));return t?[t+" {"].concat(a,["}"]):a}(e):e.toString();var c}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ve(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return y(e)||m(e)?be(me(h(b,[e].concat(t)))):0===t.length&&1===e.length&&"string"==typeof e[0]?e:be(me(h(e,t)))}new Set;var ye=function(e,n,t){return void 0===t&&(t=v),e.theme!==t.theme&&e.theme||n||t.theme},ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function xe(e){return e.replace(ge,"-").replace(we,"")}var Oe=function(e){return W(G(e)>>>0)};function ke(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Se(e,n,t){var r=e[t];Ce(n)&&Ce(r)?je(r,n):e[t]=n}function je(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];for(var o=0,a=t;o<a.length;o++){var i=a[o];if(Ce(i))for(var l in i)Ee(l)&&Se(e,i[l],l)}return e}var _e=a.a.createContext();_e.Consumer;var Pe={};function Ae(e,n,t){var r=w(e),i=!ke(e),l=n.attrs,c=void 0===l?b:l,u=n.componentId,f=void 0===u?function(e,n){var t="string"!=typeof e?"sc":xe(e);Pe[t]=(Pe[t]||0)+1;var r=t+"-"+Oe("5.3.1"+t+Pe[t]);return n?n+"-"+r:r}(n.displayName,n.parentComponentId):u,h=n.displayName,m=void 0===h?function(e){return ke(e)?"styled."+e:"Styled("+g(e)+")"}(e):h,x=n.displayName&&n.componentId?xe(n.displayName)+"-"+n.componentId:n.componentId||f,O=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,k=n.shouldForwardProp;r&&e.shouldForwardProp&&(k=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var C,E=new X(t,x,r?e.componentStyle:void 0),S=E.isStatic&&0===c.length,j=function(e,n){return function(e,n,t,r){var a=e.attrs,i=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,f=e.styledComponentId,d=e.target,h=function(e,n,t){void 0===e&&(e=v);var r=p({},n,{theme:e}),o={};return t.forEach((function(e){var n,t,a,i=e;for(n in y(i)&&(i=i(r)),i)r[n]=o[n]="className"===n?(t=o[n],a=i[n],t&&a?t+" "+a:t||a):i[n]})),[r,o]}(ye(n,Object(o.useContext)(_e),l)||v,n,a),m=h[0],b=h[1],g=function(e,n,t,r){var o=ae(),a=ie();return n?e.generateAndInjectStyles(v,o,a):e.generateAndInjectStyles(t,o,a)}(i,r,m),w=t,x=b.$as||n.$as||b.as||n.as||d,O=ke(x),k=b!==n?p({},n,{},b):n,C={};for(var E in k)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?C.as=k[E]:(u?u(E,s.a,x):!O||Object(s.a)(E))&&(C[E]=k[E]));return n.style&&b.style!==n.style&&(C.style=p({},n.style,{},b.style)),C.className=Array.prototype.concat(c,f,g!==f?g:null,n.className,b.className).filter(Boolean).join(" "),C.ref=w,Object(o.createElement)(x,C)}(C,e,n,S)};return j.displayName=m,(C=a.a.forwardRef(j)).attrs=O,C.componentStyle=E,C.displayName=m,C.shouldForwardProp=k,C.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):b,C.styledComponentId=x,C.target=r?e.target:e,C.withComponent=function(e){var r=n.componentId,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(n,["componentId"]),a=r&&r+"-"+(ke(e)?e:xe(g(e)));return Ae(e,p({},o,{attrs:O,componentId:a}),t)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(n){this._foldedDefaultProps=r?je({},e.defaultProps,n):n}}),C.toString=function(){return"."+C.styledComponentId},i&&d()(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var Me=function(e){return function e(n,t,o){if(void 0===o&&(o=v),!Object(r.isValidElementType)(t))return C(1,String(t));var a=function(){return n(t,o,ve.apply(void 0,arguments))};return a.withConfig=function(r){return e(n,t,p({},o,{},r))},a.attrs=function(r){return e(n,t,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},a}(Ae,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Me[e]=Me(e)}));!function(){function e(e,n){this.rules=e,this.componentId=n,this.isStatic=Y(e),V.registerId(this.componentId+1)}var n=e.prototype;n.createStyles=function(e,n,t,r){var o=r(me(this.rules,n,t,r).join(""),""),a=this.componentId+e;t.insertRules(a,a,o)},n.removeStyles=function(e,n){n.clearRules(this.componentId+e)},n.renderStyles=function(e,n,t,r){e>2&&V.registerId(this.componentId+e),this.removeStyles(e,t),this.createStyles(e,n,t,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var n=e.instance.toString();if(!n)return"";var t=z();return"<style "+[t&&'nonce="'+t+'"',x+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+n+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return C(2);var t=((n={})[x]="",n["data-styled-version"]="5.3.1",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),r=z();return r&&(t.nonce=r),[a.a.createElement("style",p({},t,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}var n=e.prototype;n.collectStyles=function(e){return this.sealed?C(2):a.a.createElement(le,{sheet:this.instance},e)},n.interleaveWithNodeStream=function(e){return C(3)}}();n.a=Me}).call(this,t(123))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.InlineIcon=n.Icon=void 0;var r,o=(r=t(0))&&r.__esModule?r:{default:r};function a(e){return(a="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})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=0,c=/(-?[0-9.]*[0-9]+[0-9.]*)/g,u=/^-?[0-9.]*[0-9]+[0-9.]*$/g,s=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],f={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var d=function(){function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=n}var n,t,r;return n=e,r=[{key:"splitAttributes",value:function(e){var n={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(t){n[-1===s.indexOf(t)?"node":"icon"][t]=e[t]})),n}},{key:"calculateDimension",value:function(e,n,t){if(1===n)return e;if(t=void 0===t?100:t,"number"==typeof e)return Math.ceil(e*n*t)/t;var r=e.split(c);if(null===r||!r.length)return null;for(var o,a=[],i=r.shift(),l=u.test(i);;){if(l?(o=parseFloat(i),isNaN(o)?a.push(i):a.push(Math.ceil(o*n*t)/t)):a.push(i),void 0===(i=r.shift()))return a.join("");l=!l}}},{key:"replaceIDs",value:function(e){var n,t,r=/\sid="(\S+)"/g,o=[];function a(e,n,t){for(var r=0;-1!==(r=t.indexOf(e,r));)t=t.slice(0,r)+n+t.slice(r+e.length),r+=n.length;return t}for(;n=r.exec(e);)o.push(n[1]);return o.length?(t="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(n){var r=t+l;l++,e=a('="'+n+'"','="'+r+'"',e),e=a('="#'+n+'"','="#'+r+'"',e),e=a("(#"+n+")","(#"+r+")",e)})),e):e}}],(t=[{key:"getAttributes",value:function(n){var t=this._item;"object"!==a(n)&&(n=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:t.rotate,hFlip:t.hFlip,vFlip:t.vFlip},i=Object.create(null),l=Object.create(null),c=!0===n.inline||"true"===n.inline||"1"===n.inline,u={left:t.left,top:c?t.inlineTop:t.top,width:t.width,height:c?t.inlineHeight:t.height};if(["hFlip","vFlip"].forEach((function(e){void 0===n[e]||!0!==n[e]&&"true"!==n[e]&&"1"!==n[e]||(o[e]=!o[e])})),void 0!==n.flip&&n.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==n.rotate){var s=n.rotate;if("number"==typeof s)o.rotate+=s;else if("string"==typeof s){var f=s.replace(/^-?[0-9.]*/,"");if(""===f)s=parseInt(s),isNaN(s)||(o.rotate+=s);else if(f!==s){var d=!1;switch(f){case"%":d=25;break;case"deg":d=90}d&&(s=parseInt(s.slice(0,s.length-f.length)),isNaN(s)||(o.rotate+=Math.round(s/d)))}}}var p,h=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(h.push("translate("+(u.width+u.left)+" "+(0-u.top)+")"),h.push("scale(-1 1)"),u.top=u.left=0):o.vFlip&&(h.push("translate("+(0-u.left)+" "+(u.height+u.top)+")"),h.push("scale(1 -1)"),u.top=u.left=0),o.rotate%4){case 1:p=u.height/2+u.top,h.unshift("rotate(90 "+p+" "+p+")"),0===u.left&&0===u.top||(p=u.left,u.left=u.top,u.top=p),u.width!==u.height&&(p=u.width,u.width=u.height,u.height=p);break;case 2:h.unshift("rotate(180 "+(u.width/2+u.left)+" "+(u.height/2+u.top)+")");break;case 3:p=u.width/2+u.left,h.unshift("rotate(-90 "+p+" "+p+")"),0===u.left&&0===u.top||(p=u.left,u.left=u.top,u.top=p),u.width!==u.height&&(p=u.width,u.width=u.height,u.height=p)}var m,b,v=n.width?n.width:null,y=n.height?n.height:null;null===v&&null===y&&(y="1em"),null!==v&&null!==y?(m=v,b=y):null!==v?(m=v,b=e.calculateDimension(m,u.height/u.width)):(b=y,m=e.calculateDimension(b,u.width/u.height)),!1!==m&&(l.width="auto"===m?u.width:m),!1!==b&&(l.height="auto"===b?u.height:b),c&&0!==t.verticalAlign&&(i["vertical-align"]=t.verticalAlign+"em"),void 0!==n.align&&n.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),l.preserveAspectRatio=function(e){var n;switch(e.horizontal){case"left":n="xMin";break;case"right":n="xMax";break;default:n="xMid"}switch(e.vertical){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}(r),l.viewBox=u.left+" "+u.top+" "+u.width+" "+u.height;var g=e.replaceIDs(t.body);return void 0!==n.color&&(g=g.replace(/currentColor/g,n.color)),h.length&&(g='<g transform="'+h.join(" ")+'">'+g+"</g>"),!0!==n.box&&"true"!==n.box&&"1"!==n.box||(g+='<rect x="'+u.left+'" y="'+u.top+'" width="'+u.width+'" height="'+u.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:l,body:g,style:i}}},{key:"getSVG",value:function(n,t){var r=e.splitAttributes(n),o=this.getAttributes(r.icon),a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return t&&Object.keys(r.node).forEach((function(e){a+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){a+=" "+e+'="'+o.attributes[e]+'"'})),a+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){a+=" "+e+": "+o.style[e]+";"})),n&&void 0!==n.style&&(a+=n.style),a+='">',a+=o.body+"</svg>"}}])&&i(n.prototype,t),r&&i(n,r),e}();function p(e,n){if("object"!==a(e.icon))return null;var t=d.splitAttributes(e),r=t.icon,i=t.node;delete i.icon,void 0===r.inline&&(r.inline=n);var l=new d(function(e){var n,t=Object.create(null);for(n in f)t[n]=f[n];for(n in e)t[n]=e[n];return void 0===t.inlineTop&&(t.inlineTop=t.top),void 0===t.inlineHeight&&(t.inlineHeight=t.height),void 0===t.verticalAlign&&(t.verticalAlign=t.height%7==0&&t.height%8!=0?-.143:-.125),t}(e.icon)).getAttributes(r),c={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(c.verticalAlign=l.style["vertical-align"]),void 0!==e.style)for(var u in e.style)c[u]=e.style[u];var s,p={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:c};for(s in i)p[s]=i[s];for(s in l.attributes)p[s]=l.attributes[s];return p.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",p,null)}var h=function(e){return p(e,!1)};n.Icon=h;n.InlineIcon=function(e){return p(e,!0)};var m=h;n.default=m},function(e,n,t){"use strict";t.d(n,"a",(function(){return bn}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(7),f=t(5),d=t(75),p=t.n(d),h=t(76),m=t.n(h),b=t(77),v=t.n(b),y=t(30),g=t.n(y),w=t(31),x=t.n(w),O=t(32),k=t.n(O),C=t(13),E=t.n(C),S=t(10),j=t.n(S),_=t(18),P=t.n(_),A=t(33),M=t.n(A),I=t(34),T=t.n(I),N=t(78),R=t.n(N),z=t(79),D=t.n(z),L=t(35),F=t.n(L),B=t(80),U=t.n(B),H=t(81),V=t.n(H),q=t(82),$=t.n(q),W=t(83),Z=t.n(W),G=(t(125),t(84)),Y=t.n(G),K=t(85),X=t.n(K),J=t(86),Q=t.n(J),ee=t(87),ne=t.n(ee),te=t(88),re=t.n(te),oe=t(89),ae=t.n(oe),ie=t(90),le=t.n(ie),ce=t(91),ue=t.n(ce),se=t(19),fe=t.n(se),de=t(36),pe=t.n(de),he=t(37),me=t.n(he),be=t(92),ve=t.n(be),ye=t(93),ge=t.n(ye),we=t(94),xe=t.n(we),Oe=t(95),ke=t.n(Oe),Ce=t(96),Ee=t.n(Ce),Se=t(97),je=t.n(Se),_e=t(98),Pe=t.n(_e),Ae=t(99),Me=t.n(Ae),Ie=t(100),Te=t.n(Ie),Ne=t(101),Re=t.n(Ne),ze=t(102),De=t.n(ze),Le=t(103),Fe=t.n(Le),Be=t(104),Ue=t.n(Be),He=t(105),Ve=t.n(He),qe=t(106),$e=t.n(qe),We=t(107),Ze=t.n(We),Ge=t(108),Ye=t.n(Ge),Ke=t(109),Xe=t.n(Ke),Je=t(110),Qe=t.n(Je),en=t(111),nn=t.n(en),tn=t(112),rn=t.n(tn),on=t(113),an=t.n(on),ln={lock:p.a,"lock-open":m.a,"file-undo":v.a,"chevron-double-left":g.a,"chevron-double-right":x.a,"chevron-left":k.a,"chevron-right":E.a,"chevron-down":j.a,"chevron-up":P.a,pause:M.a,play:T.a,replay:R.a,check:D.a,stop:F.a,delete:U.a,undo:V.a,alert:$.a,database:Z.a,tools:Y.a,cog:X.a,close:Q.a,cat:ne.a,upload:De.a,trash:re.a,pencil:ae.a,dashboard:le.a,search:ue.a,folder:fe.a,"folder-open":pe.a,"image-multiple-outline":me.a,plus:ve.a,"folder-plus":ge.a,"image-plus":xe.a,"view-grid":ke.a,"format-list-bulleted":Ee.a,twitter:je.a,instagram:Pe.a,facebook:Me.a,star:Te.a,"timer-outline":Re.a,link:Fe.a,linkedin:Ue.a,pinterest:Ve.a,"zoom-in":$e.a,"info-outline":Ze.a,"arrow-up":Ye.a,"arrow-down":Xe.a,sort:Qe.a,eye:nn.a,"rocket-launch":rn.a,"calendar-month":an.a},cn=t(20),un=["icon","spinning","className","title","tooltip","containerStyle","color","hoverColor","disabled","raw","isBusy"];function sn(){return(sn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function fn(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function dn(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var pn=u.a.div(r||(r=dn(["\n display: flex;\n align-items: center;\n"]))),hn=Object(u.a)(f.Icon)(o||(o=dn(["\n\n path {\n fill: ",";\n }\n\n ","\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.busy {\n animation: crescendo 0.4s alternate infinite;\n @keyframes crescendo {\n 0% {transform: scale(.65);}\n 100% {transform: scale(1);}\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n"])),(function(e){return e.color}),(function(e){return n=e.color,(t=e.hoverColor)?"\n &:hover {\n path {\n fill: ".concat(t,";\n }\n }\n "):n?"\n &:hover {\n path {\n fill: ".concat(Object(s.a)(.1,n),";\n }\n }\n "):void 0;var n,t})),mn=function(e){var n=e.icon,t=e.spinning,r=void 0!==t&&t,o=e.className,a=void 0===o?"":o,l=e.title,c=e.tooltip,u=e.containerStyle,s=e.color,f=e.hoverColor,d=e.disabled,p=void 0!==d&&d,h=e.raw,m=e.isBusy,b=void 0!==m&&m,v=fn(e,un);v.width||v.height||(v.width=v.height=30);var y=function(){return"string"==typeof n?ln[n]||null:n},g="nui-icon ".concat(a).concat(v.onClick?" nui-clickable":"").concat(r?" spin":"").concat(p?" disabled":"").concat(b?" busy":"");return c?i.a.createElement(cn.a,{text:c.text,position:c.position||"top"},i.a.createElement(pn,{style:u},i.a.createElement(hn,sn({icon:y(),className:g,color:s,hoverColor:f},v)))):h?i.a.createElement(hn,sn({icon:y(),className:g,color:s,hoverColor:f},v)):i.a.createElement(pn,{style:u,title:l},i.a.createElement(hn,sn({icon:y(),className:g,color:s,hoverColor:f},v)),c?i.a.createElement(cn.a,null,c):null)},bn=function(e){return i.a.createElement(mn,e)};bn.propTypes={icon:c.a.oneOfType([c.a.instanceOf(f.IconifyIcon),c.a.oneOf(["lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","stop","delete","undo","alert","database","pencil","tools","cog","close","cat","upload"])]),color:c.a.string,spinning:c.a.bool,className:c.a.string,tooltip:c.a.string,raw:c.a.bool,isBusy:c.a.bool},bn.defaultProps={icon:void 0,color:void 0,spinning:!1,className:"",tooltip:void 0,raw:void 0,isBusy:!1}},function(e,n,t){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function o(e,n){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(){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 l(e,n,t){return(l=i()?Reflect.construct.bind():function(e,n,t){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return t&&o(a,t.prototype),a}).apply(null,arguments)}function c(e){var n="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return l(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}function u(e){return(u="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})(e)}t.d(n,"a",(function(){return L}));var s=function(e){var n,t;function r(n){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this)}return t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,o(n,t),r}(c(Error));function f(e){return Math.round(255*e)}function d(e,n,t){return f(e)+","+f(n)+","+f(t)}function p(e,n,t,r){if(void 0===r&&(r=d),0===n)return r(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*n,i=a*(1-Math.abs(o%2-1)),l=0,c=0,u=0;o>=0&&o<1?(l=a,c=i):o>=1&&o<2?(l=i,c=a):o>=2&&o<3?(c=a,u=i):o>=3&&o<4?(c=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var s=t-a/2;return r(l+s,c+s,u+s)}var h={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 m=/^#[a-fA-F0-9]{6}$/,b=/^#[a-fA-F0-9]{8}$/,v=/^#[a-fA-F0-9]{3}$/,y=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,x=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,O=/^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 s(3);var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return h[n]?"#"+h[n]:e}(e);if(n.match(m))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(b)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(v))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(y)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var o=g.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=w.exec(n.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=x.exec(n);if(i){var l="rgb("+p(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",c=g.exec(l);if(!c)throw new s(4,n,l);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=O.exec(n.substring(0,50));if(u){var f="rgb("+p(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=g.exec(f);if(!d)throw new s(4,n,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])}}throw new s(5)}function C(e){return function(e){var n,t=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(t,r,o),i=Math.min(t,r,o),l=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var c=a-i,u=l>.5?c/(2-a-i):c/(a+i);switch(a){case t:n=(r-o)/c+(r<o?6:0);break;case r:n=(o-t)/c+2;break;default:n=(t-r)/c+4}return n*=60,void 0!==e.alpha?{hue:n,saturation:u,lightness:l,alpha:e.alpha}:{hue:n,saturation:u,lightness:l}}(k(e))}var E=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 S(e){var n=e.toString(16);return 1===n.length?"0"+n:n}function j(e){return S(Math.round(255*e))}function _(e,n,t){return E("#"+j(e)+j(n)+j(t))}function P(e,n,t){return p(e,n,t,_)}function A(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return P(e,n,t);if("object"===u(e)&&void 0===n&&void 0===t)return P(e.hue,e.saturation,e.lightness);throw new s(1)}function M(e,n,t,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?P(e,n,t):"rgba("+p(e,n,t)+","+r+")";if("object"===u(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?P(e.hue,e.saturation,e.lightness):"rgba("+p(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new s(2)}function I(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return E("#"+S(e)+S(n)+S(t));if("object"===u(e)&&void 0===n&&void 0===t)return E("#"+S(e.red)+S(e.green)+S(e.blue));throw new s(6)}function T(e,n,t,r){if("string"==typeof e&&"number"==typeof n){var o=k(e);return"rgba("+o.red+","+o.green+","+o.blue+","+n+")"}if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?I(e,n,t):"rgba("+e+","+n+","+t+","+r+")";if("object"===u(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?I(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new s(7)}function N(e){if("object"!==u(e))throw new s(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return T(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 I(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof 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||void 0===e.alpha)}(e))return A(e);throw new s(8)}function R(e){return function e(n,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?n.apply(this,o):e(n,t,o)}}(e,e.length,[])}function z(e,n,t){return Math.max(e,Math.min(n,t))}function D(e,n){if("transparent"===n)return n;var t=C(n);return N(r({},t,{lightness:z(0,1,t.lightness+parseFloat(e))}))}var L=R(D)},function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"e",(function(){return h})),t.d(n,"c",(function(){return b})),t.d(n,"d",(function(){return y})),t.d(n,"a",(function(){return p}));var r=t(0),o=t(49),a=t.n(o);function i(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function l(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){l(a,r,o,i,c,"next",e)}function c(e){l(a,r,o,i,c,"throw",e)}i(void 0)}))}}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||s(e,n)||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 s(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Object(r.useState)(n),a=u(o,2),i=a[0],l=a[1],c=Object(r.useState)(null),s=u(c,2),f=s[0],d=s[1],p=Object(r.useState)(t),h=u(p,2),m=h[0],b=h[1],v=Object(r.useState)(0),y=u(v,2),g=y[0],w=y[1];return Object(r.useEffect)((function(){void 0!==e&&(e.success?(d(null),l(e.data),w(e.total?e.total:0)):d(e.error)),b(void 0===e)}),[e]),{busy:m,data:i,total:g,error:f}},p=function(){var e=Object(r.useRef)(),n=u(Object(r.useState)({}),2),t=n[0],o=n[1];return Object(r.useEffect)((function(){if(e&&e.current){var n=new ResizeObserver((function(e){var n=e[0];n.contentRect&&o({width:n.contentRect.left+n.contentRect.right,height:n.contentRect.top+n.contentRect.bottom})}));return n.observe(e.current),function(){n.unobserve(e.current)}}}),[]),{ref:e,width:t.width?t.width:0,height:t.height?t.height:0}},h=function(e){var n=Object(r.useRef)(),t=function(t){e&&!n.current.contains(t.target)&&e()};return Object(r.useEffect)((function(){return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}})),n},m=null,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!m){var n=e.concurrency,t=void 0===n?2:n;m=new a.a({concurrency:t,autoStart:!0})}var r=function(){var e=c(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.add(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return{runTask:r}},v=new a.a({concurrency:1,autoStart:!1}),y=function(){var e=u(Object(r.useState)(new AbortController),2),n=e[0],t=e[1],o=Object(r.useRef)(!1),a=Object(r.useRef)(0),l=Object(r.useRef)(null),s=u(Object(r.useState)(null),2),f=s[0],d=s[1],p=u(Object(r.useState)(!1),2),h=p[0],m=p[1],b=u(Object(r.useState)(0),2),y=b[0],g=b[1],w=u(Object(r.useState)(!1),2),x=w[0],O=w[1],k=u(Object(r.useState)(!1),2),C=k[0],E=k[1],S=u(Object(r.useState)(0),2),j=S[0],_=S[1],P=function(){var e=c(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new AbortController,t(n),O(!1),a.current=0,o.current=!1,m(!1),E(!1),_(0),g(0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=c(regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){O(!1),a.current=0,o.current=!1,m(!1),E(!1),L(n),d(!0),console.log("[useNekoTasks] Start."),v.start(),v.onIdle().then((function(){R(),e()}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),M=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("[useNekoTasks] Pause."),v.pause(),m(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("[useNekoTasks] Resume."),O(!1),m(!1),v.start();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("[useNekoTasks] Retrying."),O(!1),m(!1),!l.current){e.next=6;break}return e.next=6,z(l.current,!0);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("[useNekoTasks] Cancel."),v.pause(),n.abort(),d(!1),O(!1),E(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("[useNekoTasks] onIdle."),E(!0),d(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=c(regeneratorRuntime.mark((function e(t){var r,i,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>1&&void 0!==c[1]&&c[1],e.prev=1,r&&(a.current--,_((function(e){return e-1}))),l.current=t,e.next=6,t(n.signal);case 6:(i=e.sent)&&i.success||console.error("[useNekoTasks] The function for that task did not return anything.",i),i.success?r&&v.start():(a.current++,o.current||(O(i.error),M())),e.next=20;break;case 11:if(e.prev=11,e.t0=e.catch(1),"AbortError"!==e.t0.name){e.next=18;break}return console.log("[useNekoTasks] Aborted"),e.abrupt("return");case 18:a.current++,o.current||(O("[useNekoTasks] An error was caught (more information in the console)."),M());case 20:return e.prev=20,_((function(e){return e+1})),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,11,20,23]])})));return function(n){return e.apply(this,arguments)}}(),D=function(){var e=c(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.add(c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",z(n));case 1:case"end":return e.stop()}}),e)})))),g((function(e){return e+1}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(){var e=c(regeneratorRuntime.mark((function e(n){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.clear(),t=i(n);try{for(t.s();!(r=t.n()).done;)o=r.value,D(o)}catch(e){t.e(e)}finally{t.f()}_(0);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),F=Object(r.useCallback)((function(){o.current=!0}),[]),B=Object(r.useCallback)((function(){return a.current}),[]);return{start:A,stop:N,pause:M,resume:I,reset:P,retry:T,addTask:D,setAlwaysSkip:F,getErrorCount:B,error:x,success:C,busy:f,paused:h,value:j,max:y}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["show","className"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p,h,m=c.a.a(r||(p=["\n background-color: ",";\n position: relative;\n border-radius: 10px;\n color: ",";\n font-family: ",";\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ",";\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))),u.a.yellow,u.a.white,u.a.fontFamily,u.a.white),b=function(e){var n=e.show,t=void 0===n||n,r=e.className,o=d(e,s);return t?a.a.createElement(m,f({href:"https://store.meowapps.com",target:"_blank",className:"".concat(r||"")},o),"Pro Only"):null},v=function(e){return a.a.createElement(b,e)};v.propTypes={show:l.a.bool,className:l.a.string},v.defaultProps={show:!0,className:void 0}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"/>'}},function(e,n,t){"use strict";t.d(n,"a",(function(){return x}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(7),s=t(3),f=t(5),d=t(16),p=t(6),h=["className","icon","onClick","disabled","color","small","isBusy","width","height","children","rounded","busyText","spinning","hideBusyIcon"];function m(){return(m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function b(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var v,y,g=Object(c.a)((function(e){var n=e.className,t=e.icon,r=void 0===t?null:t,i=e.onClick,l=e.disabled,c=void 0!==l&&l,u=e.color,s=void 0===u?null:u,f=e.small,v=e.isBusy,y=void 0!==v&&v,g=e.width,w=(e.height,e.children),x=e.rounded,O=e.busyText,k=e.spinning,C=void 0!==k&&k,E=e.hideBusyIcon,S=void 0!==E&&E,j=b(e,h),_=!!r,P=Object(o.useMemo)((function(){var e=null!=g?g:30;return x?e-10:e-6}),[g,x]),A="nui-button ".concat(n||"").concat(_?" has-icon":"").concat(s?" custom-color":"").concat(f?" small":"").concat(x?" rounded":"").concat(y?" busy":"");return a.a.createElement("button",m({type:"button",className:A,onClick:i,disabled:c},j),y&&!S&&!_&&a.a.createElement(d.a,{type:"circle",color:"#fff",size:x?"82%":"35%"}),y&&!!O&&a.a.createElement("span",{style:{marginLeft:S?0:"4px",marginRight:"2xp"}},O),_&&a.a.createElement(p.a,{icon:r,width:P,height:P,spinning:C,raw:!0,style:x?{margin:"0 auto"}:{}}),!!w&&!y&&a.a.createElement("span",{style:{marginLeft:_?"4px":0,marginRight:_?"2xp":0}},w))}))(r||(v=["\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ",";\n font-size: ",";\n padding: 0 15px;\n\n background-color: ",";\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n &.danger {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.success {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ",";\n height: 24px;\n }\n\n &.header {\n background-color: ",";\n border-color: ",";\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: ","px;\n width: ","px;\n padding: 3px;\n }\n\n &.busy {\n pointer-events: none;\n }\n\n ","\n"],y||(y=v.slice(0)),r=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(y)}}))),s.a.fontFamily,s.a.fontSizeText,s.a.blue,Object(u.a)(.1,s.a.blue),s.a.lightBlue,s.a.blue,s.a.blue,Object(u.a)(.1,s.a.lightBlue),s.a.red,s.a.red,Object(u.a)(.1,s.a.red),s.a.green,s.a.green,Object(u.a)(.1,s.a.green),s.a.fontSizeSmallButton,s.a.deepBlue,s.a.deepBlue,Object(u.a)(.1,s.a.deepBlue),(function(e){var n,t;return null!==(n=e.height)&&void 0!==n?n:null!==(t=e.width)&&void 0!==t?t:30}),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:30}),(function(e){return w(e.color)})),w=function(e){if(e)return"\n &.custom-color {\n background-color: ".concat(e,";\n border: 1px solid ").concat(e,";\n\n &:hover {\n background-color: ").concat(Object(u.a)(.1,e),";\n }\n }\n ")},x=function(e){return a.a.createElement(g,e)};x.propTypes={className:l.a.oneOf(["primary","secondary","danger","success","header"]),disabled:l.a.bool,icon:l.a.oneOfType([l.a.instanceOf(f.IconifyIcon),l.a.oneOf(["setting","edit","trash"])]),color:l.a.string,onClick:l.a.func.isRequired,rounded:l.a.bool,isBusy:l.a.bool,spinning:l.a.bool,busyText:l.a.string,hideBusyIcon:l.a.bool},x.defaultProps={className:"primary",disabled:!1,icon:null,color:null,onClick:function(){},rounded:void 0,isBusy:!1,spinning:!1,busyText:void 0,hideBusyIcon:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return $})),t.d(n,"b",(function(){return W}));var r=t(0),o=Object.prototype.hasOwnProperty;function a(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,l)}c((r=r.apply(e,n||[])).next())}))}function i(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var l={}[0],c=function(e){return e===l},u=function(e){return"function"==typeof e},s=function(){},f=function(e,n){return Object.assign({},e,n)},d=!0,p="undefined"!=typeof window,h="undefined"!=typeof document,m=p&&window.addEventListener?window.addEventListener:s,b=h?document.addEventListener:s,v={isOnline:function(){return d},isVisible:function(){var e=h&&document.visibilityState;return!!c(e)||"hidden"!==e}},y={initFocus:function(e){b("visibilitychange",e),m("focus",e)},initReconnect:function(e){m("online",(function(){d=!0,e()})),m("offline",(function(){d=!1}))}},g="undefined"==typeof window||"Deno"in window,w=g?null:window.requestAnimationFrame,x=w?function(e){return w(e)}:function(e){return setTimeout(e,1)},O=g?r.useEffect:r.useLayoutEffect,k="undefined"!=typeof navigator&&navigator.connection,C=!g&&k&&(["slow-2g","2g"].includes(k.effectiveType)||k.saveData),E=new WeakMap,S=0;function j(e){if(u(e))try{e=e()}catch(n){e=""}var n;return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=e[t],o=l;null===r||"object"!=typeof r&&!u(r)?o=JSON.stringify(r):E.has(r)?o=E.get(r):(o=S,E.set(r,S++)),n+="$"+o}return n}(e)):n=[e=String(e||"")],[e,n,e?"$err$"+e:"",e?"$req$"+e:""]}var _=new WeakMap,P=function(e,n,t,r,o,a){void 0===a&&(a=!1);var i=_.get(e),l=i[0],c=i[1],u=l[n],s=c[n];if(s)for(var f=0;f<s.length;++f)s[f](t,r,o);return a&&u&&u[0]?u[0](2).then((function(){return e.get(n)})):e.get(n)},A=0,M=function(){return++A},I=function(e,n,t,r){return void 0===r&&(r=!0),a(void 0,void 0,void 0,(function(){var o,a,s,f,d,p,h,m,b,v,y;return i(this,(function(i){switch(i.label){case 0:if(o=j(n),a=o[0],s=o[2],!a)return[2];if(f=_.get(e),d=f[2],p=f[3],c(t))return[2,P(e,a,e.get(a),e.get(s),l,r)];if(b=d[a]=M(),p[a]=0,u(t))try{t=t(e.get(a))}catch(e){t=l,m=e}if(!t||!u(t.then))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t];case 2:return h=i.sent(),[3,4];case 3:return v=i.sent(),m=v,[3,4];case 4:if(b!==d[a]){if(m)throw m;return[2,h]}return[3,6];case 5:h=t,i.label=6;case 6:return c(h)||e.set(a,h),e.set(s,m),p[a]=M(),[4,P(e,a,h,m,l,r)];case 7:if(y=i.sent(),m)throw m;return[2,y]}}))}))};function T(e,n){for(var t in e)e[t][0]&&e[t][0](n)}function N(e,n){if(!_.has(e)){var t=f(y,n),r={},o=I.bind(l,e);return _.set(e,[r,{},{},{},{},{},o]),g||(t.initFocus(T.bind(l,r,0)),t.initReconnect(T.bind(l,r,1))),[e,o]}}var R=N(new Map),z=R[0],D=R[1],L=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,n,t,r,o){if(v.isVisible()){var a=t.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!c(a)&&i>a||setTimeout(r,l,o)}},revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:function e(n,t){var r,a;if(n===t)return!0;if(n&&t&&(r=n.constructor)===t.constructor){if(r===Date)return n.getTime()===t.getTime();if(r===RegExp)return n.toString()===t.toString();if(r===Array){if((a=n.length)===t.length)for(;a--&&e(n[a],t[a]););return-1===a}if(!r||"object"==typeof n){for(r in a=0,n){if(o.call(n,r)&&++a&&!o.call(t,r))return!1;if(!(r in t)||!e(n[r],t[r]))return!1}return Object.keys(t).length===a}}return n!=n&&t!=t},isPaused:function(){return!1},cache:z,mutate:D,fallback:{}},v);function F(e,n){var t=f(e,n);if(!n)return t;var r=e.use,o=e.fallback,a=n.use,i=n.fallback;return r&&a&&(t.use=r.concat(a)),o&&i&&(t.fallback=f(o,i)),t}var B=Object(r.createContext)({});function U(e){return u(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]}var H,V=function(e,n,t){var r=n[e]||(n[e]=[]);return r.push(t),function(){var e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},q={dedupe:!0},$=Object.defineProperty((function(e){var n=e.children,t=e.value,o=F(Object(r.useContext)(B),t),a=t&&t.provider,i=Object(r.useState)((function(){return a?N(a(o.cache||z),t):l}))[0];return i&&(o.cache=i[0],o.mutate=i[1]),Object(r.createElement)(B.Provider,{value:o},n)}),"default",{value:L}),W=(H=function(e,n,t){var o=t.cache,u=t.compare,s=t.fallbackData,d=t.suspense,p=t.revalidateOnMount,h=t.refreshInterval,m=t.refreshWhenHidden,b=t.refreshWhenOffline,v=_.get(o),y=v[0],w=v[1],k=v[2],C=v[3],E=v[4],S=v[5],A=j(e),T=A[0],N=A[1],R=A[2],z=A[3],D=Object(r.useRef)(!1),L=Object(r.useRef)(!1),F=Object(r.useRef)(T),B=Object(r.useRef)(t),U=o.get(T),H=c(s)?t.fallback[T]:s,$=c(U)?H:U,W=o.get(R),Z=function(){return c(p)?d?!D.current&&!c($):c($)||t.revalidateIfStale:p},G=!(!T||!n)&&(!!o.get(z)||!D.current&&Z()),Y=function(e,n){var t=Object(r.useState)({})[1],o=Object(r.useRef)(e),a=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),i=Object(r.useCallback)((function(e){var r=!1,i=o.current;for(var l in e){var c=l;i[c]!==e[c]&&(i[c]=e[c],a.current[c]&&(r=!0))}r&&!n.current&&t({})}),[]);return O((function(){o.current=e})),[o,a.current,i]}({data:$,error:W,isValidating:G},L),K=Y[0],X=Y[1],J=Y[2],Q=Object(r.useCallback)((function(e){return a(void 0,void 0,void 0,(function(){var r,a,s,f,d,p,h,m,b;return i(this,(function(i){switch(i.label){case 0:if(!T||!n||L.current||B.current.isPaused())return[2,!1];s=!0,f=e||{},d=!c(E[T])&&f.dedupe,p=function(){return!L.current&&T===F.current&&D.current},h=function(){delete E[T],delete S[T]},i.label=1;case 1:return i.trys.push([1,6,,7]),o.set(z,!0),J({isValidating:!0}),d||P(o,T,K.current.data,K.current.error,!0),d?(a=S[T],[4,E[T]]):[3,3];case 2:return r=i.sent(),[3,5];case 3:return t.loadingTimeout&&!o.get(T)&&setTimeout((function(){s&&p()&&B.current.onLoadingSlow(T,t)}),t.loadingTimeout),S[T]=a=M(),[4,E[T]=n.apply(n,N)];case 4:r=i.sent(),setTimeout((function(){S[T]===a&&h()}),t.dedupingInterval),p()&&B.current.onSuccess(r,T,t),i.label=5;case 5:return S[T]!==a?[2,!1]:!c(k[T])&&(a<=k[T]||a<=C[T]||0===C[T])?(J({isValidating:!1}),[2,!1]):(o.set(R,l),o.set(z,!1),m={isValidating:!1},c(K.current.error)||(m.error=l),u(K.current.data,r)||(m.data=r),u(o.get(T),r)||o.set(T,r),J(m),d||P(o,T,r,m.error,!1),[3,7]);case 6:return b=i.sent(),h(),B.current.isPaused()?(J({isValidating:!1}),[2,!1]):(o.set(R,b),K.current.error!==b&&(J({isValidating:!1,error:b}),d||P(o,T,l,b,!1)),p()&&(B.current.onError(b,T,t),t.shouldRetryOnError&&B.current.onErrorRetry(b,T,t,Q,{retryCount:(f.retryCount||0)+1,dedupe:!0})),[3,7]);case 7:return s=!1,[2,!0]}}))}))}),[T]),ee=Object(r.useCallback)((function(e,n){return I(o,F.current,e,n)}),[]);if(O((function(){B.current=t})),O((function(){if(T){var e=D.current,n=Q.bind(l,q),t=function(){return B.current.isVisible()&&B.current.isOnline()},r=0,o=V(T,w,(function(e,n,t){J(f({error:n,isValidating:t},u(e,K.current.data)?null:{data:e}))})),a=V(T,y,(function(e){if(0===e){var o=Date.now();B.current.revalidateOnFocus&&o>r&&t()&&(r=o+B.current.focusThrottleInterval,n())}else if(1===e)B.current.revalidateOnReconnect&&t()&&n();else if(2===e)return Q()}));return L.current=!1,F.current=T,e&&J({data:$,error:W,isValidating:G}),(e||Z())&&(c($)||g?n():x(n)),D.current=!0,function(){L.current=!0,o(),a()}}}),[T,Q]),O((function(){var e;function n(){h&&-1!==e&&(e=setTimeout(r,h))}function r(){K.current.error||!m&&!t.isVisible()||!b&&!t.isOnline()?n():Q(q).then((function(){return n()}))}return n(),function(){e&&(clearTimeout(e),e=-1)}}),[h,m,b,Q]),Object(r.useDebugValue)($),d&&c($))throw c(W)?Q(q):W;return{mutate:ee,get data(){return X.data=!0,$},get error(){return X.error=!0,W},get isValidating(){return X.isValidating=!0,G}}},function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=U(e),o=t[0],a=t[1],i=t[2],l=f(L,Object(r.useContext)(B)),c=F(l,i),u=H,s=c.use;if(s)for(var d=s.length;d-- >0;)u=s[d](u);return u(o,a||c.fetcher,c)})},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"/>'}},function(e,n,t){"use strict";t.d(n,"d",(function(){return D})),t.d(n,"c",(function(){return z})),t.d(n,"b",(function(){return N})),t.d(n,"a",(function(){return L}));var r=t(0),o=t(120),a=t.n(o);function i(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}function c(e){return(c="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})(e)}var u=new WeakMap,s=0;var f=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var n=this.serializeKey(e)[0];return this.__cache.get(n)},e.prototype.set=function(e,n,t){void 0===t&&(t=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,n),t&&S(e,n,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var n=this.serializeKey(e)[0];return this.__cache.has(n)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return S(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,n){void 0===n&&(n=!0);var t=this.serializeKey(e)[0];n&&S(e,null,!1),this.__cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var n=null;if("function"==typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=void 0;null===e[t]||"object"!==c(e[t])?r="string"==typeof e[t]?'"'+e[t]+'"':String(e[t]):u.has(e[t])?r=u.get(e[t]):(r=s,u.set(e[t],s++)),n+="@"+r}return n}(e)):e=String(e||""),[e,n,e?"err@"+e:""]},e.prototype.subscribe=function(e){var n=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var t=!0;return this.__listeners.push(e),function(){if(t){t=!1;var r=n.__listeners.indexOf(e);r>-1&&(n.__listeners[r]=n.__listeners[n.__listeners.length-1],n.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,n=this.__listeners;e<n.length;e++){(0,n[e])()}},e}()),d={},p={},h={},m={};var b="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),v=(a.a,!1);if("undefined"!=typeof window&&window.addEventListener&&!v){var y=function(){if(i()&&l())for(var e in p)p[e][0]&&p[e][0]()};window.addEventListener("visibilitychange",y,!1),window.addEventListener("focus",y,!1),v=!0}var g=Object(r.createContext)({});g.displayName="SWRConfigContext";var w=g;var O=function(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,l)}c((r=r.apply(e,n||[])).next())}))},k=function(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},C="undefined"==typeof window,E=(C?r.useEffect:r.useLayoutEffect,function(e,n){void 0===n&&(n=!0);var t=f.serializeKey(e),r=t[0],o=t[2];if(!r)return Promise.resolve();var a=h[r];if(r&&a){for(var i=f.get(r),l=f.get(o),c=[],u=0;u<a.length;++u)c.push(a[u](n,i,l,u>0));return Promise.all(c).then((function(){return f.get(r)}))}return Promise.resolve(f.get(r))}),S=function(e,n,t){return void 0===t&&(t=!0),O(void 0,void 0,void 0,(function(){var r,o,a,i,l,c,u,s,p,b;return k(this,(function(v){switch(v.label){case 0:if(!(r=f.serializeKey(e)[0]))return[2];if(void 0===n)return[2,E(e,t)];if(m[r]=Date.now()-1,i=m[r],l=d[r],!n||"function"!=typeof n)return[3,5];v.label=1;case 1:return v.trys.push([1,3,,4]),[4,n(f.get(r))];case 2:return o=v.sent(),[3,4];case 3:return c=v.sent(),a=c,[3,4];case 4:return[3,11];case 5:if(!n||"function"!=typeof n.then)return[3,10];v.label=6;case 6:return v.trys.push([6,8,,9]),[4,n];case 7:return o=v.sent(),[3,9];case 8:return u=v.sent(),a=u,[3,9];case 9:return[3,11];case 10:o=n,v.label=11;case 11:if(i!==m[r]||l!==d[r]){if(a)throw a;return[2,o]}if(void 0!==o&&f.set(r,o,!1),s=h[r]){for(p=[],b=0;b<s.length;++b)p.push(s[b](!!t,o,a,b>0));return[2,Promise.all(p).then((function(){return f.get(r)}))]}if(a)throw a;return[2,o]}}))}))};w.Provider,new Map;var j=t(21);function _(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||I(e,n)||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 P(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function A(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){P(a,r,o,i,l,"next",e)}function l(e){P(a,r,o,i,l,"throw",e)}i(void 0)}))}}function M(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=I(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function I(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function N(e,n){for(var t=[],r=0;r<e.length;r+=n)t.push(e.slice(r,r+n));return t}var R=function(e){if(!e.data)return e;if(e.data.length>0&&e.data[0].meta){var n,t=M(e.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;try{r.meta=JSON.parse(r.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(e){t.e(e)}finally{t.f()}}else if(e.data.meta)try{e.data.meta=JSON.parse(e.data.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return e},z=function(){var e=A(regeneratorRuntime.mark((function e(n){var t,r,o,a,i,l,c,u,s,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>1&&void 0!==f[1]?f[1]:{},r=null,o={},a=null,i=null,e.prev=5,(t=t||{}).headers=t.headers?t.headers:{},t.headers.Pragma="no-cache",t.headers["Cache-Control"]="no-cache",e.next=12,fetch("".concat(n),t);case 12:return i=e.sent,e.next=15,i.text();case 15:r=e.sent,(o=JSON.parse(r)).success||(l=!1===o.success?"NOT-SUCCESS":"N/A",c=o.message?o.message:"Unknown error. Check your Console Logs.","rest_no_route"===o.code?(c="The API can't be accessed. Is Rest API enabled?",l="NO-ROUTE"):"internal_server_error"===o.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),a=new j.a(c,l,n,r||i)),e.next=26;break;case 20:e.prev=20,e.t0=e.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.",i&&i.status&&408===i.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),a=new j.a(s,u,n,r||i,e.t0);case 26:return a&&(console.error("[NekoError] JsonFetcher",a.url,{code:a.code,error:a.error,body:a.body}),o.success=!1,o.error=a),e.abrupt("return",R(o));case 28:case"end":return e.stop()}}),e,null,[[5,20]])})));return function(n){return e.apply(this,arguments)}}(),D=function(){var e=A(regeneratorRuntime.mark((function e(n){var t,r,o,a,i,l,c,u,s,f,d,p,h,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=m.length>1&&void 0!==m[1]?m[1]:{},r=t.json,o=void 0===r?{}:r,a=t.signal,i=t.file,l=t.nonce,c=i?new FormData:null,i)for(c.append("file",i),u=0,s=Object.entries(o);u<s.length;u++)f=_(s[u],2),d=f[0],p=f[1],c.append(d,p);return h=l?{"X-WP-Nonce":l}:{},c||(h["Content-Type"]="application/json"),e.abrupt("return",z(n,{method:"POST",headers:h,body:c||JSON.stringify(o),signal:a}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(e,n){var t=e.includes("index.php?rest_route");return e+(t?"&":"?")+new URLSearchParams(n).toString()}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a);function l(){return(l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}(e,n)||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 d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p=function(e){var n=e.spinner,t=void 0===n||n,a=e.busy,i=void 0!==a&&a,c=e.overlayStyle,s=f(Object(r.useState)(!0),2),d=s[0],p=s[1];Object(r.useEffect)((function(){var e;return i?p(!0):e=setTimeout((function(){p(!1),e=null}),250),function(){e&&clearTimeout(e)}}),[i]);var h=d?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"overlay "+(i?"":"overlayHidden"),style:c},Boolean(t)&&o.a.createElement("div",{className:"lds-ellipsis "+(i?"":"spinnerHidden")},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))),o.a.createElement("style",{jsx:!0},"\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n ")):null,m=u(u({},e),{},{busy:void 0,spinner:void 0});return o.a.createElement("div",l({style:{position:"relative"}},m),h,e.children)};p.propTypes={busy:i.a.bool.isRequired,spinner:i.a.bool,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node]).isRequired},n.a=p},function(e,n,t){"use strict";t.d(n,"a",(function(){return b}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=["type"];function s(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var f,d,p=c.a.div(r||(f=["\n width: ",";\n padding-top: ",";\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ",";\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n"],d||(d=f.slice(0)),r=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(d)}}))),(function(e){return e.size||"50%"}),(function(e){return e.size||"50%"}),(function(e){return e.color||"#333"})),h=function(e){return a.a.createElement(p,e,a.a.createElement("div",{className:"double-bounce1"}),a.a.createElement("div",{className:"double-bounce2"}))},m=function(e){var n=e.type,t=void 0===n?"circle":n,r=s(e,u);switch(t){case"circle":return a.a.createElement(h,r);default:return null}},b=function(e){return a.a.createElement(m,e)};b.propTypes={type:l.a.string},b.defaultProps={type:"circle"}},function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var r,o,a,i,l,c=t(0),u=t.n(c),s=t(2),f=t.n(s),d=t(4),p=t(3),h=["children"];function m(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=d.a.h1(r||(r=b(["\n font-family: ",";\n font-weight: normal;\n font-size: ",";\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeH1),y=d.a.h2(o||(o=b(["\n font-family: ",";\n font-size: ",";\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeH2),g=d.a.p(a||(a=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),w=d.a.span(i||(i=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),x=d.a.label(l||(l=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),O=function(e){var n=e.children,t=m(e,h);return e.h1?u.a.createElement(v,t,n):e.h2?u.a.createElement(y,t,n):e.p?u.a.createElement(g,t,n):e.label?u.a.createElement(x,t,n):u.a.createElement(w,t,n)},k=function(e){return u.a.createElement(O,e)};k.propTypes={h1:f.a.any,h2:f.a.any,p:f.a.any},k.defaultProps={h1:void 0,h2:void 0,p:void 0}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2Z"/>'}},function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(8),f=t(3);function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e,n)||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 p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=u.a.div(r||(r=h(["\n\tdisplay: flex;\n"]))),b=u.a.div(o||(o=h(["\n\tbackground-color: rgba(",", 0.8);\n\tborder-radius: 4px;\n\tcolor: ",";\n\tfont-family: ",";\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ",";\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ",';\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(',", 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t","\n"])),f.a.blackRGB,f.a.white,f.a.fontFamily,f.a.fontSizeText,(function(e){return e.visible?"inline-block":"none"}),f.a.blackRGB,f.a.blackRGB,f.a.blackRGB,f.a.blackRGB,(function(e){return e.style})),v=function(e){var n=e.text,t=void 0===n?"Hello world!":n,r=e.position,o=void 0===r?"top":r,l=d(Object(a.useState)(!1),2),c=l[0],u=l[1],f=Object(s.a)(),p=f.ref,h=f.width,v=f.height,y=Object(s.a)(),g=y.ref,w=y.width,x=y.height,O=Object(a.useMemo)((function(){var e=0,n=0;if("top"===o)e=-1*v-5,n=h/2*-1+w/2;else if("bottom"===o)e=x+5,n=h/2*-1+w/2;else if("left"===o){e=(v-x)/2*-1,n=-1*h-5}else if("right"===o){e=(v-x)/2*-1,n=w+5}return{transform:"translateX(".concat(n,"px) translateY(").concat(e,"px)")}}),[o,h,v,w,x]);return i.a.createElement(m,null,i.a.createElement(b,{ref:p,visible:c,className:o,style:O},t),i.a.createElement("div",{ref:g,onMouseEnter:function(){return t&&u(!0)},onMouseLeave:function(){return u(!1)}},e.children))},y=function(e){return i.a.createElement(v,e)};y.propTypes={text:c.a.string,position:c.a.oneOf(["top","right","bottom","left"])},y.defaultProps={text:"Hello world!",position:"top"}},function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}t.d(n,"a",(function(){return o}));var o=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r(this,e),this.url=o,this.message=n,this.code=t,this.body=a,this.debug=i}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M19 3H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14Z"/>'}},function(e,n,t){"use strict";t.d(n,"a",(function(){return g}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(6),f=["id","name","value","description","placeholder","onEnter","readOnly","type","step","min","max","maxLength","className","style","natural","inputStyle","onChange","onBlur","onReset"];function d(){return(d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function p(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h(e,n)}(e,n)||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 h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function m(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var b,v,y=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.value,i=void 0===r?"":r,l=e.description,c=e.placeholder,h=void 0===c?"":c,b=e.onEnter,v=void 0===b?null:b,y=e.readOnly,g=void 0!==y&&y,w=e.type,x=void 0===w?"text":w,O=e.step,k=void 0===O?1:O,C=e.min,E=void 0===C?1:C,S=e.max,j=void 0===S?999:S,_=e.maxLength,P=void 0===_?void 0:_,A=e.className,M=e.style,I=e.natural,T=void 0!==I&&I,N=e.inputStyle,R=e.onChange,z=e.onBlur,D=e.onReset,L=m(e,f),F=p(Object(o.useState)(i),2),B=F[0],U=F[1],H=!!R,V=P||("number"===x?3:void 0);Object(o.useEffect)((function(){H||U(i)}),[i]);var q=function(e){H?R(e.target.value,n):U(e.target.value,n)},$=function(e){v&&"Enter"===event.key&&(e.preventDefault(),v(e.target.value,n))},W=function(e){z&&i!==e.target.value&&z(e.target.value,n)},Z="neko-input ".concat(T?" natural":"");return a.a.createElement("div",{className:[A].join(" "),style:M},a.a.createElement("div",{style:{position:"relative"}},"number"===x?a.a.createElement("input",d({className:[Z].join(" "),id:n,name:t,value:H?i:B,type:x,step:k,min:E,max:j,maxLength:V,autoComplete:"off",placeholder:h,style:N,onChange:q,onKeyPress:$,onBlur:W,readOnly:g},L)):a.a.createElement("input",d({className:[Z].join(" ")},L,{id:n,name:t,value:H?i:B,type:x,spellCheck:"false",autoComplete:"off",placeholder:h,style:N,maxLength:V,onChange:q,onKeyPress:$,onBlur:W,readOnly:g},L)),!!i&&!!D&&a.a.createElement(s.a,{icon:"close",width:24,style:{position:"absolute",top:"3px",right:"3px"},color:u.a.blue,onClick:D})),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(r||(b=["\n .neko-input {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"],v||(v=b.slice(0)),r=Object.freeze(Object.defineProperties(b,{raw:{value:Object.freeze(v)}}))),u.a.fontFamily,u.a.fontSizeText,u.a.blue,u.a.gray,u.a.fontFamily,u.a.fontSizeSmall),g=function(e){return a.a.createElement(y,e)};g.propTypes={id:l.a.string,type:l.a.oneOf(["number","text"]),name:l.a.string,value:l.a.string,description:l.a.string,placeholder:l.a.string,onChange:l.a.func,onEnter:l.a.func,onBlur:l.a.func,readOnly:l.a.bool,step:l.a.number,min:l.a.number,max:l.a.number,maxLength:l.a.number,natural:l.a.bool,onReset:l.a.func},g.defaultProps={id:void 0,type:"text",name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,step:1,min:1,max:999,maxLength:void 0,natural:!1,onReset:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var r,o=t(0),a=t.n(o);var i,l,c=t(4).a.div(r||(i=["\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n"],l||(l=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(l)}})))),u=function(){return a.a.createElement(c,null,a.a.createElement("svg",{width:"54",height:"38",viewBox:"0 0 54 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z",fill:"#724024",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",stroke:"black"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",stroke:"black"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",stroke:"black"}),a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z",fill:"white",stroke:"black",strokeWidth:"2.1869"})))},s=function(e){return a.a.createElement(u,e)};s.propTypes={},s.defaultProps={}},function(e,n,t){"use strict";t.d(n,"a",(function(){return E}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(5),s=t(30),f=t.n(s),d=t(32),p=t.n(d),h=t(31),m=t.n(h),b=t(13),v=t.n(b),y=t(3);function g(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||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 w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var x,O,k=c.a.div(r||(x=["\n align-items: center;\n display: flex;\n user-select: none;\n\n .neko-paging-text {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(",", 0.8);\n border-radius: 15px;\n display: flex;\n margin-left: 15px;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ",";\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n\n &.neko-paging-full {\n flex-grow: 1;\n\n .neko-paging-controller {\n flex-grow: 1;\n }\n .nako-paging-controller-text {\n margin: 0 auto;\n }\n }\n"],O||(O=x.slice(0)),r=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(O)}}))),y.a.fontFamily,y.a.blueRGB,y.a.white,y.a.darkGray,y.a.white,y.a.fontFamily),C=function(e){var n=e.currentPage,t=e.limit,r=void 0===t?0:t,i=e.onClick,l=e.total,c=void 0===l?0:l,s=e.onCurrentPageChanged,d=e.full,h=e.infinite,b=void 0!==h&&h,y=e.controllerText,w=!!s,x=Object(o.useMemo)((function(){return b?0:Math.ceil(0===c?1:r>0?c/r:1)}),[b,r,c]),O="nako-paging-controller-icon ".concat(b||1!==n?"":"disabled"),C="nako-paging-controller-icon ".concat(b||n!==x?"":"disabled"),E=g(Object(o.useState)(!1),2),S=E[0],j=E[1],_=d?"neko-paging-full":"",P=function(e){j(!1),i(e)},A=function(e){if(b)return e;var n=Number(e);return n>x?x:n<1?1:n},M=function(e){var n=e.target.value;isNaN(n)||s(A(n)),j(!1)},I=function(e){if("Enter"===event.key){e.preventDefault();var n=e.target.value;isNaN(n)||s(A(n)),j(!1)}},T=Object(o.useMemo)((function(){if(!S){return a.a.createElement("span",{className:w?"neko-paging-current-page":"",onClick:function(){w&&j(!0)}},n)}return a.a.createElement("input",{autoFocus:!0,type:"text",className:w?"neko-paging-current-page":"",defaultValue:n,onBlur:M,onKeyPress:I})}),[n,S,s]),N=function(e){S&&e.target===e.currentTarget&&j(!1)};return a.a.createElement(k,{className:_},!!c&&a.a.createElement("span",{className:"neko-paging-text"},c," result",c>0?"s":""),a.a.createElement("div",{className:"neko-paging-controller",onClick:N},!b&&a.a.createElement(u.Icon,{icon:f.a,className:O,onClick:function(){return P(1)}}),a.a.createElement(u.Icon,{icon:p.a,className:O,onClick:function(){return P(n-1)}}),a.a.createElement("p",{className:"nako-paging-controller-text",onClick:N},y||a.a.createElement(a.a.Fragment,null,"Page ",T," of ",x)),a.a.createElement(u.Icon,{icon:v.a,className:C,onClick:function(){return P(n+1)}}),!b&&a.a.createElement(u.Icon,{icon:m.a,className:C,onClick:function(){return P(x)}})))},E=function(e){return a.a.createElement(C,e)};E.propTypes={currentPage:l.a.number,limit:l.a.number,total:l.a.number,onClick:l.a.func,lastPage:l.a.number,infinite:l.a.bool,controllerText:l.a.object},E.defaultProps={currentPage:void 0,limit:0,total:0,onClick:void 0,lastPage:void 0,infinite:!1,controllerText:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return O}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(1),s=["onSuccess","onFailure","apiUrl","apiConfig","className","disabled","children","multiple"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 p(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function h(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){p(a,r,o,i,l,"next",e)}function l(e){p(a,r,o,i,l,"throw",e)}i(void 0)}))}}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||b(e,n)||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 b(e,n){if(e){if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var g,w,x=c.a.div(r||(g=["\n &.dropping {\n background: #a4d5ff;\n }\n"],w||(w=g.slice(0)),r=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(w)}})))),O=Object(o.forwardRef)((function(e,n){var t=e.onSuccess,r=void 0===t?function(){}:t,i=e.onFailure,l=void 0===i?function(){}:i,c=e.apiUrl,p=e.apiConfig,b=e.className,v=e.disabled,g=void 0!==v&&v,w=e.children,O=e.multiple,k=y(e,s),C=m(Object(o.useState)(!1),2),E=C[0],S=C[1],j=m(Object(o.useState)(!1),2),_=j[0],P=j[1],A=Object(o.useCallback)(function(){var e=h(regeneratorRuntime.mark((function e(n){var t,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),t=function(){var e=h(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p.file=n,e.next=3,Object(u.G)(c,p);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(n.map(function(){var e=h(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:o=e.sent,a=o.filter((function(e){return e.success})),i=o.filter((function(e){return!e.success})),a.length&&r(O?a:a[0]),i.length&&l(O?i:i[0]),P(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[p,r,l]),M=Object(o.useCallback)((function(e,n){n.preventDefault(),n.stopPropagation(),S(!1),A(e)}),[A]),I=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation()}),[]),T=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),g||S(!0)}),[g]),N=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),g||S(!1)}),[g]),R=Object(o.useCallback)((function(e){if(!g){var n=d(e.dataTransfer.files);M(n,e)}}),[g,M]),z=Object(o.useCallback)((function(e){var n=d(e.target.files);M(n,e)}),[M]);return a.a.createElement(u.b,{busy:_},a.a.createElement("input",{type:"file",accept:"image/*",ref:n,onChange:z,style:{display:"none"},multiple:O}),a.a.createElement(x,f({className:"".concat(b||""," ").concat(E?"dropping":""),onDragOver:I,onDragEnter:T,onDragLeave:N,onDrop:R},k),w))}));O.propTypes={ref:l.a.ref,onSuccess:l.a.func,onFailure:l.a.func,apiUrl:l.a.string,apiConfig:l.a.object,disabled:l.a.bool},O.defaultProps={onSuccess:function(){},onFailure:function(){},disabled:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return x}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(118),s=t.n(u),f=t(4),d=t(3),p=t(11),h=["id","isOpen","children","className","style","ok","cancel","customButtons","customButtonsPosition","title","content","contentWidth","onOkClick","onCancelClick","okOnEnter","thumbnail"];function m(){return(m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function b(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=f.a.div(r||(r=v(["\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: "," !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ",";\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n"])),d.a.overlay,d.a.white),g=f.a.div(o||(o=v(["\n width: ",";\n\n p {\n margin: 0;\n }\n .title {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n"])),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:"518px"}),d.a.fontFamily,d.a.fontFamily),w=function(e){var n=e.id,t=void 0===n?"neko-modal-parent":n,r=e.isOpen,o=e.children,l=e.className,c=e.style,u=e.ok,f=void 0===u?"OK":u,d=e.cancel,v=void 0===d?"Cancel":d,w=e.customButtons,x=void 0===w?null:w,O=e.customButtonsPosition,k=void 0===O?"right":O,C=e.title,E=void 0===C?"":C,S=e.content,j=void 0===S?"":S,_=e.contentWidth,P=e.onOkClick,A=e.onCancelClick,M=e.okOnEnter,I=void 0!==M&&M,T=e.thumbnail,N=b(e,h),R=c?"custom-modal":"",z=null!==x,D=Object(a.useCallback)((function(e){"Enter"===e.key&&P()}),[P]);Object(a.useEffect)((function(){if(I&&r)return window.addEventListener("keyup",D),function(){window.removeEventListener("keyup",D)}}),[r,D]);var L=o||i.a.createElement(g,{width:_},E&&i.a.createElement("p",{className:"title"},E),i.a.createElement("div",{className:"content-container"},T&&i.a.createElement("div",{className:"thumbnail"},T),j&&i.a.createElement("p",{className:"content"},j)),i.a.createElement("div",{className:"button-group"},z&&"left"===k&&x,A&&i.a.createElement(p.a,{className:"danger",onClick:A},v),P&&i.a.createElement(p.a,{onClick:P},f),z&&"right"===k&&x));return i.a.createElement(i.a.Fragment,null,i.a.createElement(y,{id:t}),i.a.createElement(s.a,m({ariaHideApp:!1,parentSelector:function(){return document.getElementById(t)},closeTimeoutMS:200,className:"neko-modal ".concat(l||""," ").concat(R),isOpen:r},N),L))},x=function(e){return i.a.createElement(w,e)};x.propTypes={className:c.a.string,style:c.a.object,ok:c.a.string,cancel:c.a.string,title:c.a.string,content:c.a.string,contentWidth:c.a.string,onOkClick:c.a.func,onCancelClick:c.a.func,customButtons:c.a.object,okOnEnter:c.a.bool,thumbnail:c.a.element},x.defaultProps={className:void 0,style:void 0,ok:"OK",cancel:"Cancel",title:"",content:"",contentWidth:void 0,onOkClick:void 0,onCancelClick:void 0,customButtons:null,okOnEnter:!1,thumbnail:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return T}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(5),s=t(10),f=t.n(s),d=t(18),p=t.n(d),h=t(22),m=t.n(h),b=t(38),v=t.n(b),y=t(119),g=t.n(y),w=t(3),x=t(15),O=["checked","intermediate","onSelect","onUnselect"];function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){E(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function E(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var j,_,P=c.a.table(r||(j=["\n font-family: ",";\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(",", 0.1);\n border-right: 1px solid rgba(",", 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ",";\n color: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ",";\n color: ",";\n\n div {\n justify-content: normal;\n }\n }\n }\n\n tbody {\n background-color: ",";\n \n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: rgba(",", 0.8);\n color: ",";\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: ",";\n color: ",";\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n"],_||(_=j.slice(0)),r=Object.freeze(Object.defineProperties(j,{raw:{value:Object.freeze(_)}}))),w.a.fontFamily,w.a.blackRGB,w.a.blackRGB,w.a.blue,w.a.white,w.a.white,w.a.black,w.a.white,w.a.tableGray,w.a.blueRGB,w.a.white,w.a.white,w.a.white,w.a.black),A=function(e){var n=e.checked,t=e.intermediate,r=void 0!==t&&t,o=e.onSelect,i=void 0===o?function(){}:o,l=e.onUnselect,c=void 0===l?function(){}:l;S(e,O);return a.a.createElement(u.Icon,{icon:r?g.a:n?v.a:m.a,width:"24px",height:"24px",onClick:function(e){n?c(e):i(e)}})},M={left:"start",center:"center",right:"end"},I=function(e){var n=e.columns,t=e.data,r=e.busy,o=void 0!==r&&r,i=e.onSelect,l=e.onUnselect,c=e.selectedItems,s=e.sort,d=e.onSortChange,h=e.variant,m=void 0===h?"default":h,b=e.sortIconColor,v=void 0===b?void 0:b,y=e.emptyMessage,g=void 0===y?"Empty.":y,O=n.length+(i?1:0),k=function(e){var n={};return e.align&&(n={textAlign:e.align,justifyContent:M[e.align]}),e.width&&(n=C(C({},n),{},{width:e.width})),e.style&&(n=C(C({},n),e.style)),n},E=t.map((function(e){var t=n.map((function(n){return{value:e[n.accessor],style:k(n)}}));return{id:e.id,cells:t}})),S=E.map((function(e){return e.id})),j=S.filter((function(e){return c.includes(e)})).length===S.length,_=!j&&c.length>0,I=n.reduce((function(e,n,t){return!1===n.visible&&e.push(t),e}),[]),T=a.a.createElement("tr",null,i&&a.a.createElement("th",{className:"table-checkbox-cell"},a.a.createElement(A,{checked:j,intermediate:_,onSelect:function(e){return i(S,e)},onUnselect:function(e){l(_?c:S,e)}})),n.filter((function(e,n){return!I.includes(n)})).map((function(e){var n=s&&s.accessor===e.accessor,t=s&&"asc"===s.by,r=n?w.a.white:"rgba(".concat(w.a.blackRGB,", 0.1)");v&&(r=n?v:w.a.gray);var o=k(e);return a.a.createElement("th",{style:o,key:e.accessor},a.a.createElement("div",{className:e.sortable?"sortable":"",onClick:e.sortable?function(r){d(e.accessor,n&&t?"desc":"asc",r)}:void 0},a.a.createElement("div",null,e.title),a.a.createElement("div",null,e.sortable&&a.a.createElement(u.Icon,{icon:n?t?f.a:p.a:f.a,color:r,width:"26px",height:"26px"}))))})));return a.a.createElement(x.a,{busy:o,overlayStyle:{top:"36px",height:"calc(100% - 76px)"}},a.a.createElement(P,{className:"nekotable-".concat(m)},a.a.createElement("thead",null,T),a.a.createElement("tbody",null,!E.length&&a.a.createElement("tr",null,a.a.createElement("td",{colspan:O,style:{textAlign:"center",height:40,color:"gray"}},g)),E.map((function(e){return a.a.createElement("tr",{className:c.includes(e.id)?"selected":""},i&&a.a.createElement("td",{className:"table-checkbox-cell"},a.a.createElement(A,{checked:c.includes(e.id),onSelect:function(n){return i([e.id],n)},onUnselect:function(n){return l([e.id],n)}})),e.cells.filter((function(e,n){return!I.includes(n)})).map((function(e){return a.a.createElement("td",{style:e.style},e.value)})))}))),"default"===m&&a.a.createElement("tfoot",null,T)))},T=function(e){return a.a.createElement(I,e)};T.propTypes={columns:l.a.arrayOf(l.a.any),data:l.a.arrayOf(l.a.any),busy:l.a.arrayOf(l.a.bool),onSelect:l.a.func,onUnselect:l.a.func,selectedItems:l.a.arrayOf(l.a.object),onSortChange:l.a.func,variant:l.a.string,sortIconColor:l.a.string},T.defaultProps={columns:void 0,data:void 0,busy:!1,onSelect:void 0,onUnselect:void 0,selectedItems:void 0,onSortChange:void 0,variant:"default",sortIconColor:void 0}},function(e,n,t){"use strict";e.exports=t(124)},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M14 19h4V5h-4M6 19h4V5H6v14Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M8 5.14v14l11-7l-11-7Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M18 18H6V6h12v12Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="m10 17l-5-5l1.41-1.42L10 14.17l7.59-7.59L19 8m0-5H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/>'}},function(e,n,t){"use strict";var r,o,a,i,l=t(0),c=t.n(l),u=t(2),s=t.n(u),f=t(4),d=t(7),p=t(3),h=t(9),m=t(5),b=t(10),v=t.n(b),y=t(8);function g(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||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 w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function x(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var O=f.a.div(r||(r=x(["\n display: inline-block;\n"]))),k=f.a.button(o||(o=x(["\n align-items: center;\n background-color: ",";\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ",";\n font-size: ",";\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n"])),p.a.blue,p.a.fontFamily,p.a.fontSizeText,Object(d.a)(.1,p.a.blue)),C=f.a.div(a||(a=x(["\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ",";\n position: absolute;\n z-index: 10;\n box-shadow: ",';\n\n &:before {\n content: "";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ',";\n }\n"])),p.a.blue,p.a.lightShadow,p.a.blue),E=function(e){var n=e.title,t=e.disabled,r=void 0!==t&&t,o=e.isPro,a=void 0!==o&&o,i=e.style,l=void 0===i?{}:i,u=g(c.a.useState(!1),2),s=u[0],f=u[1],d=Object(y.e)((function(){f(!1)})),p=Object(y.a)(),h=p.ref,b=p.width,w=function(){f(!s)},x=c.a.Children.map(e.children,(function(e){return c.a.cloneElement(e,{isPro:a,disabled:e.props.disabled||r,onClick:function(){e.props.onClick&&e.props.onClick(),w()}})}));return c.a.createElement(O,{ref:d},c.a.createElement(k,{ref:h,type:"button",disabled:r,onClick:w,style:l},c.a.createElement("span",null,n),c.a.createElement(m.Icon,{icon:v.a,width:"24",height:"24",style:{marginLeft:"4px"}})),s&&c.a.createElement(C,{style:{transform:"translateX(calc(-50% + ".concat(b/2,"px))")}},x))},S=f.a.button(i||(i=x(["\n align-items: center;\n background-color: ",";\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ",";\n font-size: ",";\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ",";\n justify-content: space-between;\n }\n"])),p.a.blue,p.a.fontFamily,p.a.fontSizeText,Object(d.a)(.1,p.a.blue),p.a.proGray),j=function(e){var n=e.onClick,t=e.children,r=e.isPro,o=e.requirePro,a=void 0!==o&&o,i=e.disabled,l=a&&!r;return c.a.createElement(S,{type:"button",className:l?"is-pro":"",onClick:n,disabled:i||l},c.a.createElement("span",null,t),l&&!r&&c.a.createElement(h.a,null))},_=function(e){return c.a.createElement(E,e)},P=function(e){return c.a.createElement(j,e)};_.propTypes={title:s.a.string,disabled:s.a.bool,isPro:s.a.bool},_.defaultProps={title:void 0,disabled:!1,isPro:!1},P.propTypes={onClick:s.a.func.isRequired,requirePro:s.a.bool},P.defaultProps={onClick:function(){},requirePro:!1}},function(e,n,t){"use strict";t.d(n,"b",(function(){return y})),t.d(n,"a",(function(){return g}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=["full","minimal"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var h=u.a.div(r||(r=p(["\n display: flex;\n flex-wrap: wrap;\n"]))),m=u.a.div(o||(o=p(["\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n"]))),b=function(e){return i.a.createElement(h,null,e.children)},v=function(e){var n=e.full,t=e.minimal,r=d(e,s),o=n?"full":"";return o+=t?" minimal":"",i.a.createElement(m,f({className:o},r),e.children)},y=function(e){return i.a.createElement(b,e)},g=function(e){return i.a.createElement(v,e)};y.propTypes={},y.defaultProps={},g.propTypes={full:c.a.any},g.defaultProps={full:void 0}},function(e,n,t){"use strict";t.d(n,"b",(function(){return q})),t.d(n,"a",(function(){return $}));var r,o,a,i,l,c,u,s=t(0),f=t.n(s),d=t(2),p=t.n(d),h=t(4),m=t(3),b=t(9),v=t(8),y=t(16),g=t(5),w=t(114),x=t.n(w),O=t(115),k=t.n(O),C=t(10),E=t.n(C),S=t(18),j=t.n(S),_=t(6),P=["id","name","value","scrolldown","isPro","onChange","className","disabled","isBusy","chevronIconSize"];function A(){return(A=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function M(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return I(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(e,n)}(e,n)||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 I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function T(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function N(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var R=h.a.div(r||(r=N(["\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ",";\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n }\n"])),m.a.blue),z=h.a.div(o||(o=N(["\n align-items: center;\n background-color: ",";\n border: 2px solid ",";\n border-radius: 8px;\n display: flex;\n font-family: ",";\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n &.isBusy {\n padding-left: 5px;\n }\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n"])),m.a.white,m.a.blue,m.a.fontFamily),D=h.a.div(a||(a=N(["\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n"]))),L=h.a.div(i||(i=N(["\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n"]))),F=h.a.div(l||(l=N(["\n background-color: ",";\n overflow-y: auto;\n max-height: 300px;\n"])),m.a.white),B=function(e){var n,t=e.id,r=e.name,o=e.value,a=e.scrolldown,i=void 0!==a&&a,l=e.isPro,c=void 0!==l&&l,u=e.onChange,d=e.className,p=e.disabled,h=e.isBusy,m=void 0!==h&&h,w=e.chevronIconSize,x=void 0===w?24:w,O=T(e,P),k=null===(n=f.a.Children.toArray(e.children).find((function(e){return e.props.value===o||e.props.checked})))||void 0===n?void 0:n.props,C=(null==k?void 0:k.label)||"Select",S=(null==k?void 0:k.description)||e.description,I=(null==k?void 0:k.requirePro)||!1,N=null==k?void 0:k.icon,B=null==k?void 0:k.iconSize,U=M(Object(s.useState)(!1),2),H=U[0],V=U[1],q=i?Object(v.e)((function(){V(!1)})):null,$=I&&!c,W=function(n){if(n!==o){if(!u)return void console.log("The onChange handler it not set for this checkbox.",e);u(n,t)}i&&V(!1)},Z=f.a.Children.map(e.children,(function(e){return f.a.cloneElement(e,{name:e.props.name||r,checked:e.props.value===o||e.props.checked,onClick:W,scrolldown:i,isPro:c,disabled:p})}));return i?f.a.createElement(R,A({id:t,ref:q},O,{onClick:function(){return V(!H)},className:["nui-select",d,H?"show-options":""],childrenLength:Z.length,"data-is-disabled":p||m}),f.a.createElement(z,{className:"".concat(m?"isBusy":"")},m?f.a.createElement(f.a.Fragment,null,f.a.createElement(y.a,{type:"circle",size:"20px"})):f.a.createElement(f.a.Fragment,null,N&&f.a.createElement(_.a,{icon:N,width:B,height:B,style:{marginRight:"".concat(Math.max(B-15,4),"px")}}),f.a.createElement("span",{className:"nui-select-option-label"},C),f.a.createElement("div",{className:"rightContent"},$&&f.a.createElement(b.a,null),!p&&f.a.createElement(g.Icon,{icon:H?j.a:E.a,width:x})))),S&&f.a.createElement(D,null,S),H&&f.a.createElement(L,{className:"nui-option ".concat(H?"":"hidden")},f.a.createElement(F,null,[Z]))):Z},U=h.a.div(c||(c=N(["\n font-family: ",";\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n"])),m.a.fontFamily,m.a.disabledForm),H=h.a.div(u||(u=N(["\n background-color: ",";\n cursor: pointer;\n font-family: ",";\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ",";\n display: flex;\n justify-content: space-between;\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n"])),m.a.blue,m.a.fontFamily,m.a.white,m.a.fontFamily),V=function(e){var n=e.id,t=e.name,r=e.value,o=e.checked,a=e.icon,i=e.label,l=e.description,c=e.onClick,u=e.scrolldown,s=e.isPro,d=void 0!==s&&s,p=e.requirePro,h=void 0!==p&&p,v=e.disabled,y=e.iconSize,w=void 0===y?20:y,O=h&&!d,C=O||v?"disabled":"",E=f.a.createElement(U,{className:"nui-select ".concat(e.className||""," ").concat(C)},f.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,onClick:function(e){return c(e.target.value)},disabled:O||v}),f.a.createElement("label",{htmlFor:n},f.a.createElement(g.Icon,{icon:o?k.a:x.a,width:"24px",color:O?m.a.disabledForm:m.a.blue}),f.a.createElement("div",{className:"inner-container"},f.a.createElement("span",{className:"label"},i,f.a.createElement(b.a,{className:"inline",style:{top:-1},show:O})),l?f.a.createElement("small",{className:"description"},l):null))),S=f.a.createElement(H,{className:"nui-select ".concat(e.className||""," ").concat(C)},f.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,disabled:O||v}),f.a.createElement("div",{className:"option",onClick:function(){return c(r)}},f.a.createElement("div",{className:"option-group"},a&&f.a.createElement(_.a,{icon:a,width:w,height:w,style:{marginRight:"".concat(Math.max(w-11,4),"px")}}),i),f.a.createElement(b.a,{show:O})));return u?S:E},q=function(e){return f.a.createElement(B,e)};q.propTypes={id:p.a.string,name:p.a.string,description:p.a.string,scrolldown:p.a.bool,isPro:p.a.bool,onChange:p.a.func,isBusy:p.a.bool,chevronIconSize:p.a.number},q.propTypes={id:void 0,name:void 0,description:void 0,scrolldown:!1,isPro:!1,onChange:void 0,isBusy:!1,chevronIconSize:24};var $=function(e){return f.a.createElement(V,e)};$.propTypes={id:p.a.string,name:p.a.string,value:p.a.string,checked:p.a.bool,label:p.a.string,description:p.a.string,onClick:p.a.func,scrolldown:p.a.bool,isPro:p.a.bool,requirePro:p.a.bool,icon:p.a.string,iconSize:p.a.number},$.defaultProps={id:void 0,name:void 0,value:void 0,checked:!1,label:void 0,description:void 0,onClick:void 0,scrolldown:!1,isPro:!1,requirePro:!1,icon:void 0,iconSize:20}},function(e,n,t){"use strict";var r,o,a,i,l,c,u=t(0),s=t.n(u),f=t(2),d=t.n(f),p=t(4),h=t(3),m=t(5),b=t(19),v=t.n(b),y=t(36),g=t.n(y),w=t(37),x=t.n(w),O=t(13),k=t.n(O),C=t(10),E=t.n(C),S=t(116),j=t.n(S);function _(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return P(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return P(e,n)}(e,n)||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 P(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function A(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var M=function(e){var n=e.chevron,t=void 0===n||n;return s.a.Children.map(e.children,(function(e){return s.a.cloneElement(e,{chevron:t})}))},I=p.a.div(r||(r=A(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: ",";\n"])),h.a.fontFamily),T=p.a.div(o||(o=A(["\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n"]))),N=p.a.div(a||(a=A(["\n height: 24px;\n width: 24px;\n"]))),R=p.a.div(i||(i=A(["\n position: relative;\n width: 24px;\n height: 24px;\n"]))),z=p.a.div(l||(l=A(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n"]))),D=p.a.div(c||(c=A(["\n border-left: 1px solid ",";\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n"])),h.a.finderBorder),L=function(e){var n={gallery:x.a,tag:j.a},t=e.title,r=e.chevron,o=e.rightElement,a=void 0===o?null:o,i=e.rightElementStyle,l=void 0===i?{marginLeft:"5px"}:i,c=e.showRightElement,f=void 0!==c&&c,d=e.selected,p=void 0!==d&&d,b=e.draggable,y=void 0!==b&&b,w=e.onDragStart,O=e.onDragOver,C=e.onDragEnd,S=e.onDrop,P=e.isExpanded,A=void 0!==P&&P,M=e.dragging,L=void 0!==M&&M,F=e.rightAction,B=void 0===F?null:F,U=e.rightActionOnHover,H=void 0===U?null:U,V=e.onDragLeave,q=(e.preventClose,!!e.icon),$=!!e.children,W=_(Object(u.useState)(A),2),Z=W[0],G=W[1],Y=_(Object(u.useState)((function(){return"string"==typeof e.icon&&Object.keys(n).includes(e.icon)?n[e.icon]:e.icon?e.icon:v.a})),2),K=Y[0],X=Y[1],J=Boolean(K),Q=_(Object(u.useState)(!1),2),ee=Q[0],ne=Q[1];Object(u.useEffect)((function(){G(A),q||X(A?v.a:g.a)}),[A]);var te=s.a.Children.map(e.children,(function(e){return s.a.cloneElement(e,{chevron:r})})),re=L||p?h.a.purple:p?h.a.black:h.a.blue;return s.a.createElement("div",null,s.a.createElement(I,{onMouseEnter:function(){return ne(!0)},onMouseLeave:function(){return ne(!1)}},s.a.createElement(T,{onClick:function(){e.onClick&&e.onClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,draggable:y,onDragStart:w,onDragOver:O,onDrop:S,className:"".concat(J||te||e.onClick?"can-expand":""," ").concat(p?"selected":""),onDragLeave:V,onDragEnd:C},r?J&&$?s.a.createElement(m.Icon,{icon:Z?E.a:k.a,width:"24",height:"24",onClick:function(e){e.stopPropagation(),G(!Z)}}):s.a.createElement(N,null):null,s.a.createElement(R,null,s.a.createElement(z,null),s.a.createElement(m.Icon,{icon:K,color:re,width:"24",height:"24"})),s.a.createElement("span",null,t),f&&s.a.createElement("div",{style:l},a)),ee&&H||B),Z&&s.a.createElement(D,{className:"".concat(J?"":"no-line"," ").concat(r?"":"no-chevron")},te))},F=function(e){return s.a.createElement(M,e)};F.propTypes={chevron:d.a.bool},F.defaultProps={chevron:!0};var B=function(e){return s.a.createElement(L,e)};B.propTypes={icon:d.a.oneOfType([d.a.instanceOf(m.IconifyIcon),d.a.oneOf(["gallery"])]),title:d.a.string,isExpanded:d.a.bool},B.defaultProps={icon:v.a,title:void 0,isExpanded:!1}},function(e,n,t){"use strict";t.d(n,"b",(function(){return v})),t.d(n,"a",(function(){return y}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3),f=t(6);function d(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var p=u.a.div(r||(r=d(["\n display: flex;\n align-items: center;\n"]))),h=u.a.span(o||(o=d(["\n color: ",";\n cursor: pointer;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ",';\n font-weight: bold;\n }\n\n &::after {\n content: "|";\n color: ',";\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ",";\n font-weight: normal;\n margin-left: 4px;\n }\n"])),(function(e){return e.variant||s.a.blue}),s.a.fontFamily,s.a.black,s.a.darkGray,s.a.darkGray),m=function(e){var n=e.id,t=e.value,r=e.onChange,o=e.busy,a=void 0!==o&&o,l=e.className,c=i.a.Children.map(e.children,(function(e,o){return i.a.cloneElement(e,{busy:a,isActive:e.props.value===t,onClick:function(e){e!==t&&r(e,n)}})}));return i.a.createElement(p,{className:l},c)},b=function(e){var n=e.title,t=e.value,r=void 0===t?0:t,o=e.count,l=e.onClick,c=e.busy,u=e.isActive,d=e.className,p=e.variant,m=Object(a.useMemo)((function(){if(p)return Object.keys(s.a).includes(p)?s.a[p]:p}),[p]);return i.a.createElement(h,{onClick:function(){return l(r)},className:"".concat(u?"is-active":""," ").concat(d),variant:m},n,null===o?null:i.a.createElement("span",null,"(",c?i.a.createElement(f.a,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):o,")"))},v=function(e){return i.a.createElement(m,e)};v.propTypes={id:c.a.string,value:c.a.string,onChange:c.a.func},v.defaultProps={id:void 0,value:void 0,onChange:void 0};var y=function(e){return i.a.createElement(b,e)};y.propTypes={title:c.a.string,value:c.a.string,count:c.a.number,onClick:c.a.func,isActive:c.a.bool,variant:c.a.string},y.defaultProps={title:void 0,value:"default",count:0,onClick:void 0,isActive:!1,variant:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return l})),t.d(n,"b",(function(){return c}));var r,o,a=t(4);function i(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var l=a.a.p(r||(r=i(["\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]))),c=a.a.p(o||(o=i(["\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n"])))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.canUseDOM=n.SafeNodeList=n.SafeHTMLCollection=void 0;var r,o=t(137);var a=((r=o)&&r.__esModule?r:{default:r}).default,i=a.canUseDOM?window.HTMLElement:{};n.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{},n.SafeNodeList=a.canUseDOM?window.NodeList:{},n.canUseDOM=a.canUseDOM;n.default=i},function(e,n,t){"use strict";t.d(n,"a",(function(){return E})),t.d(n,"b",(function(){return C}));var r,o,a,i,l=t(0),c=t.n(l),u=t(2),s=t.n(u),f=t(4),d=t(3),p=t(9),h=t(6);function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,n)}(e,n)||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 b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=f.a.div(r||(r=v(["\n"]))),g=f.a.div(o||(o=v(["\n display: flex;\n"]))),w=f.a.button(a||(a=v(["\n font-family: ",";\n font-size: ",";\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n"])),d.a.fontFamily,d.a.fontSizeText,d.a.blue,d.a.white),x=f.a.div(i||(i=v(["\n background-color: ",";\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n"])),d.a.blue),O=function(e){var n=m(c.a.useState(0),2),t=n[0],r=n[1],o=e.children?e.children.length?e.children.filter((function(e){return!!e})):[e.children]:[];c.a.useEffect((function(){if(e.keepTabOnReload){var n=new URL(window.location.href).searchParams.get("nekoTab");if(!n)return r(0),void(e.callOnTabChangeFirst&&l(0,a[0]));var t=decodeURIComponent(n),i=c.a.Children.toArray(o).map((function(e){return e.props.title.replaceAll(" ","")})).indexOf(t);return-1===i?(r(0),void(e.callOnTabChangeFirst&&l(0,a[0]))):(r(i),void(e.callOnTabChangeFirst&&l(i,a[i])))}r(0),e.callOnTabChangeFirst&&l(0,a[0])}),[]);var a=c.a.Children.map(o,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),hidden:n.props.hidden||!1,icon:n.props.icon||!1}})),i=c.a.Children.map(o,(function(e,n){return c.a.cloneElement(e,{isActive:n===t})})),l=function(n,t,o){t.requirePro||(r(n),e.onChange&&e.onChange(n,t,o),e.keepTabOnReload&&function(e){if(history.pushState&&"string"==typeof e){var n=new URLSearchParams(window.location.search),t=encodeURIComponent(e.replaceAll(" ",""));n.set("nekoTab",t);var r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+n.toString();window.history.replaceState({path:r},"",r)}}(t.title))};return c.a.createElement(y,null,c.a.createElement(g,null,a.map((function(e,n){return c.a.createElement(w,{key:e.key,className:"neko-tab-title ".concat(n===t?"active":""," ").concat(e.requirePro?"disabled":""," ").concat(e.hidden?"hidden":""),onClick:function(t){l(n,e,t)}},e.icon&&c.a.createElement(h.a,{icon:e.icon,width:15,height:15,style:{marginRight:"2px"},raw:!0}),e.title,c.a.createElement(p.a,{className:"inline",style:{marginLeft:10,marginRight:-5,top:-1},show:e.requirePro}))}))),i)},k=function(e){var n=e.children,t=e.isActive;return c.a.createElement(x,{className:"".concat(t?"active":"")},!!t&&n)},C=function(e){return c.a.createElement(O,e)};C.propTypes={isPro:s.a.bool,onChange:s.a.func},C.defaultProps={isPro:!1,onChange:void 0};var E=function(e){return c.a.createElement(k,e)};E.propTypes={isActive:s.a.bool,requirePro:s.a.bool,title:s.a.string,icon:s.a.string},E.defaultProps={isActive:!1,requirePro:!1,title:void 0,icon:void 0}},function(e,n,t){"use strict";var r,o,a,i=t(0),l=t.n(i),c=t(2),u=t.n(c),s=t(4),f=t(3),d=t(9),p=t(5),h=t(10),m=t.n(h),b=t(13),v=t.n(b);function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,n)}(e,n)||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 g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=s.a.div(r||(r=w(["\n"]))),O=s.a.div(o||(o=w(["\n align-items: center;\n background-color: ",";\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(",", 0.25);\n cursor: default;\n }\n\n p {\n color: ",";\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ",";\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n"])),f.a.blue,f.a.yellowRGB,f.a.white,f.a.fontFamily,f.a.white),k=s.a.div(a||(a=w(["\n background-color: ",";\n display: none;\n\n &.active {\n display: block;\n }\n"])),f.a.white),C=function(e){var n=y(l.a.useState(e.activeTabIndex),2),t=n[0],r=n[1],o=l.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,rightActions:n.props.rightActions||null}})),a=l.a.Children.map(e.children,(function(e,n){return l.a.cloneElement(e,{isActive:n===t})}));return l.a.createElement(x,null,o.map((function(n,o){return l.a.createElement(l.a.Fragment,null,l.a.createElement(O,{key:n.key,className:"".concat(o===t?"active":""," ").concat(n.requirePro?"disabled":""),onClick:function(a){!function(n,o,a){if(!o.requirePro){var i=n===t?null:n;r(i),e.onChange&&e.onChange(i,o,a)}}(o,n,a)},onDragOver:n.onDragOver,onDrop:n.onDrop},l.a.createElement("p",null,l.a.createElement("span",{style:{fontSize:15}},n.title),l.a.createElement(d.a,{className:"inline",show:n.requirePro})),null===n.rightActions?l.a.createElement(p.Icon,{icon:o===t?m.a:v.a,className:"neko-side-tab-icon"}):o===t?l.a.createElement("div",{style:{marginLeft:"auto"}},n.rightActions):l.a.createElement(p.Icon,{icon:v.a,className:"neko-side-tab-icon"})),a[o])})))},E=function(e){var n=e.children,t=e.isActive;return l.a.createElement(k,{className:"".concat(t?"active":"")},n)},S=function(e){return l.a.createElement(C,e)};S.propTypes={isPro:u.a.bool,onChange:u.a.func,activeTabIndex:u.a.number},S.defaultProps={isPro:!1,onChange:void 0,activeTabIndex:null};var j=function(e){return l.a.createElement(E,e)};j.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,onDragOver:u.a.func,onDrop:u.a.func,rightActions:u.a.element},j.defaultProps={isActive:!1,requirePro:!1,title:void 0,onDragOver:void 0,onDrop:void 0,rightActions:void 0}},function(e,n,t){"use strict";var r=t(29),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(n,t,r){if("string"!=typeof t){if(h){var o=p(t);o&&o!==h&&e(n,o,r)}var i=s(t);f&&(i=i.concat(f(t)));for(var l=c(n),m=c(t),b=0;b<i.length;++b){var v=i[b];if(!(a[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=d(t,v);try{u(n,v,y)}catch(e){}}}}return n}},function(e,n,t){"use strict";function r(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var n=this,t=arguments;return new Promise((function(o,a){var i=e.apply(n,t);function l(e){r(i,o,a,l,c,"next",e)}function c(e){r(i,o,a,l,c,"throw",e)}l(void 0)}))}}function a(e){return(a="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})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,n){return(l=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function c(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=s(e);if(n){var o=s(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return u(this,t)}}function u(e,n){if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(n,"__esModule",{value:!0});var f=t(126),d=t(127),p=t(129),h=function(){},m=new d.TimeoutError,b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&l(e,n)}(y,e);var n,t,r,u,s,f,b,v=c(y);function y(e){var n,t,r,o,i;if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,y),(n=v.call(this))._intervalCount=0,n._intervalEnd=0,n._pendingCount=0,n._resolveEmpty=h,n._resolveIdle=h,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:p.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(r=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==r?r:"","` (").concat(a(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(i=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==i?i:"","` (").concat(a(e.interval),")"));return n._carryoverConcurrencyCount=e.carryoverConcurrencyCount,n._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,n._intervalCap=e.intervalCap,n._interval=e.interval,n._queue=new e.queueClass,n._queueClass=e.queueClass,n.concurrency=e.concurrency,n._timeout=e.timeout,n._throwOnTimeout=!0===e.throwOnTimeout,n._isPaused=!1===e.autoStart,n}return n=y,(t=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=h,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=h,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,n=Date.now();if(void 0===this._intervalId){var t=this._intervalEnd-n;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var n=this._queue.dequeue();return!!n&&(this.emit("active"),n(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(a(e),")"));this._concurrency=e,this._processQueue()}},{key:"add",value:(b=o(regeneratorRuntime.mark((function e(n){var t,r=this,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise((function(e,a){var i=function(){var i=o(regeneratorRuntime.mark((function o(){var i;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r._pendingCount++,r._intervalCount++,o.prev=2,i=void 0===r._timeout&&void 0===t.timeout?n():d.default(Promise.resolve(n()),void 0===t.timeout?r._timeout:t.timeout,(function(){(void 0===t.throwOnTimeout?r._throwOnTimeout:t.throwOnTimeout)&&a(m)})),o.t0=e,o.next=7,i;case 7:o.t1=o.sent,(0,o.t0)(o.t1),o.next=14;break;case 11:o.prev=11,o.t2=o.catch(2),a(o.t2);case 14:r._next();case 15:case"end":return o.stop()}}),o,null,[[2,11]])})));return function(){return i.apply(this,arguments)}}();r._queue.enqueue(i,t),r._tryToStartAnother(),r.emit("add")})));case 2:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)})},{key:"addAll",value:(f=o(regeneratorRuntime.mark((function e(n,t){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(n.map(function(){var e=o(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.add(n,t));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,n){return f.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(s=o(regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var t=n._resolveEmpty;n._resolveEmpty=function(){t(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"onIdle",value:(u=o(regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var t=n._resolveIdle;n._resolveIdle=function(){t(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}])&&i(n.prototype,t),r&&i(n,r),y}(f);n.default=b},function(e,n,t){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));n.a=o},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(11);function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||f(e,n)||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 f(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,n):void 0}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p,h,m=c.a.div(r||(p=["\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}})))),b=function(e){var n=e.className,t=e.children,r=e.nekoErrors,i=void 0===r?[]:r,l=e.style,c=void 0===l?{}:l,d=s(Object(o.useState)(!1),2),p=d[0],h=d[1],b=s(Object(o.useState)(!1),2),v=b[0],y=b[1];if(i&&!p){var g,w=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=f(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}(i);try{for(w.s();!(g=w.n()).done;){var x=g.value;if(x){h(x);break}}}catch(e){w.e(e)}finally{w.f()}}return a.a.createElement(m,{className:n||"",style:c},p&&a.a.createElement("div",{className:"neko-rest-error"},a.a.createElement("div",{className:"container"},!v&&a.a.createElement(a.a.Fragment,null,a.a.createElement("h3",null,"The Rest API is disabled or broken 😢"),a.a.createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),a.a.createElement("p",null,a.a.createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),a.a.createElement("p",{className:"neko-debug"},a.a.createElement("small",null,"URL: ",p.url,a.a.createElement("br",null),"CODE: ",p.code,a.a.createElement("br",null),"MESSAGE: ",p.message,a.a.createElement("br",null)))),p.body&&v&&a.a.createElement("p",{className:"neko-debug"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:p.body}})),p.body&&a.a.createElement(u.a,{color:"#a94242",onClick:function(){return y(!v)}},v?"Hide":"Display"," response from server"),a.a.createElement(u.a,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),t)},v=function(e){return a.a.createElement(b,e)};v.propTypes={className:l.a.string,style:l.a.object,nekoErrors:l.a.bool},v.defaultProps={className:void 0,style:{},nekoErrors:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return b}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(17),f=t(15);var d,p,h=c.a.div(r||(d=["\n font-size: ",";\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ",";\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ",";\n\n .nui-block-title {\n color: ",";\n }\n\n .nui-block-content {\n background-color: ",";\n }\n }\n"],p||(p=d.slice(0)),r=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(p)}}))),u.a.fontSizeText,u.a.blue,u.a.blue,u.a.white,u.a.white),m=function(e){var n=e.title,t=e.children,r=e.className,o=e.busy,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.action;return a.a.createElement(h,{className:"nui-block "+(r||""),style:c},a.a.createElement(f.a,{busy:i},a.a.createElement("div",{className:"nui-block-header"},a.a.createElement(s.a,{h2:!0,className:"nui-block-title"},n),!!u&&u),a.a.createElement("div",{className:"nui-block-content"},t)))},b=function(e){return a.a.createElement(m,e)};b.propTypes={title:l.a.string,className:l.a.oneOf(["","primary"]),style:l.a.object,action:l.a.element},b.defaultProps={title:void 0,className:"",style:{},action:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3);function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var d=u.a.div(r||(r=f(["\n font-size: ",";\n font-family: ",";\n background-color: ",";\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ",";\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n"])),s.a.fontSizeText,s.a.fontFamily,s.a.white,s.a.blue),p=u.a.div(o||(o=f(["\n justify-content: flex-start;\n background-color: ",";\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n"])),s.a.lightGray2),h=function(e){var n=e.children,t=e.header,r=e.headerAlign,o=void 0===r?"left":r,a=e.footer,l=e.footerAlign,c=void 0===l?"right":l,u=e.className,s=e.style,f=void 0===s?{}:s;return i.a.createElement(d,{className:u||"",style:f},t&&i.a.createElement(p,{className:"align-".concat(o)},t),i.a.createElement("div",{className:"content"},n),a&&i.a.createElement(p,{className:"align-".concat(c)},a))},m=function(e){return i.a.createElement(h,e)};m.propTypes={header:c.a.element,headerAlign:c.a.oneOf(["left","right"]),footer:c.a.element,footerAlign:c.a.oneOf(["left","right"]),className:c.a.string,style:c.a.object},m.defaultProps={header:void 0,headerAlign:"left",footer:void 0,footerAlign:"right",className:void 0,style:{}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return p}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3);var s,f,d=Object(c.a)((function(e){var n=e.title,t=void 0===n?"":n,r=e.contentAlign,o=void 0===r?"left":r;return a.a.createElement("div",{className:e.className||""},t?a.a.createElement("div",{className:"nui-settings-head"},t):null,a.a.createElement("div",{className:"nui-settings-content nui-settings-content-align-".concat(o)},e.children))}))(r||(s=["\n display: flex;\n font-family: ",";\n\n > .nui-settings-head {\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n"],f||(f=s.slice(0)),r=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(f)}}))),u.a.fontFamily,u.a.fontFamily),p=function(e){return a.a.createElement(d,e)};p.propTypes={title:l.a.string,className:l.a.string,contentAlign:l.a.string},p.defaultProps={title:"",className:void 0,contentAlign:"left"}},function(e,n,t){"use strict";var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3);function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var d=u.a.div(r||(r=f(["\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n"]))),p=Object(u.a)((function(e){return e.children?i.a.createElement("div",{className:e.className},e.children):null}))(o||(o=f(["\n background-color: ",";\n color: white;\n"])),s.a.blue),h=function(e){return i.a.createElement(d,{className:"window"},i.a.createElement(p,null,e.title),e.children)},m=function(e){return i.a.createElement(h,e)};m.propTypes={title:c.a.string},m.defaultProps={title:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return w}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(9),f=t(16),d=t(5),p=t(22),h=t.n(p),m=t(38),b=t.n(m);var v,y,g=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.checked,o=void 0!==r&&r,i=e.onChange,l=e.label,c=e.description,p=e.isPro,m=e.disabled,v=e.requirePro,y=void 0!==v&&v,g=e.isBusy,w=void 0!==g&&g,x=y&&!p,O=m||x,k=O?"disabled":"",C=function(){i?i(!o,n):console.log("The onChange handler it not set for this checkbox.",e)};return a.a.createElement("div",{className:["nui-checkbox",e.className,k].join(" "),onClick:function(e){return e.stopPropagation()}},a.a.createElement("input",{id:n,name:t,type:"checkbox",defaultChecked:!1,onChange:function(){return C()},disabled:O||w}),a.a.createElement("label",{htmlFor:n},a.a.createElement("div",{className:"nui-checkbox-check-container"},w?a.a.createElement("div",{className:"nui-checkbox-busy-container"},a.a.createElement(d.Icon,{icon:h.a,width:"30px",height:"30px",color:u.a.blue}),a.a.createElement(f.a,{type:"circle",size:"16px",style:{position:"absolute",top:"7px",left:"7px"}})):a.a.createElement(d.Icon,{icon:o?b.a:h.a,width:"30px",height:"30px",color:O?u.a.disabledForm:u.a.blue})),a.a.createElement("div",{className:"nui-checkbox-inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(s.a,{className:"inline",show:x})),c?a.a.createElement("small",{className:"description"},c):null)))}))(r||(v=["\n font-family: ",";\n user-select: none;\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .nui-checkbox-check-container {\n display: flex;\n align-content: center;\n flex-basis: 30px;\n\n .nui-checkbox-busy-container {\n position: relative\n }\n }\n .nui-checkbox-inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n"],y||(y=v.slice(0)),r=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(y)}}))),u.a.fontFamily,u.a.disabledForm),w=function(e){return a.a.createElement(g,e)};w.propTypes={id:l.a.string,name:l.a.string,checked:l.a.bool,label:l.a.string,description:l.a.string,isPro:l.a.bool,requirePro:l.a.bool,isBusy:l.a.bool},w.defaultProps={id:void 0,name:void 0,checked:!1,label:void 0,description:void 0,isPro:!1,requirePro:!1,isBusy:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4);var u,s,f=Object(c.a)((function(e){var n=e.name,t=(e.max,e.isPro),r=void 0!==t&&t;return a.a.Children.map(e.children,(function(e){return e.props.name?e:a.a.cloneElement(e,{name:n,isPro:r})}))}))(r||(u=["\n"],s||(s=u.slice(0)),r=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(s)}})))),d=function(e){return a.a.createElement(f,e)};d.propTypes={name:l.a.string,mas:l.a.number,isPro:l.a.bool},d.defaultProps={name:void 0,mas:-1,isPro:!1}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["id","name","value","description","placeholder","avoidOnEnterWithShift","onEnter","readOnly","maxLength","className","style","textAreaStyle","countable"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e,n)||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 p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var m,b,v=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.value,i=void 0===r?"":r,l=e.description,c=e.placeholder,u=void 0===c?"":c,p=e.avoidOnEnterWithShift,m=void 0!==p&&p,b=e.onEnter,v=void 0===b?null:b,y=e.readOnly,g=void 0!==y&&y,w=e.maxLength,x=void 0===w?null:w,O=e.className,k=e.style,C=e.textAreaStyle,E=void 0===C?{}:C,S=e.countable,j=void 0!==S&&S,_=h(e,s),P=d(Object(o.useState)(i),2),A=P[0],M=P[1],I=d(Object(o.useState)(0),2),T=I[0],N=I[1],R=d(Object(o.useState)(!1),2),z=R[0],D=R[1],L=!!e.onChange,F=Object(o.useCallback)((function(e){D(e.shiftKey)}),[]),B=Object(o.useCallback)((function(){D(!1)}),[]);Object(o.useEffect)((function(){return document.addEventListener("keydown",F,!1),document.addEventListener("keyup",B,!1),function(){document.removeEventListener("keydown",F,!1),document.removeEventListener("keyup",B,!1)}}),[]),Object(o.useEffect)((function(){L||M(i),j&&N(i.length)}),[i,j]);var U=Object(o.useCallback)((function(t){var r=x?t.target.value.substr(0,x):t.target.value;L?e.onChange(r,n):M(r,n)}),[x,e.onChange]);return a.a.createElement("div",{className:[O].join(" "),style:k},a.a.createElement("div",{className:"neko-textarea-container"},a.a.createElement("textarea",f({className:"neko-textarea",rows:6},_,{id:n,name:t,spellCheck:"false",placeholder:u,onChange:U,onKeyPress:function(t){if(v&&!t.shiftKey&&"Enter"===t.key){if(m&&z)return;t.preventDefault(),e.onEnter(t.target.value,n)}},onBlur:function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},readOnly:g,style:E,value:L?i:A})),j&&a.a.createElement("p",{className:"neko-textarea-count"},T," / ",x," characters")),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(r||(m=["\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n .neko-textarea-count {\n color: rgba(",", 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"],b||(b=m.slice(0)),r=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(b)}}))),u.a.fontFamily,u.a.fontSizeText,u.a.blue,u.a.gray,u.a.blackRGB,u.a.fontFamily,u.a.fontSizeSmall),y=function(e){return a.a.createElement(v,e)};y.propTypes={id:l.a.string,name:l.a.string,value:l.a.string,description:l.a.string,placeholder:l.a.string,onChange:l.a.func,onEnter:l.a.func,onBlur:l.a.func,readOnly:l.a.bool,avoidOnEnterWithShift:l.a.bool},y.defaultProps={id:void 0,name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,avoidOnEnterWithShift:!1}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(4);t(3);var l,c,u=i.a.div(r||(l=["\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n"],c||(c=l.slice(0)),r=Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(c)}})))),s=function(e){return a.a.createElement(u,null,e.children||null)},f=function(e){return a.a.createElement(s,e)};f.propTypes={},f.defaultProps={}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["width","height","fontSize","onValue","offValue","checked","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onChange","disabled"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p,h,m=Object(c.a)((function(e){e.width,e.height,e.fontSize;var n=e.onValue,t=e.offValue,r=e.checked,i=void 0!==r&&r,l=(e.onBackgroundColor,e.offBackgroundColor,e.onLabel,e.offLabel,e.onChange),c=e.disabled,u=d(e,s),p=Object(o.useCallback)((function(e){l(e.target.checked?n:t)}),[l,n,t]);return a.a.createElement("label",f({},u,{"data-is-disabled":c?"disabled":""}),a.a.createElement("input",{type:"checkbox",onChange:p,checked:i,disabled:c}),a.a.createElement("span",{className:"nui-switch-slider"}))}))(r||(p=["\n color: ",";\n font-family: ",";\n font-size: ",";\n position: relative;\n display: inline-block;\n width: ",";\n height: ",";\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ",";\n border-radius: ",';\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: "";\n height: ',";\n width: ",';\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: "','";\n margin-left: auto;\n margin-right: ',";\n }\n\n input:checked + .nui-switch-slider {\n background-color: ",";\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(",');\n }\n\n input:checked + .nui-switch-slider:after {\n content: "','";\n margin-left: ',";\n margin-right: auto;\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))),u.a.white,u.a.fontFamily,(function(e){return e.fontSize}),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.offBackgroundColor}),(function(e){return e.height}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return e.offLabel}),(function(e){return"calc(".concat(e.height," / 2)")}),(function(e){return e.onBackgroundColor}),(function(e){return"calc(".concat(e.width," - ").concat(e.height,")")}),(function(e){return e.onLabel}),(function(e){return"calc(".concat(e.height," / 2)")})),b=function(e){return a.a.createElement(m,e)};b.propTypes={width:l.a.string,height:l.a.string,fontSize:l.a.string,onValue:l.a.string,offValue:l.a.string,checked:l.a.bool,onBackgroundColor:l.a.string,offBackgroundColor:l.a.string,onLabel:l.a.string,offLabel:l.a.string},b.defaultProps={width:"100%",height:"20px",fontSize:"12px",checked:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(7),f=t(5),d=t(33),p=t.n(d),h=t(35),m=t.n(h),b=t(34),v=t.n(b),y=t(3);function g(e){return(g="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})(e)}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=Object(u.a)((function(e){var n=e.value,t=void 0===n?0:n,r=e.max,o=void 0===r?100:r,a=e.busy,l=void 0!==a&&a,c=e.status;t=Math.min(t,o);var u=parseFloat(t)/parseFloat(o);return i.a.createElement("div",{className:e.className},i.a.createElement(O,{ratio:u,busy:e.busy,status:c}),i.a.createElement("div",{className:"nui-progress-buttons"},l&&e.onPauseClick&&i.a.createElement("div",{className:"nui-progress-button pause",onClick:e.onPauseClick},e.paused?i.a.createElement(f.InlineIcon,{icon:v.a}):i.a.createElement(f.InlineIcon,{icon:p.a})),l&&e.onStopClick&&i.a.createElement("div",{className:"nui-progress-button stop",onClick:e.onStopClick},i.a.createElement(f.InlineIcon,{icon:m.a}))))}))(r||(r=w(["\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.stop {\n background: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n }\n }\n"])),y.a.blue,Object(s.a)(.1,y.a.blue),y.a.red,Object(s.a)(.1,y.a.red)),O=Object(u.a)((function(e){var n,t,r,o=isNaN(e.ratio)?0:parseInt(Math.round(100*e.ratio)),a=g(e.status),l="undefined"!==a?"string"===a?e.status:e.status(o):"".concat(o,"%");return i.a.createElement("div",{className:e.className,style:(n={minWidth:28},t="minWidth",r=o+"%",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n)},i.a.createElement("div",null,l))}))(o||(o=w(["\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ",";\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ",";\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ",";\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n"])),y.a.progress,y.a.fontFamily,(function(e){return e.busy?"animate-stripes 1.6s linear infinite":"none"})),k=function(e){return i.a.createElement(x,e)};k.propTypes={value:c.a.number,max:c.a.number,busy:c.a.bool,paused:c.a.bool,onPauseClick:c.a.func,onStopClick:c.a.func,status:c.a.oneOf([c.a.string,c.a.func])},k.defaultProps={value:0,max:100,busy:!1,paused:!1,onPauseClick:void 0,onStopClick:void 0,status:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(24),s=t(6),f=t(3),d=t(117),p=t.n(d);var h,m,b=c.a.div(r||(h=["\n position: relative;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ",";\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(",", 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ",";\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ",";\n line-height: normal;\n font-size: ",";\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n"],m||(m=h.slice(0)),r=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(m)}}))),f.a.fontFamily,f.a.fontSizeText,f.a.header,f.a.blackRGB,f.a.fontFamily,f.a.fontFamily,f.a.fontSizeText),v=function(e){var n=e.title,t=void 0===n?"NekoUI":n,r=e.subtitle,o=void 0===r?"By Jordy Meow":r,i=e.children,l=e.saving,c=void 0!==l&&l;return a.a.createElement(b,null,a.a.createElement("div",{className:"nui-header-logo-container"},a.a.createElement(u.a,null)),a.a.createElement("div",{className:"nui-header-title-container"},a.a.createElement("h1",{className:"nui-header-title"},t),a.a.createElement("small",{className:"nui-header-subtitle"},a.a.createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},o))),a.a.createElement("div",{className:"nui-header-extra-content"},i),c&&a.a.createElement(s.a,{icon:p.a,width:"36",height:"36"}))},y=function(e){return a.a.createElement(v,e)};y.propTypes={title:l.a.string,subtitle:l.a.string,saving:l.a.bool},y.defaultProps={title:"NekoUI",subtitle:"By Jordy Meow",saving:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return f}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i);var c,u,s=t(4).a.section(r||(c=["\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ","px;\n height: ","px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ","px;\n height: ",'px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: "";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ',";\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ","px;\n height: ",'px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ',"px;\n height: ","px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ","px;\n height: ","px;\n \n .semi-circle--mask {\n transform: rotate(","deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ","px;\n height: ","px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n"],u||(u=c.slice(0)),r=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(u)}}))),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.backgroundColor}),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.width+2}),(function(e){return e.width/2+2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.degrees}),(function(e){return e.width+2}),(function(e){return e.width/2})),f=function(e){var n=e.value,t=void 0===n?1e3:n,r=(e.min,e.max),o=void 0===r?2500:r,i=e.width,l=void 0===i?200:i,c=e.background,u=void 0===c?"#007cba":c,f=e.children,d=180*(t<=o?t:o)/o;return a.a.createElement(s,{backgroundColor:u,degrees:d,width:l},a.a.createElement("div",{class:"gauge"},a.a.createElement("div",{class:"mask"},a.a.createElement("div",{class:"semi-circle"}),a.a.createElement("div",{class:"semi-circle--mask"})),a.a.createElement("div",{class:"child-container"},a.a.createElement("div",{class:"child"},a.a.createElement("div",{class:"spacing"}),f))))};f.propTypes={value:l.a.number,min:l.a.number,max:l.a.number,width:l.a.number,background:l.a.string},f.defaultProps={value:1e3,min:0,max:2500,width:200,background:"#007cba"}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(1),s=["multiple","width","height","iconSize","iconColor","onSuccess","onFailure","style","apiUrl","apiConfig","onClick","disabled"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){h(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function h(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(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 b(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){b(a,r,o,i,l,"next",e)}function l(e){b(a,r,o,i,l,"throw",e)}i(void 0)}))}}function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||g(e,n)||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 g(e,n){if(e){if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,n):void 0}}function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function x(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var O,k,C=c.a.div(r||(O=["\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n"],k||(k=O.slice(0)),r=Object.freeze(Object.defineProperties(O,{raw:{value:Object.freeze(k)}})))),E=function(e){var n=e.multiple,t=e.width,r=void 0===t?"100%":t,i=e.height,l=void 0===i?"100%":i,c=e.iconSize,d=void 0===c?48:c,h=e.iconColor,b=void 0===h?"#A9A9A9":h,g=e.onSuccess,w=void 0===g?function(){}:g,O=e.onFailure,k=void 0===O?function(){}:O,E=e.style,S=void 0===E?{}:E,j=e.apiUrl,_=e.apiConfig,P=e.onClick,A=e.disabled,M=x(e,s),I=y(Object(o.useState)(!1),2),T=I[0],N=I[1],R=y(Object(o.useState)(Math.floor(1e8*Math.random())),2),z=R[0],D=(R[1],Object(o.useRef)(null)),L=Object(o.useRef)(null),F=y(Object(o.useState)(!1),2),B=F[0],U=F[1];Object(o.useEffect)((function(){L&&(L.current.style.pointerEvents=B?"none":"auto")}),[L,B]);var H=function(){var e=v(regeneratorRuntime.mark((function e(t){var r,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return U(!0),r=function(){var e=v(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _.file=n,e.next=3,Object(u.G)(j,_);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(t.map(function(){var e=v(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:o=e.sent,a=o.filter((function(e){return e.success})),i=o.filter((function(e){return!e.success})),a.length&&w(n?a:a[0]),i.length&&k(n?i:i[0]),U(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),V=function(e){e.preventDefault(),e.stopPropagation()},q=function(e){e.preventDefault(),e.stopPropagation(),N(!0)},$=function(e,n){n.preventDefault(),n.stopPropagation(),N(!1),console.log(e),H(e)};return a.a.createElement("div",{ref:L},a.a.createElement("input",{type:"file",id:z,accept:"image/*",ref:D,onChange:function(e){var n=m(e.target.files);$(n,e)},style:{display:"none"},disabled:A,multiple:n}),a.a.createElement(C,f({onClick:function(){P?P():D.current.click()},style:p(p({},S),{},{width:r,height:l}),className:T?"dropping":"",onDragOver:V,onDragEnter:q,onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),N(!1)},onDrop:function(e){var n=m(e.dataTransfer.files);$(n,e)},"data-is-disabled":A},M),a.a.createElement(u.j,{width:d,height:d,icon:"upload",spinning:B,color:b,onDragOver:V,onDragEnter:q})))};E.propTypes={width:l.a.string,height:l.a.string,onSuccess:l.a.func,onFailure:l.a.func,style:l.a.object,apiUrl:l.a.string,apiConfig:l.a.object},E.defaultProps={width:"100%",height:"100%",onSuccess:function(){},onFailure:function(){},style:{}}},function(e,n,t){"use strict";var r,o,a,i,l,c=t(0),u=t(2),s=t.n(u),f=t(4),d=t(3),p=["month","year","onEventClicked","onEventMoved","eventBuilder","events"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,n)}(e,n)||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 v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function g(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var w={Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6,Sunday:7},x=f.a.div(r||(r=g(["\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n font-family: ",";\n font-size: 12px;\n"])),d.a.fontFamily),O=f.a.div(o||(o=g(["\n display: flex;\n width: 100%;\n padding: 10px 0px;\n color: white;\n background: ",";\n border-radius: 5px 5px 0px 0px;\n\n div {\n width: calc(100% / 7);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])),d.a.primary),k=f.a.div(a||(a=g(["\n display: flex;\n flex-direction: column;\n"]))),C=f.a.div(i||(i=g(["\n display: flex;\n"]))),E=f.a.div(l||(l=g(["\n background: purple;\n width: calc(100% / 7);\n background: ",";;\n padding: 3px;\n border-bottom: 1px solid ",";\n border-right: 1px solid ",";\n position: relative;\n transition: background-color 150ms linear;\n box-sizing: border-box;\n\n &:first-child {\n border-left: 1px solid ",";\n }\n\n &:last-child {\n border-right: 1px solid ",";\n }\n\n .day {\n text-align: right;\n color: ",";\n margin-bottom: 5px;\n }\n\n &.highlighted {\n background: #ffe8bc;\n }\n\n &.today .day {\n font-weight: bold;\n text-decoration: underline;\n }\n\n .gray-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ",";\n opacity: 0.8;\n }\n\n .event {\n margin-bottom: 2px;\n }\n\n .event:last-child {\n margin-bottom: 0px;\n }\n"])),d.a.white,d.a.lightGray,d.a.lightGray,d.a.lightGray,d.a.lightGray,d.a.black,d.a.lightGray);var S=function(e){var n=e.month,t=void 0===n?(new Date).getMonth():n,r=e.year,o=void 0===r?(new Date).getFullYear():r,a=e.onEventClicked,i=void 0===a?function(){console.log("[NekoCalendar] onEventClicked not handled.")}:a,l=e.onEventMoved,u=void 0===l?function(){console.log("[NekoCalendar] onEventMoved not handled.")}:l,s=e.eventBuilder,f=void 0===s?function(){return"YOOO"}:s,d=e.events,v=y(e,p),g=b(Object(c.useState)(),2),S=g[0],j=g[1],_=b(Object(c.useState)(),2),P=_[0],A=_[1],M=e.disableDaysBefore,I=void 0===M?null:M;I=I||new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate());var T=Object(c.useMemo)((function(){for(var e=[],n=function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.Monday,r=new Date(n,e);r.getDay()!==t;)r.setDate(r.getDate()-1);return r}(t,o,w.Monday),r=function(e,n){for(var t=new Date(e),r=new Date(n),o=0;t<=r;)o++,t.setDate(t.getDate()+1);return o-1}(n,new Date(o,t,1))<5?34:41,a=new Date(n).setDate(n.getDate()+r);n<=a;)e.push(new Date(n)),n.setDate(n.getDate()+1);return function(e,n){for(var t=[],r=0;r<e.length;)t.push(e.slice(r,r+=n));return t}(e,7)}),[t,o]);return React.createElement(x,v,React.createElement(O,null,Object.keys(w).map((function(e){return React.createElement("div",{key:e},e)}))),React.createElement(k,null,T.map((function(e){return React.createElement(C,{key:e},e.map((function(e){var n,r,o=e.getMonth()==t,a=!o||e<I,l=(a?"disabled ":"")+(n=e,r=new Date,n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()?"today":"")+(e===P?"highlighted":""),c=d.filter((function(n){return o&&n.date.getDate()===e.getDate()}));return React.createElement(E,{className:l,key:e.getTime(),onDragOver:function(n){return!a&&(t=e,r=S.date,t.getFullYear()!==r.getFullYear()||t.getMonth()!==r.getMonth()||t.getDate()!==r.getDate())&&(n.preventDefault(),A(e),!0);var t,r},onDragLeave:function(){return A(null)},onDrop:function(){u(e,S),A(null)}},React.createElement("div",{className:"day"},e.getDate()),c.map((function(e){return React.createElement("div",{className:"event",key:e.key,draggable:e.draggable,onClick:function(){return i(e)},onDragStart:function(n){return j(e)}},f(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){m(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e)))})),a&&React.createElement("div",{className:"gray-overlay"}))})))}))))};S.propTypes={month:s.a.number,year:s.a.number,disableDaysBefore:s.a.instanceOf(Date),disableDaysAfter:s.a.instanceOf(Date),eventBuilder:s.a.func,events:s.a.array,onEventClicked:s.a.func,onEventMoved:s.a.func},S.defaultProps={month:(new Date).getMonth(),year:(new Date).getFullYear(),disableDaysBefore:null,disableDaysAfter:null,eventBuilder:function(){return"UI for this event"},events:[{key:"A1",date:new Date},{key:"A2",date:new Date}],onEventClicked:function(e){console.log("An event was clicked",e)},onEventMoved:function(e,n){console.log("An event was moved to another day",n,e)}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(n){return[].slice.call(n.querySelectorAll("*"),0).reduce((function(n,t){return n.concat(t.shadowRoot?e(t.shadowRoot):[t])}),[]).filter(i)};
2
  /*!
3
  * Adapted from jQuery UI core
4
  *
1
+ (window.wpJsonMfrh=window.wpJsonMfrh||[]).push([[1],[,,function(e,n,t){e.exports=t(121)()},function(e,n,t){"use strict";function r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var i={black:"#000000",blackRGB:"0, 0, 0",blue:"#007cba",blueRGB:"0, 124, 186",deepBlue:"#134575",finderBorder:"#DEDEDE",lightBlue:"#EBF3FF",lightGray:"#cacaca",lightGray2:"#F5F5F5",lightPurple:"#D8B1FF",gray:"#E8E8E8",green:"#0EA480",darkGray:"#A0A0A0",disabledForm:"#828282",orange:"#daa827",overlay:"rgba(16, 16, 16, 0.92)",red:"#ba4300",redHighlight:"#de5307",header:"#007cba",proGray:"#7F8EA0",progress:"#8414a8",purple:"#956DBE",tableGray:"#FAFAFA",yellow:"#e4b42b",yellowRGB:"224, 156, 54",white:"#ffffff",whiteRGB:"255, 255, 255"},l={danger:i.red,primary:i.blue,secondary:i.lightBlue,success:i.green},c=o(o(o({},i),l),{},{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',fontSizeH1:"24px",fontSizeH2:"18px",fontSizeText:"13px",fontSizeSmall:"12px",fontSizeSmallButton:"10px",lightShadow:"0px 0px 10px rgba(0,0,0,0.1)"});n.a=c},function(e,n,t){"use strict";(function(e){var r=t(29),o=t(0),a=t.n(o),i=t(72),l=t.n(i),c=t(73),u=t(74),s=t(50),f=t(48),d=t.n(f);function p(){return(p=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var h=function(e,n){for(var t=[e[0]],r=0,o=n.length;r<o;r+=1)t.push(n[r],e[r+1]);return t},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},b=Object.freeze([]),v=Object.freeze({});function y(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var x=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",O="undefined"!=typeof window&&"HTMLElement"in window,k=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY));function C(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(t.length>0?" Args: "+t.join(", "):""))}var E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var n=e.prototype;return n.indexOfGroup=function(e){for(var n=0,t=0;t<e;t++)n+=this.groupSizes[t];return n},n.insertRules=function(e,n){if(e>=this.groupSizes.length){for(var t=this.groupSizes,r=t.length,o=r;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),l=0,c=n.length;l<c;l++)this.tag.insertRule(i,n[l])&&(this.groupSizes[e]++,i++)},n.clearGroup=function(e){if(e<this.length){var n=this.groupSizes[e],t=this.indexOfGroup(e),r=t+n;this.groupSizes[e]=0;for(var o=t;o<r;o++)this.tag.deleteRule(t)}},n.getGroup=function(e){var n="";if(e>=this.length||0===this.groupSizes[e])return n;for(var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t,a=r;a<o;a++)n+=this.tag.getRule(a)+"/*!sc*/\n";return n},e}(),S=new Map,j=new Map,_=1,P=function(e){if(S.has(e))return S.get(e);for(;j.has(_);)_++;var n=_++;return S.set(e,n),j.set(n,e),n},A=function(e){return j.get(e)},M=function(e,n){n>=_&&(_=n+1),S.set(e,n),j.set(n,e)},I="style["+x+'][data-styled-version="5.3.1"]',T=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,n,t){for(var r,o=t.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(n,r)},R=function(e,n){for(var t=(n.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,a=t.length;o<a;o++){var i=t[o].trim();if(i){var l=i.match(T);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(M(u,c),N(e,u,l[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},z=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},D=function(e){var n=document.head,t=e||n,r=document.createElement("style"),o=function(e){for(var n=e.childNodes,t=n.length;t>=0;t--){var r=n[t];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(t),a=void 0!==o?o.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.3.1");var i=z();return i&&r.setAttribute("nonce",i),t.insertBefore(r,a),r},L=function(){function e(e){var n=this.element=D(e);n.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var n=document.styleSheets,t=0,r=n.length;t<r;t++){var o=n[t];if(o.ownerNode===e)return o}C(17)}(n),this.length=0}var n=e.prototype;return n.insertRule=function(e,n){try{return this.sheet.insertRule(n,e),this.length++,!0}catch(e){return!1}},n.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.getRule=function(e){var n=this.sheet.cssRules[e];return void 0!==n&&"string"==typeof n.cssText?n.cssText:""},e}(),F=function(){function e(e){var n=this.element=D(e);this.nodes=n.childNodes,this.length=0}var n=e.prototype;return n.insertRule=function(e,n){if(e<=this.length&&e>=0){var t=document.createTextNode(n),r=this.nodes[e];return this.element.insertBefore(t,r||null),this.length++,!0}return!1},n.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var n=e.prototype;return n.insertRule=function(e,n){return e<=this.length&&(this.rules.splice(e,0,n),this.length++,!0)},n.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=O,H={isServer:!O,useCSSOMInjection:!k},V=function(){function e(e,n,t){void 0===e&&(e=v),void 0===n&&(n={}),this.options=p({},H,{},e),this.gs=n,this.names=new Map(t),this.server=!!e.isServer,!this.server&&O&&U&&(U=!1,function(e){for(var n=document.querySelectorAll(I),t=0,r=n.length;t<r;t++){var o=n[t];o&&"active"!==o.getAttribute(x)&&(R(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return P(e)};var n=e.prototype;return n.reconstructWithOptions=function(n,t){return void 0===t&&(t=!0),new e(p({},this.options,{},n),this.gs,t&&this.names||void 0)},n.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.getTag=function(){return this.tag||(this.tag=(t=(n=this.options).isServer,r=n.useCSSOMInjection,o=n.target,e=t?new B(o):r?new L(o):new F(o),new E(e)));var e,n,t,r,o},n.hasNameForId=function(e,n){return this.names.has(e)&&this.names.get(e).has(n)},n.registerName=function(e,n){if(P(e),this.names.has(e))this.names.get(e).add(n);else{var t=new Set;t.add(n),this.names.set(e,t)}},n.insertRules=function(e,n,t){this.registerName(e,n),this.getTag().insertRules(P(e),t)},n.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},n.clearTag=function(){this.tag=void 0},n.toString=function(){return function(e){for(var n=e.getTag(),t=n.length,r="",o=0;o<t;o++){var a=A(o);if(void 0!==a){var i=e.names.get(a),l=n.getGroup(o);if(i&&l&&i.size){var c=x+".g"+o+'[id="'+a+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),q=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function W(e){var n,t="";for(n=Math.abs(e);n>52;n=n/52|0)t=$(n%52)+t;return($(n%52)+t).replace(q,"$1-$2")}var Z=function(e,n){for(var t=n.length;t;)e=33*e^n.charCodeAt(--t);return e},G=function(e){return Z(5381,e)};function Y(e){for(var n=0;n<e.length;n+=1){var t=e[n];if(y(t)&&!w(t))return!1}return!0}var K=G("5.3.1"),X=function(){function e(e,n,t){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===t||t.isStatic)&&Y(e),this.componentId=n,this.baseHash=Z(K,n),this.baseStyle=t,V.registerId(n)}return e.prototype.generateAndInjectStyles=function(e,n,t){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,n,t)),this.isStatic&&!t.hash)if(this.staticRulesId&&n.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var a=me(this.rules,e,n,t).join(""),i=W(Z(this.baseHash,a)>>>0);if(!n.hasNameForId(r,i)){var l=t(a,"."+i,void 0,r);n.insertRules(r,i,l)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=Z(this.baseHash,t.hash),s="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)s+=d;else if(d){var p=me(d,e,n,t),h=Array.isArray(p)?p.join(""):p;u=Z(u,h+f),s+=h}}if(s){var m=W(u>>>0);if(!n.hasNameForId(r,m)){var b=t(s,"."+m,void 0,r);n.insertRules(r,m,b)}o.push(m)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,Q=[":","[",".","#"];function ee(e){var n,t,r,o,a=void 0===e?v:e,i=a.options,l=void 0===i?v:i,u=a.plugins,s=void 0===u?b:u,f=new c.a(l),d=[],p=function(e){function n(n){if(n)try{e(n+"}")}catch(e){}}return function(t,r,o,a,i,l,c,u,s,f){switch(t){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(n)}}}((function(e){d.push(e)})),h=function(e,r,a){return 0===r&&-1!==Q.indexOf(a[t.length])||a.match(o)?e:"."+n};function m(e,a,i,l){void 0===l&&(l="&");var c=e.replace(J,""),u=a&&i?i+" "+a+" { "+c+" }":c;return n=l,t=a,r=new RegExp("\\"+t+"\\b","g"),o=new RegExp("(\\"+t+"\\b){2,}"),f(i||!a?"":a,u)}return f.use([].concat(s,[function(e,n,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var n=d;return d=[],n}}])),m.hash=s.length?s.reduce((function(e,n){return n.name||C(15),Z(e,n.name)}),5381).toString():"",m}var ne=a.a.createContext(),te=(ne.Consumer,a.a.createContext()),re=(te.Consumer,new V),oe=ee();function ae(){return Object(o.useContext)(ne)||re}function ie(){return Object(o.useContext)(te)||oe}function le(e){var n=Object(o.useState)(e.stylisPlugins),t=n[0],r=n[1],i=ae(),c=Object(o.useMemo)((function(){var n=i;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n}),[e.disableCSSOMInjection,e.sheet,e.target]),u=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:t})}),[e.disableVendorPrefixes,t]);return Object(o.useEffect)((function(){l()(t,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a.a.createElement(ne.Provider,{value:c},a.a.createElement(te.Provider,{value:u},e.children))}var ce=function(){function e(e,n){var t=this;this.inject=function(e,n){void 0===n&&(n=oe);var r=t.name+n.hash;e.hasNameForId(t.id,r)||e.insertRules(t.id,r,n(t.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(t.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,se=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function pe(e){return ue.test(e)?e.replace(se,de).replace(fe,"-ms-"):e}var he=function(e){return null==e||!1===e||""===e};function me(e,n,t,r){if(Array.isArray(e)){for(var o,a=[],i=0,l=e.length;i<l;i+=1)""!==(o=me(e[i],n,t,r))&&(Array.isArray(o)?a.push.apply(a,o):a.push(o));return a}return he(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!n?e:me(e(n),n,t,r):e instanceof ce?t?(e.inject(t,r),e.getName(r)):e:m(e)?function e(n,t){var r,o,a=[];for(var i in n)n.hasOwnProperty(i)&&!he(n[i])&&(Array.isArray(n[i])&&n[i].isCss||y(n[i])?a.push(pe(i)+":",n[i],";"):m(n[i])?a.push.apply(a,e(n[i],i)):a.push(pe(i)+": "+(r=i,(null==(o=n[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in u.a?String(o).trim():o+"px")+";")));return t?[t+" {"].concat(a,["}"]):a}(e):e.toString();var c}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ve(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return y(e)||m(e)?be(me(h(b,[e].concat(t)))):0===t.length&&1===e.length&&"string"==typeof e[0]?e:be(me(h(e,t)))}new Set;var ye=function(e,n,t){return void 0===t&&(t=v),e.theme!==t.theme&&e.theme||n||t.theme},ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function xe(e){return e.replace(ge,"-").replace(we,"")}var Oe=function(e){return W(G(e)>>>0)};function ke(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Se(e,n,t){var r=e[t];Ce(n)&&Ce(r)?je(r,n):e[t]=n}function je(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];for(var o=0,a=t;o<a.length;o++){var i=a[o];if(Ce(i))for(var l in i)Ee(l)&&Se(e,i[l],l)}return e}var _e=a.a.createContext();_e.Consumer;var Pe={};function Ae(e,n,t){var r=w(e),i=!ke(e),l=n.attrs,c=void 0===l?b:l,u=n.componentId,f=void 0===u?function(e,n){var t="string"!=typeof e?"sc":xe(e);Pe[t]=(Pe[t]||0)+1;var r=t+"-"+Oe("5.3.1"+t+Pe[t]);return n?n+"-"+r:r}(n.displayName,n.parentComponentId):u,h=n.displayName,m=void 0===h?function(e){return ke(e)?"styled."+e:"Styled("+g(e)+")"}(e):h,x=n.displayName&&n.componentId?xe(n.displayName)+"-"+n.componentId:n.componentId||f,O=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,k=n.shouldForwardProp;r&&e.shouldForwardProp&&(k=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var C,E=new X(t,x,r?e.componentStyle:void 0),S=E.isStatic&&0===c.length,j=function(e,n){return function(e,n,t,r){var a=e.attrs,i=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,f=e.styledComponentId,d=e.target,h=function(e,n,t){void 0===e&&(e=v);var r=p({},n,{theme:e}),o={};return t.forEach((function(e){var n,t,a,i=e;for(n in y(i)&&(i=i(r)),i)r[n]=o[n]="className"===n?(t=o[n],a=i[n],t&&a?t+" "+a:t||a):i[n]})),[r,o]}(ye(n,Object(o.useContext)(_e),l)||v,n,a),m=h[0],b=h[1],g=function(e,n,t,r){var o=ae(),a=ie();return n?e.generateAndInjectStyles(v,o,a):e.generateAndInjectStyles(t,o,a)}(i,r,m),w=t,x=b.$as||n.$as||b.as||n.as||d,O=ke(x),k=b!==n?p({},n,{},b):n,C={};for(var E in k)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?C.as=k[E]:(u?u(E,s.a,x):!O||Object(s.a)(E))&&(C[E]=k[E]));return n.style&&b.style!==n.style&&(C.style=p({},n.style,{},b.style)),C.className=Array.prototype.concat(c,f,g!==f?g:null,n.className,b.className).filter(Boolean).join(" "),C.ref=w,Object(o.createElement)(x,C)}(C,e,n,S)};return j.displayName=m,(C=a.a.forwardRef(j)).attrs=O,C.componentStyle=E,C.displayName=m,C.shouldForwardProp=k,C.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):b,C.styledComponentId=x,C.target=r?e.target:e,C.withComponent=function(e){var r=n.componentId,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(n,["componentId"]),a=r&&r+"-"+(ke(e)?e:xe(g(e)));return Ae(e,p({},o,{attrs:O,componentId:a}),t)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(n){this._foldedDefaultProps=r?je({},e.defaultProps,n):n}}),C.toString=function(){return"."+C.styledComponentId},i&&d()(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var Me=function(e){return function e(n,t,o){if(void 0===o&&(o=v),!Object(r.isValidElementType)(t))return C(1,String(t));var a=function(){return n(t,o,ve.apply(void 0,arguments))};return a.withConfig=function(r){return e(n,t,p({},o,{},r))},a.attrs=function(r){return e(n,t,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},a}(Ae,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Me[e]=Me(e)}));!function(){function e(e,n){this.rules=e,this.componentId=n,this.isStatic=Y(e),V.registerId(this.componentId+1)}var n=e.prototype;n.createStyles=function(e,n,t,r){var o=r(me(this.rules,n,t,r).join(""),""),a=this.componentId+e;t.insertRules(a,a,o)},n.removeStyles=function(e,n){n.clearRules(this.componentId+e)},n.renderStyles=function(e,n,t,r){e>2&&V.registerId(this.componentId+e),this.removeStyles(e,t),this.createStyles(e,n,t,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var n=e.instance.toString();if(!n)return"";var t=z();return"<style "+[t&&'nonce="'+t+'"',x+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+n+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return C(2);var t=((n={})[x]="",n["data-styled-version"]="5.3.1",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),r=z();return r&&(t.nonce=r),[a.a.createElement("style",p({},t,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}var n=e.prototype;n.collectStyles=function(e){return this.sealed?C(2):a.a.createElement(le,{sheet:this.instance},e)},n.interleaveWithNodeStream=function(e){return C(3)}}();n.a=Me}).call(this,t(123))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.InlineIcon=n.Icon=void 0;var r,o=(r=t(0))&&r.__esModule?r:{default:r};function a(e){return(a="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})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=0,c=/(-?[0-9.]*[0-9]+[0-9.]*)/g,u=/^-?[0-9.]*[0-9]+[0-9.]*$/g,s=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],f={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var d=function(){function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=n}var n,t,r;return n=e,r=[{key:"splitAttributes",value:function(e){var n={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(t){n[-1===s.indexOf(t)?"node":"icon"][t]=e[t]})),n}},{key:"calculateDimension",value:function(e,n,t){if(1===n)return e;if(t=void 0===t?100:t,"number"==typeof e)return Math.ceil(e*n*t)/t;var r=e.split(c);if(null===r||!r.length)return null;for(var o,a=[],i=r.shift(),l=u.test(i);;){if(l?(o=parseFloat(i),isNaN(o)?a.push(i):a.push(Math.ceil(o*n*t)/t)):a.push(i),void 0===(i=r.shift()))return a.join("");l=!l}}},{key:"replaceIDs",value:function(e){var n,t,r=/\sid="(\S+)"/g,o=[];function a(e,n,t){for(var r=0;-1!==(r=t.indexOf(e,r));)t=t.slice(0,r)+n+t.slice(r+e.length),r+=n.length;return t}for(;n=r.exec(e);)o.push(n[1]);return o.length?(t="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(n){var r=t+l;l++,e=a('="'+n+'"','="'+r+'"',e),e=a('="#'+n+'"','="#'+r+'"',e),e=a("(#"+n+")","(#"+r+")",e)})),e):e}}],(t=[{key:"getAttributes",value:function(n){var t=this._item;"object"!==a(n)&&(n=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:t.rotate,hFlip:t.hFlip,vFlip:t.vFlip},i=Object.create(null),l=Object.create(null),c=!0===n.inline||"true"===n.inline||"1"===n.inline,u={left:t.left,top:c?t.inlineTop:t.top,width:t.width,height:c?t.inlineHeight:t.height};if(["hFlip","vFlip"].forEach((function(e){void 0===n[e]||!0!==n[e]&&"true"!==n[e]&&"1"!==n[e]||(o[e]=!o[e])})),void 0!==n.flip&&n.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==n.rotate){var s=n.rotate;if("number"==typeof s)o.rotate+=s;else if("string"==typeof s){var f=s.replace(/^-?[0-9.]*/,"");if(""===f)s=parseInt(s),isNaN(s)||(o.rotate+=s);else if(f!==s){var d=!1;switch(f){case"%":d=25;break;case"deg":d=90}d&&(s=parseInt(s.slice(0,s.length-f.length)),isNaN(s)||(o.rotate+=Math.round(s/d)))}}}var p,h=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(h.push("translate("+(u.width+u.left)+" "+(0-u.top)+")"),h.push("scale(-1 1)"),u.top=u.left=0):o.vFlip&&(h.push("translate("+(0-u.left)+" "+(u.height+u.top)+")"),h.push("scale(1 -1)"),u.top=u.left=0),o.rotate%4){case 1:p=u.height/2+u.top,h.unshift("rotate(90 "+p+" "+p+")"),0===u.left&&0===u.top||(p=u.left,u.left=u.top,u.top=p),u.width!==u.height&&(p=u.width,u.width=u.height,u.height=p);break;case 2:h.unshift("rotate(180 "+(u.width/2+u.left)+" "+(u.height/2+u.top)+")");break;case 3:p=u.width/2+u.left,h.unshift("rotate(-90 "+p+" "+p+")"),0===u.left&&0===u.top||(p=u.left,u.left=u.top,u.top=p),u.width!==u.height&&(p=u.width,u.width=u.height,u.height=p)}var m,b,v=n.width?n.width:null,y=n.height?n.height:null;null===v&&null===y&&(y="1em"),null!==v&&null!==y?(m=v,b=y):null!==v?(m=v,b=e.calculateDimension(m,u.height/u.width)):(b=y,m=e.calculateDimension(b,u.width/u.height)),!1!==m&&(l.width="auto"===m?u.width:m),!1!==b&&(l.height="auto"===b?u.height:b),c&&0!==t.verticalAlign&&(i["vertical-align"]=t.verticalAlign+"em"),void 0!==n.align&&n.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),l.preserveAspectRatio=function(e){var n;switch(e.horizontal){case"left":n="xMin";break;case"right":n="xMax";break;default:n="xMid"}switch(e.vertical){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}(r),l.viewBox=u.left+" "+u.top+" "+u.width+" "+u.height;var g=e.replaceIDs(t.body);return void 0!==n.color&&(g=g.replace(/currentColor/g,n.color)),h.length&&(g='<g transform="'+h.join(" ")+'">'+g+"</g>"),!0!==n.box&&"true"!==n.box&&"1"!==n.box||(g+='<rect x="'+u.left+'" y="'+u.top+'" width="'+u.width+'" height="'+u.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:l,body:g,style:i}}},{key:"getSVG",value:function(n,t){var r=e.splitAttributes(n),o=this.getAttributes(r.icon),a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return t&&Object.keys(r.node).forEach((function(e){a+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){a+=" "+e+'="'+o.attributes[e]+'"'})),a+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){a+=" "+e+": "+o.style[e]+";"})),n&&void 0!==n.style&&(a+=n.style),a+='">',a+=o.body+"</svg>"}}])&&i(n.prototype,t),r&&i(n,r),e}();function p(e,n){if("object"!==a(e.icon))return null;var t=d.splitAttributes(e),r=t.icon,i=t.node;delete i.icon,void 0===r.inline&&(r.inline=n);var l=new d(function(e){var n,t=Object.create(null);for(n in f)t[n]=f[n];for(n in e)t[n]=e[n];return void 0===t.inlineTop&&(t.inlineTop=t.top),void 0===t.inlineHeight&&(t.inlineHeight=t.height),void 0===t.verticalAlign&&(t.verticalAlign=t.height%7==0&&t.height%8!=0?-.143:-.125),t}(e.icon)).getAttributes(r),c={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(c.verticalAlign=l.style["vertical-align"]),void 0!==e.style)for(var u in e.style)c[u]=e.style[u];var s,p={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:c};for(s in i)p[s]=i[s];for(s in l.attributes)p[s]=l.attributes[s];return p.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",p,null)}var h=function(e){return p(e,!1)};n.Icon=h;n.InlineIcon=function(e){return p(e,!0)};var m=h;n.default=m},function(e,n,t){"use strict";t.d(n,"a",(function(){return bn}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(8),f=t(5),d=t(75),p=t.n(d),h=t(76),m=t.n(h),b=t(77),v=t.n(b),y=t(30),g=t.n(y),w=t(31),x=t.n(w),O=t(32),k=t.n(O),C=t(13),E=t.n(C),S=t(10),j=t.n(S),_=t(18),P=t.n(_),A=t(33),M=t.n(A),I=t(34),T=t.n(I),N=t(78),R=t.n(N),z=t(79),D=t.n(z),L=t(35),F=t.n(L),B=t(80),U=t.n(B),H=t(81),V=t.n(H),q=t(82),$=t.n(q),W=t(83),Z=t.n(W),G=(t(125),t(84)),Y=t.n(G),K=t(85),X=t.n(K),J=t(86),Q=t.n(J),ee=t(87),ne=t.n(ee),te=t(88),re=t.n(te),oe=t(89),ae=t.n(oe),ie=t(90),le=t.n(ie),ce=t(91),ue=t.n(ce),se=t(19),fe=t.n(se),de=t(36),pe=t.n(de),he=t(37),me=t.n(he),be=t(92),ve=t.n(be),ye=t(93),ge=t.n(ye),we=t(94),xe=t.n(we),Oe=t(95),ke=t.n(Oe),Ce=t(96),Ee=t.n(Ce),Se=t(97),je=t.n(Se),_e=t(98),Pe=t.n(_e),Ae=t(99),Me=t.n(Ae),Ie=t(100),Te=t.n(Ie),Ne=t(101),Re=t.n(Ne),ze=t(102),De=t.n(ze),Le=t(103),Fe=t.n(Le),Be=t(104),Ue=t.n(Be),He=t(105),Ve=t.n(He),qe=t(106),$e=t.n(qe),We=t(107),Ze=t.n(We),Ge=t(108),Ye=t.n(Ge),Ke=t(109),Xe=t.n(Ke),Je=t(110),Qe=t.n(Je),en=t(111),nn=t.n(en),tn=t(112),rn=t.n(tn),on=t(113),an=t.n(on),ln={lock:p.a,"lock-open":m.a,"file-undo":v.a,"chevron-double-left":g.a,"chevron-double-right":x.a,"chevron-left":k.a,"chevron-right":E.a,"chevron-down":j.a,"chevron-up":P.a,pause:M.a,play:T.a,replay:R.a,check:D.a,stop:F.a,delete:U.a,undo:V.a,alert:$.a,database:Z.a,tools:Y.a,cog:X.a,close:Q.a,cat:ne.a,upload:De.a,trash:re.a,pencil:ae.a,dashboard:le.a,search:ue.a,folder:fe.a,"folder-open":pe.a,"image-multiple-outline":me.a,plus:ve.a,"folder-plus":ge.a,"image-plus":xe.a,"view-grid":ke.a,"format-list-bulleted":Ee.a,twitter:je.a,instagram:Pe.a,facebook:Me.a,star:Te.a,"timer-outline":Re.a,link:Fe.a,linkedin:Ue.a,pinterest:Ve.a,"zoom-in":$e.a,"info-outline":Ze.a,"arrow-up":Ye.a,"arrow-down":Xe.a,sort:Qe.a,eye:nn.a,"rocket-launch":rn.a,"calendar-month":an.a},cn=t(20),un=["icon","spinning","className","title","tooltip","containerStyle","color","hoverColor","disabled","raw","isBusy"];function sn(){return(sn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function fn(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function dn(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var pn=u.a.div(r||(r=dn(["\n display: flex;\n align-items: center;\n"]))),hn=Object(u.a)(f.Icon)(o||(o=dn(["\n\n path {\n fill: ",";\n }\n\n ","\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.busy {\n animation: crescendo 0.4s alternate infinite;\n @keyframes crescendo {\n 0% {transform: scale(.65);}\n 100% {transform: scale(1);}\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n"])),(function(e){return e.color}),(function(e){return n=e.color,(t=e.hoverColor)?"\n &:hover {\n path {\n fill: ".concat(t,";\n }\n }\n "):n?"\n &:hover {\n path {\n fill: ".concat(Object(s.a)(.1,n),";\n }\n }\n "):void 0;var n,t})),mn=function(e){var n=e.icon,t=e.spinning,r=void 0!==t&&t,o=e.className,a=void 0===o?"":o,l=e.title,c=e.tooltip,u=e.containerStyle,s=e.color,f=e.hoverColor,d=e.disabled,p=void 0!==d&&d,h=e.raw,m=e.isBusy,b=void 0!==m&&m,v=fn(e,un);v.width||v.height||(v.width=v.height=30);var y=function(){return"string"==typeof n?ln[n]||null:n},g="nui-icon ".concat(a).concat(v.onClick?" nui-clickable":"").concat(r?" spin":"").concat(p?" disabled":"").concat(b?" busy":"");return c?i.a.createElement(cn.a,{text:c.text,position:c.position||"top"},i.a.createElement(pn,{style:u},i.a.createElement(hn,sn({icon:y(),className:g,color:s,hoverColor:f},v)))):h?i.a.createElement(hn,sn({icon:y(),className:g,color:s,hoverColor:f},v)):i.a.createElement(pn,{style:u,title:l},i.a.createElement(hn,sn({icon:y(),className:g,color:s,hoverColor:f},v)),c?i.a.createElement(cn.a,null,c):null)},bn=function(e){return i.a.createElement(mn,e)};bn.propTypes={icon:c.a.oneOfType([c.a.instanceOf(f.IconifyIcon),c.a.oneOf(["lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","stop","delete","undo","alert","database","pencil","tools","cog","close","cat","upload"])]),color:c.a.string,spinning:c.a.bool,className:c.a.string,tooltip:c.a.string,raw:c.a.bool,isBusy:c.a.bool},bn.defaultProps={icon:void 0,color:void 0,spinning:!1,className:"",tooltip:void 0,raw:void 0,isBusy:!1}},function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"e",(function(){return h})),t.d(n,"c",(function(){return b})),t.d(n,"d",(function(){return y})),t.d(n,"a",(function(){return p}));var r=t(0),o=t(49),a=t.n(o);function i(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function l(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){l(a,r,o,i,c,"next",e)}function c(e){l(a,r,o,i,c,"throw",e)}i(void 0)}))}}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||s(e,n)||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 s(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Object(r.useState)(n),a=u(o,2),i=a[0],l=a[1],c=Object(r.useState)(null),s=u(c,2),f=s[0],d=s[1],p=Object(r.useState)(t),h=u(p,2),m=h[0],b=h[1],v=Object(r.useState)(0),y=u(v,2),g=y[0],w=y[1];return Object(r.useEffect)((function(){void 0!==e&&(e.success?(d(null),l(e.data),w(e.total?e.total:0)):d(e.error)),b(void 0===e)}),[e]),{busy:m,data:i,total:g,error:f}},p=function(){var e=Object(r.useRef)(),n=u(Object(r.useState)({}),2),t=n[0],o=n[1];return Object(r.useEffect)((function(){if(e&&e.current){var n=new ResizeObserver((function(e){var n=e[0];n.contentRect&&o({width:n.contentRect.left+n.contentRect.right,height:n.contentRect.top+n.contentRect.bottom})}));return n.observe(e.current),function(){n.unobserve(e.current)}}}),[]),{ref:e,width:t.width?t.width:0,height:t.height?t.height:0}},h=function(e){var n=Object(r.useRef)(),t=function(t){e&&!n.current.contains(t.target)&&e()};return Object(r.useEffect)((function(){return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}})),n},m=null,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!m){var n=e.concurrency,t=void 0===n?2:n;m=new a.a({concurrency:t,autoStart:!0})}var r=function(){var e=c(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.add(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return{runTask:r}},v=new a.a({concurrency:1,autoStart:!1}),y=function(){var e=u(Object(r.useState)(new AbortController),2),n=e[0],t=e[1],o=Object(r.useRef)(!1),a=Object(r.useRef)(0),l=Object(r.useRef)(null),s=u(Object(r.useState)(null),2),f=s[0],d=s[1],p=u(Object(r.useState)(!1),2),h=p[0],m=p[1],b=u(Object(r.useState)(0),2),y=b[0],g=b[1],w=u(Object(r.useState)(!1),2),x=w[0],O=w[1],k=u(Object(r.useState)(!1),2),C=k[0],E=k[1],S=u(Object(r.useState)(0),2),j=S[0],_=S[1],P=function(){var e=c(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new AbortController,t(n),O(!1),a.current=0,o.current=!1,m(!1),E(!1),_(0),g(0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=c(regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){O(!1),a.current=0,o.current=!1,m(!1),E(!1),L(n),d(!0),console.log("[useNekoTasks] Start."),v.start(),v.onIdle().then((function(){R(),e()}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),M=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("[useNekoTasks] Pause."),v.pause(),m(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("[useNekoTasks] Resume."),O(!1),m(!1),v.start();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("[useNekoTasks] Retrying."),O(!1),m(!1),!l.current){e.next=6;break}return e.next=6,z(l.current,!0);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("[useNekoTasks] Cancel."),v.pause(),n.abort(),d(!1),O(!1),E(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("[useNekoTasks] onIdle."),E(!0),d(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=c(regeneratorRuntime.mark((function e(t){var r,i,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>1&&void 0!==c[1]&&c[1],e.prev=1,r&&(a.current--,_((function(e){return e-1}))),l.current=t,e.next=6,t(n.signal);case 6:(i=e.sent)&&i.success||console.error("[useNekoTasks] The function for that task did not return anything.",i),i.success?r&&v.start():(a.current++,o.current||(O(i.error),M())),e.next=20;break;case 11:if(e.prev=11,e.t0=e.catch(1),"AbortError"!==e.t0.name){e.next=18;break}return console.log("[useNekoTasks] Aborted"),e.abrupt("return");case 18:a.current++,o.current||(O("[useNekoTasks] An error was caught (more information in the console)."),M());case 20:return e.prev=20,_((function(e){return e+1})),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[1,11,20,23]])})));return function(n){return e.apply(this,arguments)}}(),D=function(){var e=c(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.add(c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",z(n));case 1:case"end":return e.stop()}}),e)})))),g((function(e){return e+1}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(){var e=c(regeneratorRuntime.mark((function e(n){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.clear(),t=i(n);try{for(t.s();!(r=t.n()).done;)o=r.value,D(o)}catch(e){t.e(e)}finally{t.f()}_(0);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),F=Object(r.useCallback)((function(){o.current=!0}),[]),B=Object(r.useCallback)((function(){return a.current}),[]);return{start:A,stop:N,pause:M,resume:I,reset:P,retry:T,addTask:D,setAlwaysSkip:F,getErrorCount:B,error:x,success:C,busy:f,paused:h,value:j,max:y}}},function(e,n,t){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function o(e,n){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(){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 l(e,n,t){return(l=i()?Reflect.construct.bind():function(e,n,t){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return t&&o(a,t.prototype),a}).apply(null,arguments)}function c(e){var n="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return l(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}function u(e){return(u="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})(e)}t.d(n,"a",(function(){return L}));var s=function(e){var n,t;function r(n){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this)}return t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,o(n,t),r}(c(Error));function f(e){return Math.round(255*e)}function d(e,n,t){return f(e)+","+f(n)+","+f(t)}function p(e,n,t,r){if(void 0===r&&(r=d),0===n)return r(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*n,i=a*(1-Math.abs(o%2-1)),l=0,c=0,u=0;o>=0&&o<1?(l=a,c=i):o>=1&&o<2?(l=i,c=a):o>=2&&o<3?(c=a,u=i):o>=3&&o<4?(c=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var s=t-a/2;return r(l+s,c+s,u+s)}var h={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 m=/^#[a-fA-F0-9]{6}$/,b=/^#[a-fA-F0-9]{8}$/,v=/^#[a-fA-F0-9]{3}$/,y=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,x=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,O=/^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 s(3);var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return h[n]?"#"+h[n]:e}(e);if(n.match(m))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(b)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(v))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(y)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var o=g.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=w.exec(n.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=x.exec(n);if(i){var l="rgb("+p(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",c=g.exec(l);if(!c)throw new s(4,n,l);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=O.exec(n.substring(0,50));if(u){var f="rgb("+p(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=g.exec(f);if(!d)throw new s(4,n,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])}}throw new s(5)}function C(e){return function(e){var n,t=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(t,r,o),i=Math.min(t,r,o),l=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var c=a-i,u=l>.5?c/(2-a-i):c/(a+i);switch(a){case t:n=(r-o)/c+(r<o?6:0);break;case r:n=(o-t)/c+2;break;default:n=(t-r)/c+4}return n*=60,void 0!==e.alpha?{hue:n,saturation:u,lightness:l,alpha:e.alpha}:{hue:n,saturation:u,lightness:l}}(k(e))}var E=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 S(e){var n=e.toString(16);return 1===n.length?"0"+n:n}function j(e){return S(Math.round(255*e))}function _(e,n,t){return E("#"+j(e)+j(n)+j(t))}function P(e,n,t){return p(e,n,t,_)}function A(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return P(e,n,t);if("object"===u(e)&&void 0===n&&void 0===t)return P(e.hue,e.saturation,e.lightness);throw new s(1)}function M(e,n,t,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?P(e,n,t):"rgba("+p(e,n,t)+","+r+")";if("object"===u(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?P(e.hue,e.saturation,e.lightness):"rgba("+p(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new s(2)}function I(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return E("#"+S(e)+S(n)+S(t));if("object"===u(e)&&void 0===n&&void 0===t)return E("#"+S(e.red)+S(e.green)+S(e.blue));throw new s(6)}function T(e,n,t,r){if("string"==typeof e&&"number"==typeof n){var o=k(e);return"rgba("+o.red+","+o.green+","+o.blue+","+n+")"}if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?I(e,n,t):"rgba("+e+","+n+","+t+","+r+")";if("object"===u(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?I(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new s(7)}function N(e){if("object"!==u(e))throw new s(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return T(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 I(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof 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||void 0===e.alpha)}(e))return A(e);throw new s(8)}function R(e){return function e(n,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?n.apply(this,o):e(n,t,o)}}(e,e.length,[])}function z(e,n,t){return Math.max(e,Math.min(n,t))}function D(e,n){if("transparent"===n)return n;var t=C(n);return N(r({},t,{lightness:z(0,1,t.lightness+parseFloat(e))}))}var L=R(D)},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["show","className"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p,h,m=c.a.a(r||(p=["\n background-color: ",";\n position: relative;\n border-radius: 10px;\n color: ",";\n font-family: ",";\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ",";\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))),u.a.yellow,u.a.white,u.a.fontFamily,u.a.white),b=function(e){var n=e.show,t=void 0===n||n,r=e.className,o=d(e,s);return t?a.a.createElement(m,f({href:"https://store.meowapps.com",target:"_blank",className:"".concat(r||"")},o),"Pro Only"):null},v=function(e){return a.a.createElement(b,e)};v.propTypes={show:l.a.bool,className:l.a.string},v.defaultProps={show:!0,className:void 0}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"/>'}},function(e,n,t){"use strict";t.d(n,"a",(function(){return x}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(8),s=t(3),f=t(5),d=t(16),p=t(6),h=["className","icon","onClick","disabled","color","small","isBusy","width","height","children","rounded","busyText","spinning","hideBusyIcon"];function m(){return(m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function b(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var v,y,g=Object(c.a)((function(e){var n=e.className,t=e.icon,r=void 0===t?null:t,i=e.onClick,l=e.disabled,c=void 0!==l&&l,u=e.color,s=void 0===u?null:u,f=e.small,v=e.isBusy,y=void 0!==v&&v,g=e.width,w=(e.height,e.children),x=e.rounded,O=e.busyText,k=e.spinning,C=void 0!==k&&k,E=e.hideBusyIcon,S=void 0!==E&&E,j=b(e,h),_=!!r,P=Object(o.useMemo)((function(){var e=null!=g?g:30;return x?e-10:e-6}),[g,x]),A="nui-button ".concat(n||"").concat(_?" has-icon":"").concat(s?" custom-color":"").concat(f?" small":"").concat(x?" rounded":"").concat(y?" busy":"");return a.a.createElement("button",m({type:"button",className:A,onClick:i,disabled:c},j),y&&!S&&!_&&a.a.createElement(d.a,{type:"circle",color:"#fff",size:x?"82%":"35%"}),y&&!!O&&a.a.createElement("span",{style:{marginLeft:S?0:"4px",marginRight:"2xp"}},O),_&&a.a.createElement(p.a,{icon:r,width:P,height:P,spinning:C,raw:!0,style:x?{margin:"0 auto"}:{}}),!!w&&!y&&a.a.createElement("span",{style:{marginLeft:_?"4px":0,marginRight:_?"2xp":0}},w))}))(r||(v=["\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ",";\n font-size: ",";\n padding: 0 15px;\n\n background-color: ",";\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n &.danger {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.success {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ",";\n height: 24px;\n }\n\n &.header {\n background-color: ",";\n border-color: ",";\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: ","px;\n width: ","px;\n padding: 3px;\n }\n\n &.busy {\n pointer-events: none;\n }\n\n ","\n"],y||(y=v.slice(0)),r=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(y)}}))),s.a.fontFamily,s.a.fontSizeText,s.a.blue,Object(u.a)(.1,s.a.blue),s.a.lightBlue,s.a.blue,s.a.blue,Object(u.a)(.1,s.a.lightBlue),s.a.red,s.a.red,Object(u.a)(.1,s.a.red),s.a.green,s.a.green,Object(u.a)(.1,s.a.green),s.a.fontSizeSmallButton,s.a.deepBlue,s.a.deepBlue,Object(u.a)(.1,s.a.deepBlue),(function(e){var n,t;return null!==(n=e.height)&&void 0!==n?n:null!==(t=e.width)&&void 0!==t?t:30}),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:30}),(function(e){return w(e.color)})),w=function(e){if(e)return"\n &.custom-color {\n background-color: ".concat(e,";\n border: 1px solid ").concat(e,";\n\n &:hover {\n background-color: ").concat(Object(u.a)(.1,e),";\n }\n }\n ")},x=function(e){return a.a.createElement(g,e)};x.propTypes={className:l.a.oneOf(["primary","secondary","danger","success","header"]),disabled:l.a.bool,icon:l.a.oneOfType([l.a.instanceOf(f.IconifyIcon),l.a.oneOf(["setting","edit","trash"])]),color:l.a.string,onClick:l.a.func.isRequired,rounded:l.a.bool,isBusy:l.a.bool,spinning:l.a.bool,busyText:l.a.string,hideBusyIcon:l.a.bool},x.defaultProps={className:"primary",disabled:!1,icon:null,color:null,onClick:function(){},rounded:void 0,isBusy:!1,spinning:!1,busyText:void 0,hideBusyIcon:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return $})),t.d(n,"b",(function(){return W}));var r=t(0),o=Object.prototype.hasOwnProperty;function a(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,l)}c((r=r.apply(e,n||[])).next())}))}function i(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var l={}[0],c=function(e){return e===l},u=function(e){return"function"==typeof e},s=function(){},f=function(e,n){return Object.assign({},e,n)},d=!0,p="undefined"!=typeof window,h="undefined"!=typeof document,m=p&&window.addEventListener?window.addEventListener:s,b=h?document.addEventListener:s,v={isOnline:function(){return d},isVisible:function(){var e=h&&document.visibilityState;return!!c(e)||"hidden"!==e}},y={initFocus:function(e){b("visibilitychange",e),m("focus",e)},initReconnect:function(e){m("online",(function(){d=!0,e()})),m("offline",(function(){d=!1}))}},g="undefined"==typeof window||"Deno"in window,w=g?null:window.requestAnimationFrame,x=w?function(e){return w(e)}:function(e){return setTimeout(e,1)},O=g?r.useEffect:r.useLayoutEffect,k="undefined"!=typeof navigator&&navigator.connection,C=!g&&k&&(["slow-2g","2g"].includes(k.effectiveType)||k.saveData),E=new WeakMap,S=0;function j(e){if(u(e))try{e=e()}catch(n){e=""}var n;return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=e[t],o=l;null===r||"object"!=typeof r&&!u(r)?o=JSON.stringify(r):E.has(r)?o=E.get(r):(o=S,E.set(r,S++)),n+="$"+o}return n}(e)):n=[e=String(e||"")],[e,n,e?"$err$"+e:"",e?"$req$"+e:""]}var _=new WeakMap,P=function(e,n,t,r,o,a){void 0===a&&(a=!1);var i=_.get(e),l=i[0],c=i[1],u=l[n],s=c[n];if(s)for(var f=0;f<s.length;++f)s[f](t,r,o);return a&&u&&u[0]?u[0](2).then((function(){return e.get(n)})):e.get(n)},A=0,M=function(){return++A},I=function(e,n,t,r){return void 0===r&&(r=!0),a(void 0,void 0,void 0,(function(){var o,a,s,f,d,p,h,m,b,v,y;return i(this,(function(i){switch(i.label){case 0:if(o=j(n),a=o[0],s=o[2],!a)return[2];if(f=_.get(e),d=f[2],p=f[3],c(t))return[2,P(e,a,e.get(a),e.get(s),l,r)];if(b=d[a]=M(),p[a]=0,u(t))try{t=t(e.get(a))}catch(e){t=l,m=e}if(!t||!u(t.then))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t];case 2:return h=i.sent(),[3,4];case 3:return v=i.sent(),m=v,[3,4];case 4:if(b!==d[a]){if(m)throw m;return[2,h]}return[3,6];case 5:h=t,i.label=6;case 6:return c(h)||e.set(a,h),e.set(s,m),p[a]=M(),[4,P(e,a,h,m,l,r)];case 7:if(y=i.sent(),m)throw m;return[2,y]}}))}))};function T(e,n){for(var t in e)e[t][0]&&e[t][0](n)}function N(e,n){if(!_.has(e)){var t=f(y,n),r={},o=I.bind(l,e);return _.set(e,[r,{},{},{},{},{},o]),g||(t.initFocus(T.bind(l,r,0)),t.initReconnect(T.bind(l,r,1))),[e,o]}}var R=N(new Map),z=R[0],D=R[1],L=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,n,t,r,o){if(v.isVisible()){var a=t.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!c(a)&&i>a||setTimeout(r,l,o)}},revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:function e(n,t){var r,a;if(n===t)return!0;if(n&&t&&(r=n.constructor)===t.constructor){if(r===Date)return n.getTime()===t.getTime();if(r===RegExp)return n.toString()===t.toString();if(r===Array){if((a=n.length)===t.length)for(;a--&&e(n[a],t[a]););return-1===a}if(!r||"object"==typeof n){for(r in a=0,n){if(o.call(n,r)&&++a&&!o.call(t,r))return!1;if(!(r in t)||!e(n[r],t[r]))return!1}return Object.keys(t).length===a}}return n!=n&&t!=t},isPaused:function(){return!1},cache:z,mutate:D,fallback:{}},v);function F(e,n){var t=f(e,n);if(!n)return t;var r=e.use,o=e.fallback,a=n.use,i=n.fallback;return r&&a&&(t.use=r.concat(a)),o&&i&&(t.fallback=f(o,i)),t}var B=Object(r.createContext)({});function U(e){return u(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]}var H,V=function(e,n,t){var r=n[e]||(n[e]=[]);return r.push(t),function(){var e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},q={dedupe:!0},$=Object.defineProperty((function(e){var n=e.children,t=e.value,o=F(Object(r.useContext)(B),t),a=t&&t.provider,i=Object(r.useState)((function(){return a?N(a(o.cache||z),t):l}))[0];return i&&(o.cache=i[0],o.mutate=i[1]),Object(r.createElement)(B.Provider,{value:o},n)}),"default",{value:L}),W=(H=function(e,n,t){var o=t.cache,u=t.compare,s=t.fallbackData,d=t.suspense,p=t.revalidateOnMount,h=t.refreshInterval,m=t.refreshWhenHidden,b=t.refreshWhenOffline,v=_.get(o),y=v[0],w=v[1],k=v[2],C=v[3],E=v[4],S=v[5],A=j(e),T=A[0],N=A[1],R=A[2],z=A[3],D=Object(r.useRef)(!1),L=Object(r.useRef)(!1),F=Object(r.useRef)(T),B=Object(r.useRef)(t),U=o.get(T),H=c(s)?t.fallback[T]:s,$=c(U)?H:U,W=o.get(R),Z=function(){return c(p)?d?!D.current&&!c($):c($)||t.revalidateIfStale:p},G=!(!T||!n)&&(!!o.get(z)||!D.current&&Z()),Y=function(e,n){var t=Object(r.useState)({})[1],o=Object(r.useRef)(e),a=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),i=Object(r.useCallback)((function(e){var r=!1,i=o.current;for(var l in e){var c=l;i[c]!==e[c]&&(i[c]=e[c],a.current[c]&&(r=!0))}r&&!n.current&&t({})}),[]);return O((function(){o.current=e})),[o,a.current,i]}({data:$,error:W,isValidating:G},L),K=Y[0],X=Y[1],J=Y[2],Q=Object(r.useCallback)((function(e){return a(void 0,void 0,void 0,(function(){var r,a,s,f,d,p,h,m,b;return i(this,(function(i){switch(i.label){case 0:if(!T||!n||L.current||B.current.isPaused())return[2,!1];s=!0,f=e||{},d=!c(E[T])&&f.dedupe,p=function(){return!L.current&&T===F.current&&D.current},h=function(){delete E[T],delete S[T]},i.label=1;case 1:return i.trys.push([1,6,,7]),o.set(z,!0),J({isValidating:!0}),d||P(o,T,K.current.data,K.current.error,!0),d?(a=S[T],[4,E[T]]):[3,3];case 2:return r=i.sent(),[3,5];case 3:return t.loadingTimeout&&!o.get(T)&&setTimeout((function(){s&&p()&&B.current.onLoadingSlow(T,t)}),t.loadingTimeout),S[T]=a=M(),[4,E[T]=n.apply(n,N)];case 4:r=i.sent(),setTimeout((function(){S[T]===a&&h()}),t.dedupingInterval),p()&&B.current.onSuccess(r,T,t),i.label=5;case 5:return S[T]!==a?[2,!1]:!c(k[T])&&(a<=k[T]||a<=C[T]||0===C[T])?(J({isValidating:!1}),[2,!1]):(o.set(R,l),o.set(z,!1),m={isValidating:!1},c(K.current.error)||(m.error=l),u(K.current.data,r)||(m.data=r),u(o.get(T),r)||o.set(T,r),J(m),d||P(o,T,r,m.error,!1),[3,7]);case 6:return b=i.sent(),h(),B.current.isPaused()?(J({isValidating:!1}),[2,!1]):(o.set(R,b),K.current.error!==b&&(J({isValidating:!1,error:b}),d||P(o,T,l,b,!1)),p()&&(B.current.onError(b,T,t),t.shouldRetryOnError&&B.current.onErrorRetry(b,T,t,Q,{retryCount:(f.retryCount||0)+1,dedupe:!0})),[3,7]);case 7:return s=!1,[2,!0]}}))}))}),[T]),ee=Object(r.useCallback)((function(e,n){return I(o,F.current,e,n)}),[]);if(O((function(){B.current=t})),O((function(){if(T){var e=D.current,n=Q.bind(l,q),t=function(){return B.current.isVisible()&&B.current.isOnline()},r=0,o=V(T,w,(function(e,n,t){J(f({error:n,isValidating:t},u(e,K.current.data)?null:{data:e}))})),a=V(T,y,(function(e){if(0===e){var o=Date.now();B.current.revalidateOnFocus&&o>r&&t()&&(r=o+B.current.focusThrottleInterval,n())}else if(1===e)B.current.revalidateOnReconnect&&t()&&n();else if(2===e)return Q()}));return L.current=!1,F.current=T,e&&J({data:$,error:W,isValidating:G}),(e||Z())&&(c($)||g?n():x(n)),D.current=!0,function(){L.current=!0,o(),a()}}}),[T,Q]),O((function(){var e;function n(){h&&-1!==e&&(e=setTimeout(r,h))}function r(){K.current.error||!m&&!t.isVisible()||!b&&!t.isOnline()?n():Q(q).then((function(){return n()}))}return n(),function(){e&&(clearTimeout(e),e=-1)}}),[h,m,b,Q]),Object(r.useDebugValue)($),d&&c($))throw c(W)?Q(q):W;return{mutate:ee,get data(){return X.data=!0,$},get error(){return X.error=!0,W},get isValidating(){return X.isValidating=!0,G}}},function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=U(e),o=t[0],a=t[1],i=t[2],l=f(L,Object(r.useContext)(B)),c=F(l,i),u=H,s=c.use;if(s)for(var d=s.length;d-- >0;)u=s[d](u);return u(o,a||c.fetcher,c)})},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"/>'}},function(e,n,t){"use strict";t.d(n,"d",(function(){return D})),t.d(n,"c",(function(){return z})),t.d(n,"b",(function(){return N})),t.d(n,"a",(function(){return L}));var r=t(0),o=t(120),a=t.n(o);function i(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}function c(e){return(c="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})(e)}var u=new WeakMap,s=0;var f=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var n=this.serializeKey(e)[0];return this.__cache.get(n)},e.prototype.set=function(e,n,t){void 0===t&&(t=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,n),t&&S(e,n,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var n=this.serializeKey(e)[0];return this.__cache.has(n)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return S(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,n){void 0===n&&(n=!0);var t=this.serializeKey(e)[0];n&&S(e,null,!1),this.__cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var n=null;if("function"==typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=void 0;null===e[t]||"object"!==c(e[t])?r="string"==typeof e[t]?'"'+e[t]+'"':String(e[t]):u.has(e[t])?r=u.get(e[t]):(r=s,u.set(e[t],s++)),n+="@"+r}return n}(e)):e=String(e||""),[e,n,e?"err@"+e:""]},e.prototype.subscribe=function(e){var n=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var t=!0;return this.__listeners.push(e),function(){if(t){t=!1;var r=n.__listeners.indexOf(e);r>-1&&(n.__listeners[r]=n.__listeners[n.__listeners.length-1],n.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,n=this.__listeners;e<n.length;e++){(0,n[e])()}},e}()),d={},p={},h={},m={};var b="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),v=(a.a,!1);if("undefined"!=typeof window&&window.addEventListener&&!v){var y=function(){if(i()&&l())for(var e in p)p[e][0]&&p[e][0]()};window.addEventListener("visibilitychange",y,!1),window.addEventListener("focus",y,!1),v=!0}var g=Object(r.createContext)({});g.displayName="SWRConfigContext";var w=g;var O=function(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,l)}c((r=r.apply(e,n||[])).next())}))},k=function(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},C="undefined"==typeof window,E=(C?r.useEffect:r.useLayoutEffect,function(e,n){void 0===n&&(n=!0);var t=f.serializeKey(e),r=t[0],o=t[2];if(!r)return Promise.resolve();var a=h[r];if(r&&a){for(var i=f.get(r),l=f.get(o),c=[],u=0;u<a.length;++u)c.push(a[u](n,i,l,u>0));return Promise.all(c).then((function(){return f.get(r)}))}return Promise.resolve(f.get(r))}),S=function(e,n,t){return void 0===t&&(t=!0),O(void 0,void 0,void 0,(function(){var r,o,a,i,l,c,u,s,p,b;return k(this,(function(v){switch(v.label){case 0:if(!(r=f.serializeKey(e)[0]))return[2];if(void 0===n)return[2,E(e,t)];if(m[r]=Date.now()-1,i=m[r],l=d[r],!n||"function"!=typeof n)return[3,5];v.label=1;case 1:return v.trys.push([1,3,,4]),[4,n(f.get(r))];case 2:return o=v.sent(),[3,4];case 3:return c=v.sent(),a=c,[3,4];case 4:return[3,11];case 5:if(!n||"function"!=typeof n.then)return[3,10];v.label=6;case 6:return v.trys.push([6,8,,9]),[4,n];case 7:return o=v.sent(),[3,9];case 8:return u=v.sent(),a=u,[3,9];case 9:return[3,11];case 10:o=n,v.label=11;case 11:if(i!==m[r]||l!==d[r]){if(a)throw a;return[2,o]}if(void 0!==o&&f.set(r,o,!1),s=h[r]){for(p=[],b=0;b<s.length;++b)p.push(s[b](!!t,o,a,b>0));return[2,Promise.all(p).then((function(){return f.get(r)}))]}if(a)throw a;return[2,o]}}))}))};w.Provider,new Map;var j=t(21);function _(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||I(e,n)||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 P(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function A(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){P(a,r,o,i,l,"next",e)}function l(e){P(a,r,o,i,l,"throw",e)}i(void 0)}))}}function M(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=I(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function I(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function N(e,n){for(var t=[],r=0;r<e.length;r+=n)t.push(e.slice(r,r+n));return t}var R=function(e){if(!e.data)return e;if(e.data.length>0&&e.data[0].meta){var n,t=M(e.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;try{r.meta=JSON.parse(r.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(e){t.e(e)}finally{t.f()}}else if(e.data.meta)try{e.data.meta=JSON.parse(e.data.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return e},z=function(){var e=A(regeneratorRuntime.mark((function e(n){var t,r,o,a,i,l,c,u,s,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.length>1&&void 0!==f[1]?f[1]:{},r=null,o={},a=null,i=null,e.prev=5,(t=t||{}).headers=t.headers?t.headers:{},t.headers.Pragma="no-cache",t.headers["Cache-Control"]="no-cache",e.next=12,fetch("".concat(n),t);case 12:return i=e.sent,e.next=15,i.text();case 15:r=e.sent,(o=JSON.parse(r)).success||(l=!1===o.success?"NOT-SUCCESS":"N/A",c=o.message?o.message:"Unknown error. Check your Console Logs.","rest_no_route"===o.code?(c="The API can't be accessed. Is Rest API enabled?",l="NO-ROUTE"):"internal_server_error"===o.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),a=new j.a(c,l,n,r||i)),e.next=26;break;case 20:e.prev=20,e.t0=e.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.",i&&i.status&&408===i.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),a=new j.a(s,u,n,r||i,e.t0);case 26:return a&&(console.error("[NekoError] JsonFetcher",a.url,{code:a.code,error:a.error,body:a.body}),o.success=!1,o.error=a),e.abrupt("return",R(o));case 28:case"end":return e.stop()}}),e,null,[[5,20]])})));return function(n){return e.apply(this,arguments)}}(),D=function(){var e=A(regeneratorRuntime.mark((function e(n){var t,r,o,a,i,l,c,u,s,f,d,p,h,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=m.length>1&&void 0!==m[1]?m[1]:{},r=t.json,o=void 0===r?{}:r,a=t.signal,i=t.file,l=t.nonce,c=i?new FormData:null,i)for(c.append("file",i),u=0,s=Object.entries(o);u<s.length;u++)f=_(s[u],2),d=f[0],p=f[1],c.append(d,p);return h=l?{"X-WP-Nonce":l}:{},c||(h["Content-Type"]="application/json"),e.abrupt("return",z(n,{method:"POST",headers:h,body:c||JSON.stringify(o),signal:a}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(e,n){var t=e.includes("index.php?rest_route");return e+(t?"&":"?")+new URLSearchParams(n).toString()}},function(e,n,t){"use strict";var r=t(0),o=t.n(r),a=t(2),i=t.n(a);function l(){return(l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}(e,n)||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 d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p=function(e){var n=e.spinner,t=void 0===n||n,a=e.busy,i=void 0!==a&&a,c=e.overlayStyle,s=f(Object(r.useState)(!0),2),d=s[0],p=s[1];Object(r.useEffect)((function(){var e;return i?p(!0):e=setTimeout((function(){p(!1),e=null}),250),function(){e&&clearTimeout(e)}}),[i]);var h=d?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"overlay "+(i?"":"overlayHidden"),style:c},Boolean(t)&&o.a.createElement("div",{className:"lds-ellipsis "+(i?"":"spinnerHidden")},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))),o.a.createElement("style",{jsx:!0},"\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n ")):null,m=u(u({},e),{},{busy:void 0,spinner:void 0});return o.a.createElement("div",l({style:{position:"relative"}},m),h,e.children)};p.propTypes={busy:i.a.bool.isRequired,spinner:i.a.bool,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node]).isRequired},n.a=p},function(e,n,t){"use strict";t.d(n,"a",(function(){return b}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=["type"];function s(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var f,d,p=c.a.div(r||(f=["\n width: ",";\n padding-top: ",";\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ",";\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n"],d||(d=f.slice(0)),r=Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(d)}}))),(function(e){return e.size||"50%"}),(function(e){return e.size||"50%"}),(function(e){return e.color||"#333"})),h=function(e){return a.a.createElement(p,e,a.a.createElement("div",{className:"double-bounce1"}),a.a.createElement("div",{className:"double-bounce2"}))},m=function(e){var n=e.type,t=void 0===n?"circle":n,r=s(e,u);switch(t){case"circle":return a.a.createElement(h,r);default:return null}},b=function(e){return a.a.createElement(m,e)};b.propTypes={type:l.a.string},b.defaultProps={type:"circle"}},function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var r,o,a,i,l,c=t(0),u=t.n(c),s=t(2),f=t.n(s),d=t(4),p=t(3),h=["children"];function m(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function b(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var v=d.a.h1(r||(r=b(["\n font-family: ",";\n font-weight: normal;\n font-size: ",";\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeH1),y=d.a.h2(o||(o=b(["\n font-family: ",";\n font-size: ",";\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeH2),g=d.a.p(a||(a=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),w=d.a.span(i||(i=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),x=d.a.label(l||(l=b(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),p.a.fontFamily,p.a.fontSizeText),O=function(e){var n=e.children,t=m(e,h);return e.h1?u.a.createElement(v,t,n):e.h2?u.a.createElement(y,t,n):e.p?u.a.createElement(g,t,n):e.label?u.a.createElement(x,t,n):u.a.createElement(w,t,n)},k=function(e){return u.a.createElement(O,e)};k.propTypes={h1:f.a.any,h2:f.a.any,p:f.a.any},k.defaultProps={h1:void 0,h2:void 0,p:void 0}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2Z"/>'}},function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(7),f=t(3);function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e,n)||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 p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var m=u.a.div(r||(r=h(["\n\tdisplay: flex;\n"]))),b=u.a.div(o||(o=h(["\n\tbackground-color: rgba(",", 0.8);\n\tborder-radius: 4px;\n\tcolor: ",";\n\tfont-family: ",";\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ",";\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ",';\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(',", 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t","\n"])),f.a.blackRGB,f.a.white,f.a.fontFamily,f.a.fontSizeText,(function(e){return e.visible?"inline-block":"none"}),f.a.blackRGB,f.a.blackRGB,f.a.blackRGB,f.a.blackRGB,(function(e){return e.style})),v=function(e){var n=e.text,t=void 0===n?"Hello world!":n,r=e.position,o=void 0===r?"top":r,l=d(Object(a.useState)(!1),2),c=l[0],u=l[1],f=Object(s.a)(),p=f.ref,h=f.width,v=f.height,y=Object(s.a)(),g=y.ref,w=y.width,x=y.height,O=Object(a.useMemo)((function(){var e=0,n=0;if("top"===o)e=-1*v-5,n=h/2*-1+w/2;else if("bottom"===o)e=x+5,n=h/2*-1+w/2;else if("left"===o){e=(v-x)/2*-1,n=-1*h-5}else if("right"===o){e=(v-x)/2*-1,n=w+5}return{transform:"translateX(".concat(n,"px) translateY(").concat(e,"px)")}}),[o,h,v,w,x]);return i.a.createElement(m,null,i.a.createElement(b,{ref:p,visible:c,className:o,style:O},t),i.a.createElement("div",{ref:g,onMouseEnter:function(){return t&&u(!0)},onMouseLeave:function(){return u(!1)}},e.children))},y=function(e){return i.a.createElement(v,e)};y.propTypes={text:c.a.string,position:c.a.oneOf(["top","right","bottom","left"])},y.defaultProps={text:"Hello world!",position:"top"}},function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}t.d(n,"a",(function(){return o}));var o=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r(this,e),this.url=o,this.message=n,this.code=t,this.body=a,this.debug=i}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M19 3H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14Z"/>'}},function(e,n,t){"use strict";t.d(n,"a",(function(){return g}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(6),f=["id","name","value","description","placeholder","onEnter","readOnly","type","step","min","max","maxLength","className","style","natural","inputStyle","onChange","onBlur","onReset"];function d(){return(d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function p(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h(e,n)}(e,n)||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 h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function m(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var b,v,y=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.value,i=void 0===r?"":r,l=e.description,c=e.placeholder,h=void 0===c?"":c,b=e.onEnter,v=void 0===b?null:b,y=e.readOnly,g=void 0!==y&&y,w=e.type,x=void 0===w?"text":w,O=e.step,k=void 0===O?1:O,C=e.min,E=void 0===C?1:C,S=e.max,j=void 0===S?999:S,_=e.maxLength,P=void 0===_?void 0:_,A=e.className,M=e.style,I=e.natural,T=void 0!==I&&I,N=e.inputStyle,R=e.onChange,z=e.onBlur,D=e.onReset,L=m(e,f),F=p(Object(o.useState)(i),2),B=F[0],U=F[1],H=!!R,V=P||("number"===x?3:void 0);Object(o.useEffect)((function(){H||U(i)}),[i]);var q=function(e){H?R(e.target.value,n):U(e.target.value,n)},$=function(e){v&&"Enter"===event.key&&(e.preventDefault(),v(e.target.value,n))},W=function(e){z&&i!==e.target.value&&z(e.target.value,n)},Z="neko-input ".concat(T?" natural":"");return a.a.createElement("div",{className:[A].join(" "),style:M},a.a.createElement("div",{style:{position:"relative"}},"number"===x?a.a.createElement("input",d({className:[Z].join(" "),id:n,name:t,value:H?i:B,type:x,step:k,min:E,max:j,maxLength:V,autoComplete:"off",placeholder:h,style:N,onChange:q,onKeyPress:$,onBlur:W,readOnly:g},L)):a.a.createElement("input",d({className:[Z].join(" ")},L,{id:n,name:t,value:H?i:B,type:x,spellCheck:"false",autoComplete:"off",placeholder:h,style:N,maxLength:V,onChange:q,onKeyPress:$,onBlur:W,readOnly:g},L)),!!i&&!!D&&a.a.createElement(s.a,{icon:"close",width:24,style:{position:"absolute",top:"3px",right:"3px"},color:u.a.blue,onClick:D})),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(r||(b=["\n .neko-input {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"],v||(v=b.slice(0)),r=Object.freeze(Object.defineProperties(b,{raw:{value:Object.freeze(v)}}))),u.a.fontFamily,u.a.fontSizeText,u.a.blue,u.a.gray,u.a.fontFamily,u.a.fontSizeSmall),g=function(e){return a.a.createElement(y,e)};g.propTypes={id:l.a.string,type:l.a.oneOf(["number","text"]),name:l.a.string,value:l.a.string,description:l.a.string,placeholder:l.a.string,onChange:l.a.func,onEnter:l.a.func,onBlur:l.a.func,readOnly:l.a.bool,step:l.a.number,min:l.a.number,max:l.a.number,maxLength:l.a.number,natural:l.a.bool,onReset:l.a.func},g.defaultProps={id:void 0,type:"text",name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,step:1,min:1,max:999,maxLength:void 0,natural:!1,onReset:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var r,o=t(0),a=t.n(o);var i,l,c=t(4).a.div(r||(i=["\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n"],l||(l=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(l)}})))),u=function(){return a.a.createElement(c,null,a.a.createElement("svg",{width:"54",height:"38",viewBox:"0 0 54 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z",fill:"#724024",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",stroke:"black"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",stroke:"black"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",stroke:"black"}),a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z",fill:"white",stroke:"black",strokeWidth:"2.1869"})))},s=function(e){return a.a.createElement(u,e)};s.propTypes={},s.defaultProps={}},function(e,n,t){"use strict";t.d(n,"a",(function(){return E}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(5),s=t(30),f=t.n(s),d=t(32),p=t.n(d),h=t(31),m=t.n(h),b=t(13),v=t.n(b),y=t(3);function g(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||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 w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var x,O,k=c.a.div(r||(x=["\n align-items: center;\n display: flex;\n user-select: none;\n\n .neko-paging-text {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n margin-right: 15px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(",", 0.8);\n border-radius: 15px;\n display: flex;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ",";\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n"],O||(O=x.slice(0)),r=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(O)}}))),y.a.fontFamily,y.a.blueRGB,y.a.white,y.a.darkGray,y.a.white,y.a.fontFamily),C=function(e){var n=e.currentPage,t=e.limit,r=void 0===t?0:t,i=e.onClick,l=e.total,c=void 0===l?0:l,s=e.onCurrentPageChanged,d=(e.full,e.infinite),h=void 0!==d&&d,b=e.controllerText,y=!!s,w=Object(o.useMemo)((function(){return h?0:Math.ceil(0===c?1:r>0?c/r:1)}),[h,r,c]),x="nako-paging-controller-icon ".concat(h||1!==n?"":"disabled"),O="nako-paging-controller-icon ".concat(h||n!==w?"":"disabled"),C=g(Object(o.useState)(!1),2),E=C[0],S=C[1],j=function(e){S(!1),i(e)},_=function(e){if(h)return e;var n=Number(e);return n>w?w:n<1?1:n},P=function(e){var n=e.target.value;isNaN(n)||s(_(n)),S(!1)},A=function(e){if("Enter"===event.key){e.preventDefault();var n=e.target.value;isNaN(n)||s(_(n)),S(!1)}},M=Object(o.useMemo)((function(){if(!E){return a.a.createElement("span",{className:y?"neko-paging-current-page":"",onClick:function(){y&&S(!0)}},n)}return a.a.createElement("input",{autoFocus:!0,type:"text",className:y?"neko-paging-current-page":"",defaultValue:n,onBlur:P,onKeyPress:A})}),[n,E,s]),I=function(e){E&&e.target===e.currentTarget&&S(!1)};return a.a.createElement(k,null,!!c&&a.a.createElement("span",{className:"neko-paging-text"},c," result",c>0?"s":""),a.a.createElement("div",{className:"neko-paging-controller",onClick:I},!h&&a.a.createElement(u.Icon,{icon:f.a,className:x,onClick:function(){return j(1)}}),a.a.createElement(u.Icon,{icon:p.a,className:x,onClick:function(){return j(n-1)}}),a.a.createElement("p",{className:"nako-paging-controller-text",onClick:I},b||a.a.createElement(a.a.Fragment,null,"Page ",M," of ",w)),a.a.createElement(u.Icon,{icon:v.a,className:O,onClick:function(){return j(n+1)}}),!h&&a.a.createElement(u.Icon,{icon:m.a,className:O,onClick:function(){return j(w)}})))},E=function(e){return a.a.createElement(C,e)};E.propTypes={currentPage:l.a.number,limit:l.a.number,total:l.a.number,onClick:l.a.func,lastPage:l.a.number,infinite:l.a.bool,controllerText:l.a.object},E.defaultProps={currentPage:void 0,limit:0,total:0,onClick:void 0,lastPage:void 0,infinite:!1,controllerText:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return O}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(1),s=["onSuccess","onFailure","apiUrl","apiConfig","className","disabled","children","multiple"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 p(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function h(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){p(a,r,o,i,l,"next",e)}function l(e){p(a,r,o,i,l,"throw",e)}i(void 0)}))}}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||b(e,n)||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 b(e,n){if(e){if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var g,w,x=c.a.div(r||(g=["\n &.dropping {\n background: #a4d5ff;\n }\n"],w||(w=g.slice(0)),r=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(w)}})))),O=Object(o.forwardRef)((function(e,n){var t=e.onSuccess,r=void 0===t?function(){}:t,i=e.onFailure,l=void 0===i?function(){}:i,c=e.apiUrl,p=e.apiConfig,b=e.className,v=e.disabled,g=void 0!==v&&v,w=e.children,O=e.multiple,k=y(e,s),C=m(Object(o.useState)(!1),2),E=C[0],S=C[1],j=m(Object(o.useState)(!1),2),_=j[0],P=j[1],A=Object(o.useCallback)(function(){var e=h(regeneratorRuntime.mark((function e(n){var t,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),t=function(){var e=h(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p.file=n,e.next=3,Object(u.G)(c,p);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(n.map(function(){var e=h(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:o=e.sent,a=o.filter((function(e){return e.success})),i=o.filter((function(e){return!e.success})),a.length&&r(O?a:a[0]),i.length&&l(O?i:i[0]),P(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[p,r,l]),M=Object(o.useCallback)((function(e,n){n.preventDefault(),n.stopPropagation(),S(!1),A(e)}),[A]),I=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation()}),[]),T=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),g||S(!0)}),[g]),N=Object(o.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),g||S(!1)}),[g]),R=Object(o.useCallback)((function(e){if(!g){var n=d(e.dataTransfer.files);M(n,e)}}),[g,M]),z=Object(o.useCallback)((function(e){var n=d(e.target.files);M(n,e)}),[M]);return a.a.createElement(u.b,{busy:_},a.a.createElement("input",{type:"file",accept:"image/*",ref:n,onChange:z,style:{display:"none"},multiple:O}),a.a.createElement(x,f({className:"".concat(b||""," ").concat(E?"dropping":""),onDragOver:I,onDragEnter:T,onDragLeave:N,onDrop:R},k),w))}));O.propTypes={ref:l.a.ref,onSuccess:l.a.func,onFailure:l.a.func,apiUrl:l.a.string,apiConfig:l.a.object,disabled:l.a.bool},O.defaultProps={onSuccess:function(){},onFailure:function(){},disabled:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return x}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(118),s=t.n(u),f=t(4),d=t(3),p=t(11),h=["id","isOpen","children","className","style","ok","cancel","customButtons","customButtonsPosition","title","content","contentWidth","onOkClick","onCancelClick","okOnEnter","thumbnail"];function m(){return(m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function b(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=f.a.div(r||(r=v(["\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: "," !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ",";\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n"])),d.a.overlay,d.a.white),g=f.a.div(o||(o=v(["\n width: ",";\n\n p {\n margin: 0;\n }\n .title {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n"])),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:"518px"}),d.a.fontFamily,d.a.fontFamily),w=function(e){var n=e.id,t=void 0===n?"neko-modal-parent":n,r=e.isOpen,o=e.children,l=e.className,c=e.style,u=e.ok,f=void 0===u?"OK":u,d=e.cancel,v=void 0===d?"Cancel":d,w=e.customButtons,x=void 0===w?null:w,O=e.customButtonsPosition,k=void 0===O?"right":O,C=e.title,E=void 0===C?"":C,S=e.content,j=void 0===S?"":S,_=e.contentWidth,P=e.onOkClick,A=e.onCancelClick,M=e.okOnEnter,I=void 0!==M&&M,T=e.thumbnail,N=b(e,h),R=c?"custom-modal":"",z=null!==x,D=Object(a.useCallback)((function(e){"Enter"===e.key&&P()}),[P]);Object(a.useEffect)((function(){if(I&&r)return window.addEventListener("keyup",D),function(){window.removeEventListener("keyup",D)}}),[r,D]);var L=o||i.a.createElement(g,{width:_},E&&i.a.createElement("p",{className:"title"},E),i.a.createElement("div",{className:"content-container"},T&&i.a.createElement("div",{className:"thumbnail"},T),j&&i.a.createElement("p",{className:"content"},j)),i.a.createElement("div",{className:"button-group"},z&&"left"===k&&x,A&&i.a.createElement(p.a,{className:"danger",onClick:A},v),P&&i.a.createElement(p.a,{onClick:P},f),z&&"right"===k&&x));return i.a.createElement(i.a.Fragment,null,i.a.createElement(y,{id:t}),i.a.createElement(s.a,m({ariaHideApp:!1,parentSelector:function(){return document.getElementById(t)},closeTimeoutMS:200,className:"neko-modal ".concat(l||""," ").concat(R),isOpen:r},N),L))},x=function(e){return i.a.createElement(w,e)};x.propTypes={className:c.a.string,style:c.a.object,ok:c.a.string,cancel:c.a.string,title:c.a.string,content:c.a.string,contentWidth:c.a.string,onOkClick:c.a.func,onCancelClick:c.a.func,customButtons:c.a.object,okOnEnter:c.a.bool,thumbnail:c.a.element},x.defaultProps={className:void 0,style:void 0,ok:"OK",cancel:"Cancel",title:"",content:"",contentWidth:void 0,onOkClick:void 0,onCancelClick:void 0,customButtons:null,okOnEnter:!1,thumbnail:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return T}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(5),s=t(10),f=t.n(s),d=t(18),p=t.n(d),h=t(22),m=t.n(h),b=t(38),v=t.n(b),y=t(119),g=t.n(y),w=t(3),x=t(15),O=["checked","intermediate","onSelect","onUnselect"];function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){E(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function E(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var j,_,P=c.a.table(r||(j=["\n font-family: ",";\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(",", 0.1);\n border-right: 1px solid rgba(",", 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ",";\n color: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ",";\n color: ",";\n\n div {\n justify-content: normal;\n }\n }\n }\n\n tbody {\n background-color: ",";\n \n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: rgba(",", 0.8);\n color: ",";\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: ",";\n color: ",";\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n"],_||(_=j.slice(0)),r=Object.freeze(Object.defineProperties(j,{raw:{value:Object.freeze(_)}}))),w.a.fontFamily,w.a.blackRGB,w.a.blackRGB,w.a.blue,w.a.white,w.a.white,w.a.black,w.a.white,w.a.tableGray,w.a.blueRGB,w.a.white,w.a.white,w.a.white,w.a.black),A=function(e){var n=e.checked,t=e.intermediate,r=void 0!==t&&t,o=e.onSelect,i=void 0===o?function(){}:o,l=e.onUnselect,c=void 0===l?function(){}:l;S(e,O);return a.a.createElement(u.Icon,{icon:r?g.a:n?v.a:m.a,width:"24px",height:"24px",onClick:function(e){n?c(e):i(e)}})},M={left:"start",center:"center",right:"end"},I=function(e){var n=e.columns,t=e.data,r=e.busy,o=void 0!==r&&r,i=e.onSelect,l=e.onUnselect,c=e.selectedItems,s=e.sort,d=e.onSortChange,h=e.variant,m=void 0===h?"default":h,b=e.sortIconColor,v=void 0===b?void 0:b,y=e.emptyMessage,g=void 0===y?"Empty.":y,O=n.length+(i?1:0),k=function(e){var n={};return e.align&&(n={textAlign:e.align,justifyContent:M[e.align]}),e.width&&(n=C(C({},n),{},{width:e.width})),e.style&&(n=C(C({},n),e.style)),n},E=t.map((function(e){var t=n.map((function(n){return{value:e[n.accessor],style:k(n)}}));return{id:e.id,cells:t}})),S=E.map((function(e){return e.id})),j=S.filter((function(e){return c.includes(e)})).length===S.length,_=!j&&c.length>0,I=n.reduce((function(e,n,t){return!1===n.visible&&e.push(t),e}),[]),T=a.a.createElement("tr",null,i&&a.a.createElement("th",{className:"table-checkbox-cell"},a.a.createElement(A,{checked:j,intermediate:_,onSelect:function(e){return i(S,e)},onUnselect:function(e){l(_?c:S,e)}})),n.filter((function(e,n){return!I.includes(n)})).map((function(e){var n=s&&s.accessor===e.accessor,t=s&&"asc"===s.by,r=n?w.a.white:"rgba(".concat(w.a.blackRGB,", 0.1)");v&&(r=n?v:w.a.gray);var o=k(e);return a.a.createElement("th",{style:o,key:e.accessor},a.a.createElement("div",{className:e.sortable?"sortable":"",style:o,onClick:e.sortable?function(r){d(e.accessor,n&&t?"desc":"asc",r)}:void 0},a.a.createElement("div",null,e.title),a.a.createElement("div",{style:{flex:"auto"}}),a.a.createElement("div",null,e.sortable&&a.a.createElement(u.Icon,{icon:n?t?f.a:p.a:f.a,color:r,width:"26px",height:"26px"}))))})));return a.a.createElement(x.a,{busy:o,overlayStyle:{top:"36px",height:"calc(100% - 76px)"}},a.a.createElement(P,{className:"nekotable-".concat(m)},a.a.createElement("thead",null,T),a.a.createElement("tbody",null,!E.length&&a.a.createElement("tr",null,a.a.createElement("td",{colspan:O,style:{textAlign:"center",height:40,color:"gray"}},g)),E.map((function(e){return a.a.createElement("tr",{className:c.includes(e.id)?"selected":""},i&&a.a.createElement("td",{className:"table-checkbox-cell"},a.a.createElement(A,{checked:c.includes(e.id),onSelect:function(n){return i([e.id],n)},onUnselect:function(n){return l([e.id],n)}})),e.cells.filter((function(e,n){return!I.includes(n)})).map((function(e){return a.a.createElement("td",{style:e.style},e.value)})))}))),"default"===m&&a.a.createElement("tfoot",null,T)))},T=function(e){return a.a.createElement(I,e)};T.propTypes={columns:l.a.arrayOf(l.a.any),data:l.a.arrayOf(l.a.any),busy:l.a.arrayOf(l.a.bool),onSelect:l.a.func,onUnselect:l.a.func,selectedItems:l.a.arrayOf(l.a.object),onSortChange:l.a.func,variant:l.a.string,sortIconColor:l.a.string},T.defaultProps={columns:void 0,data:void 0,busy:!1,onSelect:void 0,onUnselect:void 0,selectedItems:void 0,onSortChange:void 0,variant:"default",sortIconColor:void 0}},function(e,n,t){"use strict";e.exports=t(124)},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M14 19h4V5h-4M6 19h4V5H6v14Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M8 5.14v14l11-7l-11-7Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M18 18H6V6h12v12Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71Z"/>'}},function(e,n){n.__esModule=!0,n.default={width:24,height:24,body:'<path fill="currentColor" d="m10 17l-5-5l1.41-1.42L10 14.17l7.59-7.59L19 8m0-5H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/>'}},function(e,n,t){"use strict";var r,o,a,i,l=t(0),c=t.n(l),u=t(2),s=t.n(u),f=t(4),d=t(8),p=t(3),h=t(9),m=t(5),b=t(10),v=t.n(b),y=t(7);function g(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||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 w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function x(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var O=f.a.div(r||(r=x(["\n display: inline-block;\n"]))),k=f.a.button(o||(o=x(["\n align-items: center;\n background-color: ",";\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ",";\n font-size: ",";\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n"])),p.a.blue,p.a.fontFamily,p.a.fontSizeText,Object(d.a)(.1,p.a.blue)),C=f.a.div(a||(a=x(["\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ",";\n position: absolute;\n z-index: 10;\n box-shadow: ",';\n\n &:before {\n content: "";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ',";\n }\n"])),p.a.blue,p.a.lightShadow,p.a.blue),E=function(e){var n=e.title,t=e.disabled,r=void 0!==t&&t,o=e.isPro,a=void 0!==o&&o,i=e.style,l=void 0===i?{}:i,u=e.hideChevron,s=e.titleStyle,f=void 0===s?{}:s,d=g(c.a.useState(!1),2),p=d[0],h=d[1],b=Object(y.e)((function(){h(!1)})),w=Object(y.a)(),x=w.ref,E=w.width,S=function(){h(!p)},j=c.a.Children.map(e.children,(function(e){return c.a.cloneElement(e,{isPro:a,disabled:e.props.disabled||r,onClick:function(){e.props.onClick&&e.props.onClick(),S()}})}));return c.a.createElement(O,{ref:b},c.a.createElement(k,{ref:x,type:"button",disabled:r,onClick:S,style:l},c.a.createElement("span",{style:f},n),!u&&c.a.createElement(m.Icon,{icon:v.a,width:"24",height:"24",style:{marginLeft:"4px"}})),p&&c.a.createElement(C,{style:{transform:"translateX(calc(-50% + ".concat(E/2,"px))")}},j))},S=f.a.button(i||(i=x(["\n align-items: center;\n background-color: ",";\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ",";\n font-size: ",";\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ",";\n justify-content: space-between;\n }\n\n &.separator {\n border-top: 1px solid ",";\n font-size: 10px;\n padding: 5px;\n }\n"])),p.a.blue,p.a.fontFamily,p.a.fontSizeText,Object(d.a)(.1,p.a.blue),p.a.proGray,p.a.white),j=function(e){var n=e.onClick,t=e.children,r=e.isPro,o=e.requirePro,a=void 0!==o&&o,i=e.disabled,l=e.separator,u=a&&!r;return c.a.createElement(S,{type:"button",className:"".concat(u?"is-pro":""," ").concat(l?"separator":""),onClick:n,disabled:i||u},c.a.createElement("span",null,t),u&&!r&&c.a.createElement(h.a,null))},_=function(e){return c.a.createElement(E,e)},P=function(e){return c.a.createElement(j,e)};_.propTypes={title:s.a.string,disabled:s.a.bool,isPro:s.a.bool,hideChevron:s.a.bool,style:s.a.object,titleStyle:s.a.object},_.defaultProps={title:void 0,disabled:!1,isPro:!1,hideChevron:void 0,style:{},titleStyle:{}},P.propTypes={onClick:s.a.func.isRequired,requirePro:s.a.bool,separator:s.a.bool},P.defaultProps={onClick:function(){},requirePro:!1,separator:void 0}},function(e,n,t){"use strict";t.d(n,"b",(function(){return y})),t.d(n,"a",(function(){return g}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=["full","minimal"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function p(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var h=u.a.div(r||(r=p(["\n display: flex;\n flex-wrap: wrap;\n"]))),m=u.a.div(o||(o=p(["\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n"]))),b=function(e){return i.a.createElement(h,null,e.children)},v=function(e){var n=e.full,t=e.minimal,r=d(e,s),o=n?"full":"";return o+=t?" minimal":"",i.a.createElement(m,f({className:o},r),e.children)},y=function(e){return i.a.createElement(b,e)},g=function(e){return i.a.createElement(v,e)};y.propTypes={},y.defaultProps={},g.propTypes={full:c.a.any},g.defaultProps={full:void 0}},function(e,n,t){"use strict";t.d(n,"b",(function(){return q})),t.d(n,"a",(function(){return $}));var r,o,a,i,l,c,u,s=t(0),f=t.n(s),d=t(2),p=t.n(d),h=t(4),m=t(3),b=t(9),v=t(7),y=t(16),g=t(5),w=t(114),x=t.n(w),O=t(115),k=t.n(O),C=t(10),E=t.n(C),S=t(18),j=t.n(S),_=t(6),P=["id","name","value","scrolldown","isPro","onChange","className","disabled","isBusy","chevronIconSize"];function A(){return(A=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function M(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return I(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(e,n)}(e,n)||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 I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function T(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function N(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var R=h.a.div(r||(r=N(["\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ",";\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n\n .nui-select-option {\n background: ",";\n padding-right: 10px;\n }\n }\n"])),m.a.blue,m.a.gray),z=h.a.div(o||(o=N(["\n align-items: center;\n background-color: ",";\n border: 2px solid ",";\n border-radius: 8px;\n display: flex;\n font-family: ",";\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n &.isBusy {\n padding-left: 5px;\n }\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n"])),m.a.white,m.a.blue,m.a.fontFamily),D=h.a.div(a||(a=N(["\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n"]))),L=h.a.div(i||(i=N(["\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n"]))),F=h.a.div(l||(l=N(["\n background-color: ",";\n overflow-y: auto;\n max-height: 300px;\n"])),m.a.white),B=function(e){var n,t=e.id,r=e.name,o=e.value,a=e.scrolldown,i=void 0!==a&&a,l=e.isPro,c=void 0!==l&&l,u=e.onChange,d=e.className,p=e.disabled,h=e.isBusy,m=void 0!==h&&h,w=e.chevronIconSize,x=void 0===w?24:w,O=T(e,P),k=null===(n=f.a.Children.toArray(e.children).find((function(e){return e.props.value===o||e.props.checked})))||void 0===n?void 0:n.props,C=(null==k?void 0:k.label)||"Select",S=(null==k?void 0:k.description)||e.description,I=(null==k?void 0:k.requirePro)||!1,N=null==k?void 0:k.icon,B=null==k?void 0:k.iconSize,U=M(Object(s.useState)(!1),2),H=U[0],V=U[1],q=i?Object(v.e)((function(){V(!1)})):null,$=I&&!c,W=function(n){if(n!==o){if(!u)return void console.log("The onChange handler it not set for this checkbox.",e);u(n,t)}i&&V(!1)},Z=f.a.Children.map(e.children,(function(e){return f.a.cloneElement(e,{name:e.props.name||r,checked:e.props.value===o||e.props.checked,onClick:W,scrolldown:i,isPro:c,disabled:p})}));return i?f.a.createElement(R,A({id:t,ref:q},O,{onClick:function(){return V(!H)},className:["nui-select",d,H?"show-options":""],childrenLength:Z.length,"data-is-disabled":p||m}),f.a.createElement(z,{className:"nui-select-option ".concat(m?"isBusy":"")},m?f.a.createElement(f.a.Fragment,null,f.a.createElement(y.a,{type:"circle",size:"20px"})):f.a.createElement(f.a.Fragment,null,N&&f.a.createElement(_.a,{icon:N,width:B,height:B,style:{marginRight:"".concat(Math.max(B-15,4),"px")}}),f.a.createElement("span",{className:"nui-select-option-label"},C),f.a.createElement("div",{className:"rightContent"},$&&f.a.createElement(b.a,null),!p&&f.a.createElement(g.Icon,{icon:H?j.a:E.a,width:x})))),S&&f.a.createElement(D,null,S),H&&f.a.createElement(L,{className:"nui-option ".concat(H?"":"hidden")},f.a.createElement(F,null,[Z]))):Z},U=h.a.div(c||(c=N(["\n font-family: ",";\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n"])),m.a.fontFamily,m.a.disabledForm),H=h.a.div(u||(u=N(["\n background-color: ",";\n cursor: pointer;\n font-family: ",";\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ",";\n display: flex;\n justify-content: space-between;\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n"])),m.a.blue,m.a.fontFamily,m.a.white,m.a.fontFamily),V=function(e){var n=e.id,t=e.name,r=e.value,o=e.checked,a=e.icon,i=e.label,l=e.description,c=e.onClick,u=e.scrolldown,s=e.isPro,d=void 0!==s&&s,p=e.requirePro,h=void 0!==p&&p,v=e.disabled,y=e.iconSize,w=void 0===y?20:y,O=h&&!d,C=O||v?"disabled":"",E=f.a.createElement(U,{className:"nui-select ".concat(e.className||""," ").concat(C)},f.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,onClick:function(e){return c(e.target.value)},disabled:O||v}),f.a.createElement("label",{htmlFor:n},f.a.createElement(g.Icon,{icon:o?k.a:x.a,width:"24px",color:O?m.a.disabledForm:m.a.blue}),f.a.createElement("div",{className:"inner-container"},f.a.createElement("span",{className:"label"},i,f.a.createElement(b.a,{className:"inline",style:{top:-1},show:O})),l?f.a.createElement("small",{className:"description"},l):null))),S=f.a.createElement(H,{className:"nui-select ".concat(e.className||""," ").concat(C)},f.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,disabled:O||v}),f.a.createElement("div",{className:"option",onClick:function(){return c(r)}},f.a.createElement("div",{className:"option-group"},a&&f.a.createElement(_.a,{icon:a,width:w,height:w,style:{marginRight:"".concat(Math.max(w-11,4),"px")}}),i),f.a.createElement(b.a,{show:O})));return u?S:E},q=function(e){return f.a.createElement(B,e)};q.propTypes={id:p.a.string,name:p.a.string,description:p.a.string,scrolldown:p.a.bool,isPro:p.a.bool,onChange:p.a.func,isBusy:p.a.bool,chevronIconSize:p.a.number},q.propTypes={id:void 0,name:void 0,description:void 0,scrolldown:!1,isPro:!1,onChange:void 0,isBusy:!1,chevronIconSize:24};var $=function(e){return f.a.createElement(V,e)};$.propTypes={id:p.a.string,name:p.a.string,value:p.a.string,checked:p.a.bool,label:p.a.string,description:p.a.string,onClick:p.a.func,scrolldown:p.a.bool,isPro:p.a.bool,requirePro:p.a.bool,icon:p.a.string,iconSize:p.a.number},$.defaultProps={id:void 0,name:void 0,value:void 0,checked:!1,label:void 0,description:void 0,onClick:void 0,scrolldown:!1,isPro:!1,requirePro:!1,icon:void 0,iconSize:20}},function(e,n,t){"use strict";var r,o,a,i,l,c,u=t(0),s=t.n(u),f=t(2),d=t.n(f),p=t(4),h=t(3),m=t(5),b=t(19),v=t.n(b),y=t(36),g=t.n(y),w=t(37),x=t.n(w),O=t(13),k=t.n(O),C=t(10),E=t.n(C),S=t(116),j=t.n(S);function _(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return P(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return P(e,n)}(e,n)||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 P(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function A(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var M=function(e){var n=e.chevron,t=void 0===n||n;return s.a.Children.map(e.children,(function(e){return s.a.cloneElement(e,{chevron:t})}))},I=p.a.div(r||(r=A(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: ",";\n"])),h.a.fontFamily),T=p.a.div(o||(o=A(["\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n"]))),N=p.a.div(a||(a=A(["\n height: 24px;\n width: 24px;\n"]))),R=p.a.div(i||(i=A(["\n position: relative;\n width: 24px;\n height: 24px;\n"]))),z=p.a.div(l||(l=A(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n"]))),D=p.a.div(c||(c=A(["\n border-left: 1px solid ",";\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n"])),h.a.finderBorder),L=function(e){var n={gallery:x.a,tag:j.a},t=e.title,r=e.chevron,o=e.rightElement,a=void 0===o?null:o,i=e.rightElementStyle,l=void 0===i?{marginLeft:"5px"}:i,c=e.showRightElement,f=void 0!==c&&c,d=e.selected,p=void 0!==d&&d,b=e.draggable,y=void 0!==b&&b,w=e.onDragStart,O=e.onDragOver,C=e.onDragEnd,S=e.onDrop,P=e.isExpanded,A=void 0!==P&&P,M=e.dragging,L=void 0!==M&&M,F=e.rightAction,B=void 0===F?null:F,U=e.rightActionOnHover,H=void 0===U?null:U,V=e.onDragLeave,q=(e.preventClose,!!e.icon),$=!!e.children,W=_(Object(u.useState)(A),2),Z=W[0],G=W[1],Y=_(Object(u.useState)((function(){return"string"==typeof e.icon&&Object.keys(n).includes(e.icon)?n[e.icon]:e.icon?e.icon:v.a})),2),K=Y[0],X=Y[1],J=Boolean(K),Q=_(Object(u.useState)(!1),2),ee=Q[0],ne=Q[1];Object(u.useEffect)((function(){G(A),q||X(A?v.a:g.a)}),[A]);var te=s.a.Children.map(e.children,(function(e){return s.a.cloneElement(e,{chevron:r})})),re=L||p?h.a.purple:p?h.a.black:h.a.blue;return s.a.createElement("div",null,s.a.createElement(I,{onMouseEnter:function(){return ne(!0)},onMouseLeave:function(){return ne(!1)}},s.a.createElement(T,{onClick:function(){e.onClick&&e.onClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,draggable:y,onDragStart:w,onDragOver:O,onDrop:S,className:"".concat(J||te||e.onClick?"can-expand":""," ").concat(p?"selected":""),onDragLeave:V,onDragEnd:C},r?J&&$?s.a.createElement(m.Icon,{icon:Z?E.a:k.a,width:"24",height:"24",onClick:function(e){e.stopPropagation(),G(!Z)}}):s.a.createElement(N,null):null,s.a.createElement(R,null,s.a.createElement(z,null),s.a.createElement(m.Icon,{icon:K,color:re,width:"24",height:"24"})),s.a.createElement("span",null,t),f&&s.a.createElement("div",{style:l},a)),ee&&H||B),Z&&s.a.createElement(D,{className:"".concat(J?"":"no-line"," ").concat(r?"":"no-chevron")},te))},F=function(e){return s.a.createElement(M,e)};F.propTypes={chevron:d.a.bool},F.defaultProps={chevron:!0};var B=function(e){return s.a.createElement(L,e)};B.propTypes={icon:d.a.oneOfType([d.a.instanceOf(m.IconifyIcon),d.a.oneOf(["gallery"])]),title:d.a.string,isExpanded:d.a.bool},B.defaultProps={icon:v.a,title:void 0,isExpanded:!1}},function(e,n,t){"use strict";t.d(n,"b",(function(){return v})),t.d(n,"a",(function(){return y}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3),f=t(6);function d(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var p=u.a.div(r||(r=d(["\n display: flex;\n align-items: center;\n"]))),h=u.a.span(o||(o=d(["\n color: ",";\n cursor: pointer;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ",';\n font-weight: bold;\n }\n\n &::after {\n content: "|";\n color: ',";\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ",";\n font-weight: normal;\n margin-left: 4px;\n }\n"])),(function(e){return e.variant||s.a.blue}),s.a.fontFamily,s.a.black,s.a.darkGray,s.a.darkGray),m=function(e){var n=e.id,t=e.value,r=e.onChange,o=e.busy,a=void 0!==o&&o,l=e.className,c=i.a.Children.map(e.children,(function(e,o){return i.a.cloneElement(e,{busy:a,isActive:e.props.value===t,onClick:function(e){e!==t&&r(e,n)}})}));return i.a.createElement(p,{className:l},c)},b=function(e){var n=e.title,t=e.value,r=void 0===t?0:t,o=e.count,l=e.onClick,c=e.busy,u=e.isActive,d=e.className,p=e.variant,m=Object(a.useMemo)((function(){if(p)return Object.keys(s.a).includes(p)?s.a[p]:p}),[p]);return i.a.createElement(h,{onClick:function(){return l(r)},className:"".concat(u?"is-active":""," ").concat(d),variant:m},n,null===o?null:i.a.createElement("span",null,"(",c?i.a.createElement(f.a,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):o,")"))},v=function(e){return i.a.createElement(m,e)};v.propTypes={id:c.a.string,value:c.a.string,onChange:c.a.func},v.defaultProps={id:void 0,value:void 0,onChange:void 0};var y=function(e){return i.a.createElement(b,e)};y.propTypes={title:c.a.string,value:c.a.string,count:c.a.number,onClick:c.a.func,isActive:c.a.bool,variant:c.a.string},y.defaultProps={title:void 0,value:"default",count:0,onClick:void 0,isActive:!1,variant:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return l})),t.d(n,"b",(function(){return c}));var r,o,a=t(4);function i(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var l=a.a.p(r||(r=i(["\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]))),c=a.a.p(o||(o=i(["\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n"])))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.canUseDOM=n.SafeNodeList=n.SafeHTMLCollection=void 0;var r,o=t(137);var a=((r=o)&&r.__esModule?r:{default:r}).default,i=a.canUseDOM?window.HTMLElement:{};n.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{},n.SafeNodeList=a.canUseDOM?window.NodeList:{},n.canUseDOM=a.canUseDOM;n.default=i},function(e,n,t){"use strict";t.d(n,"a",(function(){return E})),t.d(n,"b",(function(){return C}));var r,o,a,i,l=t(0),c=t.n(l),u=t(2),s=t.n(u),f=t(4),d=t(3),p=t(9),h=t(6);function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,n)}(e,n)||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 b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var y=f.a.div(r||(r=v(["\n"]))),g=f.a.div(o||(o=v(["\n display: flex;\n"]))),w=f.a.button(a||(a=v(["\n font-family: ",";\n font-size: ",";\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin: 0 5px 0 0;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n"])),d.a.fontFamily,d.a.fontSizeText,d.a.blue,d.a.white),x=f.a.div(i||(i=v(["\n background-color: ",";\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n"])),d.a.blue),O=function(e){var n=m(c.a.useState(0),2),t=n[0],r=n[1],o=e.children?e.children.length?e.children.filter((function(e){return!!e})):[e.children]:[];c.a.useEffect((function(){if(e.keepTabOnReload){var n=new URL(window.location.href).searchParams.get("nekoTab");if(!n)return r(0),void(e.callOnTabChangeFirst&&l(0,a[0]));var t=decodeURIComponent(n),i=c.a.Children.toArray(o).map((function(e){return e.props.title.replaceAll(" ","")})).indexOf(t);return-1===i?(r(0),void(e.callOnTabChangeFirst&&l(0,a[0]))):(r(i),void(e.callOnTabChangeFirst&&l(i,a[i])))}r(0),e.callOnTabChangeFirst&&l(0,a[0])}),[]);var a=c.a.Children.map(o,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),hidden:n.props.hidden||!1,icon:n.props.icon||!1}})),i=c.a.Children.map(o,(function(e,n){return c.a.cloneElement(e,{isActive:n===t})})),l=function(n,t,o){t.requirePro||(r(n),e.onChange&&e.onChange(n,t,o),e.keepTabOnReload&&function(e){if(history.pushState&&"string"==typeof e){var n=new URLSearchParams(window.location.search),t=encodeURIComponent(e.replaceAll(" ",""));n.set("nekoTab",t);var r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+n.toString();window.history.replaceState({path:r},"",r)}}(t.title))};return c.a.createElement(y,null,c.a.createElement(g,null,a.map((function(e,n){return c.a.createElement(w,{key:e.key,className:"neko-tab-title ".concat(n===t?"active":""," ").concat(e.requirePro?"disabled":""," ").concat(e.hidden?"hidden":""),onClick:function(t){l(n,e,t)}},e.icon&&c.a.createElement(h.a,{icon:e.icon,width:15,height:15,style:{marginRight:"2px"},raw:!0}),e.title,c.a.createElement(p.a,{className:"inline",style:{marginLeft:10,marginRight:-5,top:-1},show:e.requirePro}))}))),i)},k=function(e){var n=e.children,t=e.isActive;return c.a.createElement(x,{className:"".concat(t?"active":"")},!!t&&n)},C=function(e){return c.a.createElement(O,e)};C.propTypes={isPro:s.a.bool,onChange:s.a.func},C.defaultProps={isPro:!1,onChange:void 0};var E=function(e){return c.a.createElement(k,e)};E.propTypes={isActive:s.a.bool,requirePro:s.a.bool,title:s.a.string,icon:s.a.string},E.defaultProps={isActive:!1,requirePro:!1,title:void 0,icon:void 0}},function(e,n,t){"use strict";var r,o,a,i=t(0),l=t.n(i),c=t(2),u=t.n(c),s=t(4),f=t(3),d=t(9),p=t(5),h=t(10),m=t.n(h),b=t(13),v=t.n(b);function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,n)}(e,n)||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 g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=s.a.div(r||(r=w(["\n"]))),O=s.a.div(o||(o=w(["\n align-items: center;\n background-color: ",";\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(",", 0.25);\n cursor: default;\n }\n\n p {\n color: ",";\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ",";\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n"])),f.a.blue,f.a.yellowRGB,f.a.white,f.a.fontFamily,f.a.white),k=s.a.div(a||(a=w(["\n background-color: ",";\n display: none;\n\n &.active {\n display: block;\n }\n"])),f.a.white),C=function(e){var n=y(l.a.useState(e.activeTabIndex),2),t=n[0],r=n[1],o=l.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,rightActions:n.props.rightActions||null}})),a=l.a.Children.map(e.children,(function(e,n){return l.a.cloneElement(e,{isActive:n===t})}));return l.a.createElement(x,null,o.map((function(n,o){return l.a.createElement(l.a.Fragment,null,l.a.createElement(O,{key:n.key,className:"".concat(o===t?"active":""," ").concat(n.requirePro?"disabled":""),onClick:function(a){!function(n,o,a){if(!o.requirePro){var i=n===t?null:n;r(i),e.onChange&&e.onChange(i,o,a)}}(o,n,a)},onDragOver:n.onDragOver,onDrop:n.onDrop},l.a.createElement("p",null,l.a.createElement("span",{style:{fontSize:15}},n.title),l.a.createElement(d.a,{className:"inline",show:n.requirePro})),null===n.rightActions?l.a.createElement(p.Icon,{icon:o===t?m.a:v.a,className:"neko-side-tab-icon"}):o===t?l.a.createElement("div",{style:{marginLeft:"auto"}},n.rightActions):l.a.createElement(p.Icon,{icon:v.a,className:"neko-side-tab-icon"})),a[o])})))},E=function(e){var n=e.children,t=e.isActive;return l.a.createElement(k,{className:"".concat(t?"active":"")},n)},S=function(e){return l.a.createElement(C,e)};S.propTypes={isPro:u.a.bool,onChange:u.a.func,activeTabIndex:u.a.number},S.defaultProps={isPro:!1,onChange:void 0,activeTabIndex:null};var j=function(e){return l.a.createElement(E,e)};j.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,onDragOver:u.a.func,onDrop:u.a.func,rightActions:u.a.element},j.defaultProps={isActive:!1,requirePro:!1,title:void 0,onDragOver:void 0,onDrop:void 0,rightActions:void 0}},function(e,n,t){"use strict";var r=t(29),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(n,t,r){if("string"!=typeof t){if(h){var o=p(t);o&&o!==h&&e(n,o,r)}var i=s(t);f&&(i=i.concat(f(t)));for(var l=c(n),m=c(t),b=0;b<i.length;++b){var v=i[b];if(!(a[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=d(t,v);try{u(n,v,y)}catch(e){}}}}return n}},function(e,n,t){"use strict";function r(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var n=this,t=arguments;return new Promise((function(o,a){var i=e.apply(n,t);function l(e){r(i,o,a,l,c,"next",e)}function c(e){r(i,o,a,l,c,"throw",e)}l(void 0)}))}}function a(e){return(a="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})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,n){return(l=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function c(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=s(e);if(n){var o=s(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return u(this,t)}}function u(e,n){if(n&&("object"===a(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(n,"__esModule",{value:!0});var f=t(126),d=t(127),p=t(129),h=function(){},m=new d.TimeoutError,b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&l(e,n)}(y,e);var n,t,r,u,s,f,b,v=c(y);function y(e){var n,t,r,o,i;if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,y),(n=v.call(this))._intervalCount=0,n._intervalEnd=0,n._pendingCount=0,n._resolveEmpty=h,n._resolveIdle=h,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:p.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(r=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==r?r:"","` (").concat(a(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(i=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==i?i:"","` (").concat(a(e.interval),")"));return n._carryoverConcurrencyCount=e.carryoverConcurrencyCount,n._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,n._intervalCap=e.intervalCap,n._interval=e.interval,n._queue=new e.queueClass,n._queueClass=e.queueClass,n.concurrency=e.concurrency,n._timeout=e.timeout,n._throwOnTimeout=!0===e.throwOnTimeout,n._isPaused=!1===e.autoStart,n}return n=y,(t=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=h,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=h,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,n=Date.now();if(void 0===this._intervalId){var t=this._intervalEnd-n;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var n=this._queue.dequeue();return!!n&&(this.emit("active"),n(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(a(e),")"));this._concurrency=e,this._processQueue()}},{key:"add",value:(b=o(regeneratorRuntime.mark((function e(n){var t,r=this,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise((function(e,a){var i=function(){var i=o(regeneratorRuntime.mark((function o(){var i;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r._pendingCount++,r._intervalCount++,o.prev=2,i=void 0===r._timeout&&void 0===t.timeout?n():d.default(Promise.resolve(n()),void 0===t.timeout?r._timeout:t.timeout,(function(){(void 0===t.throwOnTimeout?r._throwOnTimeout:t.throwOnTimeout)&&a(m)})),o.t0=e,o.next=7,i;case 7:o.t1=o.sent,(0,o.t0)(o.t1),o.next=14;break;case 11:o.prev=11,o.t2=o.catch(2),a(o.t2);case 14:r._next();case 15:case"end":return o.stop()}}),o,null,[[2,11]])})));return function(){return i.apply(this,arguments)}}();r._queue.enqueue(i,t),r._tryToStartAnother(),r.emit("add")})));case 2:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)})},{key:"addAll",value:(f=o(regeneratorRuntime.mark((function e(n,t){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(n.map(function(){var e=o(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.add(n,t));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,n){return f.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(s=o(regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var t=n._resolveEmpty;n._resolveEmpty=function(){t(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"onIdle",value:(u=o(regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var t=n._resolveIdle;n._resolveIdle=function(){t(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}])&&i(n.prototype,t),r&&i(n,r),y}(f);n.default=b},function(e,n,t){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var n={};return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));n.a=o},function(e,n,t){"use strict";t.d(n,"a",(function(){return v}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(11);function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||f(e,n)||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 f(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,n):void 0}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p,h,m=c.a.div(r||(p=["\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}})))),b=function(e){var n=e.className,t=e.children,r=e.nekoErrors,i=void 0===r?[]:r,l=e.style,c=void 0===l?{}:l,d=s(Object(o.useState)(!1),2),p=d[0],h=d[1],b=s(Object(o.useState)(!1),2),v=b[0],y=b[1];if(i&&!p){var g,w=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=f(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}(i);try{for(w.s();!(g=w.n()).done;){var x=g.value;if(x){h(x);break}}}catch(e){w.e(e)}finally{w.f()}}return a.a.createElement(m,{className:n||"",style:c},p&&a.a.createElement("div",{className:"neko-rest-error"},a.a.createElement("div",{className:"container"},!v&&a.a.createElement(a.a.Fragment,null,a.a.createElement("h3",null,"The Rest API is disabled or broken 😢"),a.a.createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),a.a.createElement("p",null,a.a.createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),a.a.createElement("p",{className:"neko-debug"},a.a.createElement("small",null,"URL: ",p.url,a.a.createElement("br",null),"CODE: ",p.code,a.a.createElement("br",null),"MESSAGE: ",p.message,a.a.createElement("br",null)))),p.body&&v&&a.a.createElement("p",{className:"neko-debug"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:p.body}})),p.body&&a.a.createElement(u.a,{color:"#a94242",onClick:function(){return y(!v)}},v?"Hide":"Display"," response from server"),a.a.createElement(u.a,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),t)},v=function(e){return a.a.createElement(b,e)};v.propTypes={className:l.a.string,style:l.a.object,nekoErrors:l.a.bool},v.defaultProps={className:void 0,style:{},nekoErrors:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return b}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(17),f=t(15);var d,p,h=c.a.div(r||(d=["\n font-size: ",";\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ",";\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ",";\n\n .nui-block-title {\n color: ",";\n }\n\n .nui-block-content {\n background-color: ",";\n }\n }\n"],p||(p=d.slice(0)),r=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(p)}}))),u.a.fontSizeText,u.a.blue,u.a.blue,u.a.white,u.a.white),m=function(e){var n=e.title,t=e.children,r=e.className,o=e.busy,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.action;return a.a.createElement(h,{className:"nui-block "+(r||""),style:c},a.a.createElement(f.a,{busy:i},a.a.createElement("div",{className:"nui-block-header"},a.a.createElement(s.a,{h2:!0,className:"nui-block-title"},n),!!u&&u),a.a.createElement("div",{className:"nui-block-content"},t)))},b=function(e){return a.a.createElement(m,e)};b.propTypes={title:l.a.string,className:l.a.oneOf(["","primary"]),style:l.a.object,action:l.a.element},b.defaultProps={title:void 0,className:"",style:{},action:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3);function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var d=u.a.div(r||(r=f(["\n font-size: ",";\n font-family: ",";\n background-color: ",";\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ",";\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n"])),s.a.fontSizeText,s.a.fontFamily,s.a.white,s.a.blue),p=u.a.div(o||(o=f(["\n justify-content: flex-start;\n background-color: ",";\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n"])),s.a.lightGray2),h=function(e){var n=e.children,t=e.header,r=e.headerAlign,o=void 0===r?"left":r,a=e.footer,l=e.footerAlign,c=void 0===l?"right":l,u=e.className,s=e.style,f=void 0===s?{}:s;return i.a.createElement(d,{className:u||"",style:f},t&&i.a.createElement(p,{className:"align-".concat(o)},t),i.a.createElement("div",{className:"content"},n),a&&i.a.createElement(p,{className:"align-".concat(c)},a))},m=function(e){return i.a.createElement(h,e)};m.propTypes={header:c.a.element,headerAlign:c.a.oneOf(["left","right"]),footer:c.a.element,footerAlign:c.a.oneOf(["left","right"]),className:c.a.string,style:c.a.object},m.defaultProps={header:void 0,headerAlign:"left",footer:void 0,footerAlign:"right",className:void 0,style:{}}},function(e,n,t){"use strict";t.d(n,"a",(function(){return p}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3);var s,f,d=Object(c.a)((function(e){var n=e.title,t=void 0===n?"":n,r=e.contentAlign,o=void 0===r?"left":r;return a.a.createElement("div",{className:e.className||""},t?a.a.createElement("div",{className:"nui-settings-head"},t):null,a.a.createElement("div",{className:"nui-settings-content nui-settings-content-align-".concat(o)},e.children))}))(r||(s=["\n display: flex;\n font-family: ",";\n\n > .nui-settings-head {\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n"],f||(f=s.slice(0)),r=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(f)}}))),u.a.fontFamily,u.a.fontFamily),p=function(e){return a.a.createElement(d,e)};p.propTypes={title:l.a.string,className:l.a.string,contentAlign:l.a.string},p.defaultProps={title:"",className:void 0,contentAlign:"left"}},function(e,n,t){"use strict";var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(3);function f(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var d=u.a.div(r||(r=f(["\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n"]))),p=Object(u.a)((function(e){return e.children?i.a.createElement("div",{className:e.className},e.children):null}))(o||(o=f(["\n background-color: ",";\n color: white;\n"])),s.a.blue),h=function(e){return i.a.createElement(d,{className:"window"},i.a.createElement(p,null,e.title),e.children)},m=function(e){return i.a.createElement(h,e)};m.propTypes={title:c.a.string},m.defaultProps={title:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return w}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=t(9),f=t(16),d=t(5),p=t(22),h=t.n(p),m=t(38),b=t.n(m);var v,y,g=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.checked,o=void 0!==r&&r,i=e.onChange,l=e.label,c=e.description,p=e.isPro,m=e.disabled,v=e.requirePro,y=void 0!==v&&v,g=e.isBusy,w=void 0!==g&&g,x=y&&!p,O=m||x,k=O?"disabled":"";return a.a.createElement("div",{className:["nui-checkbox",e.className,k].join(" "),onClick:function(e){return e.stopPropagation()}},a.a.createElement("input",{id:n,name:t,type:"checkbox",defaultChecked:!1,disabled:O||w}),a.a.createElement("label",{htmlFor:n,onClick:function(){O||(i?i(!o,n):console.log("The onChange handler it not set for the NekoCheckbox.",e))}},a.a.createElement("div",{className:"nui-checkbox-check-container"},w?a.a.createElement("div",{className:"nui-checkbox-busy-container"},a.a.createElement(d.Icon,{icon:h.a,width:"30px",height:"30px",color:u.a.blue}),a.a.createElement(f.a,{type:"circle",size:"16px",style:{position:"absolute",top:"7px",left:"7px"}})):a.a.createElement(d.Icon,{icon:o?b.a:h.a,width:"30px",height:"30px",color:O?u.a.disabledForm:u.a.blue})),a.a.createElement("div",{className:"nui-checkbox-inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(s.a,{className:"inline",show:x})),c?a.a.createElement("small",{className:"description"},c):null)))}))(r||(v=["\n font-family: ",";\n user-select: none;\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .nui-checkbox-check-container {\n display: flex;\n align-content: center;\n flex-basis: 30px;\n\n .nui-checkbox-busy-container {\n position: relative\n }\n }\n .nui-checkbox-inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n"],y||(y=v.slice(0)),r=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(y)}}))),u.a.fontFamily,u.a.disabledForm),w=function(e){return a.a.createElement(g,e)};w.propTypes={id:l.a.string,name:l.a.string,checked:l.a.bool,label:l.a.string,description:l.a.string,isPro:l.a.bool,requirePro:l.a.bool,isBusy:l.a.bool},w.defaultProps={id:void 0,name:void 0,checked:!1,label:void 0,description:void 0,isPro:!1,requirePro:!1,isBusy:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4);var u,s,f=Object(c.a)((function(e){var n=e.name,t=(e.max,e.isPro),r=void 0!==t&&t;return a.a.Children.map(e.children,(function(e){return e.props.name?e:a.a.cloneElement(e,{name:n,isPro:r})}))}))(r||(u=["\n"],s||(s=u.slice(0)),r=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(s)}})))),d=function(e){return a.a.createElement(f,e)};d.propTypes={name:l.a.string,mas:l.a.number,isPro:l.a.bool},d.defaultProps={name:void 0,mas:-1,isPro:!1}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["id","name","value","description","placeholder","avoidOnEnterWithShift","onEnter","readOnly","maxLength","className","style","textAreaStyle","countable"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,n)}(e,n)||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 p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var m,b,v=Object(c.a)((function(e){var n=e.id,t=e.name,r=e.value,i=void 0===r?"":r,l=e.description,c=e.placeholder,u=void 0===c?"":c,p=e.avoidOnEnterWithShift,m=void 0!==p&&p,b=e.onEnter,v=void 0===b?null:b,y=e.readOnly,g=void 0!==y&&y,w=e.maxLength,x=void 0===w?null:w,O=e.className,k=e.style,C=e.textAreaStyle,E=void 0===C?{}:C,S=e.countable,j=void 0!==S&&S,_=h(e,s),P=d(Object(o.useState)(i),2),A=P[0],M=P[1],I=d(Object(o.useState)(0),2),T=I[0],N=I[1],R=d(Object(o.useState)(!1),2),z=R[0],D=R[1],L=!!e.onChange,F=Object(o.useCallback)((function(e){D(e.shiftKey)}),[]),B=Object(o.useCallback)((function(){D(!1)}),[]);Object(o.useEffect)((function(){return document.addEventListener("keydown",F,!1),document.addEventListener("keyup",B,!1),function(){document.removeEventListener("keydown",F,!1),document.removeEventListener("keyup",B,!1)}}),[]),Object(o.useEffect)((function(){L||M(i),j&&N(i.length)}),[i,j]);var U=Object(o.useCallback)((function(t){var r=x?t.target.value.substr(0,x):t.target.value;L?e.onChange(r,n):M(r,n)}),[x,e.onChange]);return a.a.createElement("div",{className:[O].join(" "),style:k},a.a.createElement("div",{className:"neko-textarea-container"},a.a.createElement("textarea",f({className:"neko-textarea",rows:6},_,{id:n,name:t,spellCheck:"false",placeholder:u,onChange:U,onKeyPress:function(t){if(v&&!t.shiftKey&&"Enter"===t.key){if(m&&z)return;t.preventDefault(),e.onEnter(t.target.value,n)}},onBlur:function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},readOnly:g,style:E,value:L?i:A})),j&&a.a.createElement("p",{className:"neko-textarea-count"},T," / ",x," characters")),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(r||(m=["\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n .neko-textarea-count {\n color: rgba(",", 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"],b||(b=m.slice(0)),r=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(b)}}))),u.a.fontFamily,u.a.fontSizeText,u.a.blue,u.a.gray,u.a.blackRGB,u.a.fontFamily,u.a.fontSizeSmall),y=function(e){return a.a.createElement(v,e)};y.propTypes={id:l.a.string,name:l.a.string,value:l.a.string,description:l.a.string,placeholder:l.a.string,onChange:l.a.func,onEnter:l.a.func,onBlur:l.a.func,readOnly:l.a.bool,avoidOnEnterWithShift:l.a.bool},y.defaultProps={id:void 0,name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,avoidOnEnterWithShift:!1}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(4);t(3);var l,c,u=i.a.div(r||(l=["\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n"],c||(c=l.slice(0)),r=Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(c)}})))),s=function(e){return a.a.createElement(u,null,e.children||null)},f=function(e){return a.a.createElement(s,e)};f.propTypes={},f.defaultProps={}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(3),s=["width","height","fontSize","onValue","offValue","checked","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onChange","disabled"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p,h,m=Object(c.a)((function(e){e.width,e.height,e.fontSize;var n=e.onValue,t=e.offValue,r=e.checked,i=void 0!==r&&r,l=(e.onBackgroundColor,e.offBackgroundColor,e.onLabel,e.offLabel,e.onChange),c=e.disabled,u=d(e,s),p=Object(o.useCallback)((function(e){l(e.target.checked?n:t)}),[l,n,t]);return a.a.createElement("label",f({},u,{"data-is-disabled":c?"disabled":""}),a.a.createElement("input",{type:"checkbox",onChange:p,checked:i,disabled:c}),a.a.createElement("span",{className:"nui-switch-slider"}))}))(r||(p=["\n color: ",";\n font-family: ",";\n font-size: ",";\n position: relative;\n display: inline-block;\n width: ",";\n height: ",";\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ",";\n border-radius: ",';\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: "";\n height: ',";\n width: ",';\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: "','";\n margin-left: auto;\n margin-right: ',";\n }\n\n input:checked + .nui-switch-slider {\n background-color: ",";\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(",');\n }\n\n input:checked + .nui-switch-slider:after {\n content: "','";\n margin-left: ',";\n margin-right: auto;\n }\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))),u.a.white,u.a.fontFamily,(function(e){return e.fontSize}),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.offBackgroundColor}),(function(e){return e.height}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return e.offLabel}),(function(e){return"calc(".concat(e.height," / 2)")}),(function(e){return e.onBackgroundColor}),(function(e){return"calc(".concat(e.width," - ").concat(e.height,")")}),(function(e){return e.onLabel}),(function(e){return"calc(".concat(e.height," / 2)")})),b=function(e){return a.a.createElement(m,e)};b.propTypes={width:l.a.string,height:l.a.string,fontSize:l.a.string,onValue:l.a.string,offValue:l.a.string,checked:l.a.bool,onBackgroundColor:l.a.string,offBackgroundColor:l.a.string,onLabel:l.a.string,offLabel:l.a.string},b.defaultProps={width:"100%",height:"20px",fontSize:"12px",checked:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var r,o,a=t(0),i=t.n(a),l=t(2),c=t.n(l),u=t(4),s=t(8),f=t(5),d=t(33),p=t.n(d),h=t(35),m=t.n(h),b=t(34),v=t.n(b),y=t(3);function g(e){return(g="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})(e)}function w(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var x=Object(u.a)((function(e){var n=e.value,t=void 0===n?0:n,r=e.max,o=void 0===r?100:r,a=e.busy,l=void 0!==a&&a,c=e.status;t=Math.min(t,o);var u=parseFloat(t)/parseFloat(o);return i.a.createElement("div",{className:e.className},i.a.createElement(O,{ratio:u,busy:e.busy,status:c}),i.a.createElement("div",{className:"nui-progress-buttons"},l&&e.onPauseClick&&i.a.createElement("div",{className:"nui-progress-button pause",onClick:e.onPauseClick},e.paused?i.a.createElement(f.InlineIcon,{icon:v.a}):i.a.createElement(f.InlineIcon,{icon:p.a})),l&&e.onStopClick&&i.a.createElement("div",{className:"nui-progress-button stop",onClick:e.onStopClick},i.a.createElement(f.InlineIcon,{icon:m.a}))))}))(r||(r=w(["\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.stop {\n background: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n }\n }\n"])),y.a.blue,Object(s.a)(.1,y.a.blue),y.a.red,Object(s.a)(.1,y.a.red)),O=Object(u.a)((function(e){var n,t,r,o=isNaN(e.ratio)?0:parseInt(Math.round(100*e.ratio)),a=g(e.status),l="undefined"!==a?"string"===a?e.status:e.status(o):"".concat(o,"%");return i.a.createElement("div",{className:e.className,style:(n={minWidth:28},t="minWidth",r=o+"%",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n)},i.a.createElement("div",null,l))}))(o||(o=w(["\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ",";\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ",";\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ",";\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n"])),y.a.progress,y.a.fontFamily,(function(e){return e.busy?"animate-stripes 1.6s linear infinite":"none"})),k=function(e){return i.a.createElement(x,e)};k.propTypes={value:c.a.number,max:c.a.number,busy:c.a.bool,paused:c.a.bool,onPauseClick:c.a.func,onStopClick:c.a.func,status:c.a.oneOf([c.a.string,c.a.func])},k.defaultProps={value:0,max:100,busy:!1,paused:!1,onPauseClick:void 0,onStopClick:void 0,status:void 0}},function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(24),s=t(6),f=t(3),d=t(117),p=t.n(d);var h,m,b=c.a.div(r||(h=["\n position: relative;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ",";\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(",", 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ",";\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ",";\n line-height: normal;\n font-size: ",";\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n"],m||(m=h.slice(0)),r=Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(m)}}))),f.a.fontFamily,f.a.fontSizeText,f.a.header,f.a.blackRGB,f.a.fontFamily,f.a.fontFamily,f.a.fontSizeText),v=function(e){var n=e.title,t=void 0===n?"NekoUI":n,r=e.subtitle,o=void 0===r?"By Jordy Meow":r,i=e.children,l=e.saving,c=void 0!==l&&l;return a.a.createElement(b,null,a.a.createElement("div",{className:"nui-header-logo-container"},a.a.createElement(u.a,null)),a.a.createElement("div",{className:"nui-header-title-container"},a.a.createElement("h1",{className:"nui-header-title"},t),a.a.createElement("small",{className:"nui-header-subtitle"},a.a.createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},o))),a.a.createElement("div",{className:"nui-header-extra-content"},i),c&&a.a.createElement(s.a,{icon:p.a,width:"36",height:"36"}))},y=function(e){return a.a.createElement(v,e)};y.propTypes={title:l.a.string,subtitle:l.a.string,saving:l.a.bool},y.defaultProps={title:"NekoUI",subtitle:"By Jordy Meow",saving:!1}},function(e,n,t){"use strict";t.d(n,"a",(function(){return f}));var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i);var c,u,s=t(4).a.section(r||(c=["\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ","px;\n height: ","px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ","px;\n height: ",'px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: "";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ',";\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ","px;\n height: ",'px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ',"px;\n height: ","px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ","px;\n height: ","px;\n \n .semi-circle--mask {\n transform: rotate(","deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ","px;\n height: ","px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n"],u||(u=c.slice(0)),r=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(u)}}))),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.backgroundColor}),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.width+2}),(function(e){return e.width/2+2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.degrees}),(function(e){return e.width+2}),(function(e){return e.width/2})),f=function(e){var n=e.value,t=void 0===n?1e3:n,r=(e.min,e.max),o=void 0===r?2500:r,i=e.width,l=void 0===i?200:i,c=e.background,u=void 0===c?"#007cba":c,f=e.children,d=180*(t<=o?t:o)/o;return a.a.createElement(s,{backgroundColor:u,degrees:d,width:l},a.a.createElement("div",{class:"gauge"},a.a.createElement("div",{class:"mask"},a.a.createElement("div",{class:"semi-circle"}),a.a.createElement("div",{class:"semi-circle--mask"})),a.a.createElement("div",{class:"child-container"},a.a.createElement("div",{class:"child"},a.a.createElement("div",{class:"spacing"}),f))))};f.propTypes={value:l.a.number,min:l.a.number,max:l.a.number,width:l.a.number,background:l.a.string},f.defaultProps={value:1e3,min:0,max:2500,width:200,background:"#007cba"}},function(e,n,t){"use strict";var r,o=t(0),a=t.n(o),i=t(2),l=t.n(i),c=t(4),u=t(1),s=["multiple","width","height","iconSize","iconColor","onSuccess","onFailure","style","apiUrl","apiConfig","onClick","disabled"];function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){h(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function h(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(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 b(e,n,t,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function i(e){b(a,r,o,i,l,"next",e)}function l(e){b(a,r,o,i,l,"throw",e)}i(void 0)}))}}function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||g(e,n)||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 g(e,n){if(e){if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,n):void 0}}function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function x(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var O,k,C=c.a.div(r||(O=["\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n"],k||(k=O.slice(0)),r=Object.freeze(Object.defineProperties(O,{raw:{value:Object.freeze(k)}})))),E=function(e){var n=e.multiple,t=e.width,r=void 0===t?"100%":t,i=e.height,l=void 0===i?"100%":i,c=e.iconSize,d=void 0===c?48:c,h=e.iconColor,b=void 0===h?"#A9A9A9":h,g=e.onSuccess,w=void 0===g?function(){}:g,O=e.onFailure,k=void 0===O?function(){}:O,E=e.style,S=void 0===E?{}:E,j=e.apiUrl,_=e.apiConfig,P=e.onClick,A=e.disabled,M=x(e,s),I=y(Object(o.useState)(!1),2),T=I[0],N=I[1],R=y(Object(o.useState)(Math.floor(1e8*Math.random())),2),z=R[0],D=(R[1],Object(o.useRef)(null)),L=Object(o.useRef)(null),F=y(Object(o.useState)(!1),2),B=F[0],U=F[1];Object(o.useEffect)((function(){L&&(L.current.style.pointerEvents=B?"none":"auto")}),[L,B]);var H=function(){var e=v(regeneratorRuntime.mark((function e(t){var r,o,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return U(!0),r=function(){var e=v(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _.file=n,e.next=3,Object(u.G)(j,_);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(t.map(function(){var e=v(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:o=e.sent,a=o.filter((function(e){return e.success})),i=o.filter((function(e){return!e.success})),a.length&&w(n?a:a[0]),i.length&&k(n?i:i[0]),U(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),V=function(e){e.preventDefault(),e.stopPropagation()},q=function(e){e.preventDefault(),e.stopPropagation(),N(!0)},$=function(e,n){n.preventDefault(),n.stopPropagation(),N(!1),console.log(e),H(e)};return a.a.createElement("div",{ref:L},a.a.createElement("input",{type:"file",id:z,accept:"image/*",ref:D,onChange:function(e){var n=m(e.target.files);$(n,e)},style:{display:"none"},disabled:A,multiple:n}),a.a.createElement(C,f({onClick:function(){P?P():D.current.click()},style:p(p({},S),{},{width:r,height:l}),className:T?"dropping":"",onDragOver:V,onDragEnter:q,onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),N(!1)},onDrop:function(e){var n=m(e.dataTransfer.files);$(n,e)},"data-is-disabled":A},M),a.a.createElement(u.j,{width:d,height:d,icon:"upload",spinning:B,color:b,onDragOver:V,onDragEnter:q})))};E.propTypes={width:l.a.string,height:l.a.string,onSuccess:l.a.func,onFailure:l.a.func,style:l.a.object,apiUrl:l.a.string,apiConfig:l.a.object},E.defaultProps={width:"100%",height:"100%",onSuccess:function(){},onFailure:function(){},style:{}}},function(e,n,t){"use strict";var r,o,a,i,l,c=t(0),u=t(2),s=t.n(u),f=t(4),d=t(3),p=["month","year","onEventClicked","onEventMoved","eventBuilder","events"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,n)}(e,n)||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 v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function g(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var w={Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6,Sunday:7},x=f.a.div(r||(r=g(["\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n font-family: ",";\n font-size: 12px;\n"])),d.a.fontFamily),O=f.a.div(o||(o=g(["\n display: flex;\n width: 100%;\n padding: 10px 0px;\n color: white;\n background: ",";\n border-radius: 5px 5px 0px 0px;\n\n div {\n width: calc(100% / 7);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])),d.a.primary),k=f.a.div(a||(a=g(["\n display: flex;\n flex-direction: column;\n"]))),C=f.a.div(i||(i=g(["\n display: flex;\n"]))),E=f.a.div(l||(l=g(["\n background: purple;\n width: calc(100% / 7);\n background: ",";;\n padding: 3px;\n border-bottom: 1px solid ",";\n border-right: 1px solid ",";\n position: relative;\n transition: background-color 150ms linear;\n box-sizing: border-box;\n\n &:first-child {\n border-left: 1px solid ",";\n }\n\n &:last-child {\n border-right: 1px solid ",";\n }\n\n .day {\n text-align: right;\n color: ",";\n margin-bottom: 5px;\n }\n\n &.highlighted {\n background: #ffe8bc;\n }\n\n &.today .day {\n font-weight: bold;\n text-decoration: underline;\n }\n\n .gray-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ",";\n opacity: 0.8;\n }\n\n .event {\n margin-bottom: 2px;\n }\n\n .event:last-child {\n margin-bottom: 0px;\n }\n"])),d.a.white,d.a.lightGray,d.a.lightGray,d.a.lightGray,d.a.lightGray,d.a.black,d.a.lightGray);var S=function(e){var n=e.month,t=void 0===n?(new Date).getMonth():n,r=e.year,o=void 0===r?(new Date).getFullYear():r,a=e.onEventClicked,i=void 0===a?function(){console.log("[NekoCalendar] onEventClicked not handled.")}:a,l=e.onEventMoved,u=void 0===l?function(){console.log("[NekoCalendar] onEventMoved not handled.")}:l,s=e.eventBuilder,f=void 0===s?function(){return"YOOO"}:s,d=e.events,v=y(e,p),g=b(Object(c.useState)(),2),S=g[0],j=g[1],_=b(Object(c.useState)(),2),P=_[0],A=_[1],M=e.disableDaysBefore,I=void 0===M?null:M;I=I||new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate());var T=Object(c.useMemo)((function(){for(var e=[],n=function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.Monday,r=new Date(n,e);r.getDay()!==t;)r.setDate(r.getDate()-1);return r}(t,o,w.Monday),r=function(e,n){for(var t=new Date(e),r=new Date(n),o=0;t<=r;)o++,t.setDate(t.getDate()+1);return o-1}(n,new Date(o,t,1))<5?34:41,a=new Date(n).setDate(n.getDate()+r);n<=a;)e.push(new Date(n)),n.setDate(n.getDate()+1);return function(e,n){for(var t=[],r=0;r<e.length;)t.push(e.slice(r,r+=n));return t}(e,7)}),[t,o]);return React.createElement(x,v,React.createElement(O,null,Object.keys(w).map((function(e){return React.createElement("div",{key:e},e)}))),React.createElement(k,null,T.map((function(e){return React.createElement(C,{key:e},e.map((function(e){var n,r,o=e.getMonth()==t,a=!o||e<I,l=(a?"disabled ":"")+(n=e,r=new Date,n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()?"today":"")+(e===P?"highlighted":""),c=d.filter((function(n){return o&&n.date.getDate()===e.getDate()}));return React.createElement(E,{className:l,key:e.getTime(),onDragOver:function(n){return!a&&(t=e,r=S.date,t.getFullYear()!==r.getFullYear()||t.getMonth()!==r.getMonth()||t.getDate()!==r.getDate())&&(n.preventDefault(),A(e),!0);var t,r},onDragLeave:function(){return A(null)},onDrop:function(){u(e,S),A(null)}},React.createElement("div",{className:"day"},e.getDate()),c.map((function(e){return React.createElement("div",{className:"event",key:e.key,draggable:e.draggable,onClick:function(){return i(e)},onDragStart:function(n){return j(e)}},f(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){m(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e)))})),a&&React.createElement("div",{className:"gray-overlay"}))})))}))))};S.propTypes={month:s.a.number,year:s.a.number,disableDaysBefore:s.a.instanceOf(Date),disableDaysAfter:s.a.instanceOf(Date),eventBuilder:s.a.func,events:s.a.array,onEventClicked:s.a.func,onEventMoved:s.a.func},S.defaultProps={month:(new Date).getMonth(),year:(new Date).getFullYear(),disableDaysBefore:null,disableDaysAfter:null,eventBuilder:function(){return"UI for this event"},events:[{key:"A1",date:new Date},{key:"A2",date:new Date}],onEventClicked:function(e){console.log("An event was clicked",e)},onEventMoved:function(e,n){console.log("An event was moved to another day",n,e)}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(n){return[].slice.call(n.querySelectorAll("*"),0).reduce((function(n,t){return n.concat(t.shadowRoot?e(t.shadowRoot):[t])}),[]).filter(i)};
2
  /*!
3
  * Adapted from jQuery UI core
4
  *
common/admin.php CHANGED
@@ -146,7 +146,7 @@ if ( !class_exists( 'MeowCommon_Admin' ) ) {
146
  }
147
 
148
  function get_phpinfo() {
149
- if ( !current_user_can( 'administrator' ) ) {
150
  return;
151
  }
152
  ob_start();
146
  }
147
 
148
  function get_phpinfo() {
149
+ if ( !current_user_can( 'administrator' ) || !function_exists( 'phpinfo' ) ) {
150
  return;
151
  }
152
  ob_start();
media-file-renamer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Media File Renamer
4
  Plugin URI: https://meowapps.com
5
  Description: Renames your media files for better SEO and a nicer filesystem (automatically or manually).
6
- Version: 5.4.0
7
  Author: Jordy Meow
8
  Author URI: https://meowapps.com
9
  Text Domain: media-file-renamer
@@ -15,7 +15,7 @@ Originally developed for two of my websites:
15
  */
16
 
17
  if ( !defined( 'MFRH_VERSION' ) ) {
18
- define( 'MFRH_VERSION', '5.4.0' );
19
  define( 'MFRH_PREFIX', 'mfrh' );
20
  define( 'MFRH_DOMAIN', 'media-file-renamer' );
21
  define( 'MFRH_ENTRY', __FILE__ );
3
  Plugin Name: Media File Renamer
4
  Plugin URI: https://meowapps.com
5
  Description: Renames your media files for better SEO and a nicer filesystem (automatically or manually).
6
+ Version: 5.4.1
7
  Author: Jordy Meow
8
  Author URI: https://meowapps.com
9
  Text Domain: media-file-renamer
15
  */
16
 
17
  if ( !defined( 'MFRH_VERSION' ) ) {
18
+ define( 'MFRH_VERSION', '5.4.1' );
19
  define( 'MFRH_PREFIX', 'mfrh' );
20
  define( 'MFRH_DOMAIN', 'media-file-renamer' );
21
  define( 'MFRH_ENTRY', __FILE__ );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://meowapps.com/donation/
5
  Requires at least: 5.0
6
  Tested up to: 6.0
7
  Requires PHP: 7.0
8
- Stable tag: 5.4.0
9
 
10
  Renames your media files for better SEO and a nicer filesystem (automatically or manually).
11
 
@@ -69,11 +69,14 @@ The plugin can be tweaked in many ways, there are many actions and filters avail
69
 
70
  == Changelog ==
71
 
 
 
 
 
 
72
  = 5.4.0 (2022/07/05) =
73
  * Add: Support for Elementor (update the metadata and CSS).
74
  * Update: Use the default WordPress font (to avoid loading data from Google Fonts) and a few UI enhancements.
75
- * Note 1: I released a new plugin! 🎉 It's simply called Database Cleaner. It's probably already the most powerful cleaner for DB, so please give it a try: [Database Cleaner](https://wordpress.org/plugins/database-cleaner/).
76
- * Note 2: This plugin is a lot of work. If you like it, please write a little review [by clicking here](https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post). Thank you 💕
77
 
78
  = 5.3.9 (2022/06/16) =
79
  * Fix: The WebP files weren't not renamed perfectly.
5
  Requires at least: 5.0
6
  Tested up to: 6.0
7
  Requires PHP: 7.0
8
+ Stable tag: 5.4.1
9
 
10
  Renames your media files for better SEO and a nicer filesystem (automatically or manually).
11
 
69
 
70
  == Changelog ==
71
 
72
+ = 5.4.1 (2022/08/03)
73
+ * Fix: Tiny UI bug in Safari.
74
+ * Note 1: I released a new plugin! 🎉 It's simply called Database Cleaner. It's probably already the most powerful cleaner for DB, so please give it a try: [Database Cleaner](https://wordpress.org/plugins/database-cleaner/).
75
+ * Note 2: This plugin is a lot of work. If you like it, please write a little review [by clicking here](https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post). Thank you 💕
76
+
77
  = 5.4.0 (2022/07/05) =
78
  * Add: Support for Elementor (update the metadata and CSS).
79
  * Update: Use the default WordPress font (to avoid loading data from Google Fonts) and a few UI enhancements.
 
 
80
 
81
  = 5.3.9 (2022/06/16) =
82
  * Fix: The WebP files weren't not renamed perfectly.