try{!function(){var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fb112875-425a-4bb7-a26a-c2b71cb4977c",e._sentryDebugIdIdentifier="sentry-dbid-fb112875-425a-4bb7-a26a-c2b71cb4977c")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8577],{622:(e,t,r)=>{"use strict";r.d(t,{QP:()=>el});let o=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),n=[],i=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let r=i(e,t+1,n);if(r)return r}let s=r.validators;if(null===s)return;let a=0===t?e.join("-"):e.slice(t).join("-"),l=s.length;for(let e=0;e{let r=o();for(let o in e)a(e[o],r,o,t);return r},a=(e,t,r,o)=>{let n=e.length;for(let i=0;i{"string"==typeof e?c(e,t,r):"function"==typeof e?u(e,t,r,o):d(e,t,r,o)},c=(e,t,r)=>{(""===e?t:p(t,e)).classGroupId=r},u=(e,t,r,o)=>{h(e)?a(e(o),t,r,o):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},d=(e,t,r,o)=>{let n=Object.entries(e),i=n.length;for(let e=0;e{let r=e,n=t.split("-"),i=n.length;for(let e=0;e"isThemeGetter"in e&&!0===e.isThemeGetter,f=[],g=(e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),m=/\s+/,b=e=>{let t;if("string"==typeof e)return e;let r="";for(let o=0;o{let t=t=>t[e]||y;return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w=/^\((?:(\w[\w-]*):)?(.+)\)$/i,k=/^\d+\/\d+$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_=/\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$/,O=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,j=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>k.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),C=e=>e.endsWith("%")&&$(e.slice(0,-1)),R=e=>S.test(e),N=()=>!0,z=e=>_.test(e)&&!O.test(e),T=()=>!1,I=e=>j.test(e),A=e=>E.test(e),D=e=>!M(e)&&!H(e),F=e=>Z(e,eo,T),M=e=>x.test(e),V=e=>Z(e,en,z),U=e=>Z(e,ei,$),K=e=>Z(e,et,T),B=e=>Z(e,er,A),W=e=>Z(e,ea,I),H=e=>w.test(e),q=e=>ee(e,en),G=e=>ee(e,es),J=e=>ee(e,et),Q=e=>ee(e,eo),X=e=>ee(e,er),Y=e=>ee(e,ea,!0),Z=(e,t,r)=>{let o=x.exec(e);return!!o&&(o[1]?t(o[1]):r(o[2]))},ee=(e,t,r=!1)=>{let o=w.exec(e);return!!o&&(o[1]?t(o[1]):r)},et=e=>"position"===e||"percentage"===e,er=e=>"image"===e||"url"===e,eo=e=>"length"===e||"size"===e||"bg-size"===e,en=e=>"length"===e,ei=e=>"number"===e,es=e=>"family-name"===e,ea=e=>"shadow"===e,el=((e,...t)=>{let r,o,a,l,c=e=>{let t=o(e);if(t)return t;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:i}=t,s=[],a=e.trim().split(m),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:h}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let f=!!h,g=o(f?p.substring(0,h):p);if(!g){if(!f||!(g=o(p))){l=t+(l.length>0?" "+l:l);continue}f=!1}let m=0===u.length?"":1===u.length?u[0]:i(u).join(":"),b=d?m+"!":m,y=b+g;if(s.indexOf(y)>-1)continue;s.push(y);let v=n(g,f);for(let e=0;e0?" "+l:l)}return l})(e,r);return a(e,n),n};return l=u=>{var d;let p;return o=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null),n=(n,i)=>{r[n]=i,++t>e&&(t=0,o=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=o[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,o=e=>{let t,r=[],o=0,n=0,i=0,s=e.length;for(let a=0;ai?t-i:void 0)};if(t){let e=t+":",r=o;o=t=>t.startsWith(e)?r(t.slice(e.length)):g(f,!1,t,void 0,!0)}if(r){let e=o;o=t=>r({className:t,parseClassName:e})}return o})(d),sortModifiers:(p=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{p.set(e,1e6+t)}),e=>{let t=[],r=[];for(let o=0;o0&&(r.sort(),t.push(...r),r=[]),t.push(n)):r.push(n)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return s(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,o,n;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(o=(t=r.slice(1,-1)).indexOf(":"),(n=t.slice(0,o))?"arbitrary.."+n:void 0)}let o=e.split("-"),n=+(""===o[0]&&o.length>1);return i(o,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=o[e],i=r[e];if(t){if(i){let e=Array(i.length+t.length);for(let t=0;tl(((...e)=>{let t,r,o=0,n="";for(;o{let e=v("color"),t=v("font"),r=v("text"),o=v("font-weight"),n=v("tracking"),i=v("leading"),s=v("breakpoint"),a=v("container"),l=v("spacing"),c=v("radius"),u=v("shadow"),d=v("inset-shadow"),p=v("text-shadow"),h=v("drop-shadow"),f=v("blur"),g=v("perspective"),m=v("aspect"),b=v("ease"),y=v("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),H,M],S=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],O=()=>[H,M,l],j=()=>[P,"full","auto",...O()],E=()=>[L,"none","subgrid",H,M],z=()=>["auto",{span:["full",L,H,M]},L,H,M],T=()=>[L,"auto",H,M],I=()=>["auto","min","max","fr",H,M],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...O()],et=()=>[P,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],er=()=>[e,H,M],eo=()=>[...w(),J,K,{position:[H,M]}],en=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ei=()=>["auto","cover","contain",Q,F,{size:[H,M]}],es=()=>[C,q,V],ea=()=>["","none","full",c,H,M],el=()=>["",$,q,V],ec=()=>["solid","dashed","dotted","double"],eu=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ed=()=>[$,C,J,K],ep=()=>["","none",f,H,M],eh=()=>["none",$,H,M],ef=()=>["none",$,H,M],eg=()=>[$,H,M],em=()=>[P,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[N],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[D],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",$],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",P,M,H,m]}],container:["container"],columns:[{columns:[$,M,H,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:k()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",H,M]}],basis:[{basis:[P,"full","auto",a,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,P,"auto","initial","none",M]}],grow:[{grow:["",$,H,M]}],shrink:[{shrink:["",$,H,M]}],order:[{order:[L,"first","last","none",H,M]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[a,"screen",...et()]}],"min-w":[{"min-w":[a,"screen","none",...et()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",r,q,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,H,U]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",C,M]}],"font-family":[{font:[G,M,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:[n,H,M]}],"line-clamp":[{"line-clamp":[$,"none",H,U]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",H,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:er()}],"text-color":[{text:er()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ec(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",H,V]}],"text-decoration-color":[{decoration:er()}],"underline-offset":[{"underline-offset":[$,"auto",H,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,M]}],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",H,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:eo()}],"bg-repeat":[{bg:en()}],"bg-size":[{bg:ei()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,H,M],radial:["",H,M],conic:[L,H,M]},X,B]}],"bg-color":[{bg:er()}],"gradient-from-pos":[{from:es()}],"gradient-via-pos":[{via:es()}],"gradient-to-pos":[{to:es()}],"gradient-from":[{from:er()}],"gradient-via":[{via:er()}],"gradient-to":[{to:er()}],rounded:[{rounded:ea()}],"rounded-s":[{"rounded-s":ea()}],"rounded-e":[{"rounded-e":ea()}],"rounded-t":[{"rounded-t":ea()}],"rounded-r":[{"rounded-r":ea()}],"rounded-b":[{"rounded-b":ea()}],"rounded-l":[{"rounded-l":ea()}],"rounded-ss":[{"rounded-ss":ea()}],"rounded-se":[{"rounded-se":ea()}],"rounded-ee":[{"rounded-ee":ea()}],"rounded-es":[{"rounded-es":ea()}],"rounded-tl":[{"rounded-tl":ea()}],"rounded-tr":[{"rounded-tr":ea()}],"rounded-br":[{"rounded-br":ea()}],"rounded-bl":[{"rounded-bl":ea()}],"border-w":[{border:el()}],"border-w-x":[{"border-x":el()}],"border-w-y":[{"border-y":el()}],"border-w-s":[{"border-s":el()}],"border-w-e":[{"border-e":el()}],"border-w-t":[{"border-t":el()}],"border-w-r":[{"border-r":el()}],"border-w-b":[{"border-b":el()}],"border-w-l":[{"border-l":el()}],"divide-x":[{"divide-x":el()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":el()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ec(),"hidden","none"]}],"divide-style":[{divide:[...ec(),"hidden","none"]}],"border-color":[{border:er()}],"border-color-x":[{"border-x":er()}],"border-color-y":[{"border-y":er()}],"border-color-s":[{"border-s":er()}],"border-color-e":[{"border-e":er()}],"border-color-t":[{"border-t":er()}],"border-color-r":[{"border-r":er()}],"border-color-b":[{"border-b":er()}],"border-color-l":[{"border-l":er()}],"divide-color":[{divide:er()}],"outline-style":[{outline:[...ec(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,H,M]}],"outline-w":[{outline:["",$,q,V]}],"outline-color":[{outline:er()}],shadow:[{shadow:["","none",u,Y,W]}],"shadow-color":[{shadow:er()}],"inset-shadow":[{"inset-shadow":["none",d,Y,W]}],"inset-shadow-color":[{"inset-shadow":er()}],"ring-w":[{ring:el()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:er()}],"ring-offset-w":[{"ring-offset":[$,V]}],"ring-offset-color":[{"ring-offset":er()}],"inset-ring-w":[{"inset-ring":el()}],"inset-ring-color":[{"inset-ring":er()}],"text-shadow":[{"text-shadow":["none",p,Y,W]}],"text-shadow-color":[{"text-shadow":er()}],opacity:[{opacity:[$,H,M]}],"mix-blend":[{"mix-blend":[...eu(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eu()}],"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":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":ed()}],"mask-image-linear-to-pos":[{"mask-linear-to":ed()}],"mask-image-linear-from-color":[{"mask-linear-from":er()}],"mask-image-linear-to-color":[{"mask-linear-to":er()}],"mask-image-t-from-pos":[{"mask-t-from":ed()}],"mask-image-t-to-pos":[{"mask-t-to":ed()}],"mask-image-t-from-color":[{"mask-t-from":er()}],"mask-image-t-to-color":[{"mask-t-to":er()}],"mask-image-r-from-pos":[{"mask-r-from":ed()}],"mask-image-r-to-pos":[{"mask-r-to":ed()}],"mask-image-r-from-color":[{"mask-r-from":er()}],"mask-image-r-to-color":[{"mask-r-to":er()}],"mask-image-b-from-pos":[{"mask-b-from":ed()}],"mask-image-b-to-pos":[{"mask-b-to":ed()}],"mask-image-b-from-color":[{"mask-b-from":er()}],"mask-image-b-to-color":[{"mask-b-to":er()}],"mask-image-l-from-pos":[{"mask-l-from":ed()}],"mask-image-l-to-pos":[{"mask-l-to":ed()}],"mask-image-l-from-color":[{"mask-l-from":er()}],"mask-image-l-to-color":[{"mask-l-to":er()}],"mask-image-x-from-pos":[{"mask-x-from":ed()}],"mask-image-x-to-pos":[{"mask-x-to":ed()}],"mask-image-x-from-color":[{"mask-x-from":er()}],"mask-image-x-to-color":[{"mask-x-to":er()}],"mask-image-y-from-pos":[{"mask-y-from":ed()}],"mask-image-y-to-pos":[{"mask-y-to":ed()}],"mask-image-y-from-color":[{"mask-y-from":er()}],"mask-image-y-to-color":[{"mask-y-to":er()}],"mask-image-radial":[{"mask-radial":[H,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":ed()}],"mask-image-radial-to-pos":[{"mask-radial-to":ed()}],"mask-image-radial-from-color":[{"mask-radial-from":er()}],"mask-image-radial-to-color":[{"mask-radial-to":er()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":ed()}],"mask-image-conic-to-pos":[{"mask-conic-to":ed()}],"mask-image-conic-from-color":[{"mask-conic-from":er()}],"mask-image-conic-to-color":[{"mask-conic-to":er()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:eo()}],"mask-repeat":[{mask:en()}],"mask-size":[{mask:ei()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,M]}],filter:[{filter:["","none",H,M]}],blur:[{blur:ep()}],brightness:[{brightness:[$,H,M]}],contrast:[{contrast:[$,H,M]}],"drop-shadow":[{"drop-shadow":["","none",h,Y,W]}],"drop-shadow-color":[{"drop-shadow":er()}],grayscale:[{grayscale:["",$,H,M]}],"hue-rotate":[{"hue-rotate":[$,H,M]}],invert:[{invert:["",$,H,M]}],saturate:[{saturate:[$,H,M]}],sepia:[{sepia:["",$,H,M]}],"backdrop-filter":[{"backdrop-filter":["","none",H,M]}],"backdrop-blur":[{"backdrop-blur":ep()}],"backdrop-brightness":[{"backdrop-brightness":[$,H,M]}],"backdrop-contrast":[{"backdrop-contrast":[$,H,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,H,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,H,M]}],"backdrop-invert":[{"backdrop-invert":["",$,H,M]}],"backdrop-opacity":[{"backdrop-opacity":[$,H,M]}],"backdrop-saturate":[{"backdrop-saturate":[$,H,M]}],"backdrop-sepia":[{"backdrop-sepia":["",$,H,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",H,M]}],ease:[{ease:["linear","initial",b,H,M]}],delay:[{delay:[$,H,M]}],animate:[{animate:["none",y,H,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,H,M]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:eh()}],"rotate-x":[{"rotate-x":eh()}],"rotate-y":[{"rotate-y":eh()}],"rotate-z":[{"rotate-z":eh()}],scale:[{scale:ef()}],"scale-x":[{"scale-x":ef()}],"scale-y":[{"scale-y":ef()}],"scale-z":[{"scale-z":ef()}],"scale-3d":["scale-3d"],skew:[{skew:eg()}],"skew-x":[{"skew-x":eg()}],"skew-y":[{"skew-y":eg()}],transform:[{transform:[H,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:em()}],"translate-x":[{"translate-x":em()}],"translate-y":[{"translate-y":em()}],"translate-z":[{"translate-z":em()}],"translate-none":["translate-none"],accent:[{accent:er()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:er()}],"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",H,M]}],"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":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",H,M]}],fill:[{fill:["none",...er()]}],"stroke-w":[{stroke:[$,q,V,U]}],stroke:[{stroke:["none",...er()]}],"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"]}})},2834:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>f,bN:()=>u,d4:()=>w,wA:()=>v});var o=r(12115),n=r(30789),i={notify(){},get:()=>[]},s="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a="u">typeof navigator&&"ReactNative"===navigator.product,l=s||a?o.useLayoutEffect:o.useEffect;function c(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function u(e,t){if(c(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let o=0;otypeof globalThis?globalThis:{},h=function(){if(!o.createContext)return{};let e=p[d]??=new Map,t=e.get(o.createContext);return t||(t=o.createContext(null),e.set(o.createContext,t)),t}(),f=function(e){let{children:t,context:r,serverState:n,store:s}=e,a=o.useMemo(()=>{let e=function(e,t){let r,o=i,n=0,s=!1;function a(){u.onStateChange&&u.onStateChange()}function l(){if(n++,!r){let t,n;r=e.subscribe(a),t=null,n=null,o={clear(){t=null,n=null},notify(){let e=t;for(;e;)e.callback(),e=e.next},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}}function c(){n--,r&&0===n&&(r(),r=void 0,o.clear(),o=i)}let u={addNestedSub:function(e){l();let t=o.subscribe(e),r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:a,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,l())},tryUnsubscribe:function(){s&&(s=!1,c())},getListeners:()=>o};return u}(s);return{store:s,subscription:e,getServerState:n?()=>n:void 0}},[s,n]),c=o.useMemo(()=>s.getState(),[s]);return l(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==s.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,c]),o.createElement((r||h).Provider,{value:a},t)};function g(e=h){return function(){return o.useContext(e)}}var m=g();function b(e=h){let t=e===h?m:g(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var y=b(),v=function(e=h){let t=e===h?y:b(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}(),x=(e,t)=>e===t,w=function(e=h){let t=e===h?m:g(e),r=(e,r={})=>{let{equalityFn:i=x}="function"==typeof r?{equalityFn:r}:r,{store:s,subscription:a,getServerState:l}=t();o.useRef(!0);let c=o.useCallback({[e.name]:t=>e(t)}[e.name],[e]),u=(0,n.useSyncExternalStoreWithSelector)(a.addNestedSub,s.getState,l||s.getState,c,i);return o.useDebugValue(u),u};return Object.assign(r,{withTypes:()=>r}),r}()},5504:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},11785:(e,t,r)=>{"use strict";r.d(t,{CF:()=>m,U1:()=>b,VP:()=>c,zD:()=>_,Nc:()=>es,Z0:()=>P,aA:()=>f});var o,n=r(99050),i=r(61754);function s(e){return({dispatch:t,getState:r})=>o=>n=>"function"==typeof n?n(t,r,e):o(n)}var a=s(),l=(r(41463),"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?i.Zz:i.Zz.apply(null,arguments)});function c(e,t){function r(...o){if(t){let r=t(...o);if(!r)throw Error(ea(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:o[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>(0,i.ve)(t)&&t.type===e,r}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var u=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function d(e){return(0,n.a6)(e)?(0,n.jM)(e,()=>{}):e}function p(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var h="RTK_autoBatch",f=()=>e=>({payload:e,meta:{[h]:!0}}),g=e=>t=>{setTimeout(t,e)},m=(e={type:"raf"})=>t=>(...r)=>{let o=t(...r),n=!0,i=!1,s=!1,a=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:g(10):"callback"===e.type?e.queueNotification:g(e.timeout),c=()=>{s=!1,i&&(i=!1,a.forEach(e=>e()))};return Object.assign({},o,{subscribe(e){let t=o.subscribe(()=>n&&e());return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return(i=!(n=!e?.meta?.[h]))&&!s&&(s=!0,l(c)),o.dispatch(e)}finally{n=!0}}})};function b(e){let t,r,o,n=function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=e??{},i=new u;return t&&("boolean"==typeof t?i.push(a):i.push(s(t.extraArgument))),i},{reducer:c,middleware:d,devTools:p=!0,duplicateMiddlewareCheck:h=!0,preloadedState:f,enhancers:g}=e||{};if("function"==typeof c)t=c;else if((0,i.Qd)(c))t=(0,i.HY)(c);else throw Error(ea(1));r="function"==typeof d?d(n):n();let b=i.Zz;p&&(b=l({trace:!1,..."object"==typeof p&&p}));let y=(o=(0,i.Tw)(...r),function(e){let{autoBatch:t=!0}=e??{},r=new u(o);return t&&r.push(m("object"==typeof t?t:void 0)),r}),v=b(..."function"==typeof g?g(y):y());return(0,i.y$)(t,f,v)}function y(e){let t,r={},o=[],n={addCase(e,t){let o="string"==typeof e?e:e.type;if(!o)throw Error(ea(28));if(o in r)throw Error(ea(29));return r[o]=t,n},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&o.push({matcher:e.settled,reducer:t.settled}),n),addMatcher:(e,t)=>(o.push({matcher:e,reducer:t}),n),addDefaultCase:e=>(t=e,n)};return e(n),[r,o,t]}var v=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},x=["name","message","stack","code"],w=class{constructor(e,t){this.payload=e,this.meta=t}},k=class{constructor(e,t){this.payload=e,this.meta=t}},S="External signal was aborted",_=(()=>{function e(e,t,r){let o=c(e+"/fulfilled",(e,t,r,o)=>({payload:e,meta:{...o||{},arg:r,requestId:t,requestStatus:"fulfilled"}})),n=c(e+"/pending",(e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}})),i=c(e+"/rejected",(e,t,o,n,i)=>({payload:n,error:(r&&r.serializeError||(e=>{if("object"==typeof e&&null!==e){let t={};for(let r of x)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}}))(e||"Rejected"),meta:{...i||{},arg:o,requestId:t,rejectedWithValue:!!n,requestStatus:"rejected",aborted:e?.name==="AbortError",condition:e?.name==="ConditionError"}}));return Object.assign(function(e,{signal:s}={}){return(a,l,c)=>{let u,d,p=r?.idGenerator?r.idGenerator(e):v(),h=new AbortController;function f(e){d=e,h.abort()}s&&(s.aborted?f(S):s.addEventListener("abort",()=>f(S),{once:!0}));let g=async function(){let s;try{var g;let i=r?.condition?.(e,{getState:l,extra:c});if(g=i,null!==g&&"object"==typeof g&&"function"==typeof g.then&&(i=await i),!1===i||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let m=new Promise((e,t)=>{u=()=>{t({name:"AbortError",message:d||"Aborted"})},h.signal.addEventListener("abort",u)});a(n(p,e,r?.getPendingMeta?.({requestId:p,arg:e},{getState:l,extra:c}))),s=await Promise.race([m,Promise.resolve(t(e,{dispatch:a,getState:l,extra:c,requestId:p,signal:h.signal,abort:f,rejectWithValue:(e,t)=>new w(e,t),fulfillWithValue:(e,t)=>new k(e,t)})).then(t=>{if(t instanceof w)throw t;return t instanceof k?o(t.payload,p,e,t.meta):o(t,p,e)})])}catch(t){s=t instanceof w?i(null,p,e,t.payload,t.meta):i(t,p,e)}finally{u&&h.signal.removeEventListener("abort",u)}return r&&!r.dispatchConditionRejection&&i.match(s)&&s.meta.condition||a(s),s}();return Object.assign(g,{abort:f,requestId:p,arg:e,unwrap:()=>g.then(O)})}},{pending:n,rejected:i,fulfilled:o,settled:function(...e){return t=>e.some(e=>e&&"function"==typeof e.match?e.match(t):e(t))}(i,o),typePrefix:e})}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}var j=Symbol.for("rtk-slice-createasyncthunk"),E=((o=E||{}).reducer="reducer",o.reducerWithPrepare="reducerWithPrepare",o.asyncThunk="asyncThunk",o),P=function({creators:e}={}){let t=e?.asyncThunk?.[j];return function(e){let r,{name:o,reducerPath:i=o}=e;if(!o)throw Error(ea(11));let s=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(s),l={},u={},h={},f=[],g={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(ea(12));if(r in u)throw Error(ea(13));return u[r]=t,g},addMatcher:(e,t)=>(f.push({matcher:e,reducer:t}),g),exposeAction:(e,t)=>(h[e]=t,g),exposeCaseReducer:(e,t)=>(l[e]=t,g)};function m(){let[t={},r=[],o]="function"==typeof e.extraReducers?y(e.extraReducers):[e.extraReducers],i={...t,...u};return function(e,t){let r,[o,i,s]=y(t);if("function"==typeof e)r=()=>d(e());else{let t=d(e);r=()=>t}function a(e=r(),t){let l=[o[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===l.filter(e=>!!e).length&&(l=[s]),l.reduce((e,r)=>{if(r)if((0,n.Qx)(e)){let o=r(e,t);return void 0===o?e:o}else{if((0,n.a6)(e))return(0,n.jM)(e,e=>r(e,t));let o=r(e,t);if(void 0===o){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return e},e)}return a.getInitialState=r,a}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of f)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);o&&e.addDefaultCase(o)})}a.forEach(r=>{let n=s[r],i={reducerName:r,type:`${o}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===n._reducerDefinitionType?function({type:e,reducerName:t},r,o,n){if(!n)throw Error(ea(18));let{payloadCreator:i,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,d=n(e,i,u);o.exposeAction(t,d),s&&o.addCase(d.fulfilled,s),a&&o.addCase(d.pending,a),l&&o.addCase(d.rejected,l),c&&o.addMatcher(d.settled,c),o.exposeCaseReducer(t,{fulfilled:s||$,pending:a||$,rejected:l||$,settled:c||$})}(i,n,g,t):function({type:e,reducerName:t,createNotation:r},o,n){let i,s;if("reducer"in o){if(r&&"reducerWithPrepare"!==o._reducerDefinitionType)throw Error(ea(17));i=o.reducer,s=o.prepare}else i=o;n.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?c(e,s):c(e))}(i,n,g)});let b=e=>e,v=new Map,x=new WeakMap;function w(e,t){return r||(r=m()),r(e,t)}function k(){return r||(r=m()),r.getInitialState()}function S(t,r=!1){function o(e){let n=e[t];return void 0===n&&r&&(n=p(x,o,k)),n}function n(t=b){let o=p(v,r,()=>new WeakMap);return p(o,t,()=>{let o={};for(let[n,i]of Object.entries(e.selectors??{}))o[n]=function(e,t,r,o){function n(i,...s){let a=t(i);return void 0===a&&o&&(a=r()),e(a,...s)}return n.unwrapped=e,n}(i,t,()=>p(x,t,k),r);return o})}return{reducerPath:t,getSelectors:n,get selectors(){return n(o)},selectSlice:o}}let _={name:o,reducer:w,actions:h,caseReducers:l,getInitialState:k,...S(i),injectInto(e,{reducerPath:t,...r}={}){let o=t??i;return e.inject({reducerPath:o,reducer:w},r),{..._,...S(o,!0)}}};return _}}();function $(){}var L="listener",C="completed",R="cancelled",N=`task-${R}`,z=`task-${C}`,T=`${L}-${R}`,I=`${L}-${C}`,A=class{constructor(e){this.name="TaskAbortError",this.code=e,this.message=`task ${R} (reason: ${e})`}},D=(e,t)=>{if("function"!=typeof e)throw TypeError(ea(32))},F=()=>{},M=(e,t=F)=>(e.catch(t),e),V=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),U=(e,t)=>{let r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},K=e=>{if(e.aborted){let{reason:t}=e;throw new A(t)}};function B(e,t){let r=F;return new Promise((o,n)=>{let i=()=>n(new A(e.reason));e.aborted?i():(r=V(e,i),t.finally(()=>r()).then(o,n))}).finally(()=>{r=F})}var W=async(e,t)=>{try{await Promise.resolve();let t=await e();return{status:"ok",value:t}}catch(e){return{status:e instanceof A?"cancelled":"rejected",error:e}}finally{t?.()}},H=e=>t=>M(B(e,t).then(t=>(K(e),t))),q=e=>{let t=H(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:G}=Object,J={},Q="listenerMiddleware",X=e=>{let{type:t,actionCreator:r,matcher:o,predicate:n,effect:i}=e;if(t)n=c(t).match;else if(r)t=r.type,n=r.match;else if(o)n=o;else if(n);else throw Error(ea(21));return D(i,"options.listener"),{predicate:n,type:t,effect:i}},Y=G(e=>{let{type:t,predicate:r,effect:o}=X(e);return{id:v(),effect:o,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(ea(22))}}},{withTypes:()=>Y}),Z=(e,t)=>{let{type:r,effect:o,predicate:n}=X(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===n)&&e.effect===o)},ee=e=>{e.pending.forEach(e=>{U(e,T)})},et=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},er=G(c(`${Q}/add`),{withTypes:()=>er}),eo=c(`${Q}/removeAll`),en=G(c(`${Q}/remove`),{withTypes:()=>en}),ei=(...e)=>{console.error(`${Q}/error`,...e)},es=(e={})=>{let t=new Map,r=new Map,{extra:o,onError:n=ei}=e;D(n,"onError");let s=e=>{var r;return(r=Z(t,e)??Y(e)).unsubscribe=()=>t.delete(r.id),t.set(r.id,r),e=>{r.unsubscribe(),e?.cancelActive&&ee(r)}};G(s,{withTypes:()=>s});let a=e=>{let r=Z(t,e);return r&&(r.unsubscribe(),e.cancelActive&&ee(r)),!!r};G(a,{withTypes:()=>a});let l=async(e,i,a,l)=>{var c,u;let d,p=new AbortController,h=(c=p.signal,d=async(e,t)=>{K(c);let r=()=>{},o=[new Promise((t,o)=>{let n=s({predicate:e,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});r=()=>{n(),o()}})];null!=t&&o.push(new Promise(e=>setTimeout(e,t,null)));try{let e=await B(c,Promise.race(o));return K(c),e}finally{r()}},(e,t)=>M(d(e,t))),f=[];try{let n;e.pending.add(p),n=r.get(e)??0,r.set(e,n+1),await Promise.resolve(e.effect(i,G({},a,{getOriginalState:l,condition:(e,t)=>h(e,t).then(Boolean),take:h,delay:q(p.signal),pause:H(p.signal),extra:o,signal:p.signal,fork:(u=p.signal,(e,t)=>{D(e,"taskExecutor");let r=new AbortController;V(u,()=>U(r,u.reason));let o=W(async()=>{K(u),K(r.signal);let t=await e({pause:H(r.signal),delay:q(r.signal),signal:r.signal});return K(r.signal),t},()=>U(r,z));return t?.autoJoin&&f.push(o.catch(F)),{result:H(u)(o),cancel(){U(r,N)}}}),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==p&&(U(e,T),r.delete(e))})},cancel:()=>{U(p,T),e.pending.delete(p)},throwIfCancelled:()=>{K(p.signal)}})))}catch(e){e instanceof A||et(n,e,{raisedBy:"effect"})}finally{let t;await Promise.all(f),U(p,I),1===(t=r.get(e)??1)?r.delete(e):r.set(e,t-1),e.pending.delete(p)}},c=()=>{for(let e of r.keys())ee(e);t.clear()};return{middleware:e=>r=>o=>{let u;if(!(0,i.ve)(o))return r(o);if(er.match(o))return s(o.payload);if(eo.match(o))return void c();if(en.match(o))return a(o.payload);let d=e.getState(),p=()=>{if(d===J)throw Error(ea(23));return d};try{if(u=r(o),t.size>0){let r=e.getState();for(let i of Array.from(t.values())){let t=!1;try{t=i.predicate(o,r,d)}catch(e){t=!1,et(n,e,{raisedBy:"predicate"})}t&&l(i,o,e,p)}}}finally{d=J}return u},startListening:s,stopListening:a,clearListeners:c}};function ea(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. `}Symbol.for("rtk-state-proxy-original")},29722:(e,t,r)=>{"use strict";function o(){for(var e,t,r=0,o="",n=arguments.length;ro,A:()=>n});let n=o},30789:(e,t,r)=>{"use strict";e.exports=r(89043)},50931:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>W});let o=e=>"string"==typeof e,n=()=>{let e,t,r=new Promise((r,o)=>{e=r,t=o});return r.resolve=e,r.reject=t,r},i=e=>null==e?"":""+e,s=/###/g,a=e=>e&&e.indexOf("###")>-1?e.replace(s,"."):e,l=e=>!e||o(e),c=(e,t,r)=>{let n=o(t)?t.split("."):t,i=0;for(;i{let{obj:o,k:n}=c(e,t,Object);if(void 0!==o||1===t.length){o[n]=r;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=c(e,s,Object);for(;void 0===a.obj&&s.length;)i=`${s[s.length-1]}.${i}`,a=c(e,s=s.slice(0,s.length-1),Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=r},d=(e,t)=>{let{obj:r,k:o}=c(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,o))return r[o]},p=(e,t,r)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?o(e[n])||e[n]instanceof String||o(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):p(e[n],t[n],r):e[n]=t[n]);return e};var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let f=e=>o(e)?e.replace(/[&<>"'\/]/g,e=>h[e]):e;class g{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let m=[" ",",","?","!",";"],b=new g(20),y=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let o=t.split(r),n=e;for(let e=0;e-1&&se?.replace("_","-"),x={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class w{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||x,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(o(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new w(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new w(this.logger,e)}}var k=new w;class S{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let o=0;o{for(let n=0;nthis.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,n={}){let i,s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):o(r)&&s?i.push(...r.split(s)):i.push(r)));let l=d(this.data,i);return(!l&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),!l&&a&&o(r))?y(this.data?.[e]?.[t],r,s):l}addResource(e,t,r,o,n={silent:!1}){let i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=[e,t];r&&(s=s.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(s=e.split("."),o=t,t=s[1]),this.addNamespaces(t),u(this.data,s,o),n.silent||this.emit("added",e,t,r,o)}addResources(e,t,r,n={silent:!1}){for(let n in r)(o(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,o,n,i={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),o=r,r=t,t=s[1]),this.addNamespaces(t);let a=d(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?p(a,r,n):a={...a,...r},u(this.data,s,a),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var O={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,o,n){return e.forEach(e=>{t=this.processors[e]?.process(t,r,o,n)??t}),t}};let j=Symbol("i18next/PATH_KEY");function E(e,t){let r,o,n,{[j]:i}=e((o=[],(n=Object.create(null)).get=(e,t)=>(r?.revoke?.(),t===j)?o:(o.push(t),(r=Proxy.revocable(e,n)).proxy),Proxy.revocable(Object.create(null),n).proxy));return i.join(t?.keySeparator??".")}let P={},$=e=>!o(e)&&"boolean"!=typeof e&&"number"!=typeof e;class L extends S{constructor(e,t={}){super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let r={...t};if(null==e)return!1;let o=this.resolve(e,r);if(o?.res===void 0)return!1;let n=$(o.res);return!1!==r.returnObjects||!n}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],s=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";let o=m.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===o.length)return!0;let n=b.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),i=!n.test(e);if(!i){let t=e.indexOf(r);t>0&&!n.test(e.substring(0,t))&&(i=!0)}return i})(e,r,n);if(s&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o(i)?[i]:i};let s=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(s[0])>-1)&&(i=s.shift()),e=s.join(n)}return{key:e,namespaces:o(i)?[i]:i}}translate(e,t,r){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=E(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]);let i=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],n),c=l[l.length-1],u=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");let d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return p?i?{res:`${c}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${u}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:a;let h=this.resolve(e,n),f=h?.res,g=h?.usedKey||a,m=h?.exactUsedKey||a,b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==n.count&&!o(n.count),x=L.hasDefaultValue(n),w=v?this.pluralResolver.getSuffix(d,n.count,n):"",k=n.ordinal&&v?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",S=v&&!n.ordinal&&0===n.count,_=S&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${w}`]||n[`defaultValue${k}`]||n.defaultValue,O=f;y&&!f&&x&&(O=_);let j=$(O),P=Object.prototype.toString.apply(O);if(y&&O&&j&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(P)&&!(o(b)&&Array.isArray(O))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,O,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(h.res=e,h.usedParams=this.getUsedParamsDetails(n),h):e}if(s){let e=Array.isArray(O),t=e?[]:{},r=e?m:g;for(let e in O)if(Object.prototype.hasOwnProperty.call(O,e)){let o=`${r}${s}${e}`;x&&!f?t[e]=this.translate(o,{...n,defaultValue:$(_)?_[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(o,{...n,joinArrays:!1,ns:l}),t[e]===o&&(t[e]=O[e])}f=t}}else if(y&&o(b)&&Array.isArray(f))(f=f.join(b))&&(f=this.extendTranslation(f,e,n,r));else{let t=!1,o=!1;!this.isValidLookup(f)&&x&&(t=!0,f=_),this.isValidLookup(f)||(o=!0,f=a);let i=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:f,l=x&&_!==f&&this.options.updateMissing;if(o||t||l){if(this.logger.log(l?"updateKey":"missingKey",d,c,a,l?_:f),s){let e=this.resolve(a,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r{let o=x&&r!==f?r:i;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,o,l,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,c,t,o,l,n),this.emit("missingKey",e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);S&&n[`defaultValue${this.options.pluralSeparator}zero`]&&0>t.indexOf(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,n[`defaultValue${t}`]||_)})}):r(e,a,_))}f=this.extendTranslation(f,e,n,h,r),o&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${c}${u}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${a}`:a,t?f:void 0,n))}return i?(h.res=f,h.usedParams=this.getUsedParamsDetails(n),h):f}extendTranslation(e,t,r,n,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let s;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let a=o(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&!o(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||n.usedLng,r),a){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,a=o(s)?[s]:s;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=O.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,i,s,a;return o(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(r))return;let l=this.extractFromKey(e,t),c=l.key;n=c;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let d=void 0!==t.count&&!o(t.count),p=d&&!t.ordinal&&0===t.count,h=void 0!==t.context&&(o(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(r)||(a=e,!P[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(P[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(o=>{let n;if(this.isValidLookup(r))return;s=o;let a=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,c,o,e,t);else{let e;d&&(e=this.pluralResolver.getSuffix(o,t.count,t));let r=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(t.ordinal&&0===e.indexOf(n)&&a.push(c+e.replace(n,this.options.pluralSeparator)),a.push(c+e),p&&a.push(c+r)),h){let o=`${c}${this.options.contextSeparator||"_"}${t.context}`;a.push(o),d&&(t.ordinal&&0===e.indexOf(n)&&a.push(o+e.replace(n,this.options.pluralSeparator)),a.push(o+e),p&&a.push(o+r))}}for(;n=a.pop();)this.isValidLookup(r)||(i=n,r=this.getResource(o,e,n,t))}))})}),{res:r,usedKey:n,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,o):this.resourceStore.getResource(e,t,r,o)}getUsedParamsDetails(e={}){let t=e.replace&&!o(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}class C{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(o(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;let o=this.getLanguagePartFromCode(e);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(e=>{if(e===o||!(0>e.indexOf("-")&&0>o.indexOf("-"))&&(e.indexOf("-")>0&&0>o.indexOf("-")&&e.substring(0,e.indexOf("-"))===o||0===e.indexOf(o)&&o.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),o(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],i=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return o(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):o(e)&&i(this.formatLanguageCode(e)),r.forEach(e=>{0>n.indexOf(e)&&i(this.formatLanguageCode(e))}),n}}let R={zero:0,one:1,two:2,few:3,many:4,other:5},N={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class z{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let r,o=v("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{r=new Intl.PluralRules(o,{type:n})}catch(n){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),N;if(!e.match(/-|_/))return N;let o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return(r||(r=this.getRule("dev",t)),r)?r.resolvedOptions().pluralCategories.sort((e,t)=>R[e]-R[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){let o=this.getRule(e,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}let T=(e,t,r,n=".",i=!0)=>{let s,a=void 0!==(s=d(e,r))?s:d(t,r);return!a&&i&&o(r)&&void 0===(a=y(e,r,n))&&(a=y(t,r,n)),a};class I{constructor(e={}){this.logger=k.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:o,prefix:n,prefixEscaped:i,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:g,nestingOptionsSeparator:m,maxReplaces:b,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:f,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==o&&o,this.prefix=n?n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):i||"{{",this.suffix=s?s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):g||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=m||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let s,a,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(0>e.indexOf(this.formatSeparator)){let o=T(t,c,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format(T(t,c,i,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...n,...t,interpolationkey:i})};this.resetRegExp();let d=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e).replace(/\$/g,"$$$$"):e.replace(/\$/g,"$$$$")}].forEach(t=>{for(l=0;s=t.regex.exec(e);){let r=s[1].trim();if(void 0===(a=u(r)))if("function"==typeof d){let t=d(e,s,n);a=o(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))a="";else if(p){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a="";else o(a)||this.useRawValueToEscape||(a=i(a));let c=t.safeValue(a);if(e=e.replace(s[0],c),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=s[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,r={}){let n,s,a,l=(e,t)=>{let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let o=e.split(RegExp(`${r}[ ]*{`)),n=`{${o[1]}`;e=o[0];let i=(n=this.interpolate(n,a)).match(/'/g),s=n.match(/"/g);((i?.length??0)%2!=0||s)&&s.length%2==0||(n=n.replace(/'/g,'"'));try{a=JSON.parse(n),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${n}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let c=[];(a=(a={...r}).replace&&!o(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let u=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==u&&(c=n[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,u)),(s=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&!o(s))return s;o(s)||(s=i(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),s=""),c.length&&(s=c.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:n[1].trim()}),s.trim())),e=e.replace(n[0],s),this.regexp.lastIndex=0}return e}}let A=e=>{let t={};return(r,o,n)=>{let i=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(i={...i,[n.interpolationkey]:void 0});let s=o+JSON.stringify(i),a=t[s];return a||(a=e(v(o),n),t[s]=a),a(r)}},D=e=>(t,r,o)=>e(v(r),o)(t);class F{constructor(e={}){this.logger=k.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let r=t.cacheInBuiltFormats?A:D;this.formats={number:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=A(t)}format(e,t,r,o={}){let n=t.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&0>n[0].indexOf(")")&&n.find(e=>e.indexOf(")")>-1)){let e=n.findIndex(e=>e.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,e)].join(this.formatSeparator)}return n.reduce((e,t)=>{let{formatName:n,formatOptions:i}=(e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let o=e.split("(");t=o[0].toLowerCase().trim();let n=o[1].substring(0,o[1].length-1);"currency"===t&&0>n.indexOf(":")?r.currency||(r.currency=n.trim()):"relativetime"===t&&0>n.indexOf(":")?r.range||(r.range=n.trim()):n.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),n=o.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();r[i]||(r[i]=n),"false"===n&&(r[i]=!1),"true"===n&&(r[i]=!0),isNaN(n)||(r[i]=parseInt(n,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[n]){let t=e;try{let s=o?.formatParams?.[o.interpolationkey]||{},a=s.locale||s.lng||o.locale||o.lng||r;t=this.formats[n](e,a,{...i,...o,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${n}`),e},e)}}class M extends S{constructor(e,t,r,o={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(e,t,r,o){let n={},i={},s={},a={};return e.forEach(e=>{let o=!0;t.forEach(t=>{let s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===i[s]&&(i[s]=!0):(this.state[s]=1,o=!1,void 0===i[s]&&(i[s]=!0),void 0===n[s]&&(n[s]=!0),void 0===a[t]&&(a[t]=!0)))}),o||(s[e]=!0)}),(Object.keys(n).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(n),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let o=e.split("|"),n=o[0],i=o[1];t&&this.emit("failedLoading",n,i,t),!t&&r&&this.store.addResourceBundle(n,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let s={};this.queue.forEach(r=>{((e,t,r,o)=>{let{obj:n,k:i}=c(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[n],i),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,o=0,n=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:o,wait:n,callback:i});this.readingCalls++;let s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&o{this.read.call(this,e,t,r,o+1,2*n,i)},n):i(s,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}return}return a(e,t,s)}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();o(e)&&(e=this.languageUtils.toResolveHierarchy(e)),o(t)&&(t=[t]);let i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){let r=e.split("|"),o=r[0],n=r[1];this.read(o,n,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${t}loading namespace ${n} for language ${o} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${n} for language ${o}`,i),this.loaded(e,r,i)})}saveMissing(e,t,r,o,n,i={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=r&&""!==r){if(this.backend?.create){let a={...i,isUpdate:n},l=this.backend.create.bind(this.backend);if(l.length<6)try{let n;(n=5===l.length?l(e,t,r,o,a):l(e,t,r,o))&&"function"==typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(e){s(e)}else l(e,t,r,o,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,o)}}}let V=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),o(e[1])&&(t.defaultValue=e[1]),o(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),U=e=>(o(e.ns)&&(e.ns=[e.ns]),o(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),o(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),K=()=>{};class B extends S{constructor(e={},t){if(super(),this.options=U(e),this.services={},this.logger=k,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(o(e.ns)?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let r=V();this.options={...r,...this.options,...U(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);let i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?k.init(i(this.modules.logger),this.options):k.init(null,this.options),e=this.modules.formatter?this.modules.formatter:F;let t=new C(this.options);this.store=new _(this.options.resources,this.options);let o=this.services;o.logger=k,o.resourceStore=this.store,o.languageUtils=t,o.pluralResolver=new z(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),e&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(o.formatter=i(e),o.formatter.init&&o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new I(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new M(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=K),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let s=n(),a=()=>{let e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),s}loadResources(e,t=K){let r=t,n=o(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let o=n();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=K),this.services.backendConnector.reload(e,t,e=>{o.resolve(),r(e)}),o}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&O.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&0>this.languages.indexOf(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let r=n();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(o,n)=>{n?this.isLanguageChangingTo===e&&(i(n),this.translator.changeLanguage(n),this.isLanguageChangingTo=void 0,this.emit("languageChanged",n),this.logger.log("languageChanged",n)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);let r=o(t)?t:t&&t[0],n=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(o(t)?[t]:t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector?.cacheUserLanguage?.(n)),this.loadResources(n,e=>{s(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,r){let n=(e,t,...o)=>{let i,s;(i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=i.lng||n.lng,i.lngs=i.lngs||n.lngs,i.ns=i.ns||n.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||n.keyPrefix);let a=this.options.keySeparator||".";return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=E(e,{...this.options,...t})),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=E(e,{...this.options,...t})),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return o(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=r,n}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let i=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!o||i(n,e)))}loadNamespaces(e,t){let r=n();return this.options.ns?(o(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=n();o(e)&&(e=[e]);let i=this.options.preload||[],s=e.filter(e=>0>i.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return s.length?(this.options.preload=i.concat(s),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new C(V());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let r=new B(e,t);return r.createInstance=B.createInstance,r}cloneInstance(e={},t=K){let r=e.forkResourceStore;r&&delete e.forkResourceStore;let o={...this.options,...e,isClone:!0},n=new B(o);return(void 0!==e.debug||void 0!==e.prefix)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(e=>{n[e]=this[e]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},r&&(n.store=new _(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,o)=>(r[o]={...e[t][o]},r),e[t]),e),{}),o),n.services.resourceStore=n.store),n.translator=new L(n.services,o),n.translator.on("*",(e,...t)=>{n.emit(e,...t)}),n.init(o,t),n.translator.options=o,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let W=B.createInstance();W.createInstance,W.dir,W.init,W.loadResources,W.reloadResources,W.use,W.changeLanguage,W.getFixedT,W.t,W.exists,W.setDefaultNamespace,W.hasLoadedNamespace,W.loadNamespaces,W.loadLanguages},61754:(e,t,r)=>{"use strict";function o(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. `}r.d(t,{HY:()=>c,Qd:()=>a,Tw:()=>d,Zz:()=>u,ve:()=>p,y$:()=>l});var n="function"==typeof Symbol&&Symbol.observable||"@@observable",i=()=>Math.random().toString(36).substring(7).split("").join("."),s={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function a(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,r){if("function"!=typeof e)throw Error(o(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(o(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(o(1));return r(l)(e,t)}let i=e,c=t,u=new Map,d=u,p=0,h=!1;function f(){d===u&&(d=new Map,u.forEach((e,t)=>{d.set(t,e)}))}function g(){if(h)throw Error(o(3));return c}function m(e){if("function"!=typeof e)throw Error(o(4));if(h)throw Error(o(5));let t=!0;f();let r=p++;return d.set(r,e),function(){if(t){if(h)throw Error(o(6));t=!1,f(),d.delete(r),u=null}}}function b(e){if(!a(e))throw Error(o(7));if(void 0===e.type)throw Error(o(8));if("string"!=typeof e.type)throw Error(o(17));if(h)throw Error(o(9));try{h=!0,c=i(c,e)}finally{h=!1}return(u=d).forEach(e=>{e()}),e}return b({type:s.INIT}),{dispatch:b,subscribe:m,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw Error(o(10));i=e,b({type:s.REPLACE})},[n]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(o(11));function t(){e.next&&e.next(g())}return t(),{unsubscribe:m(t)}},[n](){return this}}}}}function c(e){let t,r=Object.keys(e),n={};for(let t=0;t{let t=n[e];if(void 0===t(void 0,{type:s.INIT}))throw Error(o(12));if(void 0===t(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw Error(o(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let s=!1,a={};for(let t=0;te:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function d(...e){return t=>(r,n)=>{let i=t(r,n),s=()=>{throw Error(o(15))},a={getState:i.getState,dispatch:(e,...t)=>s(e,...t)};return s=u(...e.map(e=>e(a)))(i.dispatch),{...i,dispatch:s}}}function p(e){return a(e)&&"type"in e&&"string"==typeof e.type}},77928:(e,t,r)=>{"use strict";r.d(t,{xC:()=>u,r9:()=>l});var o=r(12115);r(5504),Object.create(null);let n=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,i={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"…","…":"…","/":"/","/":"/"},s=e=>i[e],a={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(n,s)},l={type:"3rdParty",init(e){((e={})=>{a={...a,...e}})(e.options.react)}},c=(0,o.createContext)();function u({i18n:e,defaultNS:t,children:r}){let n=(0,o.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,o.createElement)(c.Provider,{value:n},r)}},89043:(e,t,r)=>{"use strict";var o=r(12115),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,s=o.useRef,a=o.useEffect,l=o.useMemo,c=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,u){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var h=i(e,(d=l(function(){function e(e){if(!a){if(a=!0,i=e,e=o(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return s=t}return s=e}if(t=s,n(i,e))return t;var r=o(e);return void 0!==u&&u(t,r)?(i=e,t):(i=e,s=r)}var i,s,a=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,o,u]))[0],d[1]);return a(function(){p.hasValue=!0,p.value=h},[h]),c(h),h}},99050:(e,t,r)=>{"use strict";r.d(t,{Qx:()=>m,a6:()=>b,jM:()=>ea,ss:()=>es});var o,n=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),s=Symbol.for("immer-state");function a(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object,c=l.getPrototypeOf,u="constructor",d="prototype",p="configurable",h="enumerable",f="writable",g="value",m=e=>!!e&&!!e[s];function b(e){return!!e&&(x(e)||j(e)||!!e[i]||!!e[u]?.[i]||E(e)||P(e))}var y=l[d][u].toString(),v=new WeakMap;function x(e){if(!e||!$(e))return!1;let t=c(e);if(null===t||t===l[d])return!0;let r=l.hasOwnProperty.call(t,u)&&t[u];if(r===Object)return!0;if(!L(r))return!1;let o=v.get(r);return void 0===o&&(o=Function.toString.call(r),v.set(r,o)),o===y}function w(e,t,r=!0){0===k(e)?(r?Reflect.ownKeys(e):l.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,o)=>t(o,r,e))}function k(e){let t=e[s];return t?t.type_:j(e)?1:E(e)?2:3*!!P(e)}var S=(e,t,r=k(e))=>2===r?e.has(t):l[d].hasOwnProperty.call(e,t),_=(e,t,r=k(e))=>2===r?e.get(t):e[t],O=(e,t,r,o=k(e))=>{2===o?e.set(t,r):3===o?e.add(r):e[t]=r},j=Array.isArray,E=e=>e instanceof Map,P=e=>e instanceof Set,$=e=>"object"==typeof e,L=e=>"function"==typeof e,C=e=>e.modified_?e.copy_:e.base_;function R(e,t){if(E(e))return new Map(e);if(P(e))return new Set(e);if(j(e))return Array[d].slice.call(e);let r=x(e);if(!0!==t&&("class_only"!==t||r)){let t=c(e);if(null!==t&&r)return{...e};let o=l.create(t);return l.assign(o,e)}{let t=l.getOwnPropertyDescriptors(e);delete t[s];let r=Reflect.ownKeys(t);for(let o=0;o1&&l.defineProperties(e,{set:z,add:z,clear:z,delete:z}),l.freeze(e),t&&w(e,(e,t)=>{N(t,!0)},!1)),e}var z={[g]:function(){a(2)}};function T(e){return!(null!==e&&$(e))||l.isFrozen(e)}var I="MapSet",A="Patches",D={};function F(e){let t=D[e];return t||a(0,e),t}function M(e,t){t&&(e.patchPlugin_=F(A),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function V(e){U(e),e.drafts_.forEach(B),e.drafts_=null}function U(e){e===o&&(o=e.parent_)}var K=e=>{let t;return t=o,o={drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:D[I]?F(I):void 0}};function B(e){let t=e[s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function W(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[s].modified_&&(V(t),a(4)),b(e)&&(e=H(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[s].base_,e,t)}else e=H(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&N(t,r)}(t,e,!0),V(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==n?e:void 0}function H(e,t){if(T(t))return t;let r=t[s];if(!r)return Y(t,e.handledSet_,e);if(!G(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);X(r,e)}return r.copy_}function q(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var G=(e,t)=>e.scope_===t,J=[];function Q(e,t,r,o){let n=e.copy_||e.base_,i=e.type_;if(void 0!==o&&_(n,o,i)===t)return void O(n,o,r,i);if(!e.draftLocations_){let t=e.draftLocations_=new Map;w(n,(e,r)=>{if(m(r)){let o=t.get(r)||[];o.push(e),t.set(r,o)}})}for(let o of e.draftLocations_.get(t)??J)O(n,o,r,i)}function X(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let o=r.getPath(e);o&&r.generatePatches_(e,o,t)}q(e)}}function Y(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||m(e)||t.has(e)||!b(e)||T(e)||(t.add(e),w(e,(o,n)=>{if(m(n)){let t=n[s];G(t,r)&&(O(e,o,C(t),e.type_),q(t))}else b(n)&&Y(n,t,r)})),e}var Z={get(e,t){if(t===s)return e;let r=e.copy_||e.base_;if(!S(r,t,e.type_)){var o;let n;return o=e,(n=er(r,t))?g in n?n[g]:n.get?.call(o.draft_):void 0}let n=r[t];if(e.finalized_||!b(n))return n;if(n===et(e.base_,t)){en(e);let r=1===e.type_?+t:t,o=ei(e.scope_,n,e,r);return e.copy_[r]=o}return n},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,r){let o=er(e.copy_||e.base_,t);if(o?.set)return o.set.call(e.draft_,r),!0;if(!e.modified_){let o=et(e.copy_||e.base_,t),n=o?.[s];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===o?0!==r||1/r==1/o:r!=r&&o!=o)&&(void 0!==r||S(e.base_,t,e.type_)))return!0;en(e),eo(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_.set(t,!0),!function(e,t,r){let{scope_:o}=e;if(m(r)){let n=r[s];G(n,o)&&n.callbacks_.push(function(){en(e),Q(e,r,C(n),t)})}else b(r)&&e.callbacks_.push(function(){_(e.copy_||e.base_,t,e.type_)===r&&o.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Y(_(e.copy_,t,e.type_),o.handledSet_,o)})}(e,t,r),!0)},deleteProperty:(e,t)=>(en(e),void 0!==et(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),eo(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=e.copy_||e.base_,o=Reflect.getOwnPropertyDescriptor(r,t);return o?{[f]:!0,[p]:1!==e.type_||"length"!==t,[h]:o[h],[g]:r[t]}:o},defineProperty(){a(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){a(12)}},ee={};function et(e,t){let r=e[s];return(r?r.copy_||r.base_:e)[t]}function er(e,t){if(!(t in e))return;let r=c(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=c(r)}}function eo(e){!e.modified_&&(e.modified_=!0,e.parent_&&eo(e.parent_))}function en(e){e.copy_||(e.assigned_=new Map,e.copy_=R(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function ei(e,t,r,n){let[i,s]=E(t)?F(I).proxyMap_(t,r):P(t)?F(I).proxySet_(t,r):function(e,t){let r=j(e),n={type_:+!!r,scope_:t?t.scope_:o,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,s=Z;r&&(i=[n],s=ee);let{revoke:a,proxy:l}=Proxy.revocable(i,s);return n.draft_=l,n.revoke_=a,[l,n]}(t,r);if((r?.scope_??o).drafts_.push(i),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&void 0!==n)r.callbacks_.push(function(e){if(!s||!G(s,e))return;e.mapSetPlugin_?.fixSetContents(s);let t=C(s);Q(r,s.draft_??s,t,n),X(s,e)});else s.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:t}=e;s.modified_&&t&&t.generatePatches_(s,[],e)});return i}function es(e){return m(e)||a(10,e),function e(t){let r;if(!b(t)||T(t))return t;let o=t[s],n=!0;if(o){if(!o.modified_)return o.base_;o.finalized_=!0,r=R(t,o.scope_.immer_.useStrictShallowCopy_),n=o.scope_.immer_.shouldUseStrictIteration()}else r=R(t,!0);return w(r,(t,o)=>{O(r,t,e(o))},n),o&&(o.finalized_=!1),r}(e)}w(Z,(e,t)=>{ee[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}),ee.deleteProperty=function(e,t){return ee.set.call(this,e,t,void 0)},ee.set=function(e,t,r){return Z.set.call(this,e[0],t,r,e[0])};var ea=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let o;if(L(e)&&!L(t)){let r=t;t=e;let o=this;return function(e=r,...n){return o.produce(e,e=>t.call(this,e,...n))}}if(L(t)||a(6),void 0===r||L(r)||a(7),b(e)){let n=K(this),i=ei(n,e,void 0),s=!0;try{o=t(i),s=!1}finally{s?V(n):U(n)}return M(n,r),W(o,n)}if(e&&$(e))a(1,e);else{if(void 0===(o=t(e))&&(o=e),o===n&&(o=void 0),this.autoFreeze_&&N(o,!0),r){let t=[],n=[];F(A).generateReplacementPatches_(e,o,{patches_:t,inversePatches_:n}),r(t,n)}return o}},this.produceWithPatches=(e,t)=>{let r,o;return L(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,o=t}),r,o]},(e=>"boolean"==typeof e)(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),(e=>"boolean"==typeof e)(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),(e=>"boolean"==typeof e)(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){b(e)||a(8),m(e)&&(e=es(e));let t=K(this),r=ei(t,e,void 0);return r[s].isManual_=!0,U(t),r}finishDraft(e,t){let r=e&&e[s];r&&r.isManual_||a(9);let{scope_:o}=r;return M(o,t),W(void 0,o)}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--){let o=t[r];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}r>-1&&(t=t.slice(r+1));let o=F(A).applyPatches_;return m(e)?o(e,t):this.produce(e,e=>o(e,t))}}().produce}}]);