diff --git a/Makefile b/Makefile index d8bf8b8..0cb1afa 100644 --- a/Makefile +++ b/Makefile @@ -3,16 +3,20 @@ ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) VENV:=${ROOT_DIR}/venv/bin default: - @echo "Available commands" - @echo "'lint'" - @echo "'fix'" - @echo "'run'" - @echo "'test'" - @echo "'install'" - @echo "'upgrade'" - @echo "'deploy'" - @echo "'start'" - @echo "'build'" + @echo "== Available commands for python ==" + @echo "'pylint'\truns flake8" + @echo "'pyfix'\t\truns black" + @echo "'run'\t\truns manage.py runserver" + @echo "'test'\t\truns pytest" + @echo "'upgrade'\tupgrades python dependencies" + @echo "'deploy'\truns deploy script for vigilio" + @echo "" + @echo "== Available commands for JS ==" + @echo "'jslint'\truns prettier check" + @echo "'jsfix'\t\truns prettier write" + @echo "'install'\truns yarn install" + @echo "'start'\t\truns webpack in dev mode (watch)" + @echo "'build'\t\truns webpack build in prod mode" check_venv: @if [ -a ${ROOT_DIR}/venv/bin/activate ]; \ @@ -30,9 +34,9 @@ check_venv: echo "Resuming normal operation"; \ fi; -activate: check_venv - @echo "Activating virtualenv" - @. ${VENV}/activate; +# ======================================================== +# JS +# ======================================================== jslint: @echo "Running JS linter" @@ -44,6 +48,27 @@ jsfix: yarn --cwd ${ROOT_DIR}/frontend fix @echo "Linter process ended" +install: + @echo "Initiating node server..." + yarn --cwd ${ROOT_DIR}/frontend install + +start: + @echo "Initiating node server..." + yarn --cwd ${ROOT_DIR}/frontend start + +build: + @echo "Compiling js files..." + yarn --cwd ${ROOT_DIR}/frontend build + @echo "Compilation has finished." + +# ======================================================== +# PYTHON +# ======================================================== + +activate: check_venv + @echo "Activating virtualenv" + @. ${VENV}/activate; + pylint: activate @echo "Running linter" @${VENV}/flake8 ${ROOT_DIR} @@ -62,19 +87,6 @@ run: activate @echo "Running the server" @${VENV}/python ${ROOT_DIR}/manage.py runserver -install: - @echo "Initiating node server..." - yarn --cwd ${ROOT_DIR}/frontend install - -start: - @echo "Initiating node server..." - yarn --cwd ${ROOT_DIR}/frontend start - -build: - @echo "Compiling js files..." - yarn --cwd ${ROOT_DIR}/frontend build - @echo "Compilation has finished." - upgrade: activate @echo "Upgrading dependencies" @${VENV}/python ${ROOT_DIR}/requirements/upgrade_dependencies.py diff --git a/frontend/dist/Common-bundle.js b/frontend/dist/Common-bundle.js index 924dbce..a60ce8f 100644 --- a/frontend/dist/Common-bundle.js +++ b/frontend/dist/Common-bundle.js @@ -1,2 +1,2 @@ /*! For license information please see Common-bundle.js.LICENSE.txt */ -(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[622],{9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),a=n(6026),o=n(4372),l=n(5327),i=n(4097),u=n(4109),s=n(7985),c=n(5061);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+h)}var v=i(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),l(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};a(t,n,o),p=null}},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||s(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),a=n(1849),o=n(321),l=n(7185);function i(e){var t=new o(e),n=a(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=i(n(5655));u.Axios=o,u.create=function(e){return i(l(u.defaults,e))},u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.all=function(e){return Promise.all(e)},u.spread=n(8713),u.isAxiosError=n(6268),e.exports=u,e.exports.default=u},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),a=n(5327),o=n(782),l=n(3572),i=n(7185);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[l,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=i(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(i(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(i(r||{},{method:e,url:t,data:n}))}})),e.exports=u},782:(e,t,n)=>{"use strict";var r=n(4867);function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},4097:(e,t,n)=>{"use strict";var r=n(1793),a=n(7303);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,a,o){var l=new Error(e);return r(l,t,n,a,o)}},3572:(e,t,n)=>{"use strict";var r=n(4867),a=n(8527),o=n(6502),l=n(5655);function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return i(e),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||l.adapter)(e).then((function(t){return i(e),t.data=a(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(i(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={},a=["url","method","data"],o=["headers","auth","proxy","params"],l=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],i=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=u(void 0,e[a])):n[a]=u(e[a],t[a])}r.forEach(a,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(o,s),r.forEach(l,(function(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=u(void 0,e[a])):n[a]=u(void 0,t[a])})),r.forEach(i,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var c=a.concat(o).concat(l).concat(i),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,s),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),a=n(6016),o={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(i=n(5448)),i),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(l(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(4867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var l=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),l.push(a(t)+"="+a(e))})))})),o=l.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,o,l){var i=[];i.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),r.isString(a)&&i.push("path="+a),r.isString(o)&&i.push("domain="+o),!0===l&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,l={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(l[t]&&a.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([n]):l[t]?l[t]+", "+n:n}})),l):l}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4867:(e,t,n)=>{"use strict";var r=n(1849),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function l(e){return void 0===e}function i(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n{"use strict";n.d(t,{Z:()=>v,m:()=>h});var r=n(7294),a=n(9669),o=n.n(a),l=n(3987),i=n(1388);if(258==n.j)var u=n(2692);var s=n(2188),c=n(18);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&clearInterval(w)}))};return r.createElement("div",null,r.createElement("h1",null,"Torrent status"),function(){if(""!==y)return r.createElement(i.Z,null,y)}(),function(){if(""!==m)return r.createElement(l.Z,{style:{fontSize:"x-large"}},m)}(),r.createElement("div",{className:"d-flex justify-content-end"},"Table refreshes every ",5," seconds."),r.createElement("table",{className:"table table-dark"},r.createElement("thead",null,r.createElement("tr",null,r.createElement("td",{scope:"col"},"Name"),r.createElement("td",{scope:"col"},"Status"),r.createElement("td",{scope:"col"},"Percentage"),r.createElement("td",{scope:"col justify-content-end"},"Manage"))),r.createElement("tbody",null,function(){if(""===m){if(!s&&0===t.length)return r.createElement("tr",null,r.createElement("td",{scope:"col"},"Loading..."),r.createElement("td",{scope:"col"},"Loading..."),r.createElement("td",{scope:"col"},"Loading..."),r.createElement("td",{scope:"col"},"Loading..."));if(s&&0===t.length)return r.createElement("tr",null,r.createElement("td",{scope:"col"},"No results"),r.createElement("td",{scope:"col"},"No results"),r.createElement("td",{scope:"col"},"No results"),r.createElement("td",{scope:"col"},"No results"));var e=function(e){var t=e.infoHashes,n=e.command;o().post("/panel/api/t_status",{infoHashes:Array.isArray(t)?t:[t],command:n},{headers:{"X-CSRFToken":h()}}).then((function(e){b("".concat(n," operation is successful."))})).catch((function(e){console.error(e),v((0,u.b)(e))}))};return t.map((function(t){return r.createElement(d,{key:t.hash,torrent:t,torrentOperation:e})}))}}())))}:null},3987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7294),a=n(18);function o(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 l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>s});var r=n(7294),a=n(18);function o(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 l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{b:()=>r});var r=function(e){var t,n=function(e){return e&&e.response&&e.response.data&&e.response.data.detail?e.response.data.detail:e&&e.response&&e.response.data?e.response.data:e.toString().startsWith("[object")?"An error occurred.":e.toString()}(e);if(console.log(n),t=n,"[object String]"===Object.prototype.toString.call(t)){if(n.length<200)return n;console.log(n)}else{var r=JSON.stringify(n);if("{}"!==r)return r}return"An error occured"}},4599:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(7294),a=n(9669),o=n.n(a),l=n(5211);if(/^(265|710)$/.test(n.j))var i=n(2692);var u=n(3987),s=n(1388);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>r});const r=/^(265|710)$/.test(n.j)?function(){return[{iso:"abk",name:"Abkhazian"},{iso:"aar",name:"Afar"},{iso:"afr",name:"Afrikaans"},{iso:"aka",name:"Akan"},{iso:"alb",name:"Albanian"},{iso:"amh",name:"Amharic"},{iso:"ara",name:"Arabic"},{iso:"arg",name:"Aragonese"},{iso:"arm",name:"Armenian"},{iso:"asm",name:"Assamese"},{iso:"ava",name:"Avaric"},{iso:"ave",name:"Avestan"},{iso:"aym",name:"Aymara"},{iso:"aze",name:"Azerbaijani"},{iso:"bam",name:"Bambara"},{iso:"bak",name:"Bashkir"},{iso:"baq",name:"Basque"},{iso:"bel",name:"Belarusian"},{iso:"ben",name:"Bengali"},{iso:"bih",name:"Bihari languages"},{iso:"bis",name:"Bislama"},{iso:"nob",name:"Bokmål, Norwegian; Norwegian Bokmål"},{iso:"bos",name:"Bosnian"},{iso:"bre",name:"Breton"},{iso:"bul",name:"Bulgarian"},{iso:"bur",name:"Burmese"},{iso:"cat",name:"Catalan; Valencian"},{iso:"khm",name:"Central Khmer"},{iso:"cha",name:"Chamorro"},{iso:"che",name:"Chechen"},{iso:"nya",name:"Chichewa; Chewa; Nyanja"},{iso:"chi",name:"Chinese"},{iso:"chu",name:"Church Slavic; Slavonic; Old Bulgarian"},{iso:"chv",name:"Chuvash"},{iso:"cor",name:"Cornish"},{iso:"cos",name:"Corsican"},{iso:"cre",name:"Cree"},{iso:"hrv",name:"Croatian"},{iso:"cze",name:"Czech"},{iso:"dan",name:"Danish"},{iso:"div",name:"Divehi; Dhivehi; Maldivian"},{iso:"dut",name:"Dutch; Flemish"},{iso:"dzo",name:"Dzongkha"},{iso:"eng",name:"English"},{iso:"epo",name:"Esperanto"},{iso:"est",name:"Estonian"},{iso:"ewe",name:"Ewe"},{iso:"fao",name:"Faroese"},{iso:"fij",name:"Fijian"},{iso:"fin",name:"Finnish"},{iso:"fre",name:"French"},{iso:"ful",name:"Fulah"},{iso:"gla",name:"Gaelic; Scottish Gaelic"},{iso:"glg",name:"Galician"},{iso:"lug",name:"Ganda"},{iso:"geo",name:"Georgian"},{iso:"ger",name:"German"},{iso:"gre",name:"Greek, Modern (1453-)"},{iso:"grn",name:"Guarani"},{iso:"guj",name:"Gujarati"},{iso:"hat",name:"Haitian; Haitian Creole"},{iso:"hau",name:"Hausa"},{iso:"heb",name:"Hebrew"},{iso:"her",name:"Herero"},{iso:"hin",name:"Hindi"},{iso:"hmo",name:"Hiri Motu"},{iso:"hun",name:"Hungarian"},{iso:"ice",name:"Icelandic"},{iso:"ido",name:"Ido"},{iso:"ibo",name:"Igbo"},{iso:"ind",name:"Indonesian"},{iso:"ina",name:"Interlingua"},{iso:"ile",name:"Interlingue; Occidental"},{iso:"iku",name:"Inuktitut"},{iso:"ipk",name:"Inupiaq"},{iso:"gle",name:"Irish"},{iso:"ita",name:"Italian"},{iso:"jpn",name:"Japanese"},{iso:"jav",name:"Javanese"},{iso:"kal",name:"Kalaallisut; Greenlandic"},{iso:"kan",name:"Kannada"},{iso:"kau",name:"Kanuri"},{iso:"kas",name:"Kashmiri"},{iso:"kaz",name:"Kazakh"},{iso:"kik",name:"Kikuyu; Gikuyu"},{iso:"kin",name:"Kinyarwanda"},{iso:"kir",name:"Kirghiz; Kyrgyz"},{iso:"kom",name:"Komi"},{iso:"kon",name:"Kongo"},{iso:"kor",name:"Korean"},{iso:"kua",name:"Kuanyama; Kwanyama"},{iso:"kur",name:"Kurdish"},{iso:"lao",name:"Lao"},{iso:"lat",name:"Latin"},{iso:"lav",name:"Latvian"},{iso:"lim",name:"Limburgan; Limburger; Limburgish"},{iso:"lin",name:"Lingala"},{iso:"lit",name:"Lithuanian"},{iso:"lub",name:"Luba-Katanga"},{iso:"ltz",name:"Luxembourgish; Letzeburgesch"},{iso:"mac",name:"Macedonian"},{iso:"mlg",name:"Malagasy"},{iso:"may",name:"Malay"},{iso:"mal",name:"Malayalam"},{iso:"mlt",name:"Maltese"},{iso:"glv",name:"Manx"},{iso:"mao",name:"Maori"},{iso:"mar",name:"Marathi"},{iso:"mah",name:"Marshallese"},{iso:"mon",name:"Mongolian"},{iso:"nau",name:"Nauru"},{iso:"nav",name:"Navajo; Navaho"},{iso:"nde",name:"Ndebele, North; North Ndebele"},{iso:"nbl",name:"Ndebele, South; South Ndebele"},{iso:"ndo",name:"Ndonga"},{iso:"nep",name:"Nepali"},{iso:"sme",name:"Northern Sami"},{iso:"nor",name:"Norwegian"},{iso:"nno",name:"Norwegian Nynorsk; Nynorsk, Norwegian"},{iso:"oci",name:"Occitan (post 1500)"},{iso:"oji",name:"Ojibwa"},{iso:"ori",name:"Oriya"},{iso:"orm",name:"Oromo"},{iso:"oss",name:"Ossetian; Ossetic"},{iso:"pli",name:"Pali"},{iso:"pan",name:"Panjabi; Punjabi"},{iso:"per",name:"Persian"},{iso:"pol",name:"Polish"},{iso:"por",name:"Portuguese"},{iso:"pus",name:"Pushto; Pashto"},{iso:"que",name:"Quechua"},{iso:"rum",name:"Romanian; Moldavian; Moldovan"},{iso:"roh",name:"Romansh"},{iso:"run",name:"Rundi"},{iso:"rus",name:"Russian"},{iso:"smo",name:"Samoan"},{iso:"sag",name:"Sango"},{iso:"san",name:"Sanskrit"},{iso:"srd",name:"Sardinian"},{iso:"srp",name:"Serbian"},{iso:"sna",name:"Shona"},{iso:"iii",name:"Sichuan Yi; Nuosu"},{iso:"snd",name:"Sindhi"},{iso:"sin",name:"Sinhala; Sinhalese"},{iso:"slo",name:"Slovak"},{iso:"slv",name:"Slovenian"},{iso:"som",name:"Somali"},{iso:"sot",name:"Sotho, Southern"},{iso:"spa",name:"Spanish; Castilian"},{iso:"sun",name:"Sundanese"},{iso:"swa",name:"Swahili"},{iso:"ssw",name:"Swati"},{iso:"swe",name:"Swedish"},{iso:"tgl",name:"Tagalog"},{iso:"tah",name:"Tahitian"},{iso:"tgk",name:"Tajik"},{iso:"tam",name:"Tamil"},{iso:"tat",name:"Tatar"},{iso:"tel",name:"Telugu"},{iso:"tha",name:"Thai"},{iso:"tib",name:"Tibetan"},{iso:"tir",name:"Tigrinya"},{iso:"ton",name:"Tonga (Tonga Islands)"},{iso:"tso",name:"Tsonga"},{iso:"tsn",name:"Tswana"},{iso:"tur",name:"Turkish"},{iso:"tuk",name:"Turkmen"},{iso:"twi",name:"Twi"},{iso:"uig",name:"Uighur; Uyghur"},{iso:"ukr",name:"Ukrainian"},{iso:"urd",name:"Urdu"},{iso:"uzb",name:"Uzbek"},{iso:"ven",name:"Venda"},{iso:"vie",name:"Vietnamese"},{iso:"vol",name:"Volapük"},{iso:"wln",name:"Walloon"},{iso:"wel",name:"Welsh"},{iso:"fry",name:"Western Frisian"},{iso:"wol",name:"Wolof"},{iso:"xho",name:"Xhosa"},{iso:"yid",name:"Yiddish"},{iso:"yor",name:"Yoruba"},{iso:"zha",name:"Zhuang; Chuang"},{iso:"zul",name:"Zulu"}]}:null},3520:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(7294),a=n(9669),o=n.n(a),l=n(3987),i=n(1388);if(/^(265|710)$/.test(n.j))var u=n(2692);var s=n(5211);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>h});var r=n(7294);if(/^(265|710)$/.test(n.j))var a=n(5288);var o=n(18),l=n(3987),i=n(1388),u=n(9669),s=n.n(u),c=n(5211);if(/^(265|710)$/.test(n.j))var f=n(2692);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}}(e,t)||p(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 p(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&t.splice(n,1),g(t.slice())}},P=function(){S(""),s().post("/panel/api/global-settings",{dotenv:{SUBTITLE_LANGS:0===v.length?"-":v.toString()}},{headers:{"X-CSRFToken":(0,c.m)()}}).then((function(e){S("Subtitle language preferences are saved."),setTimeout((function(){return t()}),2e3)})).catch((function(e){w((0,f.b)(e))}))},O=function(e){return void 0!==v.find((function(t){return t===e}))};return r.createElement("div",null,r.createElement("h2",null,"Choose Subtitle Languages"),0===v.length?r.createElement("div",{className:"container my-4"},r.createElement("h4",null,"0 Selected"),r.createElement("button",{onClick:function(){P()},className:"btn btn-light mx-2"},"Skip")):r.createElement("div",{className:"container my-4"},r.createElement("h4",null,1===v.length&&"-"===v[0]?0:v.length," ","Selected"),r.createElement("div",{className:"row row-cols-auto py-2"},v.map((function(e){if("-"!==e)return r.createElement("div",{key:e,className:"col p-3 mx-2 my-1",style:{backgroundColor:"#232323"}},r.createElement("a",{title:"Delete ".concat(e),onClick:function(){return _(e)}},e," ",r.createElement(o.XCircleSvg,{width:16,height:16})))}))),r.createElement("div",{style:{marginBottom:10}}," "),r.createElement("button",{onClick:function(){return P()},className:"btn btn-light mx-2"},"Save"),r.createElement("div",{style:{marginBottom:10}}," ")),function(){if(""!==b)return r.createElement(l.Z,null,b)}(),function(){if(""!==E)return r.createElement(i.Z,null,E)}(),r.createElement("div",{style:{maxWidth:700,paddingBottom:10}},r.createElement("input",{onChange:function(e){return N(e.target.value)},value:C,placeholder:"Search a language",type:"text",className:"form-control default-input",style:{fontSize:"medium",paddingLeft:10},"aria-label":"Search a language","aria-describedby":"Search a langauge",autoFocus:!0})),r.createElement(r.Fragment,null,(0,a.Z)().filter((function(e){return e.name.toLowerCase().includes(C.toLowerCase())})).map((function(e){return r.createElement("div",{key:e.iso,onClick:function(){var t,n;O(e.iso)?_(e.iso):(t=e.iso,v.find((function(e){return e===t}))||g([].concat(function(e){if(Array.isArray(e))return m(e)}(n=v)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||p(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t])))},className:"d-flex justify-content-between px-3 py-2 border-bottom",style:{backgroundColor:O(e.iso)?"#828282":"#232323",maxWidth:700}},r.createElement("div",{style:{display:"inline"}},r.createElement("input",{type:"checkbox",checked:O(e.iso),readOnly:!0,onClick:function(){return null}})," ",r.createElement("a",{title:"Add ".concat(e.name)},e.name)),r.createElement("span",null,e.iso))}))))}:null},6967:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7294),a=n(5450),o=n(18);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(18),o=n(9669),l=n.n(o);if(/^(12|288|883|985)$/.test(n.j))var i=n(2692);var u=n(5211);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>u});var r=n(7294),a=n(18),o=n(5866);if(/^(12|288|985)$/.test(n.j))var l=n(6210);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne&&(e=t.resolution_width)})),e>2e3?"4K":e<=2e3&&e>1500?"HD":e<=1500&&e>0?"HDTV":"");if(""!==t)return r.createElement("div",{className:"border rounded p-1",style:{fontSize:"x-small",position:"absolute",top:5,right:5,textShadow:"1px 1px #222"}},r.createElement("b",null,t))}(),function(){if(void 0!==u.release_date)return r.createElement("div",{className:"p-1",style:{position:"absolute",bottom:10,right:5,textShadow:"1px 1px #222"}},u.release_date.slice(0,4))}(),function(){if(!(0,l.xb)(f)){var e=Math.floor(100*f.currentSecond/(f.currentSecond+f.remainingSeconds));return r.createElement("div",{className:"progress",style:{height:"6px",borderRadius:0,backgroundColor:"#5b5c5e",color:"#d2102a"}},r.createElement("div",{className:"progress-bar",role:"progressbar",style:{width:"".concat(e,"%")},"aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"}," "))}}()),function(){if(null!==g.current&&(g.current.style.display=h?"block":"none"),void 0!==u.id)return r.createElement("div",{style:{display:"none"},ref:g},r.createElement("a",{href:"".concat(s).concat(u.id)},r.createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(80, 80, 80, 0.2)"}}," "),r.createElement("div",{style:{position:"absolute",bottom:"20%",left:5,right:5,zIndex:5},className:"text-center"},r.createElement("span",{style:{fontSize:"x-large",textShadow:"2px 2px #111"}},u.title))),r.createElement("div",{style:{backgroundColor:"rgb(35, 35, 35)",position:"absolute",bottom:0,width:"100%",zIndex:10}},r.createElement("div",{className:"px-2 py-2 d-flex justify-content-between"},r.createElement("a",{title:"Play",href:"/watch/".concat(u.id),className:"btn btn-sm btn-outline-secondary rounded-pill",style:{paddingBottom:4}},r.createElement(a.PlayFillSvg,{style:{color:"#9affde"}})),r.createElement(o.Z,{movieId:u.id,myList:u.my_list,refreshMyList:p}),r.createElement("a",{title:"Manage movie",href:"/panel/movie-detail/".concat(u.id),className:"btn btn-sm btn-outline-secondary rounded-pill",style:{paddingBottom:4}},r.createElement(a.GearSvg,{width:20,height:20,style:{color:"#9affde"}})))))}())}:null},2188:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294);const a=/^(258|265|883)$/.test(n.j)?function(e){var t=e.children,n=e.title,a=void 0===n?"":n,o=e.body,l=void 0===o?"Are you sure?":o,i=e.buttonText,u=void 0===i?"Ok":i,s=e.refFunc,c=e.refFuncArgs,f=(0,r.useRef)(null),d=(0,r.useRef)(null);function p(){null!==f.current&&(f.current.classList.remove("show"),f.current.style.display="none",d.current.style.display="none")}return(0,r.useEffect)((function(){window.onclick=function(e){e.target===f.current&&p()}}),[]),r.createElement(r.Fragment,null,r.createElement("div",{style:{display:"inline"},onClick:function(){null!==f.current&&(f.current.classList.add("show"),f.current.style.display="block",d.current.style.display="block")}},t),r.createElement("div",{ref:f,className:"modal fade",style:{display:"none"},id:"exampleModal",tabIndex:"-1","aria-labelledby":"exampleModalLabel","aria-modal":"true",role:"dialog"},r.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},r.createElement("div",{className:"modal-content"},r.createElement("div",{className:"modal-header"},r.createElement("h5",{className:"modal-title text-dark",id:"exampleModalLabel"},a)),r.createElement("div",{className:"modal-body text-dark"},l),r.createElement("div",{className:"modal-footer"},r.createElement("button",{type:"button",className:"btn btn-secondary",onClick:function(){return p()}},"Close"),r.createElement("button",{type:"button",className:"btn btn-primary",onClick:function(){s(c),p()}},u))))),r.createElement("div",{ref:d,style:{display:"none"},className:"modal-backdrop fade show",id:"backdrop"}," "))}:null},6352:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294);const a=/^(12|985)$/.test(n.j)?function(){return r.createElement("div",null,r.createElement("h3",null,"There are no movies"),r.createElement("a",{href:"/panel/add-movie/",style:{fontSize:"large"}},"Add a movie"))}:null},6210:(e,t,n)=>{"use strict";n.d(t,{xb:()=>r,co:()=>a,tv:()=>o,f3:()=>l});var r=function(e){return e&&0===Object.keys(e).length&&e.constructor===Object},a=function(e,t){return localStorage.setItem(e,JSON.stringify(t))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=localStorage.getItem(e);return null===n?t:JSON.parse(n)},l=function(e,t){return e.replace(/\${(.*?)}/g,(function(e,n){return t[n]}))}},18:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FileTextSvg:()=>l,FilePlaySvg:()=>o,OpenFolderSvg:()=>a,CaretDownFillSvg:()=>i,CaretUpFillSvg:()=>u,XCircleSvg:()=>s,GearSvg:()=>c,ClipboardCheckSvg:()=>f,FileEarmarkSvg:()=>d,PlayFillSvg:()=>p,PlusSvg:()=>m,Check2Svg:()=>h,DashSvg:()=>v,ChevronDoubleRightSvg:()=>g,ChevronRightSvg:()=>w,PauseSvg:()=>y,TrashSvg:()=>b,ArrowUpSvg:()=>k,ArrowRepeatSvg:()=>E,ArrowLeftCircleSvg:()=>S});var r=n(7294),a=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-folder2-open "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v.64c.57.265.94.876.856 1.546l-.64 5.124A2.5 2.5 0 0 1 12.733 15H3.266a2.5 2.5 0 0 1-2.481-2.19l-.64-5.124A1.5 1.5 0 0 1 1 6.14V3.5zM2 6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3H2.5a.5.5 0 0 0-.5.5V6zm-.367 1a.5.5 0 0 0-.496.562l.64 5.124A1.5 1.5 0 0 0 3.266 14h9.468a1.5 1.5 0 0 0 1.489-1.314l.64-5.124A.5.5 0 0 0 14.367 7H1.633z"}))},o=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",className:"bi bi-file-earmark-play "+n,style:s,viewBox:"0 0 16 16"},r.createElement("path",{d:"M6 6.883v4.234a.5.5 0 0 0 .757.429l3.528-2.117a.5.5 0 0 0 0-.858L6.757 6.454a.5.5 0 0 0-.757.43z"}),r.createElement("path",{d:"M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z"}))},l=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",className:"bi bi-file-earmark-text "+n,style:s,viewBox:"0 0 16 16"},r.createElement("path",{d:"M5.5 7a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5zM5 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5z"}),r.createElement("path",{d:"M9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.5L9.5 0zm0 1v2A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"}))},i=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",className:"bi bi-caret-down-fill "+n,style:s,viewBox:"0 0 16 16"},r.createElement("path",{d:"M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"}))},u=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-caret-up-fill "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M7.247 4.86l-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z"}))},s=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-x-circle "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),r.createElement("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"}))},c=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",className:"bi bi-gear "+n,style:s,viewBox:"0 0 16 16"},r.createElement("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),r.createElement("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"}))},f=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",className:"bi bi-clipboard-check "+n,style:s,viewBox:"0 0 16 16"},r.createElement("path",{fillRule:"evenodd",d:"M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0z"}),r.createElement("path",{d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"}),r.createElement("path",{d:"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"}))},d=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-file-earmark "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z"}))},p=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-play-fill "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M11.596 8.697l-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"}))},m=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-plus "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"}))},h=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-check2 "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"}))},v=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-dash "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z"}))},g=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-chevron-double-right "+n,viewBox:"0 0 16 16"},r.createElement("path",{fillRule:"evenodd",d:"M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8 3.646 2.354a.5.5 0 0 1 0-.708z"}),r.createElement("path",{fillRule:"evenodd",d:"M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8 7.646 2.354a.5.5 0 0 1 0-.708z"}))},y=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-pause "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M6 3.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5zm4 0a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5z"}))},b=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-trash "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"}),r.createElement("path",{fillRule:"evenodd",d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"}))},w=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-chevron-right "+n,viewBox:"0 0 16 16"},r.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}))},k=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-arrow-up "+n,viewBox:"0 0 16 16"},r.createElement("path",{fillRule:"evenodd",d:"M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"}))},E=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-arrow-repeat "+n,viewBox:"0 0 16 16"},r.createElement("path",{d:"M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41zm-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9z"}),r.createElement("path",{fillRule:"evenodd",d:"M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5.002 5.002 0 0 0 8 3zM3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9H3.1z"}))},S=function(e){var t=e.className,n=void 0===t?"":t,a=e.width,o=void 0===a?24:a,l=e.height,i=void 0===l?24:l,u=e.style,s=void 0===u?{}:u;return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,fill:"currentColor",style:s,className:"bi bi-arrow-left-circle "+n,viewBox:"0 0 16 16"},r.createElement("path",{fillRule:"evenodd",d:"M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-4.5-.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5z"}))}},3094:(e,t,n)=>{"use strict";e.exports=n(7060)},6347:e=>{e.exports=e=>{let t=0,n=0;const r=/\.\d+/g.exec(e[e.length-1]);null!==r&&(t=1,e[e.length-1]=e[e.length-1].substring(0,r.index));const a=/\d+\./g.exec(e[0]);null!==a&&(n=1,e[0]=e[0].substring(a.index+a[0].length));let o=0,l=Array.from({length:e.length-1+t+n},((e,t)=>0)),i=l.length-1,u=-1,s=1,c=!1;const f={key:()=>{let r="",a=0;return e.map(((o,i)=>{if(0===i&&1===n)return 1===e.length?r+=`${l[a]}.${o}`:r+=`${l[a]}.${o}.${l[a+1]}.`,void(a+=2);i!==e.length-1?(r+=`${o}.${l[a]}.`,a++):r+=1===t?`${o}.${l[a]}`:`${o}`})),r},next:function(){let e;return o++,u--,e=f.key(),l[i]++,c?"done":e},skip:()=>{o-2===u?(i-=s,s++):s=1,i-1<0&&(c=!0),l[i-1]++;for(let e=0;ei-1&&(l[e]=0);i=l.length-1,u=o}};return f}},7060:(e,t,n)=>{const r=n(6347),{getFromObject:a,createObject:o}=n(1447);let l={};const i=e=>{if("object"!=typeof e||null===e||e.constructor===Array)throw"MudParser schema has to be an object.";if(!e.hasOwnProperty("version"))throw"MudParser requires version to be defined.";if(!e.hasOwnProperty("parsers"))throw"MudParser requires parsers in the schema object.";if(e.parsers.constructor!==Array)throw"MudParser: parsers needs to be an array.";if(0===e.parsers.length)throw"MudParser: parsers array is empty.";e.parsers.map((e=>{if("object"!=typeof e||null===e||e.constructor===Array)throw"MudParser: parser elements have to be objects.";if(!e.hasOwnProperty("key"))throw"MudParser: parser elements have to have key property.";if(!e.hasOwnProperty("value"))throw"MudParser: parser elements have to have value property."}))},u=(e,t,n)=>{l[e]={replace:t,index:n}},s=(e,t)=>{let n={};return e.map((e=>{((e,t)=>{let n=[];const o=(e=>{const t=(e=>{const t=/\.\d+\./g;let n,r=0,a=[];for(;null!=(n=t.exec(e))&&(r++,!(r>=15));)a.push(n);return a})(e);let n=[],r=0;t.map(((t,a)=>{let o=e.substring(r,t.index);n.push(((e,t)=>{let n=/\|/.exec(e);if(null!==n){let r=e.substring(0,n.index),a=e.substring(n.index+1);return u(r,a,t),r}return e})(o,a)),r=t.index+t[0].length}));let a=e.substring(r);return""!==a&&n.push(a),n})(e.value),l=r(o);for(let r=0;r<100;r++){let r=l.next();if("done"===r)break;let o=a(r,t);void 0!==o?n.push({path:r,key:e.key,value:o}):l.skip()}return n})(e,t).map((e=>{let t=[],r=(e=>{const t=/\.\d+\./g;let n,r=0,a=[],o=/^\d+\./g.exec(e);for(null!==o&&a.push(o[0].length);null!=(n=t.exec(e))&&(r++,!(r>=15));)a.push(n.index+n[0].length-1);let l=e;a.length>0&&e.substring(a[a.length-1]);let i=/\.\d+/g.exec(l);return null!=i&&void 0===a.find((e=>e===i.index+i[0].length))&&a.push(i.index+i[0].length),a})(e.path),i=0;r.map(((n,r)=>{let a=e.path.substring(i,n);a=a.replaceAll(".",""),a+="__",t.push(((e,t)=>{for(let n in l)if(e.includes(n)&&t===l[n].index)return e.replace(n,l[n].replace);return e})(a,r)),i=n})),o(n,t.join(".")),a(t.join("."),n)[e.key]=e.value}))})),n},c=e=>{for(var t in e){if(!e.hasOwnProperty(t))continue;const n=/\d+__/g.exec(t);if(null!==n){const r=t.substring(0,n.index);r in e?e[r].push(e[t]):e[r]=[e[t]],delete e[t]}"object"==typeof e[t]&&c(e[t])}};t.MudParser=(e,t)=>{if(void 0===t)return null;i(e),l={};let n=s(e.parsers,t),r=[];return Object.keys(n).map((e=>r.push(n[e]))),r.map((e=>c(e))),r},t.checkMudSchema=i},1447:e=>{e.exports={getFromObject:(e,t)=>e.split(".").reduce((function(e,t){return e?e[t]:void 0}),t||self),createObject:function(e,...t){return t.reduce((function(e,t){return t.split(".").reduce(((e,t)=>e[t]=e[t]||{}),e),e}),e)}}},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var l,i,u=a(e),s=1;s{"use strict";var r=n(7294),a=n(7418),o=n(3840);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n