@zhin.js/console 1.0.49 → 1.0.51
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/CHANGELOG.md +14 -0
- package/client/src/main.tsx +10 -1
- package/client/src/pages/login-assist.tsx +225 -0
- package/dist/assets/index-DS4RbHWX.js +124 -0
- package/dist/assets/style-DS-m6WEr.css +3 -0
- package/dist/chunk-efA98nb6.js +13 -0
- package/dist/client.js +4244 -1
- package/dist/cva.js +44 -44
- package/dist/index.html +2 -2
- package/dist/lucide-react.js +29540 -19582
- package/dist/radix-ui.js +10034 -11107
- package/dist/react-dom-client.js +7604 -9988
- package/dist/react-dom.js +141 -171
- package/dist/react-jsx-dev-runtime.js +9 -42
- package/dist/react-jsx-runtime.js +22 -59
- package/dist/react-router.js +7658 -10644
- package/dist/react.js +293 -455
- package/dist/style.css +3 -2
- package/lib/index.js +29 -2
- package/package.json +7 -6
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/index.js +0 -150
package/dist/client.js
CHANGED
|
@@ -1 +1,4244 @@
|
|
|
1
|
-
import*as Q from"./react.js";import fn,{useMemo as ie,useCallback as T,useEffect as ne,useState as F}from"./react.js";import{jsx as it}from"./react-jsx-runtime.js";import{createBrowserRouter as pn,RouterProvider as hn,Outlet as mn}from"./react-router.js";import{Link as $i,Outlet as Bi,useNavigate as Vi,useOutlet as Hi,useParams as Ki}from"./react-router.js";function _r(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=_r(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=_r(e))&&(n&&(n+=" "),n+=t);return n}const yn=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},bn=(e,t)=>({classGroupId:e,validator:t}),xr=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ue="-",Xt=[],wn="arbitrary..",vn=e=>{const t=kn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Sn(i);const c=i.split(Ue),a=c[0]===""&&c.length>1?1:0;return Er(c,a,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const a=n[i],l=r[i];return a?l?yn(l,a):a:l||Xt}return r[i]||Xt}}},Er=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],s=r.nextPart.get(o);if(s){const l=Er(e,t+1,s);if(l)return l}const i=r.validators;if(i===null)return;const c=t===0?e.join(Ue):e.slice(t).join(Ue),a=i.length;for(let l=0;l<a;l++){const d=i[l];if(d.validator(c))return d.classGroupId}},Sn=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?wn+n:void 0})(),kn=e=>{const{theme:t,classGroups:r}=e;return _n(r,t)},_n=(e,t)=>{const r=xr();for(const n in e){const o=e[n];Ot(o,r,n,t)}return r},Ot=(e,t,r,n)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];xn(i,t,r,n)}},xn=(e,t,r,n)=>{if(typeof e=="string"){En(e,t,r);return}if(typeof e=="function"){Cn(e,t,r,n);return}Rn(e,t,r,n)},En=(e,t,r)=>{const n=e===""?t:Cr(t,e);n.classGroupId=r},Cn=(e,t,r,n)=>{if(On(e)){Ot(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(bn(r,e))},Rn=(e,t,r,n)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[c,a]=o[i];Ot(a,Cr(t,c),r,n)}},Cr=(e,t)=>{let r=e;const n=t.split(Ue),o=n.length;for(let s=0;s<o;s++){const i=n[s];let c=r.nextPart.get(i);c||(c=xr(),r.nextPart.set(i,c)),r=c}return r},On=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Pn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let i=r[s];if(i!==void 0)return i;if((i=n[s])!==void 0)return o(s,i),i},set(s,i){s in r?r[s]=i:o(s,i)}}},yt="!",Jt=":",Tn=[],Qt=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),An=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,c=0,a=0,l;const d=o.length;for(let y=0;y<d;y++){const S=o[y];if(i===0&&c===0){if(S===Jt){s.push(o.slice(a,y)),a=y+1;continue}if(S==="/"){l=y;continue}}S==="["?i++:S==="]"?i--:S==="("?c++:S===")"&&c--}const u=s.length===0?o:o.slice(a);let f=u,m=!1;u.endsWith(yt)?(f=u.slice(0,-1),m=!0):u.startsWith(yt)&&(f=u.slice(1),m=!0);const x=l&&l>a?l-a:void 0;return Qt(s,m,f,x)};if(t){const o=t+Jt,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):Qt(Tn,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},In=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s<r.length;s++){const i=r[s],c=i[0]==="[",a=t.has(i);c||a?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},Mn=e=>({cache:Pn(e.cacheSize),parseClassName:An(e),sortModifiers:In(e),...vn(e)}),zn=/\s+/,Dn=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],c=e.trim().split(zn);let a="";for(let l=c.length-1;l>=0;l-=1){const d=c[l],{isExternal:u,modifiers:f,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:y}=r(d);if(u){a=d+(a.length>0?" "+a:a);continue}let S=!!y,C=n(S?x.substring(0,y):x);if(!C){if(!S){a=d+(a.length>0?" "+a:a);continue}if(C=n(x),!C){a=d+(a.length>0?" "+a:a);continue}S=!1}const O=f.length===0?"":f.length===1?f[0]:s(f).join(":"),_=m?O+yt:O,k=_+C;if(i.indexOf(k)>-1)continue;i.push(k);const p=o(C,S);for(let g=0;g<p.length;++g){const b=p[g];i.push(_+b)}a=d+(a.length>0?" "+a:a)}return a},Nn=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Rr(r))&&(o&&(o+=" "),o+=n);return o},Rr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Rr(e[n]))&&(r&&(r+=" "),r+=t);return r},jn=(e,...t)=>{let r,n,o,s;const i=a=>{const l=t.reduce((d,u)=>u(d),e());return r=Mn(l),n=r.cache.get,o=r.cache.set,s=c,c(a)},c=a=>{const l=n(a);if(l)return l;const d=Dn(a,r);return o(a,d),d};return s=i,(...a)=>s(Nn(...a))},Fn=[],I=e=>{const t=r=>r[e]||Fn;return t.isThemeGetter=!0,t},Or=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Un=/^\d+\/\d+$/,Wn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ln=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$n=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ue=e=>Un.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),J=e=>!!e&&Number.isInteger(Number(e)),at=e=>e.endsWith("%")&&R(e.slice(0,-1)),V=e=>Wn.test(e),Bn=()=>!0,Vn=e=>qn.test(e)&&!Ln.test(e),Tr=()=>!1,Hn=e=>Gn.test(e),Kn=e=>$n.test(e),Yn=e=>!w(e)&&!v(e),Xn=e=>pe(e,Mr,Tr),w=e=>Or.test(e),ee=e=>pe(e,zr,Vn),ct=e=>pe(e,to,R),Zt=e=>pe(e,Ar,Tr),Jn=e=>pe(e,Ir,Kn),Pe=e=>pe(e,Dr,Hn),v=e=>Pr.test(e),me=e=>he(e,zr),Qn=e=>he(e,ro),er=e=>he(e,Ar),Zn=e=>he(e,Mr),eo=e=>he(e,Ir),Te=e=>he(e,Dr,!0),pe=(e,t,r)=>{const n=Or.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},he=(e,t,r=!1)=>{const n=Pr.exec(e);return n?n[1]?t(n[1]):r:!1},Ar=e=>e==="position"||e==="percentage",Ir=e=>e==="image"||e==="url",Mr=e=>e==="length"||e==="size"||e==="bg-size",zr=e=>e==="length",to=e=>e==="number",ro=e=>e==="family-name",Dr=e=>e==="shadow",no=()=>{const e=I("color"),t=I("font"),r=I("text"),n=I("font-weight"),o=I("tracking"),s=I("leading"),i=I("breakpoint"),c=I("container"),a=I("spacing"),l=I("radius"),d=I("shadow"),u=I("inset-shadow"),f=I("text-shadow"),m=I("drop-shadow"),x=I("blur"),y=I("perspective"),S=I("aspect"),C=I("ease"),O=I("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],p=()=>[...k(),v,w],g=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto","contain","none"],h=()=>[v,w,a],P=()=>[ue,"full","auto",...h()],$=()=>[J,"none","subgrid",v,w],_e=()=>["auto",{span:["full",J,v,w]},J,v,w],xe=()=>[J,"auto",v,w],$t=()=>["auto","min","max","fr",v,w],nt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...h()],Z=()=>[ue,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],E=()=>[e,v,w],Bt=()=>[...k(),er,Zt,{position:[v,w]}],Vt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ht=()=>["auto","cover","contain",Zn,Xn,{size:[v,w]}],ot=()=>[at,me,ee],N=()=>["","none","full",l,v,w],U=()=>["",R,me,ee],Ee=()=>["solid","dashed","dotted","double"],Kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[R,at,er,Zt],Yt=()=>["","none",x,v,w],Ce=()=>["none",R,v,w],Re=()=>["none",R,v,w],st=()=>[R,v,w],Oe=()=>[ue,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[V],breakpoint:[V],color:[Bn],container:[V],"drop-shadow":[V],ease:["in","out","in-out"],font:[Yn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[V],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[V],shadow:[V],spacing:["px",R],text:[V],"text-shadow":[V],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ue,w,v,S]}],container:["container"],columns:[{columns:[R,w,v,c]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:p()}],overflow:[{overflow:g()}],"overflow-x":[{"overflow-x":g()}],"overflow-y":[{"overflow-y":g()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[J,"auto",v,w]}],basis:[{basis:[ue,"full","auto",c,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,ue,"auto","initial","none",w]}],grow:[{grow:["",R,v,w]}],shrink:[{shrink:["",R,v,w]}],order:[{order:[J,"first","last","none",v,w]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:_e()}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:_e()}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$t()}],"auto-rows":[{"auto-rows":$t()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...nt(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...nt()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":nt()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[c,"screen",...Z()]}],"min-w":[{"min-w":[c,"screen","none",...Z()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",r,me,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,v,ct]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",at,w]}],"font-family":[{font:[Qn,w,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,v,w]}],"line-clamp":[{"line-clamp":[R,"none",v,ct]}],leading:[{leading:[s,...h()]}],"list-image":[{"list-image":["none",v,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",v,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",v,ee]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[R,"auto",v,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v,w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",v,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Bt()}],"bg-repeat":[{bg:Vt()}],"bg-size":[{bg:Ht()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},J,v,w],radial:["",v,w],conic:[J,v,w]},eo,Jn]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:ot()}],"gradient-via-pos":[{via:ot()}],"gradient-to-pos":[{to:ot()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,v,w]}],"outline-w":[{outline:["",R,me,ee]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",d,Te,Pe]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",u,Te,Pe]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[R,ee]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",f,Te,Pe]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[R,v,w]}],"mix-blend":[{"mix-blend":[...Kt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Kt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[v,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Bt()}],"mask-repeat":[{mask:Vt()}],"mask-size":[{mask:Ht()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",v,w]}],filter:[{filter:["","none",v,w]}],blur:[{blur:Yt()}],brightness:[{brightness:[R,v,w]}],contrast:[{contrast:[R,v,w]}],"drop-shadow":[{"drop-shadow":["","none",m,Te,Pe]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",R,v,w]}],"hue-rotate":[{"hue-rotate":[R,v,w]}],invert:[{invert:["",R,v,w]}],saturate:[{saturate:[R,v,w]}],sepia:[{sepia:["",R,v,w]}],"backdrop-filter":[{"backdrop-filter":["","none",v,w]}],"backdrop-blur":[{"backdrop-blur":Yt()}],"backdrop-brightness":[{"backdrop-brightness":[R,v,w]}],"backdrop-contrast":[{"backdrop-contrast":[R,v,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,v,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,v,w]}],"backdrop-invert":[{"backdrop-invert":["",R,v,w]}],"backdrop-opacity":[{"backdrop-opacity":[R,v,w]}],"backdrop-saturate":[{"backdrop-saturate":[R,v,w]}],"backdrop-sepia":[{"backdrop-sepia":["",R,v,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",v,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",v,w]}],ease:[{ease:["linear","initial",C,v,w]}],delay:[{delay:[R,v,w]}],animate:[{animate:["none",O,v,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,v,w]}],"perspective-origin":[{"perspective-origin":p()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:st()}],"skew-x":[{"skew-x":st()}],"skew-y":[{"skew-y":st()}],transform:[{transform:[v,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:p()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Oe()}],"translate-x":[{"translate-x":Oe()}],"translate-y":[{"translate-y":Oe()}],"translate-z":[{"translate-z":Oe()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",v,w]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",v,w]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[R,me,ee,ct]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},oo=jn(no);function z(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 so=typeof Symbol=="function"&&Symbol.observable||"@@observable",tr=so,lt=()=>Math.random().toString(36).substring(7).split("").join("."),io={INIT:`@@redux/INIT${lt()}`,REPLACE:`@@redux/REPLACE${lt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lt()}`},We=io;function Pt(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 Tt(e,t,r){if(typeof e!="function")throw new Error(z(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(z(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(z(1));return r(Tt)(e,t)}let n=e,o=t,s=new Map,i=s,c=0,a=!1;function l(){i===s&&(i=new Map,s.forEach((S,C)=>{i.set(C,S)}))}function d(){if(a)throw new Error(z(3));return o}function u(S){if(typeof S!="function")throw new Error(z(4));if(a)throw new Error(z(5));let C=!0;l();const O=c++;return i.set(O,S),function(){if(C){if(a)throw new Error(z(6));C=!1,l(),i.delete(O),s=null}}}function f(S){if(!Pt(S))throw new Error(z(7));if(typeof S.type>"u")throw new Error(z(8));if(typeof S.type!="string")throw new Error(z(17));if(a)throw new Error(z(9));try{a=!0,o=n(o,S)}finally{a=!1}return(s=i).forEach(O=>{O()}),S}function m(S){if(typeof S!="function")throw new Error(z(10));n=S,f({type:We.REPLACE})}function x(){const S=u;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(z(11));function O(){const k=C;k.next&&k.next(d())}return O(),{unsubscribe:S(O)}},[tr](){return this}}}return f({type:We.INIT}),{dispatch:f,subscribe:u,getState:d,replaceReducer:m,[tr]:x}}function ao(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:We.INIT})>"u")throw new Error(z(12));if(typeof r(void 0,{type:We.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(z(13))})}function At(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const i=t[s];typeof e[i]=="function"&&(r[i]=e[i])}const n=Object.keys(r);let o;try{ao(r)}catch(s){o=s}return function(i={},c){if(o)throw o;let a=!1;const l={};for(let d=0;d<n.length;d++){const u=n[d],f=r[u],m=i[u],x=f(m,c);if(typeof x>"u")throw c&&c.type,new Error(z(14));l[u]=x,a=a||x!==m}return a=a||n.length!==Object.keys(i).length,a?l:i}}function qe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function co(...e){return t=>(r,n)=>{const o=t(r,n);let s=()=>{throw new Error(z(15))};const i={getState:o.getState,dispatch:(a,...l)=>s(a,...l)},c=e.map(a=>a(i));return s=qe(...c)(o.dispatch),{...o,dispatch:s}}}function lo(e){return Pt(e)&&"type"in e&&typeof e.type=="string"}var Nr=Symbol.for("immer-nothing"),rr=Symbol.for("immer-draftable"),j=Symbol.for("immer-state");function L(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var W=Object,fe=W.getPrototypeOf,Le="constructor",Ke="prototype",bt="configurable",Ge="enumerable",De="writable",we="value",X=e=>!!e&&!!e[j];function G(e){return e?jr(e)||Xe(e)||!!e[rr]||!!e[Le]?.[rr]||Je(e)||Qe(e):!1}var uo=W[Ke][Le].toString(),nr=new WeakMap;function jr(e){if(!e||!It(e))return!1;const t=fe(e);if(t===null||t===W[Ke])return!0;const r=W.hasOwnProperty.call(t,Le)&&t[Le];if(r===Object)return!0;if(!de(r))return!1;let n=nr.get(r);return n===void 0&&(n=Function.toString.call(r),nr.set(r,n)),n===uo}function Ye(e,t,r=!0){ke(e)===0?(r?Reflect.ownKeys(e):W.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function ke(e){const t=e[j];return t?t.type_:Xe(e)?1:Je(e)?2:Qe(e)?3:0}var or=(e,t,r=ke(e))=>r===2?e.has(t):W[Ke].hasOwnProperty.call(e,t),wt=(e,t,r=ke(e))=>r===2?e.get(t):e[t],$e=(e,t,r,n=ke(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function fo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Xe=Array.isArray,Je=e=>e instanceof Map,Qe=e=>e instanceof Set,It=e=>typeof e=="object",de=e=>typeof e=="function",ut=e=>typeof e=="boolean";function po(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var K=e=>e.copy_||e.base_,Mt=e=>e.modified_?e.copy_:e.base_;function vt(e,t){if(Je(e))return new Map(e);if(Qe(e))return new Set(e);if(Xe(e))return Array[Ke].slice.call(e);const r=jr(e);if(t===!0||t==="class_only"&&!r){const n=W.getOwnPropertyDescriptors(e);delete n[j];let o=Reflect.ownKeys(n);for(let s=0;s<o.length;s++){const i=o[s],c=n[i];c[De]===!1&&(c[De]=!0,c[bt]=!0),(c.get||c.set)&&(n[i]={[bt]:!0,[De]:!0,[Ge]:c[Ge],[we]:e[i]})}return W.create(fe(e),n)}else{const n=fe(e);if(n!==null&&r)return{...e};const o=W.create(n);return W.assign(o,e)}}function zt(e,t=!1){return Ze(e)||X(e)||!G(e)||(ke(e)>1&&W.defineProperties(e,{set:Ae,add:Ae,clear:Ae,delete:Ae}),W.freeze(e),t&&Ye(e,(r,n)=>{zt(n,!0)},!1)),e}function ho(){L(2)}var Ae={[we]:ho};function Ze(e){return e===null||!It(e)?!0:W.isFrozen(e)}var Be="MapSet",St="Patches",sr="ArrayMethods",Fr={};function oe(e){const t=Fr[e];return t||L(0,e),t}var ir=e=>!!Fr[e],ve,Ur=()=>ve,mo=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ir(Be)?oe(Be):void 0,arrayMethodsPlugin_:ir(sr)?oe(sr):void 0});function ar(e,t){t&&(e.patchPlugin_=oe(St),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kt(e){_t(e),e.drafts_.forEach(go),e.drafts_=null}function _t(e){e===ve&&(ve=e.parent_)}var cr=e=>ve=mo(ve,e);function go(e){const t=e[j];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lr(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[j].modified_&&(kt(t),L(4)),G(e)&&(e=ur(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[j].base_,e,t)}else e=ur(t,r);return yo(t,e,!0),kt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Nr?e:void 0}function ur(e,t){if(Ze(t))return t;const r=t[j];if(!r)return Ve(t,e.handledSet_,e);if(!et(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Lr(r,e)}return r.copy_}function yo(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zt(t,r)}function Wr(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var et=(e,t)=>e.scope_===t,bo=[];function qr(e,t,r,n){const o=K(e),s=e.type_;if(n!==void 0&&wt(o,n,s)===t){$e(o,n,r,s);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;Ye(o,(a,l)=>{if(X(l)){const d=c.get(l)||[];d.push(a),c.set(l,d)}})}const i=e.draftLocations_.get(t)??bo;for(const c of i)$e(o,c,r,s)}function wo(e,t,r){e.callbacks_.push(function(o){const s=t;if(!s||!et(s,o))return;o.mapSetPlugin_?.fixSetContents(s);const i=Mt(s);qr(e,s.draft_??s,i,r),Lr(s,o)})}function Lr(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}Wr(e)}}function vo(e,t,r){const{scope_:n}=e;if(X(r)){const o=r[j];et(o,n)&&o.callbacks_.push(function(){Ne(e);const i=Mt(o);qr(e,r,i,t)})}else G(r)&&e.callbacks_.push(function(){const s=K(e);e.type_===3?s.has(r)&&Ve(r,n.handledSet_,n):wt(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ve(wt(e.copy_,t,e.type_),n.handledSet_,n)})}function Ve(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||X(e)||t.has(e)||!G(e)||Ze(e)||(t.add(e),Ye(e,(n,o)=>{if(X(o)){const s=o[j];if(et(s,r)){const i=Mt(s);$e(e,n,i,e.type_),Wr(s)}}else G(o)&&Ve(o,t,r)})),e}function So(e,t){const r=Xe(e),n={type_:r?1:0,scope_:t?t.scope_:Ur(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,s=He;r&&(o=[n],s=Se);const{revoke:i,proxy:c}=Proxy.revocable(o,s);return n.draft_=c,n.revoke_=i,[c,n]}var He={get(e,t){if(t===j)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const o=K(e);if(!or(o,t,e.type_))return ko(e,o,t);const s=o[t];if(e.finalized_||!G(s)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&po(t))return s;if(s===dt(e.base_,t)){Ne(e);const i=e.type_===1?+t:t,c=Et(e.scope_,s,e,i);return e.copy_[i]=c}return s},has(e,t){return t in K(e)},ownKeys(e){return Reflect.ownKeys(K(e))},set(e,t,r){const n=Gr(K(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=dt(K(e),t),s=o?.[j];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(fo(r,o)&&(r!==void 0||or(e.base_,t,e.type_)))return!0;Ne(e),xt(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_.set(t,!0),vo(e,t,r)),!0},deleteProperty(e,t){return Ne(e),dt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),xt(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=K(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[De]:!0,[bt]:e.type_!==1||t!=="length",[Ge]:n[Ge],[we]:r[t]}},defineProperty(){L(11)},getPrototypeOf(e){return fe(e.base_)},setPrototypeOf(){L(12)}},Se={};for(let e in He){let t=He[e];Se[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Se.deleteProperty=function(e,t){return Se.set.call(this,e,t,void 0)};Se.set=function(e,t,r){return He.set.call(this,e[0],t,r,e[0])};function dt(e,t){const r=e[j];return(r?K(r):e)[t]}function ko(e,t,r){const n=Gr(t,r);return n?we in n?n[we]:n.get?.call(e.draft_):void 0}function Gr(e,t){if(!(t in e))return;let r=fe(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=fe(r)}}function xt(e){e.modified_||(e.modified_=!0,e.parent_&&xt(e.parent_))}function Ne(e){e.copy_||(e.assigned_=new Map,e.copy_=vt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _o=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(de(t)&&!de(r)){const s=r;r=t;const i=this;return function(a=s,...l){return i.produce(a,d=>r.call(this,d,...l))}}de(r)||L(6),n!==void 0&&!de(n)&&L(7);let o;if(G(t)){const s=cr(this),i=Et(s,t,void 0);let c=!0;try{o=r(i),c=!1}finally{c?kt(s):_t(s)}return ar(s,n),lr(o,s)}else if(!t||!It(t)){if(o=r(t),o===void 0&&(o=t),o===Nr&&(o=void 0),this.autoFreeze_&&zt(o,!0),n){const s=[],i=[];oe(St).generateReplacementPatches_(t,o,{patches_:s,inversePatches_:i}),n(s,i)}return o}else L(1,t)},this.produceWithPatches=(t,r)=>{if(de(t))return(i,...c)=>this.produceWithPatches(i,a=>t(a,...c));let n,o;return[this.produce(t,r,(i,c)=>{n=i,o=c}),n,o]},ut(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ut(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ut(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){G(e)||L(8),X(e)&&(e=xo(e));const t=cr(this),r=Et(t,e,void 0);return r[j].isManual_=!0,_t(t),r}finishDraft(e,t){const r=e&&e[j];(!r||!r.isManual_)&&L(9);const{scope_:n}=r;return ar(n,t),lr(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=oe(St).applyPatches_;return X(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Et(e,t,r,n){const[o,s]=Je(t)?oe(Be).proxyMap_(t,r):Qe(t)?oe(Be).proxySet_(t,r):So(t,r);return(r?.scope_??Ur()).drafts_.push(o),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?wo(r,s,n):s.callbacks_.push(function(a){a.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:l}=a;s.modified_&&l&&l.generatePatches_(s,[],a)}),o}function xo(e){return X(e)||L(10,e),$r(e)}function $r(e){if(!G(e)||Ze(e))return e;const t=e[j];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=vt(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=vt(e,!0);return Ye(r,(o,s)=>{$e(r,o,$r(s))},n),t&&(t.finalized_=!1),r}var Eo=new _o,Br=Eo.produce;function Vr(e){return({dispatch:r,getState:n})=>o=>s=>typeof s=="function"?s(r,n,e):o(s)}var Co=Vr(),Ro=Vr,Oo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qe:qe.apply(null,arguments)},Po=e=>e&&typeof e.match=="function";function be(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(Y(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>lo(n)&&n.type===e,r}var Hr=class ge extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ge.prototype)}static get[Symbol.species](){return ge}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ge(...t[0].concat(this)):new ge(...t.concat(this))}};function dr(e){return G(e)?Br(e,()=>{}):e}function Ie(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function To(e){return typeof e=="boolean"}var Ao=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let i=new Hr;return r&&(To(r)?i.push(Co):i.push(Ro(r.extraArgument))),i},Io="RTK_autoBatch",fr=e=>t=>{setTimeout(t,e)},Mo=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,s=!1,i=!1;const c=new Set,a=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fr(10):e.type==="callback"?e.queueNotification:fr(e.timeout),l=()=>{i=!1,s&&(s=!1,c.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){const u=()=>o&&d(),f=n.subscribe(u);return c.add(d),()=>{f(),c.delete(d)}},dispatch(d){try{return o=!d?.meta?.[Io],s=!o,s&&(i||(i=!0,a(l))),n.dispatch(d)}finally{o=!0}}})},zo=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new Hr(e);return n&&o.push(Mo(typeof n=="object"?n:void 0)),o};function Do(e){const t=Ao(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:s=void 0,enhancers:i=void 0}=e||{};let c;if(typeof r=="function")c=r;else if(Pt(r))c=At(r);else throw new Error(Y(1));let a;typeof n=="function"?a=n(t):a=t();let l=qe;o&&(l=Oo({trace:!1,...typeof o=="object"&&o}));const d=co(...a),u=zo(d);let f=typeof i=="function"?i(u):u();const m=l(...f);return Tt(c,s,m)}function Kr(e){const t={},r=[];let n;const o={addCase(s,i){const c=typeof s=="string"?s:s.type;if(!c)throw new Error(Y(28));if(c in t)throw new Error(Y(29));return t[c]=i,o},addAsyncThunk(s,i){return i.pending&&(t[s.pending.type]=i.pending),i.rejected&&(t[s.rejected.type]=i.rejected),i.fulfilled&&(t[s.fulfilled.type]=i.fulfilled),i.settled&&r.push({matcher:s.settled,reducer:i.settled}),o},addMatcher(s,i){return r.push({matcher:s,reducer:i}),o},addDefaultCase(s){return n=s,o}};return e(o),[t,r,n]}function No(e){return typeof e=="function"}function jo(e,t){let[r,n,o]=Kr(t),s;if(No(e))s=()=>dr(e());else{const c=dr(e);s=()=>c}function i(c=s(),a){let l=[r[a.type],...n.filter(({matcher:d})=>d(a)).map(({reducer:d})=>d)];return l.filter(d=>!!d).length===0&&(l=[o]),l.reduce((d,u)=>{if(u)if(X(d)){const m=u(d,a);return m===void 0?d:m}else{if(G(d))return Br(d,f=>u(f,a));{const f=u(d,a);if(f===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return d},c)}return i.getInitialState=s,i}var Fo=(e,t)=>Po(e)?e.match(t):e(t);function Uo(...e){return t=>e.some(r=>Fo(r,t))}var Wo="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qo=(e=21)=>{let t="",r=e;for(;r--;)t+=Wo[Math.random()*64|0];return t},Lo=["name","message","stack","code"],ft=class{constructor(e,t){this.payload=e,this.meta=t}_type},pr=class{constructor(e,t){this.payload=e,this.meta=t}_type},Go=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of Lo)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},hr="External signal was aborted",Dt=(()=>{function e(t,r,n){const o=be(t+"/fulfilled",(a,l,d,u)=>({payload:a,meta:{...u||{},arg:d,requestId:l,requestStatus:"fulfilled"}})),s=be(t+"/pending",(a,l,d)=>({payload:void 0,meta:{...d||{},arg:l,requestId:a,requestStatus:"pending"}})),i=be(t+"/rejected",(a,l,d,u,f)=>({payload:u,error:(n&&n.serializeError||Go)(a||"Rejected"),meta:{...f||{},arg:d,requestId:l,rejectedWithValue:!!u,requestStatus:"rejected",aborted:a?.name==="AbortError",condition:a?.name==="ConditionError"}}));function c(a,{signal:l}={}){return(d,u,f)=>{const m=n?.idGenerator?n.idGenerator(a):qo(),x=new AbortController;let y,S;function C(_){S=_,x.abort()}l&&(l.aborted?C(hr):l.addEventListener("abort",()=>C(hr),{once:!0}));const O=(async function(){let _;try{let p=n?.condition?.(a,{getState:u,extra:f});if(Bo(p)&&(p=await p),p===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise((b,h)=>{y=()=>{h({name:"AbortError",message:S||"Aborted"})},x.signal.addEventListener("abort",y,{once:!0})});d(s(m,a,n?.getPendingMeta?.({requestId:m,arg:a},{getState:u,extra:f}))),_=await Promise.race([g,Promise.resolve(r(a,{dispatch:d,getState:u,extra:f,requestId:m,signal:x.signal,abort:C,rejectWithValue:(b,h)=>new ft(b,h),fulfillWithValue:(b,h)=>new pr(b,h)})).then(b=>{if(b instanceof ft)throw b;return b instanceof pr?o(b.payload,m,a,b.meta):o(b,m,a)})])}catch(p){_=p instanceof ft?i(null,m,a,p.payload,p.meta):i(p,m,a)}finally{y&&x.signal.removeEventListener("abort",y)}return n&&!n.dispatchConditionRejection&&i.match(_)&&_.meta.condition||d(_),_})();return Object.assign(O,{abort:C,requestId:m,arg:a,unwrap(){return O.then($o)}})}}return Object.assign(c,{pending:s,rejected:i,fulfilled:o,settled:Uo(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function $o(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Bo(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vo=Symbol.for("rtk-slice-createasyncthunk");function Ho(e,t){return`${e}/${t}`}function Ko({creators:e}={}){const t=e?.asyncThunk?.[Vo];return function(n){const{name:o,reducerPath:s=o}=n;if(!o)throw new Error(Y(11));const i=(typeof n.reducers=="function"?n.reducers(Xo()):n.reducers)||{},c=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(_,k){const p=typeof _=="string"?_:_.type;if(!p)throw new Error(Y(12));if(p in a.sliceCaseReducersByType)throw new Error(Y(13));return a.sliceCaseReducersByType[p]=k,l},addMatcher(_,k){return a.sliceMatchers.push({matcher:_,reducer:k}),l},exposeAction(_,k){return a.actionCreators[_]=k,l},exposeCaseReducer(_,k){return a.sliceCaseReducersByName[_]=k,l}};c.forEach(_=>{const k=i[_],p={reducerName:_,type:Ho(o,_),createNotation:typeof n.reducers=="function"};Qo(k)?es(p,k,l,t):Jo(p,k,l)});function d(){const[_={},k=[],p=void 0]=typeof n.extraReducers=="function"?Kr(n.extraReducers):[n.extraReducers],g={..._,...a.sliceCaseReducersByType};return jo(n.initialState,b=>{for(let h in g)b.addCase(h,g[h]);for(let h of a.sliceMatchers)b.addMatcher(h.matcher,h.reducer);for(let h of k)b.addMatcher(h.matcher,h.reducer);p&&b.addDefaultCase(p)})}const u=_=>_,f=new Map,m=new WeakMap;let x;function y(_,k){return x||(x=d()),x(_,k)}function S(){return x||(x=d()),x.getInitialState()}function C(_,k=!1){function p(b){let h=b[_];return typeof h>"u"&&k&&(h=Ie(m,p,S)),h}function g(b=u){const h=Ie(f,k,()=>new WeakMap);return Ie(h,b,()=>{const P={};for(const[$,_e]of Object.entries(n.selectors??{}))P[$]=Yo(_e,b,()=>Ie(m,b,S),k);return P})}return{reducerPath:_,getSelectors:g,get selectors(){return g(p)},selectSlice:p}}const O={name:o,reducer:y,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:S,...C(s),injectInto(_,{reducerPath:k,...p}={}){const g=k??s;return _.inject({reducerPath:g,reducer:y},p),{...O,...C(g,!0)}}};return O}}function Yo(e,t,r,n){function o(s,...i){let c=t(s);return typeof c>"u"&&n&&(c=r()),e(c,...i)}return o.unwrapped=e,o}var tt=Ko();function Xo(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Jo({type:e,reducerName:t,createNotation:r},n,o){let s,i;if("reducer"in n){if(r&&!Zo(n))throw new Error(Y(17));s=n.reducer,i=n.prepare}else s=n;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?be(e,i):be(e))}function Qo(e){return e._reducerDefinitionType==="asyncThunk"}function Zo(e){return e._reducerDefinitionType==="reducerWithPrepare"}function es({type:e,reducerName:t},r,n,o){if(!o)throw new Error(Y(18));const{payloadCreator:s,fulfilled:i,pending:c,rejected:a,settled:l,options:d}=r,u=o(e,s,d);n.exposeAction(t,u),i&&n.addCase(u.fulfilled,i),c&&n.addCase(u.pending,c),a&&n.addCase(u.rejected,a),l&&n.addMatcher(u.settled,l),n.exposeCaseReducer(t,{fulfilled:i||Me,pending:c||Me,rejected:a||Me,settled:l||Me})}function Me(){}function Y(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Nt="persist:",jt="persist/FLUSH",rt="persist/REHYDRATE",Ft="persist/PAUSE",Ut="persist/PERSIST",Wt="persist/PURGE",qt="persist/REGISTER",ts=-1;function je(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?je=function(r){return typeof r}:je=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},je(e)}function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function rs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mr(r,!0).forEach(function(n){ns(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mr(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ns(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function os(e,t,r,n){n.debug;var o=rs({},r);return e&&je(e)==="object"&&Object.keys(e).forEach(function(s){s!=="_persist"&&t[s]===r[s]&&(o[s]=e[s])}),o}function ss(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],o=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:Nt).concat(e.key),i=e.storage,c;e.serialize===!1?c=function(p){return p}:typeof e.serialize=="function"?c=e.serialize:c=is;var a=e.writeFailHandler||null,l={},d={},u=[],f=null,m=null,x=function(p){Object.keys(p).forEach(function(g){C(g)&&l[g]!==p[g]&&u.indexOf(g)===-1&&u.push(g)}),Object.keys(l).forEach(function(g){p[g]===void 0&&C(g)&&u.indexOf(g)===-1&&l[g]!==void 0&&u.push(g)}),f===null&&(f=setInterval(y,o)),l=p};function y(){if(u.length===0){f&&clearInterval(f),f=null;return}var k=u.shift(),p=n.reduce(function(g,b){return b.in(g,k,l)},l[k]);if(p!==void 0)try{d[k]=c(p)}catch(g){console.error("redux-persist/createPersistoid: error serializing state",g)}else delete d[k];u.length===0&&S()}function S(){Object.keys(d).forEach(function(k){l[k]===void 0&&delete d[k]}),m=i.setItem(s,c(d)).catch(O)}function C(k){return!(r&&r.indexOf(k)===-1&&k!=="_persist"||t&&t.indexOf(k)!==-1)}function O(k){a&&a(k)}var _=function(){for(;u.length!==0;)y();return m||Promise.resolve()};return{update:x,flush:_}}function is(e){return JSON.stringify(e)}function as(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:Nt).concat(e.key),n=e.storage;e.debug;var o;return e.deserialize===!1?o=function(i){return i}:typeof e.deserialize=="function"?o=e.deserialize:o=cs,n.getItem(r).then(function(s){if(s)try{var i={},c=o(s);return Object.keys(c).forEach(function(a){i[a]=t.reduceRight(function(l,d){return d.out(l,a,c)},o(c[a]))}),i}catch(a){throw a}else return})}function cs(e){return JSON.parse(e)}function ls(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:Nt).concat(e.key);return t.removeItem(r,us)}function us(e){}function gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gr(r,!0).forEach(function(n){ds(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gr(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ds(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fs(e,t){if(e==null)return{};var r=ps(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ps(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var hs=5e3;function Yr(e,t){var r=e.version!==void 0?e.version:ts;e.debug;var n=e.stateReconciler===void 0?os:e.stateReconciler,o=e.getStoredState||as,s=e.timeout!==void 0?e.timeout:hs,i=null,c=!1,a=!0,l=function(u){return u._persist.rehydrated&&i&&!a&&i.update(u),u};return function(d,u){var f=d||{},m=f._persist,x=fs(f,["_persist"]),y=x;if(u.type===Ut){var S=!1,C=function(h,P){S||(u.rehydrate(e.key,h,P),S=!0)};if(s&&setTimeout(function(){!S&&C(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),a=!1,i||(i=ss(e)),m)return H({},t(y,u),{_persist:m});if(typeof u.rehydrate!="function"||typeof u.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return u.register(e.key),o(e).then(function(b){var h=e.migrate||function(P,$){return Promise.resolve(P)};h(b,r).then(function(P){C(P)},function(P){C(void 0,P)})},function(b){C(void 0,b)}),H({},t(y,u),{_persist:{version:r,rehydrated:!1}})}else{if(u.type===Wt)return c=!0,u.result(ls(e)),H({},t(y,u),{_persist:m});if(u.type===jt)return u.result(i&&i.flush()),H({},t(y,u),{_persist:m});if(u.type===Ft)a=!0;else if(u.type===rt){if(c)return H({},y,{_persist:H({},m,{rehydrated:!0})});if(u.key===e.key){var O=t(y,u),_=u.payload,k=n!==!1&&_!==void 0?n(_,d,O,e):O,p=H({},k,{_persist:H({},m,{rehydrated:!0})});return l(p)}}}if(!m)return t(d,u);var g=t(y,u);return g===y?d:l(H({},g,{_persist:m}))}}function yr(e){return ys(e)||gs(e)||ms()}function ms(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function gs(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function ys(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?br(r,!0).forEach(function(n){bs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xr={registry:[],bootstrapped:!1},ws=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xr,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case qt:return Ct({},t,{registry:[].concat(yr(t.registry),[r.key])});case rt:var n=t.registry.indexOf(r.key),o=yr(t.registry);return o.splice(n,1),Ct({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function vs(e,t,r){var n=Tt(ws,Xr,void 0),o=function(a){n.dispatch({type:qt,key:a})},s=function(a,l,d){var u={type:rt,payload:l,err:d,key:a};e.dispatch(u),n.dispatch(u)},i=Ct({},n,{purge:function(){var a=[];return e.dispatch({type:Wt,result:function(d){a.push(d)}}),Promise.all(a)},flush:function(){var a=[];return e.dispatch({type:jt,result:function(d){a.push(d)}}),Promise.all(a)},pause:function(){e.dispatch({type:Ft})},persist:function(){e.dispatch({type:Ut,register:o,rehydrate:s})}});return i.persist(),i}function Jr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.whitelist||null,o=r.blacklist||null;function s(i){return!!(n&&n.indexOf(i)===-1||o&&o.indexOf(i)!==-1)}return{in:function(c,a,l){return!s(a)&&e?e(c,a,l):c},out:function(c,a,l){return!s(a)&&t?t(c,a,l):c}}}function Fe(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(r){return typeof r}:Fe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fe(e)}function pt(){}var Ss={getItem:pt,setItem:pt,removeItem:pt};function ks(e){if((typeof self>"u"?"undefined":Fe(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return!1}return!0}function _s(e){var t="".concat(e,"Storage");return ks(t)?self[t]:Ss}function xs(e){var t=_s(e);return{getItem:function(n){return new Promise(function(o,s){o(t.getItem(n))})},setItem:function(n,o){return new Promise(function(s,i){s(t.setItem(n,o))})},removeItem:function(n){return new Promise(function(o,s){o(t.removeItem(n))})}}}const Es=xs("local"),Cs={sidebarOpen:!0,activeMenu:"home"},Qr=tt({name:"ui",initialState:Cs,reducers:{toggleSidebar:e=>{e.sidebarOpen=!e.sidebarOpen},setSidebarOpen:(e,t)=>{e.sidebarOpen=t.payload},setActiveMenu:(e,t)=>{e.activeMenu=t.payload}}}),{toggleSidebar:bi,setSidebarOpen:wi,setActiveMenu:vi}=Qr.actions,Rs=Qr.reducer,Os={routes:[]},Ps=(e,t)=>{const r=t.split("/").filter(Boolean);for(let n=r.length-1;n>0;n--){const o="/"+r.slice(0,n).join("/"),s=e.find(i=>i.path===o);if(s)return s}return e.find(n=>n.path==="/")||null},Ts=(e,t)=>e==="/"?t:t.replace(e+"/",""),Zr=tt({name:"route",initialState:Os,reducers:{addRoute:(e,t)=>{const r=t.payload,n=Ps(e.routes,r.path);if(n){n.children||(n.children=[]);const o=Ts(n.path,r.path);n.children.push({...r,path:o})}else e.routes.push(r);e.routes.sort((o,s)=>(o.meta?.order||999)-(s.meta?.order||999))},removeRoute:(e,t)=>{const r=t.payload,n=o=>{const s=o.findIndex(i=>i.path===r);if(s>=0)return o.splice(s,1),!0;for(const i of o)if(i.children&&n(i.children))return!0;return!1};n(e.routes)},updateRoute:(e,t)=>{const{path:r,updates:n}=t.payload,o=s=>{const i=s.findIndex(c=>c.path===r);if(i>=0)return s[i]={...s[i],...n},!0;for(const c of s)if(c.children&&o(c.children))return!0;return!1};o(e.routes)},setRoutes:(e,t)=>{e.routes=t.payload,e.routes.sort((r,n)=>(r.meta?.order||999)-(n.meta?.order||999))},clearRoutes:e=>{e.routes=[]}}}),{addRoute:As,removeRoute:Is,updateRoute:Ms,setRoutes:Si,clearRoutes:zs}=Zr.actions,Ds=Zr.reducer,Ns={entries:[],loadedScripts:[],synced:!1},Lt=Dt("script/loadScript",async e=>new Promise((t,r)=>{const n=document.createElement("script");n.type="module",n.src=e,n.dataset.dynamicEntry="true",n.onload=()=>t(e),n.onerror=o=>{console.error("[Script] Load failed:",e),r(o)},document.body.appendChild(n)})),en=Dt("script/loadScripts",async(e,{dispatch:t})=>(await Promise.allSettled(e.map(n=>t(Lt(n)).unwrap()))).filter(n=>n.status==="fulfilled").map(n=>n.value)),tn=Dt("script/unloadScript",async e=>(document.querySelectorAll(`script[src="${e}"][data-dynamic-entry="true"]`).forEach(r=>r.remove()),e)),rn=tt({name:"script",initialState:Ns,reducers:{syncEntries:(e,t)=>{e.entries=t.payload,e.synced=!0},addEntry:(e,t)=>{e.entries.includes(t.payload)||e.entries.push(t.payload)},removeEntry:(e,t)=>{e.entries=e.entries.filter(r=>r!==t.payload),e.loadedScripts=e.loadedScripts.filter(r=>r!==t.payload)}},extraReducers:e=>{e.addCase(Lt.fulfilled,(t,r)=>{t.loadedScripts.includes(r.payload)||t.loadedScripts.push(r.payload)}),e.addCase(en.fulfilled,(t,r)=>{r.payload.forEach(n=>{t.loadedScripts.includes(n)||t.loadedScripts.push(n)})}),e.addCase(tn.fulfilled,(t,r)=>{t.loadedScripts=t.loadedScripts.filter(n=>n!==r.payload)})}}),{syncEntries:js,addEntry:Fs,removeEntry:Us}=rn.actions,Ws=rn.reducer,qs={configs:{},schemas:{},loading:{},errors:{},connected:!1},nn=tt({name:"config",initialState:qs,reducers:{setConnected:(e,t)=>{e.connected=t.payload},setLoading:(e,t)=>{const{pluginName:r,loading:n}=t.payload;e.loading[r]=n},setError:(e,t)=>{const{pluginName:r,error:n}=t.payload;e.errors[r]=n},updateConfig:(e,t)=>{const{pluginName:r,config:n}=t.payload;e.configs[r]=n,e.loading[r]=!1,e.errors[r]=null},updateSchema:(e,t)=>{const{pluginName:r,schema:n}=t.payload;e.schemas[r]=n},updateConfigs:(e,t)=>{e.configs={...e.configs,...t.payload}},updateSchemas:(e,t)=>{e.schemas={...e.schemas,...t.payload}},removeConfig:(e,t)=>{const r=t.payload;delete e.configs[r],delete e.schemas[r],delete e.loading[r],delete e.errors[r]},clearConfigs:e=>{e.configs={},e.schemas={},e.loading={},e.errors={}}}}),{setConnected:ht,setLoading:ze,setError:ye,updateConfig:on,updateSchema:sn,updateConfigs:an,updateSchemas:cn,removeConfig:ki,clearConfigs:_i}=nn.actions,Ls=nn.reducer,Gs=(e,t)=>e.config.configs[t],$s=(e,t)=>e.config.schemas[t],Bs=(e,t)=>e.config.loading[t]||!1,Vs=(e,t)=>e.config.errors[t]||null,ae=e=>e.config.connected,Hs=e=>e.config.configs,Ks=e=>e.config.schemas,Rt={ui:Rs,route:Ds,script:Ws,config:Ls};var mt={exports:{}},gt={};var wr;function Ys(){if(wr)return gt;wr=1;var e=fn;function t(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,i=e.useMemo,c=e.useDebugValue;return gt.useSyncExternalStoreWithSelector=function(a,l,d,u,f){var m=o(null);if(m.current===null){var x={hasValue:!1,value:null};m.current=x}else x=m.current;m=i(function(){function S(p){if(!C){if(C=!0,O=p,p=u(p),f!==void 0&&x.hasValue){var g=x.value;if(f(g,p))return _=g}return _=p}if(g=_,r(O,p))return g;var b=u(p);return f!==void 0&&f(g,b)?(O=p,g):(O=p,_=b)}var C=!1,O,_,k=d===void 0?null:d;return[function(){return S(l())},k===null?void 0:function(){return S(k())}]},[l,d,u,f]);var y=n(a,m[0],m[1]);return s(function(){x.hasValue=!0,x.value=y},[y]),c(y),y},gt}var vr;function Xs(){return vr||(vr=1,mt.exports=Ys()),mt.exports}var Js=Xs(),Qs=Symbol.for("react-redux-context"),Zs=typeof globalThis<"u"?globalThis:{};function ei(){if(!Q.createContext)return{};const e=Zs[Qs]??=new Map;let t=e.get(Q.createContext);return t||(t=Q.createContext(null),e.set(Q.createContext,t)),t}var se=ei();function Gt(e=se){return function(){return Q.useContext(e)}}var ln=Gt();function un(e=se){const t=e===se?ln:Gt(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var ti=un();function ri(e=se){const t=e===se?ti:un(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var ni=ri(),oi=(e,t)=>e===t;function si(e=se){const t=e===se?ln:Gt(e),r=(n,o={})=>{const{equalityFn:s=oi}=typeof o=="function"?{equalityFn:o}:o,i=t(),{store:c,subscription:a,getServerState:l}=i;Q.useRef(!0);const d=Q.useCallback({[n.name](f){return n(f)}}[n.name],[n]),u=Js.useSyncExternalStoreWithSelector(a.addNestedSub,c.getState,l||c.getState,d,s);return Q.useDebugValue(u),u};return Object.assign(r,{withTypes:()=>r}),r}var ii=si();const ai=Jr(e=>{const{routes:t,...r}=e;return r},e=>({...e,routes:[]}),{whitelist:["route"]}),ci=Jr(e=>{const{entries:t,loadedScripts:r,synced:n,...o}=e;return o},e=>({...e,entries:[],loadedScripts:[],synced:!1}),{whitelist:["script"]}),dn={key:"root",storage:Es,transforms:[ai,ci]},li=Yr(dn,At(Rt)),A=Do({reducer:li,middleware:e=>e({serializableCheck:{ignoredActions:[jt,rt,Ft,Ut,Wt,qt,"route/addRoute","route/updateRoute","route/setRoutes"],ignoredPaths:["route.routes"]}})}),xi=vs(A);typeof window<"u"&&(window.__REDUX_STORE__=A);function Ei(e,t){Rt[e]=t;const r=Yr(dn,At(Rt));A.replaceReducer(r)}const ui=ni,D=ii,Ci=e=>A.dispatch(As(e)),Ri=e=>A.dispatch(Is(e)),Oi=(e,t)=>A.dispatch(Ms({path:e,updates:t})),Pi=e=>A.getState().route.routes.find(t=>t.path===e),Ti=()=>A.getState().route.routes,Ai=()=>A.dispatch(zs());function Ii(){const e=D(r=>r.route.routes),t=ie(()=>{const r=s=>{const i={path:s.path,element:s.element,Component:s.Component};return s.children&&s.children.length>0&&(i.children=s.children.map(c=>r(c))),i},n=e.map(r);return pn([{path:"/",element:it(mn,{}),children:n},{path:"*",element:it("div",{children:"404 - Page Not Found"})}])},[e]);return it(hn,{router:t})}var q=(e=>(e.DISCONNECTED="disconnected",e.CONNECTING="connecting",e.CONNECTED="connected",e.RECONNECTING="reconnecting",e.ERROR="error",e))(q||{});class te extends Error{constructor(t,r,n){super(t),this.code=r,this.originalError=n,this.name="WebSocketError"}}class di extends te{constructor(t){super(`Request ${t} timed out`,"REQUEST_TIMEOUT")}}class Sr extends te{constructor(t,r){super(t,"CONNECTION_ERROR",r)}}class kr extends te{constructor(t,r){super(t,"MESSAGE_ERROR",r)}}class fi{static handle(t){try{switch(t.type){case"sync":this.handleScriptSync(t);break;case"add":this.handleScriptAdd(t);break;case"delete":this.handleScriptDelete(t);break;case"config:updated":this.handleConfigUpdated(t);break;case"config:batch":this.handleConfigBatch(t);break;case"config:error":this.handleConfigError(t);break;case"schema:updated":this.handleSchemaUpdated(t);break;case"schema:batch":this.handleSchemaBatch(t);break;case"hmr:reload":this.handleHmrReload(t);break;case"init-data":case"data-update":this.handleSystemMessage(t);break;default:console.warn("[WebSocket] Unknown message type:",t.type)}}catch(r){console.error("[WebSocket] Message handling error:",r)}}static handleScriptSync(t){if(t.data?.key==="entries"){const r=Array.isArray(t.data.value)?t.data.value:[t.data.value];A.dispatch(js(r)),A.dispatch(en(r))}}static handleScriptAdd(t){t.data?.key==="entries"&&(A.dispatch(Fs(t.data.value)),A.dispatch(Lt(t.data.value)))}static handleScriptDelete(t){t.data?.key==="entries"&&(A.dispatch(Us(t.data.value)),A.dispatch(tn(t.data.value)))}static handleConfigUpdated(t){t.pluginName&&t.data!==void 0&&A.dispatch(on({pluginName:t.pluginName,config:t.data}))}static handleConfigBatch(t){t.data&&A.dispatch(an(t.data))}static handleConfigError(t){t.pluginName&&t.error&&A.dispatch(ye({pluginName:t.pluginName,error:t.error}))}static handleSchemaUpdated(t){t.pluginName&&t.data!==void 0&&A.dispatch(sn({pluginName:t.pluginName,schema:t.data}))}static handleSchemaBatch(t){t.data&&A.dispatch(cn(t.data))}static handleHmrReload(t){const r=t.data?.file||"";console.info(`[HMR] 文件变更: ${r},正在刷新页面...`),window.location.reload()}static handleSystemMessage(t){}}class pi{ws=null;config;callbacks;state=q.DISCONNECTED;reconnectAttempts=0;reconnectTimer=null;requestId=0;pendingRequests=new Map;constructor(t={},r={}){this.config={url:this.buildWebSocketUrl(t.url),reconnectInterval:t.reconnectInterval??3e3,maxReconnectAttempts:t.maxReconnectAttempts??10,requestTimeout:t.requestTimeout??1e4},this.callbacks=r}connect(){if(!(this.state===q.CONNECTED||this.state===q.CONNECTING)){this.setState(q.CONNECTING);try{this.ws=new WebSocket(this.config.url),this.attachEventHandlers()}catch(t){this.handleConnectionError(new Sr("Failed to create WebSocket",t))}}}disconnect(){this.clearReconnectTimer(),this.clearPendingRequests(),this.ws&&(this.ws.close(),this.ws=null),this.setState(q.DISCONNECTED),A.dispatch(ht(!1))}send(t){if(!this.isConnected())throw new te("WebSocket is not connected","NOT_CONNECTED");try{this.ws.send(JSON.stringify(t))}catch(r){throw new kr("Failed to send message",r)}}async sendRequest(t){if(!this.isConnected())throw new te("WebSocket is not connected","NOT_CONNECTED");return new Promise((r,n)=>{const o=++this.requestId,s={...t,requestId:o},i=setTimeout(()=>{this.pendingRequests.delete(o),n(new di(o))},this.config.requestTimeout);this.pendingRequests.set(o,{resolve:r,reject:n,timer:i});try{this.ws.send(JSON.stringify(s))}catch(c){this.pendingRequests.delete(o),clearTimeout(i),n(new kr("Failed to send request",c))}})}isConnected(){return this.ws?.readyState===WebSocket.OPEN}getState(){return this.state}async getConfig(t){return this.sendRequest({type:"config:get",pluginName:t})}async setConfig(t,r){return this.sendRequest({type:"config:set",pluginName:t,data:r})}async getSchema(t){return this.sendRequest({type:"schema:get",pluginName:t})}async getAllConfigs(){return this.sendRequest({type:"config:get-all"})}async getAllSchemas(){return this.sendRequest({type:"schema:get-all"})}async getConfigYaml(){return this.sendRequest({type:"config:get-yaml"})}async saveConfigYaml(t){return this.sendRequest({type:"config:save-yaml",yaml:t})}async getEnvList(){return this.sendRequest({type:"env:list"})}async getEnvFile(t){return this.sendRequest({type:"env:get",filename:t})}async saveEnvFile(t,r){return this.sendRequest({type:"env:save",filename:t,content:r})}async getFileTree(){return this.sendRequest({type:"files:tree"})}async readFile(t){return this.sendRequest({type:"files:read",filePath:t})}async saveFile(t,r){return this.sendRequest({type:"files:save",filePath:t,content:r})}async getDbInfo(){return this.sendRequest({type:"db:info"})}async getDbTables(){return this.sendRequest({type:"db:tables"})}async dbSelect(t,r,n,o){return this.sendRequest({type:"db:select",table:t,page:r,pageSize:n,where:o})}async dbInsert(t,r){return this.sendRequest({type:"db:insert",table:t,row:r})}async dbUpdate(t,r,n){return this.sendRequest({type:"db:update",table:t,row:r,where:n})}async dbDelete(t,r){return this.sendRequest({type:"db:delete",table:t,where:r})}async dbDropTable(t){return this.sendRequest({type:"db:drop-table",table:t})}async kvGet(t,r){return this.sendRequest({type:"db:kv:get",table:t,key:r})}async kvSet(t,r,n,o){return this.sendRequest({type:"db:kv:set",table:t,key:r,value:n,ttl:o})}async kvDelete(t,r){return this.sendRequest({type:"db:kv:delete",table:t,key:r})}async kvGetEntries(t){return this.sendRequest({type:"db:kv:entries",table:t})}buildWebSocketUrl(t){if(t)return t;const r=window.location.protocol==="https:"?"wss:":"ws:",n=window.location.host;return`${r}//${n}/server`}setState(t){const r=this.state;this.state=t,console.debug(`[WebSocket] State changed: ${r} -> ${t}`)}attachEventHandlers(){this.ws&&(this.ws.onopen=()=>{this.handleConnectionOpen()},this.ws.onmessage=t=>{this.handleMessage(t)},this.ws.onclose=t=>{this.handleConnectionClose(t)},this.ws.onerror=t=>{this.handleConnectionError(new Sr("WebSocket error",t))})}handleConnectionOpen(){this.setState(q.CONNECTED),this.reconnectAttempts=0,A.dispatch(ht(!0)),this.initializeData(),this.callbacks.onConnect?.()}handleMessage(t){try{const r=JSON.parse(t.data);if(r.requestId&&this.pendingRequests.has(r.requestId)){this.handleRequestResponse(r);return}fi.handle(r),this.callbacks.onMessage?.(r)}catch(r){console.error("[WebSocket] Message parsing error:",r)}}handleRequestResponse(t){const{requestId:r}=t,n=this.pendingRequests.get(r);n&&(this.pendingRequests.delete(r),clearTimeout(n.timer),t.error?n.reject(new te(t.error,"SERVER_ERROR")):n.resolve(t.data))}handleConnectionClose(t){this.ws=null,A.dispatch(ht(!1)),this.state!==q.DISCONNECTED&&(this.setState(q.RECONNECTING),this.callbacks.onDisconnect?.(),this.scheduleReconnect())}handleConnectionError(t){this.clearReconnectTimer(),this.setState(q.ERROR),console.error("[WebSocket] Connection error:",t),this.callbacks.onError?.(t)}scheduleReconnect(){if(this.reconnectAttempts>=this.config.maxReconnectAttempts){console.error("[WebSocket] Max reconnect attempts reached"),this.setState(q.ERROR);return}this.reconnectAttempts++;const t=this.config.reconnectInterval*this.reconnectAttempts;console.debug(`[WebSocket] Reconnecting in ${t}ms (attempt ${this.reconnectAttempts}/${this.config.maxReconnectAttempts})`),this.reconnectTimer=setTimeout(()=>{this.state===q.RECONNECTING&&this.connect()},t)}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearPendingRequests(){for(const[t,{reject:r,timer:n}]of this.pendingRequests)clearTimeout(n),r(new te("Connection closed","CONNECTION_CLOSED"));this.pendingRequests.clear()}async initializeData(){try{const[t,r]=await Promise.all([this.getAllConfigs().catch(n=>(console.warn("[WebSocket] Failed to load configs:",n),{})),this.getAllSchemas().catch(n=>(console.warn("[WebSocket] Failed to load schemas:",n),{}))]);A.dispatch(an(t)),A.dispatch(cn(r))}catch(t){console.error("[WebSocket] Data initialization failed:",t)}}}let re=null;function ce(){return re||(re=new pi,typeof window<"u"&&re.connect()),re}function hi(){re&&(re.disconnect(),re=null)}function Mi(){hi()}function zi(e={}){const{autoConnect:t=!0}=e,r=ce(),n=D(ae),o=D(f=>f.script?.entries||[]),s=D(f=>f.script?.loadedScripts||[]),i=T(()=>{r.connect()},[r]),c=T(()=>{r.disconnect()},[r]),a=T(f=>{r.send(f)},[r]),l=T(async f=>r.sendRequest(f),[r]),d=T(()=>r.isConnected(),[r]),u=T(()=>r.isConnected()?"connected":"disconnected",[r]);return ne(()=>{t&&!n&&i()},[t,n,i]),{connected:n,entries:o,loadedScripts:s,connect:i,disconnect:c,send:a,sendRequest:l,isConnected:d,getState:u,manager:r}}function Di(e,t={}){const{autoLoad:r=!0,autoLoadSchema:n=!0}=t,o=ui(),s=ce(),i=D(y=>Gs(y,e)),c=D(y=>$s(y,e)),a=D(y=>Bs(y,e)),l=D(y=>Vs(y,e)),d=D(ae),u=T(async()=>{o(ze({pluginName:e,loading:!0})),o(ye({pluginName:e,error:null}));try{const y=await s.getConfig(e);return o(on({pluginName:e,config:y})),y}catch(y){console.error("[useConfig] getConfig failed:",y);const S=y instanceof Error?y.message:"Unknown error";throw o(ye({pluginName:e,error:S})),y}finally{o(ze({pluginName:e,loading:!1}))}},[e,s,o]),f=T(async y=>{o(ze({pluginName:e,loading:!0})),o(ye({pluginName:e,error:null}));try{const S=await s.setConfig(e,y);return{reloaded:S?.reloaded,message:S?.message}}catch(S){console.error("[useConfig] setConfig failed:",S);const C=S instanceof Error?S.message:"Unknown error";throw o(ye({pluginName:e,error:C})),S}finally{o(ze({pluginName:e,loading:!1}))}},[e,s,o]),m=T(async()=>{try{const y=await s.getSchema(e);return y&&o(sn({pluginName:e,schema:y})),y}catch(y){throw console.error(`Failed to get schema for plugin ${e}:`,y),y}},[e,s,o]),x=T(async()=>{const y=[];r&&y.push(u()),n&&y.push(m()),await Promise.all(y)},[r,n,u,m]);return ne(()=>{d&&r&&!i&&!a&&u().catch(console.error)},[d,r,i,a,u]),ne(()=>{d&&n&&!c&&m().catch(console.error)},[d,n,c,m]),ie(()=>({config:i,schema:c,loading:a,error:l,connected:d,getConfig:u,setConfig:f,getSchema:m,reload:x}),[i,c,a,l,d,u,f,m,x])}function Ni(){const e=ce(),t=D(Hs),r=D(Ks),n=D(ae),o=T(async()=>{try{const[s,i]=await Promise.all([e.getAllConfigs(),e.getAllSchemas()]);return{configs:s,schemas:i}}catch(s){throw console.error("Failed to refresh all configs:",s),s}},[e]);return ie(()=>({configs:t,schemas:r,connected:n,refreshAll:o}),[t,r,n,o])}function ji(){const e=ce(),t=D(ae),[r,n]=F(""),[o,s]=F([]),[i,c]=F(!1),[a,l]=F(null),d=T(async()=>{c(!0),l(null);try{const f=await e.getConfigYaml();return n(f.yaml),s(f.pluginKeys),f}catch(f){const m=f instanceof Error?f.message:"Unknown error";throw l(m),f}finally{c(!1)}},[e]),u=T(async f=>{c(!0),l(null);try{const m=await e.saveConfigYaml(f);return n(f),m}catch(m){const x=m instanceof Error?m.message:"Unknown error";throw l(x),m}finally{c(!1)}},[e]);return ne(()=>{t&&!r&&!i&&d().catch(()=>{})},[t,r,i,d]),ie(()=>({yaml:r,pluginKeys:o,loading:i,error:a,load:d,save:u}),[r,o,i,a,d,u])}function Fi(){const e=ce(),t=D(ae),[r,n]=F([]),[o,s]=F(!1),[i,c]=F(null),a=T(async()=>{s(!0),c(null);try{const u=await e.getEnvList();return n(u.files),u.files}catch(u){const f=u instanceof Error?u.message:"Unknown error";throw c(f),u}finally{s(!1)}},[e]),l=T(async u=>{try{return(await e.getEnvFile(u)).content}catch(f){const m=f instanceof Error?f.message:"Unknown error";throw c(m),f}},[e]),d=T(async(u,f)=>{s(!0),c(null);try{return await e.saveEnvFile(u,f)}catch(m){const x=m instanceof Error?m.message:"Unknown error";throw c(x),m}finally{s(!1)}},[e]);return ne(()=>{t&&r.length===0&&!o&&a().catch(()=>{})},[t,r.length,o,a]),ie(()=>({files:r,loading:o,error:i,listFiles:a,getFile:l,saveFile:d}),[r,o,i,a,l,d])}function Ui(){const e=ce(),t=D(ae),[r,n]=F([]),[o,s]=F(!1),[i,c]=F(null),a=T(async()=>{s(!0),c(null);try{const u=await e.getFileTree();return n(u.tree),u.tree}catch(u){const f=u instanceof Error?u.message:"Unknown error";throw c(f),u}finally{s(!1)}},[e]),l=T(async u=>{try{return(await e.readFile(u)).content}catch(f){const m=f instanceof Error?f.message:"Unknown error";throw c(m),f}},[e]),d=T(async(u,f)=>{s(!0),c(null);try{return await e.saveFile(u,f)}catch(m){const x=m instanceof Error?m.message:"Unknown error";throw c(x),m}finally{s(!1)}},[e]);return ne(()=>{t&&r.length===0&&!o&&a().catch(()=>{})},[t,r.length,o,a]),ie(()=>({tree:r,loading:o,error:i,loadTree:a,readFile:l,saveFile:d}),[r,o,i,a,l,d])}function Wi(){const e=ce(),t=D(ae),[r,n]=F(null),[o,s]=F([]),[i,c]=F(!1),[a,l]=F(null),d=T(async()=>{c(!0),l(null);try{const p=await e.getDbInfo();return n(p),p}catch(p){const g=p instanceof Error?p.message:"Unknown error";throw l(g),p}finally{c(!1)}},[e]),u=T(async()=>{c(!0),l(null);try{const p=await e.getDbTables();return s(p.tables),p.tables}catch(p){const g=p instanceof Error?p.message:"Unknown error";throw l(g),p}finally{c(!1)}},[e]),f=T(async(p,g,b,h)=>{try{return await e.dbSelect(p,g,b,h)}catch(P){const $=P instanceof Error?P.message:"Unknown error";throw l($),P}},[e]),m=T(async(p,g)=>{try{return await e.dbInsert(p,g)}catch(b){const h=b instanceof Error?b.message:"Unknown error";throw l(h),b}},[e]),x=T(async(p,g,b)=>{try{return await e.dbUpdate(p,g,b)}catch(h){const P=h instanceof Error?h.message:"Unknown error";throw l(P),h}},[e]),y=T(async(p,g)=>{try{return await e.dbDelete(p,g)}catch(b){const h=b instanceof Error?b.message:"Unknown error";throw l(h),b}},[e]),S=T(async p=>{try{const g=await e.dbDropTable(p);return await u(),g}catch(g){const b=g instanceof Error?g.message:"Unknown error";throw l(b),g}},[e,u]),C=T(async(p,g)=>{try{return await e.kvGet(p,g)}catch(b){const h=b instanceof Error?b.message:"Unknown error";throw l(h),b}},[e]),O=T(async(p,g,b,h)=>{try{return await e.kvSet(p,g,b,h)}catch(P){const $=P instanceof Error?P.message:"Unknown error";throw l($),P}},[e]),_=T(async(p,g)=>{try{return await e.kvDelete(p,g)}catch(b){const h=b instanceof Error?b.message:"Unknown error";throw l(h),b}},[e]),k=T(async p=>{try{return await e.kvGetEntries(p)}catch(g){const b=g instanceof Error?g.message:"Unknown error";throw l(b),g}},[e]);return ne(()=>{t&&!r&&!i&&(d().catch(()=>{}),u().catch(()=>{}))},[t,r,i,d,u]),ie(()=>({info:r,tables:o,loading:i,error:a,loadInfo:d,loadTables:u,dropTable:S,select:f,insert:m,update:x,remove:y,kvGet:C,kvSet:O,kvDelete:_,kvEntries:k}),[r,o,i,a,d,u,S,f,m,x,y,C,O,_,k])}function qi(...e){return oo(gn(e))}export{Sr as ConnectionError,q as ConnectionState,Ii as DynamicRouter,$i as Link,kr as MessageError,fi as MessageHandler,Bi as Outlet,di as RequestTimeoutError,te as WebSocketError,pi as WebSocketManager,Fs as addEntry,Ci as addPage,Ei as addReducer,As as addRoute,_i as clearConfigs,Ai as clearPages,zs as clearRoutes,qi as cn,hi as destroyWebSocketManager,Ti as getAllPages,Pi as getPage,ce as getWebSocketManager,Lt as loadScript,en as loadScripts,xi as persistor,ki as removeConfig,Us as removeEntry,Ri as removePage,Is as removeRoute,Mi as resetWebSocketManager,Hs as selectAllConfigs,Ks as selectAllSchemas,Gs as selectConfig,ae as selectConfigConnected,Vs as selectConfigError,Bs as selectConfigLoading,$s as selectSchema,vi as setActiveMenu,ht as setConnected,ye as setError,ze as setLoading,Si as setRoutes,wi as setSidebarOpen,A as store,js as syncEntries,bi as toggleSidebar,tn as unloadScript,on as updateConfig,an as updateConfigs,Oi as updatePage,Ms as updateRoute,sn as updateSchema,cn as updateSchemas,Ni as useAllConfigs,Di as useConfig,ji as useConfigYaml,Wi as useDatabase,ui as useDispatch,Fi as useEnvFiles,Ui as useFiles,Vi as useNavigate,Hi as useOutlet,Ki as useParams,D as useSelector,zi as useWebSocket};
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { useCallback as t, useEffect as n, useMemo as r, useState as i } from "react";
|
|
3
|
+
import { Link as a, Outlet as o, Outlet as s, RouterProvider as c, createBrowserRouter as l, useNavigate as u, useOutlet as d, useParams as f } from "react-router";
|
|
4
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
5
|
+
//#region \0rolldown/runtime.js
|
|
6
|
+
var m = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
9
|
+
function h(e) {
|
|
10
|
+
var t, n, r = "";
|
|
11
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
12
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
13
|
+
var i = e.length;
|
|
14
|
+
for (t = 0; t < i; t++) e[t] && (n = h(e[t])) && (r && (r += " "), r += n);
|
|
15
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
16
|
+
return r;
|
|
17
|
+
}
|
|
18
|
+
function g() {
|
|
19
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = h(e)) && (r && (r += " "), r += t);
|
|
20
|
+
return r;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../../node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
24
|
+
var _ = (e, t) => {
|
|
25
|
+
let n = Array(e.length + t.length);
|
|
26
|
+
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
27
|
+
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
28
|
+
return n;
|
|
29
|
+
}, v = (e, t) => ({
|
|
30
|
+
classGroupId: e,
|
|
31
|
+
validator: t
|
|
32
|
+
}), y = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
33
|
+
nextPart: e,
|
|
34
|
+
validators: t,
|
|
35
|
+
classGroupId: n
|
|
36
|
+
}), b = "-", ee = [], te = "arbitrary..", ne = (e) => {
|
|
37
|
+
let t = re(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
38
|
+
return {
|
|
39
|
+
getClassGroupId: (e) => {
|
|
40
|
+
if (e.startsWith("[") && e.endsWith("]")) return S(e);
|
|
41
|
+
let n = e.split(b);
|
|
42
|
+
return x(n, n[0] === "" && n.length > 1 ? 1 : 0, t);
|
|
43
|
+
},
|
|
44
|
+
getConflictingClassGroupIds: (e, t) => {
|
|
45
|
+
if (t) {
|
|
46
|
+
let t = r[e], i = n[e];
|
|
47
|
+
return t ? i ? _(i, t) : t : i || ee;
|
|
48
|
+
}
|
|
49
|
+
return n[e] || ee;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}, x = (e, t, n) => {
|
|
53
|
+
if (e.length - t === 0) return n.classGroupId;
|
|
54
|
+
let r = e[t], i = n.nextPart.get(r);
|
|
55
|
+
if (i) {
|
|
56
|
+
let n = x(e, t + 1, i);
|
|
57
|
+
if (n) return n;
|
|
58
|
+
}
|
|
59
|
+
let a = n.validators;
|
|
60
|
+
if (a === null) return;
|
|
61
|
+
let o = t === 0 ? e.join(b) : e.slice(t).join(b), s = a.length;
|
|
62
|
+
for (let e = 0; e < s; e++) {
|
|
63
|
+
let t = a[e];
|
|
64
|
+
if (t.validator(o)) return t.classGroupId;
|
|
65
|
+
}
|
|
66
|
+
}, S = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
67
|
+
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
68
|
+
return r ? te + r : void 0;
|
|
69
|
+
})(), re = (e) => {
|
|
70
|
+
let { theme: t, classGroups: n } = e;
|
|
71
|
+
return ie(n, t);
|
|
72
|
+
}, ie = (e, t) => {
|
|
73
|
+
let n = y();
|
|
74
|
+
for (let r in e) {
|
|
75
|
+
let i = e[r];
|
|
76
|
+
ae(i, n, r, t);
|
|
77
|
+
}
|
|
78
|
+
return n;
|
|
79
|
+
}, ae = (e, t, n, r) => {
|
|
80
|
+
let i = e.length;
|
|
81
|
+
for (let a = 0; a < i; a++) {
|
|
82
|
+
let i = e[a];
|
|
83
|
+
oe(i, t, n, r);
|
|
84
|
+
}
|
|
85
|
+
}, oe = (e, t, n, r) => {
|
|
86
|
+
if (typeof e == "string") {
|
|
87
|
+
se(e, t, n);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (typeof e == "function") {
|
|
91
|
+
C(e, t, n, r);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
w(e, t, n, r);
|
|
95
|
+
}, se = (e, t, n) => {
|
|
96
|
+
let r = e === "" ? t : T(t, e);
|
|
97
|
+
r.classGroupId = n;
|
|
98
|
+
}, C = (e, t, n, r) => {
|
|
99
|
+
if (ce(e)) {
|
|
100
|
+
ae(e(r), t, n, r);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
t.validators === null && (t.validators = []), t.validators.push(v(n, e));
|
|
104
|
+
}, w = (e, t, n, r) => {
|
|
105
|
+
let i = Object.entries(e), a = i.length;
|
|
106
|
+
for (let e = 0; e < a; e++) {
|
|
107
|
+
let [a, o] = i[e];
|
|
108
|
+
ae(o, T(t, a), n, r);
|
|
109
|
+
}
|
|
110
|
+
}, T = (e, t) => {
|
|
111
|
+
let n = e, r = t.split(b), i = r.length;
|
|
112
|
+
for (let e = 0; e < i; e++) {
|
|
113
|
+
let t = r[e], i = n.nextPart.get(t);
|
|
114
|
+
i || (i = y(), n.nextPart.set(t, i)), n = i;
|
|
115
|
+
}
|
|
116
|
+
return n;
|
|
117
|
+
}, ce = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, le = (e) => {
|
|
118
|
+
if (e < 1) return {
|
|
119
|
+
get: () => void 0,
|
|
120
|
+
set: () => {}
|
|
121
|
+
};
|
|
122
|
+
let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
|
|
123
|
+
n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
|
|
124
|
+
};
|
|
125
|
+
return {
|
|
126
|
+
get(e) {
|
|
127
|
+
let t = n[e];
|
|
128
|
+
if (t !== void 0) return t;
|
|
129
|
+
if ((t = r[e]) !== void 0) return i(e, t), t;
|
|
130
|
+
},
|
|
131
|
+
set(e, t) {
|
|
132
|
+
e in n ? n[e] = t : i(e, t);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}, E = "!", ue = ":", de = [], fe = (e, t, n, r, i) => ({
|
|
136
|
+
modifiers: e,
|
|
137
|
+
hasImportantModifier: t,
|
|
138
|
+
baseClassName: n,
|
|
139
|
+
maybePostfixModifierPosition: r,
|
|
140
|
+
isExternal: i
|
|
141
|
+
}), pe = (e) => {
|
|
142
|
+
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
143
|
+
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
144
|
+
for (let s = 0; s < o; s++) {
|
|
145
|
+
let o = e[s];
|
|
146
|
+
if (n === 0 && r === 0) {
|
|
147
|
+
if (o === ue) {
|
|
148
|
+
t.push(e.slice(i, s)), i = s + 1;
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
if (o === "/") {
|
|
152
|
+
a = s;
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
157
|
+
}
|
|
158
|
+
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
159
|
+
s.endsWith(E) ? (c = s.slice(0, -1), l = !0) : s.startsWith(E) && (c = s.slice(1), l = !0);
|
|
160
|
+
let u = a && a > i ? a - i : void 0;
|
|
161
|
+
return fe(t, l, c, u);
|
|
162
|
+
};
|
|
163
|
+
if (t) {
|
|
164
|
+
let e = t + ue, n = r;
|
|
165
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : fe(de, !1, t, void 0, !0);
|
|
166
|
+
}
|
|
167
|
+
if (n) {
|
|
168
|
+
let e = r;
|
|
169
|
+
r = (t) => n({
|
|
170
|
+
className: t,
|
|
171
|
+
parseClassName: e
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return r;
|
|
175
|
+
}, D = (e) => {
|
|
176
|
+
let t = /* @__PURE__ */ new Map();
|
|
177
|
+
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
178
|
+
t.set(e, 1e6 + n);
|
|
179
|
+
}), (e) => {
|
|
180
|
+
let n = [], r = [];
|
|
181
|
+
for (let i = 0; i < e.length; i++) {
|
|
182
|
+
let a = e[i], o = a[0] === "[", s = t.has(a);
|
|
183
|
+
o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
|
|
184
|
+
}
|
|
185
|
+
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
186
|
+
};
|
|
187
|
+
}, O = (e) => ({
|
|
188
|
+
cache: le(e.cacheSize),
|
|
189
|
+
parseClassName: pe(e),
|
|
190
|
+
sortModifiers: D(e),
|
|
191
|
+
...ne(e)
|
|
192
|
+
}), me = /\s+/, he = (e, t) => {
|
|
193
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(me), c = "";
|
|
194
|
+
for (let e = s.length - 1; e >= 0; --e) {
|
|
195
|
+
let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier: d, baseClassName: f, maybePostfixModifierPosition: p } = n(t);
|
|
196
|
+
if (l) {
|
|
197
|
+
c = t + (c.length > 0 ? " " + c : c);
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
let m = !!p, h = r(m ? f.substring(0, p) : f);
|
|
201
|
+
if (!h) {
|
|
202
|
+
if (!m) {
|
|
203
|
+
c = t + (c.length > 0 ? " " + c : c);
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
if (h = r(f), !h) {
|
|
207
|
+
c = t + (c.length > 0 ? " " + c : c);
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
m = !1;
|
|
211
|
+
}
|
|
212
|
+
let g = u.length === 0 ? "" : u.length === 1 ? u[0] : a(u).join(":"), _ = d ? g + E : g, v = _ + h;
|
|
213
|
+
if (o.indexOf(v) > -1) continue;
|
|
214
|
+
o.push(v);
|
|
215
|
+
let y = i(h, m);
|
|
216
|
+
for (let e = 0; e < y.length; ++e) {
|
|
217
|
+
let t = y[e];
|
|
218
|
+
o.push(_ + t);
|
|
219
|
+
}
|
|
220
|
+
c = t + (c.length > 0 ? " " + c : c);
|
|
221
|
+
}
|
|
222
|
+
return c;
|
|
223
|
+
}, k = (...e) => {
|
|
224
|
+
let t = 0, n, r, i = "";
|
|
225
|
+
for (; t < e.length;) (n = e[t++]) && (r = ge(n)) && (i && (i += " "), i += r);
|
|
226
|
+
return i;
|
|
227
|
+
}, ge = (e) => {
|
|
228
|
+
if (typeof e == "string") return e;
|
|
229
|
+
let t, n = "";
|
|
230
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = ge(e[r])) && (n && (n += " "), n += t);
|
|
231
|
+
return n;
|
|
232
|
+
}, _e = (e, ...t) => {
|
|
233
|
+
let n, r, i, a, o = (o) => (n = O(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
234
|
+
let t = r(e);
|
|
235
|
+
if (t) return t;
|
|
236
|
+
let a = he(e, n);
|
|
237
|
+
return i(e, a), a;
|
|
238
|
+
};
|
|
239
|
+
return a = o, (...e) => a(k(...e));
|
|
240
|
+
}, ve = [], A = (e) => {
|
|
241
|
+
let t = (t) => t[e] || ve;
|
|
242
|
+
return t.isThemeGetter = !0, t;
|
|
243
|
+
}, ye = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, be = /^\((?:(\w[\w-]*):)?(.+)\)$/i, xe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Se = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ce = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, we = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Te = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ee = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, j = (e) => xe.test(e), M = (e) => !!e && !Number.isNaN(Number(e)), N = (e) => !!e && Number.isInteger(Number(e)), De = (e) => e.endsWith("%") && M(e.slice(0, -1)), P = (e) => Se.test(e), Oe = () => !0, ke = (e) => Ce.test(e) && !we.test(e), Ae = () => !1, je = (e) => Te.test(e), Me = (e) => Ee.test(e), Ne = (e) => !F(e) && !L(e), Pe = (e) => R(e, Ze, Ae), F = (e) => ye.test(e), I = (e) => R(e, Qe, ke), Fe = (e) => R(e, $e, M), Ie = (e) => R(e, tt, Oe), Le = (e) => R(e, et, Ae), Re = (e) => R(e, Ye, Ae), ze = (e) => R(e, Xe, Me), Be = (e) => R(e, nt, je), L = (e) => be.test(e), Ve = (e) => Je(e, Qe), He = (e) => Je(e, et), Ue = (e) => Je(e, Ye), We = (e) => Je(e, Ze), Ge = (e) => Je(e, Xe), Ke = (e) => Je(e, nt, !0), qe = (e) => Je(e, tt, !0), R = (e, t, n) => {
|
|
244
|
+
let r = ye.exec(e);
|
|
245
|
+
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
246
|
+
}, Je = (e, t, n = !1) => {
|
|
247
|
+
let r = be.exec(e);
|
|
248
|
+
return r ? r[1] ? t(r[1]) : n : !1;
|
|
249
|
+
}, Ye = (e) => e === "position" || e === "percentage", Xe = (e) => e === "image" || e === "url", Ze = (e) => e === "length" || e === "size" || e === "bg-size", Qe = (e) => e === "length", $e = (e) => e === "number", et = (e) => e === "family-name", tt = (e) => e === "number" || e === "weight", nt = (e) => e === "shadow", rt = /* @__PURE__ */ _e(() => {
|
|
250
|
+
let e = A("color"), t = A("font"), n = A("text"), r = A("font-weight"), i = A("tracking"), a = A("leading"), o = A("breakpoint"), s = A("container"), c = A("spacing"), l = A("radius"), u = A("shadow"), d = A("inset-shadow"), f = A("text-shadow"), p = A("drop-shadow"), m = A("blur"), h = A("perspective"), g = A("aspect"), _ = A("ease"), v = A("animate"), y = () => [
|
|
251
|
+
"auto",
|
|
252
|
+
"avoid",
|
|
253
|
+
"all",
|
|
254
|
+
"avoid-page",
|
|
255
|
+
"page",
|
|
256
|
+
"left",
|
|
257
|
+
"right",
|
|
258
|
+
"column"
|
|
259
|
+
], b = () => [
|
|
260
|
+
"center",
|
|
261
|
+
"top",
|
|
262
|
+
"bottom",
|
|
263
|
+
"left",
|
|
264
|
+
"right",
|
|
265
|
+
"top-left",
|
|
266
|
+
"left-top",
|
|
267
|
+
"top-right",
|
|
268
|
+
"right-top",
|
|
269
|
+
"bottom-right",
|
|
270
|
+
"right-bottom",
|
|
271
|
+
"bottom-left",
|
|
272
|
+
"left-bottom"
|
|
273
|
+
], ee = () => [
|
|
274
|
+
...b(),
|
|
275
|
+
L,
|
|
276
|
+
F
|
|
277
|
+
], te = () => [
|
|
278
|
+
"auto",
|
|
279
|
+
"hidden",
|
|
280
|
+
"clip",
|
|
281
|
+
"visible",
|
|
282
|
+
"scroll"
|
|
283
|
+
], ne = () => [
|
|
284
|
+
"auto",
|
|
285
|
+
"contain",
|
|
286
|
+
"none"
|
|
287
|
+
], x = () => [
|
|
288
|
+
L,
|
|
289
|
+
F,
|
|
290
|
+
c
|
|
291
|
+
], S = () => [
|
|
292
|
+
j,
|
|
293
|
+
"full",
|
|
294
|
+
"auto",
|
|
295
|
+
...x()
|
|
296
|
+
], re = () => [
|
|
297
|
+
N,
|
|
298
|
+
"none",
|
|
299
|
+
"subgrid",
|
|
300
|
+
L,
|
|
301
|
+
F
|
|
302
|
+
], ie = () => [
|
|
303
|
+
"auto",
|
|
304
|
+
{ span: [
|
|
305
|
+
"full",
|
|
306
|
+
N,
|
|
307
|
+
L,
|
|
308
|
+
F
|
|
309
|
+
] },
|
|
310
|
+
N,
|
|
311
|
+
L,
|
|
312
|
+
F
|
|
313
|
+
], ae = () => [
|
|
314
|
+
N,
|
|
315
|
+
"auto",
|
|
316
|
+
L,
|
|
317
|
+
F
|
|
318
|
+
], oe = () => [
|
|
319
|
+
"auto",
|
|
320
|
+
"min",
|
|
321
|
+
"max",
|
|
322
|
+
"fr",
|
|
323
|
+
L,
|
|
324
|
+
F
|
|
325
|
+
], se = () => [
|
|
326
|
+
"start",
|
|
327
|
+
"end",
|
|
328
|
+
"center",
|
|
329
|
+
"between",
|
|
330
|
+
"around",
|
|
331
|
+
"evenly",
|
|
332
|
+
"stretch",
|
|
333
|
+
"baseline",
|
|
334
|
+
"center-safe",
|
|
335
|
+
"end-safe"
|
|
336
|
+
], C = () => [
|
|
337
|
+
"start",
|
|
338
|
+
"end",
|
|
339
|
+
"center",
|
|
340
|
+
"stretch",
|
|
341
|
+
"center-safe",
|
|
342
|
+
"end-safe"
|
|
343
|
+
], w = () => ["auto", ...x()], T = () => [
|
|
344
|
+
j,
|
|
345
|
+
"auto",
|
|
346
|
+
"full",
|
|
347
|
+
"dvw",
|
|
348
|
+
"dvh",
|
|
349
|
+
"lvw",
|
|
350
|
+
"lvh",
|
|
351
|
+
"svw",
|
|
352
|
+
"svh",
|
|
353
|
+
"min",
|
|
354
|
+
"max",
|
|
355
|
+
"fit",
|
|
356
|
+
...x()
|
|
357
|
+
], ce = () => [
|
|
358
|
+
j,
|
|
359
|
+
"screen",
|
|
360
|
+
"full",
|
|
361
|
+
"dvw",
|
|
362
|
+
"lvw",
|
|
363
|
+
"svw",
|
|
364
|
+
"min",
|
|
365
|
+
"max",
|
|
366
|
+
"fit",
|
|
367
|
+
...x()
|
|
368
|
+
], le = () => [
|
|
369
|
+
j,
|
|
370
|
+
"screen",
|
|
371
|
+
"full",
|
|
372
|
+
"lh",
|
|
373
|
+
"dvh",
|
|
374
|
+
"lvh",
|
|
375
|
+
"svh",
|
|
376
|
+
"min",
|
|
377
|
+
"max",
|
|
378
|
+
"fit",
|
|
379
|
+
...x()
|
|
380
|
+
], E = () => [
|
|
381
|
+
e,
|
|
382
|
+
L,
|
|
383
|
+
F
|
|
384
|
+
], ue = () => [
|
|
385
|
+
...b(),
|
|
386
|
+
Ue,
|
|
387
|
+
Re,
|
|
388
|
+
{ position: [L, F] }
|
|
389
|
+
], de = () => ["no-repeat", { repeat: [
|
|
390
|
+
"",
|
|
391
|
+
"x",
|
|
392
|
+
"y",
|
|
393
|
+
"space",
|
|
394
|
+
"round"
|
|
395
|
+
] }], fe = () => [
|
|
396
|
+
"auto",
|
|
397
|
+
"cover",
|
|
398
|
+
"contain",
|
|
399
|
+
We,
|
|
400
|
+
Pe,
|
|
401
|
+
{ size: [L, F] }
|
|
402
|
+
], pe = () => [
|
|
403
|
+
De,
|
|
404
|
+
Ve,
|
|
405
|
+
I
|
|
406
|
+
], D = () => [
|
|
407
|
+
"",
|
|
408
|
+
"none",
|
|
409
|
+
"full",
|
|
410
|
+
l,
|
|
411
|
+
L,
|
|
412
|
+
F
|
|
413
|
+
], O = () => [
|
|
414
|
+
"",
|
|
415
|
+
M,
|
|
416
|
+
Ve,
|
|
417
|
+
I
|
|
418
|
+
], me = () => [
|
|
419
|
+
"solid",
|
|
420
|
+
"dashed",
|
|
421
|
+
"dotted",
|
|
422
|
+
"double"
|
|
423
|
+
], he = () => [
|
|
424
|
+
"normal",
|
|
425
|
+
"multiply",
|
|
426
|
+
"screen",
|
|
427
|
+
"overlay",
|
|
428
|
+
"darken",
|
|
429
|
+
"lighten",
|
|
430
|
+
"color-dodge",
|
|
431
|
+
"color-burn",
|
|
432
|
+
"hard-light",
|
|
433
|
+
"soft-light",
|
|
434
|
+
"difference",
|
|
435
|
+
"exclusion",
|
|
436
|
+
"hue",
|
|
437
|
+
"saturation",
|
|
438
|
+
"color",
|
|
439
|
+
"luminosity"
|
|
440
|
+
], k = () => [
|
|
441
|
+
M,
|
|
442
|
+
De,
|
|
443
|
+
Ue,
|
|
444
|
+
Re
|
|
445
|
+
], ge = () => [
|
|
446
|
+
"",
|
|
447
|
+
"none",
|
|
448
|
+
m,
|
|
449
|
+
L,
|
|
450
|
+
F
|
|
451
|
+
], _e = () => [
|
|
452
|
+
"none",
|
|
453
|
+
M,
|
|
454
|
+
L,
|
|
455
|
+
F
|
|
456
|
+
], ve = () => [
|
|
457
|
+
"none",
|
|
458
|
+
M,
|
|
459
|
+
L,
|
|
460
|
+
F
|
|
461
|
+
], ye = () => [
|
|
462
|
+
M,
|
|
463
|
+
L,
|
|
464
|
+
F
|
|
465
|
+
], be = () => [
|
|
466
|
+
j,
|
|
467
|
+
"full",
|
|
468
|
+
...x()
|
|
469
|
+
];
|
|
470
|
+
return {
|
|
471
|
+
cacheSize: 500,
|
|
472
|
+
theme: {
|
|
473
|
+
animate: [
|
|
474
|
+
"spin",
|
|
475
|
+
"ping",
|
|
476
|
+
"pulse",
|
|
477
|
+
"bounce"
|
|
478
|
+
],
|
|
479
|
+
aspect: ["video"],
|
|
480
|
+
blur: [P],
|
|
481
|
+
breakpoint: [P],
|
|
482
|
+
color: [Oe],
|
|
483
|
+
container: [P],
|
|
484
|
+
"drop-shadow": [P],
|
|
485
|
+
ease: [
|
|
486
|
+
"in",
|
|
487
|
+
"out",
|
|
488
|
+
"in-out"
|
|
489
|
+
],
|
|
490
|
+
font: [Ne],
|
|
491
|
+
"font-weight": [
|
|
492
|
+
"thin",
|
|
493
|
+
"extralight",
|
|
494
|
+
"light",
|
|
495
|
+
"normal",
|
|
496
|
+
"medium",
|
|
497
|
+
"semibold",
|
|
498
|
+
"bold",
|
|
499
|
+
"extrabold",
|
|
500
|
+
"black"
|
|
501
|
+
],
|
|
502
|
+
"inset-shadow": [P],
|
|
503
|
+
leading: [
|
|
504
|
+
"none",
|
|
505
|
+
"tight",
|
|
506
|
+
"snug",
|
|
507
|
+
"normal",
|
|
508
|
+
"relaxed",
|
|
509
|
+
"loose"
|
|
510
|
+
],
|
|
511
|
+
perspective: [
|
|
512
|
+
"dramatic",
|
|
513
|
+
"near",
|
|
514
|
+
"normal",
|
|
515
|
+
"midrange",
|
|
516
|
+
"distant",
|
|
517
|
+
"none"
|
|
518
|
+
],
|
|
519
|
+
radius: [P],
|
|
520
|
+
shadow: [P],
|
|
521
|
+
spacing: ["px", M],
|
|
522
|
+
text: [P],
|
|
523
|
+
"text-shadow": [P],
|
|
524
|
+
tracking: [
|
|
525
|
+
"tighter",
|
|
526
|
+
"tight",
|
|
527
|
+
"normal",
|
|
528
|
+
"wide",
|
|
529
|
+
"wider",
|
|
530
|
+
"widest"
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
classGroups: {
|
|
534
|
+
aspect: [{ aspect: [
|
|
535
|
+
"auto",
|
|
536
|
+
"square",
|
|
537
|
+
j,
|
|
538
|
+
F,
|
|
539
|
+
L,
|
|
540
|
+
g
|
|
541
|
+
] }],
|
|
542
|
+
container: ["container"],
|
|
543
|
+
columns: [{ columns: [
|
|
544
|
+
M,
|
|
545
|
+
F,
|
|
546
|
+
L,
|
|
547
|
+
s
|
|
548
|
+
] }],
|
|
549
|
+
"break-after": [{ "break-after": y() }],
|
|
550
|
+
"break-before": [{ "break-before": y() }],
|
|
551
|
+
"break-inside": [{ "break-inside": [
|
|
552
|
+
"auto",
|
|
553
|
+
"avoid",
|
|
554
|
+
"avoid-page",
|
|
555
|
+
"avoid-column"
|
|
556
|
+
] }],
|
|
557
|
+
"box-decoration": [{ "box-decoration": ["slice", "clone"] }],
|
|
558
|
+
box: [{ box: ["border", "content"] }],
|
|
559
|
+
display: [
|
|
560
|
+
"block",
|
|
561
|
+
"inline-block",
|
|
562
|
+
"inline",
|
|
563
|
+
"flex",
|
|
564
|
+
"inline-flex",
|
|
565
|
+
"table",
|
|
566
|
+
"inline-table",
|
|
567
|
+
"table-caption",
|
|
568
|
+
"table-cell",
|
|
569
|
+
"table-column",
|
|
570
|
+
"table-column-group",
|
|
571
|
+
"table-footer-group",
|
|
572
|
+
"table-header-group",
|
|
573
|
+
"table-row-group",
|
|
574
|
+
"table-row",
|
|
575
|
+
"flow-root",
|
|
576
|
+
"grid",
|
|
577
|
+
"inline-grid",
|
|
578
|
+
"contents",
|
|
579
|
+
"list-item",
|
|
580
|
+
"hidden"
|
|
581
|
+
],
|
|
582
|
+
sr: ["sr-only", "not-sr-only"],
|
|
583
|
+
float: [{ float: [
|
|
584
|
+
"right",
|
|
585
|
+
"left",
|
|
586
|
+
"none",
|
|
587
|
+
"start",
|
|
588
|
+
"end"
|
|
589
|
+
] }],
|
|
590
|
+
clear: [{ clear: [
|
|
591
|
+
"left",
|
|
592
|
+
"right",
|
|
593
|
+
"both",
|
|
594
|
+
"none",
|
|
595
|
+
"start",
|
|
596
|
+
"end"
|
|
597
|
+
] }],
|
|
598
|
+
isolation: ["isolate", "isolation-auto"],
|
|
599
|
+
"object-fit": [{ object: [
|
|
600
|
+
"contain",
|
|
601
|
+
"cover",
|
|
602
|
+
"fill",
|
|
603
|
+
"none",
|
|
604
|
+
"scale-down"
|
|
605
|
+
] }],
|
|
606
|
+
"object-position": [{ object: ee() }],
|
|
607
|
+
overflow: [{ overflow: te() }],
|
|
608
|
+
"overflow-x": [{ "overflow-x": te() }],
|
|
609
|
+
"overflow-y": [{ "overflow-y": te() }],
|
|
610
|
+
overscroll: [{ overscroll: ne() }],
|
|
611
|
+
"overscroll-x": [{ "overscroll-x": ne() }],
|
|
612
|
+
"overscroll-y": [{ "overscroll-y": ne() }],
|
|
613
|
+
position: [
|
|
614
|
+
"static",
|
|
615
|
+
"fixed",
|
|
616
|
+
"absolute",
|
|
617
|
+
"relative",
|
|
618
|
+
"sticky"
|
|
619
|
+
],
|
|
620
|
+
inset: [{ inset: S() }],
|
|
621
|
+
"inset-x": [{ "inset-x": S() }],
|
|
622
|
+
"inset-y": [{ "inset-y": S() }],
|
|
623
|
+
start: [{
|
|
624
|
+
"inset-s": S(),
|
|
625
|
+
start: S()
|
|
626
|
+
}],
|
|
627
|
+
end: [{
|
|
628
|
+
"inset-e": S(),
|
|
629
|
+
end: S()
|
|
630
|
+
}],
|
|
631
|
+
"inset-bs": [{ "inset-bs": S() }],
|
|
632
|
+
"inset-be": [{ "inset-be": S() }],
|
|
633
|
+
top: [{ top: S() }],
|
|
634
|
+
right: [{ right: S() }],
|
|
635
|
+
bottom: [{ bottom: S() }],
|
|
636
|
+
left: [{ left: S() }],
|
|
637
|
+
visibility: [
|
|
638
|
+
"visible",
|
|
639
|
+
"invisible",
|
|
640
|
+
"collapse"
|
|
641
|
+
],
|
|
642
|
+
z: [{ z: [
|
|
643
|
+
N,
|
|
644
|
+
"auto",
|
|
645
|
+
L,
|
|
646
|
+
F
|
|
647
|
+
] }],
|
|
648
|
+
basis: [{ basis: [
|
|
649
|
+
j,
|
|
650
|
+
"full",
|
|
651
|
+
"auto",
|
|
652
|
+
s,
|
|
653
|
+
...x()
|
|
654
|
+
] }],
|
|
655
|
+
"flex-direction": [{ flex: [
|
|
656
|
+
"row",
|
|
657
|
+
"row-reverse",
|
|
658
|
+
"col",
|
|
659
|
+
"col-reverse"
|
|
660
|
+
] }],
|
|
661
|
+
"flex-wrap": [{ flex: [
|
|
662
|
+
"nowrap",
|
|
663
|
+
"wrap",
|
|
664
|
+
"wrap-reverse"
|
|
665
|
+
] }],
|
|
666
|
+
flex: [{ flex: [
|
|
667
|
+
M,
|
|
668
|
+
j,
|
|
669
|
+
"auto",
|
|
670
|
+
"initial",
|
|
671
|
+
"none",
|
|
672
|
+
F
|
|
673
|
+
] }],
|
|
674
|
+
grow: [{ grow: [
|
|
675
|
+
"",
|
|
676
|
+
M,
|
|
677
|
+
L,
|
|
678
|
+
F
|
|
679
|
+
] }],
|
|
680
|
+
shrink: [{ shrink: [
|
|
681
|
+
"",
|
|
682
|
+
M,
|
|
683
|
+
L,
|
|
684
|
+
F
|
|
685
|
+
] }],
|
|
686
|
+
order: [{ order: [
|
|
687
|
+
N,
|
|
688
|
+
"first",
|
|
689
|
+
"last",
|
|
690
|
+
"none",
|
|
691
|
+
L,
|
|
692
|
+
F
|
|
693
|
+
] }],
|
|
694
|
+
"grid-cols": [{ "grid-cols": re() }],
|
|
695
|
+
"col-start-end": [{ col: ie() }],
|
|
696
|
+
"col-start": [{ "col-start": ae() }],
|
|
697
|
+
"col-end": [{ "col-end": ae() }],
|
|
698
|
+
"grid-rows": [{ "grid-rows": re() }],
|
|
699
|
+
"row-start-end": [{ row: ie() }],
|
|
700
|
+
"row-start": [{ "row-start": ae() }],
|
|
701
|
+
"row-end": [{ "row-end": ae() }],
|
|
702
|
+
"grid-flow": [{ "grid-flow": [
|
|
703
|
+
"row",
|
|
704
|
+
"col",
|
|
705
|
+
"dense",
|
|
706
|
+
"row-dense",
|
|
707
|
+
"col-dense"
|
|
708
|
+
] }],
|
|
709
|
+
"auto-cols": [{ "auto-cols": oe() }],
|
|
710
|
+
"auto-rows": [{ "auto-rows": oe() }],
|
|
711
|
+
gap: [{ gap: x() }],
|
|
712
|
+
"gap-x": [{ "gap-x": x() }],
|
|
713
|
+
"gap-y": [{ "gap-y": x() }],
|
|
714
|
+
"justify-content": [{ justify: [...se(), "normal"] }],
|
|
715
|
+
"justify-items": [{ "justify-items": [...C(), "normal"] }],
|
|
716
|
+
"justify-self": [{ "justify-self": ["auto", ...C()] }],
|
|
717
|
+
"align-content": [{ content: ["normal", ...se()] }],
|
|
718
|
+
"align-items": [{ items: [...C(), { baseline: ["", "last"] }] }],
|
|
719
|
+
"align-self": [{ self: [
|
|
720
|
+
"auto",
|
|
721
|
+
...C(),
|
|
722
|
+
{ baseline: ["", "last"] }
|
|
723
|
+
] }],
|
|
724
|
+
"place-content": [{ "place-content": se() }],
|
|
725
|
+
"place-items": [{ "place-items": [...C(), "baseline"] }],
|
|
726
|
+
"place-self": [{ "place-self": ["auto", ...C()] }],
|
|
727
|
+
p: [{ p: x() }],
|
|
728
|
+
px: [{ px: x() }],
|
|
729
|
+
py: [{ py: x() }],
|
|
730
|
+
ps: [{ ps: x() }],
|
|
731
|
+
pe: [{ pe: x() }],
|
|
732
|
+
pbs: [{ pbs: x() }],
|
|
733
|
+
pbe: [{ pbe: x() }],
|
|
734
|
+
pt: [{ pt: x() }],
|
|
735
|
+
pr: [{ pr: x() }],
|
|
736
|
+
pb: [{ pb: x() }],
|
|
737
|
+
pl: [{ pl: x() }],
|
|
738
|
+
m: [{ m: w() }],
|
|
739
|
+
mx: [{ mx: w() }],
|
|
740
|
+
my: [{ my: w() }],
|
|
741
|
+
ms: [{ ms: w() }],
|
|
742
|
+
me: [{ me: w() }],
|
|
743
|
+
mbs: [{ mbs: w() }],
|
|
744
|
+
mbe: [{ mbe: w() }],
|
|
745
|
+
mt: [{ mt: w() }],
|
|
746
|
+
mr: [{ mr: w() }],
|
|
747
|
+
mb: [{ mb: w() }],
|
|
748
|
+
ml: [{ ml: w() }],
|
|
749
|
+
"space-x": [{ "space-x": x() }],
|
|
750
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
751
|
+
"space-y": [{ "space-y": x() }],
|
|
752
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
753
|
+
size: [{ size: T() }],
|
|
754
|
+
"inline-size": [{ inline: ["auto", ...ce()] }],
|
|
755
|
+
"min-inline-size": [{ "min-inline": ["auto", ...ce()] }],
|
|
756
|
+
"max-inline-size": [{ "max-inline": ["none", ...ce()] }],
|
|
757
|
+
"block-size": [{ block: ["auto", ...le()] }],
|
|
758
|
+
"min-block-size": [{ "min-block": ["auto", ...le()] }],
|
|
759
|
+
"max-block-size": [{ "max-block": ["none", ...le()] }],
|
|
760
|
+
w: [{ w: [
|
|
761
|
+
s,
|
|
762
|
+
"screen",
|
|
763
|
+
...T()
|
|
764
|
+
] }],
|
|
765
|
+
"min-w": [{ "min-w": [
|
|
766
|
+
s,
|
|
767
|
+
"screen",
|
|
768
|
+
"none",
|
|
769
|
+
...T()
|
|
770
|
+
] }],
|
|
771
|
+
"max-w": [{ "max-w": [
|
|
772
|
+
s,
|
|
773
|
+
"screen",
|
|
774
|
+
"none",
|
|
775
|
+
"prose",
|
|
776
|
+
{ screen: [o] },
|
|
777
|
+
...T()
|
|
778
|
+
] }],
|
|
779
|
+
h: [{ h: [
|
|
780
|
+
"screen",
|
|
781
|
+
"lh",
|
|
782
|
+
...T()
|
|
783
|
+
] }],
|
|
784
|
+
"min-h": [{ "min-h": [
|
|
785
|
+
"screen",
|
|
786
|
+
"lh",
|
|
787
|
+
"none",
|
|
788
|
+
...T()
|
|
789
|
+
] }],
|
|
790
|
+
"max-h": [{ "max-h": [
|
|
791
|
+
"screen",
|
|
792
|
+
"lh",
|
|
793
|
+
...T()
|
|
794
|
+
] }],
|
|
795
|
+
"font-size": [{ text: [
|
|
796
|
+
"base",
|
|
797
|
+
n,
|
|
798
|
+
Ve,
|
|
799
|
+
I
|
|
800
|
+
] }],
|
|
801
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
802
|
+
"font-style": ["italic", "not-italic"],
|
|
803
|
+
"font-weight": [{ font: [
|
|
804
|
+
r,
|
|
805
|
+
qe,
|
|
806
|
+
Ie
|
|
807
|
+
] }],
|
|
808
|
+
"font-stretch": [{ "font-stretch": [
|
|
809
|
+
"ultra-condensed",
|
|
810
|
+
"extra-condensed",
|
|
811
|
+
"condensed",
|
|
812
|
+
"semi-condensed",
|
|
813
|
+
"normal",
|
|
814
|
+
"semi-expanded",
|
|
815
|
+
"expanded",
|
|
816
|
+
"extra-expanded",
|
|
817
|
+
"ultra-expanded",
|
|
818
|
+
De,
|
|
819
|
+
F
|
|
820
|
+
] }],
|
|
821
|
+
"font-family": [{ font: [
|
|
822
|
+
He,
|
|
823
|
+
Le,
|
|
824
|
+
t
|
|
825
|
+
] }],
|
|
826
|
+
"font-features": [{ "font-features": [F] }],
|
|
827
|
+
"fvn-normal": ["normal-nums"],
|
|
828
|
+
"fvn-ordinal": ["ordinal"],
|
|
829
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
830
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
831
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
832
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
833
|
+
tracking: [{ tracking: [
|
|
834
|
+
i,
|
|
835
|
+
L,
|
|
836
|
+
F
|
|
837
|
+
] }],
|
|
838
|
+
"line-clamp": [{ "line-clamp": [
|
|
839
|
+
M,
|
|
840
|
+
"none",
|
|
841
|
+
L,
|
|
842
|
+
Fe
|
|
843
|
+
] }],
|
|
844
|
+
leading: [{ leading: [a, ...x()] }],
|
|
845
|
+
"list-image": [{ "list-image": [
|
|
846
|
+
"none",
|
|
847
|
+
L,
|
|
848
|
+
F
|
|
849
|
+
] }],
|
|
850
|
+
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
851
|
+
"list-style-type": [{ list: [
|
|
852
|
+
"disc",
|
|
853
|
+
"decimal",
|
|
854
|
+
"none",
|
|
855
|
+
L,
|
|
856
|
+
F
|
|
857
|
+
] }],
|
|
858
|
+
"text-alignment": [{ text: [
|
|
859
|
+
"left",
|
|
860
|
+
"center",
|
|
861
|
+
"right",
|
|
862
|
+
"justify",
|
|
863
|
+
"start",
|
|
864
|
+
"end"
|
|
865
|
+
] }],
|
|
866
|
+
"placeholder-color": [{ placeholder: E() }],
|
|
867
|
+
"text-color": [{ text: E() }],
|
|
868
|
+
"text-decoration": [
|
|
869
|
+
"underline",
|
|
870
|
+
"overline",
|
|
871
|
+
"line-through",
|
|
872
|
+
"no-underline"
|
|
873
|
+
],
|
|
874
|
+
"text-decoration-style": [{ decoration: [...me(), "wavy"] }],
|
|
875
|
+
"text-decoration-thickness": [{ decoration: [
|
|
876
|
+
M,
|
|
877
|
+
"from-font",
|
|
878
|
+
"auto",
|
|
879
|
+
L,
|
|
880
|
+
I
|
|
881
|
+
] }],
|
|
882
|
+
"text-decoration-color": [{ decoration: E() }],
|
|
883
|
+
"underline-offset": [{ "underline-offset": [
|
|
884
|
+
M,
|
|
885
|
+
"auto",
|
|
886
|
+
L,
|
|
887
|
+
F
|
|
888
|
+
] }],
|
|
889
|
+
"text-transform": [
|
|
890
|
+
"uppercase",
|
|
891
|
+
"lowercase",
|
|
892
|
+
"capitalize",
|
|
893
|
+
"normal-case"
|
|
894
|
+
],
|
|
895
|
+
"text-overflow": [
|
|
896
|
+
"truncate",
|
|
897
|
+
"text-ellipsis",
|
|
898
|
+
"text-clip"
|
|
899
|
+
],
|
|
900
|
+
"text-wrap": [{ text: [
|
|
901
|
+
"wrap",
|
|
902
|
+
"nowrap",
|
|
903
|
+
"balance",
|
|
904
|
+
"pretty"
|
|
905
|
+
] }],
|
|
906
|
+
indent: [{ indent: x() }],
|
|
907
|
+
"vertical-align": [{ align: [
|
|
908
|
+
"baseline",
|
|
909
|
+
"top",
|
|
910
|
+
"middle",
|
|
911
|
+
"bottom",
|
|
912
|
+
"text-top",
|
|
913
|
+
"text-bottom",
|
|
914
|
+
"sub",
|
|
915
|
+
"super",
|
|
916
|
+
L,
|
|
917
|
+
F
|
|
918
|
+
] }],
|
|
919
|
+
whitespace: [{ whitespace: [
|
|
920
|
+
"normal",
|
|
921
|
+
"nowrap",
|
|
922
|
+
"pre",
|
|
923
|
+
"pre-line",
|
|
924
|
+
"pre-wrap",
|
|
925
|
+
"break-spaces"
|
|
926
|
+
] }],
|
|
927
|
+
break: [{ break: [
|
|
928
|
+
"normal",
|
|
929
|
+
"words",
|
|
930
|
+
"all",
|
|
931
|
+
"keep"
|
|
932
|
+
] }],
|
|
933
|
+
wrap: [{ wrap: [
|
|
934
|
+
"break-word",
|
|
935
|
+
"anywhere",
|
|
936
|
+
"normal"
|
|
937
|
+
] }],
|
|
938
|
+
hyphens: [{ hyphens: [
|
|
939
|
+
"none",
|
|
940
|
+
"manual",
|
|
941
|
+
"auto"
|
|
942
|
+
] }],
|
|
943
|
+
content: [{ content: [
|
|
944
|
+
"none",
|
|
945
|
+
L,
|
|
946
|
+
F
|
|
947
|
+
] }],
|
|
948
|
+
"bg-attachment": [{ bg: [
|
|
949
|
+
"fixed",
|
|
950
|
+
"local",
|
|
951
|
+
"scroll"
|
|
952
|
+
] }],
|
|
953
|
+
"bg-clip": [{ "bg-clip": [
|
|
954
|
+
"border",
|
|
955
|
+
"padding",
|
|
956
|
+
"content",
|
|
957
|
+
"text"
|
|
958
|
+
] }],
|
|
959
|
+
"bg-origin": [{ "bg-origin": [
|
|
960
|
+
"border",
|
|
961
|
+
"padding",
|
|
962
|
+
"content"
|
|
963
|
+
] }],
|
|
964
|
+
"bg-position": [{ bg: ue() }],
|
|
965
|
+
"bg-repeat": [{ bg: de() }],
|
|
966
|
+
"bg-size": [{ bg: fe() }],
|
|
967
|
+
"bg-image": [{ bg: [
|
|
968
|
+
"none",
|
|
969
|
+
{
|
|
970
|
+
linear: [
|
|
971
|
+
{ to: [
|
|
972
|
+
"t",
|
|
973
|
+
"tr",
|
|
974
|
+
"r",
|
|
975
|
+
"br",
|
|
976
|
+
"b",
|
|
977
|
+
"bl",
|
|
978
|
+
"l",
|
|
979
|
+
"tl"
|
|
980
|
+
] },
|
|
981
|
+
N,
|
|
982
|
+
L,
|
|
983
|
+
F
|
|
984
|
+
],
|
|
985
|
+
radial: [
|
|
986
|
+
"",
|
|
987
|
+
L,
|
|
988
|
+
F
|
|
989
|
+
],
|
|
990
|
+
conic: [
|
|
991
|
+
N,
|
|
992
|
+
L,
|
|
993
|
+
F
|
|
994
|
+
]
|
|
995
|
+
},
|
|
996
|
+
Ge,
|
|
997
|
+
ze
|
|
998
|
+
] }],
|
|
999
|
+
"bg-color": [{ bg: E() }],
|
|
1000
|
+
"gradient-from-pos": [{ from: pe() }],
|
|
1001
|
+
"gradient-via-pos": [{ via: pe() }],
|
|
1002
|
+
"gradient-to-pos": [{ to: pe() }],
|
|
1003
|
+
"gradient-from": [{ from: E() }],
|
|
1004
|
+
"gradient-via": [{ via: E() }],
|
|
1005
|
+
"gradient-to": [{ to: E() }],
|
|
1006
|
+
rounded: [{ rounded: D() }],
|
|
1007
|
+
"rounded-s": [{ "rounded-s": D() }],
|
|
1008
|
+
"rounded-e": [{ "rounded-e": D() }],
|
|
1009
|
+
"rounded-t": [{ "rounded-t": D() }],
|
|
1010
|
+
"rounded-r": [{ "rounded-r": D() }],
|
|
1011
|
+
"rounded-b": [{ "rounded-b": D() }],
|
|
1012
|
+
"rounded-l": [{ "rounded-l": D() }],
|
|
1013
|
+
"rounded-ss": [{ "rounded-ss": D() }],
|
|
1014
|
+
"rounded-se": [{ "rounded-se": D() }],
|
|
1015
|
+
"rounded-ee": [{ "rounded-ee": D() }],
|
|
1016
|
+
"rounded-es": [{ "rounded-es": D() }],
|
|
1017
|
+
"rounded-tl": [{ "rounded-tl": D() }],
|
|
1018
|
+
"rounded-tr": [{ "rounded-tr": D() }],
|
|
1019
|
+
"rounded-br": [{ "rounded-br": D() }],
|
|
1020
|
+
"rounded-bl": [{ "rounded-bl": D() }],
|
|
1021
|
+
"border-w": [{ border: O() }],
|
|
1022
|
+
"border-w-x": [{ "border-x": O() }],
|
|
1023
|
+
"border-w-y": [{ "border-y": O() }],
|
|
1024
|
+
"border-w-s": [{ "border-s": O() }],
|
|
1025
|
+
"border-w-e": [{ "border-e": O() }],
|
|
1026
|
+
"border-w-bs": [{ "border-bs": O() }],
|
|
1027
|
+
"border-w-be": [{ "border-be": O() }],
|
|
1028
|
+
"border-w-t": [{ "border-t": O() }],
|
|
1029
|
+
"border-w-r": [{ "border-r": O() }],
|
|
1030
|
+
"border-w-b": [{ "border-b": O() }],
|
|
1031
|
+
"border-w-l": [{ "border-l": O() }],
|
|
1032
|
+
"divide-x": [{ "divide-x": O() }],
|
|
1033
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
1034
|
+
"divide-y": [{ "divide-y": O() }],
|
|
1035
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
1036
|
+
"border-style": [{ border: [
|
|
1037
|
+
...me(),
|
|
1038
|
+
"hidden",
|
|
1039
|
+
"none"
|
|
1040
|
+
] }],
|
|
1041
|
+
"divide-style": [{ divide: [
|
|
1042
|
+
...me(),
|
|
1043
|
+
"hidden",
|
|
1044
|
+
"none"
|
|
1045
|
+
] }],
|
|
1046
|
+
"border-color": [{ border: E() }],
|
|
1047
|
+
"border-color-x": [{ "border-x": E() }],
|
|
1048
|
+
"border-color-y": [{ "border-y": E() }],
|
|
1049
|
+
"border-color-s": [{ "border-s": E() }],
|
|
1050
|
+
"border-color-e": [{ "border-e": E() }],
|
|
1051
|
+
"border-color-bs": [{ "border-bs": E() }],
|
|
1052
|
+
"border-color-be": [{ "border-be": E() }],
|
|
1053
|
+
"border-color-t": [{ "border-t": E() }],
|
|
1054
|
+
"border-color-r": [{ "border-r": E() }],
|
|
1055
|
+
"border-color-b": [{ "border-b": E() }],
|
|
1056
|
+
"border-color-l": [{ "border-l": E() }],
|
|
1057
|
+
"divide-color": [{ divide: E() }],
|
|
1058
|
+
"outline-style": [{ outline: [
|
|
1059
|
+
...me(),
|
|
1060
|
+
"none",
|
|
1061
|
+
"hidden"
|
|
1062
|
+
] }],
|
|
1063
|
+
"outline-offset": [{ "outline-offset": [
|
|
1064
|
+
M,
|
|
1065
|
+
L,
|
|
1066
|
+
F
|
|
1067
|
+
] }],
|
|
1068
|
+
"outline-w": [{ outline: [
|
|
1069
|
+
"",
|
|
1070
|
+
M,
|
|
1071
|
+
Ve,
|
|
1072
|
+
I
|
|
1073
|
+
] }],
|
|
1074
|
+
"outline-color": [{ outline: E() }],
|
|
1075
|
+
shadow: [{ shadow: [
|
|
1076
|
+
"",
|
|
1077
|
+
"none",
|
|
1078
|
+
u,
|
|
1079
|
+
Ke,
|
|
1080
|
+
Be
|
|
1081
|
+
] }],
|
|
1082
|
+
"shadow-color": [{ shadow: E() }],
|
|
1083
|
+
"inset-shadow": [{ "inset-shadow": [
|
|
1084
|
+
"none",
|
|
1085
|
+
d,
|
|
1086
|
+
Ke,
|
|
1087
|
+
Be
|
|
1088
|
+
] }],
|
|
1089
|
+
"inset-shadow-color": [{ "inset-shadow": E() }],
|
|
1090
|
+
"ring-w": [{ ring: O() }],
|
|
1091
|
+
"ring-w-inset": ["ring-inset"],
|
|
1092
|
+
"ring-color": [{ ring: E() }],
|
|
1093
|
+
"ring-offset-w": [{ "ring-offset": [M, I] }],
|
|
1094
|
+
"ring-offset-color": [{ "ring-offset": E() }],
|
|
1095
|
+
"inset-ring-w": [{ "inset-ring": O() }],
|
|
1096
|
+
"inset-ring-color": [{ "inset-ring": E() }],
|
|
1097
|
+
"text-shadow": [{ "text-shadow": [
|
|
1098
|
+
"none",
|
|
1099
|
+
f,
|
|
1100
|
+
Ke,
|
|
1101
|
+
Be
|
|
1102
|
+
] }],
|
|
1103
|
+
"text-shadow-color": [{ "text-shadow": E() }],
|
|
1104
|
+
opacity: [{ opacity: [
|
|
1105
|
+
M,
|
|
1106
|
+
L,
|
|
1107
|
+
F
|
|
1108
|
+
] }],
|
|
1109
|
+
"mix-blend": [{ "mix-blend": [
|
|
1110
|
+
...he(),
|
|
1111
|
+
"plus-darker",
|
|
1112
|
+
"plus-lighter"
|
|
1113
|
+
] }],
|
|
1114
|
+
"bg-blend": [{ "bg-blend": he() }],
|
|
1115
|
+
"mask-clip": [{ "mask-clip": [
|
|
1116
|
+
"border",
|
|
1117
|
+
"padding",
|
|
1118
|
+
"content",
|
|
1119
|
+
"fill",
|
|
1120
|
+
"stroke",
|
|
1121
|
+
"view"
|
|
1122
|
+
] }, "mask-no-clip"],
|
|
1123
|
+
"mask-composite": [{ mask: [
|
|
1124
|
+
"add",
|
|
1125
|
+
"subtract",
|
|
1126
|
+
"intersect",
|
|
1127
|
+
"exclude"
|
|
1128
|
+
] }],
|
|
1129
|
+
"mask-image-linear-pos": [{ "mask-linear": [M] }],
|
|
1130
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": k() }],
|
|
1131
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": k() }],
|
|
1132
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": E() }],
|
|
1133
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": E() }],
|
|
1134
|
+
"mask-image-t-from-pos": [{ "mask-t-from": k() }],
|
|
1135
|
+
"mask-image-t-to-pos": [{ "mask-t-to": k() }],
|
|
1136
|
+
"mask-image-t-from-color": [{ "mask-t-from": E() }],
|
|
1137
|
+
"mask-image-t-to-color": [{ "mask-t-to": E() }],
|
|
1138
|
+
"mask-image-r-from-pos": [{ "mask-r-from": k() }],
|
|
1139
|
+
"mask-image-r-to-pos": [{ "mask-r-to": k() }],
|
|
1140
|
+
"mask-image-r-from-color": [{ "mask-r-from": E() }],
|
|
1141
|
+
"mask-image-r-to-color": [{ "mask-r-to": E() }],
|
|
1142
|
+
"mask-image-b-from-pos": [{ "mask-b-from": k() }],
|
|
1143
|
+
"mask-image-b-to-pos": [{ "mask-b-to": k() }],
|
|
1144
|
+
"mask-image-b-from-color": [{ "mask-b-from": E() }],
|
|
1145
|
+
"mask-image-b-to-color": [{ "mask-b-to": E() }],
|
|
1146
|
+
"mask-image-l-from-pos": [{ "mask-l-from": k() }],
|
|
1147
|
+
"mask-image-l-to-pos": [{ "mask-l-to": k() }],
|
|
1148
|
+
"mask-image-l-from-color": [{ "mask-l-from": E() }],
|
|
1149
|
+
"mask-image-l-to-color": [{ "mask-l-to": E() }],
|
|
1150
|
+
"mask-image-x-from-pos": [{ "mask-x-from": k() }],
|
|
1151
|
+
"mask-image-x-to-pos": [{ "mask-x-to": k() }],
|
|
1152
|
+
"mask-image-x-from-color": [{ "mask-x-from": E() }],
|
|
1153
|
+
"mask-image-x-to-color": [{ "mask-x-to": E() }],
|
|
1154
|
+
"mask-image-y-from-pos": [{ "mask-y-from": k() }],
|
|
1155
|
+
"mask-image-y-to-pos": [{ "mask-y-to": k() }],
|
|
1156
|
+
"mask-image-y-from-color": [{ "mask-y-from": E() }],
|
|
1157
|
+
"mask-image-y-to-color": [{ "mask-y-to": E() }],
|
|
1158
|
+
"mask-image-radial": [{ "mask-radial": [L, F] }],
|
|
1159
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": k() }],
|
|
1160
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": k() }],
|
|
1161
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": E() }],
|
|
1162
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": E() }],
|
|
1163
|
+
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1164
|
+
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1165
|
+
closest: ["side", "corner"],
|
|
1166
|
+
farthest: ["side", "corner"]
|
|
1167
|
+
}] }],
|
|
1168
|
+
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1169
|
+
"mask-image-conic-pos": [{ "mask-conic": [M] }],
|
|
1170
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": k() }],
|
|
1171
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": k() }],
|
|
1172
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": E() }],
|
|
1173
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": E() }],
|
|
1174
|
+
"mask-mode": [{ mask: [
|
|
1175
|
+
"alpha",
|
|
1176
|
+
"luminance",
|
|
1177
|
+
"match"
|
|
1178
|
+
] }],
|
|
1179
|
+
"mask-origin": [{ "mask-origin": [
|
|
1180
|
+
"border",
|
|
1181
|
+
"padding",
|
|
1182
|
+
"content",
|
|
1183
|
+
"fill",
|
|
1184
|
+
"stroke",
|
|
1185
|
+
"view"
|
|
1186
|
+
] }],
|
|
1187
|
+
"mask-position": [{ mask: ue() }],
|
|
1188
|
+
"mask-repeat": [{ mask: de() }],
|
|
1189
|
+
"mask-size": [{ mask: fe() }],
|
|
1190
|
+
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1191
|
+
"mask-image": [{ mask: [
|
|
1192
|
+
"none",
|
|
1193
|
+
L,
|
|
1194
|
+
F
|
|
1195
|
+
] }],
|
|
1196
|
+
filter: [{ filter: [
|
|
1197
|
+
"",
|
|
1198
|
+
"none",
|
|
1199
|
+
L,
|
|
1200
|
+
F
|
|
1201
|
+
] }],
|
|
1202
|
+
blur: [{ blur: ge() }],
|
|
1203
|
+
brightness: [{ brightness: [
|
|
1204
|
+
M,
|
|
1205
|
+
L,
|
|
1206
|
+
F
|
|
1207
|
+
] }],
|
|
1208
|
+
contrast: [{ contrast: [
|
|
1209
|
+
M,
|
|
1210
|
+
L,
|
|
1211
|
+
F
|
|
1212
|
+
] }],
|
|
1213
|
+
"drop-shadow": [{ "drop-shadow": [
|
|
1214
|
+
"",
|
|
1215
|
+
"none",
|
|
1216
|
+
p,
|
|
1217
|
+
Ke,
|
|
1218
|
+
Be
|
|
1219
|
+
] }],
|
|
1220
|
+
"drop-shadow-color": [{ "drop-shadow": E() }],
|
|
1221
|
+
grayscale: [{ grayscale: [
|
|
1222
|
+
"",
|
|
1223
|
+
M,
|
|
1224
|
+
L,
|
|
1225
|
+
F
|
|
1226
|
+
] }],
|
|
1227
|
+
"hue-rotate": [{ "hue-rotate": [
|
|
1228
|
+
M,
|
|
1229
|
+
L,
|
|
1230
|
+
F
|
|
1231
|
+
] }],
|
|
1232
|
+
invert: [{ invert: [
|
|
1233
|
+
"",
|
|
1234
|
+
M,
|
|
1235
|
+
L,
|
|
1236
|
+
F
|
|
1237
|
+
] }],
|
|
1238
|
+
saturate: [{ saturate: [
|
|
1239
|
+
M,
|
|
1240
|
+
L,
|
|
1241
|
+
F
|
|
1242
|
+
] }],
|
|
1243
|
+
sepia: [{ sepia: [
|
|
1244
|
+
"",
|
|
1245
|
+
M,
|
|
1246
|
+
L,
|
|
1247
|
+
F
|
|
1248
|
+
] }],
|
|
1249
|
+
"backdrop-filter": [{ "backdrop-filter": [
|
|
1250
|
+
"",
|
|
1251
|
+
"none",
|
|
1252
|
+
L,
|
|
1253
|
+
F
|
|
1254
|
+
] }],
|
|
1255
|
+
"backdrop-blur": [{ "backdrop-blur": ge() }],
|
|
1256
|
+
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1257
|
+
M,
|
|
1258
|
+
L,
|
|
1259
|
+
F
|
|
1260
|
+
] }],
|
|
1261
|
+
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1262
|
+
M,
|
|
1263
|
+
L,
|
|
1264
|
+
F
|
|
1265
|
+
] }],
|
|
1266
|
+
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1267
|
+
"",
|
|
1268
|
+
M,
|
|
1269
|
+
L,
|
|
1270
|
+
F
|
|
1271
|
+
] }],
|
|
1272
|
+
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1273
|
+
M,
|
|
1274
|
+
L,
|
|
1275
|
+
F
|
|
1276
|
+
] }],
|
|
1277
|
+
"backdrop-invert": [{ "backdrop-invert": [
|
|
1278
|
+
"",
|
|
1279
|
+
M,
|
|
1280
|
+
L,
|
|
1281
|
+
F
|
|
1282
|
+
] }],
|
|
1283
|
+
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1284
|
+
M,
|
|
1285
|
+
L,
|
|
1286
|
+
F
|
|
1287
|
+
] }],
|
|
1288
|
+
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1289
|
+
M,
|
|
1290
|
+
L,
|
|
1291
|
+
F
|
|
1292
|
+
] }],
|
|
1293
|
+
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1294
|
+
"",
|
|
1295
|
+
M,
|
|
1296
|
+
L,
|
|
1297
|
+
F
|
|
1298
|
+
] }],
|
|
1299
|
+
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1300
|
+
"border-spacing": [{ "border-spacing": x() }],
|
|
1301
|
+
"border-spacing-x": [{ "border-spacing-x": x() }],
|
|
1302
|
+
"border-spacing-y": [{ "border-spacing-y": x() }],
|
|
1303
|
+
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
1304
|
+
caption: [{ caption: ["top", "bottom"] }],
|
|
1305
|
+
transition: [{ transition: [
|
|
1306
|
+
"",
|
|
1307
|
+
"all",
|
|
1308
|
+
"colors",
|
|
1309
|
+
"opacity",
|
|
1310
|
+
"shadow",
|
|
1311
|
+
"transform",
|
|
1312
|
+
"none",
|
|
1313
|
+
L,
|
|
1314
|
+
F
|
|
1315
|
+
] }],
|
|
1316
|
+
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1317
|
+
duration: [{ duration: [
|
|
1318
|
+
M,
|
|
1319
|
+
"initial",
|
|
1320
|
+
L,
|
|
1321
|
+
F
|
|
1322
|
+
] }],
|
|
1323
|
+
ease: [{ ease: [
|
|
1324
|
+
"linear",
|
|
1325
|
+
"initial",
|
|
1326
|
+
_,
|
|
1327
|
+
L,
|
|
1328
|
+
F
|
|
1329
|
+
] }],
|
|
1330
|
+
delay: [{ delay: [
|
|
1331
|
+
M,
|
|
1332
|
+
L,
|
|
1333
|
+
F
|
|
1334
|
+
] }],
|
|
1335
|
+
animate: [{ animate: [
|
|
1336
|
+
"none",
|
|
1337
|
+
v,
|
|
1338
|
+
L,
|
|
1339
|
+
F
|
|
1340
|
+
] }],
|
|
1341
|
+
backface: [{ backface: ["hidden", "visible"] }],
|
|
1342
|
+
perspective: [{ perspective: [
|
|
1343
|
+
h,
|
|
1344
|
+
L,
|
|
1345
|
+
F
|
|
1346
|
+
] }],
|
|
1347
|
+
"perspective-origin": [{ "perspective-origin": ee() }],
|
|
1348
|
+
rotate: [{ rotate: _e() }],
|
|
1349
|
+
"rotate-x": [{ "rotate-x": _e() }],
|
|
1350
|
+
"rotate-y": [{ "rotate-y": _e() }],
|
|
1351
|
+
"rotate-z": [{ "rotate-z": _e() }],
|
|
1352
|
+
scale: [{ scale: ve() }],
|
|
1353
|
+
"scale-x": [{ "scale-x": ve() }],
|
|
1354
|
+
"scale-y": [{ "scale-y": ve() }],
|
|
1355
|
+
"scale-z": [{ "scale-z": ve() }],
|
|
1356
|
+
"scale-3d": ["scale-3d"],
|
|
1357
|
+
skew: [{ skew: ye() }],
|
|
1358
|
+
"skew-x": [{ "skew-x": ye() }],
|
|
1359
|
+
"skew-y": [{ "skew-y": ye() }],
|
|
1360
|
+
transform: [{ transform: [
|
|
1361
|
+
L,
|
|
1362
|
+
F,
|
|
1363
|
+
"",
|
|
1364
|
+
"none",
|
|
1365
|
+
"gpu",
|
|
1366
|
+
"cpu"
|
|
1367
|
+
] }],
|
|
1368
|
+
"transform-origin": [{ origin: ee() }],
|
|
1369
|
+
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1370
|
+
translate: [{ translate: be() }],
|
|
1371
|
+
"translate-x": [{ "translate-x": be() }],
|
|
1372
|
+
"translate-y": [{ "translate-y": be() }],
|
|
1373
|
+
"translate-z": [{ "translate-z": be() }],
|
|
1374
|
+
"translate-none": ["translate-none"],
|
|
1375
|
+
accent: [{ accent: E() }],
|
|
1376
|
+
appearance: [{ appearance: ["none", "auto"] }],
|
|
1377
|
+
"caret-color": [{ caret: E() }],
|
|
1378
|
+
"color-scheme": [{ scheme: [
|
|
1379
|
+
"normal",
|
|
1380
|
+
"dark",
|
|
1381
|
+
"light",
|
|
1382
|
+
"light-dark",
|
|
1383
|
+
"only-dark",
|
|
1384
|
+
"only-light"
|
|
1385
|
+
] }],
|
|
1386
|
+
cursor: [{ cursor: [
|
|
1387
|
+
"auto",
|
|
1388
|
+
"default",
|
|
1389
|
+
"pointer",
|
|
1390
|
+
"wait",
|
|
1391
|
+
"text",
|
|
1392
|
+
"move",
|
|
1393
|
+
"help",
|
|
1394
|
+
"not-allowed",
|
|
1395
|
+
"none",
|
|
1396
|
+
"context-menu",
|
|
1397
|
+
"progress",
|
|
1398
|
+
"cell",
|
|
1399
|
+
"crosshair",
|
|
1400
|
+
"vertical-text",
|
|
1401
|
+
"alias",
|
|
1402
|
+
"copy",
|
|
1403
|
+
"no-drop",
|
|
1404
|
+
"grab",
|
|
1405
|
+
"grabbing",
|
|
1406
|
+
"all-scroll",
|
|
1407
|
+
"col-resize",
|
|
1408
|
+
"row-resize",
|
|
1409
|
+
"n-resize",
|
|
1410
|
+
"e-resize",
|
|
1411
|
+
"s-resize",
|
|
1412
|
+
"w-resize",
|
|
1413
|
+
"ne-resize",
|
|
1414
|
+
"nw-resize",
|
|
1415
|
+
"se-resize",
|
|
1416
|
+
"sw-resize",
|
|
1417
|
+
"ew-resize",
|
|
1418
|
+
"ns-resize",
|
|
1419
|
+
"nesw-resize",
|
|
1420
|
+
"nwse-resize",
|
|
1421
|
+
"zoom-in",
|
|
1422
|
+
"zoom-out",
|
|
1423
|
+
L,
|
|
1424
|
+
F
|
|
1425
|
+
] }],
|
|
1426
|
+
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1427
|
+
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
1428
|
+
resize: [{ resize: [
|
|
1429
|
+
"none",
|
|
1430
|
+
"",
|
|
1431
|
+
"y",
|
|
1432
|
+
"x"
|
|
1433
|
+
] }],
|
|
1434
|
+
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1435
|
+
"scroll-m": [{ "scroll-m": x() }],
|
|
1436
|
+
"scroll-mx": [{ "scroll-mx": x() }],
|
|
1437
|
+
"scroll-my": [{ "scroll-my": x() }],
|
|
1438
|
+
"scroll-ms": [{ "scroll-ms": x() }],
|
|
1439
|
+
"scroll-me": [{ "scroll-me": x() }],
|
|
1440
|
+
"scroll-mbs": [{ "scroll-mbs": x() }],
|
|
1441
|
+
"scroll-mbe": [{ "scroll-mbe": x() }],
|
|
1442
|
+
"scroll-mt": [{ "scroll-mt": x() }],
|
|
1443
|
+
"scroll-mr": [{ "scroll-mr": x() }],
|
|
1444
|
+
"scroll-mb": [{ "scroll-mb": x() }],
|
|
1445
|
+
"scroll-ml": [{ "scroll-ml": x() }],
|
|
1446
|
+
"scroll-p": [{ "scroll-p": x() }],
|
|
1447
|
+
"scroll-px": [{ "scroll-px": x() }],
|
|
1448
|
+
"scroll-py": [{ "scroll-py": x() }],
|
|
1449
|
+
"scroll-ps": [{ "scroll-ps": x() }],
|
|
1450
|
+
"scroll-pe": [{ "scroll-pe": x() }],
|
|
1451
|
+
"scroll-pbs": [{ "scroll-pbs": x() }],
|
|
1452
|
+
"scroll-pbe": [{ "scroll-pbe": x() }],
|
|
1453
|
+
"scroll-pt": [{ "scroll-pt": x() }],
|
|
1454
|
+
"scroll-pr": [{ "scroll-pr": x() }],
|
|
1455
|
+
"scroll-pb": [{ "scroll-pb": x() }],
|
|
1456
|
+
"scroll-pl": [{ "scroll-pl": x() }],
|
|
1457
|
+
"snap-align": [{ snap: [
|
|
1458
|
+
"start",
|
|
1459
|
+
"end",
|
|
1460
|
+
"center",
|
|
1461
|
+
"align-none"
|
|
1462
|
+
] }],
|
|
1463
|
+
"snap-stop": [{ snap: ["normal", "always"] }],
|
|
1464
|
+
"snap-type": [{ snap: [
|
|
1465
|
+
"none",
|
|
1466
|
+
"x",
|
|
1467
|
+
"y",
|
|
1468
|
+
"both"
|
|
1469
|
+
] }],
|
|
1470
|
+
"snap-strictness": [{ snap: ["mandatory", "proximity"] }],
|
|
1471
|
+
touch: [{ touch: [
|
|
1472
|
+
"auto",
|
|
1473
|
+
"none",
|
|
1474
|
+
"manipulation"
|
|
1475
|
+
] }],
|
|
1476
|
+
"touch-x": [{ "touch-pan": [
|
|
1477
|
+
"x",
|
|
1478
|
+
"left",
|
|
1479
|
+
"right"
|
|
1480
|
+
] }],
|
|
1481
|
+
"touch-y": [{ "touch-pan": [
|
|
1482
|
+
"y",
|
|
1483
|
+
"up",
|
|
1484
|
+
"down"
|
|
1485
|
+
] }],
|
|
1486
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
1487
|
+
select: [{ select: [
|
|
1488
|
+
"none",
|
|
1489
|
+
"text",
|
|
1490
|
+
"all",
|
|
1491
|
+
"auto"
|
|
1492
|
+
] }],
|
|
1493
|
+
"will-change": [{ "will-change": [
|
|
1494
|
+
"auto",
|
|
1495
|
+
"scroll",
|
|
1496
|
+
"contents",
|
|
1497
|
+
"transform",
|
|
1498
|
+
L,
|
|
1499
|
+
F
|
|
1500
|
+
] }],
|
|
1501
|
+
fill: [{ fill: ["none", ...E()] }],
|
|
1502
|
+
"stroke-w": [{ stroke: [
|
|
1503
|
+
M,
|
|
1504
|
+
Ve,
|
|
1505
|
+
I,
|
|
1506
|
+
Fe
|
|
1507
|
+
] }],
|
|
1508
|
+
stroke: [{ stroke: ["none", ...E()] }],
|
|
1509
|
+
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1510
|
+
},
|
|
1511
|
+
conflictingClassGroups: {
|
|
1512
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
1513
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
1514
|
+
inset: [
|
|
1515
|
+
"inset-x",
|
|
1516
|
+
"inset-y",
|
|
1517
|
+
"inset-bs",
|
|
1518
|
+
"inset-be",
|
|
1519
|
+
"start",
|
|
1520
|
+
"end",
|
|
1521
|
+
"top",
|
|
1522
|
+
"right",
|
|
1523
|
+
"bottom",
|
|
1524
|
+
"left"
|
|
1525
|
+
],
|
|
1526
|
+
"inset-x": ["right", "left"],
|
|
1527
|
+
"inset-y": ["top", "bottom"],
|
|
1528
|
+
flex: [
|
|
1529
|
+
"basis",
|
|
1530
|
+
"grow",
|
|
1531
|
+
"shrink"
|
|
1532
|
+
],
|
|
1533
|
+
gap: ["gap-x", "gap-y"],
|
|
1534
|
+
p: [
|
|
1535
|
+
"px",
|
|
1536
|
+
"py",
|
|
1537
|
+
"ps",
|
|
1538
|
+
"pe",
|
|
1539
|
+
"pbs",
|
|
1540
|
+
"pbe",
|
|
1541
|
+
"pt",
|
|
1542
|
+
"pr",
|
|
1543
|
+
"pb",
|
|
1544
|
+
"pl"
|
|
1545
|
+
],
|
|
1546
|
+
px: ["pr", "pl"],
|
|
1547
|
+
py: ["pt", "pb"],
|
|
1548
|
+
m: [
|
|
1549
|
+
"mx",
|
|
1550
|
+
"my",
|
|
1551
|
+
"ms",
|
|
1552
|
+
"me",
|
|
1553
|
+
"mbs",
|
|
1554
|
+
"mbe",
|
|
1555
|
+
"mt",
|
|
1556
|
+
"mr",
|
|
1557
|
+
"mb",
|
|
1558
|
+
"ml"
|
|
1559
|
+
],
|
|
1560
|
+
mx: ["mr", "ml"],
|
|
1561
|
+
my: ["mt", "mb"],
|
|
1562
|
+
size: ["w", "h"],
|
|
1563
|
+
"font-size": ["leading"],
|
|
1564
|
+
"fvn-normal": [
|
|
1565
|
+
"fvn-ordinal",
|
|
1566
|
+
"fvn-slashed-zero",
|
|
1567
|
+
"fvn-figure",
|
|
1568
|
+
"fvn-spacing",
|
|
1569
|
+
"fvn-fraction"
|
|
1570
|
+
],
|
|
1571
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
1572
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
1573
|
+
"fvn-figure": ["fvn-normal"],
|
|
1574
|
+
"fvn-spacing": ["fvn-normal"],
|
|
1575
|
+
"fvn-fraction": ["fvn-normal"],
|
|
1576
|
+
"line-clamp": ["display", "overflow"],
|
|
1577
|
+
rounded: [
|
|
1578
|
+
"rounded-s",
|
|
1579
|
+
"rounded-e",
|
|
1580
|
+
"rounded-t",
|
|
1581
|
+
"rounded-r",
|
|
1582
|
+
"rounded-b",
|
|
1583
|
+
"rounded-l",
|
|
1584
|
+
"rounded-ss",
|
|
1585
|
+
"rounded-se",
|
|
1586
|
+
"rounded-ee",
|
|
1587
|
+
"rounded-es",
|
|
1588
|
+
"rounded-tl",
|
|
1589
|
+
"rounded-tr",
|
|
1590
|
+
"rounded-br",
|
|
1591
|
+
"rounded-bl"
|
|
1592
|
+
],
|
|
1593
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
1594
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
1595
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
1596
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
1597
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
1598
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
1599
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
1600
|
+
"border-w": [
|
|
1601
|
+
"border-w-x",
|
|
1602
|
+
"border-w-y",
|
|
1603
|
+
"border-w-s",
|
|
1604
|
+
"border-w-e",
|
|
1605
|
+
"border-w-bs",
|
|
1606
|
+
"border-w-be",
|
|
1607
|
+
"border-w-t",
|
|
1608
|
+
"border-w-r",
|
|
1609
|
+
"border-w-b",
|
|
1610
|
+
"border-w-l"
|
|
1611
|
+
],
|
|
1612
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
1613
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
1614
|
+
"border-color": [
|
|
1615
|
+
"border-color-x",
|
|
1616
|
+
"border-color-y",
|
|
1617
|
+
"border-color-s",
|
|
1618
|
+
"border-color-e",
|
|
1619
|
+
"border-color-bs",
|
|
1620
|
+
"border-color-be",
|
|
1621
|
+
"border-color-t",
|
|
1622
|
+
"border-color-r",
|
|
1623
|
+
"border-color-b",
|
|
1624
|
+
"border-color-l"
|
|
1625
|
+
],
|
|
1626
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
1627
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
1628
|
+
translate: [
|
|
1629
|
+
"translate-x",
|
|
1630
|
+
"translate-y",
|
|
1631
|
+
"translate-none"
|
|
1632
|
+
],
|
|
1633
|
+
"translate-none": [
|
|
1634
|
+
"translate",
|
|
1635
|
+
"translate-x",
|
|
1636
|
+
"translate-y",
|
|
1637
|
+
"translate-z"
|
|
1638
|
+
],
|
|
1639
|
+
"scroll-m": [
|
|
1640
|
+
"scroll-mx",
|
|
1641
|
+
"scroll-my",
|
|
1642
|
+
"scroll-ms",
|
|
1643
|
+
"scroll-me",
|
|
1644
|
+
"scroll-mbs",
|
|
1645
|
+
"scroll-mbe",
|
|
1646
|
+
"scroll-mt",
|
|
1647
|
+
"scroll-mr",
|
|
1648
|
+
"scroll-mb",
|
|
1649
|
+
"scroll-ml"
|
|
1650
|
+
],
|
|
1651
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
1652
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
1653
|
+
"scroll-p": [
|
|
1654
|
+
"scroll-px",
|
|
1655
|
+
"scroll-py",
|
|
1656
|
+
"scroll-ps",
|
|
1657
|
+
"scroll-pe",
|
|
1658
|
+
"scroll-pbs",
|
|
1659
|
+
"scroll-pbe",
|
|
1660
|
+
"scroll-pt",
|
|
1661
|
+
"scroll-pr",
|
|
1662
|
+
"scroll-pb",
|
|
1663
|
+
"scroll-pl"
|
|
1664
|
+
],
|
|
1665
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
1666
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
1667
|
+
touch: [
|
|
1668
|
+
"touch-x",
|
|
1669
|
+
"touch-y",
|
|
1670
|
+
"touch-pz"
|
|
1671
|
+
],
|
|
1672
|
+
"touch-x": ["touch"],
|
|
1673
|
+
"touch-y": ["touch"],
|
|
1674
|
+
"touch-pz": ["touch"]
|
|
1675
|
+
},
|
|
1676
|
+
conflictingClassGroupModifiers: { "font-size": ["leading"] },
|
|
1677
|
+
orderSensitiveModifiers: [
|
|
1678
|
+
"*",
|
|
1679
|
+
"**",
|
|
1680
|
+
"after",
|
|
1681
|
+
"backdrop",
|
|
1682
|
+
"before",
|
|
1683
|
+
"details-content",
|
|
1684
|
+
"file",
|
|
1685
|
+
"first-letter",
|
|
1686
|
+
"first-line",
|
|
1687
|
+
"marker",
|
|
1688
|
+
"placeholder",
|
|
1689
|
+
"selection"
|
|
1690
|
+
]
|
|
1691
|
+
};
|
|
1692
|
+
});
|
|
1693
|
+
//#endregion
|
|
1694
|
+
//#region ../../../node_modules/.pnpm/redux@5.0.1/node_modules/redux/dist/redux.mjs
|
|
1695
|
+
function z(e) {
|
|
1696
|
+
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. `;
|
|
1697
|
+
}
|
|
1698
|
+
var it = typeof Symbol == "function" && Symbol.observable || "@@observable", at = () => Math.random().toString(36).substring(7).split("").join("."), ot = {
|
|
1699
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ at()}`,
|
|
1700
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ at()}`,
|
|
1701
|
+
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${at()}`
|
|
1702
|
+
};
|
|
1703
|
+
function st(e) {
|
|
1704
|
+
if (typeof e != "object" || !e) return !1;
|
|
1705
|
+
let t = e;
|
|
1706
|
+
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
1707
|
+
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
1708
|
+
}
|
|
1709
|
+
function ct(e, t, n) {
|
|
1710
|
+
if (typeof e != "function") throw Error(z(2));
|
|
1711
|
+
if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(z(0));
|
|
1712
|
+
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
|
|
1713
|
+
if (typeof n != "function") throw Error(z(1));
|
|
1714
|
+
return n(ct)(e, t);
|
|
1715
|
+
}
|
|
1716
|
+
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
|
|
1717
|
+
function l() {
|
|
1718
|
+
o === a && (o = /* @__PURE__ */ new Map(), a.forEach((e, t) => {
|
|
1719
|
+
o.set(t, e);
|
|
1720
|
+
}));
|
|
1721
|
+
}
|
|
1722
|
+
function u() {
|
|
1723
|
+
if (c) throw Error(z(3));
|
|
1724
|
+
return i;
|
|
1725
|
+
}
|
|
1726
|
+
function d(e) {
|
|
1727
|
+
if (typeof e != "function") throw Error(z(4));
|
|
1728
|
+
if (c) throw Error(z(5));
|
|
1729
|
+
let t = !0;
|
|
1730
|
+
l();
|
|
1731
|
+
let n = s++;
|
|
1732
|
+
return o.set(n, e), function() {
|
|
1733
|
+
if (t) {
|
|
1734
|
+
if (c) throw Error(z(6));
|
|
1735
|
+
t = !1, l(), o.delete(n), a = null;
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1739
|
+
function f(e) {
|
|
1740
|
+
if (!st(e)) throw Error(z(7));
|
|
1741
|
+
if (e.type === void 0) throw Error(z(8));
|
|
1742
|
+
if (typeof e.type != "string") throw Error(z(17));
|
|
1743
|
+
if (c) throw Error(z(9));
|
|
1744
|
+
try {
|
|
1745
|
+
c = !0, i = r(i, e);
|
|
1746
|
+
} finally {
|
|
1747
|
+
c = !1;
|
|
1748
|
+
}
|
|
1749
|
+
return (a = o).forEach((e) => {
|
|
1750
|
+
e();
|
|
1751
|
+
}), e;
|
|
1752
|
+
}
|
|
1753
|
+
function p(e) {
|
|
1754
|
+
if (typeof e != "function") throw Error(z(10));
|
|
1755
|
+
r = e, f({ type: ot.REPLACE });
|
|
1756
|
+
}
|
|
1757
|
+
function m() {
|
|
1758
|
+
let e = d;
|
|
1759
|
+
return {
|
|
1760
|
+
subscribe(t) {
|
|
1761
|
+
if (typeof t != "object" || !t) throw Error(z(11));
|
|
1762
|
+
function n() {
|
|
1763
|
+
let e = t;
|
|
1764
|
+
e.next && e.next(u());
|
|
1765
|
+
}
|
|
1766
|
+
return n(), { unsubscribe: e(n) };
|
|
1767
|
+
},
|
|
1768
|
+
[it]() {
|
|
1769
|
+
return this;
|
|
1770
|
+
}
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
1773
|
+
return f({ type: ot.INIT }), {
|
|
1774
|
+
dispatch: f,
|
|
1775
|
+
subscribe: d,
|
|
1776
|
+
getState: u,
|
|
1777
|
+
replaceReducer: p,
|
|
1778
|
+
[it]: m
|
|
1779
|
+
};
|
|
1780
|
+
}
|
|
1781
|
+
function lt(e) {
|
|
1782
|
+
Object.keys(e).forEach((t) => {
|
|
1783
|
+
let n = e[t];
|
|
1784
|
+
if (n(void 0, { type: ot.INIT }) === void 0) throw Error(z(12));
|
|
1785
|
+
if (n(void 0, { type: ot.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(z(13));
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
function ut(e) {
|
|
1789
|
+
let t = Object.keys(e), n = {};
|
|
1790
|
+
for (let r = 0; r < t.length; r++) {
|
|
1791
|
+
let i = t[r];
|
|
1792
|
+
typeof e[i] == "function" && (n[i] = e[i]);
|
|
1793
|
+
}
|
|
1794
|
+
let r = Object.keys(n), i;
|
|
1795
|
+
try {
|
|
1796
|
+
lt(n);
|
|
1797
|
+
} catch (e) {
|
|
1798
|
+
i = e;
|
|
1799
|
+
}
|
|
1800
|
+
return function(e = {}, t) {
|
|
1801
|
+
if (i) throw i;
|
|
1802
|
+
let a = !1, o = {};
|
|
1803
|
+
for (let i = 0; i < r.length; i++) {
|
|
1804
|
+
let s = r[i], c = n[s], l = e[s], u = c(l, t);
|
|
1805
|
+
if (u === void 0) throw t && t.type, Error(z(14));
|
|
1806
|
+
o[s] = u, a ||= u !== l;
|
|
1807
|
+
}
|
|
1808
|
+
return a ||= r.length !== Object.keys(e).length, a ? o : e;
|
|
1809
|
+
};
|
|
1810
|
+
}
|
|
1811
|
+
function dt(...e) {
|
|
1812
|
+
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
|
|
1813
|
+
}
|
|
1814
|
+
function ft(...e) {
|
|
1815
|
+
return (t) => (n, r) => {
|
|
1816
|
+
let i = t(n, r), a = () => {
|
|
1817
|
+
throw Error(z(15));
|
|
1818
|
+
}, o = {
|
|
1819
|
+
getState: i.getState,
|
|
1820
|
+
dispatch: (e, ...t) => a(e, ...t)
|
|
1821
|
+
};
|
|
1822
|
+
return a = dt(...e.map((e) => e(o)))(i.dispatch), {
|
|
1823
|
+
...i,
|
|
1824
|
+
dispatch: a
|
|
1825
|
+
};
|
|
1826
|
+
};
|
|
1827
|
+
}
|
|
1828
|
+
function pt(e) {
|
|
1829
|
+
return st(e) && "type" in e && typeof e.type == "string";
|
|
1830
|
+
}
|
|
1831
|
+
//#endregion
|
|
1832
|
+
//#region ../../../node_modules/.pnpm/immer@11.1.4/node_modules/immer/dist/immer.mjs
|
|
1833
|
+
var mt = Symbol.for("immer-nothing"), ht = Symbol.for("immer-draftable"), B = Symbol.for("immer-state");
|
|
1834
|
+
function V(e, ...t) {
|
|
1835
|
+
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
1836
|
+
}
|
|
1837
|
+
var H = Object, gt = H.getPrototypeOf, _t = "constructor", vt = "prototype", yt = "configurable", bt = "enumerable", xt = "writable", St = "value", U = (e) => !!e && !!e[B];
|
|
1838
|
+
function W(e) {
|
|
1839
|
+
return e ? Tt(e) || Mt(e) || !!e[ht] || !!e[_t]?.[ht] || Nt(e) || Pt(e) : !1;
|
|
1840
|
+
}
|
|
1841
|
+
var Ct = H[vt][_t].toString(), wt = /* @__PURE__ */ new WeakMap();
|
|
1842
|
+
function Tt(e) {
|
|
1843
|
+
if (!e || !Ft(e)) return !1;
|
|
1844
|
+
let t = gt(e);
|
|
1845
|
+
if (t === null || t === H[vt]) return !0;
|
|
1846
|
+
let n = H.hasOwnProperty.call(t, _t) && t[_t];
|
|
1847
|
+
if (n === Object) return !0;
|
|
1848
|
+
if (!It(n)) return !1;
|
|
1849
|
+
let r = wt.get(n);
|
|
1850
|
+
return r === void 0 && (r = Function.toString.call(n), wt.set(n, r)), r === Ct;
|
|
1851
|
+
}
|
|
1852
|
+
function Et(e, t, n = !0) {
|
|
1853
|
+
Dt(e) === 0 ? (n ? Reflect.ownKeys(e) : H.keys(e)).forEach((n) => {
|
|
1854
|
+
t(n, e[n], e);
|
|
1855
|
+
}) : e.forEach((n, r) => t(r, n, e));
|
|
1856
|
+
}
|
|
1857
|
+
function Dt(e) {
|
|
1858
|
+
let t = e[B];
|
|
1859
|
+
return t ? t.type_ : Mt(e) ? 1 : Nt(e) ? 2 : Pt(e) ? 3 : 0;
|
|
1860
|
+
}
|
|
1861
|
+
var Ot = (e, t, n = Dt(e)) => n === 2 ? e.has(t) : H[vt].hasOwnProperty.call(e, t), kt = (e, t, n = Dt(e)) => n === 2 ? e.get(t) : e[t], At = (e, t, n, r = Dt(e)) => {
|
|
1862
|
+
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
1863
|
+
};
|
|
1864
|
+
function jt(e, t) {
|
|
1865
|
+
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
1866
|
+
}
|
|
1867
|
+
var Mt = Array.isArray, Nt = (e) => e instanceof Map, Pt = (e) => e instanceof Set, Ft = (e) => typeof e == "object", It = (e) => typeof e == "function", Lt = (e) => typeof e == "boolean";
|
|
1868
|
+
function Rt(e) {
|
|
1869
|
+
let t = +e;
|
|
1870
|
+
return Number.isInteger(t) && String(t) === e;
|
|
1871
|
+
}
|
|
1872
|
+
var G = (e) => e.copy_ || e.base_, zt = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
1873
|
+
function Bt(e, t) {
|
|
1874
|
+
if (Nt(e)) return new Map(e);
|
|
1875
|
+
if (Pt(e)) return new Set(e);
|
|
1876
|
+
if (Mt(e)) return Array[vt].slice.call(e);
|
|
1877
|
+
let n = Tt(e);
|
|
1878
|
+
if (t === !0 || t === "class_only" && !n) {
|
|
1879
|
+
let t = H.getOwnPropertyDescriptors(e);
|
|
1880
|
+
delete t[B];
|
|
1881
|
+
let n = Reflect.ownKeys(t);
|
|
1882
|
+
for (let r = 0; r < n.length; r++) {
|
|
1883
|
+
let i = n[r], a = t[i];
|
|
1884
|
+
a[xt] === !1 && (a[xt] = !0, a[yt] = !0), (a.get || a.set) && (t[i] = {
|
|
1885
|
+
[yt]: !0,
|
|
1886
|
+
[xt]: !0,
|
|
1887
|
+
[bt]: a[bt],
|
|
1888
|
+
[St]: e[i]
|
|
1889
|
+
});
|
|
1890
|
+
}
|
|
1891
|
+
return H.create(gt(e), t);
|
|
1892
|
+
} else {
|
|
1893
|
+
let t = gt(e);
|
|
1894
|
+
if (t !== null && n) return { ...e };
|
|
1895
|
+
let r = H.create(t);
|
|
1896
|
+
return H.assign(r, e);
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
function Vt(e, t = !1) {
|
|
1900
|
+
return Wt(e) || U(e) || !W(e) ? e : (Dt(e) > 1 && H.defineProperties(e, {
|
|
1901
|
+
set: Ut,
|
|
1902
|
+
add: Ut,
|
|
1903
|
+
clear: Ut,
|
|
1904
|
+
delete: Ut
|
|
1905
|
+
}), H.freeze(e), t && Et(e, (e, t) => {
|
|
1906
|
+
Vt(t, !0);
|
|
1907
|
+
}, !1), e);
|
|
1908
|
+
}
|
|
1909
|
+
function Ht() {
|
|
1910
|
+
V(2);
|
|
1911
|
+
}
|
|
1912
|
+
var Ut = { [St]: Ht };
|
|
1913
|
+
function Wt(e) {
|
|
1914
|
+
return e === null || !Ft(e) ? !0 : H.isFrozen(e);
|
|
1915
|
+
}
|
|
1916
|
+
var Gt = "MapSet", Kt = "Patches", qt = "ArrayMethods", Jt = {};
|
|
1917
|
+
function Yt(e) {
|
|
1918
|
+
let t = Jt[e];
|
|
1919
|
+
return t || V(0, e), t;
|
|
1920
|
+
}
|
|
1921
|
+
var Xt = (e) => !!Jt[e], Zt, Qt = () => Zt, $t = (e, t) => ({
|
|
1922
|
+
drafts_: [],
|
|
1923
|
+
parent_: e,
|
|
1924
|
+
immer_: t,
|
|
1925
|
+
canAutoFreeze_: !0,
|
|
1926
|
+
unfinalizedDrafts_: 0,
|
|
1927
|
+
handledSet_: /* @__PURE__ */ new Set(),
|
|
1928
|
+
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
1929
|
+
mapSetPlugin_: Xt(Gt) ? Yt(Gt) : void 0,
|
|
1930
|
+
arrayMethodsPlugin_: Xt(qt) ? Yt(qt) : void 0
|
|
1931
|
+
});
|
|
1932
|
+
function en(e, t) {
|
|
1933
|
+
t && (e.patchPlugin_ = Yt(Kt), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
1934
|
+
}
|
|
1935
|
+
function tn(e) {
|
|
1936
|
+
nn(e), e.drafts_.forEach(an), e.drafts_ = null;
|
|
1937
|
+
}
|
|
1938
|
+
function nn(e) {
|
|
1939
|
+
e === Zt && (Zt = e.parent_);
|
|
1940
|
+
}
|
|
1941
|
+
var rn = (e) => Zt = $t(Zt, e);
|
|
1942
|
+
function an(e) {
|
|
1943
|
+
let t = e[B];
|
|
1944
|
+
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
1945
|
+
}
|
|
1946
|
+
function on(e, t) {
|
|
1947
|
+
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
1948
|
+
let n = t.drafts_[0];
|
|
1949
|
+
if (e !== void 0 && e !== n) {
|
|
1950
|
+
n[B].modified_ && (tn(t), V(4)), W(e) && (e = sn(t, e));
|
|
1951
|
+
let { patchPlugin_: r } = t;
|
|
1952
|
+
r && r.generateReplacementPatches_(n[B].base_, e, t);
|
|
1953
|
+
} else e = sn(t, n);
|
|
1954
|
+
return cn(t, e, !0), tn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mt ? void 0 : e;
|
|
1955
|
+
}
|
|
1956
|
+
function sn(e, t) {
|
|
1957
|
+
if (Wt(t)) return t;
|
|
1958
|
+
let n = t[B];
|
|
1959
|
+
if (!n) return gn(t, e.handledSet_, e);
|
|
1960
|
+
if (!un(n, e)) return t;
|
|
1961
|
+
if (!n.modified_) return n.base_;
|
|
1962
|
+
if (!n.finalized_) {
|
|
1963
|
+
let { callbacks_: t } = n;
|
|
1964
|
+
if (t) for (; t.length > 0;) t.pop()(e);
|
|
1965
|
+
mn(n, e);
|
|
1966
|
+
}
|
|
1967
|
+
return n.copy_;
|
|
1968
|
+
}
|
|
1969
|
+
function cn(e, t, n = !1) {
|
|
1970
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Vt(t, n);
|
|
1971
|
+
}
|
|
1972
|
+
function ln(e) {
|
|
1973
|
+
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
1974
|
+
}
|
|
1975
|
+
var un = (e, t) => e.scope_ === t, dn = [];
|
|
1976
|
+
function fn(e, t, n, r) {
|
|
1977
|
+
let i = G(e), a = e.type_;
|
|
1978
|
+
if (r !== void 0 && kt(i, r, a) === t) {
|
|
1979
|
+
At(i, r, n, a);
|
|
1980
|
+
return;
|
|
1981
|
+
}
|
|
1982
|
+
if (!e.draftLocations_) {
|
|
1983
|
+
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
1984
|
+
Et(i, (e, n) => {
|
|
1985
|
+
if (U(n)) {
|
|
1986
|
+
let r = t.get(n) || [];
|
|
1987
|
+
r.push(e), t.set(n, r);
|
|
1988
|
+
}
|
|
1989
|
+
});
|
|
1990
|
+
}
|
|
1991
|
+
let o = e.draftLocations_.get(t) ?? dn;
|
|
1992
|
+
for (let e of o) At(i, e, n, a);
|
|
1993
|
+
}
|
|
1994
|
+
function pn(e, t, n) {
|
|
1995
|
+
e.callbacks_.push(function(r) {
|
|
1996
|
+
let i = t;
|
|
1997
|
+
if (!i || !un(i, r)) return;
|
|
1998
|
+
r.mapSetPlugin_?.fixSetContents(i);
|
|
1999
|
+
let a = zt(i);
|
|
2000
|
+
fn(e, i.draft_ ?? i, a, n), mn(i, r);
|
|
2001
|
+
});
|
|
2002
|
+
}
|
|
2003
|
+
function mn(e, t) {
|
|
2004
|
+
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
|
|
2005
|
+
let { patchPlugin_: n } = t;
|
|
2006
|
+
if (n) {
|
|
2007
|
+
let r = n.getPath(e);
|
|
2008
|
+
r && n.generatePatches_(e, r, t);
|
|
2009
|
+
}
|
|
2010
|
+
ln(e);
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
function hn(e, t, n) {
|
|
2014
|
+
let { scope_: r } = e;
|
|
2015
|
+
if (U(n)) {
|
|
2016
|
+
let i = n[B];
|
|
2017
|
+
un(i, r) && i.callbacks_.push(function() {
|
|
2018
|
+
wn(e), fn(e, n, zt(i), t);
|
|
2019
|
+
});
|
|
2020
|
+
} else W(n) && e.callbacks_.push(function() {
|
|
2021
|
+
let i = G(e);
|
|
2022
|
+
e.type_ === 3 ? i.has(n) && gn(n, r.handledSet_, r) : kt(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && gn(kt(e.copy_, t, e.type_), r.handledSet_, r);
|
|
2023
|
+
});
|
|
2024
|
+
}
|
|
2025
|
+
function gn(e, t, n) {
|
|
2026
|
+
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || U(e) || t.has(e) || !W(e) || Wt(e) ? e : (t.add(e), Et(e, (r, i) => {
|
|
2027
|
+
if (U(i)) {
|
|
2028
|
+
let t = i[B];
|
|
2029
|
+
un(t, n) && (At(e, r, zt(t), e.type_), ln(t));
|
|
2030
|
+
} else W(i) && gn(i, t, n);
|
|
2031
|
+
}), e);
|
|
2032
|
+
}
|
|
2033
|
+
function _n(e, t) {
|
|
2034
|
+
let n = Mt(e), r = {
|
|
2035
|
+
type_: n ? 1 : 0,
|
|
2036
|
+
scope_: t ? t.scope_ : Qt(),
|
|
2037
|
+
modified_: !1,
|
|
2038
|
+
finalized_: !1,
|
|
2039
|
+
assigned_: void 0,
|
|
2040
|
+
parent_: t,
|
|
2041
|
+
base_: e,
|
|
2042
|
+
draft_: null,
|
|
2043
|
+
copy_: null,
|
|
2044
|
+
revoke_: null,
|
|
2045
|
+
isManual_: !1,
|
|
2046
|
+
callbacks_: void 0
|
|
2047
|
+
}, i = r, a = vn;
|
|
2048
|
+
n && (i = [r], a = yn);
|
|
2049
|
+
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
|
|
2050
|
+
return r.draft_ = s, r.revoke_ = o, [s, r];
|
|
2051
|
+
}
|
|
2052
|
+
var vn = {
|
|
2053
|
+
get(e, t) {
|
|
2054
|
+
if (t === B) return e;
|
|
2055
|
+
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
|
|
2056
|
+
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
|
|
2057
|
+
let i = G(e);
|
|
2058
|
+
if (!Ot(i, t, e.type_)) return xn(e, i, t);
|
|
2059
|
+
let a = i[t];
|
|
2060
|
+
if (e.finalized_ || !W(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Rt(t)) return a;
|
|
2061
|
+
if (a === bn(e.base_, t)) {
|
|
2062
|
+
wn(e);
|
|
2063
|
+
let n = e.type_ === 1 ? +t : t, r = En(e.scope_, a, e, n);
|
|
2064
|
+
return e.copy_[n] = r;
|
|
2065
|
+
}
|
|
2066
|
+
return a;
|
|
2067
|
+
},
|
|
2068
|
+
has(e, t) {
|
|
2069
|
+
return t in G(e);
|
|
2070
|
+
},
|
|
2071
|
+
ownKeys(e) {
|
|
2072
|
+
return Reflect.ownKeys(G(e));
|
|
2073
|
+
},
|
|
2074
|
+
set(e, t, n) {
|
|
2075
|
+
let r = Sn(G(e), t);
|
|
2076
|
+
if (r?.set) return r.set.call(e.draft_, n), !0;
|
|
2077
|
+
if (!e.modified_) {
|
|
2078
|
+
let r = bn(G(e), t), i = r?.[B];
|
|
2079
|
+
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
|
|
2080
|
+
if (jt(n, r) && (n !== void 0 || Ot(e.base_, t, e.type_))) return !0;
|
|
2081
|
+
wn(e), Cn(e);
|
|
2082
|
+
}
|
|
2083
|
+
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), hn(e, t, n), !0);
|
|
2084
|
+
},
|
|
2085
|
+
deleteProperty(e, t) {
|
|
2086
|
+
return wn(e), bn(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Cn(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
2087
|
+
},
|
|
2088
|
+
getOwnPropertyDescriptor(e, t) {
|
|
2089
|
+
let n = G(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
2090
|
+
return r && {
|
|
2091
|
+
[xt]: !0,
|
|
2092
|
+
[yt]: e.type_ !== 1 || t !== "length",
|
|
2093
|
+
[bt]: r[bt],
|
|
2094
|
+
[St]: n[t]
|
|
2095
|
+
};
|
|
2096
|
+
},
|
|
2097
|
+
defineProperty() {
|
|
2098
|
+
V(11);
|
|
2099
|
+
},
|
|
2100
|
+
getPrototypeOf(e) {
|
|
2101
|
+
return gt(e.base_);
|
|
2102
|
+
},
|
|
2103
|
+
setPrototypeOf() {
|
|
2104
|
+
V(12);
|
|
2105
|
+
}
|
|
2106
|
+
}, yn = {};
|
|
2107
|
+
for (let e in vn) {
|
|
2108
|
+
let t = vn[e];
|
|
2109
|
+
yn[e] = function() {
|
|
2110
|
+
let e = arguments;
|
|
2111
|
+
return e[0] = e[0][0], t.apply(this, e);
|
|
2112
|
+
};
|
|
2113
|
+
}
|
|
2114
|
+
yn.deleteProperty = function(e, t) {
|
|
2115
|
+
return yn.set.call(this, e, t, void 0);
|
|
2116
|
+
}, yn.set = function(e, t, n) {
|
|
2117
|
+
return vn.set.call(this, e[0], t, n, e[0]);
|
|
2118
|
+
};
|
|
2119
|
+
function bn(e, t) {
|
|
2120
|
+
let n = e[B];
|
|
2121
|
+
return (n ? G(n) : e)[t];
|
|
2122
|
+
}
|
|
2123
|
+
function xn(e, t, n) {
|
|
2124
|
+
let r = Sn(t, n);
|
|
2125
|
+
return r ? St in r ? r[St] : r.get?.call(e.draft_) : void 0;
|
|
2126
|
+
}
|
|
2127
|
+
function Sn(e, t) {
|
|
2128
|
+
if (!(t in e)) return;
|
|
2129
|
+
let n = gt(e);
|
|
2130
|
+
for (; n;) {
|
|
2131
|
+
let e = Object.getOwnPropertyDescriptor(n, t);
|
|
2132
|
+
if (e) return e;
|
|
2133
|
+
n = gt(n);
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
function Cn(e) {
|
|
2137
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && Cn(e.parent_));
|
|
2138
|
+
}
|
|
2139
|
+
function wn(e) {
|
|
2140
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Bt(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
2141
|
+
}
|
|
2142
|
+
var Tn = class {
|
|
2143
|
+
constructor(e) {
|
|
2144
|
+
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
2145
|
+
if (It(e) && !It(t)) {
|
|
2146
|
+
let n = t;
|
|
2147
|
+
t = e;
|
|
2148
|
+
let r = this;
|
|
2149
|
+
return function(e = n, ...i) {
|
|
2150
|
+
return r.produce(e, (e) => t.call(this, e, ...i));
|
|
2151
|
+
};
|
|
2152
|
+
}
|
|
2153
|
+
It(t) || V(6), n !== void 0 && !It(n) && V(7);
|
|
2154
|
+
let r;
|
|
2155
|
+
if (W(e)) {
|
|
2156
|
+
let i = rn(this), a = En(i, e, void 0), o = !0;
|
|
2157
|
+
try {
|
|
2158
|
+
r = t(a), o = !1;
|
|
2159
|
+
} finally {
|
|
2160
|
+
o ? tn(i) : nn(i);
|
|
2161
|
+
}
|
|
2162
|
+
return en(i, n), on(r, i);
|
|
2163
|
+
} else if (!e || !Ft(e)) {
|
|
2164
|
+
if (r = t(e), r === void 0 && (r = e), r === mt && (r = void 0), this.autoFreeze_ && Vt(r, !0), n) {
|
|
2165
|
+
let t = [], i = [];
|
|
2166
|
+
Yt(Kt).generateReplacementPatches_(e, r, {
|
|
2167
|
+
patches_: t,
|
|
2168
|
+
inversePatches_: i
|
|
2169
|
+
}), n(t, i);
|
|
2170
|
+
}
|
|
2171
|
+
return r;
|
|
2172
|
+
} else V(1, e);
|
|
2173
|
+
}, this.produceWithPatches = (e, t) => {
|
|
2174
|
+
if (It(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
|
|
2175
|
+
let n, r;
|
|
2176
|
+
return [
|
|
2177
|
+
this.produce(e, t, (e, t) => {
|
|
2178
|
+
n = e, r = t;
|
|
2179
|
+
}),
|
|
2180
|
+
n,
|
|
2181
|
+
r
|
|
2182
|
+
];
|
|
2183
|
+
}, Lt(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Lt(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Lt(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
2184
|
+
}
|
|
2185
|
+
createDraft(e) {
|
|
2186
|
+
W(e) || V(8), U(e) && (e = Dn(e));
|
|
2187
|
+
let t = rn(this), n = En(t, e, void 0);
|
|
2188
|
+
return n[B].isManual_ = !0, nn(t), n;
|
|
2189
|
+
}
|
|
2190
|
+
finishDraft(e, t) {
|
|
2191
|
+
let n = e && e[B];
|
|
2192
|
+
(!n || !n.isManual_) && V(9);
|
|
2193
|
+
let { scope_: r } = n;
|
|
2194
|
+
return en(r, t), on(void 0, r);
|
|
2195
|
+
}
|
|
2196
|
+
setAutoFreeze(e) {
|
|
2197
|
+
this.autoFreeze_ = e;
|
|
2198
|
+
}
|
|
2199
|
+
setUseStrictShallowCopy(e) {
|
|
2200
|
+
this.useStrictShallowCopy_ = e;
|
|
2201
|
+
}
|
|
2202
|
+
setUseStrictIteration(e) {
|
|
2203
|
+
this.useStrictIteration_ = e;
|
|
2204
|
+
}
|
|
2205
|
+
shouldUseStrictIteration() {
|
|
2206
|
+
return this.useStrictIteration_;
|
|
2207
|
+
}
|
|
2208
|
+
applyPatches(e, t) {
|
|
2209
|
+
let n;
|
|
2210
|
+
for (n = t.length - 1; n >= 0; n--) {
|
|
2211
|
+
let r = t[n];
|
|
2212
|
+
if (r.path.length === 0 && r.op === "replace") {
|
|
2213
|
+
e = r.value;
|
|
2214
|
+
break;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
n > -1 && (t = t.slice(n + 1));
|
|
2218
|
+
let r = Yt(Kt).applyPatches_;
|
|
2219
|
+
return U(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
2220
|
+
}
|
|
2221
|
+
};
|
|
2222
|
+
function En(e, t, n, r) {
|
|
2223
|
+
let [i, a] = Nt(t) ? Yt(Gt).proxyMap_(t, n) : Pt(t) ? Yt(Gt).proxySet_(t, n) : _n(t, n);
|
|
2224
|
+
return (n?.scope_ ?? Qt()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? pn(n, a, r) : a.callbacks_.push(function(e) {
|
|
2225
|
+
e.mapSetPlugin_?.fixSetContents(a);
|
|
2226
|
+
let { patchPlugin_: t } = e;
|
|
2227
|
+
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
2228
|
+
}), i;
|
|
2229
|
+
}
|
|
2230
|
+
function Dn(e) {
|
|
2231
|
+
return U(e) || V(10, e), On(e);
|
|
2232
|
+
}
|
|
2233
|
+
function On(e) {
|
|
2234
|
+
if (!W(e) || Wt(e)) return e;
|
|
2235
|
+
let t = e[B], n, r = !0;
|
|
2236
|
+
if (t) {
|
|
2237
|
+
if (!t.modified_) return t.base_;
|
|
2238
|
+
t.finalized_ = !0, n = Bt(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
2239
|
+
} else n = Bt(e, !0);
|
|
2240
|
+
return Et(n, (e, t) => {
|
|
2241
|
+
At(n, e, On(t));
|
|
2242
|
+
}, r), t && (t.finalized_ = !1), n;
|
|
2243
|
+
}
|
|
2244
|
+
var kn = new Tn().produce;
|
|
2245
|
+
//#endregion
|
|
2246
|
+
//#region ../../../node_modules/.pnpm/redux-thunk@3.1.0_redux@5.0.1/node_modules/redux-thunk/dist/redux-thunk.mjs
|
|
2247
|
+
function An(e) {
|
|
2248
|
+
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
|
|
2249
|
+
}
|
|
2250
|
+
var jn = An(), Mn = An, Nn = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
2251
|
+
if (arguments.length !== 0) return typeof arguments[0] == "object" ? dt : dt.apply(null, arguments);
|
|
2252
|
+
};
|
|
2253
|
+
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
2254
|
+
var Pn = (e) => e && typeof e.match == "function";
|
|
2255
|
+
function Fn(e, t) {
|
|
2256
|
+
function n(...n) {
|
|
2257
|
+
if (t) {
|
|
2258
|
+
let r = t(...n);
|
|
2259
|
+
if (!r) throw Error(K(0));
|
|
2260
|
+
return {
|
|
2261
|
+
type: e,
|
|
2262
|
+
payload: r.payload,
|
|
2263
|
+
..."meta" in r && { meta: r.meta },
|
|
2264
|
+
..."error" in r && { error: r.error }
|
|
2265
|
+
};
|
|
2266
|
+
}
|
|
2267
|
+
return {
|
|
2268
|
+
type: e,
|
|
2269
|
+
payload: n[0]
|
|
2270
|
+
};
|
|
2271
|
+
}
|
|
2272
|
+
return n.toString = () => `${e}`, n.type = e, n.match = (t) => pt(t) && t.type === e, n;
|
|
2273
|
+
}
|
|
2274
|
+
var In = class e extends Array {
|
|
2275
|
+
constructor(...t) {
|
|
2276
|
+
super(...t), Object.setPrototypeOf(this, e.prototype);
|
|
2277
|
+
}
|
|
2278
|
+
static get [Symbol.species]() {
|
|
2279
|
+
return e;
|
|
2280
|
+
}
|
|
2281
|
+
concat(...e) {
|
|
2282
|
+
return super.concat.apply(this, e);
|
|
2283
|
+
}
|
|
2284
|
+
prepend(...t) {
|
|
2285
|
+
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
|
|
2286
|
+
}
|
|
2287
|
+
};
|
|
2288
|
+
function Ln(e) {
|
|
2289
|
+
return W(e) ? kn(e, () => {}) : e;
|
|
2290
|
+
}
|
|
2291
|
+
function Rn(e, t, n) {
|
|
2292
|
+
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
|
|
2293
|
+
}
|
|
2294
|
+
function zn(e) {
|
|
2295
|
+
return typeof e == "boolean";
|
|
2296
|
+
}
|
|
2297
|
+
var Bn = () => function(e) {
|
|
2298
|
+
let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new In();
|
|
2299
|
+
return t && (zn(t) ? a.push(jn) : a.push(Mn(t.extraArgument))), a;
|
|
2300
|
+
}, Vn = "RTK_autoBatch", Hn = (e) => (t) => {
|
|
2301
|
+
setTimeout(t, e);
|
|
2302
|
+
}, Un = (e = { type: "raf" }) => (t) => (...n) => {
|
|
2303
|
+
let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame : Hn(10) : e.type === "callback" ? e.queueNotification : Hn(e.timeout), l = () => {
|
|
2304
|
+
o = !1, a && (a = !1, s.forEach((e) => e()));
|
|
2305
|
+
};
|
|
2306
|
+
return Object.assign({}, r, {
|
|
2307
|
+
subscribe(e) {
|
|
2308
|
+
let t = r.subscribe(() => i && e());
|
|
2309
|
+
return s.add(e), () => {
|
|
2310
|
+
t(), s.delete(e);
|
|
2311
|
+
};
|
|
2312
|
+
},
|
|
2313
|
+
dispatch(e) {
|
|
2314
|
+
try {
|
|
2315
|
+
return i = !e?.meta?.[Vn], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
|
|
2316
|
+
} finally {
|
|
2317
|
+
i = !0;
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
});
|
|
2321
|
+
}, Wn = (e) => function(t) {
|
|
2322
|
+
let { autoBatch: n = !0 } = t ?? {}, r = new In(e);
|
|
2323
|
+
return n && r.push(Un(typeof n == "object" ? n : void 0)), r;
|
|
2324
|
+
};
|
|
2325
|
+
function Gn(e) {
|
|
2326
|
+
let t = Bn(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
|
|
2327
|
+
if (typeof n == "function") c = n;
|
|
2328
|
+
else if (st(n)) c = ut(n);
|
|
2329
|
+
else throw Error(K(1));
|
|
2330
|
+
let l;
|
|
2331
|
+
l = typeof r == "function" ? r(t) : t();
|
|
2332
|
+
let u = dt;
|
|
2333
|
+
i && (u = Nn({
|
|
2334
|
+
trace: !1,
|
|
2335
|
+
...typeof i == "object" && i
|
|
2336
|
+
}));
|
|
2337
|
+
let d = Wn(ft(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
|
|
2338
|
+
return ct(c, o, p);
|
|
2339
|
+
}
|
|
2340
|
+
function Kn(e) {
|
|
2341
|
+
let t = {}, n = [], r, i = {
|
|
2342
|
+
addCase(e, n) {
|
|
2343
|
+
let r = typeof e == "string" ? e : e.type;
|
|
2344
|
+
if (!r) throw Error(K(28));
|
|
2345
|
+
if (r in t) throw Error(K(29));
|
|
2346
|
+
return t[r] = n, i;
|
|
2347
|
+
},
|
|
2348
|
+
addAsyncThunk(e, r) {
|
|
2349
|
+
return r.pending && (t[e.pending.type] = r.pending), r.rejected && (t[e.rejected.type] = r.rejected), r.fulfilled && (t[e.fulfilled.type] = r.fulfilled), r.settled && n.push({
|
|
2350
|
+
matcher: e.settled,
|
|
2351
|
+
reducer: r.settled
|
|
2352
|
+
}), i;
|
|
2353
|
+
},
|
|
2354
|
+
addMatcher(e, t) {
|
|
2355
|
+
return n.push({
|
|
2356
|
+
matcher: e,
|
|
2357
|
+
reducer: t
|
|
2358
|
+
}), i;
|
|
2359
|
+
},
|
|
2360
|
+
addDefaultCase(e) {
|
|
2361
|
+
return r = e, i;
|
|
2362
|
+
}
|
|
2363
|
+
};
|
|
2364
|
+
return e(i), [
|
|
2365
|
+
t,
|
|
2366
|
+
n,
|
|
2367
|
+
r
|
|
2368
|
+
];
|
|
2369
|
+
}
|
|
2370
|
+
function qn(e) {
|
|
2371
|
+
return typeof e == "function";
|
|
2372
|
+
}
|
|
2373
|
+
function Jn(e, t) {
|
|
2374
|
+
let [n, r, i] = Kn(t), a;
|
|
2375
|
+
if (qn(e)) a = () => Ln(e());
|
|
2376
|
+
else {
|
|
2377
|
+
let t = Ln(e);
|
|
2378
|
+
a = () => t;
|
|
2379
|
+
}
|
|
2380
|
+
function o(e = a(), t) {
|
|
2381
|
+
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
|
|
2382
|
+
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
|
|
2383
|
+
if (n) if (U(e)) {
|
|
2384
|
+
let r = n(e, t);
|
|
2385
|
+
return r === void 0 ? e : r;
|
|
2386
|
+
} else if (W(e)) return kn(e, (e) => n(e, t));
|
|
2387
|
+
else {
|
|
2388
|
+
let r = n(e, t);
|
|
2389
|
+
if (r === void 0) {
|
|
2390
|
+
if (e === null) return e;
|
|
2391
|
+
throw Error("A case reducer on a non-draftable value must not return undefined");
|
|
2392
|
+
}
|
|
2393
|
+
return r;
|
|
2394
|
+
}
|
|
2395
|
+
return e;
|
|
2396
|
+
}, e);
|
|
2397
|
+
}
|
|
2398
|
+
return o.getInitialState = a, o;
|
|
2399
|
+
}
|
|
2400
|
+
var Yn = (e, t) => Pn(e) ? e.match(t) : e(t);
|
|
2401
|
+
function Xn(...e) {
|
|
2402
|
+
return (t) => e.some((e) => Yn(e, t));
|
|
2403
|
+
}
|
|
2404
|
+
var Zn = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qn = (e = 21) => {
|
|
2405
|
+
let t = "", n = e;
|
|
2406
|
+
for (; n--;) t += Zn[Math.random() * 64 | 0];
|
|
2407
|
+
return t;
|
|
2408
|
+
}, $n = [
|
|
2409
|
+
"name",
|
|
2410
|
+
"message",
|
|
2411
|
+
"stack",
|
|
2412
|
+
"code"
|
|
2413
|
+
], er = class {
|
|
2414
|
+
constructor(e, t) {
|
|
2415
|
+
this.payload = e, this.meta = t;
|
|
2416
|
+
}
|
|
2417
|
+
_type;
|
|
2418
|
+
}, tr = class {
|
|
2419
|
+
constructor(e, t) {
|
|
2420
|
+
this.payload = e, this.meta = t;
|
|
2421
|
+
}
|
|
2422
|
+
_type;
|
|
2423
|
+
}, nr = (e) => {
|
|
2424
|
+
if (typeof e == "object" && e) {
|
|
2425
|
+
let t = {};
|
|
2426
|
+
for (let n of $n) typeof e[n] == "string" && (t[n] = e[n]);
|
|
2427
|
+
return t;
|
|
2428
|
+
}
|
|
2429
|
+
return { message: String(e) };
|
|
2430
|
+
}, rr = "External signal was aborted", ir = /* @__PURE__ */ (() => {
|
|
2431
|
+
function e(e, t, n) {
|
|
2432
|
+
let r = Fn(e + "/fulfilled", (e, t, n, r) => ({
|
|
2433
|
+
payload: e,
|
|
2434
|
+
meta: {
|
|
2435
|
+
...r || {},
|
|
2436
|
+
arg: n,
|
|
2437
|
+
requestId: t,
|
|
2438
|
+
requestStatus: "fulfilled"
|
|
2439
|
+
}
|
|
2440
|
+
})), i = Fn(e + "/pending", (e, t, n) => ({
|
|
2441
|
+
payload: void 0,
|
|
2442
|
+
meta: {
|
|
2443
|
+
...n || {},
|
|
2444
|
+
arg: t,
|
|
2445
|
+
requestId: e,
|
|
2446
|
+
requestStatus: "pending"
|
|
2447
|
+
}
|
|
2448
|
+
})), a = Fn(e + "/rejected", (e, t, r, i, a) => ({
|
|
2449
|
+
payload: i,
|
|
2450
|
+
error: (n && n.serializeError || nr)(e || "Rejected"),
|
|
2451
|
+
meta: {
|
|
2452
|
+
...a || {},
|
|
2453
|
+
arg: r,
|
|
2454
|
+
requestId: t,
|
|
2455
|
+
rejectedWithValue: !!i,
|
|
2456
|
+
requestStatus: "rejected",
|
|
2457
|
+
aborted: e?.name === "AbortError",
|
|
2458
|
+
condition: e?.name === "ConditionError"
|
|
2459
|
+
}
|
|
2460
|
+
}));
|
|
2461
|
+
function o(e, { signal: o } = {}) {
|
|
2462
|
+
return (s, c, l) => {
|
|
2463
|
+
let u = n?.idGenerator ? n.idGenerator(e) : Qn(), d = new AbortController(), f, p;
|
|
2464
|
+
function m(e) {
|
|
2465
|
+
p = e, d.abort();
|
|
2466
|
+
}
|
|
2467
|
+
o && (o.aborted ? m(rr) : o.addEventListener("abort", () => m(rr), { once: !0 }));
|
|
2468
|
+
let h = async function() {
|
|
2469
|
+
let o;
|
|
2470
|
+
try {
|
|
2471
|
+
let a = n?.condition?.(e, {
|
|
2472
|
+
getState: c,
|
|
2473
|
+
extra: l
|
|
2474
|
+
});
|
|
2475
|
+
if (or(a) && (a = await a), a === !1 || d.signal.aborted) throw {
|
|
2476
|
+
name: "ConditionError",
|
|
2477
|
+
message: "Aborted due to condition callback returning false."
|
|
2478
|
+
};
|
|
2479
|
+
let h = new Promise((e, t) => {
|
|
2480
|
+
f = () => {
|
|
2481
|
+
t({
|
|
2482
|
+
name: "AbortError",
|
|
2483
|
+
message: p || "Aborted"
|
|
2484
|
+
});
|
|
2485
|
+
}, d.signal.addEventListener("abort", f, { once: !0 });
|
|
2486
|
+
});
|
|
2487
|
+
s(i(u, e, n?.getPendingMeta?.({
|
|
2488
|
+
requestId: u,
|
|
2489
|
+
arg: e
|
|
2490
|
+
}, {
|
|
2491
|
+
getState: c,
|
|
2492
|
+
extra: l
|
|
2493
|
+
}))), o = await Promise.race([h, Promise.resolve(t(e, {
|
|
2494
|
+
dispatch: s,
|
|
2495
|
+
getState: c,
|
|
2496
|
+
extra: l,
|
|
2497
|
+
requestId: u,
|
|
2498
|
+
signal: d.signal,
|
|
2499
|
+
abort: m,
|
|
2500
|
+
rejectWithValue: (e, t) => new er(e, t),
|
|
2501
|
+
fulfillWithValue: (e, t) => new tr(e, t)
|
|
2502
|
+
})).then((t) => {
|
|
2503
|
+
if (t instanceof er) throw t;
|
|
2504
|
+
return t instanceof tr ? r(t.payload, u, e, t.meta) : r(t, u, e);
|
|
2505
|
+
})]);
|
|
2506
|
+
} catch (t) {
|
|
2507
|
+
o = t instanceof er ? a(null, u, e, t.payload, t.meta) : a(t, u, e);
|
|
2508
|
+
} finally {
|
|
2509
|
+
f && d.signal.removeEventListener("abort", f);
|
|
2510
|
+
}
|
|
2511
|
+
return n && !n.dispatchConditionRejection && a.match(o) && o.meta.condition || s(o), o;
|
|
2512
|
+
}();
|
|
2513
|
+
return Object.assign(h, {
|
|
2514
|
+
abort: m,
|
|
2515
|
+
requestId: u,
|
|
2516
|
+
arg: e,
|
|
2517
|
+
unwrap() {
|
|
2518
|
+
return h.then(ar);
|
|
2519
|
+
}
|
|
2520
|
+
});
|
|
2521
|
+
};
|
|
2522
|
+
}
|
|
2523
|
+
return Object.assign(o, {
|
|
2524
|
+
pending: i,
|
|
2525
|
+
rejected: a,
|
|
2526
|
+
fulfilled: r,
|
|
2527
|
+
settled: Xn(a, r),
|
|
2528
|
+
typePrefix: e
|
|
2529
|
+
});
|
|
2530
|
+
}
|
|
2531
|
+
return e.withTypes = () => e, e;
|
|
2532
|
+
})();
|
|
2533
|
+
function ar(e) {
|
|
2534
|
+
if (e.meta && e.meta.rejectedWithValue) throw e.payload;
|
|
2535
|
+
if (e.error) throw e.error;
|
|
2536
|
+
return e.payload;
|
|
2537
|
+
}
|
|
2538
|
+
function or(e) {
|
|
2539
|
+
return typeof e == "object" && !!e && typeof e.then == "function";
|
|
2540
|
+
}
|
|
2541
|
+
var sr = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
2542
|
+
function cr(e, t) {
|
|
2543
|
+
return `${e}/${t}`;
|
|
2544
|
+
}
|
|
2545
|
+
function lr({ creators: e } = {}) {
|
|
2546
|
+
let t = e?.asyncThunk?.[sr];
|
|
2547
|
+
return function(e) {
|
|
2548
|
+
let { name: n, reducerPath: r = n } = e;
|
|
2549
|
+
if (!n) throw Error(K(11));
|
|
2550
|
+
let i = (typeof e.reducers == "function" ? e.reducers(fr()) : e.reducers) || {}, a = Object.keys(i), o = {
|
|
2551
|
+
sliceCaseReducersByName: {},
|
|
2552
|
+
sliceCaseReducersByType: {},
|
|
2553
|
+
actionCreators: {},
|
|
2554
|
+
sliceMatchers: []
|
|
2555
|
+
}, s = {
|
|
2556
|
+
addCase(e, t) {
|
|
2557
|
+
let n = typeof e == "string" ? e : e.type;
|
|
2558
|
+
if (!n) throw Error(K(12));
|
|
2559
|
+
if (n in o.sliceCaseReducersByType) throw Error(K(13));
|
|
2560
|
+
return o.sliceCaseReducersByType[n] = t, s;
|
|
2561
|
+
},
|
|
2562
|
+
addMatcher(e, t) {
|
|
2563
|
+
return o.sliceMatchers.push({
|
|
2564
|
+
matcher: e,
|
|
2565
|
+
reducer: t
|
|
2566
|
+
}), s;
|
|
2567
|
+
},
|
|
2568
|
+
exposeAction(e, t) {
|
|
2569
|
+
return o.actionCreators[e] = t, s;
|
|
2570
|
+
},
|
|
2571
|
+
exposeCaseReducer(e, t) {
|
|
2572
|
+
return o.sliceCaseReducersByName[e] = t, s;
|
|
2573
|
+
}
|
|
2574
|
+
};
|
|
2575
|
+
a.forEach((r) => {
|
|
2576
|
+
let a = i[r], o = {
|
|
2577
|
+
reducerName: r,
|
|
2578
|
+
type: cr(n, r),
|
|
2579
|
+
createNotation: typeof e.reducers == "function"
|
|
2580
|
+
};
|
|
2581
|
+
mr(a) ? gr(o, a, s, t) : pr(o, a, s);
|
|
2582
|
+
});
|
|
2583
|
+
function c() {
|
|
2584
|
+
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? Kn(e.extraReducers) : [e.extraReducers], i = {
|
|
2585
|
+
...t,
|
|
2586
|
+
...o.sliceCaseReducersByType
|
|
2587
|
+
};
|
|
2588
|
+
return Jn(e.initialState, (e) => {
|
|
2589
|
+
for (let t in i) e.addCase(t, i[t]);
|
|
2590
|
+
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
|
|
2591
|
+
for (let t of n) e.addMatcher(t.matcher, t.reducer);
|
|
2592
|
+
r && e.addDefaultCase(r);
|
|
2593
|
+
});
|
|
2594
|
+
}
|
|
2595
|
+
let l = (e) => e, u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new WeakMap(), f;
|
|
2596
|
+
function p(e, t) {
|
|
2597
|
+
return f ||= c(), f(e, t);
|
|
2598
|
+
}
|
|
2599
|
+
function m() {
|
|
2600
|
+
return f ||= c(), f.getInitialState();
|
|
2601
|
+
}
|
|
2602
|
+
function h(t, n = !1) {
|
|
2603
|
+
function r(e) {
|
|
2604
|
+
let i = e[t];
|
|
2605
|
+
return i === void 0 && n && (i = Rn(d, r, m)), i;
|
|
2606
|
+
}
|
|
2607
|
+
function i(t = l) {
|
|
2608
|
+
return Rn(Rn(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
|
|
2609
|
+
let r = {};
|
|
2610
|
+
for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = ur(a, t, () => Rn(d, t, m), n);
|
|
2611
|
+
return r;
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
return {
|
|
2615
|
+
reducerPath: t,
|
|
2616
|
+
getSelectors: i,
|
|
2617
|
+
get selectors() {
|
|
2618
|
+
return i(r);
|
|
2619
|
+
},
|
|
2620
|
+
selectSlice: r
|
|
2621
|
+
};
|
|
2622
|
+
}
|
|
2623
|
+
let g = {
|
|
2624
|
+
name: n,
|
|
2625
|
+
reducer: p,
|
|
2626
|
+
actions: o.actionCreators,
|
|
2627
|
+
caseReducers: o.sliceCaseReducersByName,
|
|
2628
|
+
getInitialState: m,
|
|
2629
|
+
...h(r),
|
|
2630
|
+
injectInto(e, { reducerPath: t, ...n } = {}) {
|
|
2631
|
+
let i = t ?? r;
|
|
2632
|
+
return e.inject({
|
|
2633
|
+
reducerPath: i,
|
|
2634
|
+
reducer: p
|
|
2635
|
+
}, n), {
|
|
2636
|
+
...g,
|
|
2637
|
+
...h(i, !0)
|
|
2638
|
+
};
|
|
2639
|
+
}
|
|
2640
|
+
};
|
|
2641
|
+
return g;
|
|
2642
|
+
};
|
|
2643
|
+
}
|
|
2644
|
+
function ur(e, t, n, r) {
|
|
2645
|
+
function i(i, ...a) {
|
|
2646
|
+
let o = t(i);
|
|
2647
|
+
return o === void 0 && r && (o = n()), e(o, ...a);
|
|
2648
|
+
}
|
|
2649
|
+
return i.unwrapped = e, i;
|
|
2650
|
+
}
|
|
2651
|
+
var dr = /* @__PURE__ */ lr();
|
|
2652
|
+
function fr() {
|
|
2653
|
+
function e(e, t) {
|
|
2654
|
+
return {
|
|
2655
|
+
_reducerDefinitionType: "asyncThunk",
|
|
2656
|
+
payloadCreator: e,
|
|
2657
|
+
...t
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
2660
|
+
return e.withTypes = () => e, {
|
|
2661
|
+
reducer(e) {
|
|
2662
|
+
return Object.assign({ [e.name](...t) {
|
|
2663
|
+
return e(...t);
|
|
2664
|
+
} }[e.name], { _reducerDefinitionType: "reducer" });
|
|
2665
|
+
},
|
|
2666
|
+
preparedReducer(e, t) {
|
|
2667
|
+
return {
|
|
2668
|
+
_reducerDefinitionType: "reducerWithPrepare",
|
|
2669
|
+
prepare: e,
|
|
2670
|
+
reducer: t
|
|
2671
|
+
};
|
|
2672
|
+
},
|
|
2673
|
+
asyncThunk: e
|
|
2674
|
+
};
|
|
2675
|
+
}
|
|
2676
|
+
function pr({ type: e, reducerName: t, createNotation: n }, r, i) {
|
|
2677
|
+
let a, o;
|
|
2678
|
+
if ("reducer" in r) {
|
|
2679
|
+
if (n && !hr(r)) throw Error(K(17));
|
|
2680
|
+
a = r.reducer, o = r.prepare;
|
|
2681
|
+
} else a = r;
|
|
2682
|
+
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? Fn(e, o) : Fn(e));
|
|
2683
|
+
}
|
|
2684
|
+
function mr(e) {
|
|
2685
|
+
return e._reducerDefinitionType === "asyncThunk";
|
|
2686
|
+
}
|
|
2687
|
+
function hr(e) {
|
|
2688
|
+
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
2689
|
+
}
|
|
2690
|
+
function gr({ type: e, reducerName: t }, n, r, i) {
|
|
2691
|
+
if (!i) throw Error(K(18));
|
|
2692
|
+
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
|
|
2693
|
+
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
|
|
2694
|
+
fulfilled: o || _r,
|
|
2695
|
+
pending: s || _r,
|
|
2696
|
+
rejected: c || _r,
|
|
2697
|
+
settled: l || _r
|
|
2698
|
+
});
|
|
2699
|
+
}
|
|
2700
|
+
function _r() {}
|
|
2701
|
+
var vr = "listener", yr = "completed", br = "cancelled";
|
|
2702
|
+
`${br}`, `${yr}`, `${vr}${br}`, `${vr}${yr}`;
|
|
2703
|
+
var { assign: xr } = Object, Sr = "listenerMiddleware", Cr = /* @__PURE__ */ xr(/* @__PURE__ */ Fn(`${Sr}/add`), { withTypes: () => Cr });
|
|
2704
|
+
`${Sr}`;
|
|
2705
|
+
var wr = /* @__PURE__ */ xr(/* @__PURE__ */ Fn(`${Sr}/remove`), { withTypes: () => wr });
|
|
2706
|
+
function K(e) {
|
|
2707
|
+
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
2708
|
+
}
|
|
2709
|
+
//#endregion
|
|
2710
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/constants.js
|
|
2711
|
+
var Tr = "persist:", Er = "persist/FLUSH", Dr = "persist/REHYDRATE", Or = "persist/PAUSE", kr = "persist/PERSIST", Ar = "persist/PURGE", jr = "persist/REGISTER";
|
|
2712
|
+
//#endregion
|
|
2713
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/stateReconciler/autoMergeLevel1.js
|
|
2714
|
+
function Mr(e) {
|
|
2715
|
+
return Mr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2716
|
+
return typeof e;
|
|
2717
|
+
} : function(e) {
|
|
2718
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2719
|
+
}, Mr(e);
|
|
2720
|
+
}
|
|
2721
|
+
function Nr(e, t) {
|
|
2722
|
+
var n = Object.keys(e);
|
|
2723
|
+
if (Object.getOwnPropertySymbols) {
|
|
2724
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
2725
|
+
t && (r = r.filter(function(t) {
|
|
2726
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
2727
|
+
})), n.push.apply(n, r);
|
|
2728
|
+
}
|
|
2729
|
+
return n;
|
|
2730
|
+
}
|
|
2731
|
+
function Pr(e) {
|
|
2732
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2733
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
2734
|
+
t % 2 ? Nr(n, !0).forEach(function(t) {
|
|
2735
|
+
Fr(e, t, n[t]);
|
|
2736
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nr(n).forEach(function(t) {
|
|
2737
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2740
|
+
return e;
|
|
2741
|
+
}
|
|
2742
|
+
function Fr(e, t, n) {
|
|
2743
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
2744
|
+
value: n,
|
|
2745
|
+
enumerable: !0,
|
|
2746
|
+
configurable: !0,
|
|
2747
|
+
writable: !0
|
|
2748
|
+
}) : e[t] = n, e;
|
|
2749
|
+
}
|
|
2750
|
+
function Ir(e, t, n, r) {
|
|
2751
|
+
r.debug;
|
|
2752
|
+
var i = Pr({}, n);
|
|
2753
|
+
return e && Mr(e) === "object" && Object.keys(e).forEach(function(r) {
|
|
2754
|
+
r !== "_persist" && t[r] === n[r] && (i[r] = e[r]);
|
|
2755
|
+
}), i;
|
|
2756
|
+
}
|
|
2757
|
+
//#endregion
|
|
2758
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/createPersistoid.js
|
|
2759
|
+
function Lr(e) {
|
|
2760
|
+
var t = e.blacklist || null, n = e.whitelist || null, r = e.transforms || [], i = e.throttle || 0, a = `${e.keyPrefix === void 0 ? Tr : e.keyPrefix}${e.key}`, o = e.storage, s = e.serialize === !1 ? function(e) {
|
|
2761
|
+
return e;
|
|
2762
|
+
} : typeof e.serialize == "function" ? e.serialize : Rr, c = e.writeFailHandler || null, l = {}, u = {}, d = [], f = null, p = null, m = function(e) {
|
|
2763
|
+
Object.keys(e).forEach(function(t) {
|
|
2764
|
+
_(t) && l[t] !== e[t] && d.indexOf(t) === -1 && d.push(t);
|
|
2765
|
+
}), Object.keys(l).forEach(function(t) {
|
|
2766
|
+
e[t] === void 0 && _(t) && d.indexOf(t) === -1 && l[t] !== void 0 && d.push(t);
|
|
2767
|
+
}), f === null && (f = setInterval(h, i)), l = e;
|
|
2768
|
+
};
|
|
2769
|
+
function h() {
|
|
2770
|
+
if (d.length === 0) {
|
|
2771
|
+
f && clearInterval(f), f = null;
|
|
2772
|
+
return;
|
|
2773
|
+
}
|
|
2774
|
+
var e = d.shift(), t = r.reduce(function(t, n) {
|
|
2775
|
+
return n.in(t, e, l);
|
|
2776
|
+
}, l[e]);
|
|
2777
|
+
if (t !== void 0) try {
|
|
2778
|
+
u[e] = s(t);
|
|
2779
|
+
} catch (e) {
|
|
2780
|
+
console.error("redux-persist/createPersistoid: error serializing state", e);
|
|
2781
|
+
}
|
|
2782
|
+
else delete u[e];
|
|
2783
|
+
d.length === 0 && g();
|
|
2784
|
+
}
|
|
2785
|
+
function g() {
|
|
2786
|
+
Object.keys(u).forEach(function(e) {
|
|
2787
|
+
l[e] === void 0 && delete u[e];
|
|
2788
|
+
}), p = o.setItem(a, s(u)).catch(v);
|
|
2789
|
+
}
|
|
2790
|
+
function _(e) {
|
|
2791
|
+
return !(n && n.indexOf(e) === -1 && e !== "_persist" || t && t.indexOf(e) !== -1);
|
|
2792
|
+
}
|
|
2793
|
+
function v(e) {
|
|
2794
|
+
c && c(e);
|
|
2795
|
+
}
|
|
2796
|
+
return {
|
|
2797
|
+
update: m,
|
|
2798
|
+
flush: function() {
|
|
2799
|
+
for (; d.length !== 0;) h();
|
|
2800
|
+
return p || Promise.resolve();
|
|
2801
|
+
}
|
|
2802
|
+
};
|
|
2803
|
+
}
|
|
2804
|
+
function Rr(e) {
|
|
2805
|
+
return JSON.stringify(e);
|
|
2806
|
+
}
|
|
2807
|
+
//#endregion
|
|
2808
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/getStoredState.js
|
|
2809
|
+
function zr(e) {
|
|
2810
|
+
var t = e.transforms || [], n = `${e.keyPrefix === void 0 ? Tr : e.keyPrefix}${e.key}`, r = e.storage;
|
|
2811
|
+
e.debug;
|
|
2812
|
+
var i = e.deserialize === !1 ? function(e) {
|
|
2813
|
+
return e;
|
|
2814
|
+
} : typeof e.deserialize == "function" ? e.deserialize : Br;
|
|
2815
|
+
return r.getItem(n).then(function(e) {
|
|
2816
|
+
if (e) try {
|
|
2817
|
+
var n = {}, r = i(e);
|
|
2818
|
+
return Object.keys(r).forEach(function(e) {
|
|
2819
|
+
n[e] = t.reduceRight(function(t, n) {
|
|
2820
|
+
return n.out(t, e, r);
|
|
2821
|
+
}, i(r[e]));
|
|
2822
|
+
}), n;
|
|
2823
|
+
} catch (e) {
|
|
2824
|
+
throw e;
|
|
2825
|
+
}
|
|
2826
|
+
else return;
|
|
2827
|
+
});
|
|
2828
|
+
}
|
|
2829
|
+
function Br(e) {
|
|
2830
|
+
return JSON.parse(e);
|
|
2831
|
+
}
|
|
2832
|
+
//#endregion
|
|
2833
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/purgeStoredState.js
|
|
2834
|
+
function Vr(e) {
|
|
2835
|
+
var t = e.storage, n = `${e.keyPrefix === void 0 ? Tr : e.keyPrefix}${e.key}`;
|
|
2836
|
+
return t.removeItem(n, Hr);
|
|
2837
|
+
}
|
|
2838
|
+
function Hr(e) {}
|
|
2839
|
+
//#endregion
|
|
2840
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/persistReducer.js
|
|
2841
|
+
function Ur(e, t) {
|
|
2842
|
+
var n = Object.keys(e);
|
|
2843
|
+
if (Object.getOwnPropertySymbols) {
|
|
2844
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
2845
|
+
t && (r = r.filter(function(t) {
|
|
2846
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
2847
|
+
})), n.push.apply(n, r);
|
|
2848
|
+
}
|
|
2849
|
+
return n;
|
|
2850
|
+
}
|
|
2851
|
+
function q(e) {
|
|
2852
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2853
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
2854
|
+
t % 2 ? Ur(n, !0).forEach(function(t) {
|
|
2855
|
+
Wr(e, t, n[t]);
|
|
2856
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ur(n).forEach(function(t) {
|
|
2857
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2858
|
+
});
|
|
2859
|
+
}
|
|
2860
|
+
return e;
|
|
2861
|
+
}
|
|
2862
|
+
function Wr(e, t, n) {
|
|
2863
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
2864
|
+
value: n,
|
|
2865
|
+
enumerable: !0,
|
|
2866
|
+
configurable: !0,
|
|
2867
|
+
writable: !0
|
|
2868
|
+
}) : e[t] = n, e;
|
|
2869
|
+
}
|
|
2870
|
+
function Gr(e, t) {
|
|
2871
|
+
if (e == null) return {};
|
|
2872
|
+
var n = Kr(e, t), r, i;
|
|
2873
|
+
if (Object.getOwnPropertySymbols) {
|
|
2874
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
2875
|
+
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2876
|
+
}
|
|
2877
|
+
return n;
|
|
2878
|
+
}
|
|
2879
|
+
function Kr(e, t) {
|
|
2880
|
+
if (e == null) return {};
|
|
2881
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
2882
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2883
|
+
return n;
|
|
2884
|
+
}
|
|
2885
|
+
var qr = 5e3;
|
|
2886
|
+
function Jr(e, t) {
|
|
2887
|
+
var n = e.version === void 0 ? -1 : e.version;
|
|
2888
|
+
e.debug;
|
|
2889
|
+
var r = e.stateReconciler === void 0 ? Ir : e.stateReconciler, i = e.getStoredState || zr, a = e.timeout === void 0 ? qr : e.timeout, o = null, s = !1, c = !0, l = function(e) {
|
|
2890
|
+
return e._persist.rehydrated && o && !c && o.update(e), e;
|
|
2891
|
+
};
|
|
2892
|
+
return function(u, d) {
|
|
2893
|
+
var f = u || {}, p = f._persist, m = Gr(f, ["_persist"]);
|
|
2894
|
+
if (d.type === "persist/PERSIST") {
|
|
2895
|
+
var h = !1, g = function(t, n) {
|
|
2896
|
+
h ||= (d.rehydrate(e.key, t, n), !0);
|
|
2897
|
+
};
|
|
2898
|
+
if (a && setTimeout(function() {
|
|
2899
|
+
!h && g(void 0, Error(`redux-persist: persist timed out for persist key "${e.key}"`));
|
|
2900
|
+
}, a), c = !1, o ||= Lr(e), p) return q({}, t(m, d), { _persist: p });
|
|
2901
|
+
if (typeof d.rehydrate != "function" || typeof d.register != "function") throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");
|
|
2902
|
+
return d.register(e.key), i(e).then(function(t) {
|
|
2903
|
+
(e.migrate || function(e, t) {
|
|
2904
|
+
return Promise.resolve(e);
|
|
2905
|
+
})(t, n).then(function(e) {
|
|
2906
|
+
g(e);
|
|
2907
|
+
}, function(e) {
|
|
2908
|
+
g(void 0, e);
|
|
2909
|
+
});
|
|
2910
|
+
}, function(e) {
|
|
2911
|
+
g(void 0, e);
|
|
2912
|
+
}), q({}, t(m, d), { _persist: {
|
|
2913
|
+
version: n,
|
|
2914
|
+
rehydrated: !1
|
|
2915
|
+
} });
|
|
2916
|
+
} else if (d.type === "persist/PURGE") return s = !0, d.result(Vr(e)), q({}, t(m, d), { _persist: p });
|
|
2917
|
+
else if (d.type === "persist/FLUSH") return d.result(o && o.flush()), q({}, t(m, d), { _persist: p });
|
|
2918
|
+
else if (d.type === "persist/PAUSE") c = !0;
|
|
2919
|
+
else if (d.type === "persist/REHYDRATE") {
|
|
2920
|
+
if (s) return q({}, m, { _persist: q({}, p, { rehydrated: !0 }) });
|
|
2921
|
+
if (d.key === e.key) {
|
|
2922
|
+
var _ = t(m, d), v = d.payload;
|
|
2923
|
+
return l(q({}, r !== !1 && v !== void 0 ? r(v, u, _, e) : _, { _persist: q({}, p, { rehydrated: !0 }) }));
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
if (!p) return t(u, d);
|
|
2927
|
+
var y = t(m, d);
|
|
2928
|
+
return y === m ? u : l(q({}, y, { _persist: p }));
|
|
2929
|
+
};
|
|
2930
|
+
}
|
|
2931
|
+
//#endregion
|
|
2932
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/persistStore.js
|
|
2933
|
+
function Yr(e) {
|
|
2934
|
+
return Qr(e) || Zr(e) || Xr();
|
|
2935
|
+
}
|
|
2936
|
+
function Xr() {
|
|
2937
|
+
throw TypeError("Invalid attempt to spread non-iterable instance");
|
|
2938
|
+
}
|
|
2939
|
+
function Zr(e) {
|
|
2940
|
+
if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
|
|
2941
|
+
}
|
|
2942
|
+
function Qr(e) {
|
|
2943
|
+
if (Array.isArray(e)) {
|
|
2944
|
+
for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
|
|
2945
|
+
return n;
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
function $r(e, t) {
|
|
2949
|
+
var n = Object.keys(e);
|
|
2950
|
+
if (Object.getOwnPropertySymbols) {
|
|
2951
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
2952
|
+
t && (r = r.filter(function(t) {
|
|
2953
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
2954
|
+
})), n.push.apply(n, r);
|
|
2955
|
+
}
|
|
2956
|
+
return n;
|
|
2957
|
+
}
|
|
2958
|
+
function ei(e) {
|
|
2959
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2960
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
2961
|
+
t % 2 ? $r(n, !0).forEach(function(t) {
|
|
2962
|
+
ti(e, t, n[t]);
|
|
2963
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $r(n).forEach(function(t) {
|
|
2964
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2965
|
+
});
|
|
2966
|
+
}
|
|
2967
|
+
return e;
|
|
2968
|
+
}
|
|
2969
|
+
function ti(e, t, n) {
|
|
2970
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
2971
|
+
value: n,
|
|
2972
|
+
enumerable: !0,
|
|
2973
|
+
configurable: !0,
|
|
2974
|
+
writable: !0
|
|
2975
|
+
}) : e[t] = n, e;
|
|
2976
|
+
}
|
|
2977
|
+
var ni = {
|
|
2978
|
+
registry: [],
|
|
2979
|
+
bootstrapped: !1
|
|
2980
|
+
}, ri = function() {
|
|
2981
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ni, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
2982
|
+
switch (t.type) {
|
|
2983
|
+
case jr: return ei({}, e, { registry: [].concat(Yr(e.registry), [t.key]) });
|
|
2984
|
+
case Dr:
|
|
2985
|
+
var n = e.registry.indexOf(t.key), r = Yr(e.registry);
|
|
2986
|
+
return r.splice(n, 1), ei({}, e, {
|
|
2987
|
+
registry: r,
|
|
2988
|
+
bootstrapped: r.length === 0
|
|
2989
|
+
});
|
|
2990
|
+
default: return e;
|
|
2991
|
+
}
|
|
2992
|
+
};
|
|
2993
|
+
function ii(e, t, n) {
|
|
2994
|
+
var r = n || !1, i = ct(ri, ni, t && t.enhancer ? t.enhancer : void 0), a = function(e) {
|
|
2995
|
+
i.dispatch({
|
|
2996
|
+
type: jr,
|
|
2997
|
+
key: e
|
|
2998
|
+
});
|
|
2999
|
+
}, o = function(t, n, a) {
|
|
3000
|
+
var o = {
|
|
3001
|
+
type: Dr,
|
|
3002
|
+
payload: n,
|
|
3003
|
+
err: a,
|
|
3004
|
+
key: t
|
|
3005
|
+
};
|
|
3006
|
+
e.dispatch(o), i.dispatch(o), r && s.getState().bootstrapped && (r(), r = !1);
|
|
3007
|
+
}, s = ei({}, i, {
|
|
3008
|
+
purge: function() {
|
|
3009
|
+
var t = [];
|
|
3010
|
+
return e.dispatch({
|
|
3011
|
+
type: Ar,
|
|
3012
|
+
result: function(e) {
|
|
3013
|
+
t.push(e);
|
|
3014
|
+
}
|
|
3015
|
+
}), Promise.all(t);
|
|
3016
|
+
},
|
|
3017
|
+
flush: function() {
|
|
3018
|
+
var t = [];
|
|
3019
|
+
return e.dispatch({
|
|
3020
|
+
type: Er,
|
|
3021
|
+
result: function(e) {
|
|
3022
|
+
t.push(e);
|
|
3023
|
+
}
|
|
3024
|
+
}), Promise.all(t);
|
|
3025
|
+
},
|
|
3026
|
+
pause: function() {
|
|
3027
|
+
e.dispatch({ type: Or });
|
|
3028
|
+
},
|
|
3029
|
+
persist: function() {
|
|
3030
|
+
e.dispatch({
|
|
3031
|
+
type: kr,
|
|
3032
|
+
register: a,
|
|
3033
|
+
rehydrate: o
|
|
3034
|
+
});
|
|
3035
|
+
}
|
|
3036
|
+
});
|
|
3037
|
+
return t && t.manualPersist || s.persist(), s;
|
|
3038
|
+
}
|
|
3039
|
+
//#endregion
|
|
3040
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/createTransform.js
|
|
3041
|
+
function ai(e, t) {
|
|
3042
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.whitelist || null, i = n.blacklist || null;
|
|
3043
|
+
function a(e) {
|
|
3044
|
+
return !!(r && r.indexOf(e) === -1 || i && i.indexOf(e) !== -1);
|
|
3045
|
+
}
|
|
3046
|
+
return {
|
|
3047
|
+
in: function(t, n, r) {
|
|
3048
|
+
return !a(n) && e ? e(t, n, r) : t;
|
|
3049
|
+
},
|
|
3050
|
+
out: function(e, n, r) {
|
|
3051
|
+
return !a(n) && t ? t(e, n, r) : e;
|
|
3052
|
+
}
|
|
3053
|
+
};
|
|
3054
|
+
}
|
|
3055
|
+
//#endregion
|
|
3056
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/storage/getStorage.js
|
|
3057
|
+
function oi(e) {
|
|
3058
|
+
return oi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3059
|
+
return typeof e;
|
|
3060
|
+
} : function(e) {
|
|
3061
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3062
|
+
}, oi(e);
|
|
3063
|
+
}
|
|
3064
|
+
function si() {}
|
|
3065
|
+
var ci = {
|
|
3066
|
+
getItem: si,
|
|
3067
|
+
setItem: si,
|
|
3068
|
+
removeItem: si
|
|
3069
|
+
};
|
|
3070
|
+
function li(e) {
|
|
3071
|
+
if ((typeof self > "u" ? "undefined" : oi(self)) !== "object" || !(e in self)) return !1;
|
|
3072
|
+
try {
|
|
3073
|
+
var t = self[e], n = `redux-persist ${e} test`;
|
|
3074
|
+
t.setItem(n, "test"), t.getItem(n), t.removeItem(n);
|
|
3075
|
+
} catch {
|
|
3076
|
+
return !1;
|
|
3077
|
+
}
|
|
3078
|
+
return !0;
|
|
3079
|
+
}
|
|
3080
|
+
function ui(e) {
|
|
3081
|
+
var t = `${e}Storage`;
|
|
3082
|
+
return li(t) ? self[t] : ci;
|
|
3083
|
+
}
|
|
3084
|
+
//#endregion
|
|
3085
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/storage/createWebStorage.js
|
|
3086
|
+
function di(e) {
|
|
3087
|
+
var t = ui(e);
|
|
3088
|
+
return {
|
|
3089
|
+
getItem: function(e) {
|
|
3090
|
+
return new Promise(function(n, r) {
|
|
3091
|
+
n(t.getItem(e));
|
|
3092
|
+
});
|
|
3093
|
+
},
|
|
3094
|
+
setItem: function(e, n) {
|
|
3095
|
+
return new Promise(function(r, i) {
|
|
3096
|
+
r(t.setItem(e, n));
|
|
3097
|
+
});
|
|
3098
|
+
},
|
|
3099
|
+
removeItem: function(e) {
|
|
3100
|
+
return new Promise(function(n, r) {
|
|
3101
|
+
n(t.removeItem(e));
|
|
3102
|
+
});
|
|
3103
|
+
}
|
|
3104
|
+
};
|
|
3105
|
+
}
|
|
3106
|
+
//#endregion
|
|
3107
|
+
//#region ../../../node_modules/.pnpm/redux-persist@6.0.0_react@19.2.0_redux@5.0.1/node_modules/redux-persist/es/storage/index.js
|
|
3108
|
+
var fi = di("local"), pi = dr({
|
|
3109
|
+
name: "ui",
|
|
3110
|
+
initialState: {
|
|
3111
|
+
sidebarOpen: !0,
|
|
3112
|
+
activeMenu: "home"
|
|
3113
|
+
},
|
|
3114
|
+
reducers: {
|
|
3115
|
+
toggleSidebar: (e) => {
|
|
3116
|
+
e.sidebarOpen = !e.sidebarOpen;
|
|
3117
|
+
},
|
|
3118
|
+
setSidebarOpen: (e, t) => {
|
|
3119
|
+
e.sidebarOpen = t.payload;
|
|
3120
|
+
},
|
|
3121
|
+
setActiveMenu: (e, t) => {
|
|
3122
|
+
e.activeMenu = t.payload;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
}), { toggleSidebar: mi, setSidebarOpen: hi, setActiveMenu: gi } = pi.actions, _i = pi.reducer, vi = { routes: [] }, yi = (e, t) => {
|
|
3126
|
+
let n = t.split("/").filter(Boolean);
|
|
3127
|
+
for (let t = n.length - 1; t > 0; t--) {
|
|
3128
|
+
let r = "/" + n.slice(0, t).join("/"), i = e.find((e) => e.path === r);
|
|
3129
|
+
if (i) return i;
|
|
3130
|
+
}
|
|
3131
|
+
return e.find((e) => e.path === "/") || null;
|
|
3132
|
+
}, bi = (e, t) => e === "/" ? t : t.replace(e + "/", ""), xi = dr({
|
|
3133
|
+
name: "route",
|
|
3134
|
+
initialState: vi,
|
|
3135
|
+
reducers: {
|
|
3136
|
+
addRoute: (e, t) => {
|
|
3137
|
+
let n = t.payload, r = yi(e.routes, n.path);
|
|
3138
|
+
if (r) {
|
|
3139
|
+
r.children ||= [];
|
|
3140
|
+
let e = bi(r.path, n.path);
|
|
3141
|
+
r.children.push({
|
|
3142
|
+
...n,
|
|
3143
|
+
path: e
|
|
3144
|
+
});
|
|
3145
|
+
} else e.routes.push(n);
|
|
3146
|
+
e.routes.sort((e, t) => (e.meta?.order || 999) - (t.meta?.order || 999));
|
|
3147
|
+
},
|
|
3148
|
+
removeRoute: (e, t) => {
|
|
3149
|
+
let n = t.payload, r = (e) => {
|
|
3150
|
+
let t = e.findIndex((e) => e.path === n);
|
|
3151
|
+
if (t >= 0) return e.splice(t, 1), !0;
|
|
3152
|
+
for (let t of e) if (t.children && r(t.children)) return !0;
|
|
3153
|
+
return !1;
|
|
3154
|
+
};
|
|
3155
|
+
r(e.routes);
|
|
3156
|
+
},
|
|
3157
|
+
updateRoute: (e, t) => {
|
|
3158
|
+
let { path: n, updates: r } = t.payload, i = (e) => {
|
|
3159
|
+
let t = e.findIndex((e) => e.path === n);
|
|
3160
|
+
if (t >= 0) return e[t] = {
|
|
3161
|
+
...e[t],
|
|
3162
|
+
...r
|
|
3163
|
+
}, !0;
|
|
3164
|
+
for (let t of e) if (t.children && i(t.children)) return !0;
|
|
3165
|
+
return !1;
|
|
3166
|
+
};
|
|
3167
|
+
i(e.routes);
|
|
3168
|
+
},
|
|
3169
|
+
setRoutes: (e, t) => {
|
|
3170
|
+
e.routes = t.payload, e.routes.sort((e, t) => (e.meta?.order || 999) - (t.meta?.order || 999));
|
|
3171
|
+
},
|
|
3172
|
+
clearRoutes: (e) => {
|
|
3173
|
+
e.routes = [];
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
}), { addRoute: Si, removeRoute: Ci, updateRoute: wi, setRoutes: Ti, clearRoutes: Ei } = xi.actions, Di = xi.reducer, Oi = {
|
|
3177
|
+
entries: [],
|
|
3178
|
+
loadedScripts: [],
|
|
3179
|
+
synced: !1
|
|
3180
|
+
}, ki = ir("script/loadScript", async (e) => new Promise((t, n) => {
|
|
3181
|
+
let r = document.createElement("script");
|
|
3182
|
+
r.type = "module", r.src = e, r.dataset.dynamicEntry = "true", r.onload = () => t(e), r.onerror = (t) => {
|
|
3183
|
+
console.error("[Script] Load failed:", e), n(t);
|
|
3184
|
+
}, document.body.appendChild(r);
|
|
3185
|
+
})), Ai = ir("script/loadScripts", async (e, { dispatch: t }) => (await Promise.allSettled(e.map((e) => t(ki(e)).unwrap()))).filter((e) => e.status === "fulfilled").map((e) => e.value)), ji = ir("script/unloadScript", async (e) => (document.querySelectorAll(`script[src="${e}"][data-dynamic-entry="true"]`).forEach((e) => e.remove()), e)), Mi = dr({
|
|
3186
|
+
name: "script",
|
|
3187
|
+
initialState: Oi,
|
|
3188
|
+
reducers: {
|
|
3189
|
+
syncEntries: (e, t) => {
|
|
3190
|
+
e.entries = t.payload, e.synced = !0;
|
|
3191
|
+
},
|
|
3192
|
+
addEntry: (e, t) => {
|
|
3193
|
+
e.entries.includes(t.payload) || e.entries.push(t.payload);
|
|
3194
|
+
},
|
|
3195
|
+
removeEntry: (e, t) => {
|
|
3196
|
+
e.entries = e.entries.filter((e) => e !== t.payload), e.loadedScripts = e.loadedScripts.filter((e) => e !== t.payload);
|
|
3197
|
+
}
|
|
3198
|
+
},
|
|
3199
|
+
extraReducers: (e) => {
|
|
3200
|
+
e.addCase(ki.fulfilled, (e, t) => {
|
|
3201
|
+
e.loadedScripts.includes(t.payload) || e.loadedScripts.push(t.payload);
|
|
3202
|
+
}), e.addCase(Ai.fulfilled, (e, t) => {
|
|
3203
|
+
t.payload.forEach((t) => {
|
|
3204
|
+
e.loadedScripts.includes(t) || e.loadedScripts.push(t);
|
|
3205
|
+
});
|
|
3206
|
+
}), e.addCase(ji.fulfilled, (e, t) => {
|
|
3207
|
+
e.loadedScripts = e.loadedScripts.filter((e) => e !== t.payload);
|
|
3208
|
+
});
|
|
3209
|
+
}
|
|
3210
|
+
}), { syncEntries: Ni, addEntry: Pi, removeEntry: Fi } = Mi.actions, Ii = Mi.reducer, Li = dr({
|
|
3211
|
+
name: "config",
|
|
3212
|
+
initialState: {
|
|
3213
|
+
configs: {},
|
|
3214
|
+
schemas: {},
|
|
3215
|
+
loading: {},
|
|
3216
|
+
errors: {},
|
|
3217
|
+
connected: !1
|
|
3218
|
+
},
|
|
3219
|
+
reducers: {
|
|
3220
|
+
setConnected: (e, t) => {
|
|
3221
|
+
e.connected = t.payload;
|
|
3222
|
+
},
|
|
3223
|
+
setLoading: (e, t) => {
|
|
3224
|
+
let { pluginName: n, loading: r } = t.payload;
|
|
3225
|
+
e.loading[n] = r;
|
|
3226
|
+
},
|
|
3227
|
+
setError: (e, t) => {
|
|
3228
|
+
let { pluginName: n, error: r } = t.payload;
|
|
3229
|
+
e.errors[n] = r;
|
|
3230
|
+
},
|
|
3231
|
+
updateConfig: (e, t) => {
|
|
3232
|
+
let { pluginName: n, config: r } = t.payload;
|
|
3233
|
+
e.configs[n] = r, e.loading[n] = !1, e.errors[n] = null;
|
|
3234
|
+
},
|
|
3235
|
+
updateSchema: (e, t) => {
|
|
3236
|
+
let { pluginName: n, schema: r } = t.payload;
|
|
3237
|
+
e.schemas[n] = r;
|
|
3238
|
+
},
|
|
3239
|
+
updateConfigs: (e, t) => {
|
|
3240
|
+
e.configs = {
|
|
3241
|
+
...e.configs,
|
|
3242
|
+
...t.payload
|
|
3243
|
+
};
|
|
3244
|
+
},
|
|
3245
|
+
updateSchemas: (e, t) => {
|
|
3246
|
+
e.schemas = {
|
|
3247
|
+
...e.schemas,
|
|
3248
|
+
...t.payload
|
|
3249
|
+
};
|
|
3250
|
+
},
|
|
3251
|
+
removeConfig: (e, t) => {
|
|
3252
|
+
let n = t.payload;
|
|
3253
|
+
delete e.configs[n], delete e.schemas[n], delete e.loading[n], delete e.errors[n];
|
|
3254
|
+
},
|
|
3255
|
+
clearConfigs: (e) => {
|
|
3256
|
+
e.configs = {}, e.schemas = {}, e.loading = {}, e.errors = {};
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
}), { setConnected: Ri, setLoading: zi, setError: Bi, updateConfig: Vi, updateSchema: Hi, updateConfigs: Ui, updateSchemas: Wi, removeConfig: Gi, clearConfigs: Ki } = Li.actions, qi = Li.reducer, Ji = (e, t) => e.config.configs[t], Yi = (e, t) => e.config.schemas[t], Xi = (e, t) => e.config.loading[t] || !1, Zi = (e, t) => e.config.errors[t] || null, J = (e) => e.config.connected, Qi = (e) => e.config.configs, $i = (e) => e.config.schemas, ea = {
|
|
3260
|
+
ui: _i,
|
|
3261
|
+
route: Di,
|
|
3262
|
+
script: Ii,
|
|
3263
|
+
config: qi
|
|
3264
|
+
}, ta = /* @__PURE__ */ m(((t, n) => {
|
|
3265
|
+
n.exports = { ...e };
|
|
3266
|
+
})), na = /* @__PURE__ */ m(((e) => {
|
|
3267
|
+
var t = ta();
|
|
3268
|
+
function n(e, t) {
|
|
3269
|
+
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
3270
|
+
}
|
|
3271
|
+
var r = typeof Object.is == "function" ? Object.is : n, i = t.useSyncExternalStore, a = t.useRef, o = t.useEffect, s = t.useMemo, c = t.useDebugValue;
|
|
3272
|
+
e.useSyncExternalStoreWithSelector = function(e, t, n, l, u) {
|
|
3273
|
+
var d = a(null);
|
|
3274
|
+
if (d.current === null) {
|
|
3275
|
+
var f = {
|
|
3276
|
+
hasValue: !1,
|
|
3277
|
+
value: null
|
|
3278
|
+
};
|
|
3279
|
+
d.current = f;
|
|
3280
|
+
} else f = d.current;
|
|
3281
|
+
d = s(function() {
|
|
3282
|
+
function e(e) {
|
|
3283
|
+
if (!i) {
|
|
3284
|
+
if (i = !0, a = e, e = l(e), u !== void 0 && f.hasValue) {
|
|
3285
|
+
var t = f.value;
|
|
3286
|
+
if (u(t, e)) return o = t;
|
|
3287
|
+
}
|
|
3288
|
+
return o = e;
|
|
3289
|
+
}
|
|
3290
|
+
if (t = o, r(a, e)) return t;
|
|
3291
|
+
var n = l(e);
|
|
3292
|
+
return u !== void 0 && u(t, n) ? (a = e, t) : (a = e, o = n);
|
|
3293
|
+
}
|
|
3294
|
+
var i = !1, a, o, s = n === void 0 ? null : n;
|
|
3295
|
+
return [function() {
|
|
3296
|
+
return e(t());
|
|
3297
|
+
}, s === null ? void 0 : function() {
|
|
3298
|
+
return e(s());
|
|
3299
|
+
}];
|
|
3300
|
+
}, [
|
|
3301
|
+
t,
|
|
3302
|
+
n,
|
|
3303
|
+
l,
|
|
3304
|
+
u
|
|
3305
|
+
]);
|
|
3306
|
+
var p = i(e, d[0], d[1]);
|
|
3307
|
+
return o(function() {
|
|
3308
|
+
f.hasValue = !0, f.value = p;
|
|
3309
|
+
}, [p]), c(p), p;
|
|
3310
|
+
};
|
|
3311
|
+
})), ra = (/* @__PURE__ */ m(((e, t) => {
|
|
3312
|
+
t.exports = na();
|
|
3313
|
+
})))();
|
|
3314
|
+
Object.prototype;
|
|
3315
|
+
var ia = /* @__PURE__ */ Symbol.for("react-redux-context"), aa = typeof globalThis < "u" ? globalThis : {};
|
|
3316
|
+
function oa() {
|
|
3317
|
+
if (!e.createContext) return {};
|
|
3318
|
+
let t = aa[ia] ??= /* @__PURE__ */ new Map(), n = t.get(e.createContext);
|
|
3319
|
+
return n || (n = e.createContext(null), t.set(e.createContext, n)), n;
|
|
3320
|
+
}
|
|
3321
|
+
var sa = /* @__PURE__ */ oa();
|
|
3322
|
+
function ca(t = sa) {
|
|
3323
|
+
return function() {
|
|
3324
|
+
return e.useContext(t);
|
|
3325
|
+
};
|
|
3326
|
+
}
|
|
3327
|
+
var la = /* @__PURE__ */ ca();
|
|
3328
|
+
function ua(e = sa) {
|
|
3329
|
+
let t = e === sa ? la : ca(e), n = () => {
|
|
3330
|
+
let { store: e } = t();
|
|
3331
|
+
return e;
|
|
3332
|
+
};
|
|
3333
|
+
return Object.assign(n, { withTypes: () => n }), n;
|
|
3334
|
+
}
|
|
3335
|
+
var da = /* @__PURE__ */ ua();
|
|
3336
|
+
function fa(e = sa) {
|
|
3337
|
+
let t = e === sa ? da : ua(e), n = () => t().dispatch;
|
|
3338
|
+
return Object.assign(n, { withTypes: () => n }), n;
|
|
3339
|
+
}
|
|
3340
|
+
var pa = /* @__PURE__ */ fa(), ma = (e, t) => e === t;
|
|
3341
|
+
function ha(t = sa) {
|
|
3342
|
+
let n = t === sa ? la : ca(t), r = (t, r = {}) => {
|
|
3343
|
+
let { equalityFn: i = ma } = typeof r == "function" ? { equalityFn: r } : r, { store: a, subscription: o, getServerState: s } = n();
|
|
3344
|
+
e.useRef(!0);
|
|
3345
|
+
let c = e.useCallback({ [t.name](e) {
|
|
3346
|
+
return t(e);
|
|
3347
|
+
} }[t.name], [t]), l = (0, ra.useSyncExternalStoreWithSelector)(o.addNestedSub, a.getState, s || a.getState, c, i);
|
|
3348
|
+
return e.useDebugValue(l), l;
|
|
3349
|
+
};
|
|
3350
|
+
return Object.assign(r, { withTypes: () => r }), r;
|
|
3351
|
+
}
|
|
3352
|
+
var ga = /* @__PURE__ */ ha(), _a = {
|
|
3353
|
+
key: "root",
|
|
3354
|
+
storage: fi,
|
|
3355
|
+
transforms: [ai((e) => {
|
|
3356
|
+
let { routes: t, ...n } = e;
|
|
3357
|
+
return n;
|
|
3358
|
+
}, (e) => ({
|
|
3359
|
+
...e,
|
|
3360
|
+
routes: []
|
|
3361
|
+
}), { whitelist: ["route"] }), ai((e) => {
|
|
3362
|
+
let { entries: t, loadedScripts: n, synced: r, ...i } = e;
|
|
3363
|
+
return i;
|
|
3364
|
+
}, (e) => ({
|
|
3365
|
+
...e,
|
|
3366
|
+
entries: [],
|
|
3367
|
+
loadedScripts: [],
|
|
3368
|
+
synced: !1
|
|
3369
|
+
}), { whitelist: ["script"] })]
|
|
3370
|
+
}, Y = Gn({
|
|
3371
|
+
reducer: Jr(_a, ut(ea)),
|
|
3372
|
+
middleware: (e) => e({ serializableCheck: {
|
|
3373
|
+
ignoredActions: [
|
|
3374
|
+
Er,
|
|
3375
|
+
Dr,
|
|
3376
|
+
Or,
|
|
3377
|
+
kr,
|
|
3378
|
+
Ar,
|
|
3379
|
+
jr,
|
|
3380
|
+
"route/addRoute",
|
|
3381
|
+
"route/updateRoute",
|
|
3382
|
+
"route/setRoutes"
|
|
3383
|
+
],
|
|
3384
|
+
ignoredPaths: ["route.routes"]
|
|
3385
|
+
} })
|
|
3386
|
+
}), va = ii(Y);
|
|
3387
|
+
typeof window < "u" && (window.__REDUX_STORE__ = Y);
|
|
3388
|
+
function ya(e, t) {
|
|
3389
|
+
ea[e] = t;
|
|
3390
|
+
let n = Jr(_a, ut(ea));
|
|
3391
|
+
Y.replaceReducer(n);
|
|
3392
|
+
}
|
|
3393
|
+
var ba = pa, X = ga, xa = (e) => Y.dispatch(Si(e)), Sa = (e) => Y.dispatch(Ci(e)), Ca = (e, t) => Y.dispatch(wi({
|
|
3394
|
+
path: e,
|
|
3395
|
+
updates: t
|
|
3396
|
+
})), wa = (e) => Y.getState().route.routes.find((t) => t.path === e), Ta = () => Y.getState().route.routes, Ea = () => Y.dispatch(Ei());
|
|
3397
|
+
function Da() {
|
|
3398
|
+
let e = X((e) => e.route.routes);
|
|
3399
|
+
return /* @__PURE__ */ p(c, { router: r(() => {
|
|
3400
|
+
let t = (e) => {
|
|
3401
|
+
let n = {
|
|
3402
|
+
path: e.path,
|
|
3403
|
+
element: e.element,
|
|
3404
|
+
Component: e.Component
|
|
3405
|
+
};
|
|
3406
|
+
return e.children && e.children.length > 0 && (n.children = e.children.map((e) => t(e))), n;
|
|
3407
|
+
}, n = e.map(t);
|
|
3408
|
+
return l([{
|
|
3409
|
+
path: "/",
|
|
3410
|
+
element: /* @__PURE__ */ p(s, {}),
|
|
3411
|
+
children: n
|
|
3412
|
+
}, {
|
|
3413
|
+
path: "*",
|
|
3414
|
+
element: /* @__PURE__ */ p("div", { children: "404 - Page Not Found" })
|
|
3415
|
+
}]);
|
|
3416
|
+
}, [e]) });
|
|
3417
|
+
}
|
|
3418
|
+
//#endregion
|
|
3419
|
+
//#region ../../../packages/client/client/websocket/types.ts
|
|
3420
|
+
var Z = /* @__PURE__ */ function(e) {
|
|
3421
|
+
return e.DISCONNECTED = "disconnected", e.CONNECTING = "connecting", e.CONNECTED = "connected", e.RECONNECTING = "reconnecting", e.ERROR = "error", e;
|
|
3422
|
+
}({}), Q = class extends Error {
|
|
3423
|
+
constructor(e, t, n) {
|
|
3424
|
+
super(e), this.code = t, this.originalError = n, this.name = "WebSocketError";
|
|
3425
|
+
}
|
|
3426
|
+
}, Oa = class extends Q {
|
|
3427
|
+
constructor(e) {
|
|
3428
|
+
super(`Request ${e} timed out`, "REQUEST_TIMEOUT");
|
|
3429
|
+
}
|
|
3430
|
+
}, ka = class extends Q {
|
|
3431
|
+
constructor(e, t) {
|
|
3432
|
+
super(e, "CONNECTION_ERROR", t);
|
|
3433
|
+
}
|
|
3434
|
+
}, Aa = class extends Q {
|
|
3435
|
+
constructor(e, t) {
|
|
3436
|
+
super(e, "MESSAGE_ERROR", t);
|
|
3437
|
+
}
|
|
3438
|
+
}, ja = class {
|
|
3439
|
+
static handle(e) {
|
|
3440
|
+
try {
|
|
3441
|
+
switch (e.type) {
|
|
3442
|
+
case "sync":
|
|
3443
|
+
this.handleScriptSync(e);
|
|
3444
|
+
break;
|
|
3445
|
+
case "add":
|
|
3446
|
+
this.handleScriptAdd(e);
|
|
3447
|
+
break;
|
|
3448
|
+
case "delete":
|
|
3449
|
+
this.handleScriptDelete(e);
|
|
3450
|
+
break;
|
|
3451
|
+
case "config:updated":
|
|
3452
|
+
this.handleConfigUpdated(e);
|
|
3453
|
+
break;
|
|
3454
|
+
case "config:batch":
|
|
3455
|
+
this.handleConfigBatch(e);
|
|
3456
|
+
break;
|
|
3457
|
+
case "config:error":
|
|
3458
|
+
this.handleConfigError(e);
|
|
3459
|
+
break;
|
|
3460
|
+
case "schema:updated":
|
|
3461
|
+
this.handleSchemaUpdated(e);
|
|
3462
|
+
break;
|
|
3463
|
+
case "schema:batch":
|
|
3464
|
+
this.handleSchemaBatch(e);
|
|
3465
|
+
break;
|
|
3466
|
+
case "hmr:reload":
|
|
3467
|
+
this.handleHmrReload(e);
|
|
3468
|
+
break;
|
|
3469
|
+
case "init-data":
|
|
3470
|
+
case "data-update":
|
|
3471
|
+
this.handleSystemMessage(e);
|
|
3472
|
+
break;
|
|
3473
|
+
default: console.warn("[WebSocket] Unknown message type:", e.type);
|
|
3474
|
+
}
|
|
3475
|
+
} catch (e) {
|
|
3476
|
+
console.error("[WebSocket] Message handling error:", e);
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
static handleScriptSync(e) {
|
|
3480
|
+
if (e.data?.key === "entries") {
|
|
3481
|
+
let t = Array.isArray(e.data.value) ? e.data.value : [e.data.value];
|
|
3482
|
+
Y.dispatch(Ni(t)), Y.dispatch(Ai(t));
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
static handleScriptAdd(e) {
|
|
3486
|
+
e.data?.key === "entries" && (Y.dispatch(Pi(e.data.value)), Y.dispatch(ki(e.data.value)));
|
|
3487
|
+
}
|
|
3488
|
+
static handleScriptDelete(e) {
|
|
3489
|
+
e.data?.key === "entries" && (Y.dispatch(Fi(e.data.value)), Y.dispatch(ji(e.data.value)));
|
|
3490
|
+
}
|
|
3491
|
+
static handleConfigUpdated(e) {
|
|
3492
|
+
e.pluginName && e.data !== void 0 && Y.dispatch(Vi({
|
|
3493
|
+
pluginName: e.pluginName,
|
|
3494
|
+
config: e.data
|
|
3495
|
+
}));
|
|
3496
|
+
}
|
|
3497
|
+
static handleConfigBatch(e) {
|
|
3498
|
+
e.data && Y.dispatch(Ui(e.data));
|
|
3499
|
+
}
|
|
3500
|
+
static handleConfigError(e) {
|
|
3501
|
+
e.pluginName && e.error && Y.dispatch(Bi({
|
|
3502
|
+
pluginName: e.pluginName,
|
|
3503
|
+
error: e.error
|
|
3504
|
+
}));
|
|
3505
|
+
}
|
|
3506
|
+
static handleSchemaUpdated(e) {
|
|
3507
|
+
e.pluginName && e.data !== void 0 && Y.dispatch(Hi({
|
|
3508
|
+
pluginName: e.pluginName,
|
|
3509
|
+
schema: e.data
|
|
3510
|
+
}));
|
|
3511
|
+
}
|
|
3512
|
+
static handleSchemaBatch(e) {
|
|
3513
|
+
e.data && Y.dispatch(Wi(e.data));
|
|
3514
|
+
}
|
|
3515
|
+
static handleHmrReload(e) {
|
|
3516
|
+
let t = e.data?.file || "";
|
|
3517
|
+
console.info(`[HMR] 文件变更: ${t},正在刷新页面...`), window.location.reload();
|
|
3518
|
+
}
|
|
3519
|
+
static handleSystemMessage(e) {}
|
|
3520
|
+
}, Ma = class {
|
|
3521
|
+
ws = null;
|
|
3522
|
+
config;
|
|
3523
|
+
callbacks;
|
|
3524
|
+
state = Z.DISCONNECTED;
|
|
3525
|
+
reconnectAttempts = 0;
|
|
3526
|
+
reconnectTimer = null;
|
|
3527
|
+
requestId = 0;
|
|
3528
|
+
pendingRequests = /* @__PURE__ */ new Map();
|
|
3529
|
+
constructor(e = {}, t = {}) {
|
|
3530
|
+
this.config = {
|
|
3531
|
+
url: this.buildWebSocketUrl(e.url),
|
|
3532
|
+
reconnectInterval: e.reconnectInterval ?? 3e3,
|
|
3533
|
+
maxReconnectAttempts: e.maxReconnectAttempts ?? 10,
|
|
3534
|
+
requestTimeout: e.requestTimeout ?? 1e4
|
|
3535
|
+
}, this.callbacks = t;
|
|
3536
|
+
}
|
|
3537
|
+
connect() {
|
|
3538
|
+
if (!(this.state === Z.CONNECTED || this.state === Z.CONNECTING)) {
|
|
3539
|
+
this.setState(Z.CONNECTING);
|
|
3540
|
+
try {
|
|
3541
|
+
this.ws = new WebSocket(this.config.url), this.attachEventHandlers();
|
|
3542
|
+
} catch (e) {
|
|
3543
|
+
this.handleConnectionError(new ka("Failed to create WebSocket", e));
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
disconnect() {
|
|
3548
|
+
this.clearReconnectTimer(), this.clearPendingRequests(), this.ws &&= (this.ws.close(), null), this.setState(Z.DISCONNECTED), Y.dispatch(Ri(!1));
|
|
3549
|
+
}
|
|
3550
|
+
send(e) {
|
|
3551
|
+
if (!this.isConnected()) throw new Q("WebSocket is not connected", "NOT_CONNECTED");
|
|
3552
|
+
try {
|
|
3553
|
+
this.ws.send(JSON.stringify(e));
|
|
3554
|
+
} catch (e) {
|
|
3555
|
+
throw new Aa("Failed to send message", e);
|
|
3556
|
+
}
|
|
3557
|
+
}
|
|
3558
|
+
async sendRequest(e) {
|
|
3559
|
+
if (!this.isConnected()) throw new Q("WebSocket is not connected", "NOT_CONNECTED");
|
|
3560
|
+
return new Promise((t, n) => {
|
|
3561
|
+
let r = ++this.requestId, i = {
|
|
3562
|
+
...e,
|
|
3563
|
+
requestId: r
|
|
3564
|
+
}, a = setTimeout(() => {
|
|
3565
|
+
this.pendingRequests.delete(r), n(new Oa(r));
|
|
3566
|
+
}, this.config.requestTimeout);
|
|
3567
|
+
this.pendingRequests.set(r, {
|
|
3568
|
+
resolve: t,
|
|
3569
|
+
reject: n,
|
|
3570
|
+
timer: a
|
|
3571
|
+
});
|
|
3572
|
+
try {
|
|
3573
|
+
this.ws.send(JSON.stringify(i));
|
|
3574
|
+
} catch (e) {
|
|
3575
|
+
this.pendingRequests.delete(r), clearTimeout(a), n(new Aa("Failed to send request", e));
|
|
3576
|
+
}
|
|
3577
|
+
});
|
|
3578
|
+
}
|
|
3579
|
+
isConnected() {
|
|
3580
|
+
return this.ws?.readyState === WebSocket.OPEN;
|
|
3581
|
+
}
|
|
3582
|
+
getState() {
|
|
3583
|
+
return this.state;
|
|
3584
|
+
}
|
|
3585
|
+
async getConfig(e) {
|
|
3586
|
+
return this.sendRequest({
|
|
3587
|
+
type: "config:get",
|
|
3588
|
+
pluginName: e
|
|
3589
|
+
});
|
|
3590
|
+
}
|
|
3591
|
+
async setConfig(e, t) {
|
|
3592
|
+
return this.sendRequest({
|
|
3593
|
+
type: "config:set",
|
|
3594
|
+
pluginName: e,
|
|
3595
|
+
data: t
|
|
3596
|
+
});
|
|
3597
|
+
}
|
|
3598
|
+
async getSchema(e) {
|
|
3599
|
+
return this.sendRequest({
|
|
3600
|
+
type: "schema:get",
|
|
3601
|
+
pluginName: e
|
|
3602
|
+
});
|
|
3603
|
+
}
|
|
3604
|
+
async getAllConfigs() {
|
|
3605
|
+
return this.sendRequest({ type: "config:get-all" });
|
|
3606
|
+
}
|
|
3607
|
+
async getAllSchemas() {
|
|
3608
|
+
return this.sendRequest({ type: "schema:get-all" });
|
|
3609
|
+
}
|
|
3610
|
+
async getConfigYaml() {
|
|
3611
|
+
return this.sendRequest({ type: "config:get-yaml" });
|
|
3612
|
+
}
|
|
3613
|
+
async saveConfigYaml(e) {
|
|
3614
|
+
return this.sendRequest({
|
|
3615
|
+
type: "config:save-yaml",
|
|
3616
|
+
yaml: e
|
|
3617
|
+
});
|
|
3618
|
+
}
|
|
3619
|
+
async getEnvList() {
|
|
3620
|
+
return this.sendRequest({ type: "env:list" });
|
|
3621
|
+
}
|
|
3622
|
+
async getEnvFile(e) {
|
|
3623
|
+
return this.sendRequest({
|
|
3624
|
+
type: "env:get",
|
|
3625
|
+
filename: e
|
|
3626
|
+
});
|
|
3627
|
+
}
|
|
3628
|
+
async saveEnvFile(e, t) {
|
|
3629
|
+
return this.sendRequest({
|
|
3630
|
+
type: "env:save",
|
|
3631
|
+
filename: e,
|
|
3632
|
+
content: t
|
|
3633
|
+
});
|
|
3634
|
+
}
|
|
3635
|
+
async getFileTree() {
|
|
3636
|
+
return this.sendRequest({ type: "files:tree" });
|
|
3637
|
+
}
|
|
3638
|
+
async readFile(e) {
|
|
3639
|
+
return this.sendRequest({
|
|
3640
|
+
type: "files:read",
|
|
3641
|
+
filePath: e
|
|
3642
|
+
});
|
|
3643
|
+
}
|
|
3644
|
+
async saveFile(e, t) {
|
|
3645
|
+
return this.sendRequest({
|
|
3646
|
+
type: "files:save",
|
|
3647
|
+
filePath: e,
|
|
3648
|
+
content: t
|
|
3649
|
+
});
|
|
3650
|
+
}
|
|
3651
|
+
async getDbInfo() {
|
|
3652
|
+
return this.sendRequest({ type: "db:info" });
|
|
3653
|
+
}
|
|
3654
|
+
async getDbTables() {
|
|
3655
|
+
return this.sendRequest({ type: "db:tables" });
|
|
3656
|
+
}
|
|
3657
|
+
async dbSelect(e, t, n, r) {
|
|
3658
|
+
return this.sendRequest({
|
|
3659
|
+
type: "db:select",
|
|
3660
|
+
table: e,
|
|
3661
|
+
page: t,
|
|
3662
|
+
pageSize: n,
|
|
3663
|
+
where: r
|
|
3664
|
+
});
|
|
3665
|
+
}
|
|
3666
|
+
async dbInsert(e, t) {
|
|
3667
|
+
return this.sendRequest({
|
|
3668
|
+
type: "db:insert",
|
|
3669
|
+
table: e,
|
|
3670
|
+
row: t
|
|
3671
|
+
});
|
|
3672
|
+
}
|
|
3673
|
+
async dbUpdate(e, t, n) {
|
|
3674
|
+
return this.sendRequest({
|
|
3675
|
+
type: "db:update",
|
|
3676
|
+
table: e,
|
|
3677
|
+
row: t,
|
|
3678
|
+
where: n
|
|
3679
|
+
});
|
|
3680
|
+
}
|
|
3681
|
+
async dbDelete(e, t) {
|
|
3682
|
+
return this.sendRequest({
|
|
3683
|
+
type: "db:delete",
|
|
3684
|
+
table: e,
|
|
3685
|
+
where: t
|
|
3686
|
+
});
|
|
3687
|
+
}
|
|
3688
|
+
async dbDropTable(e) {
|
|
3689
|
+
return this.sendRequest({
|
|
3690
|
+
type: "db:drop-table",
|
|
3691
|
+
table: e
|
|
3692
|
+
});
|
|
3693
|
+
}
|
|
3694
|
+
async kvGet(e, t) {
|
|
3695
|
+
return this.sendRequest({
|
|
3696
|
+
type: "db:kv:get",
|
|
3697
|
+
table: e,
|
|
3698
|
+
key: t
|
|
3699
|
+
});
|
|
3700
|
+
}
|
|
3701
|
+
async kvSet(e, t, n, r) {
|
|
3702
|
+
return this.sendRequest({
|
|
3703
|
+
type: "db:kv:set",
|
|
3704
|
+
table: e,
|
|
3705
|
+
key: t,
|
|
3706
|
+
value: n,
|
|
3707
|
+
ttl: r
|
|
3708
|
+
});
|
|
3709
|
+
}
|
|
3710
|
+
async kvDelete(e, t) {
|
|
3711
|
+
return this.sendRequest({
|
|
3712
|
+
type: "db:kv:delete",
|
|
3713
|
+
table: e,
|
|
3714
|
+
key: t
|
|
3715
|
+
});
|
|
3716
|
+
}
|
|
3717
|
+
async kvGetEntries(e) {
|
|
3718
|
+
return this.sendRequest({
|
|
3719
|
+
type: "db:kv:entries",
|
|
3720
|
+
table: e
|
|
3721
|
+
});
|
|
3722
|
+
}
|
|
3723
|
+
buildWebSocketUrl(e) {
|
|
3724
|
+
return e || `${window.location.protocol === "https:" ? "wss:" : "ws:"}//${window.location.host}/server`;
|
|
3725
|
+
}
|
|
3726
|
+
setState(e) {
|
|
3727
|
+
let t = this.state;
|
|
3728
|
+
this.state = e, console.debug(`[WebSocket] State changed: ${t} -> ${e}`);
|
|
3729
|
+
}
|
|
3730
|
+
attachEventHandlers() {
|
|
3731
|
+
this.ws && (this.ws.onopen = () => {
|
|
3732
|
+
this.handleConnectionOpen();
|
|
3733
|
+
}, this.ws.onmessage = (e) => {
|
|
3734
|
+
this.handleMessage(e);
|
|
3735
|
+
}, this.ws.onclose = (e) => {
|
|
3736
|
+
this.handleConnectionClose(e);
|
|
3737
|
+
}, this.ws.onerror = (e) => {
|
|
3738
|
+
this.handleConnectionError(new ka("WebSocket error", e));
|
|
3739
|
+
});
|
|
3740
|
+
}
|
|
3741
|
+
handleConnectionOpen() {
|
|
3742
|
+
this.setState(Z.CONNECTED), this.reconnectAttempts = 0, Y.dispatch(Ri(!0)), this.initializeData(), this.callbacks.onConnect?.();
|
|
3743
|
+
}
|
|
3744
|
+
handleMessage(e) {
|
|
3745
|
+
try {
|
|
3746
|
+
let t = JSON.parse(e.data);
|
|
3747
|
+
if (t.requestId && this.pendingRequests.has(t.requestId)) {
|
|
3748
|
+
this.handleRequestResponse(t);
|
|
3749
|
+
return;
|
|
3750
|
+
}
|
|
3751
|
+
ja.handle(t), this.callbacks.onMessage?.(t);
|
|
3752
|
+
} catch (e) {
|
|
3753
|
+
console.error("[WebSocket] Message parsing error:", e);
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
handleRequestResponse(e) {
|
|
3757
|
+
let { requestId: t } = e, n = this.pendingRequests.get(t);
|
|
3758
|
+
n && (this.pendingRequests.delete(t), clearTimeout(n.timer), e.error ? n.reject(new Q(e.error, "SERVER_ERROR")) : n.resolve(e.data));
|
|
3759
|
+
}
|
|
3760
|
+
handleConnectionClose(e) {
|
|
3761
|
+
this.ws = null, Y.dispatch(Ri(!1)), this.state !== Z.DISCONNECTED && (this.setState(Z.RECONNECTING), this.callbacks.onDisconnect?.(), this.scheduleReconnect());
|
|
3762
|
+
}
|
|
3763
|
+
handleConnectionError(e) {
|
|
3764
|
+
this.clearReconnectTimer(), this.setState(Z.ERROR), console.error("[WebSocket] Connection error:", e), this.callbacks.onError?.(e);
|
|
3765
|
+
}
|
|
3766
|
+
scheduleReconnect() {
|
|
3767
|
+
if (this.reconnectAttempts >= this.config.maxReconnectAttempts) {
|
|
3768
|
+
console.error("[WebSocket] Max reconnect attempts reached"), this.setState(Z.ERROR);
|
|
3769
|
+
return;
|
|
3770
|
+
}
|
|
3771
|
+
this.reconnectAttempts++;
|
|
3772
|
+
let e = this.config.reconnectInterval * this.reconnectAttempts;
|
|
3773
|
+
console.debug(`[WebSocket] Reconnecting in ${e}ms (attempt ${this.reconnectAttempts}/${this.config.maxReconnectAttempts})`), this.reconnectTimer = setTimeout(() => {
|
|
3774
|
+
this.state === Z.RECONNECTING && this.connect();
|
|
3775
|
+
}, e);
|
|
3776
|
+
}
|
|
3777
|
+
clearReconnectTimer() {
|
|
3778
|
+
this.reconnectTimer &&= (clearTimeout(this.reconnectTimer), null);
|
|
3779
|
+
}
|
|
3780
|
+
clearPendingRequests() {
|
|
3781
|
+
for (let [e, { reject: t, timer: n }] of this.pendingRequests) clearTimeout(n), t(new Q("Connection closed", "CONNECTION_CLOSED"));
|
|
3782
|
+
this.pendingRequests.clear();
|
|
3783
|
+
}
|
|
3784
|
+
async initializeData() {
|
|
3785
|
+
try {
|
|
3786
|
+
let [e, t] = await Promise.all([this.getAllConfigs().catch((e) => (console.warn("[WebSocket] Failed to load configs:", e), {})), this.getAllSchemas().catch((e) => (console.warn("[WebSocket] Failed to load schemas:", e), {}))]);
|
|
3787
|
+
Y.dispatch(Ui(e)), Y.dispatch(Wi(t));
|
|
3788
|
+
} catch (e) {
|
|
3789
|
+
console.error("[WebSocket] Data initialization failed:", e);
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
}, Na = null;
|
|
3793
|
+
function $() {
|
|
3794
|
+
return Na || (Na = new Ma(), typeof window < "u" && Na.connect()), Na;
|
|
3795
|
+
}
|
|
3796
|
+
function Pa() {
|
|
3797
|
+
Na &&= (Na.disconnect(), null);
|
|
3798
|
+
}
|
|
3799
|
+
function Fa() {
|
|
3800
|
+
Pa();
|
|
3801
|
+
}
|
|
3802
|
+
//#endregion
|
|
3803
|
+
//#region ../../../packages/client/client/websocket/hooks.ts
|
|
3804
|
+
function Ia(e = {}) {
|
|
3805
|
+
let { autoConnect: r = !0 } = e, i = $(), a = X(J), o = X((e) => e.script?.entries || []), s = X((e) => e.script?.loadedScripts || []), c = t(() => {
|
|
3806
|
+
i.connect();
|
|
3807
|
+
}, [i]), l = t(() => {
|
|
3808
|
+
i.disconnect();
|
|
3809
|
+
}, [i]), u = t((e) => {
|
|
3810
|
+
i.send(e);
|
|
3811
|
+
}, [i]), d = t(async (e) => i.sendRequest(e), [i]), f = t(() => i.isConnected(), [i]), p = t(() => i.isConnected() ? "connected" : "disconnected", [i]);
|
|
3812
|
+
return n(() => {
|
|
3813
|
+
r && !a && c();
|
|
3814
|
+
}, [
|
|
3815
|
+
r,
|
|
3816
|
+
a,
|
|
3817
|
+
c
|
|
3818
|
+
]), {
|
|
3819
|
+
connected: a,
|
|
3820
|
+
entries: o,
|
|
3821
|
+
loadedScripts: s,
|
|
3822
|
+
connect: c,
|
|
3823
|
+
disconnect: l,
|
|
3824
|
+
send: u,
|
|
3825
|
+
sendRequest: d,
|
|
3826
|
+
isConnected: f,
|
|
3827
|
+
getState: p,
|
|
3828
|
+
manager: i
|
|
3829
|
+
};
|
|
3830
|
+
}
|
|
3831
|
+
function La(e, i = {}) {
|
|
3832
|
+
let { autoLoad: a = !0, autoLoadSchema: o = !0 } = i, s = ba(), c = $(), l = X((t) => Ji(t, e)), u = X((t) => Yi(t, e)), d = X((t) => Xi(t, e)), f = X((t) => Zi(t, e)), p = X(J), m = t(async () => {
|
|
3833
|
+
s(zi({
|
|
3834
|
+
pluginName: e,
|
|
3835
|
+
loading: !0
|
|
3836
|
+
})), s(Bi({
|
|
3837
|
+
pluginName: e,
|
|
3838
|
+
error: null
|
|
3839
|
+
}));
|
|
3840
|
+
try {
|
|
3841
|
+
let t = await c.getConfig(e);
|
|
3842
|
+
return s(Vi({
|
|
3843
|
+
pluginName: e,
|
|
3844
|
+
config: t
|
|
3845
|
+
})), t;
|
|
3846
|
+
} catch (t) {
|
|
3847
|
+
throw console.error("[useConfig] getConfig failed:", t), s(Bi({
|
|
3848
|
+
pluginName: e,
|
|
3849
|
+
error: t instanceof Error ? t.message : "Unknown error"
|
|
3850
|
+
})), t;
|
|
3851
|
+
} finally {
|
|
3852
|
+
s(zi({
|
|
3853
|
+
pluginName: e,
|
|
3854
|
+
loading: !1
|
|
3855
|
+
}));
|
|
3856
|
+
}
|
|
3857
|
+
}, [
|
|
3858
|
+
e,
|
|
3859
|
+
c,
|
|
3860
|
+
s
|
|
3861
|
+
]), h = t(async (t) => {
|
|
3862
|
+
s(zi({
|
|
3863
|
+
pluginName: e,
|
|
3864
|
+
loading: !0
|
|
3865
|
+
})), s(Bi({
|
|
3866
|
+
pluginName: e,
|
|
3867
|
+
error: null
|
|
3868
|
+
}));
|
|
3869
|
+
try {
|
|
3870
|
+
let n = await c.setConfig(e, t);
|
|
3871
|
+
return {
|
|
3872
|
+
reloaded: n?.reloaded,
|
|
3873
|
+
message: n?.message
|
|
3874
|
+
};
|
|
3875
|
+
} catch (t) {
|
|
3876
|
+
throw console.error("[useConfig] setConfig failed:", t), s(Bi({
|
|
3877
|
+
pluginName: e,
|
|
3878
|
+
error: t instanceof Error ? t.message : "Unknown error"
|
|
3879
|
+
})), t;
|
|
3880
|
+
} finally {
|
|
3881
|
+
s(zi({
|
|
3882
|
+
pluginName: e,
|
|
3883
|
+
loading: !1
|
|
3884
|
+
}));
|
|
3885
|
+
}
|
|
3886
|
+
}, [
|
|
3887
|
+
e,
|
|
3888
|
+
c,
|
|
3889
|
+
s
|
|
3890
|
+
]), g = t(async () => {
|
|
3891
|
+
try {
|
|
3892
|
+
let t = await c.getSchema(e);
|
|
3893
|
+
return t && s(Hi({
|
|
3894
|
+
pluginName: e,
|
|
3895
|
+
schema: t
|
|
3896
|
+
})), t;
|
|
3897
|
+
} catch (t) {
|
|
3898
|
+
throw console.error(`Failed to get schema for plugin ${e}:`, t), t;
|
|
3899
|
+
}
|
|
3900
|
+
}, [
|
|
3901
|
+
e,
|
|
3902
|
+
c,
|
|
3903
|
+
s
|
|
3904
|
+
]), _ = t(async () => {
|
|
3905
|
+
let e = [];
|
|
3906
|
+
a && e.push(m()), o && e.push(g()), await Promise.all(e);
|
|
3907
|
+
}, [
|
|
3908
|
+
a,
|
|
3909
|
+
o,
|
|
3910
|
+
m,
|
|
3911
|
+
g
|
|
3912
|
+
]);
|
|
3913
|
+
return n(() => {
|
|
3914
|
+
p && a && !l && !d && m().catch(console.error);
|
|
3915
|
+
}, [
|
|
3916
|
+
p,
|
|
3917
|
+
a,
|
|
3918
|
+
l,
|
|
3919
|
+
d,
|
|
3920
|
+
m
|
|
3921
|
+
]), n(() => {
|
|
3922
|
+
p && o && !u && g().catch(console.error);
|
|
3923
|
+
}, [
|
|
3924
|
+
p,
|
|
3925
|
+
o,
|
|
3926
|
+
u,
|
|
3927
|
+
g
|
|
3928
|
+
]), r(() => ({
|
|
3929
|
+
config: l,
|
|
3930
|
+
schema: u,
|
|
3931
|
+
loading: d,
|
|
3932
|
+
error: f,
|
|
3933
|
+
connected: p,
|
|
3934
|
+
getConfig: m,
|
|
3935
|
+
setConfig: h,
|
|
3936
|
+
getSchema: g,
|
|
3937
|
+
reload: _
|
|
3938
|
+
}), [
|
|
3939
|
+
l,
|
|
3940
|
+
u,
|
|
3941
|
+
d,
|
|
3942
|
+
f,
|
|
3943
|
+
p,
|
|
3944
|
+
m,
|
|
3945
|
+
h,
|
|
3946
|
+
g,
|
|
3947
|
+
_
|
|
3948
|
+
]);
|
|
3949
|
+
}
|
|
3950
|
+
function Ra() {
|
|
3951
|
+
let e = $(), n = X(Qi), i = X($i), a = X(J), o = t(async () => {
|
|
3952
|
+
try {
|
|
3953
|
+
let [t, n] = await Promise.all([e.getAllConfigs(), e.getAllSchemas()]);
|
|
3954
|
+
return {
|
|
3955
|
+
configs: t,
|
|
3956
|
+
schemas: n
|
|
3957
|
+
};
|
|
3958
|
+
} catch (e) {
|
|
3959
|
+
throw console.error("Failed to refresh all configs:", e), e;
|
|
3960
|
+
}
|
|
3961
|
+
}, [e]);
|
|
3962
|
+
return r(() => ({
|
|
3963
|
+
configs: n,
|
|
3964
|
+
schemas: i,
|
|
3965
|
+
connected: a,
|
|
3966
|
+
refreshAll: o
|
|
3967
|
+
}), [
|
|
3968
|
+
n,
|
|
3969
|
+
i,
|
|
3970
|
+
a,
|
|
3971
|
+
o
|
|
3972
|
+
]);
|
|
3973
|
+
}
|
|
3974
|
+
function za() {
|
|
3975
|
+
let e = $(), a = X(J), [o, s] = i(""), [c, l] = i([]), [u, d] = i(!1), [f, p] = i(null), m = t(async () => {
|
|
3976
|
+
d(!0), p(null);
|
|
3977
|
+
try {
|
|
3978
|
+
let t = await e.getConfigYaml();
|
|
3979
|
+
return s(t.yaml), l(t.pluginKeys), t;
|
|
3980
|
+
} catch (e) {
|
|
3981
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
3982
|
+
} finally {
|
|
3983
|
+
d(!1);
|
|
3984
|
+
}
|
|
3985
|
+
}, [e]), h = t(async (t) => {
|
|
3986
|
+
d(!0), p(null);
|
|
3987
|
+
try {
|
|
3988
|
+
let n = await e.saveConfigYaml(t);
|
|
3989
|
+
return s(t), n;
|
|
3990
|
+
} catch (e) {
|
|
3991
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
3992
|
+
} finally {
|
|
3993
|
+
d(!1);
|
|
3994
|
+
}
|
|
3995
|
+
}, [e]);
|
|
3996
|
+
return n(() => {
|
|
3997
|
+
a && !o && !u && m().catch(() => {});
|
|
3998
|
+
}, [
|
|
3999
|
+
a,
|
|
4000
|
+
o,
|
|
4001
|
+
u,
|
|
4002
|
+
m
|
|
4003
|
+
]), r(() => ({
|
|
4004
|
+
yaml: o,
|
|
4005
|
+
pluginKeys: c,
|
|
4006
|
+
loading: u,
|
|
4007
|
+
error: f,
|
|
4008
|
+
load: m,
|
|
4009
|
+
save: h
|
|
4010
|
+
}), [
|
|
4011
|
+
o,
|
|
4012
|
+
c,
|
|
4013
|
+
u,
|
|
4014
|
+
f,
|
|
4015
|
+
m,
|
|
4016
|
+
h
|
|
4017
|
+
]);
|
|
4018
|
+
}
|
|
4019
|
+
function Ba() {
|
|
4020
|
+
let e = $(), a = X(J), [o, s] = i([]), [c, l] = i(!1), [u, d] = i(null), f = t(async () => {
|
|
4021
|
+
l(!0), d(null);
|
|
4022
|
+
try {
|
|
4023
|
+
let t = await e.getEnvList();
|
|
4024
|
+
return s(t.files), t.files;
|
|
4025
|
+
} catch (e) {
|
|
4026
|
+
throw d(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4027
|
+
} finally {
|
|
4028
|
+
l(!1);
|
|
4029
|
+
}
|
|
4030
|
+
}, [e]), p = t(async (t) => {
|
|
4031
|
+
try {
|
|
4032
|
+
return (await e.getEnvFile(t)).content;
|
|
4033
|
+
} catch (e) {
|
|
4034
|
+
throw d(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4035
|
+
}
|
|
4036
|
+
}, [e]), m = t(async (t, n) => {
|
|
4037
|
+
l(!0), d(null);
|
|
4038
|
+
try {
|
|
4039
|
+
return await e.saveEnvFile(t, n);
|
|
4040
|
+
} catch (e) {
|
|
4041
|
+
throw d(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4042
|
+
} finally {
|
|
4043
|
+
l(!1);
|
|
4044
|
+
}
|
|
4045
|
+
}, [e]);
|
|
4046
|
+
return n(() => {
|
|
4047
|
+
a && o.length === 0 && !c && f().catch(() => {});
|
|
4048
|
+
}, [
|
|
4049
|
+
a,
|
|
4050
|
+
o.length,
|
|
4051
|
+
c,
|
|
4052
|
+
f
|
|
4053
|
+
]), r(() => ({
|
|
4054
|
+
files: o,
|
|
4055
|
+
loading: c,
|
|
4056
|
+
error: u,
|
|
4057
|
+
listFiles: f,
|
|
4058
|
+
getFile: p,
|
|
4059
|
+
saveFile: m
|
|
4060
|
+
}), [
|
|
4061
|
+
o,
|
|
4062
|
+
c,
|
|
4063
|
+
u,
|
|
4064
|
+
f,
|
|
4065
|
+
p,
|
|
4066
|
+
m
|
|
4067
|
+
]);
|
|
4068
|
+
}
|
|
4069
|
+
function Va() {
|
|
4070
|
+
let e = $(), a = X(J), [o, s] = i([]), [c, l] = i(!1), [u, d] = i(null), f = t(async () => {
|
|
4071
|
+
l(!0), d(null);
|
|
4072
|
+
try {
|
|
4073
|
+
let t = await e.getFileTree();
|
|
4074
|
+
return s(t.tree), t.tree;
|
|
4075
|
+
} catch (e) {
|
|
4076
|
+
throw d(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4077
|
+
} finally {
|
|
4078
|
+
l(!1);
|
|
4079
|
+
}
|
|
4080
|
+
}, [e]), p = t(async (t) => {
|
|
4081
|
+
try {
|
|
4082
|
+
return (await e.readFile(t)).content;
|
|
4083
|
+
} catch (e) {
|
|
4084
|
+
throw d(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4085
|
+
}
|
|
4086
|
+
}, [e]), m = t(async (t, n) => {
|
|
4087
|
+
l(!0), d(null);
|
|
4088
|
+
try {
|
|
4089
|
+
return await e.saveFile(t, n);
|
|
4090
|
+
} catch (e) {
|
|
4091
|
+
throw d(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4092
|
+
} finally {
|
|
4093
|
+
l(!1);
|
|
4094
|
+
}
|
|
4095
|
+
}, [e]);
|
|
4096
|
+
return n(() => {
|
|
4097
|
+
a && o.length === 0 && !c && f().catch(() => {});
|
|
4098
|
+
}, [
|
|
4099
|
+
a,
|
|
4100
|
+
o.length,
|
|
4101
|
+
c,
|
|
4102
|
+
f
|
|
4103
|
+
]), r(() => ({
|
|
4104
|
+
tree: o,
|
|
4105
|
+
loading: c,
|
|
4106
|
+
error: u,
|
|
4107
|
+
loadTree: f,
|
|
4108
|
+
readFile: p,
|
|
4109
|
+
saveFile: m
|
|
4110
|
+
}), [
|
|
4111
|
+
o,
|
|
4112
|
+
c,
|
|
4113
|
+
u,
|
|
4114
|
+
f,
|
|
4115
|
+
p,
|
|
4116
|
+
m
|
|
4117
|
+
]);
|
|
4118
|
+
}
|
|
4119
|
+
function Ha() {
|
|
4120
|
+
let e = $(), a = X(J), [o, s] = i(null), [c, l] = i([]), [u, d] = i(!1), [f, p] = i(null), m = t(async () => {
|
|
4121
|
+
d(!0), p(null);
|
|
4122
|
+
try {
|
|
4123
|
+
let t = await e.getDbInfo();
|
|
4124
|
+
return s(t), t;
|
|
4125
|
+
} catch (e) {
|
|
4126
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4127
|
+
} finally {
|
|
4128
|
+
d(!1);
|
|
4129
|
+
}
|
|
4130
|
+
}, [e]), h = t(async () => {
|
|
4131
|
+
d(!0), p(null);
|
|
4132
|
+
try {
|
|
4133
|
+
let t = await e.getDbTables();
|
|
4134
|
+
return l(t.tables), t.tables;
|
|
4135
|
+
} catch (e) {
|
|
4136
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4137
|
+
} finally {
|
|
4138
|
+
d(!1);
|
|
4139
|
+
}
|
|
4140
|
+
}, [e]), g = t(async (t, n, r, i) => {
|
|
4141
|
+
try {
|
|
4142
|
+
return await e.dbSelect(t, n, r, i);
|
|
4143
|
+
} catch (e) {
|
|
4144
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4145
|
+
}
|
|
4146
|
+
}, [e]), _ = t(async (t, n) => {
|
|
4147
|
+
try {
|
|
4148
|
+
return await e.dbInsert(t, n);
|
|
4149
|
+
} catch (e) {
|
|
4150
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4151
|
+
}
|
|
4152
|
+
}, [e]), v = t(async (t, n, r) => {
|
|
4153
|
+
try {
|
|
4154
|
+
return await e.dbUpdate(t, n, r);
|
|
4155
|
+
} catch (e) {
|
|
4156
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4157
|
+
}
|
|
4158
|
+
}, [e]), y = t(async (t, n) => {
|
|
4159
|
+
try {
|
|
4160
|
+
return await e.dbDelete(t, n);
|
|
4161
|
+
} catch (e) {
|
|
4162
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4163
|
+
}
|
|
4164
|
+
}, [e]), b = t(async (t) => {
|
|
4165
|
+
try {
|
|
4166
|
+
let n = await e.dbDropTable(t);
|
|
4167
|
+
return await h(), n;
|
|
4168
|
+
} catch (e) {
|
|
4169
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4170
|
+
}
|
|
4171
|
+
}, [e, h]), ee = t(async (t, n) => {
|
|
4172
|
+
try {
|
|
4173
|
+
return await e.kvGet(t, n);
|
|
4174
|
+
} catch (e) {
|
|
4175
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4176
|
+
}
|
|
4177
|
+
}, [e]), te = t(async (t, n, r, i) => {
|
|
4178
|
+
try {
|
|
4179
|
+
return await e.kvSet(t, n, r, i);
|
|
4180
|
+
} catch (e) {
|
|
4181
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4182
|
+
}
|
|
4183
|
+
}, [e]), ne = t(async (t, n) => {
|
|
4184
|
+
try {
|
|
4185
|
+
return await e.kvDelete(t, n);
|
|
4186
|
+
} catch (e) {
|
|
4187
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4188
|
+
}
|
|
4189
|
+
}, [e]), x = t(async (t) => {
|
|
4190
|
+
try {
|
|
4191
|
+
return await e.kvGetEntries(t);
|
|
4192
|
+
} catch (e) {
|
|
4193
|
+
throw p(e instanceof Error ? e.message : "Unknown error"), e;
|
|
4194
|
+
}
|
|
4195
|
+
}, [e]);
|
|
4196
|
+
return n(() => {
|
|
4197
|
+
a && !o && !u && (m().catch(() => {}), h().catch(() => {}));
|
|
4198
|
+
}, [
|
|
4199
|
+
a,
|
|
4200
|
+
o,
|
|
4201
|
+
u,
|
|
4202
|
+
m,
|
|
4203
|
+
h
|
|
4204
|
+
]), r(() => ({
|
|
4205
|
+
info: o,
|
|
4206
|
+
tables: c,
|
|
4207
|
+
loading: u,
|
|
4208
|
+
error: f,
|
|
4209
|
+
loadInfo: m,
|
|
4210
|
+
loadTables: h,
|
|
4211
|
+
dropTable: b,
|
|
4212
|
+
select: g,
|
|
4213
|
+
insert: _,
|
|
4214
|
+
update: v,
|
|
4215
|
+
remove: y,
|
|
4216
|
+
kvGet: ee,
|
|
4217
|
+
kvSet: te,
|
|
4218
|
+
kvDelete: ne,
|
|
4219
|
+
kvEntries: x
|
|
4220
|
+
}), [
|
|
4221
|
+
o,
|
|
4222
|
+
c,
|
|
4223
|
+
u,
|
|
4224
|
+
f,
|
|
4225
|
+
m,
|
|
4226
|
+
h,
|
|
4227
|
+
b,
|
|
4228
|
+
g,
|
|
4229
|
+
_,
|
|
4230
|
+
v,
|
|
4231
|
+
y,
|
|
4232
|
+
ee,
|
|
4233
|
+
te,
|
|
4234
|
+
ne,
|
|
4235
|
+
x
|
|
4236
|
+
]);
|
|
4237
|
+
}
|
|
4238
|
+
//#endregion
|
|
4239
|
+
//#region ../../../packages/client/client/index.ts
|
|
4240
|
+
function Ua(...e) {
|
|
4241
|
+
return rt(g(e));
|
|
4242
|
+
}
|
|
4243
|
+
//#endregion
|
|
4244
|
+
export { ka as ConnectionError, Z as ConnectionState, Da as DynamicRouter, a as Link, Aa as MessageError, ja as MessageHandler, o as Outlet, Oa as RequestTimeoutError, Q as WebSocketError, Ma as WebSocketManager, Pi as addEntry, xa as addPage, ya as addReducer, Si as addRoute, Ki as clearConfigs, Ea as clearPages, Ei as clearRoutes, Ua as cn, Pa as destroyWebSocketManager, Ta as getAllPages, wa as getPage, $ as getWebSocketManager, ki as loadScript, Ai as loadScripts, va as persistor, Gi as removeConfig, Fi as removeEntry, Sa as removePage, Ci as removeRoute, Fa as resetWebSocketManager, Qi as selectAllConfigs, $i as selectAllSchemas, Ji as selectConfig, J as selectConfigConnected, Zi as selectConfigError, Xi as selectConfigLoading, Yi as selectSchema, gi as setActiveMenu, Ri as setConnected, Bi as setError, zi as setLoading, Ti as setRoutes, hi as setSidebarOpen, Y as store, Ni as syncEntries, mi as toggleSidebar, ji as unloadScript, Vi as updateConfig, Ui as updateConfigs, Ca as updatePage, wi as updateRoute, Hi as updateSchema, Wi as updateSchemas, Ra as useAllConfigs, La as useConfig, za as useConfigYaml, Ha as useDatabase, ba as useDispatch, Ba as useEnvFiles, Va as useFiles, u as useNavigate, d as useOutlet, f as useParams, X as useSelector, Ia as useWebSocket };
|