ymy-components 0.0.31 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -189,7 +189,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Gu=Yu`
189
189
  justify-content: center;
190
190
  `,bl=re.p`
191
191
  font-size: 1rem;
192
- `;function wl(e){return Je({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"},child:[]}]})(e)}function _l(e){return Je({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z"},child:[]}]})(e)}const El={translate:wl,sunny:_l,character:()=>W.jsx("p",{style:{fontSize:"1rem",fontWeight:500},children:"字"})},Sl=({icon:e,text:t,onClick:r,styles:n})=>{const i=El[e];return W.jsx(yl,{onClick:r,style:n,children:W.jsxs(gl,{children:[W.jsxs(vl,{children:[W.jsx(i,{size:"1.2rem"})," "]}),W.jsx(bl,{children:t})]})})};function K(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var xl=typeof Symbol=="function"&&Symbol.observable||"@@observable",oo=xl,an=()=>Math.random().toString(36).substring(7).split("").join("."),Ol={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},He=Ol;function Kt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function kl(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Cl(e))return"date";if(Nl(e))return"error";const r=Pl(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Pl(e){return typeof e.constructor=="function"?e.constructor.name:null}function Nl(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Cl(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ie(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=kl(e)),t}function Ns(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?K(2):`Expected the root reducer to be a function. Instead, received: '${Ie(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?K(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?K(1):`Expected the enhancer to be a function. Instead, received: '${Ie(r)}'`);return r(Ns)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,u=!1;function l(){s===o&&(s=new Map,o.forEach((w,y)=>{s.set(y,w)}))}function f(){if(u)throw new Error(process.env.NODE_ENV==="production"?K(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?K(4):`Expected the listener to be a function. Instead, received: '${Ie(w)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?K(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;l();const b=a++;return s.set(b,w),function(){if(y){if(u)throw new Error(process.env.NODE_ENV==="production"?K(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,l(),s.delete(b),o=null}}}function h(w){if(!Kt(w))throw new Error(process.env.NODE_ENV==="production"?K(7):`Actions must be plain objects. Instead, the actual type was: '${Ie(w)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof w.type>"u")throw new Error(process.env.NODE_ENV==="production"?K(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof w.type!="string")throw new Error(process.env.NODE_ENV==="production"?K(17):`Action "type" property must be a string. Instead, the actual type was: '${Ie(w.type)}'. Value was: '${w.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?K(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,w)}finally{u=!1}return(o=s).forEach(b=>{b()}),w}function p(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?K(10):`Expected the nextReducer to be a function. Instead, received: '${Ie(w)}`);n=w,h({type:He.REPLACE})}function v(){const w=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?K(11):`Expected the observer to be an object. Instead, received: '${Ie(y)}'`);function b(){const E=y;E.next&&E.next(f())}return b(),{unsubscribe:w(b)}},[oo](){return this}}}return h({type:He.INIT}),{dispatch:h,subscribe:d,getState:f,replaceReducer:p,[oo]:v}}function so(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Rl(e,t,r,n){const i=Object.keys(t),o=r&&r.type===He.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Kt(e))return`The ${o} has unexpected type of "${Ie(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(e).filter(a=>!t.hasOwnProperty(a)&&!n[a]);if(s.forEach(a=>{n[a]=!0}),!(r&&r.type===He.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Al(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:He.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?K(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:He.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?K(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${He.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Cs(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const a=t[s];process.env.NODE_ENV!=="production"&&typeof e[a]>"u"&&so(`No reducer provided for key "${a}"`),typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{Al(r)}catch(s){o=s}return function(a={},u){if(o)throw o;if(process.env.NODE_ENV!=="production"){const d=Rl(a,r,u,i);d&&so(d)}let l=!1;const f={};for(let d=0;d<n.length;d++){const h=n[d],p=r[h],v=a[h],S=p(v,u);if(typeof S>"u"){const w=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?K(14):`When called with an action of type ${w?`"${String(w)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}f[h]=S,l=l||S!==v}return l=l||n.length!==Object.keys(a).length,l?f:a}}function Sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Tl(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(process.env.NODE_ENV==="production"?K(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:i.getState,dispatch:(u,...l)=>o(u,...l)},a=e.map(u=>u(s));return o=Sr(...a)(i.dispatch),{...i,dispatch:o}}}function Rs(e){return Kt(e)&&"type"in e&&typeof e.type=="string"}var As=Symbol.for("immer-nothing"),ao=Symbol.for("immer-draftable"),ie=Symbol.for("immer-state"),Dl=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ee(e,...t){if(process.env.NODE_ENV!=="production"){const r=Dl[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mt=Object.getPrototypeOf;function Qe(e){return!!e&&!!e[ie]}function Pe(e){var t;return e?Ts(e)||Array.isArray(e)||!!e[ao]||!!((t=e.constructor)!=null&&t[ao])||Br(e)||Ur(e):!1}var Il=Object.prototype.constructor.toString();function Ts(e){if(!e||typeof e!="object")return!1;const t=mt(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Il}function xr(e,t){Lr(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Lr(e){const t=e[ie];return t?t.type_:Array.isArray(e)?1:Br(e)?2:Ur(e)?3:0}function Nn(e,t){return Lr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ds(e,t,r){const n=Lr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function jl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Br(e){return e instanceof Map}function Ur(e){return e instanceof Set}function Fe(e){return e.copy_||e.base_}function Cn(e,t){if(Br(e))return new Map(e);if(Ur(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Ts(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[ie];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const s=i[o],a=n[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(mt(e),n)}else{const n=mt(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function ti(e,t=!1){return qr(e)||Qe(e)||!Pe(e)||(Lr(e)>1&&(e.set=e.add=e.clear=e.delete=Vl),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>ti(n,!0))),e}function Vl(){ee(2)}function qr(e){return Object.isFrozen(e)}var Ml={};function Xe(e){const t=Ml[e];return t||ee(0,e),t}var qt;function Is(){return qt}function $l(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function co(e,t){t&&(Xe("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rn(e){An(e),e.drafts_.forEach(zl),e.drafts_=null}function An(e){e===qt&&(qt=e.parent_)}function uo(e){return qt=$l(qt,e)}function zl(e){const t=e[ie];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[ie].modified_&&(Rn(t),ee(4)),Pe(e)&&(e=Or(t,e),t.parent_||kr(t,e)),t.patches_&&Xe("Patches").generateReplacementPatches_(r[ie].base_,e,t.patches_,t.inversePatches_)):e=Or(t,r,[]),Rn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==As?e:void 0}function Or(e,t,r){if(qr(t))return t;const n=t[ie];if(!n)return xr(t,(i,o)=>fo(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return kr(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,s=!1;n.type_===3&&(o=new Set(i),i.clear(),s=!0),xr(o,(a,u)=>fo(e,n,i,a,u,r,s)),kr(e,i,!1),r&&e.patches_&&Xe("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function fo(e,t,r,n,i,o,s){if(process.env.NODE_ENV!=="production"&&i===r&&ee(5),Qe(i)){const a=o&&t&&t.type_!==3&&!Nn(t.assigned_,n)?o.concat(n):void 0,u=Or(e,i,a);if(Ds(r,n,u),Qe(u))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(Pe(i)&&!qr(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Or(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&kr(e,i)}}function kr(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ti(t,r)}function Fl(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Is(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=ri;r&&(i=[n],o=Wt);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,a}var ri={get(e,t){if(t===ie)return e;const r=Fe(e);if(!Nn(r,t))return Ll(e,r,t);const n=r[t];return e.finalized_||!Pe(n)?n:n===cn(e.base_,t)?(un(e),e.copy_[t]=Dn(n,e)):n},has(e,t){return t in Fe(e)},ownKeys(e){return Reflect.ownKeys(Fe(e))},set(e,t,r){const n=js(Fe(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=cn(Fe(e),t),o=i==null?void 0:i[ie];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(jl(r,i)&&(r!==void 0||Nn(e.base_,t)))return!0;un(e),Tn(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return cn(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,un(e),Tn(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Fe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ee(11)},getPrototypeOf(e){return mt(e.base_)},setPrototypeOf(){ee(12)}},Wt={};xr(ri,(e,t)=>{Wt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Wt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ee(13),Wt.set.call(this,e,t,void 0)};Wt.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ee(14),ri.set.call(this,e[0],t,r,e[0])};function cn(e,t){const r=e[ie];return(r?Fe(r):e)[t]}function Ll(e,t,r){var i;const n=js(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function js(e,t){if(!(t in e))return;let r=mt(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=mt(r)}}function Tn(e){e.modified_||(e.modified_=!0,e.parent_&&Tn(e.parent_))}function un(e){e.copy_||(e.copy_=Cn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Bl=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(u=o,...l){return s.produce(u,f=>r.call(this,f,...l))}}typeof r!="function"&&ee(6),n!==void 0&&typeof n!="function"&&ee(7);let i;if(Pe(t)){const o=uo(this),s=Dn(t,void 0);let a=!0;try{i=r(s),a=!1}finally{a?Rn(o):An(o)}return co(o,n),lo(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===As&&(i=void 0),this.autoFreeze_&&ti(i,!0),n){const o=[],s=[];Xe("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else ee(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Pe(e)||ee(8),Qe(e)&&(e=Ul(e));const t=uo(this),r=Dn(e,void 0);return r[ie].isManual_=!0,An(t),r}finishDraft(e,t){const r=e&&e[ie];(!r||!r.isManual_)&&ee(9);const{scope_:n}=r;return co(n,t),lo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Xe("Patches").applyPatches_;return Qe(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Dn(e,t){const r=Br(e)?Xe("MapSet").proxyMap_(e,t):Ur(e)?Xe("MapSet").proxySet_(e,t):Fl(e,t);return(t?t.scope_:Is()).drafts_.push(r),r}function Ul(e){return Qe(e)||ee(10,e),Vs(e)}function Vs(e){if(!Pe(e)||qr(e))return e;const t=e[ie];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Cn(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Cn(e,!0);return xr(r,(n,i)=>{Ds(r,n,Vs(i))}),t&&(t.finalized_=!1),r}var oe=new Bl,Ms=oe.produce;oe.produceWithPatches.bind(oe);oe.setAutoFreeze.bind(oe);oe.setUseStrictShallowCopy.bind(oe);oe.applyPatches.bind(oe);oe.createDraft.bind(oe);oe.finishDraft.bind(oe);function $s(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var ql=$s(),Wl=$s,Hl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},Yl=e=>e&&typeof e.match=="function";function ho(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?L(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Rs(n)&&n.type===e,r}function Gl(e){return typeof e=="function"&&"type"in e&&Yl(e)}function Kl(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
192
+ `;function wl(e){return Je({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"},child:[]}]})(e)}function _l(e){return Je({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z"},child:[]}]})(e)}const El={translate:wl,sunny:_l,character:()=>W.jsx("p",{style:{fontSize:"1rem",fontWeight:500},children:"字"})},Sl=({icon:e,text:t,onClick:r,styles:n})=>{const i=El[e];return W.jsx(yl,{onClick:r,style:n,children:W.jsxs(gl,{children:[W.jsxs(vl,{children:[W.jsx(i,{size:"1rem"})," "]}),W.jsx(bl,{children:t})]})})};function K(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var xl=typeof Symbol=="function"&&Symbol.observable||"@@observable",oo=xl,an=()=>Math.random().toString(36).substring(7).split("").join("."),Ol={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},He=Ol;function Kt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function kl(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Cl(e))return"date";if(Nl(e))return"error";const r=Pl(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Pl(e){return typeof e.constructor=="function"?e.constructor.name:null}function Nl(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Cl(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ie(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=kl(e)),t}function Ns(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?K(2):`Expected the root reducer to be a function. Instead, received: '${Ie(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?K(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?K(1):`Expected the enhancer to be a function. Instead, received: '${Ie(r)}'`);return r(Ns)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,u=!1;function l(){s===o&&(s=new Map,o.forEach((w,y)=>{s.set(y,w)}))}function f(){if(u)throw new Error(process.env.NODE_ENV==="production"?K(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?K(4):`Expected the listener to be a function. Instead, received: '${Ie(w)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?K(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;l();const b=a++;return s.set(b,w),function(){if(y){if(u)throw new Error(process.env.NODE_ENV==="production"?K(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,l(),s.delete(b),o=null}}}function h(w){if(!Kt(w))throw new Error(process.env.NODE_ENV==="production"?K(7):`Actions must be plain objects. Instead, the actual type was: '${Ie(w)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof w.type>"u")throw new Error(process.env.NODE_ENV==="production"?K(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof w.type!="string")throw new Error(process.env.NODE_ENV==="production"?K(17):`Action "type" property must be a string. Instead, the actual type was: '${Ie(w.type)}'. Value was: '${w.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?K(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,w)}finally{u=!1}return(o=s).forEach(b=>{b()}),w}function p(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?K(10):`Expected the nextReducer to be a function. Instead, received: '${Ie(w)}`);n=w,h({type:He.REPLACE})}function v(){const w=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?K(11):`Expected the observer to be an object. Instead, received: '${Ie(y)}'`);function b(){const E=y;E.next&&E.next(f())}return b(),{unsubscribe:w(b)}},[oo](){return this}}}return h({type:He.INIT}),{dispatch:h,subscribe:d,getState:f,replaceReducer:p,[oo]:v}}function so(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Rl(e,t,r,n){const i=Object.keys(t),o=r&&r.type===He.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Kt(e))return`The ${o} has unexpected type of "${Ie(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(e).filter(a=>!t.hasOwnProperty(a)&&!n[a]);if(s.forEach(a=>{n[a]=!0}),!(r&&r.type===He.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Al(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:He.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?K(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:He.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?K(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${He.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Cs(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const a=t[s];process.env.NODE_ENV!=="production"&&typeof e[a]>"u"&&so(`No reducer provided for key "${a}"`),typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{Al(r)}catch(s){o=s}return function(a={},u){if(o)throw o;if(process.env.NODE_ENV!=="production"){const d=Rl(a,r,u,i);d&&so(d)}let l=!1;const f={};for(let d=0;d<n.length;d++){const h=n[d],p=r[h],v=a[h],S=p(v,u);if(typeof S>"u"){const w=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?K(14):`When called with an action of type ${w?`"${String(w)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}f[h]=S,l=l||S!==v}return l=l||n.length!==Object.keys(a).length,l?f:a}}function Sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Tl(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(process.env.NODE_ENV==="production"?K(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:i.getState,dispatch:(u,...l)=>o(u,...l)},a=e.map(u=>u(s));return o=Sr(...a)(i.dispatch),{...i,dispatch:o}}}function Rs(e){return Kt(e)&&"type"in e&&typeof e.type=="string"}var As=Symbol.for("immer-nothing"),ao=Symbol.for("immer-draftable"),ie=Symbol.for("immer-state"),Dl=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ee(e,...t){if(process.env.NODE_ENV!=="production"){const r=Dl[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mt=Object.getPrototypeOf;function Qe(e){return!!e&&!!e[ie]}function Pe(e){var t;return e?Ts(e)||Array.isArray(e)||!!e[ao]||!!((t=e.constructor)!=null&&t[ao])||Br(e)||Ur(e):!1}var Il=Object.prototype.constructor.toString();function Ts(e){if(!e||typeof e!="object")return!1;const t=mt(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Il}function xr(e,t){Lr(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Lr(e){const t=e[ie];return t?t.type_:Array.isArray(e)?1:Br(e)?2:Ur(e)?3:0}function Nn(e,t){return Lr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ds(e,t,r){const n=Lr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function jl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Br(e){return e instanceof Map}function Ur(e){return e instanceof Set}function Fe(e){return e.copy_||e.base_}function Cn(e,t){if(Br(e))return new Map(e);if(Ur(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Ts(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[ie];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const s=i[o],a=n[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(mt(e),n)}else{const n=mt(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function ti(e,t=!1){return qr(e)||Qe(e)||!Pe(e)||(Lr(e)>1&&(e.set=e.add=e.clear=e.delete=Vl),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>ti(n,!0))),e}function Vl(){ee(2)}function qr(e){return Object.isFrozen(e)}var Ml={};function Xe(e){const t=Ml[e];return t||ee(0,e),t}var qt;function Is(){return qt}function $l(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function co(e,t){t&&(Xe("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rn(e){An(e),e.drafts_.forEach(zl),e.drafts_=null}function An(e){e===qt&&(qt=e.parent_)}function uo(e){return qt=$l(qt,e)}function zl(e){const t=e[ie];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[ie].modified_&&(Rn(t),ee(4)),Pe(e)&&(e=Or(t,e),t.parent_||kr(t,e)),t.patches_&&Xe("Patches").generateReplacementPatches_(r[ie].base_,e,t.patches_,t.inversePatches_)):e=Or(t,r,[]),Rn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==As?e:void 0}function Or(e,t,r){if(qr(t))return t;const n=t[ie];if(!n)return xr(t,(i,o)=>fo(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return kr(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,s=!1;n.type_===3&&(o=new Set(i),i.clear(),s=!0),xr(o,(a,u)=>fo(e,n,i,a,u,r,s)),kr(e,i,!1),r&&e.patches_&&Xe("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function fo(e,t,r,n,i,o,s){if(process.env.NODE_ENV!=="production"&&i===r&&ee(5),Qe(i)){const a=o&&t&&t.type_!==3&&!Nn(t.assigned_,n)?o.concat(n):void 0,u=Or(e,i,a);if(Ds(r,n,u),Qe(u))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(Pe(i)&&!qr(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Or(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&kr(e,i)}}function kr(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ti(t,r)}function Fl(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Is(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=ri;r&&(i=[n],o=Wt);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,a}var ri={get(e,t){if(t===ie)return e;const r=Fe(e);if(!Nn(r,t))return Ll(e,r,t);const n=r[t];return e.finalized_||!Pe(n)?n:n===cn(e.base_,t)?(un(e),e.copy_[t]=Dn(n,e)):n},has(e,t){return t in Fe(e)},ownKeys(e){return Reflect.ownKeys(Fe(e))},set(e,t,r){const n=js(Fe(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=cn(Fe(e),t),o=i==null?void 0:i[ie];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(jl(r,i)&&(r!==void 0||Nn(e.base_,t)))return!0;un(e),Tn(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return cn(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,un(e),Tn(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Fe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ee(11)},getPrototypeOf(e){return mt(e.base_)},setPrototypeOf(){ee(12)}},Wt={};xr(ri,(e,t)=>{Wt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Wt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ee(13),Wt.set.call(this,e,t,void 0)};Wt.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ee(14),ri.set.call(this,e[0],t,r,e[0])};function cn(e,t){const r=e[ie];return(r?Fe(r):e)[t]}function Ll(e,t,r){var i;const n=js(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function js(e,t){if(!(t in e))return;let r=mt(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=mt(r)}}function Tn(e){e.modified_||(e.modified_=!0,e.parent_&&Tn(e.parent_))}function un(e){e.copy_||(e.copy_=Cn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Bl=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(u=o,...l){return s.produce(u,f=>r.call(this,f,...l))}}typeof r!="function"&&ee(6),n!==void 0&&typeof n!="function"&&ee(7);let i;if(Pe(t)){const o=uo(this),s=Dn(t,void 0);let a=!0;try{i=r(s),a=!1}finally{a?Rn(o):An(o)}return co(o,n),lo(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===As&&(i=void 0),this.autoFreeze_&&ti(i,!0),n){const o=[],s=[];Xe("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else ee(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Pe(e)||ee(8),Qe(e)&&(e=Ul(e));const t=uo(this),r=Dn(e,void 0);return r[ie].isManual_=!0,An(t),r}finishDraft(e,t){const r=e&&e[ie];(!r||!r.isManual_)&&ee(9);const{scope_:n}=r;return co(n,t),lo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Xe("Patches").applyPatches_;return Qe(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Dn(e,t){const r=Br(e)?Xe("MapSet").proxyMap_(e,t):Ur(e)?Xe("MapSet").proxySet_(e,t):Fl(e,t);return(t?t.scope_:Is()).drafts_.push(r),r}function Ul(e){return Qe(e)||ee(10,e),Vs(e)}function Vs(e){if(!Pe(e)||qr(e))return e;const t=e[ie];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Cn(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Cn(e,!0);return xr(r,(n,i)=>{Ds(r,n,Vs(i))}),t&&(t.finalized_=!1),r}var oe=new Bl,Ms=oe.produce;oe.produceWithPatches.bind(oe);oe.setAutoFreeze.bind(oe);oe.setUseStrictShallowCopy.bind(oe);oe.applyPatches.bind(oe);oe.createDraft.bind(oe);oe.finishDraft.bind(oe);function $s(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var ql=$s(),Wl=$s,Hl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},Yl=e=>e&&typeof e.match=="function";function ho(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?L(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Rs(n)&&n.type===e,r}function Gl(e){return typeof e=="function"&&"type"in e&&Yl(e)}function Kl(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
193
193
  Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function Ql(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=Gl}=e;return()=>r=>n=>(t(n)&&console.warn(Kl(n.type)),r(n))}function zs(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const o=Date.now();r+=o-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
194
194
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
195
195
  It is disabled in production builds, so you don't need to worry about that.`)}}}var Fs=class Ct extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ct.prototype)}static get[Symbol.species](){return Ct}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ct(...t[0].concat(this)):new Ct(...t.concat(this))}};function po(e){return Pe(e)?Ms(e,()=>{}):e}function mo(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Xl(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Jl(e,t,r){const n=Ls(e,t,r);return{detectMutations(){return Bs(e,t,n,r)}}}function Ls(e,t=[],r,n="",i=new Set){const o={value:r};if(!e(r)&&!i.has(r)){i.add(r),o.children={};for(const s in r){const a=n?n+"."+s:s;t.length&&t.indexOf(a)!==-1||(o.children[s]=Ls(e,t,r[s],a))}}return o}function Bs(e,t=[],r,n,i=!1,o=""){const s=r?r.value:void 0,a=s===n;if(i&&!a&&!Number.isNaN(n))return{wasMutated:!0,path:o};if(e(s)||e(n))return{wasMutated:!1};const u={};for(let f in r.children)u[f]=!0;for(let f in n)u[f]=!0;const l=t.length>0;for(let f in u){const d=o?o+"."+f:f;if(l&&t.some(v=>v instanceof RegExp?v.test(d):d===v))continue;const h=Bs(e,t,r.children[f],n[f],a,d);if(h.wasMutated)return h}return{wasMutated:!1}}function Zl(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(a,u,l,f){return JSON.stringify(a,r(u,f),l)},r=function(a,u){let l=[],f=[];return u||(u=function(d,h){return l[0]===h?"[Circular ~]":"[Circular ~."+f.slice(0,l.indexOf(h)).join(".")+"]"}),function(d,h){if(l.length>0){var p=l.indexOf(this);~p?l.splice(p+1):l.push(this),~p?f.splice(p,1/0,d):f.push(d),~l.indexOf(h)&&(h=u.call(this,d,h))}else l.push(h);return a==null?h:a.call(this,d,h)}},{isImmutable:n=Xl,ignoredPaths:i,warnAfter:o=32}=e;const s=Jl.bind(null,n,i);return({getState:a})=>{let u=a(),l=s(u),f;return d=>h=>{const p=zs(o,"ImmutableStateInvariantMiddleware");p.measureTime(()=>{if(u=a(),f=l.detectMutations(),l=s(u),f.wasMutated)throw new Error(process.env.NODE_ENV==="production"?L(19):`A state mutation was detected between dispatches, in the path '${f.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const v=d(h);return p.measureTime(()=>{if(u=a(),f=l.detectMutations(),l=s(u),f.wasMutated)throw new Error(process.env.NODE_ENV==="production"?L(20):`A state mutation was detected inside a dispatch, in the path: ${f.path||""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),p.warnIfExceeded(),v}}}}function Us(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Kt(e)}function In(e,t="",r=Us,n,i=[],o){let s;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||o!=null&&o.has(e))return!1;const a=n!=null?n(e):Object.entries(e),u=i.length>0;for(const[l,f]of a){const d=t?t+"."+l:l;if(!(u&&i.some(p=>p instanceof RegExp?p.test(d):d===p))){if(!r(f))return{keyPath:d,value:f};if(typeof f=="object"&&(s=In(f,d,r,n,i,o),s))return s}}return o&&qs(e)&&o.add(e),!1}function qs(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!qs(t))return!1;return!0}function ef(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=Us,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:o=[],warnAfter:s=32,ignoreState:a=!1,ignoreActions:u=!1,disableCache:l=!1}=e,f=!l&&WeakSet?new WeakSet:void 0;return d=>h=>p=>{if(!Rs(p))return h(p);const v=h(p),S=zs(s,"SerializableStateInvariantMiddleware");return!u&&!(n.length&&n.indexOf(p.type)!==-1)&&S.measureTime(()=>{const w=In(p,"",t,r,i,f);if(w){const{keyPath:y,value:b}=w;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,b,`
package/dist/index.es.js CHANGED
@@ -4294,7 +4294,7 @@ const Pl = {
4294
4294
  const i = Pl[e];
4295
4295
  return /* @__PURE__ */ q.jsx(_l, { onClick: r, style: n, children: /* @__PURE__ */ q.jsxs(El, { children: [
4296
4296
  /* @__PURE__ */ q.jsxs(Sl, { children: [
4297
- /* @__PURE__ */ q.jsx(i, { size: "1.2rem" }),
4297
+ /* @__PURE__ */ q.jsx(i, { size: "1rem" }),
4298
4298
  " "
4299
4299
  ] }),
4300
4300
  /* @__PURE__ */ q.jsx(xl, { children: t })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ymy-components",
3
3
  "private": false,
4
- "version": "0.0.31",
4
+ "version": "0.0.32",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",
@@ -13,7 +13,8 @@
13
13
  "dev": "vite",
14
14
  "build": "tsc -b && vite build",
15
15
  "lint": "eslint .",
16
- "preview": "vite preview"
16
+ "preview": "vite preview",
17
+ "preview-on-network": "vite preview --host"
17
18
  },
18
19
  "devDependencies": {
19
20
  "@eslint/js": "^9.21.0",