From d1d079b9d5606c2fa53e7239af4fa731b7368928 Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Tue, 28 Nov 2023 14:29:21 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Add=20ImageInfo=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 + .eslintrc.js | 1 - .gitignore | 2 - javascript/main.js | 241 ++++++++++++------ javascript/onig.js | 1 + locales/en_US.json | 13 +- package.json | 6 +- src/app/index.tsx | 9 +- src/app/layout.tsx | 24 +- src/components/VersionTag/index.tsx | 9 +- src/features/Content/style.ts | 5 +- src/features/Header/index.tsx | 9 +- src/features/Setting/Form/Appearance.tsx | 181 +++++++++++++ src/features/Setting/Form/Experimental.tsx | 70 +++++ src/features/Setting/Form/Footer.tsx | 28 ++ src/features/Setting/Form/Layout.tsx | 82 ++++++ src/features/Setting/Form/Sidebar.tsx | 142 +++++++++++ src/features/Setting/Form/data.ts | 35 +++ src/features/Setting/Form/types.ts | 9 + src/features/Setting/SettingForm.tsx | 14 +- src/features/Setting/Sidebar/Item.tsx | 47 ++++ src/features/Setting/Sidebar/index.tsx | 45 ++++ src/features/Setting/index.tsx | 32 ++- src/hooks/useHighlight.ts | 39 +++ src/hooks/useObserver.ts | 43 ++++ src/layouts/index.tsx | 14 +- .../ImageInfo/features/Highlighter.tsx | 119 +++++++++ src/modules/ImageInfo/features/formatInfo.ts | 31 +++ src/modules/ImageInfo/index.tsx | 53 ++++ src/modules/ImageInfo/layout.tsx | 12 + src/modules/ImageInfo/page.tsx | 37 +++ src/modules/ImageInfo/style.ts | 41 +++ src/modules/PromptHighlight/App.tsx | 87 ------- .../{ => features}/SyntaxHighlighter.tsx | 22 +- .../PromptHighlight/features/grammar.ts | 62 +++++ .../{ => features}/promptTheme.ts | 2 +- src/modules/PromptHighlight/index.tsx | 87 +++++-- src/modules/PromptHighlight/layout.tsx | 12 + src/modules/PromptHighlight/page.tsx | 37 +++ .../PromptHighlight/prompt.tmLanguage.json | 58 ----- src/modules/PromptHighlight/style.ts | 10 +- src/modules/PromptHighlight/useHighlight.ts | 60 ----- src/store/initialState.ts | 2 + src/styles/components/button.ts | 2 + vite.config.ts | 9 +- 45 files changed, 1451 insertions(+), 397 deletions(-) create mode 100644 .env create mode 100644 javascript/onig.js create mode 100644 src/features/Setting/Form/Appearance.tsx create mode 100644 src/features/Setting/Form/Experimental.tsx create mode 100644 src/features/Setting/Form/Footer.tsx create mode 100644 src/features/Setting/Form/Layout.tsx create mode 100644 src/features/Setting/Form/Sidebar.tsx create mode 100644 src/features/Setting/Form/data.ts create mode 100644 src/features/Setting/Form/types.ts create mode 100644 src/features/Setting/Sidebar/Item.tsx create mode 100644 src/features/Setting/Sidebar/index.tsx create mode 100644 src/hooks/useHighlight.ts create mode 100644 src/hooks/useObserver.ts create mode 100644 src/modules/ImageInfo/features/Highlighter.tsx create mode 100644 src/modules/ImageInfo/features/formatInfo.ts create mode 100644 src/modules/ImageInfo/index.tsx create mode 100644 src/modules/ImageInfo/layout.tsx create mode 100644 src/modules/ImageInfo/page.tsx create mode 100644 src/modules/ImageInfo/style.ts delete mode 100644 src/modules/PromptHighlight/App.tsx rename src/modules/PromptHighlight/{ => features}/SyntaxHighlighter.tsx (51%) create mode 100644 src/modules/PromptHighlight/features/grammar.ts rename src/modules/PromptHighlight/{ => features}/promptTheme.ts (97%) create mode 100644 src/modules/PromptHighlight/layout.tsx create mode 100644 src/modules/PromptHighlight/page.tsx delete mode 100644 src/modules/PromptHighlight/prompt.tmLanguage.json delete mode 100644 src/modules/PromptHighlight/useHighlight.ts diff --git a/.env b/.env new file mode 100644 index 00000000..81125d3d --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +OPENAI_API='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' +OPENAI_API_URL='https://openai.canisminor.cc' +#SD_HOST='30.183.88.36' +#SD_PORT=80 \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index 04237fb5..4aad1424 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,7 +26,6 @@ module.exports = { 'no-undef': 0, 'object-curly-spacing': 0, 'unicorn/prefer-add-event-listener': 0, - 'unused-imports/no-unused-imports': 0, }, }, ], diff --git a/.gitignore b/.gitignore index 67e9fe2e..95ba0660 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,4 @@ test-output # add other ignore file below __pycache__ /lobe_theme_config.json -/javascript/**/* -!/javascript/main.js bun.lockb diff --git a/javascript/main.js b/javascript/main.js index fba039e7..00c38853 100644 --- a/javascript/main.js +++ b/javascript/main.js @@ -1,4 +1,4 @@ -function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}},a={},i={exports:{}},s={},l=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function k(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=k.prototype;var O=E.prototype=new C;O.constructor=E,x(O,k.prototype),O.isPureReactComponent=!0;var D=Array.isArray,$=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)$.call(t,r)&&!N.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}},i={},a={exports:{}},l={},s=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function k(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=k.prototype;var O=E.prototype=new C;O.constructor=E,x(O,k.prototype),O.isPureReactComponent=!0;var D=Array.isArray,$=Object.prototype.hasOwnProperty,j={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)$.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1e.reduce(((e,t)=>te(e,t,"",re)),{});var re;function oe(e){return t=e,"[object Object]"===Object.prototype.toString.call(t)&&(!(!e.message&&!e.args)&&!e.stack);var t}let ae=!1;const ie=[];class se{constructor(e={}){const t=e.types||Z;this.options=ne({...e,defaults:{...e.defaults},level:le(e.level,t),reporters:[...e.reporters||[]]},{types:Z,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in t){const e={type:n,...this.options.defaults,...t[n]};this[n]=this._wrapLogFn(e),this[n].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=le(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new se({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(t>=0)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){ae=!0}resumeLogs(){ae=!1;const e=ie.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,"function"==typeof t)for(const n in this.options.types)this[n]=t(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(e,t){return(...n)=>{if(!ae)return this._logFn(e,n,t);ie.push([this,e,n,t])}}_logFn(e,t,n){if((e.level||0)>this.level)return!1;const r={date:new Date,args:[],...e,level:le(e.level,this.options.types)};!n&&1===t.length&&oe(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split("\n")),r.args.push("\n"+r.additional.join("\n")),delete r.additional),r.type="string"==typeof r.type?r.type.toLowerCase():"log",r.tag="string"==typeof r.tag?r.tag:"";const o=(e=!1)=>{const t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){const e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const a=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,athis.options.throttleMin))return void(this._lastLog.timeout=setTimeout(o,this.options.throttle))}catch{}o(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function le(e,t={},n=3){return void 0===e?n:"number"==typeof e?e:t[e]&&void 0!==t[e].level?t[e].level:n}se.prototype.add=se.prototype.addReporter,se.prototype.remove=se.prototype.removeReporter,se.prototype.clear=se.prototype.removeReporter,se.prototype.withScope=se.prototype.withTag,se.prototype.mock=se.prototype.mockTypes,se.prototype.pause=se.prototype.pauseLogs,se.prototype.resume=se.prototype.resumeLogs;class ce{constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:1===e?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),n="log"===e.type?"":e.type,r=e.tag||"",o=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,a=`%c${[r,n].filter(Boolean).join(":")}`;"string"==typeof e.args[0]?t(`${a}%c ${e.args[0]}`,o,"",...e.args.slice(1)):t(a,o,...e.args)}}const ue=function(e={}){return function(e={}){return new se(e)}({reporters:e.reporters||[new ce({})],prompt:(e,t={})=>"confirm"===t.type?Promise.resolve(confirm(e)):Promise.resolve(prompt(e)),...e})}();var de={exports:{}},fe={},pe={exports:{}},he={}; +var U=B,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.prototype.hasOwnProperty,X=U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,K={key:!0,ref:!0,__self:!0,__source:!0};function Y(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)q.call(t,r)&&!K.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:V,type:e,key:i,ref:a,props:o,_owner:X.current}}i.Fragment=G,i.jsx=Y,i.jsxs=Y,o.exports=i;var Q=o.exports;const J={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Z={silent:{level:-1},fatal:{level:J.fatal},error:{level:J.error},warn:{level:J.warn},log:{level:J.log},info:{level:J.info},success:{level:J.success},fail:{level:J.fail},ready:{level:J.info},start:{level:J.info},box:{level:J.info},debug:{level:J.debug},trace:{level:J.trace},verbose:{level:J.verbose}};function ee(e){return null!==e&&"object"==typeof e}function te(e,t,n=".",r){if(!ee(t))return te(e,{},n,r);const o=Object.assign({},t);for(const i in e){if("__proto__"===i||"constructor"===i)continue;const t=e[i];null!=t&&(r&&r(o,i,t,n)||(Array.isArray(t)&&Array.isArray(o[i])?o[i]=[...t,...o[i]]:ee(t)&&ee(o[i])?o[i]=te(t,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=t))}return o}const ne=(...e)=>e.reduce(((e,t)=>te(e,t,"",re)),{});var re;function oe(e){return t=e,"[object Object]"===Object.prototype.toString.call(t)&&(!(!e.message&&!e.args)&&!e.stack);var t}let ie=!1;const ae=[];class le{constructor(e={}){const t=e.types||Z;this.options=ne({...e,defaults:{...e.defaults},level:se(e.level,t),reporters:[...e.reporters||[]]},{types:Z,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in t){const e={type:n,...this.options.defaults,...t[n]};this[n]=this._wrapLogFn(e),this[n].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=se(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new le({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(t>=0)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){ie=!0}resumeLogs(){ie=!1;const e=ae.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,"function"==typeof t)for(const n in this.options.types)this[n]=t(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(e,t){return(...n)=>{if(!ie)return this._logFn(e,n,t);ae.push([this,e,n,t])}}_logFn(e,t,n){if((e.level||0)>this.level)return!1;const r={date:new Date,args:[],...e,level:se(e.level,this.options.types)};!n&&1===t.length&&oe(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split("\n")),r.args.push("\n"+r.additional.join("\n")),delete r.additional),r.type="string"==typeof r.type?r.type.toLowerCase():"log",r.tag="string"==typeof r.tag?r.tag:"";const o=(e=!1)=>{const t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){const e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,ithis.options.throttleMin))return void(this._lastLog.timeout=setTimeout(o,this.options.throttle))}catch{}o(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function se(e,t={},n=3){return void 0===e?n:"number"==typeof e?e:t[e]&&void 0!==t[e].level?t[e].level:n}le.prototype.add=le.prototype.addReporter,le.prototype.remove=le.prototype.removeReporter,le.prototype.clear=le.prototype.removeReporter,le.prototype.withScope=le.prototype.withTag,le.prototype.mock=le.prototype.mockTypes,le.prototype.pause=le.prototype.pauseLogs,le.prototype.resume=le.prototype.resumeLogs;class ce{constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:1===e?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),n="log"===e.type?"":e.type,r=e.tag||"",o=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,i=`%c${[r,n].filter(Boolean).join(":")}`;"string"==typeof e.args[0]?t(`${i}%c ${e.args[0]}`,o,"",...e.args.slice(1)):t(i,o,...e.args)}}const ue=function(e={}){return function(e={}){return new le(e)}({reporters:e.reporters||[new ce({})],prompt:(e,t={})=>"confirm"===t.type?Promise.resolve(confirm(e)):Promise.resolve(prompt(e)),...e})}();var de={exports:{}},fe={},pe={exports:{}},he={}; /** * @license React * scheduler.production.min.js @@ -18,7 +18,7 @@ var U=z,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.pr * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,a=e[r];if(!(0>>1;ro(l,n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function w(e){if(g=!1,y(e),!h)if(null!==n(l))h=!0,_(x);else{var t=n(c);null!==t&&I(w,t.startTime-e)}}function x(t,o){h=!1,g&&(g=!1,b(E),E=-1),p=!0;var a=f;try{for(y(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!$());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(o)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&I(w,m.startTime-o),u=!1}return u}finally{d=null,f=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,E=-1,O=5,D=-1;function $(){return!(e.unstable_now()-De||125i?(r.sortIndex=a,t(c,r),null===n(l)&&r===n(c)&&(g?(b(E),E=-1):g=!0,I(w,a-i))):(r.sortIndex=s,t(l,r),h||p||(h=!0,_(x))),r},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(he),pe.exports=he;var ge=pe.exports,me=z,be=ge; +!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(s,n))co(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function w(e){if(g=!1,y(e),!h)if(null!==n(s))h=!0,I(x);else{var t=n(c);null!==t&&N(w,t.startTime-e)}}function x(t,o){h=!1,g&&(g=!1,b(E),E=-1),p=!0;var i=f;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!$());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&N(w,m.startTime-o),u=!1}return u}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,E=-1,O=5,D=-1;function $(){return!(e.unstable_now()-De||125a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(g?(b(E),E=-1):g=!0,N(w,i-a))):(r.sortIndex=l,t(s,r),h||p||(h=!0,I(x))),r},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(he),pe.exports=he;var ge=pe.exports,me=B,be=ge; /** * @license React * react-dom.production.min.js @@ -27,7 +27,7 @@ var U=z,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.pr * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function ve(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n