mirror of
https://github.com/cstaelen/shazarr.git
synced 2026-10-19 01:31:11 -05:00
chore: renovate (#21)
* chore: update capacitor from version 6 to 7 * chore: update react and dependencies * chore: move from react-scripts to vite * chore: use playwright with vite
This commit is contained in:
1 parent
72b76d5ffd
commit
95c9cd645c
41 files changed
+3283
-13681
No files matched your search
@@ -1,3 +1,3 @@
|
||||
GENERATE_SOURCEMAP=false
|
||||
REACT_APP_REPO_API_URL="/cstaelen/shazarr"
|
||||
REACT_APP_CURRENT_VERSION="v0.1.1"
|
||||
VITE_REPO_API_URL="/cstaelen/shazarr"
|
||||
VITE_CURRENT_VERSION="v0.1.2"
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20.x"
|
||||
node-version: "22.x"
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Run Playwright tests
|
||||
|
||||
@@ -3,6 +3,13 @@ Shazarr notable changes.
|
||||
|
||||
[Keep a Changelog](http://keepachangelog.com/en/1.0.0/) format.
|
||||
|
||||
## 📦 0.1.2
|
||||
### 🧹 Renovate
|
||||
* Update `capacitor` from version 6 to 7
|
||||
* Update `react` from version 18 to 19
|
||||
* Update other node dependencies
|
||||
* Move from `react-scripts`to `vite`
|
||||
|
||||
## 📦 0.1.1
|
||||
### 🐛 Fixed
|
||||
* Fix application crash when track result does not have album information
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
android {
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
sourceCompatibility JavaVersion.VERSION_21
|
||||
targetCompatibility JavaVersion.VERSION_21
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
"appName": "Shazarr",
|
||||
"bundledWebRuntime": false,
|
||||
"npmClient": "npm",
|
||||
"webDir": "build",
|
||||
"webDir": "dist",
|
||||
"cordova": {}
|
||||
}
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { CapacitorConfig } from "@capacitor/cli";
|
||||
const config: CapacitorConfig = {
|
||||
appId: "com.shazarr.app",
|
||||
appName: "Shazarr",
|
||||
webDir: "build",
|
||||
webDir: "dist",
|
||||
android: {
|
||||
allowMixedContent: true,
|
||||
},
|
||||
|
||||
Vendored
+338
@@ -0,0 +1,338 @@
|
||||
var tb=Object.defineProperty;var eb=(n,a,o)=>a in n?tb(n,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[a]=o;var Ro=(n,a,o)=>eb(n,typeof a!="symbol"?a+"":a,o);function nb(n,a){for(var o=0;o<a.length;o++){const l=a[o];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in n)){const c=Object.getOwnPropertyDescriptor(l,u);c&&Object.defineProperty(n,u,c.get?c:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const p of c.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function o(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(u){if(u.ep)return;u.ep=!0;const c=o(u);fetch(u.href,c)}})();function qf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _c={exports:{}},Eo={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Xh;function rb(){if(Xh)return Eo;Xh=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function o(l,u,c){var p=null;if(c!==void 0&&(p=""+c),u.key!==void 0&&(p=""+u.key),"key"in u){c={};for(var d in u)d!=="key"&&(c[d]=u[d])}else c=u;return u=c.ref,{$$typeof:n,type:l,key:p,ref:u!==void 0?u:null,props:c}}return Eo.Fragment=a,Eo.jsx=o,Eo.jsxs=o,Eo}var Kh;function ab(){return Kh||(Kh=1,_c.exports=rb()),_c.exports}var T=ab(),$c={exports:{}},Ht={};/**
|
||||
* @license React
|
||||
* react.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ih;function ib(){if(Ih)return Ht;Ih=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),b=Symbol.iterator;function O(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||L["@@iterator"],typeof L=="function"?L:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function R(L,Z,gt){this.props=L,this.context=Z,this.refs=C,this.updater=gt||B}R.prototype.isReactComponent={},R.prototype.setState=function(L,Z){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,Z,"setState")},R.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function j(){}j.prototype=R.prototype;function N(L,Z,gt){this.props=L,this.context=Z,this.refs=C,this.updater=gt||B}var U=N.prototype=new j;U.constructor=N,E(U,R.prototype),U.isPureReactComponent=!0;var q=Array.isArray,H={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function J(L,Z,gt,mt,dt,xt){return gt=xt.ref,{$$typeof:n,type:L,key:Z,ref:gt!==void 0?gt:null,props:xt}}function rt(L,Z){return J(L.type,Z,void 0,void 0,void 0,L.props)}function K(L){return typeof L=="object"&&L!==null&&L.$$typeof===n}function S(L){var Z={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(gt){return Z[gt]})}var X=/\/+/g;function _(L,Z){return typeof L=="object"&&L!==null&&L.key!=null?S(""+L.key):Z.toString(36)}function at(){}function lt(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(at,at):(L.status="pending",L.then(function(Z){L.status==="pending"&&(L.status="fulfilled",L.value=Z)},function(Z){L.status==="pending"&&(L.status="rejected",L.reason=Z)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function ut(L,Z,gt,mt,dt){var xt=typeof L;(xt==="undefined"||xt==="boolean")&&(L=null);var pt=!1;if(L===null)pt=!0;else switch(xt){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(L.$$typeof){case n:case a:pt=!0;break;case A:return pt=L._init,ut(pt(L._payload),Z,gt,mt,dt)}}if(pt)return dt=dt(L),pt=mt===""?"."+_(L,0):mt,q(dt)?(gt="",pt!=null&&(gt=pt.replace(X,"$&/")+"/"),ut(dt,Z,gt,"",function(Et){return Et})):dt!=null&&(K(dt)&&(dt=rt(dt,gt+(dt.key==null||L&&L.key===dt.key?"":(""+dt.key).replace(X,"$&/")+"/")+pt)),Z.push(dt)),1;pt=0;var Bt=mt===""?".":mt+":";if(q(L))for(var yt=0;yt<L.length;yt++)mt=L[yt],xt=Bt+_(mt,yt),pt+=ut(mt,Z,gt,xt,dt);else if(yt=O(L),typeof yt=="function")for(L=yt.call(L),yt=0;!(mt=L.next()).done;)mt=mt.value,xt=Bt+_(mt,yt++),pt+=ut(mt,Z,gt,xt,dt);else if(xt==="object"){if(typeof L.then=="function")return ut(lt(L),Z,gt,mt,dt);throw Z=String(L),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return pt}function Q(L,Z,gt){if(L==null)return L;var mt=[],dt=0;return ut(L,mt,"","",function(xt){return Z.call(gt,xt,dt++)}),mt}function ct(L){if(L._status===-1){var Z=L._result;Z=Z(),Z.then(function(gt){(L._status===0||L._status===-1)&&(L._status=1,L._result=gt)},function(gt){(L._status===0||L._status===-1)&&(L._status=2,L._result=gt)}),L._status===-1&&(L._status=0,L._result=Z)}if(L._status===1)return L._result.default;throw L._result}var it=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)};function ft(){}return Ht.Children={map:Q,forEach:function(L,Z,gt){Q(L,function(){Z.apply(this,arguments)},gt)},count:function(L){var Z=0;return Q(L,function(){Z++}),Z},toArray:function(L){return Q(L,function(Z){return Z})||[]},only:function(L){if(!K(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},Ht.Component=R,Ht.Fragment=o,Ht.Profiler=u,Ht.PureComponent=N,Ht.StrictMode=l,Ht.Suspense=m,Ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ht.act=function(){throw Error("act(...) is not supported in production builds of React.")},Ht.cache=function(L){return function(){return L.apply(null,arguments)}},Ht.cloneElement=function(L,Z,gt){if(L==null)throw ELine truncated
|
||||
* @license React
|
||||
* scheduler.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Wh;function ob(){return Wh||(Wh=1,function(n){function a(Q,ct){var it=Q.length;Q.push(ct);t:for(;0<it;){var ft=it-1>>>1,L=Q[ft];if(0<u(L,ct))Q[ft]=ct,Q[it]=L,it=ft;else break t}}function o(Q){return Q.length===0?null:Q[0]}function l(Q){if(Q.length===0)return null;var ct=Q[0],it=Q.pop();if(it!==ct){Q[0]=it;t:for(var ft=0,L=Q.length,Z=L>>>1;ft<Z;){var gt=2*(ft+1)-1,mt=Q[gt],dt=gt+1,xt=Q[dt];if(0>u(mt,it))dt<L&&0>u(xt,mt)?(Q[ft]=xt,Q[dt]=it,ft=dt):(Q[ft]=mt,Q[gt]=it,ft=gt);else if(dt<L&&0>u(xt,it))Q[ft]=xt,Q[dt]=it,ft=dt;else break t}}return ct}function u(Q,ct){var it=Q.sortIndex-ct.sortIndex;return it!==0?it:Q.id-ct.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var p=Date,d=p.now();n.unstable_now=function(){return p.now()-d}}var m=[],y=[],A=1,b=null,O=3,B=!1,E=!1,C=!1,R=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function U(Q){for(var ct=o(y);ct!==null;){if(ct.callback===null)l(y);else if(ct.startTime<=Q)l(y),ct.sortIndex=ct.expirationTime,a(m,ct);else break;ct=o(y)}}function q(Q){if(C=!1,U(Q),!E)if(o(m)!==null)E=!0,lt();else{var ct=o(y);ct!==null&&ut(q,ct.startTime-Q)}}var H=!1,I=-1,J=5,rt=-1;function K(){return!(n.unstable_now()-rt<J)}function S(){if(H){var Q=n.unstable_now();rt=Q;var ct=!0;try{t:{E=!1,C&&(C=!1,j(I),I=-1),B=!0;var it=O;try{e:{for(U(Q),b=o(m);b!==null&&!(b.expirationTime>Q&&K());){var ft=b.callback;if(typeof ft=="function"){b.callback=null,O=b.priorityLevel;var L=ft(b.expirationTime<=Q);if(Q=n.unstable_now(),typeof L=="function"){b.callback=L,U(Q),ct=!0;break e}b===o(m)&&l(m),U(Q)}else l(m);b=o(m)}if(b!==null)ct=!0;else{var Z=o(y);Z!==null&&ut(q,Z.startTime-Q),ct=!1}}break t}finally{b=null,O=it,B=!1}ct=void 0}}finally{ct?X():H=!1}}}var X;if(typeof N=="function")X=function(){N(S)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,at=_.port2;_.port1.onmessage=S,X=function(){at.postMessage(null)}}else X=function(){R(S,0)};function lt(){H||(H=!0,X())}function ut(Q,ct){I=R(function(){Q(n.unstable_now())},ct)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Q){Q.callback=null},n.unstable_continueExecution=function(){E||B||(E=!0,lt())},n.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<Q?Math.floor(1e3/Q):5},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_getFirstCallbackNode=function(){return o(m)},n.unstable_next=function(Q){switch(O){case 1:case 2:case 3:var ct=3;break;default:ct=O}var it=O;O=ct;try{return Q()}finally{O=it}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Q,ct){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var it=O;O=Q;try{return ct()}finally{O=it}},n.unstable_scheduleCallback=function(Q,ct,it){var ft=n.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?ft+it:ft):it=ft,Q){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=it+L,Q={id:A++,callback:ct,priorityLevel:Q,startTime:it,expirationTime:L,sortIndex:-1},it>ft?(Q.sortIndex=it,a(y,Q),o(m)===null&&Q===o(y)&&(C?(j(I),I=-1):C=!0,ut(q,it-ft))):(Q.sortIndex=L,a(m,Q),E||B||(E=!0,lt())),Q},n.unstable_shouldYield=K,n.unstable_wrapCallback=function(Q){var ct=O;return function(){var it=O;O=ct;try{return Q.apply(this,arguments)}finally{O=it}}}}(nf)),nf}var Gh;function lb(){return Gh||(Gh=1,ef.exports=ob()),ef.exports}var rf={exports:{}},Ie={};/**
|
||||
* @license React
|
||||
* react-dom.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Yh;function sb(){if(Yh)return Ie;Yh=1;var n=Lf();function a(m){var y="https://react.dev/errors/"+m;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)y+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+m+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var l={d:{f:o,r:function(){throw Error(a(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,y,A){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:m,containerInfo:y,implementation:A}}var p=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Ie.createPortal=function(m,y){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return c(m,y,null,A)},Ie.flushSync=function(m){var y=p.T,A=l.p;try{if(p.T=null,l.p=2,m)return m()}finally{p.T=y,l.p=A,l.d.f()}},Ie.preconnect=function(m,y){typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,l.d.C(m,y))},Ie.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},Ie.preinit=function(m,y){if(typeof m=="string"&&y&&typeof y.as=="string"){var A=y.as,b=d(A,y.crossOrigin),O=typeof y.integrity=="string"?y.integrity:void 0,B=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;A==="style"?l.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:O,fetchPriority:B}):A==="script"&&l.d.X(m,{crossOrigin:b,integrity:O,fetchPriority:B,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Ie.preinitModule=function(m,y){if(typeof m=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var A=d(y.as,y.crossOrigin);l.d.M(m,{crossOrigin:A,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&l.d.M(m)},Ie.preload=function(m,y){if(typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var A=y.as,b=d(A,y.crossOrigin);l.d.L(m,A,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Ie.preloadModule=function(m,y){if(typeof m=="string")if(y){var A=d(y.as,y.crossOrigin);l.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:A,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else l.d.m(m)},Ie.requestFormReset=function(m){l.d.r(m)},Ie.unstable_batchedUpdates=function(m,y){return m(y)},Ie.useFormState=function(m,y,A){return p.H.useFormState(m,y,A)},Ie.useFormStatus=function(){return p.H.useHostTransitionStatus()},Ie.version="19.0.0",Ie}var Qh;function C1(){if(Qh)return rf.exports;Qh=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),rf.exports=sb(),rf.exports}var Zh;function ub(){if(Zh)return Bo;Zh=1;/**
|
||||
* @license React
|
||||
* react-dom-client.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var n=lb(),a=Lf(),o=C1();function l(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var c=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),B=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),q=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function I(t){return t===null||typeof t!="object"?null:(t=H&&t[H]||t["@@iterator"],typeof t=="function"?t:null)}var J=Symbol.for("react.client.reference");function rt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===J?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case m:return"Fragment";case d:return"Portal";case A:return"Profiler";case y:return"StrictMode";case C:return"Suspense";case R:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case B:return(t.displayName||"Context")+".Provider";case O:return(t._context.displayName||"Context")+".Consumer";case E:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case j:return e=t.displayName||null,e!==null?e:rt(t.type)||"Memo";case N:e=t._payload,t=t._init;try{return rt(t(e))}catch{}}return null}var K=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=Object.assign,X,_;function at(t){if(X===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);X=e&&e[1]||"",_=-1<r.stack.indexOf(`
|
||||
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||
`+X+t+_}var lt=!1;function ut(t,e){if(!t||lt)return"";lt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var st=function(){throw Error()};if(Object.defineProperty(st.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(st,[])}catch(et){var Y=et}Reflect.construct(t,[],st)}else{try{st.call()}catch(et){Y=et}t.call(st.prototype)}}else{try{throw Error()}catch(et){Y=et}(st=t())&&typeof st.catch=="function"&&st.catch(function(){})}}catch(et){if(et&&Y&&typeof et.stack=="string")return[et.stack,Y.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),v=f[0],w=f[1];if(v&&w){var k=v.split(`
|
||||
`),P=w.split(`
|
||||
`);for(s=i=0;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;for(;s<P.length&&!P[s].includes("DetermineComponentFrameRoot");)s++;if(i===k.length||s===P.length)for(i=k.length-1,s=P.length-1;1<=i&&0<=s&&k[i]!==P[s];)s--;for(;1<=i&&0<=s;i--,s--)if(k[i]!==P[s]){if(i!==1||s!==1)do if(i--,s--,0>s||k[i]!==P[s]){var nt=`
|
||||
`+k[i].replace(" at new "," at ");return t.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",t.displayName)),nt}while(1<=i&&0<=s);break}}}finally{lt=!1,Error.prepareStackTrace=r}return(r=t?t.displayName||t.name:"")?at(r):""}function Q(t){switch(t.tag){case 26:case 27:case 5:return at(t.type);case 16:return at("Lazy");case 13:return at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return t=ut(t.type,!1),t;case 11:return t=ut(t.type.render,!1),t;case 1:return t=ut(t.type,!0),t;default:return""}}function ct(t){try{var e="";do e+=Q(t),t=t.return;while(t);return e}catch(r){return`
|
||||
Error generating stack: `+r.message+`
|
||||
`+r.stack}}function it(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function ft(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function L(t){if(it(t)!==t)throw Error(l(188))}function Z(t){var e=t.alternate;if(!e){if(e=it(t),e===null)throw Error(l(188));return e!==t?null:t}for(var r=t,i=e;;){var s=r.return;if(s===null)break;var f=s.alternate;if(f===null){if(i=s.return,i!==null){r=i;continue}break}if(s.child===f.child){for(f=s.child;f;){if(f===r)return L(s),t;if(f===i)return L(s),e;f=f.sibling}throw Error(l(188))}if(r.return!==i.return)r=s,i=f;else{for(var v=!1,w=s.child;w;){if(w===r){v=!0,r=s,i=f;break}if(w===i){v=!0,i=s,r=f;break}w=w.sibling}if(!v){for(w=f.child;w;){if(w===r){v=!0,r=f,i=s;break}if(w===i){v=!0,i=f,r=s;break}w=w.sibling}if(!v)throw Error(l(189))}}if(r.alternate!==i)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?t:e}function gt(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=gt(t),e!==null)return e;t=t.sibling}return null}var mt=Array.isArray,dt=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xt={pending:!1,data:null,method:null,action:null},pt=[],Bt=-1;function yt(t){return{current:t}}function Et(t){0>Bt||(t.current=pt[Bt],pt[Bt]=null,Bt--)}function Tt(t,e){Bt++,pt[Bt]=t.current,t.current=e}var _t=yt(null),Gt=yt(null),Mt=yt(null),Dt=yt(null);function fe(t,e){switch(Tt(Mt,e),Tt(Gt,t),Tt(_t,null),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)&&(e=e.namespaceURI)?vh(e):0;break;default:if(t=t===8?e.parentNode:e,e=t.tagName,t=t.namespaceURI)t=vh(t),e=bh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Et(_t),Tt(_t,e)}function He(){Et(_t),Et(Gt),Et(Mt)}function we(t){t.memoizedState!==null&&Tt(Dt,t);var e=_t.current,r=bh(e,t.type);e!==r&&(Tt(Gt,t),Tt(_t,r))}function me(t){Gt.current===t&&(Et(_t),Et(Gt)),Dt.current===t&&(Et(Dt),So._currentValue=xt)}var on=Object.prototype.hasOwnProperty,Ge=n.unstable_scheduleCallback,Ve=n.unstable_cancelCallback,Ot=n.unstable_shouldYield,jn=n.unstable_requestPaint,de=n.unstable_now,Ze=n.unstable_getCurrentPriorityLevel,Fn=n.unstable_ImmediatePriority,x=n.unstable_UserBlockingPriority,h=n.unstable_NormalPriority,g=n.unstable_LowPriority,D=n.unstable_IdlePriority,F=n.log,G=n.unstable_setDisableYieldValue,tt=null,wt=null;function ne(t){if(wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(tt,t,void 0,(t.current.flags&128)===128)}catch{}}function Kt(t){if(typeof F=="function"&&G(t),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(tt,t)}catch{}}var qt=Math.clz32?Math.clz32:Pm,te=Math.log,Mm=Math.LN2;function Pm(t){return t>>>=0,t===0?32:31-(te(t)/Mm|0)|0}var _o=128,$o=4194304;function Qr(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function tl(t,e){var r=t.pendingLanes;if(r===0)return 0;var i=0,s=t.suspendedLanes,f=t.pingedLanes,v=t.warmLanes;t=t.finishedLanes!==0;var w=r&134217727;return w!==0?(r=w&~s,r!==0?i=Qr(r):(f&=w,f!==0?i=Qr(f):t||(v=w&~v,v!==0&&(i=Qr(v))))):(w=r&~s,w!==0?i=Qr(w):f!==0?i=Qr(f):t||(v=r&~v,v!==0&&(i=Qr(v)))),i===0?0:e!==0&&e!==i&&!(e&s)&&(s=i&-i,v=e&-e,s>=v||s===32&&(v&4194176)!==0)?e:i}function Di(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Vm(t,e){switch(t){case 1:case 2:case 4:case 8:return e+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cd(){var t=_o;return _o<<=1,!(_o&4194176)&&(_o=128),t}function fd(){var t=$o;return $o<<=1,!($o&62914560)&&($o=4194304),t}function Ws(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function ji(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xm(t,e,r,i,s,f){var v=t.pendingLanes;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=r,t.entangledLanes&=r,t.errorRecoveryDisabledLanes&=r,t.shellSuspendCounter=0;var w=t.entanglements,k=t.expirationTimes,P=t.hiddenUpdates;for(r=v&~r;0<r;){var nt=31-qt(r),st=1<<nt;w[nt
Line truncated
|
||||
`).replace(Ov,"")}function yh(t,e){return e=mh(e),mh(t)===e}function Gl(){}function ae(t,e,r,i,s,f){switch(r){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||Na(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&Na(t,""+i);break;case"className":nl(t,"class",i);break;case"tabIndex":nl(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":nl(t,r,i);break;case"style":Ed(t,i,f);break;case"data":if(e!=="object"){nl(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||r!=="href")){t.removeAttribute(r);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(r);break}i=il(""+i),t.setAttribute(r,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(r==="formAction"?(e!=="input"&&ae(t,e,"name",s.name,s,null),ae(t,e,"formEncType",s.formEncType,s,null),ae(t,e,"formMethod",s.formMethod,s,null),ae(t,e,"formTarget",s.formTarget,s,null)):(ae(t,e,"encType",s.encType,s,null),ae(t,e,"method",s.method,s,null),ae(t,e,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(r);break}i=il(""+i),t.setAttribute(r,i);break;case"onClick":i!=null&&(t.onclick=Gl);break;case"onScroll":i!=null&&Lt("scroll",t);break;case"onScrollEnd":i!=null&&Lt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(s.children!=null)throw Error(l(60));t.innerHTML=r}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}r=il(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(r,""+i):t.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(r,""):t.removeAttribute(r);break;case"capture":case"download":i===!0?t.setAttribute(r,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(r,i):t.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(r,i):t.removeAttribute(r);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(r):t.setAttribute(r,i);break;case"popover":Lt("beforetoggle",t),Lt("toggle",t),el(t,"popover",i);break;case"xlinkActuate":_n(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":_n(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":_n(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":_n(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":_n(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":_n(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":_n(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":_n(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":_n(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":el(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=_m.get(r)||r,el(t,r,i))}}function zc(t,e,r,i,s,f){switch(r){case"style":Ed(t,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(s.children!=null)throw Error(l(60));t.innerHTML=r}}break;case"children":typeof i=="string"?Na(t,i):(typeof i=="number"||typeof i=="bigint")&&Na(t,""+i);break;case"onScroll":i!=null&&Lt("scroll",t);break;case"onScrollEnd":i!=null&&Lt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Gl);break;case"suppressContentEditableWarning":case"suppressHydrationWar
Line truncated
|
||||
* react-is.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var lg;function tA(){if(lg)return $t;lg=1;var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,p=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,y=n?Symbol.for("react.concurrent_mode"):60111,A=n?Symbol.for("react.forward_ref"):60112,b=n?Symbol.for("react.suspense"):60113,O=n?Symbol.for("react.suspense_list"):60120,B=n?Symbol.for("react.memo"):60115,E=n?Symbol.for("react.lazy"):60116,C=n?Symbol.for("react.block"):60121,R=n?Symbol.for("react.fundamental"):60117,j=n?Symbol.for("react.responder"):60118,N=n?Symbol.for("react.scope"):60119;function U(H){if(typeof H=="object"&&H!==null){var I=H.$$typeof;switch(I){case a:switch(H=H.type,H){case m:case y:case l:case c:case u:case b:return H;default:switch(H=H&&H.$$typeof,H){case d:case A:case E:case B:case p:return H;default:return I}}case o:return I}}}function q(H){return U(H)===y}return $t.AsyncMode=m,$t.ConcurrentMode=y,$t.ContextConsumer=d,$t.ContextProvider=p,$t.Element=a,$t.ForwardRef=A,$t.Fragment=l,$t.Lazy=E,$t.Memo=B,$t.Portal=o,$t.Profiler=c,$t.StrictMode=u,$t.Suspense=b,$t.isAsyncMode=function(H){return q(H)||U(H)===m},$t.isConcurrentMode=q,$t.isContextConsumer=function(H){return U(H)===d},$t.isContextProvider=function(H){return U(H)===p},$t.isElement=function(H){return typeof H=="object"&&H!==null&&H.$$typeof===a},$t.isForwardRef=function(H){return U(H)===A},$t.isFragment=function(H){return U(H)===l},$t.isLazy=function(H){return U(H)===E},$t.isMemo=function(H){return U(H)===B},$t.isPortal=function(H){return U(H)===o},$t.isProfiler=function(H){return U(H)===c},$t.isStrictMode=function(H){return U(H)===u},$t.isSuspense=function(H){return U(H)===b},$t.isValidElementType=function(H){return typeof H=="string"||typeof H=="function"||H===l||H===y||H===c||H===u||H===b||H===O||typeof H=="object"&&H!==null&&(H.$$typeof===E||H.$$typeof===B||H.$$typeof===p||H.$$typeof===d||H.$$typeof===A||H.$$typeof===R||H.$$typeof===j||H.$$typeof===N||H.$$typeof===C)},$t.typeOf=U,$t}var sg;function eA(){return sg||(sg=1,of.exports=tA()),of.exports}var lf,ug;function nA(){if(ug)return lf;ug=1;var n=eA(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=l,c[n.Memo]=u;function p(E){return n.isMemo(E)?u:c[E.$$typeof]||a}var d=Object.defineProperty,m=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,A=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,O=Object.prototype;function B(E,C,R){if(typeof C!="string"){if(O){var j=b(C);j&&j!==O&&B(E,j,R)}var N=m(C);y&&(N=N.concat(y(C)));for(var U=p(E),q=p(C),H=0;H<N.length;++H){var I=N[H];if(!o[I]&&!(R&&R[I])&&!(q&&q[I])&&!(U&&U[I])){var J=A(C,I);try{d(E,I,J)}catch{}}}}return E}return lf=B,lf}nA();var rA=!0;function k1(n,a,o){var l="";return o.split(" ").forEach(function(u){n[u]!==void 0?a.push(n[u]+";"):u&&(l+=u+" ")}),l}var Vf=function(a,o,l){var u=a.key+"-"+o.name;(l===!1||rA===!1)&&a.registered[u]===void 0&&(a.registered[u]=o.styles)},Xf=function(a,o,l){Vf(a,o,l);var u=a.key+"-"+o.name;if(a.inserted[o.name]===void 0){var c=o;do a.insert(o===c?"."+u:"",c,a.sheet,!0),c=c.next;while(c!==void 0)}};function aA(n){for(var a=0,o,l=0,u=n.length;u>=4;++l,u-=4)o=n.charCodeAt(l)&255|(n.charCodeAt(++l)&255)<<8|(n.charCodeAt(++l)&255)<<16|(n.charCodeAt(++l)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,a=(o&65535)*1540483477+((o>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(u){case 3:a^=(n.charCodeAt(l+2)&255)<<16;case 2:a^=(n.charCodeAt(l+1)&255)<<8;case 1:a^=n.charCodeAt(l)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var iA={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oA=/[A-Z]|^ms/g,lA=/_EMO_([^_]+?)_([^]*?)_EMO_/g,N1=function(a){return a.charCodeAt(1)===45},cg=functioLine truncated
|
||||
* @mui/styled-engine v6.4.2
|
||||
*
|
||||
* @license MIT
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/function F1(n,a){return Tn(n,a)}function BA(n,a){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=a(n.__emotion_styles))}const yg=[];function vg(n){return yg[0]=n,Wo(yg)}var uf={exports:{}},ie={};/**
|
||||
* @license React
|
||||
* react-is.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var bg;function TA(){if(bg)return ie;bg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),B=Symbol.for("react.client.reference");function E(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case n:switch(C=C.type,C){case o:case u:case l:case m:case y:return C;default:switch(C=C&&C.$$typeof,C){case p:case d:case b:case A:return C;case c:return C;default:return R}}case a:return R}}}return ie.ContextConsumer=c,ie.ContextProvider=p,ie.Element=n,ie.ForwardRef=d,ie.Fragment=o,ie.Lazy=b,ie.Memo=A,ie.Portal=a,ie.Profiler=u,ie.StrictMode=l,ie.Suspense=m,ie.SuspenseList=y,ie.isContextConsumer=function(C){return E(C)===c},ie.isContextProvider=function(C){return E(C)===p},ie.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},ie.isForwardRef=function(C){return E(C)===d},ie.isFragment=function(C){return E(C)===o},ie.isLazy=function(C){return E(C)===b},ie.isMemo=function(C){return E(C)===A},ie.isPortal=function(C){return E(C)===a},ie.isProfiler=function(C){return E(C)===u},ie.isStrictMode=function(C){return E(C)===l},ie.isSuspense=function(C){return E(C)===m},ie.isSuspenseList=function(C){return E(C)===y},ie.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===u||C===l||C===m||C===y||C===O||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===A||C.$$typeof===p||C.$$typeof===c||C.$$typeof===d||C.$$typeof===B||C.getModuleId!==void 0)},ie.typeOf=E,ie}var Ag;function DA(){return Ag||(Ag=1,uf.exports=TA()),uf.exports}var M1=DA();function Gn(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function P1(n){if(z.isValidElement(n)||M1.isValidElementType(n)||!Gn(n))return n;const a={};return Object.keys(n).forEach(o=>{a[o]=P1(n[o])}),a}function We(n,a,o={clone:!0}){const l=o.clone?{...n}:n;return Gn(n)&&Gn(a)&&Object.keys(a).forEach(u=>{z.isValidElement(a[u])||M1.isValidElementType(a[u])?l[u]=a[u]:Gn(a[u])&&Object.prototype.hasOwnProperty.call(n,u)&&Gn(n[u])?l[u]=We(n[u],a[u],o):o.clone?l[u]=Gn(a[u])?P1(a[u]):a[u]:l[u]=a[u]}),l}const jA=n=>{const a=Object.keys(n).map(o=>({key:o,val:n[o]}))||[];return a.sort((o,l)=>o.val-l.val),a.reduce((o,l)=>({...o,[l.key]:l.val}),{})};function HA(n){const{values:a={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:l=5,...u}=n,c=jA(a),p=Object.keys(c);function d(O){return`@media (min-width:${typeof a[O]=="number"?a[O]:O}${o})`}function m(O){return`@media (max-width:${(typeof a[O]=="number"?a[O]:O)-l/100}${o})`}function y(O,B){const E=p.indexOf(B);return`@media (min-width:${typeof a[O]=="number"?a[O]:O}${o}) and (max-width:${(E!==-1&&typeof a[p[E]]=="number"?a[p[E]]:B)-l/100}${o})`}function A(O){return p.indexOf(O)+1<p.length?y(O,p[p.indexOf(O)+1]):d(O)}function b(O){const B=p.indexOf(O);return B===0?d(p[1]):B===p.length-1?m(p[B]):y(O,p[p.indexOf(O)+1]).replace("@media","@media not all and")}return{keys:p,values:c,up:d,down:m,between:y,only:A,not:b,unit:o,...u}}function UA(n,a){if(!n.containerQueries)return a;const o=Object.keys(a).filter(l=>l.startsWith("@container")).sort((l,u)=>{var p,d;const c=/min-width:\s*([0-9.]+)/;return+(((p=l.match(c))==null?void 0:p[1])||0)-+(((d=u.match(c))==null?void 0:d[1])||0)});return o.length?o.reduce((l,u)=>{const c=a[u];return delete l[u],l[u]=c,l},{...a}):a}function kA(n,a){return a==="@"||a.startsWith("@")&&(n.some(o=>a.startsWith(`@${o}`))||!!a.match(/^@\d/))}function NA(n,a){const o=a.match(/^@([^/]+)?\/?(.+)?$/);if(!o)return null;const[,l,u]=o,c=Number.isNaN(+l)?l||0:+l;return n.containerQueries(u).up(c)}function zA(n){const a=(c,p)=>c.replace("@media",p?`@container ${p}`:"@container");function o(c,p){c.up=(...d)=>a(n.breakpoints.up(...d),p),c.down=(...d)=>a(n.breakpoints.down(...d),p),c.between=(...d)=>a(n.breakpoints.between(...d),p),c.only=(...d)=>a(n.breakpoints.only(...d),p),c.not=(...d)=>{const m=a(n.breakpoints.not(...d),p);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const l={},u=c=>(o(l,c),l);return o(u),{...n,containerQueries:u}}const qA={borderRadius:4};function qo(n,a){return a?We(n,a,{clone:!1}):n}const zs={xs:0,sm:600,md:900,lg:1200,xl:1536},Sg={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${zs[n]}px)`},LA={containerQueries:n=>({up:a=>{let o=typeof a=="number"?a:zs[a]||a;return typeof o=="number"&&(o=`${o}px`),n?`@container ${n} (min-width:${o})`:`@container (min-width:${o})`}})};function zn(n,a,o){const l=n.theme||{};if(Array.isArLine truncated
|
||||
|
||||
const theme = ${JSON.stringify(a,null,2)};
|
||||
|
||||
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
||||
theme.transitions = createTransitions(theme.transitions || {});
|
||||
|
||||
export default theme;`}function Ef(n={},...a){const{breakpoints:o,mixins:l={},spacing:u,palette:c={},transitions:p={},typography:d={},shape:m,...y}=n;if(n.vars)throw new Error(Vr(20));const A=td(c),b=Zo(n);let O=We(b,{mixins:N4(b.breakpoints,l),palette:A,shadows:P4.slice(),typography:q4(A,d),transitions:K4(p),zIndex:{...I4}});return O=We(O,y),O=a.reduce((B,E)=>We(B,E),O),O.unstable_sxConfig={...Qo,...y==null?void 0:y.unstable_sxConfig},O.unstable_sx=function(E){return Ra({sx:E,theme:this})},O.toRuntimeSource=lm,O}function Bf(n){let a;return n<1?a=5.11916*n**2:a=4.5*Math.log(n+1)+2,Math.round(a*10)/1e3}const W4=[...Array(25)].map((n,a)=>{if(a===0)return"none";const o=Bf(a);return`linear-gradient(rgba(255 255 255 / ${o}), rgba(255 255 255 / ${o}))`});function sm(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function um(n){return n==="dark"?W4:[]}function G4(n){const{palette:a={mode:"light"},opacity:o,overlays:l,...u}=n,c=td(a);return{palette:c,opacity:{...sm(c.mode),...o},overlays:l||um(c.mode),...u}}function Y4(n){var a;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((a=n[1])!=null&&a.match(/(mode|contrastThreshold|tonalOffset)/))}const Q4=n=>[...[...Array(25)].map((a,o)=>`--${n?`${n}-`:""}overlays-${o}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],Z4=n=>(a,o)=>{const l=n.rootSelector||":root",u=n.colorSchemeSelector;let c=u;if(u==="class"&&(c=".%s"),u==="data"&&(c="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(c=`[${u}="%s"]`),n.defaultColorScheme===a){if(a==="dark"){const p={};return Q4(n.cssVarPrefix).forEach(d=>{p[d]=o[d],delete o[d]}),c==="media"?{[l]:o,"@media (prefers-color-scheme: dark)":{[l]:p}}:c?{[c.replace("%s",a)]:p,[`${l}, ${c.replace("%s",a)}`]:o}:{[l]:{...o,...p}}}if(c&&c!=="media")return`${l}, ${c.replace("%s",String(a))}`}else if(a){if(c==="media")return{[`@media (prefers-color-scheme: ${String(a)})`]:{[l]:o}};if(c)return c.replace("%s",String(a))}return l};function _4(n,a){a.forEach(o=>{n[o]||(n[o]={})})}function $(n,a,o){!n[a]&&o&&(n[a]=o)}function No(n){return typeof n!="string"||!n.startsWith("hsl")?n:$1(n)}function hr(n,a){`${a}Channel`in n||(n[`${a}Channel`]=ko(No(n[a])))}function $4(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const In=n=>{try{return n()}catch{}},tx=(n="mui")=>c4(n);function pf(n,a,o,l){if(!a)return;a=a===!0?{}:a;const u=l==="dark"?"dark":"light";if(!o){n[l]=G4({...a,palette:{mode:u,...a==null?void 0:a.palette}});return}const{palette:c,...p}=Ef({...o,palette:{mode:u,...a==null?void 0:a.palette}});return n[l]={...a,palette:c,opacity:{...sm(u),...a==null?void 0:a.opacity},overlays:(a==null?void 0:a.overlays)||um(u)},p}function ex(n={},...a){const{colorSchemes:o={light:!0},defaultColorScheme:l,disableCssColorScheme:u=!1,cssVarPrefix:c="mui",shouldSkipGeneratingVar:p=Y4,colorSchemeSelector:d=o.light&&o.dark?"media":void 0,rootSelector:m=":root",...y}=n,A=Object.keys(o)[0],b=l||(o.light&&A!=="light"?"light":A),O=tx(c),{[b]:B,light:E,dark:C,...R}=o,j={...R};let N=B;if((b==="dark"&&!("dark"in o)||b==="light"&&!("light"in o))&&(N=!0),!N)throw new Error(Vr(21,b));const U=pf(j,N,y,b);E&&!j.light&&pf(j,E,void 0,"light"),C&&!j.dark&&pf(j,C,void 0,"dark");let q={defaultColorScheme:b,...U,cssVarPrefix:c,colorSchemeSelector:d,rootSelector:m,getCssVar:O,colorSchemes:j,font:{...k4(U.typography),...U.font},spacing:$4(y.spacing)};Object.keys(q.colorSchemes).forEach(K=>{const S=q.colorSchemes[K].palette,X=_=>{const at=_.split("-"),lt=at[1],ut=at[2];return O(_,S[lt][ut])};if(S.mode==="light"&&($(S.common,"background","#fff"),$(S.common,"onBackground","#000")),S.mode==="dark"&&($(S.common,"background","#000"),$(S.common,"onBackground","#fff")),_4(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){$(S.Alert,"errorColor",le(S.error.light,.6)),$(S.Alert,"infoColor",le(S.info.light,.6)),$(S.Alert,"successColor",le(S.success.light,.6)),$(S.Alert,"warningColor",le(S.warning.light,.6)),$(S.Alert,"errorFilledBg",X("palette-error-main")),$(S.Alert,"infoFilledBg",X("palette-info-main")),$(S.Alert,"successFilledBg",X("palette-success-main")),$(S.Alert,"warningFilledBg",X("palette-warning-main")),$(S.Alert,"errorFilledColor",In(()=>S.getContrastText(S.error.main))),$(S.Alert,"infoFilledColor",In(()=>S.getContrastText(S.info.main))),$(S.Alert,"successFilledColor",In(()=>S.getContrastText(S.success.main))),$(S.Alert,"warningFilledColor",In(()=>S.getContrastText(S.warning.main))),$(S.Alert,"errorStandardBg",se(S.error.light,.9)),$(S.Alert,"infoStandardBg",se(S.info.light,.9)),$(S.Alert,"successStandardBg",
Line truncated
|
||||
0% {
|
||||
transform: scale(0);
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 0.3;
|
||||
}
|
||||
`,qx=Go`
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
`,Lx=Go`
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(0.92);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
`,Fx=bt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Mx=bt(kx,{name:"MuiTouchRipple",slot:"Ripple"})`
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
|
||||
&.${En.rippleVisible} {
|
||||
opacity: 0.3;
|
||||
transform: scale(1);
|
||||
animation-name: ${zx};
|
||||
animation-duration: ${Hf}ms;
|
||||
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
||||
}
|
||||
|
||||
&.${En.ripplePulsate} {
|
||||
animation-duration: ${({theme:n})=>n.transitions.duration.shorter}ms;
|
||||
}
|
||||
|
||||
& .${En.child} {
|
||||
opacity: 1;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
& .${En.childLeaving} {
|
||||
opacity: 0;
|
||||
animation-name: ${qx};
|
||||
animation-duration: ${Hf}ms;
|
||||
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
||||
}
|
||||
|
||||
& .${En.childPulsate} {
|
||||
position: absolute;
|
||||
/* @noflip */
|
||||
left: 0px;
|
||||
top: 0;
|
||||
animation-name: ${Lx};
|
||||
animation-duration: 2500ms;
|
||||
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
||||
animation-iteration-count: infinite;
|
||||
animation-delay: 200ms;
|
||||
}
|
||||
`,Px=z.forwardRef(function(a,o){const l=Ft({props:a,name:"MuiTouchRipple"}),{center:u=!1,classes:c={},className:p,...d}=l,[m,y]=z.useState([]),A=z.useRef(0),b=z.useRef(null);z.useEffect(()=>{b.current&&(b.current(),b.current=null)},[m]);const O=z.useRef(!1),B=nm(),E=z.useRef(null),C=z.useRef(null),R=z.useCallback(q=>{const{pulsate:H,rippleX:I,rippleY:J,rippleSize:rt,cb:K}=q;y(S=>[...S,T.jsx(Mx,{classes:{ripple:St(c.ripple,En.ripple),rippleVisible:St(c.rippleVisible,En.rippleVisible),ripplePulsate:St(c.ripplePulsate,En.ripplePulsate),child:St(c.child,En.child),childLeaving:St(c.childLeaving,En.childLeaving),childPulsate:St(c.childPulsate,En.childPulsate)},timeout:Hf,pulsate:H,rippleX:I,rippleY:J,rippleSize:rt},A.current)]),A.current+=1,b.current=K},[c]),j=z.useCallback((q={},H={},I=()=>{})=>{const{pulsate:J=!1,center:rt=u||H.pulsate,fakeElement:K=!1}=H;if((q==null?void 0:q.type)==="mousedown"&&O.current){O.current=!1;return}(q==null?void 0:q.type)==="touchstart"&&(O.current=!0);const S=K?null:C.current,X=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,at,lt;if(rt||q===void 0||q.clientX===0&&q.clientY===0||!q.clientX&&!q.touches)_=Math.round(X.width/2),at=Math.round(X.height/2);else{const{clientX:ut,clientY:Q}=q.touches&&q.touches.length>0?q.touches[0]:q;_=Math.round(ut-X.left),at=Math.round(Q-X.top)}if(rt)lt=Math.sqrt((2*X.width**2+X.height**2)/3),lt%2===0&&(lt+=1);else{const ut=Math.max(Math.abs((S?S.clientWidth:0)-_),_)*2+2,Q=Math.max(Math.abs((S?S.clientHeight:0)-at),at)*2+2;lt=Math.sqrt(ut**2+Q**2)}q!=null&&q.touches?E.current===null&&(E.current=()=>{R({pulsate:J,rippleX:_,rippleY:at,rippleSize:lt,cb:I})},B.start(Nx,()=>{E.current&&(E.current(),E.current=null)})):R({pulsate:J,rippleX:_,rippleY:at,rippleSize:lt,cb:I})},[u,R,B]),N=z.useCallback(()=>{j({},{pulsate:!0})},[j]),U=z.useCallback((q,H)=>{if(B.clear(),(q==null?void 0:q.type)==="touchend"&&E.current){E.current(),E.current=null,B.start(0,()=>{U(q,H)});return}E.current=null,y(I=>I.length>0?I.slice(1):I),b.current=H},[B]);return z.useImperativeHandle(o,()=>({pulsate:N,start:j,stop:U}),[N,j,U]),T.jsx(Fx,{className:St(En.root,c.root,p),ref:C,...d,children:T.jsx(id,{component:null,exit:!0,children:m})})});function Vx(n){return Vt("MuiButtonBase",n)}const Xx=Xt("MuiButtonBase",["root","disabled","focusVisible"]),Kx=n=>{const{disabled:a,focusVisible:o,focusVisibleClassName:l,classes:u}=n,p=It({root:["root",a&&"disabled",o&&"focusVisible"]},Vx,u);return o&&l&&(p.root+=` ${l}`),p},Ix=bt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,a)=>a.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Xx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ba=z.forwardRef(function(a,o){const l=Ft({props:a,name:"MuiButtonBase"}),{action:u,centerRipple:c=!1,children:p,className:d,component:m="button",disabled:y=!1,disableRipple:A=!1,disableTouchRipple:b=!1,focusRipple:O=!1,focusVisibleClassName:B,LinkComponent:E="a",onBlur:C,onClick:R,onContextMenu:j,onDragLeave:N,onFocus:U,onFocusVisible:q,onKeyDown:H,onKeyUp:I,onMouseDown:J,onMouseLeave:rt,onMouseUp:K,onTouchEnd:S,onTouchMove:X,onTouchStart:_,tabIndex:at=0,TouchRippleProps:lt,touchRippleRef:ut,type:Q,...ct}=l,it=z.useRef(null),ft=Hx(),L=hn(ft.ref,ut),[Z,gt]=z.useState(!1);y&&Z&>(!1),z.useImperativeHandle(u,()=>({focusVisible:()=>{gt(!0),it.current.focus()}}),[]);const mt=ft.shouldMount&&!A&&!y;z.useEffect(()=>{Z&&O&&!A&&ft.pulsate()},[A,O,Z,ft]);const dt=gr(ft,"start",J,b),xt=gr(ft,"stop",j,b),pt=gr(ft,"stop",N,b),Bt=gr(ft,"stop",K,b),yt=gr(ft,"stop",Ot=>{Z&&Ot.preventDefault(),rt&&rt(Ot)},b),Et=gr(ft,"start",_,b),Tt=gr(ft,"stop",S,b),_t=gr(ft,"stop",X,b),Gt=gr(ft,"stop",Ot=>{Rs(Ot.target)||gt(!1),C&&C(Ot)},!1),Mt=Si(Ot=>{it.current||(it.current=Ot.currentTarget),Rs(Ot.target)&&(gt(!0),q&&q(Ot)),U&&U(Ot)}),Dt=()=>{const Ot=it.current;return m&&m!=="button"&&!(Ot.tagName==="A"&&Ot.href)},fe=Si(Ot=>{O&&!Ot.repeat&&Z&&Ot.key===" "&&ft.stop(Ot,()=>{ft.start(Ot)}),Ot.target===Ot.currentTarget&&Dt()&&Ot.key===" "&&Ot.preventDefault(),H&&H(Ot),Ot.target===Ot.currentTarget&&Dt()&&Ot.key==="Enter"&&!y&&(Ot.preventDefault(),R&&R(Ot))}),He=Si(Ot=>{O&&Ot.key===" "&&Z&&!Ot.defaultPrevented&&ft.stop(Ot,()=>{ft.pulsate(Ot)}),I&&I(Ot),R&&Ot.target===Ot.currentTarget&&Dt()&&Ot.key===" "&&!Ot.defaultPrevented&&R(Ot)});let we=m;we==="button"&&(ct.href||ct.to)&&(we=E);const me={};we==="button"?(me.type=Q===void 0?"button":Q,me.disabled=y):(!ct.href&&!ct.to&&(me.role="button"),y&&(me["aria-disabled"]=y));const on=hn(o,it),Ge={...l,centerRipple:c,component:m,disabled:y,disableRipple:A,disableTouchR
Line truncated
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
`,kf=Go`
|
||||
0% {
|
||||
stroke-dasharray: 1px, 200px;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
stroke-dasharray: 100px, 200px;
|
||||
stroke-dashoffset: -15px;
|
||||
}
|
||||
|
||||
100% {
|
||||
stroke-dasharray: 1px, 200px;
|
||||
stroke-dashoffset: -126px;
|
||||
}
|
||||
`,nO=typeof Uf!="string"?Jf`
|
||||
animation: ${Uf} 1.4s linear infinite;
|
||||
`:null,rO=typeof kf!="string"?Jf`
|
||||
animation: ${kf} 1.4s ease-in-out infinite;
|
||||
`:null,aO=n=>{const{classes:a,variant:o,color:l,disableShrink:u}=n,c={root:["root",o,`color${ht(l)}`],svg:["svg"],circle:["circle",`circle${ht(o)}`,u&&"circleDisableShrink"]};return It(c,eO,a)},iO=bt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(n,a)=>{const{ownerState:o}=n;return[a.root,a[o.variant],a[`color${ht(o.color)}`]]}})(Zt(({theme:n})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:n.transitions.create("transform")}},{props:{variant:"indeterminate"},style:nO||{animation:`${Uf} 1.4s linear infinite`}},...Object.entries(n.palette).filter(nn()).map(([a])=>({props:{color:a},style:{color:(n.vars||n).palette[a].main}}))]}))),oO=bt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(n,a)=>a.svg})({display:"block"}),lO=bt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(n,a)=>{const{ownerState:o}=n;return[a.circle,a[`circle${ht(o.variant)}`],o.disableShrink&&a.circleDisableShrink]}})(Zt(({theme:n})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:n.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:a})=>a.variant==="indeterminate"&&!a.disableShrink,style:rO||{animation:`${kf} 1.4s ease-in-out infinite`}}]}))),od=z.forwardRef(function(a,o){const l=Ft({props:a,name:"MuiCircularProgress"}),{className:u,color:c="primary",disableShrink:p=!1,size:d=40,style:m,thickness:y=3.6,value:A=0,variant:b="indeterminate",...O}=l,B={...l,color:c,disableShrink:p,size:d,thickness:y,value:A,variant:b},E=aO(B),C={},R={},j={};if(b==="determinate"){const N=2*Math.PI*((Mr-y)/2);C.strokeDasharray=N.toFixed(3),j["aria-valuenow"]=Math.round(A),C.strokeDashoffset=`${((100-A)/100*N).toFixed(3)}px`,R.transform="rotate(-90deg)"}return T.jsx(iO,{className:St(E.root,u),style:{width:d,height:d,...R,...m},ownerState:B,ref:o,role:"progressbar",...j,...O,children:T.jsx(oO,{className:E.svg,ownerState:B,viewBox:`${Mr/2} ${Mr/2} ${Mr} ${Mr}`,children:T.jsx(lO,{className:E.circle,style:C,ownerState:B,cx:Mr,cy:Mr,r:(Mr-y)/2,fill:"none",strokeWidth:y})})})});function sO(n){return Vt("MuiIconButton",n)}const Fg=Xt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),uO=n=>{const{classes:a,disabled:o,color:l,edge:u,size:c,loading:p}=n,d={root:["root",p&&"loading",o&&"disabled",l!=="default"&&`color${ht(l)}`,u&&`edge${ht(u)}`,`size${ht(c)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return It(d,sO,a)},cO=bt(Ba,{name:"MuiIconButton",slot:"Root",overridesResolver:(n,a)=>{const{ownerState:o}=n;return[a.root,o.loading&&a.loading,o.color!=="default"&&a[`color${ht(o.color)}`],o.edge&&a[`edge${ht(o.edge)}`],a[`size${ht(o.size)}`]]}})(Zt(({theme:n})=>({textAlign:"center",flex:"0 0 auto",fontSize:n.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(n.vars||n).palette.action.active,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest}),variants:[{props:a=>!a.disableRipple,style:{"--IconButton-hoverBg":n.vars?`rgba(${n.vars.palette.action.activeChannel} / ${n.vars.palette.action.hoverOpacity})`:ee(n.palette.action.active,n.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Zt(({theme:n})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(n.palette).filter(nn()).map(([a])=>({props:{color:a},style:{color:(n.vars||n).palette[a].main}})),...Object.entries(n.palette).filter(nn()).map(([a])=>({props:{color:a},style:{"--IconButton-hoverBg":n.vars?`rgba(${(n.vars||n).palette[a].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:ee((n.vars||n).palette[a].main,n.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:n.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:n.typography.pxToRem(28)}}],[`&.${Fg.disabled}`]:{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled},[`&.${Fg.loading}`]:{color:"transparent"}}))),fO=bt("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(n,a)=>a.loadingIndicator})(({theme:n})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(n.vars||n).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ts=z.forwardRef(function(a,o){const l=Ft({props:a,name:"MuiIconButton"}),{edge:u=!1,children:c,className:p,color:d="default",disabled:m=!1,disable
Line truncated
|
||||
`&&(U.value+=" ");const I=H.boxSizing,J=ps(H.paddingBottom)+ps(H.paddingTop),rt=ps(H.borderBottomWidth)+ps(H.borderTopWidth),K=U.scrollHeight;U.value="x";const S=U.scrollHeight;let X=K;c&&(X=Math.max(Number(c)*S,X)),u&&(X=Math.min(Number(u)*S,X)),X=Math.max(X,S);const _=X+(I==="border-box"?J+rt:0),at=Math.abs(X-K)<=1;return{outerHeightStyle:_,overflowing:at}},[u,c,a.placeholder]),C=z.useCallback(()=>{const N=A.current,U=E();if(!N||!U||LO(U))return;const q=U.outerHeightStyle;O.current!==q&&(O.current=q,N.style.height=`${q}px`),N.style.overflow=U.overflowing?"hidden":""},[E]),R=z.useRef(-1);wi(()=>{const N=tm(()=>C()),U=A==null?void 0:A.current;if(!U)return;const q=Kr(U);q.addEventListener("resize",N);let H;return typeof ResizeObserver<"u"&&(H=new ResizeObserver(()=>{H.unobserve(U),cancelAnimationFrame(R.current),C(),R.current=requestAnimationFrame(()=>{H.observe(U)})}),H.observe(U)),()=>{N.clear(),cancelAnimationFrame(R.current),q.removeEventListener("resize",N),H&&H.disconnect()}},[E,C]),wi(()=>{C()});const j=N=>{y||C(),l&&l(N)};return T.jsxs(z.Fragment,{children:[T.jsx("textarea",{value:d,onChange:j,ref:b,rows:c,style:p,...m}),T.jsx("textarea",{"aria-hidden":!0,className:a.className,readOnly:!0,ref:B,tabIndex:-1,style:{...zO.shadow,...p,paddingTop:0,paddingBottom:0}})]})});function Xg(n){return typeof n=="string"}function MO({props:n,states:a,muiFormControl:o}){return a.reduce((l,u)=>(l[u]=n[u],o&&typeof n[u]>"u"&&(l[u]=o[u]),l),{})}const gm=z.createContext(void 0);function PO(){return z.useContext(gm)}function Kg(n){return n!=null&&!(Array.isArray(n)&&n.length===0)}function VO(n,a=!1){return n&&(Kg(n.value)&&n.value!==""||a&&Kg(n.defaultValue)&&n.defaultValue!=="")}function XO(n){return Vt("MuiInputBase",n)}const Ds=Xt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Ig;const mm=(n,a)=>{const{ownerState:o}=n;return[a.root,o.formControl&&a.formControl,o.startAdornment&&a.adornedStart,o.endAdornment&&a.adornedEnd,o.error&&a.error,o.size==="small"&&a.sizeSmall,o.multiline&&a.multiline,o.color&&a[`color${ht(o.color)}`],o.fullWidth&&a.fullWidth,o.hiddenLabel&&a.hiddenLabel]},ym=(n,a)=>{const{ownerState:o}=n;return[a.input,o.size==="small"&&a.inputSizeSmall,o.multiline&&a.inputMultiline,o.type==="search"&&a.inputTypeSearch,o.startAdornment&&a.inputAdornedStart,o.endAdornment&&a.inputAdornedEnd,o.hiddenLabel&&a.inputHiddenLabel]},KO=n=>{const{classes:a,color:o,disabled:l,error:u,endAdornment:c,focused:p,formControl:d,fullWidth:m,hiddenLabel:y,multiline:A,readOnly:b,size:O,startAdornment:B,type:E}=n,C={root:["root",`color${ht(o)}`,l&&"disabled",u&&"error",m&&"fullWidth",p&&"focused",d&&"formControl",O&&O!=="medium"&&`size${ht(O)}`,A&&"multiline",B&&"adornedStart",c&&"adornedEnd",y&&"hiddenLabel",b&&"readOnly"],input:["input",l&&"disabled",E==="search"&&"inputTypeSearch",A&&"inputMultiline",O==="small"&&"inputSizeSmall",y&&"inputHiddenLabel",B&&"inputAdornedStart",c&&"inputAdornedEnd",b&&"readOnly"]};return It(C,XO,a)},vm=bt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:mm})(Zt(({theme:n})=>({...n.typography.body1,color:(n.vars||n).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ds.disabled}`]:{color:(n.vars||n).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:a})=>a.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:a,size:o})=>a.multiline&&o==="small",style:{paddingTop:1}},{props:({ownerState:a})=>a.fullWidth,style:{width:"100%"}}]}))),bm=bt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ym})(Zt(({theme:n})=>{const a=n.palette.mode==="light",o={color:"currentColor",...n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:a?.42:.5},transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})},l={opacity:"0 !important"},u=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:a?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ds.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus::-ms-input-placeholder":u},[`&.${Ds.disabled}`]:{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled},variants:[{props:({ownerState:c})=>!c.disableInject
Line truncated
|
||||
${n.palette.mode==="light"?Ei(ee(n.palette.divider,1),.88):Ri(ee(n.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(n.vars||n).palette.text.primary,lineHeight:n.typography.pxToRem(24),fontWeight:n.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(n.vars||n).palette.text.primary}},{props:{variant:"footer"},style:{color:(n.vars||n).palette.text.secondary,lineHeight:n.typography.pxToRem(21),fontSize:n.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${qw.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:a})=>a.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(n.vars||n).palette.background.default}}]}))),e1=z.forwardRef(function(a,o){const l=Ft({props:a,name:"MuiTableCell"}),{align:u="inherit",className:c,component:p,padding:d,scope:m,size:y,sortDirection:A,variant:b,...O}=l,B=z.useContext(Hm),E=z.useContext(sd),C=E&&E.variant==="head";let R;p?R=p:R=C?"th":"td";let j=m;R==="td"?j=void 0:!j&&C&&(j="col");const N=b||E&&E.variant,U={...l,align:u,component:R,padding:d||(B&&B.padding?B.padding:"normal"),size:y||(B&&B.size?B.size:"medium"),sortDirection:A,stickyHeader:N==="head"&&B&&B.stickyHeader,variant:N},q=Lw(U);let H=null;return A&&(H=A==="asc"?"ascending":"descending"),T.jsx(Fw,{as:R,ref:o,className:St(q.root,c),"aria-sort":H,scope:j,ownerState:U,...O})});function Mw(n){return Vt("MuiTableContainer",n)}Xt("MuiTableContainer",["root"]);const Pw=n=>{const{classes:a}=n;return It({root:["root"]},Mw,a)},Vw=bt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(n,a)=>a.root})({width:"100%",overflowX:"auto"}),Xw=z.forwardRef(function(a,o){const l=Ft({props:a,name:"MuiTableContainer"}),{className:u,component:c="div",...p}=l,d={...l,component:c},m=Pw(d);return T.jsx(Vw,{ref:o,as:c,className:St(m.root,u),ownerState:d,...p})});function Kw(n){return Vt("MuiTableRow",n)}const n1=Xt("MuiTableRow",["root","selected","hover","head","footer"]),Iw=n=>{const{classes:a,selected:o,hover:l,head:u,footer:c}=n;return It({root:["root",o&&"selected",l&&"hover",u&&"head",c&&"footer"]},Kw,a)},Jw=bt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(n,a)=>{const{ownerState:o}=n;return[a.root,o.head&&a.head,o.footer&&a.footer]}})(Zt(({theme:n})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${n1.hover}:hover`]:{backgroundColor:(n.vars||n).palette.action.hover},[`&.${n1.selected}`]:{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / ${n.vars.palette.action.selectedOpacity})`:ee(n.palette.primary.main,n.palette.action.selectedOpacity),"&:hover":{backgroundColor:n.vars?`rgba(${n.vars.palette.primary.mainChannel} / calc(${n.vars.palette.action.selectedOpacity} + ${n.vars.palette.action.hoverOpacity}))`:ee(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}}}))),r1="tr",Ww=z.forwardRef(function(a,o){const l=Ft({props:a,name:"MuiTableRow"}),{className:u,component:c=r1,hover:p=!1,selected:d=!1,...m}=l,y=z.useContext(sd),A={...l,component:c,hover:p,selected:d,head:y&&y.variant==="head",footer:y&&y.variant==="footer"},b=Iw(A);return T.jsx(Jw,{as:c,ref:o,className:St(b.root,u),role:c===r1?null:"row",ownerState:A,...m})});var a1;(function(n){n.Heavy="HEAVY",n.Medium="MEDIUM",n.Light="LIGHT"})(a1||(a1={}));var i1;(function(n){n.Success="SUCCESS",n.Warning="WARNING",n.Error="ERROR"})(i1||(i1={}));const Gw=Qn("Haptics",{web:()=>Jr(()=>import("./web-Cv7MAWfT.js"),[]).then(n=>new n.HapticsWeb)}),o1=Qn("ScreenOrientation",{web:()=>Jr(()=>import("./web-DnmIlor3.js"),[]).then(n=>new n.ScreenOrientationWeb)}),ba=Qn("VoiceRecorder",{web:()=>Jr(()=>import("./web-BhI6AtDE.js"),[]).then(n=>new n.VoiceRecorderWeb)});var Aa={},mr={},yr={},mf={},yf={},Ho={},l1;function Yw(){if(l1)return Ho;l1=1,Ho.byteLength=d,Ho.toByteArray=y,Ho.fromByteArray=O;for(var n=[],a=[],o=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=l.length;u<c;++u)n[u]=l[u],a[l.charCodeAt(u)]=u;a[45]=62,a[95]=63;function p(B){var E=B.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=B.indexOf("=");C===-1&&(C=E);var R=C===E?0:4-C%4;return[C,R]}function d(B){var E=p(B),C=E[0],R=E[1];return(C+R)*3/4-R}function m(B,E,C){return(E+C)*3/4-C}function y(B){var E,C=p(B),R=C[0],j=C[1],N=new o(m(B,R,j)),U=0,q=j>0?R-4:R,H;for(H=0;H<q;H+=4)E=a[B.charCodeAt(H)]<<18|a[B.charCodeAt(H+1)]<<12|a[B.charCodeAt(H+2)]<<6|a[B.charCodeAt(H+3)],N[U++]=E>>16&255,N[U++]=E>>8&255,N[U++]=E&255;return j===2&&(E=a[B.charCodeAt(H)]<<2
Line truncated
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/var u1;function Zw(){return u1||(u1=1,function(n){const a=Yw(),o=Qw(),l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=d,n.SlowBuffer=N,n.INSPECT_MAX_BYTES=50;const u=2147483647;n.kMaxLength=u,d.TYPED_ARRAY_SUPPORT=c(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const x=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(x,h),x.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function p(x){if(x>u)throw new RangeError('The value "'+x+'" is invalid for option "size"');const h=new Uint8Array(x);return Object.setPrototypeOf(h,d.prototype),h}function d(x,h,g){if(typeof x=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(x)}return m(x,h,g)}d.poolSize=8192;function m(x,h,g){if(typeof x=="string")return O(x,h);if(ArrayBuffer.isView(x))return E(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(Ot(x,ArrayBuffer)||x&&Ot(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ot(x,SharedArrayBuffer)||x&&Ot(x.buffer,SharedArrayBuffer)))return C(x,h,g);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=x.valueOf&&x.valueOf();if(D!=null&&D!==x)return d.from(D,h,g);const F=R(x);if(F)return F;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return d.from(x[Symbol.toPrimitive]("string"),h,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}d.from=function(x,h,g){return m(x,h,g)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function y(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function A(x,h,g){return y(x),x<=0?p(x):h!==void 0?typeof g=="string"?p(x).fill(h,g):p(x).fill(h):p(x)}d.alloc=function(x,h,g){return A(x,h,g)};function b(x){return y(x),p(x<0?0:j(x)|0)}d.allocUnsafe=function(x){return b(x)},d.allocUnsafeSlow=function(x){return b(x)};function O(x,h){if((typeof h!="string"||h==="")&&(h="utf8"),!d.isEncoding(h))throw new TypeError("Unknown encoding: "+h);const g=U(x,h)|0;let D=p(g);const F=D.write(x,h);return F!==g&&(D=D.slice(0,F)),D}function B(x){const h=x.length<0?0:j(x.length)|0,g=p(h);for(let D=0;D<h;D+=1)g[D]=x[D]&255;return g}function E(x){if(Ot(x,Uint8Array)){const h=new Uint8Array(x);return C(h.buffer,h.byteOffset,h.byteLength)}return B(x)}function C(x,h,g){if(h<0||x.byteLength<h)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<h+(g||0))throw new RangeError('"length" is outside of buffer bounds');let D;return h===void 0&&g===void 0?D=new Uint8Array(x):g===void 0?D=new Uint8Array(x,h):D=new Uint8Array(x,h,g),Object.setPrototypeOf(D,d.prototype),D}function R(x){if(d.isBuffer(x)){const h=j(x.length)|0,g=p(h);return g.length===0||x.copy(g,0,0,h),g}if(x.length!==void 0)return typeof x.length!="number"||jn(x.length)?p(0):B(x);if(x.type==="Buffer"&&Array.isArray(x.data))return B(x.data)}function j(x){if(x>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return x|0}function N(x){return+x!=x&&(x=0),d.alloc(+x)}d.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==d.prototype},d.compare=function(h,g){if(Ot(h,Uint8Array)&&(h=d.from(h,h.offset,h.byteLength)),Ot(g,Uint8Array)&&(g=d.from(g,g.offset,g.byteLength)),!d.isBuffer(h)||!d.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===g)return 0;let D=h.length,F=g.length;for(let G=0,tt=Math.min(D,F);G<tt;++G)if(h[G]!==g[G]){D=h[G],F=g[G];break}return D<F?-1:F<D?1:0},d.isEncoding=function(h){switch(String(h).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(h,g){if(!Array.isArray(h))throw new TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return d.alloc(0);let D;if(g===void 0)for(g=0,D=0;D<h.length;++D)g+=h[D].length;const F=d.allocUnsafe(g);let G=0;for(D=0;D<h.length;++D){let tt=h[D];if(Ot(tt,Uint8Array))G+tt.length>F.length?(d.isBuffer(tt)||(tt=d.fromLine truncated
|
||||
margin-bottom: 1rem;
|
||||
`;function mR(){const{recordingStatus:n,recordingError:a}=Yr(),{formConfig:o,isNetworkConnected:l}=Gr();return o?T.jsxs(T.Fragment,{children:[!l&&n==="inactive"&&T.jsx(A1,{severity:"info"}),a&&n==="inactive"&&T.jsx(A1,{message:a}),T.jsx(hR,{})]}):null}const yR=xe(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5m0-5.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1"}),"Album"),vR=xe(T.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),qm=xe(T.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),bR=xe(T.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever"),AR=xe(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),SR=xe(T.jsx("path",{d:"M7 18h2V6H7zm4 4h2V2h-2zm-8-8h2v-4H3zm12 4h2V6h-2zm4-8v4h2v-4z"}),"GraphicEq"),xR=xe(T.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9v7c0 1.1.9 2 2 2h4v-8H5v-1c0-3.87 3.13-7 7-7s7 3.13 7 7v1h-4v8h4c1.1 0 2-.9 2-2v-7c0-4.97-4.03-9-9-9"}),"Headphones"),OR=xe(T.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List"),CR=xe([T.jsx("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3"},"0"),T.jsx("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92z"},"1")],"MicOutlined"),wR=xe(T.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHorizOutlined"),RR=xe(T.jsx("path",{d:"M12 14.67 3.41 6.09 2 7.5l8.5 8.5H4v2h16v-2h-6.5l5.15-5.15c.26.1.55.15.85.15 1.38 0 2.5-1.12 2.5-2.5S20.88 6 19.5 6 17 7.12 17 8.5c0 .35.07.67.2.97z"}),"NetworkPing"),ER=xe(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 14H9V8h2zm4 0h-2V8h2z"}),"PauseCircleFilled"),BR=xe(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 14.5v-9l6 4.5z"}),"PlayCircleFilled"),TR=xe(T.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),DR=xe(T.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"RemoveRedEye"),Lm=xe(T.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),S1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk
Line truncated
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
`;function HR({item:n,onClose:a}){var m,y;const{actions:{setShazarrResponse:o,searchOfflineRecord:l}}=Yr(),{actions:{deleteHistoryItem:u}}=ud(),c=new Date(n.date).toUTCString(),p=new Date(c).toLocaleString();function d(){n!=null&&n.data?o(n.data):l(n),a()}return T.jsxs(xm,{sx:{display:"flex",margin:"0 auto 0.5rem",alignItems:"center"},"data-testid":"history-item",children:[T.jsx(wm,{sx:{lineHeight:0,padding:1},children:T.jsx(Ba,{onClick:d,children:T.jsx(Fm,{height:"50",width:"50",alt:"",src:((y=(m=n==null?void 0:n.data)==null?void 0:m.images)==null?void 0:y.coverart)||""})})}),T.jsx(Cm,{sx:{padding:"0.5rem",flex:"1 1 0"},children:T.jsx(Ba,{sx:{textAlign:"left"},onClick:d,children:T.jsxs(Ca,{variant:"body2",color:"text.secondary",lineHeight:1.2,children:[T.jsx("strong",{children:n.title})," ",`- ${n.artist}`,T.jsx("br",{}),T.jsx("small",{children:T.jsx("i",{children:p})})]})})}),T.jsxs(Om,{children:[T.jsx(Ts,{onClick:d,children:n!=null&&n.data?T.jsx(DR,{}):T.jsx(Lm,{})}),T.jsx(Ts,{onClick:()=>{u(n.date)},children:T.jsx(bR,{})})]})]})}function UR(){const{recordingStatus:n}=Yr(),{history:a}=ud(),[o,l]=z.useState(),{palette:u}=Wr();return!a||(a==null?void 0:a.length)===0?null:T.jsxs(rn,{marginBottom:2,children:[T.jsxs(qn,{startIcon:T.jsx(OR,{}),variant:"outlined",fullWidth:!0,onClick:()=>l(!0),disabled:n!=="inactive",children:["Show records (",a==null?void 0:a.length,")"]}),T.jsx(yw,{anchor:"bottom",open:o,onClose:()=>l(!1),ModalProps:{keepMounted:!0},children:T.jsx(rn,{sx:{backgroundImage:u.background.paper,paddingTop:1},"data-testid":"history-list",children:T.jsxs(Rm,{maxWidth:"xs",sx:{padding:"0 0.5rem"},children:[a==null?void 0:a.map((c,p)=>T.jsx(HR,{item:c,onClose:()=>l(!1)},`history-item${p}`)),T.jsx(qn,{startIcon:T.jsx(qm,{}),variant:"outlined",fullWidth:!0,onClick:()=>l(!1),sx:{marginBottom:1},children:"Close records"})]})})})]})}const kR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv
Line truncated
|
||||
c7-4.3,12.3-11.4,14.4-19.4c2.1-8,1-16.7-2.9-24c-1.3-2.3-3.3-4.7-5.9-4.6c-2,0.1-3.5,1.6-4.7,3.2c-3.8,4.9-5.8,11.1-6.4,17.3
|
||||
c-0.6,6.2,0.1,12.5,1.3,18.6c0.1,0.6,0.2,1.2,0,1.8c-0.2,0.6-0.7,1-1.3,1.4C52.7,48,44.8,53.8,40.8,62.3c-2.3,5-3,10.8-2,16.2
|
||||
c1.1,5.6,4.2,11,9,14c3.2,2,6.9,2.9,10.6,3.5c4.7,0.7,9.5,1,14.1-0.2c0.5,2.8,1,5.6,1.3,8.4c0.3,2.2,0.6,4.5,0.7,6.8
|
||||
c0,0.7,0,1.4,0,2.1c-0.1,1.5-0.7,2.9-1.5,4.2c-0.4,0.6-0.8,1.1-1.2,1.6c-1.4,1.4-3.1,2.5-4.9,3.3c-1.3,0.6-2.7,0.9-4.1,1
|
||||
c-0.7,0-1.4,0-2.1-0.1c-0.1,0-0.1,0-0.2,0c2.8-1.5,4.7-4.4,4.7-7.8c0-4.9-4-9-9-9s-9,4-9,9c0,1.5,0.4,2.9,1.1,4.1l-0.1,0
|
||||
c0.1,0.2,0.3,0.5,0.4,0.7c0.1,0.1,0.1,0.2,0.2,0.3c4.7,7.4,15,7,15,7c1.3,0.1,2.6-0.2,3.8-0.5c2.7-0.7,5.2-2,7.2-4
|
||||
c0.9-1,1.7-2,2.4-3.2c0.5-1,1-2,1.2-3c0.3-1.5,0.2-3,0.1-4.5c-0.3-3.5-1-6.9-1.7-10.3c-0.2-0.8-0.3-1.6-0.5-2.4
|
||||
c-0.3-1.4-0.6-2.9-0.9-4.3c0-0.1,0-0.1,0-0.2c0,0,8.6-2.5,10.4-10.1C85.9,84.7,89.3,72.8,80.5,66z M65.1,12.3
|
||||
c3.5-4.7,11.1-2.6,11.6,3.2c0,0,1.1,8.4-6.3,16.8c-1.2,1.6-3.7,4.1-6.7,6.8l-0.9-4.2c-0.1-0.3-0.1-1.1-0.2-1.4
|
||||
c-0.8-5-0.9-12.2-0.4-15C62.9,14.7,65.1,12.3,65.1,12.3z M50.8,89.4c-3.7-3.1-6.3-7.6-6.6-12.4c-0.3-5.5,2.6-10.7,6.1-15
|
||||
c3.5-4.4,7.7-8.2,12.4-11.3c0.8,3.5,1.6,7,2.4,10.4c0.2,0.7,0.3,1.5,0,2.2c-0.3,0.7-1.1,1.1-1.9,1.5c-5.3,2.9-8.5,8.7-8.6,14.6
|
||||
c0,2.3,0.3,4.6,1.5,6.5c1.2,1.9,3.4,3.3,5.6,3.1c-1,0.1-2.5-4.1-2.7-4.8c-0.6-2-0.7-4.1-0.3-6.1c0.8-4.3,4.1-7.3,8.5-7.7
|
||||
c1.6,7.1,3.4,15.6,4.9,23c0,0,0,0.1,0,0.1C64.9,95.9,56.6,94.3,50.8,89.4z M74.9,92.3L74.3,89c0-0.1,0-0.2,0-0.3l-3.9-18.4
|
||||
c2.5,0.1,9.4,1.3,11.2,10.6C81.5,81,83.1,87.9,74.9,92.3z`})})}),zR=n=>T.jsx(Ir,{...n,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 128 128",children:T.jsx("path",{d:`M109.8,17.8C103.6,4.5,92.4-4.1,78.4,3.2c-3.4,1.8-6.7,4-9.7,6.5c-2,1.7-4.8,2.7-7.4,3
|
||||
c-0.5,0.1-0.9,0.1-1.4,0.1c-1.3-0.5-2.4-1.2-3-2.7c-0.4-1-0.4-2-0.6-3.1c-0.1-0.9-0.2-1.8-0.2-2.7c0-0.7,0-1.6-0.2-2.3
|
||||
c-0.5-1.4-3.2-2.1-4.5-1.8c-1,0.3-1,1.6-0.9,2.5c0,0,0,0.1,0,0.1l-0.3,93c-5.5-2.8-13.9-2.3-21.9,1.9c-11,5.9-16.9,16.8-13.1,24.3
|
||||
s13.3,9.1,24.3,3.2c9.2-4.9,15.2-13.4,15.2-20.3V36.3c0,0-0.2-1.3-0.2-1.3c7.2,5.5,16,1.1,22.4-3.5c5.1-3.6,13.9-15.2,20.5-14
|
||||
c6.2,1.2,9.2,10.5,10.5,16c1.6,7,1.1,14.4-1.5,21.1c-0.6,1.5-1.2,3.2-2,4.6c-0.9,1.7-2.2,3.4-1.9,5.5c0.1,1,0.5,1.7,1.4,1.1
|
||||
c0.7-0.5,1.3-1.1,1.9-1.8c2.6-3,4.4-6.8,6-10.4c0-0.1,0.1-0.2,0.1-0.3c0.3-0.6,0.6-1.2,0.7-1.7C116.1,40.7,114.6,28.1,109.8,17.8z`})})}),qR=n=>T.jsx(Ir,{...n,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 128 128",children:T.jsx("path",{d:`M85.7,0h-3.9C81.4,0,81,0.4,81,0.8l0,93.3c-0.5-0.3-1-0.6-1.4-0.8c-6-2.8-14.4-2.1-22,1.9
|
||||
c-11.5,6-17.3,17.1-13,25.2c2.1,4.1,6.4,6.7,12,7.2c0.8,0.1,1.6,0.1,2.4,0.1c4.5,0,9.3-1.2,13.8-3.6c8.9-4.6,13.2-12.5,13-19.8
|
||||
l0.1,0L86.5,0.8C86.5,0.4,86.2,0,85.7,0z M69.8,118.5c-4.2,2.2-8.7,3.2-12.6,2.8c-2-0.2-5.5-1-7-3.9c-2.5-4.8,2.2-12.4,10.3-16.7
|
||||
c3.6-1.9,7.4-2.8,10.8-2.8c2.1,0,4,0.4,5.6,1.1l0,0c0.1,0.1,2.8,1.4,3.7,5.3C81,109.1,76.4,115,69.8,118.5z`})})}),LR=n=>T.jsx(Ir,{...n,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 128 128",children:T.jsx("path",{d:`M103.3,60.1c-0.2-0.8-0.5-1.5-0.8-2.3c2.7-7.1,1.2-12.8,1.2-12.8c-3.6-11.2-14-20.6-24-26.8
|
||||
c-8.2-5.1-12-6.4-14.4-14.2c-0.1-0.6-0.2-1.2-0.4-1.7c0-0.1-0.1-0.2-0.2-0.3c0,0,0,0,0,0c0,0,0,0,0,0c-0.7-1-2.9-1.3-4.1-0.9
|
||||
c-1,0.3-0.9,1.4-0.9,2.4c0,0.2,0,0.4,0,0.6l-0.2,91.8C54,93.3,45.8,94,38,98.1c-10.8,5.6-16.6,16-12.9,23.1
|
||||
c3.7,7.1,15.5,8.3,26.3,2.7c9-4.7,12.6-12.5,12.5-19.1V35.4c2.6,1.5,2.8,1.8,6.8,3.6c14.3,6.6,31,24.1,25.2,39.9
|
||||
c-0.8,2.1-3.2,6.1-4.2,8c-2.4,4.5,3.8,3.3,6.2-0.3C103.4,78.6,106.2,69.4,103.3,60.1z M79.3,33.4c-4.9-3.1-10-6.8-13.9-11
|
||||
c1.3,0.6,2.8,0.6,5.7,1.6c15,4.9,25,11.2,27.2,26.2c0,0,0,0.1,0,0.4C93.4,43.6,86.2,37.7,79.3,33.4z`})})}),FR=n=>T.jsx(Ir,{...n,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 128 128",children:T.jsx("path",{d:`M111.2,1.8L111.2,1.8l-66,13.5c-0.5,0.1-0.9,0.6-0.9,1.1v8.7v8.8v65.7c-4.8-2.4-12.2-2-19.1,1.6
|
||||
c-9.6,5-14.8,14.2-11.5,20.6c3.3,6.4,13.8,7.4,23.5,2.4c8.1-4.2,13.3-11.3,13.3-17.2V33.4c0-0.5,0.3-0.9,0.8-1l58.8-11.9
|
||||
c0.6-0.1,1.2,0.3,1.2,1v61.4c-4.8-2.4-12.2-2-19.1,1.6c-9.7,5-14.8,14.2-11.5,20.6c3.3,6.4,13.8,7.4,23.5,2.4
|
||||
c8.1-4.2,12.9-11.3,12.4-17.2h0V2.1c0-0.7-0.6-1.2-1.3-1.1L111.2,1.8z`})})}),bf={randomCeil:function(n){return Math.ceil(Math.random()*n)}};function MR(n,a){return Math.floor(Math.random()*(a-n+1)+n)}const PR=()=>{const a=bf.randomCeil(120),o=window.innerHeight+a,l=window.innerWidth+a,u=MR(0,5),c={top:bf.randomCeil(o),left:bf.randomCeil(l),width:a,height:a,animation:"noteAnimation 1000ms cubic-bezier(0.47, 0, 0.745, 0.715) forwards",opacity:0,position:"absolute",textShadow:"10px 10px #000",transform:"translate(-50%, -50%)"};return[T.jsx(NR,{sx:c},"note1"),T.jsx(zR,{sx:c},"note2"),T.jsx(qR,{sx:c},"note3"),T.jsx(LR,{sx:c},"note4"),T.jsx(FR,{sx:c},"note5")][u]};function VR({duration:n}){const[a,o]=z.useState([]),[l,u]=z.useState(!1);return z.useEffect(()=>{if(!l&&n>0){u(!0);const c=setInterval(()=>o(p=>[...p,T.jsx(PR,{},p.length)]),50);setTimeout(()=>{clearInterval(c)},n-1e3)}},[l,n]),T.jsx(XR,{children:T.jsx(ld,{children:a.map((c,p)=>T.jsx("div",{children:c},`node-${p}`))})})}const XR=Tn.div`
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
z-index: 0;
|
||||
|
||||
@keyframes noteAnimation {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
20% {
|
||||
opacity: 0.1;
|
||||
}
|
||||
90% {
|
||||
opacity: 0.7;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
top: 60%;
|
||||
left: 50%;
|
||||
height: 0;
|
||||
width: 0;
|
||||
}
|
||||
}
|
||||
`,x1=Qn("App",{web:()=>Jr(()=>import("./web-IY2PvDbI.js"),[]).then(n=>new n.AppWeb)});function KR({data:n}){var y,A,b;const[a,o]=z.useState(),[l,u]=z.useState(),[c,p]=z.useState(),{actions:{resetSearch:d}}=Yr();function m(){a&&(c?(a.pause(),p(!1)):(a.play(),p(!0)))}return z.useEffect(()=>{var R,j,N,U,q,H,I;if(!n)return;const O=(N=(j=(R=n==null?void 0:n.sections)==null?void 0:R.filter(J=>J.type==="LYRICS"))==null?void 0:j[0])==null?void 0:N.text;O&&u(O);const B=(I=(H=(q=(U=n==null?void 0:n.hub)==null?void 0:U.actions)==null?void 0:q.filter(J=>!!J.uri))==null?void 0:H[0])==null?void 0:I.uri;if(!B)return;const E=new Audio(B);o(E);function C(){E==null||E.pause(),E==null||E.remove(),p(!1)}return x1.addListener("pause",()=>C()),x1.addListener("backButton",()=>C()),()=>{C()}},[n]),T.jsxs(T.Fragment,{children:[T.jsxs(xm,{sx:{maxWidth:260,margin:"0 auto 1rem"},children:[T.jsx(wm,{children:T.jsx(Fm,{width:"400",alt:"",src:n.images.coverart})}),T.jsxs(Cm,{children:[T.jsx(Ca,{gutterBottom:!0,variant:"h5",component:"div",children:n.title}),T.jsx(Ca,{variant:"body1",color:"text.secondary",children:n.subtitle})]}),a&&T.jsx(Om,{children:T.jsxs(rn,{sx:{display:"flex",justifyContent:"center",width:"100%",px:2,pb:2},children:[T.jsx(qn,{variant:"outlined",startIcon:c?T.jsx(ER,{sx:{height:24,width:24}}):T.jsx(BR,{sx:{height:24,width:24}}),"aria-label":c?"pause":"play",onClick:m,children:c?"Pause":"Play"})," ",T.jsx(qn,{onClick:()=>d(),variant:"outlined",color:"warning",children:T.jsx(TR,{style:{transform:"rotate(-180deg)"}})})]})})]}),T.jsx(Xw,{children:T.jsx(Dw,{children:T.jsx(Nw,{children:(b=(A=(y=n==null?void 0:n.sections)==null?void 0:y[0])==null?void 0:A.metadata)==null?void 0:b.map((O,B)=>T.jsxs(Ww,{children:[T.jsx(e1,{component:"th",scope:"row",children:T.jsx("strong",{children:O.title})}),T.jsx(e1,{align:"right",children:O.text})]},`metadata-${B}`))})})}),l&&(l==null?void 0:l.length)>0&&T.jsx(rn,{marginTop:2,children:T.jsxs(Ex,{children:[T.jsx(Zx,{expandIcon:T.jsx(AR,{}),"aria-controls":"panel1a-content",id:"panel1a-header",children:T.jsx(Ca,{children:"LYRICS"})}),T.jsx(jx,{children:T.jsx(Ca,{children:l==null?void 0:l.map((O,B)=>T.jsxs("span",{children:[O,T.jsx("br",{})]},`lyric-${B}`))})})]})})]})}function IR({searchTerms:n,url:a,label:o}){const{isNetworkConnected:l}=Gr();function u(){window.open(`${a}${n}`,"_blank")}return T.jsx(qn,{disabled:!l,variant:"contained",startIcon:T.jsx(JR,{}),onClick:()=>u(),children:T.jsx("strong",{children:o})})}const JR=Tn(Lm)`
|
||||
font-size: 32px !important;
|
||||
`,WR="/assets/lidarr-BHh520Ib.png";function GR({searchTerms:n,url:a}){const{isNetworkConnected:o}=Gr();function l(){window.open(`${a}/add/search?term=${encodeURIComponent(n)}`,"_blank")}return T.jsx(qn,{variant:"contained",disabled:!o,startIcon:T.jsx("img",{src:WR,alt:"",width:"32",height:"32"}),onClick:()=>l(),children:T.jsx("strong",{children:"Download with Lidarr"})})}function O1({caption:n,uri:a,type:o}){function l(){a&&window.open(a)}return T.jsx(qn,{startIcon:T.jsx(xR,{}),onClick:l,style:{background:o==="SPOTIFY"?"#18d860":o==="DEEZER"?"#a239ff":"#fff",color:o==="DEEZER"?"#fff":o==="APPLE"?"#fa586a":"#212121",fontWeight:"bold",margin:"0.25rem"},children:n||o})}function YR({searchTerms:n,url:a}){const{isNetworkConnected:o}=Gr();function l(){window.open(`${a}/?query=${encodeURIComponent(n)}`,"_blank")}return T.jsx(qn,{variant:"contained",disabled:!o,startIcon:T.jsx(QR,{}),onClick:()=>l(),children:T.jsx("strong",{children:"Download with Tidarr"})})}const QR=bt(yR)`
|
||||
font-size: 32px !important;
|
||||
`;function ZR(){var u,c,p,d,m,y,A,b,O,B,E,C,R;const{shazarrResponse:n,actions:{resetSearch:a}}=Yr(),{config:o}=Gr(),l=(m=(d=(p=(c=(u=n==null?void 0:n.sections)==null?void 0:u[0])==null?void 0:c.metadata)==null?void 0:p.filter(j=>(j==null?void 0:j.title)==="Album"))==null?void 0:d[0])==null?void 0:m.text;return n?T.jsxs(T.Fragment,{children:[T.jsx(KR,{data:n}),T.jsx("br",{}),T.jsxs(ld,{spacing:2,marginBottom:2,children:[(o==null?void 0:o.lidarr_url)&&T.jsx(GR,{searchTerms:`${l} ${n.subtitle}`,url:o.lidarr_url}),(o==null?void 0:o.tidarr_url)&&T.jsx(YR,{searchTerms:`${n.title} ${n.subtitle}`,url:o.tidarr_url}),(o==null?void 0:o.custom_service_url)&&(o==null?void 0:o.custom_service_name)&&T.jsx(IR,{searchTerms:`${n.title} ${n.subtitle}`,url:o.custom_service_url,label:o.custom_service_name}),T.jsx(Fo,{}),T.jsxs(rn,{children:[(A=(y=n==null?void 0:n.hub)==null?void 0:y.providers)==null?void 0:A.map((j,N)=>{var U,q;return T.jsx(O1,{uri:(q=(U=j.actions)==null?void 0:U[0])==null?void 0:q.uri,type:j.type},`provider-${N}`)}),((E=(B=(O=(b=n==null?void 0:n.myshazam)==null?void 0:b.apple)==null?void 0:O.actions)==null?void 0:B[0])==null?void 0:E.uri)&&T.jsx(O1,{uri:(R=(C=n.myshazam.apple.actions)==null?void 0:C[0])==null?void 0:R.uri,type:"APPLE"})]}),T.jsx(Fo,{}),T.jsx(qn,{onClick:()=>a(),variant:"outlined",startIcon:T.jsx(qm,{style:{transform:"rotate(-180deg)"}}),children:"Close"}),T.jsx(Fo,{})]})]}):null}function _R(){const{shazarrLoading:n,shazarrResponse:a,recordingStatus:o,actions:{setRecordingStatus:l,resetSearch:u}}=Yr();return T.jsxs(rn,{width:"100%",sx:{position:"relative"},children:[o!=="inactive"?T.jsx(VR,{duration:o==="recording"?Um:0}):null,a?T.jsx(ZR,{}):T.jsx(T.Fragment,{children:T.jsx($R,{style:{marginTop:"10vh"},children:T.jsx(Ts,{onClick:()=>{u(),o==="inactive"&&l("start")},children:T.jsx(t3,{isAnimate:o==="recording"||n,children:o==="searching"?T.jsx(wR,{style:{transform:"scale(1.6)",opacity:.5}}):o==="recording"?T.jsx(SR,{style:{transform:"scale(1.6)",opacity:.5}}):T.jsx(T.Fragment,{children:T.jsx("img",{src:kR,alt:"",height:"35",width:"35",style:{transform:"scale(1.6)",lineHeight:0}})})})})})})]})}const $R=Tn.div`
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
`,t3=Tn.div`
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
line-height: 0;
|
||||
padding: 2rem;
|
||||
position: relative;
|
||||
height: 6rem;
|
||||
width: 6rem;
|
||||
|
||||
svg {
|
||||
fill: black;
|
||||
}
|
||||
|
||||
&:before {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 100%;
|
||||
content: "";
|
||||
height: 7rem;
|
||||
width: 7rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -3.5rem;
|
||||
margin-top: -3.5rem;
|
||||
z-index: 0;
|
||||
animation: ${({isAnimate:n})=>n?"button-animate 2s infinite linear":"none"};
|
||||
transition: transform 300ms ease;
|
||||
}
|
||||
|
||||
img {
|
||||
animation: ${({isAnimate:n})=>n?"button-animate 2s infinite linear":"none"};
|
||||
}
|
||||
|
||||
@keyframes button-animate {
|
||||
0% {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
10% {
|
||||
transform: scale(1.4), rotate(-30deg);
|
||||
}
|
||||
20% {
|
||||
transform: scale(1.3);
|
||||
}
|
||||
30% {
|
||||
transform: scale(1.5);
|
||||
}
|
||||
40% {
|
||||
transform: scale(1.3);
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.2), rotate(30deg);
|
||||
}
|
||||
60% {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
70% {
|
||||
transform: scale(1.4);
|
||||
}
|
||||
80% {
|
||||
transform: scale(1.3);
|
||||
}
|
||||
90% {
|
||||
transform: scale(1.5);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
}
|
||||
`;function e3(){const{shazarrLoading:n,shazarrResponse:a,recordingStatus:o}=Yr(),{isNetworkConnected:l}=Gr();return T.jsx(NO,{color:a?"success":n||o==="recording"?"default":a&&!a?"warning":l?"info":"error",icon:o&&o!=="inactive"?T.jsx(od,{size:16,style:{margin:"0 5px 0 10px"}}):a?T.jsx(vR,{fontSize:"small"}):l?T.jsx(CR,{fontSize:"small"}):T.jsx(RR,{fontSize:"small"}),label:o&&o!=="inactive"?`${o}...`:a?"Found !":a&&!a?"Not found. Get closer.":l?"Ready":"Offline mode",variant:"outlined"})}const n3=ed({palette:{mode:"dark",background:{default:"#153b50",paper:"#0a1d28"}}});function r3(){const[n,a]=z.useState(!1),[o,l]=z.useState(),u=async()=>{const{platform:c}=await Cb.getInfo();l(c)};return z.useEffect(()=>{a(!0),u()},[]),n?T.jsx(dA,{theme:n3,children:T.jsx(sR,{children:T.jsx(uR,{children:T.jsxs(dR,{children:[T.jsx(wC,{}),T.jsx(i3,{children:T.jsx(Rm,{maxWidth:"xs",children:T.jsxs(o3,{direction:"column",os:o,children:[T.jsxs(rn,{children:[T.jsx(a3,{children:"Shazarr"}),T.jsx(Ca,{component:"h2",marginBottom:2,children:"- Offroad Shazam app -"}),T.jsx(e3,{})]}),T.jsx(rn,{marginTop:3,flex:"1 1 0",display:"flex",alignItems:"center",justifyContent:"center",children:T.jsx(_R,{})}),T.jsxs(rn,{children:[T.jsx(mR,{}),T.jsx(UR,{})]})]})})})]})})})}):null}const a3=Tn.h1`
|
||||
letter-spacing: 4px;
|
||||
margin-bottom: 0;
|
||||
text-transform: uppercase;
|
||||
`,i3=Tn.main`
|
||||
background-image: linear-gradient(180deg, #153b50 0%, #0a1d28 100%);
|
||||
display: flex;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
min-height: 100vh;
|
||||
`,o3=Tn(ld)`
|
||||
min-height: 100vh;
|
||||
padding: ${({os:n})=>n==="ios"?"3rem 0":0};
|
||||
`,l3=db.createRoot(document.getElementById("root"));l3.render(T.jsx(en.StrictMode,{children:T.jsx(r3,{})}));export{a1 as I,i1 as N,w1 as W,qf as g};
|
||||
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{g as le,W as pe}from"./index-Dm-vPjSz.js";const q={RECORDING:"RECORDING",PAUSED:"PAUSED",NONE:"NONE"};var V={},H,te;function ve(){if(te)return H;te=1;function S(o){return o&&o.__esModule?o:{default:o}}return H=S,H}var $={exports:{}},ne;function ge(){return ne||(ne=1,function(S){var o=function(s){var f=Object.prototype,u=f.hasOwnProperty,h=Object.defineProperty||function(r,e,t){r[e]=t.value},c,l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",b=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function v(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{v({},"")}catch{v=function(e,t,i){return e[t]=i}}function G(r,e,t,i){var n=e&&e.prototype instanceof k?e:k,a=Object.create(n.prototype),g=new j(i||[]);return h(a,"_invoke",{value:he(r,t,g)}),a}s.wrap=G;function N(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(i){return{type:"throw",arg:i}}}var K="suspendedStart",de="suspendedYield",Z="executing",L="completed",w={};function k(){}function A(){}function P(){}var F={};v(F,d,function(){return this});var U=Object.getPrototypeOf,C=U&&U(U(Y([])));C&&C!==f&&u.call(C,d)&&(F=C);var T=P.prototype=k.prototype=Object.create(F);A.prototype=P,h(T,"constructor",{value:P,configurable:!0}),h(P,"constructor",{value:A,configurable:!0}),A.displayName=v(P,p,"GeneratorFunction");function x(r){["next","throw","return"].forEach(function(e){v(r,e,function(t){return this._invoke(e,t)})})}s.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return e?e===A||(e.displayName||e.name)==="GeneratorFunction":!1},s.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,P):(r.__proto__=P,v(r,p,"GeneratorFunction")),r.prototype=Object.create(T),r},s.awrap=function(r){return{__await:r}};function M(r,e){function t(a,g,m,y){var R=N(r[a],r,g);if(R.type==="throw")y(R.arg);else{var W=R.arg,_=W.value;return _&&typeof _=="object"&&u.call(_,"__await")?e.resolve(_.__await).then(function(D){t("next",D,m,y)},function(D){t("throw",D,m,y)}):e.resolve(_).then(function(D){W.value=D,m(W)},function(D){return t("throw",D,m,y)})}}var i;function n(a,g){function m(){return new e(function(y,R){t(a,g,y,R)})}return i=i?i.then(m,m):m()}h(this,"_invoke",{value:n})}x(M.prototype),v(M.prototype,b,function(){return this}),s.AsyncIterator=M,s.async=function(r,e,t,i,n){n===void 0&&(n=Promise);var a=new M(G(r,e,t,i),n);return s.isGeneratorFunction(e)?a:a.next().then(function(g){return g.done?g.value:a.next()})};function he(r,e,t){var i=K;return function(a,g){if(i===Z)throw new Error("Generator is already running");if(i===L){if(a==="throw")throw g;return re()}for(t.method=a,t.arg=g;;){var m=t.delegate;if(m){var y=ee(m,t);if(y){if(y===w)continue;return y}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(i===K)throw i=L,t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);i=Z;var R=N(r,e,t);if(R.type==="normal"){if(i=t.done?L:de,R.arg===w)continue;return{value:R.arg,done:t.done}}else R.type==="throw"&&(i=L,t.method="throw",t.arg=R.arg)}}}function ee(r,e){var t=e.method,i=r.iterator[t];if(i===c)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=c,ee(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),w;var n=N(i,r.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,w;var a=n.arg;if(!a)return e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,w;if(a.done)e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=c);else return a;return e.delegate=null,w}x(T),v(T,p,"Generator"),v(T,d,function(){return this}),v(T,"toString",function(){return"[object Generator]"});function fe(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function B(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function j(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(fe,this),this.reset(!0)}s.keys=function(r){var e=Object(r),t=[];for(var i in e)t.push(i);return t.reverse(),function n(){for(;t.length;){var a=t.pop();if(a in e)return n.value=a,n.done=!1,n}return n.done=!0,n}};function Y(r){if(r){var e=r[d];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,i=function n(){for(;++t<r.length;)if(u.call(r,t))return n.value=r[t],n.done=!1,n;return n.value=c,n.done=!0,n};return i.next=i}}return{next:re}}s.values=Y;function re(){return{value:c,done:!0}}return j.prototype={constructor:j,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(B),!r)for(var e in this)e.charAt(0)==="t"&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var r=this.tryEntries[0],e=r.completion;if(e.type==Line truncated
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{W as s}from"./index-Dm-vPjSz.js";class d extends s{constructor(){super(...arguments),this.pending=[],this.deliveredNotifications=[],this.hasNotificationSupport=()=>{if(!("Notification"in window)||!Notification.requestPermission)return!1;if(Notification.permission!=="granted")try{new Notification("")}catch(i){if(i.name=="TypeError")return!1}return!0}}async getDeliveredNotifications(){const i=[];for(const t of this.deliveredNotifications){const e={title:t.title,id:parseInt(t.tag),body:t.body};i.push(e)}return{notifications:i}}async removeDeliveredNotifications(i){for(const t of i.notifications){const e=this.deliveredNotifications.find(n=>n.tag===String(t.id));e==null||e.close(),this.deliveredNotifications=this.deliveredNotifications.filter(()=>!e)}}async removeAllDeliveredNotifications(){for(const i of this.deliveredNotifications)i.close();this.deliveredNotifications=[]}async createChannel(){throw this.unimplemented("Not implemented on web.")}async deleteChannel(){throw this.unimplemented("Not implemented on web.")}async listChannels(){throw this.unimplemented("Not implemented on web.")}async schedule(i){if(!this.hasNotificationSupport())throw this.unavailable("Notifications not supported in this browser.");for(const t of i.notifications)this.sendNotification(t);return{notifications:i.notifications.map(t=>({id:t.id}))}}async getPending(){return{notifications:this.pending}}async registerActionTypes(){throw this.unimplemented("Not implemented on web.")}async cancel(i){this.pending=this.pending.filter(t=>!i.notifications.find(e=>e.id===t.id))}async areEnabled(){const{display:i}=await this.checkPermissions();return{value:i==="granted"}}async changeExactNotificationSetting(){throw this.unimplemented("Not implemented on web.")}async checkExactNotificationSetting(){throw this.unimplemented("Not implemented on web.")}async requestPermissions(){if(!this.hasNotificationSupport())throw this.unavailable("Notifications not supported in this browser.");return{display:this.transformNotificationPermission(await Notification.requestPermission())}}async checkPermissions(){if(!this.hasNotificationSupport())throw this.unavailable("Notifications not supported in this browser.");return{display:this.transformNotificationPermission(Notification.permission)}}transformNotificationPermission(i){switch(i){case"granted":return"granted";case"denied":return"denied";default:return"prompt"}}sendPending(){var i;const t=[],e=new Date().getTime();for(const n of this.pending)!((i=n.schedule)===null||i===void 0)&&i.at&&n.schedule.at.getTime()<=e&&(this.buildNotification(n),t.push(n));this.pending=this.pending.filter(n=>!t.find(o=>o===n))}sendNotification(i){var t;if(!((t=i.schedule)===null||t===void 0)&&t.at){const e=i.schedule.at.getTime()-new Date().getTime();this.pending.push(i),setTimeout(()=>{this.sendPending()},e);return}this.buildNotification(i)}buildNotification(i){const t=new Notification(i.title,{body:i.body,tag:String(i.id)});return t.addEventListener("click",this.onClick.bind(this,i),!1),t.addEventListener("show",this.onShow.bind(this,i),!1),t.addEventListener("close",()=>{this.deliveredNotifications=this.deliveredNotifications.filter(()=>!this)},!1),this.deliveredNotifications.push(t),t}onClick(i){const t={actionId:"tap",notification:i};this.notifyListeners("localNotificationActionPerformed",t)}onShow(i){this.notifyListeners("localNotificationReceived",i)}}export{d as LocalNotificationsWeb};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{W as p}from"./index-Dm-vPjSz.js";class f extends p{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}export{f as PreferencesWeb};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{W as w}from"./index-Dm-vPjSz.js";class y extends w{async getId(){return{identifier:this.getUid()}}async getInfo(){if(typeof navigator>"u"||!navigator.userAgent)throw this.unavailable("Device API not available in this browser");const e=navigator.userAgent,i=this.parseUa(e);return{model:i.model,platform:"web",operatingSystem:i.operatingSystem,osVersion:i.osVersion,manufacturer:navigator.vendor,isVirtual:!1,webViewVersion:i.browserVersion}}async getBatteryInfo(){if(typeof navigator>"u"||!navigator.getBattery)throw this.unavailable("Device API not available in this browser");let e={};try{e=await navigator.getBattery()}catch{}return{batteryLevel:e.level,isCharging:e.charging}}async getLanguageCode(){return{value:navigator.language.split("-")[0].toLowerCase()}}async getLanguageTag(){return{value:navigator.language}}parseUa(e){const i={},r=e.indexOf("(")+1;let a=e.indexOf(") AppleWebKit");e.indexOf(") Gecko")!==-1&&(a=e.indexOf(") Gecko"));const s=e.substring(r,a);if(e.indexOf("Android")!==-1){const t=s.replace("; wv","").split("; ").pop();t&&(i.model=t.split(" Build")[0]),i.osVersion=s.split("; ")[1]}else if(i.model=s.split("; ")[0],typeof navigator<"u"&&navigator.oscpu)i.osVersion=navigator.oscpu;else if(e.indexOf("Windows")!==-1)i.osVersion=s;else{const t=s.split("; ").pop();if(t){const n=t.replace(" like Mac OS X","").split(" ");i.osVersion=n[n.length-1].replace(/_/g,".")}}/android/i.test(e)?i.operatingSystem="android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?i.operatingSystem="ios":/Win/.test(e)?i.operatingSystem="windows":/Mac/i.test(e)?i.operatingSystem="mac":i.operatingSystem="unknown";const l=!!window.ApplePaySession,x=!!window.chrome,p=/Firefox/.test(e),d=/Edg/.test(e),g=/FxiOS/.test(e),c=/CriOS/.test(e),f=/EdgiOS/.test(e);if(l||x&&!d||g||c||f){let t;g?t="FxiOS":c?t="CriOS":f?t="EdgiOS":l?t="Version":t="Chrome";const n=e.split(" ");for(const o of n)if(o.includes(t)){const v=o.split("/")[1];i.browserVersion=v}}else if(p||d){const o=e.split("").reverse().join("").split("/")[0].split("").reverse().join("");i.browserVersion=o}return i}getUid(){if(typeof window<"u"&&window.localStorage){let e=window.localStorage.getItem("_capuid");return e||(e=this.uuid4(),window.localStorage.setItem("_capuid",e),e)}return this.uuid4()}uuid4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const i=Math.random()*16|0;return(e==="x"?i:i&3|8).toString(16)})}}export{y as DeviceWeb};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{W as r,I as i,N as n}from"./index-Dm-vPjSz.js";class c extends r{constructor(){super(...arguments),this.selectionStarted=!1}async impact(t){const e=this.patternForImpact(t==null?void 0:t.style);this.vibrateWithPattern(e)}async notification(t){const e=this.patternForNotification(t==null?void 0:t.type);this.vibrateWithPattern(e)}async vibrate(t){const e=(t==null?void 0:t.duration)||300;this.vibrateWithPattern([e])}async selectionStart(){this.selectionStarted=!0}async selectionChanged(){this.selectionStarted&&this.vibrateWithPattern([70])}async selectionEnd(){this.selectionStarted=!1}patternForImpact(t=i.Heavy){return t===i.Medium?[43]:t===i.Light?[20]:[61]}patternForNotification(t=n.Success){return t===n.Warning?[30,40,30,50,60]:t===n.Error?[27,45,50]:[35,65,21]}vibrateWithPattern(t){if(navigator.vibrate)navigator.vibrate(t);else throw this.unavailable("Browser does not support the vibrate API")}}export{c as HapticsWeb};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{W as i}from"./index-Dm-vPjSz.js";function o(){const t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;let n="unknown";const e=t?t.type||t.effectiveType:null;if(e&&typeof e=="string")switch(e){case"bluetooth":case"cellular":n="cellular";break;case"none":n="none";break;case"ethernet":case"wifi":case"wimax":n="wifi";break;case"other":case"unknown":n="unknown";break;case"slow-2g":case"2g":case"3g":n="cellular";break;case"4g":n="wifi";break}return n}class s extends i{constructor(){super(),this.handleOnline=()=>{const e={connected:!0,connectionType:o()};this.notifyListeners("networkStatusChange",e)},this.handleOffline=()=>{const n={connected:!1,connectionType:"none"};this.notifyListeners("networkStatusChange",n)},typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}async getStatus(){if(!window.navigator)throw this.unavailable("Browser does not support the Network Information API");const n=window.navigator.onLine,e=o();return{connected:n,connectionType:n?e:"none"}}}const r=new s;export{r as Network,s as NetworkWeb};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{W as n}from"./index-Dm-vPjSz.js";class o extends n{constructor(){super(),typeof screen<"u"&&typeof screen.orientation<"u"&&screen.orientation.addEventListener("change",()=>{const e=screen.orientation.type;this.notifyListeners("screenOrientationChange",{type:e})})}async orientation(){if(typeof screen>"u"||!screen.orientation)throw this.unavailable("ScreenOrientation API not available in this browser");return{type:screen.orientation.type}}async lock(e){if(typeof screen>"u"||!screen.orientation||!screen.orientation.lock)throw this.unavailable("ScreenOrientation API not available in this browser");try{await screen.orientation.lock(e.orientation)}catch{throw this.unavailable("ScreenOrientation API not available in this browser")}}async unlock(){if(typeof screen>"u"||!screen.orientation||!screen.orientation.unlock)throw this.unavailable("ScreenOrientation API not available in this browser");try{screen.orientation.unlock()}catch{throw this.unavailable("ScreenOrientation API not available in this browser")}}}export{o as ScreenOrientationWeb};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{W as t}from"./index-Dm-vPjSz.js";class s extends t{constructor(){super(),this.handleVisibilityChange=()=>{const e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}}export{s as AppWeb};
|
||||
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="description" content="Shazarr - Unoffical Shazam app" />
|
||||
|
||||
<title>Shazarr - Unoffical Shazam app</title>
|
||||
<!-- Matomo -->
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(["disableCookies"]);
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function () {
|
||||
var u = "//mtm.cl-st.me/";
|
||||
_paq.push(['setTrackerUrl', u + 'matomo.php']);
|
||||
_paq.push(['setSiteId', '3']);
|
||||
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
|
||||
g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
<script type="module" crossorigin src="/assets/index-Dm-vPjSz.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Vendored
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "../icons/icon-48.webp",
|
||||
"type": "image/png",
|
||||
"sizes": "48x48",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "../icons/icon-72.webp",
|
||||
"type": "image/png",
|
||||
"sizes": "72x72",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "../icons/icon-96.webp",
|
||||
"type": "image/png",
|
||||
"sizes": "96x96",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "../icons/icon-128.webp",
|
||||
"type": "image/png",
|
||||
"sizes": "128x128",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "../icons/icon-192.webp",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "../icons/icon-256.webp",
|
||||
"type": "image/png",
|
||||
"sizes": "256x256",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "../icons/icon-512.webp",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#eeeeee"
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
../node_modules/@ffmpeg/ffmpeg/dist/worker.min.js
|
||||
+28
-43
@@ -1,56 +1,41 @@
|
||||
import js from "@eslint/js";
|
||||
import tsParser from "@typescript-eslint/parser";
|
||||
import eslintConfigPrettier from "eslint-config-prettier";
|
||||
import jsxA11Y from "eslint-plugin-jsx-a11y";
|
||||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
import reactEslint from "eslint-plugin-react";
|
||||
import reactHooksEslint from "eslint-plugin-react-hooks";
|
||||
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
||||
import typescriptEslint from "typescript-eslint";
|
||||
|
||||
export default [
|
||||
js.configs.recommended,
|
||||
eslintConfigPrettier,
|
||||
eslintPluginPrettierRecommended,
|
||||
...typescriptEslint.configs.recommended,
|
||||
{
|
||||
ignores: [
|
||||
"**/node_modules",
|
||||
"**/public",
|
||||
"**/playwright-report",
|
||||
"**/build",
|
||||
"**/android",
|
||||
"**/ios",
|
||||
],
|
||||
},
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.mjs"],
|
||||
},
|
||||
import globals from 'globals'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: [
|
||||
"**/node_modules",
|
||||
"**/public",
|
||||
"**/playwright-report",
|
||||
"**/dist",
|
||||
"**/android",
|
||||
"**/ios",
|
||||
], },
|
||||
{
|
||||
extends: [js.configs.recommended,
|
||||
...tseslint.configs.recommended],
|
||||
files: ['**/*.{ts,tsx}'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2020,
|
||||
globals: globals.browser,
|
||||
},
|
||||
plugins: {
|
||||
'react-hooks': reactHooksEslint,
|
||||
'react-refresh': reactRefresh,
|
||||
"jsx-a11y": jsxA11Y,
|
||||
"simple-import-sort": simpleImportSort,
|
||||
react: reactEslint.configs.recommended,
|
||||
"react-hooks": reactHooksEslint.configs.recommended,
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
parser: tsParser,
|
||||
parserOptions: {
|
||||
tsconfigRootDir: "src/",
|
||||
},
|
||||
sourceType: "module",
|
||||
},
|
||||
|
||||
settings: {
|
||||
react: {
|
||||
version: "detect",
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
...jsxA11Y.configs.recommended.rules,
|
||||
"prettier/prettier": "error",
|
||||
...reactHooksEslint.configs.recommended.rules,
|
||||
'react-refresh/only-export-components': [
|
||||
'warn',
|
||||
{ allowConstantExport: true },
|
||||
],
|
||||
"simple-import-sort/imports": [
|
||||
"error",
|
||||
{
|
||||
@@ -75,4 +60,4 @@ export default [
|
||||
"simple-import-sort/exports": "error",
|
||||
},
|
||||
},
|
||||
];
|
||||
)
|
||||
@@ -29,6 +29,7 @@
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Generated
+2656
-13515
File diff suppressed because it is too large.
Load diff
+52
-50
@@ -1,78 +1,80 @@
|
||||
{
|
||||
"name": "shazarr-app",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=18",
|
||||
"npm": ">=10"
|
||||
},
|
||||
"dependencies": {
|
||||
"@capacitor/android": "^6.1.0",
|
||||
"@capacitor/app": "^6.0.0",
|
||||
"@capacitor/core": "^6.1.0",
|
||||
"@capacitor/device": "^6.0.0",
|
||||
"@capacitor/haptics": "^6.0.0",
|
||||
"@capacitor/ios": "^6.1.0",
|
||||
"@capacitor/local-notifications": "^6.0.0",
|
||||
"@capacitor/network": "^6.0.0",
|
||||
"@capacitor/preferences": "^6.0.0",
|
||||
"@capacitor/screen-orientation": "^6.0.0",
|
||||
"@emotion/react": "^11.11.4",
|
||||
"@emotion/styled": "^11.11.5",
|
||||
"@mui/icons-material": "^5.15.20",
|
||||
"@mui/material": "^5.15.20",
|
||||
"@capacitor/android": "^7.0.1",
|
||||
"@capacitor/app": "^7.0.0",
|
||||
"@capacitor/core": "^7.0.1",
|
||||
"@capacitor/device": "^7.0.0",
|
||||
"@capacitor/haptics": "^7.0.0",
|
||||
"@capacitor/ios": "^7.0.1",
|
||||
"@capacitor/local-notifications": "^7.0.0",
|
||||
"@capacitor/network": "^7.0.0",
|
||||
"@capacitor/preferences": "^7.0.0",
|
||||
"@capacitor/screen-orientation": "^7.0.0",
|
||||
"@emotion/react": "^11.14.0",
|
||||
"@emotion/styled": "^11.14.0",
|
||||
"@mui/icons-material": "^6.4.2",
|
||||
"@mui/material": "^6.4.2",
|
||||
"@typescript-eslint/parser": "^8.22.0",
|
||||
"@uidotdev/usehooks": "^2.4.1",
|
||||
"capacitor-voice-recorder": "^5.0.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-scripts": "^5.0.1",
|
||||
"shazam-api": "^0.2.0"
|
||||
"capacitor-voice-recorder": "^6.0.3",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"shazam-api": "^0.2.1-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
|
||||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
||||
"@capacitor/assets": "^3.0.5",
|
||||
"@capacitor/cli": "^6.1.0",
|
||||
"@eslint/js": "^9.5.0",
|
||||
"@capacitor/cli": "^7.0.1",
|
||||
"@eslint/js": "^9.19.0",
|
||||
"@types/react": "^19.0.8",
|
||||
"@types/react-dom": "^19.0.3",
|
||||
"@ionic/cli": "^7.2.0",
|
||||
"@playwright/test": "^1.44.1",
|
||||
"@types/react": "^18.3.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@playwright/test": "^1.50.0",
|
||||
"@vitejs/plugin-react": "^4.3.4",
|
||||
"depcheck": "^1.4.7",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-plugin-react": "^7.34.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.2",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.0",
|
||||
"prettier": "^3.3.2",
|
||||
"eslint": "^9.19.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-react-hooks": "^5.1.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.18",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.1",
|
||||
"globals": "^15.14.0",
|
||||
"prettier": "^3.4.2",
|
||||
"ts-prune": "^0.10.3",
|
||||
"typescript": "^5.4.5",
|
||||
"typescript-eslint": "^7.13.0"
|
||||
"typescript": "^5.7.3",
|
||||
"typescript-eslint": "^8.23.0",
|
||||
"vite": "^6.0.11"
|
||||
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"eject": "react-scripts eject",
|
||||
"start": "vite dev",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"ionic:serve": "npm run start",
|
||||
"ios:open": "ionic capacitor open ios",
|
||||
"ios:build": "ionic capacitor build ios",
|
||||
"ios:live": "ionic capacitor run ios -l --external",
|
||||
"ios:sync": "npx cap sync ios",
|
||||
"ios:live": "ionic capacitor run ios -l --external --port 5173",
|
||||
"android:open": "ionic capacitor open android",
|
||||
"android:build": "ionic capacitor build android",
|
||||
"android:live": "ionic capacitor run android -l --external",
|
||||
"android:sync": "npx cap sync android",
|
||||
"android:live": "ionic capacitor run android -l --external --port 5173",
|
||||
"quality:deadcode": "ts-prune | (! grep -v 'used in module')",
|
||||
"quality:depcheck": "npx depcheck",
|
||||
"quality:eslint": "eslint .",
|
||||
"quality:eslint-fix": "eslint --fix .",
|
||||
"testing:run": "docker run --rm -it -v .:/srv -w /srv mcr.microsoft.com/playwright:v1.44.1-jammy npx playwright test",
|
||||
"testing:run": "docker run --rm -it -v .:/srv -w /srv mcr.microsoft.com/playwright:v1.50.0-noble npm i && npx playwright test",
|
||||
"testing:ui": "npx playwright test --ui",
|
||||
"testing:ci": "docker run --rm -e CI=true -v .:/srv -w /srv mcr.microsoft.com/playwright:v1.44.1-jammy npx playwright test",
|
||||
"testing:show-report": "docker run --rm -it -p 9323:9323 -v .:/srv -w /srv mcr.microsoft.com/playwright:v1.44.1-jammy npx playwright show-report ./testing/playwright-report --host 0.0.0.0",
|
||||
"testing:update-snapshots": "docker run --rm -it -v .:/srv -w /srv mcr.microsoft.com/playwright:v1.44.1-jammy npx playwright test --update-snapshots"
|
||||
"testing:ci": "docker run --rm -e CI=true -v .:/srv -w /srv mcr.microsoft.com/playwright:v1.50.0-noble npx playwright test",
|
||||
"testing:show-report": "docker run --rm -it -p 9323:9323 -v .:/srv -w /srv mcr.microsoft.com/playwright:v1.50.0-noble npx playwright show-report ./testing/playwright-report --host 0.0.0.0",
|
||||
"testing:update-snapshots": "docker run --rm -it -v .:/srv -w /srv mcr.microsoft.com/playwright:v1.50.0-noble npx playwright test --update-snapshots"
|
||||
},
|
||||
"overrides": {
|
||||
"typescript": "^5.4.5",
|
||||
"@capacitor/core": "^6.1.0"
|
||||
"typescript": "^5.7.3",
|
||||
"@capacitor/core": "^7.0.1"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
@@ -86,4 +88,4 @@
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
-15
@@ -33,13 +33,13 @@ export default defineConfig({
|
||||
|
||||
use: {
|
||||
// Base URL to use in actions like `await page.goto('/')`.
|
||||
baseURL: "http://127.0.0.1:3000",
|
||||
baseURL: "http://127.0.0.1:5173",
|
||||
|
||||
// Collect trace when on failed test.
|
||||
trace: "retain-on-failure",
|
||||
ignoreHTTPSErrors: true,
|
||||
// An object containing additional HTTP headers to be sent with every request.
|
||||
// bypassCSP: true,
|
||||
bypassCSP: true,
|
||||
launchOptions: {
|
||||
args: ["--disable-web-security", "--ignore-certificate-errors"],
|
||||
},
|
||||
@@ -55,23 +55,15 @@ export default defineConfig({
|
||||
],
|
||||
// Run your local dev server before starting the tests.
|
||||
webServer: {
|
||||
command: "REACT_APP_STAGE=testing npm run start",
|
||||
url: "http://127.0.0.1:3000",
|
||||
command: "VITE_STAGE=testing npm run start",
|
||||
url: "http://127.0.0.1:5173",
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
expect: {
|
||||
// Maximum time expect() should wait for the condition to be met.
|
||||
timeout: 5000,
|
||||
|
||||
timeout: 10000,
|
||||
toHaveScreenshot: {
|
||||
// An acceptable amount of pixels that could be different, unset by default.
|
||||
maxDiffPixels: 10,
|
||||
},
|
||||
|
||||
toMatchSnapshot: {
|
||||
// An acceptable ratio of pixels that are different to the
|
||||
// total amount of pixels, between 0 and 1.
|
||||
maxDiffPixelRatio: 0.1,
|
||||
threshold: 0.3,
|
||||
maxDiffPixelRatio: 0.025,
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import styled from "@emotion/styled";
|
||||
|
||||
import fallbackImage from "../../resources/img-placeholder.png";
|
||||
import fallbackImage from "../../resources/img-placeholder.png?inline";
|
||||
|
||||
export const ImageWithFallback = ({
|
||||
alt,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { Alert, Box } from "@mui/material";
|
||||
|
||||
import errorCode, { ErrorCodeType } from "./errorCode";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { FormEvent, useState } from "react";
|
||||
import styled from "@emotion/styled";
|
||||
import {
|
||||
@@ -71,9 +70,9 @@ export default function ConfigForm() {
|
||||
fontSize={12}
|
||||
>
|
||||
Github page -{" "}
|
||||
{process.env.REACT_APP_STAGE === "testing"
|
||||
{import.meta.env.VITE_STAGE === "testing"
|
||||
? "v0.0.0"
|
||||
: process.env.REACT_APP_CURRENT_VERSION}
|
||||
: import.meta.env.VITE_CURRENT_VERSION}
|
||||
</Link>
|
||||
</Box>
|
||||
<Box>
|
||||
|
||||
@@ -111,17 +111,17 @@ export function ConfigProvider({ children }: { children: ReactNode }) {
|
||||
}
|
||||
|
||||
const checkForUpdates = useCallback(async () => {
|
||||
if (process.env.REACT_APP_CURRENT_VERSION) {
|
||||
if (import.meta.env.VITE_CURRENT_VERSION) {
|
||||
try {
|
||||
const response = await fetch(
|
||||
`https://api.github.com/repos${process.env.REACT_APP_REPO_API_URL}/releases`,
|
||||
`https://api.github.com/repos${import.meta.env.VITE_REPO_API_URL}/releases`,
|
||||
);
|
||||
const data = await response.json();
|
||||
const latestVersion = data[0].tag_name.substring(
|
||||
1,
|
||||
data[0].tag_name.length,
|
||||
);
|
||||
const currentVersion = process.env.REACT_APP_CURRENT_VERSION.substring(
|
||||
const currentVersion = import.meta.env.VITE_CURRENT_VERSION.substring(
|
||||
1,
|
||||
data[0].tag_name.length,
|
||||
);
|
||||
@@ -158,7 +158,7 @@ export function ConfigProvider({ children }: { children: ReactNode }) {
|
||||
|
||||
LocalNotifications.addListener("localNotificationActionPerformed", () => {
|
||||
window.open(
|
||||
`https://github.com${process.env.REACT_APP_REPO_API_URL}/releases`,
|
||||
`https://github.com${import.meta.env.VITE_REPO_API_URL}/releases`,
|
||||
);
|
||||
});
|
||||
LocalNotifications.schedule({
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import React from "react";
|
||||
|
||||
import { useShazarrProvider } from "../Shazarr/Provider";
|
||||
|
||||
import ApiErrorAlert from "./Alert";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { DeleteForever, RemoveRedEye, Search } from "@mui/icons-material";
|
||||
import { ButtonBase, CardActions, CardMedia, IconButton } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { useState } from "react";
|
||||
import { Close, List } from "@mui/icons-material";
|
||||
import { Box, Button, Container, Drawer, useTheme } from "@mui/material";
|
||||
@@ -14,8 +13,6 @@ export default function HistoryList() {
|
||||
const [listOpen, setListOpen] = useState<boolean>();
|
||||
const { palette } = useTheme();
|
||||
|
||||
console.log(history);
|
||||
|
||||
if (!history || history?.length === 0) return null;
|
||||
|
||||
return (
|
||||
|
||||
@@ -5,7 +5,7 @@ import GraphicEqIcon from "@mui/icons-material/GraphicEq";
|
||||
import { Box, IconButton } from "@mui/material";
|
||||
|
||||
import { RECORD_DURATION } from "../../constant";
|
||||
import skullImage from "../../resources/skull.png";
|
||||
import skullImage from "../../resources/skull.png?inline";
|
||||
import NotesAnimate from "../NotesAnimate/NotesAnimate";
|
||||
|
||||
import { useShazarrProvider } from "./Provider";
|
||||
|
||||
@@ -77,8 +77,6 @@ export function ShazarrProvider({ children }: { children: ReactNode }) {
|
||||
}
|
||||
}
|
||||
|
||||
// Start recording lock screen
|
||||
// await ScreenOrientation.lock({ orientation: "natural" });
|
||||
setRecordingStatus("recording");
|
||||
vibrateAction();
|
||||
const { value: isRecording } = await VoiceRecorder.startRecording();
|
||||
@@ -92,7 +90,7 @@ export function ShazarrProvider({ children }: { children: ReactNode }) {
|
||||
} = await VoiceRecorder.stopRecording();
|
||||
|
||||
// CI testing mock (with mic interface)
|
||||
if (process.env.REACT_APP_STAGE === "testing") {
|
||||
if (import.meta.env.VITE_STAGE === "testing") {
|
||||
setAudio(mockRecordBase64);
|
||||
} else {
|
||||
setAudio(recordDataBase64);
|
||||
@@ -103,9 +101,10 @@ export function ShazarrProvider({ children }: { children: ReactNode }) {
|
||||
}
|
||||
}, duration);
|
||||
}
|
||||
} catch (e: unknown) {
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
// CI testing mock (no mic interface)
|
||||
if (process.env.REACT_APP_STAGE === "testing") {
|
||||
if (import.meta.env.VITE_STAGE === "testing") {
|
||||
setAudio(mockRecordBase64);
|
||||
setRecordingStatus("searching");
|
||||
return;
|
||||
@@ -144,7 +143,8 @@ export function ShazarrProvider({ children }: { children: ReactNode }) {
|
||||
setRecordingError("SHAZARR_NOT_FOUND");
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
if (!historySearch) {
|
||||
addItemToHistory({
|
||||
title: "Offline record",
|
||||
@@ -216,7 +216,11 @@ export function ShazarrProvider({ children }: { children: ReactNode }) {
|
||||
};
|
||||
|
||||
const vibrateAction = async () => {
|
||||
await Haptics.vibrate();
|
||||
try {
|
||||
await Haptics.vibrate();
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
};
|
||||
|
||||
const searchOfflineRecord = (item: HistoryItem) => {
|
||||
|
||||
File renamed without changes.
Vendored
-2
@@ -1,2 +0,0 @@
|
||||
/// <reference types="react-scripts" />
|
||||
/// <reference types="ordova-plugin-chrome-apps-audiocapture" />
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"isolatedModules": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
+4
-25
@@ -1,28 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"baseUrl": "src",
|
||||
"include": [
|
||||
"src",
|
||||
"testing",
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.app.json" },
|
||||
{ "path": "./tsconfig.node.json" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"lib": ["ES2023"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"isolatedModules": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: true,
|
||||
cors: true,
|
||||
open: true,
|
||||
},
|
||||
define: {
|
||||
global: {},
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user