@simpoobusiness/sdk 2.0.73 → 2.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/simpoo-sdk.js +36 -36
- package/dist/simpoo-sdk.js.map +1 -1
- package/dist/store/index.d.ts +4 -4
- package/dist/store/reducers/appSlice.d.ts +1 -1
- package/package.json +14 -13
package/dist/simpoo-sdk.js
CHANGED
|
@@ -29,33 +29,33 @@ function tr(e,t){return"function"==typeof e?e(t):e}function nr(e,t){return n=>{t
|
|
|
29
29
|
*
|
|
30
30
|
* @license MIT
|
|
31
31
|
*/
|
|
32
|
-
function Xr(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?D.createElement(e,t):e:null;var n}function Zr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zr(e))&&(r&&(r+=" "),r+=t);return r}const eo=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),to="-",no=[],ro=e=>{const t=io(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return ao(e);const n=e.split(to),r=""===n[0]&&n.length>1?1:0;return oo(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||no}return n[e]||no}}},oo=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=oo(e,t+1,o);if(n)return n}const a=n.validators;if(null===a)return;const i=0===t?e.join(to):e.slice(t).join(to),s=a.length;for(let e=0;e<s;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},ao=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),io=e=>{const{theme:t,classGroups:n}=e;return so(n,t)},so=(e,t)=>{const n=eo();for(const r in e){const o=e[r];lo(o,n,r,t)}return n},lo=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];uo(o,t,n,r)}},uo=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?po(e,t,n,r):fo(e,t,n,r):co(e,t,n)},co=(e,t,n)=>{(""===e?t:ho(t,e)).classGroupId=n},fo=(e,t,n,r)=>{mo(e)?lo(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},po=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];lo(i,ho(t,a),n,r)}},ho=(e,t)=>{let n=e;const r=t.split(to),o=r.length;for(let e=0;e<o;e++){const t=r[e];let o=n.nextPart.get(t);o||(o=eo(),n.nextPart.set(t,o)),n=o}return n},mo=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},yo=[],vo=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),bo=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;const i=e.length;for(let s=0;s<i;s++){const i=e[s];if(0===r&&0===o){if(":"===i){t.push(e.slice(a,s)),a=s+1;continue}if("/"===i){n=s;continue}}"["===i?r++:"]"===i?r--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,u=!1;s.endsWith("!")?(l=s.slice(0,-1),u=!0):s.startsWith("!")&&(l=s.slice(1),u=!0);return vo(t,u,l,n&&n>a?n-a:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):vo(yo,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},wo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},xo=/\s+/,Co=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Co(e[r]))&&(n&&(n+=" "),n+=t);return n},So=(e,...t)=>{let n,r,o,a;const i=e=>{const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(xo);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=0===c.length?"":1===c.length?c[0]:a(c).join(":"),y=d?g+"!":g,v=y+m;if(i.indexOf(v)>-1)continue;i.push(v);const b=o(m,h);for(let e=0;e<b.length;++e){const t=b[e];i.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:go(e.cacheSize),parseClassName:bo(e),sortModifiers:wo(e),...ro(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=Co(t))&&(o&&(o+=" "),o+=n);return o})(...e))},ko=[],_o=e=>{const t=t=>t[e]||ko;return t.isThemeGetter=!0,t},Eo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,No=/^\d+\/\d+$/,Oo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ro=/\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$/,Po=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,To=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Do=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mo=e=>No.test(e),Io=e=>!!e&&!Number.isNaN(Number(e)),Ao=e=>!!e&&Number.isInteger(Number(e)),Fo=e=>e.endsWith("%")&&Io(e.slice(0,-1)),Lo=e=>Oo.test(e),zo=()=>!0,$o=e=>Ro.test(e)&&!Po.test(e),Ho=()=>!1,Vo=e=>To.test(e),Bo=e=>Do.test(e),Uo=e=>!qo(e)&&!Zo(e),Wo=e=>aa(e,ua,Ho),qo=e=>Eo.test(e),Yo=e=>aa(e,ca,$o),Go=e=>aa(e,da,Io),Ko=e=>aa(e,sa,Ho),Qo=e=>aa(e,la,Bo),Xo=e=>aa(e,pa,Vo),Zo=e=>jo.test(e),Jo=e=>ia(e,ca),ea=e=>ia(e,fa),ta=e=>ia(e,sa),na=e=>ia(e,ua),ra=e=>ia(e,la),oa=e=>ia(e,pa,!0),aa=(e,t,n)=>{const r=Eo.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},ia=(e,t,n=!1)=>{const r=jo.exec(e);return!!r&&(r[1]?t(r[1]):n)},sa=e=>"position"===e||"percentage"===e,la=e=>"image"===e||"url"===e,ua=e=>"length"===e||"size"===e||"bg-size"===e,ca=e=>"length"===e,da=e=>"number"===e,fa=e=>"family-name"===e,pa=e=>"shadow"===e,ha=So(()=>{const e=_o("color"),t=_o("font"),n=_o("text"),r=_o("font-weight"),o=_o("tracking"),a=_o("leading"),i=_o("breakpoint"),s=_o("container"),l=_o("spacing"),u=_o("radius"),c=_o("shadow"),d=_o("inset-shadow"),f=_o("text-shadow"),p=_o("drop-shadow"),h=_o("blur"),m=_o("perspective"),g=_o("aspect"),y=_o("ease"),v=_o("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Zo,qo],w=()=>[Zo,qo,l],x=()=>[Mo,"full","auto",...w()],C=()=>[Ao,"none","subgrid",Zo,qo],S=()=>["auto",{span:["full",Ao,Zo,qo]},Ao,Zo,qo],k=()=>[Ao,"auto",Zo,qo],_=()=>["auto","min","max","fr",Zo,qo],E=()=>["auto",...w()],j=()=>[Mo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],N=()=>[e,Zo,qo],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ta,Ko,{position:[Zo,qo]}],R=()=>["auto","cover","contain",na,Wo,{size:[Zo,qo]}],P=()=>[Fo,Jo,Yo],T=()=>["","none","full",u,Zo,qo],D=()=>["",Io,Jo,Yo],M=()=>[Io,Fo,ta,Ko],I=()=>["","none",h,Zo,qo],A=()=>["none",Io,Zo,qo],F=()=>["none",Io,Zo,qo],L=()=>[Io,Zo,qo],z=()=>[Mo,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lo],breakpoint:[Lo],color:[zo],container:[Lo],"drop-shadow":[Lo],ease:["in","out","in-out"],font:[Uo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lo],shadow:[Lo],spacing:["px",Io],text:[Lo],"text-shadow":[Lo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mo,qo,Zo,g]}],container:["container"],columns:[{columns:[Io,qo,Zo,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Ao,"auto",Zo,qo]}],basis:[{basis:[Mo,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Io,Mo,"auto","initial","none",qo]}],grow:[{grow:["",Io,Zo,qo]}],shrink:[{shrink:["",Io,Zo,qo]}],order:[{order:[Ao,"first","last","none",Zo,qo]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Jo,Yo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Zo,Go]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fo,qo]}],"font-family":[{font:[ea,qo,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Zo,qo]}],"line-clamp":[{"line-clamp":[Io,"none",Zo,Go]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",Zo,qo]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Zo,qo]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Io,"from-font","auto",Zo,Yo]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[Io,"auto",Zo,qo]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Zo,qo]}],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",Zo,qo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ao,Zo,qo],radial:["",Zo,qo],conic:[Ao,Zo,qo]},ra,Qo]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Io,Zo,qo]}],"outline-w":[{outline:["",Io,Jo,Yo]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,oa,Xo]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,oa,Xo]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[Io,Yo]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,oa,Xo]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[Io,Zo,qo]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"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":[Io]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Zo,qo]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Io]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Zo,qo]}],filter:[{filter:["","none",Zo,qo]}],blur:[{blur:I()}],brightness:[{brightness:[Io,Zo,qo]}],contrast:[{contrast:[Io,Zo,qo]}],"drop-shadow":[{"drop-shadow":["","none",p,oa,Xo]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",Io,Zo,qo]}],"hue-rotate":[{"hue-rotate":[Io,Zo,qo]}],invert:[{invert:["",Io,Zo,qo]}],saturate:[{saturate:[Io,Zo,qo]}],sepia:[{sepia:["",Io,Zo,qo]}],"backdrop-filter":[{"backdrop-filter":["","none",Zo,qo]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[Io,Zo,qo]}],"backdrop-contrast":[{"backdrop-contrast":[Io,Zo,qo]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Io,Zo,qo]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Io,Zo,qo]}],"backdrop-invert":[{"backdrop-invert":["",Io,Zo,qo]}],"backdrop-opacity":[{"backdrop-opacity":[Io,Zo,qo]}],"backdrop-saturate":[{"backdrop-saturate":[Io,Zo,qo]}],"backdrop-sepia":[{"backdrop-sepia":["",Io,Zo,qo]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Zo,qo]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Io,"initial",Zo,qo]}],ease:[{ease:["linear","initial",y,Zo,qo]}],delay:[{delay:[Io,Zo,qo]}],animate:[{animate:["none",v,Zo,qo]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Zo,qo]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:A()}],"rotate-x":[{"rotate-x":A()}],"rotate-y":[{"rotate-y":A()}],"rotate-z":[{"rotate-z":A()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[Zo,qo,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",Zo,qo]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",Zo,qo]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[Io,Jo,Yo,Go]}],stroke:[{stroke:["none",...N()]}],"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"]}});function ma(...e){return ha(Jr(e))}const ga=D.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:n,className:ma("w-full caption-bottom text-sm",e),...t})}));ga.displayName="Table";const ya=D.forwardRef(({className:e,...t},n)=>m.jsx("thead",{ref:n,className:ma("[&_tr]:border-b",e),...t}));ya.displayName="TableHeader";const va=D.forwardRef(({className:e,...t},n)=>m.jsx("tbody",{ref:n,className:ma("[&_tr:last-child]:border-0",e),...t}));va.displayName="TableBody";D.forwardRef(({className:e,...t},n)=>m.jsx("tfoot",{ref:n,className:ma("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})).displayName="TableFooter";const ba=D.forwardRef(({className:e,...t},n)=>m.jsx("tr",{ref:n,className:ma("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));ba.displayName="TableRow";const wa=D.forwardRef(({className:e,...t},n)=>m.jsx("th",{ref:n,className:ma("h-12 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));wa.displayName="TableHead";const xa=D.forwardRef(({className:e,...t},n)=>m.jsx("td",{ref:n,className:ma("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));xa.displayName="TableCell";function Ca({className:e,...t}){return m.jsx("div",{className:ma("animate-pulse rounded-md bg-neutral-100 dark:bg-neutral-800",e),...t})}function Sa(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function ka(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function _a(...e){return t=>{let n=!1;const r=e.map(e=>{const r=ka(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():ka(e[t],null)}}}}function Ea(...e){return D.useCallback(_a(...e),e)}function ja(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>D.createContext(e));return function(n){const r=n?.[e]||t;return D.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=D.createContext(r),a=n.length;n=[...n,r];const i=t=>{const{scope:n,children:r,...i}=t,s=n?.[e]?.[a]||o,l=D.useMemo(()=>i,Object.values(i));return m.jsx(s.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e]?.[a]||o,l=D.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Na(r,...t)]}function Na(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return D.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}D.forwardRef(({className:e,...t},n)=>m.jsx("caption",{ref:n,className:ma("mt-4 text-sm text-muted-foreground",e),...t})).displayName="TableCaption";var Oa=globalThis?.document?D.useLayoutEffect:()=>{},Ra=I[" useInsertionEffect ".trim().toString()]||Oa;function Pa({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=D.useState(e),o=D.useRef(n),a=D.useRef(t);return Ra(()=>{a.current=t},[t]),D.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;{const t=D.useRef(void 0!==e);D.useEffect(()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}const u=D.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i]);return[l,u]}var Ta=N(),Da=n(Ta);function Ma(e){const t=Aa(e),n=D.forwardRef((e,n)=>{const{children:r,...o}=e,a=D.Children.toArray(r),i=a.find(La);if(i){const e=i.props.children,r=a.map(t=>t===i?D.Children.count(e)>1?D.Children.only(null):D.isValidElement(e)?e.props.children:null:t);return m.jsx(t,{...o,ref:n,children:D.isValidElement(e)?D.cloneElement(e,void 0,r):null})}return m.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Ia=Ma("Slot");function Aa(e){const t=D.forwardRef((e,t)=>{const{children:n,...r}=e;if(D.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==D.Fragment&&(o.ref=t?_a(t,e):e),D.cloneElement(n,o)}return D.Children.count(n)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fa=Symbol("radix.slottable");function La(e){return D.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Fa}var za=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Ma(`Primitive.${t}`),r=D.forwardRef((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function $a(e,t){e&&Ta.flushSync(()=>e.dispatchEvent(t))}function Ha(e){const t=e+"CollectionProvider",[n,r]=ja(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return m.jsx(o,{scope:t,itemMap:a,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=Ma(s),u=M.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=Ea(t,a(s,n).collectionRef);return m.jsx(l,{ref:o,children:r})});u.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ma(c),p=M.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,i=M.useRef(null),s=Ea(t,i),l=a(c,n);return M.useEffect(()=>(l.itemMap.set(i,{ref:i,...o}),()=>{l.itemMap.delete(i)})),m.jsx(f,{[d]:"",ref:s,children:r})});return p.displayName=c,[{Provider:i,Slot:u,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t),r=M.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},r]}var Va=D.createContext(void 0);function Ba(e){const t=D.useContext(Va);return e||t||"ltr"}function Ua(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...e)=>t.current?.(...e),[])}var Wa,qa="dismissableLayer.update",Ya="dismissableLayer.pointerDownOutside",Ga="dismissableLayer.focusOutside",Ka=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qa=D.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=D.useContext(Ka),[c,d]=D.useState(null),f=c?.ownerDocument??globalThis?.document,[,p]=D.useState({}),h=Ea(t,e=>d(e)),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),b=c?g.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=v,C=function(e,t=globalThis?.document){const n=Ua(e),r=D.useRef(!1),o=D.useRef(()=>{});return D.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Ja(Ya,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));x&&!n&&(o?.(e),i?.(e),e.defaultPrevented||s?.())},f),S=function(e,t=globalThis?.document){const n=Ua(e),r=D.useRef(!1);return D.useEffect(()=>{const e=e=>{if(e.target&&!r.current){Ja(Ga,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),i?.(e),e.defaultPrevented||s?.())},f);return function(e,t=globalThis?.document){const n=Ua(e);D.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{b===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),D.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Wa=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Za(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Wa)}},[c,f,n,u]),D.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Za())},[c,u]),D.useEffect(()=>{const e=()=>p({});return document.addEventListener(qa,e),()=>document.removeEventListener(qa,e)},[]),m.jsx(za.div,{...l,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Sa(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Sa(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Sa(e.onPointerDownCapture,C.onPointerDownCapture)})});Qa.displayName="DismissableLayer";var Xa=D.forwardRef((e,t)=>{const n=D.useContext(Ka),r=D.useRef(null),o=Ea(t,r);return D.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),m.jsx(za.div,{...e,ref:o})});function Za(){const e=new CustomEvent(qa);document.dispatchEvent(e)}function Ja(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$a(o,a):o.dispatchEvent(a)}Xa.displayName="DismissableLayerBranch";var ei=0;function ti(){D.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ni()),document.body.insertAdjacentElement("beforeend",e[1]??ni()),ei++,()=>{1===ei&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ei--}},[])}function ni(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ri="focusScope.autoFocusOnMount",oi="focusScope.autoFocusOnUnmount",ai={bubbles:!1,cancelable:!0},ii=D.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=D.useState(null),u=Ua(o),c=Ua(a),d=D.useRef(null),f=Ea(t,e=>l(e)),p=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:ci(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||ci(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ci(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,p.paused]),D.useEffect(()=>{if(s){di.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(ri,ai);s.addEventListener(ri,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ci(r,{select:t}),document.activeElement!==n)return}((e=si(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&ci(s))}return()=>{s.removeEventListener(ri,u),setTimeout(()=>{const e=new CustomEvent(oi,ai);s.addEventListener(oi,c),s.dispatchEvent(e),e.defaultPrevented||ci(t??document.body,{select:!0}),s.removeEventListener(oi,c),di.remove(p)},0)}}var e},[s,u,c,p]);const h=D.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=si(e),n=li(t,e),r=li(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&ci(a,{select:!0})):(e.preventDefault(),n&&ci(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return m.jsx(za.div,{tabIndex:-1,...i,ref:f,onKeyDown:h})});function si(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function li(e,t){for(const n of e)if(!ui(n,{upTo:t}))return n}function ui(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ci(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}ii.displayName="FocusScope";var di=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=fi(e,t),e.unshift(t)},remove(t){e=fi(e,t),e[0]?.resume()}}}();function fi(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var pi=I[" useId ".trim().toString()]||(()=>{}),hi=0;function mi(e){const[t,n]=D.useState(pi());return Oa(()=>{n(e=>e??String(hi++))},[e]),t?`radix-${t}`:""}const gi=["top","right","bottom","left"],yi=Math.min,vi=Math.max,bi=Math.round,wi=Math.floor,xi=e=>({x:e,y:e}),Ci={left:"right",right:"left",bottom:"top",top:"bottom"},Si={start:"end",end:"start"};function ki(e,t,n){return vi(e,yi(t,n))}function _i(e,t){return"function"==typeof e?e(t):e}function Ei(e){return e.split("-")[0]}function ji(e){return e.split("-")[1]}function Ni(e){return"x"===e?"y":"x"}function Oi(e){return"y"===e?"height":"width"}const Ri=new Set(["top","bottom"]);function Pi(e){return Ri.has(Ei(e))?"y":"x"}function Ti(e){return Ni(Pi(e))}function Di(e){return e.replace(/start|end/g,e=>Si[e])}const Mi=["left","right"],Ii=["right","left"],Ai=["top","bottom"],Fi=["bottom","top"];function Li(e,t,n,r){const o=ji(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Ii:Mi:t?Mi:Ii;case"left":case"right":return t?Ai:Fi;default:return[]}}(Ei(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Di)))),a}function zi(e){return e.replace(/left|right|bottom|top/g,e=>Ci[e])}function $i(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Hi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Vi(e,t,n){let{reference:r,floating:o}=e;const a=Pi(t),i=Ti(t),s=Oi(i),l=Ei(t),u="y"===a,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ji(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}async function Bi(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=_i(t,e),h=$i(p),m=s[f?"floating"===d?"reference":"floating":d],g=Hi(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=Hi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function Ui(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wi(e){return gi.some(t=>e[t]>=0)}const qi=new Set(["left","top"]);function Yi(){return"undefined"!=typeof window}function Gi(e){return Xi(e)?(e.nodeName||"").toLowerCase():"#document"}function Ki(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Qi(e){var t;return null==(t=(Xi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Xi(e){return!!Yi()&&(e instanceof Node||e instanceof Ki(e).Node)}function Zi(e){return!!Yi()&&(e instanceof Element||e instanceof Ki(e).Element)}function Ji(e){return!!Yi()&&(e instanceof HTMLElement||e instanceof Ki(e).HTMLElement)}function es(e){return!(!Yi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ki(e).ShadowRoot)}const ts=new Set(["inline","contents"]);function ns(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ts.has(o)}const rs=new Set(["table","td","th"]);function os(e){return rs.has(Gi(e))}const as=[":popover-open",":modal"];function is(e){return as.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const ss=["transform","translate","scale","rotate","perspective"],ls=["transform","translate","scale","rotate","perspective","filter"],us=["paint","layout","strict","content"];function cs(e){const t=ds(),n=Zi(e)?hs(e):e;return ss.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ls.some(e=>(n.willChange||"").includes(e))||us.some(e=>(n.contain||"").includes(e))}function ds(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const fs=new Set(["html","body","#document"]);function ps(e){return fs.has(Gi(e))}function hs(e){return Ki(e).getComputedStyle(e)}function ms(e){return Zi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gs(e){if("html"===Gi(e))return e;const t=e.assignedSlot||e.parentNode||es(e)&&e.host||Qi(e);return es(t)?t.host:t}function ys(e){const t=gs(e);return ps(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&ns(t)?t:ys(t)}function vs(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ys(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Ki(o);if(a){const e=bs(i);return t.concat(i,i.visualViewport||[],ns(o)?o:[],e&&n?vs(e):[])}return t.concat(o,vs(o,[],n))}function bs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ws(e){const t=hs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ji(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=bi(n)!==a||bi(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function xs(e){return Zi(e)?e:e.contextElement}function Cs(e){const t=xs(e);if(!Ji(t))return xi(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ws(t);let i=(a?bi(n.width):n.width)/r,s=(a?bi(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Ss=xi(0);function ks(e){const t=Ki(e);return ds()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ss}function _s(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=xs(e);let i=xi(1);t&&(r?Zi(r)&&(i=Cs(r)):i=Cs(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ki(e))&&t}(a,n,r)?ks(a):xi(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Ki(a),t=r&&Zi(r)?Ki(r):r;let n=e,o=bs(n);for(;o&&r&&t!==n;){const e=Cs(o),t=o.getBoundingClientRect(),r=hs(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=a,u+=i,n=Ki(o),o=bs(n)}}return Hi({width:c,height:d,x:l,y:u})}function Es(e,t){const n=ms(e).scrollLeft;return t?t.left+n:_s(Qi(e)).left+n}function js(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Es(e,n),y:n.top+t.scrollTop}}const Ns=new Set(["absolute","fixed"]);function Os(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ki(e),r=Qi(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=ds();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const u=Es(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else u<=25&&(a+=u);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Qi(e),n=ms(e),r=e.ownerDocument.body,o=vi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=vi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Es(e);const s=-n.scrollTop;return"rtl"===hs(r).direction&&(i+=vi(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Qi(e));else if(Zi(t))r=function(e,t){const n=_s(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ji(e)?Cs(e):xi(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=ks(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Hi(r)}function Rs(e,t){const n=gs(e);return!(n===t||!Zi(n)||ps(n))&&("fixed"===hs(n).position||Rs(n,t))}function Ps(e,t,n){const r=Ji(t),o=Qi(t),a="fixed"===n,i=_s(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=xi(0);function u(){l.x=Es(o)}if(r||!r&&!a)if(("body"!==Gi(t)||ns(o))&&(s=ms(t)),r){const e=_s(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();a&&!r&&o&&u();const c=!o||r||a?xi(0):js(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function Ts(e){return"static"===hs(e).position}function Ds(e,t){if(!Ji(e)||"fixed"===hs(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Qi(e)===n&&(n=n.ownerDocument.body),n}function Ms(e,t){const n=Ki(e);if(is(e))return n;if(!Ji(e)){let t=gs(e);for(;t&&!ps(t);){if(Zi(t)&&!Ts(t))return t;t=gs(t)}return n}let r=Ds(e,t);for(;r&&os(r)&&Ts(r);)r=Ds(r,t);return r&&ps(r)&&Ts(r)&&!cs(r)?n:r||function(e){let t=gs(e);for(;Ji(t)&&!ps(t);){if(cs(t))return t;if(is(t))return null;t=gs(t)}return null}(e)||n}const Is={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Qi(r),s=!!t&&is(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=xi(1);const c=xi(0),d=Ji(r);if((d||!d&&!a)&&(("body"!==Gi(r)||ns(i))&&(l=ms(r)),Ji(r))){const e=_s(r);u=Cs(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!i||d||a?xi(0):js(i,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:Qi,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?is(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=vs(e,[],!1).filter(e=>Zi(e)&&"body"!==Gi(e)),o=null;const a="fixed"===hs(e).position;let i=a?gs(e):e;for(;Zi(i)&&!ps(i);){const t=hs(i),n=cs(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&Ns.has(o.position)||ns(i)&&!n&&Rs(e,i))?r=r.filter(e=>e!==i):o=t,i=gs(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((e,n)=>{const r=Os(t,n,o);return e.top=vi(r.top,e.top),e.right=yi(r.right,e.right),e.bottom=yi(r.bottom,e.bottom),e.left=vi(r.left,e.left),e},Os(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ms,getElementRects:async function(e){const t=this.getOffsetParent||Ms,n=this.getDimensions,r=await n(e.floating);return{reference:Ps(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ws(e);return{width:t,height:n}},getScale:Cs,isElement:Zi,isRTL:function(e){return"rtl"===hs(e).direction}};function As(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fs(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=xs(e),c=o||a?[...u?vs(u):[],...vs(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=Qi(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-wi(d)+"px "+-wi(o.clientWidth-(c+f))+"px "+-wi(o.clientHeight-(d+p))+"px "+-wi(c)+"px",threshold:vi(0,yi(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||As(u,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?_s(e):null;return l&&function t(){const r=_s(e);m&&!As(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Ls=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Ei(n),s=ji(n),l="y"===Pi(n),u=qi.has(i)?-1:1,c=a&&l?-1:1,d=_i(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},zs=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=_i(e,t),c={x:n,y:r},d=await a.detectOverflow(t,u),f=Pi(Ei(o)),p=Ni(f);let h=c[p],m=c[f];if(i){const e="y"===p?"bottom":"right";h=ki(h+d["y"===p?"top":"left"],h,h-d[e])}if(s){const e="y"===f?"bottom":"right";m=ki(m+d["y"===f?"top":"left"],m,m-d[e])}const g=l.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:s}}}}}},$s=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=_i(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=Ei(o),v=Pi(s),b=Ei(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=f||(b||!m?[zi(s)]:function(e){const t=zi(e);return[Di(e),t,Di(t)]}(s)),C="none"!==h;!f&&C&&x.push(...Li(s,m,h,w));const S=[s,...x],k=await l.detectOverflow(t,g),_=[];let E=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&_.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ji(e),o=Ti(e),a=Oi(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=zi(i)),[i,zi(i)]}(o,i,w);_.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:o,overflows:_}],!_.every(e=>e<=0)){var j,N;const e=((null==(j=a.flip)?void 0:j.index)||0)+1,t=S[e];if(t){if(!("alignment"===d&&v!==Pi(t))||E.every(e=>Pi(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(N=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=E.filter(e=>{if(C){const t=Pi(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Hs=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...u}=_i(e,t),c=await i.detectOverflow(t,u),d=Ei(o),f=ji(o),p="y"===Pi(o),{width:h,height:m}=a.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const v=m-c.top-c.bottom,b=h-c.left-c.right,w=yi(m-c[g],v),x=yi(h-c[y],b),C=!t.middlewareData.shift;let S=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),C&&!f){const e=vi(c.left,0),t=vi(c.right,0),n=vi(c.top,0),r=vi(c.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:vi(c.left,c.right)):S=m-2*(0!==n||0!==r?n+r:vi(c.top,c.bottom))}await l({...t,availableWidth:k,availableHeight:S});const _=await i.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}},Vs=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=_i(e,t);switch(o){case"referenceHidden":{const e=Ui(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Wi(e)}}}case"escaped":{const e=Ui(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Wi(e)}}}default:return{}}}}},Bs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=_i(e,t)||{};if(null==u)return{};const d=$i(c),f={x:n,y:r},p=Ti(o),h=Oi(p),m=await i.getDimensions(u),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let S=C?C[b]:0;S&&await(null==i.isElement?void 0:i.isElement(C))||(S=s.floating[b]||a.floating[h]);const k=w/2-x/2,_=S/2-m[h]/2-1,E=yi(d[y],_),j=yi(d[v],_),N=E,O=S-m[h]-j,R=S/2-m[h]/2+k,P=ki(N,R,O),T=!l.arrow&&null!=ji(o)&&R!==P&&a.reference[h]/2-(R<N?E:j)-m[h]/2<0,D=T?R<N?R-N:R-O:0;return{[p]:f[p]+D,data:{[p]:P,centerOffset:R-P-D,...T&&{alignmentOffset:D}},reset:T}}}),Us=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=_i(e,t),c={x:n,y:r},d=Pi(o),f=Ni(d);let p=c[f],h=c[d];const m=_i(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;const e="y"===f?"width":"height",t=qi.has(Ei(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Ws=(e,t,n)=>{const r=new Map,o={platform:Is,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Vi(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){var m;const{name:a,fn:g}=s[n],{x:y,y:v,data:b,reset:w}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:{...i,detectOverflow:null!=(m=i.detectOverflow)?m:Bi},elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=v?v:d,p={...p,[a]:{...p[a],...b}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:c,y:d}=Vi(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var qs="undefined"!=typeof document?D.useLayoutEffect:function(){};function Ys(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!Ys(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ys(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Gs(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ks(e,t){const n=Gs(e);return Math.round(t*n)/n}function Qs(e){const t=D.useRef(e);return qs(()=>{t.current=e}),t}const Xs=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Bs({element:n.current,padding:r}).fn(t):{}:n?Bs({element:n,padding:r}).fn(t):{};var o}}),Zs=(e,t)=>({...Ls(e),options:[e,t]}),Js=(e,t)=>({...zs(e),options:[e,t]}),el=(e,t)=>({...Us(e),options:[e,t]}),tl=(e,t)=>({...$s(e),options:[e,t]}),nl=(e,t)=>({...Hs(e),options:[e,t]}),rl=(e,t)=>({...Vs(e),options:[e,t]}),ol=(e,t)=>({...Xs(e),options:[e,t]});var al=D.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(za.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});al.displayName="Arrow";var il=al;function sl(e){const[t,n]=D.useState(void 0);return Oa(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}var ll="Popper",[ul,cl]=ja(ll),[dl,fl]=ul(ll),pl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=D.useState(null);return m.jsx(dl,{scope:t,anchor:r,onAnchorChange:o,children:n})};pl.displayName=ll;var hl="PopperAnchor",ml=D.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=fl(hl,n),i=D.useRef(null),s=Ea(t,i),l=D.useRef(null);return D.useEffect(()=>{const e=l.current;l.current=r?.current||i.current,e!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(za.div,{...o,ref:s})});ml.displayName=hl;var gl="PopperContent",[yl,vl]=ul(gl),bl=D.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=fl(gl,n),[v,b]=D.useState(null),w=Ea(t,e=>b(e)),[x,C]=D.useState(null),S=sl(x),k=S?.width??0,_=S?.height??0,E=r+("center"!==a?"-"+a:""),j="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},N=Array.isArray(u)?u:[u],O=N.length>0,R={padding:j,boundary:N.filter(Sl),altBoundary:O},{refs:P,floatingStyles:T,placement:M,isPositioned:I,middlewareData:A}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=D.useState(r);Ys(f,r)||p(r);const[h,m]=D.useState(null),[g,y]=D.useState(null),v=D.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),b=D.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=a||h,x=i||g,C=D.useRef(null),S=D.useRef(null),k=D.useRef(c),_=null!=l,E=Qs(l),j=Qs(o),N=Qs(u),O=D.useCallback(()=>{if(!C.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),Ws(C.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!Ys(k.current,t)&&(k.current=t,Ta.flushSync(()=>{d(t)}))})},[f,t,n,j,N]);qs(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const R=D.useRef(!1);qs(()=>(R.current=!0,()=>{R.current=!1}),[]),qs(()=>{if(w&&(C.current=w),x&&(S.current=x),w&&x){if(E.current)return E.current(w,x,O);O()}},[w,x,O,E,_]);const P=D.useMemo(()=>({reference:C,floating:S,setReference:v,setFloating:b}),[v,b]),T=D.useMemo(()=>({reference:w,floating:x}),[w,x]),M=D.useMemo(()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=Ks(T.floating,c.x),r=Ks(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Gs(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,T.floating,c.x,c.y]);return D.useMemo(()=>({...c,update:O,refs:P,elements:T,floatingStyles:M}),[c,O,P,T,M])}({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>Fs(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[Zs({mainAxis:o+_,alignmentAxis:i}),l&&Js({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?el():void 0,...R}),l&&tl({...R}),nl({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),x&&ol({element:x,padding:s}),kl({arrowWidth:k,arrowHeight:_}),f&&rl({strategy:"referenceHidden",...R})]}),[F,L]=_l(M),z=Ua(h);Oa(()=>{I&&z?.()},[I,z]);const $=A.arrow?.x,H=A.arrow?.y,V=0!==A.arrow?.centerOffset,[B,U]=D.useState();return Oa(()=>{v&&U(window.getComputedStyle(v).zIndex)},[v]),m.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:I?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(yl,{scope:n,placedSide:F,onArrowChange:C,arrowX:$,arrowY:H,shouldHideArrow:V,children:m.jsx(za.div,{"data-side":F,"data-align":L,...g,ref:w,style:{...g.style,animation:I?void 0:"none"}})})})});bl.displayName=gl;var wl="PopperArrow",xl={top:"bottom",right:"left",bottom:"top",left:"right"},Cl=D.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=vl(wl,n),a=xl[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(il,{...r,ref:t,style:{...r.style,display:"block"}})})});function Sl(e){return null!==e}Cl.displayName=wl;var kl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=_l(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=a?c:`${d}px`,h=-s+"px"):"top"===l?(p=a?c:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=a?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=a?c:`${f}px`),{data:{x:p,y:h}}}});function _l(e){const[t,n="center"]=e.split("-");return[t,n]}var El=pl,jl=ml,Nl=bl,Ol=Cl,Rl=D.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=D.useState(!1);Oa(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Da.createPortal(m.jsx(za.div,{...r,ref:t}),i):null});Rl.displayName="Portal";var Pl=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=D.useState(),r=D.useRef(null),o=D.useRef(e),a=D.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return D.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const e=Tl(r.current);a.current="mounted"===s?e:"none"},[s]),Oa(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Tl(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),Oa(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=Tl(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=Tl(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:D.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):D.Children.only(n),a=Ea(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?D.cloneElement(o,{ref:a}):null};function Tl(e){return e?.animationName||"none"}Pl.displayName="Presence";var Dl="rovingFocusGroup.onEntryFocus",Ml={bubbles:!1,cancelable:!0},Il="RovingFocusGroup",[Al,Fl,Ll]=Ha(Il),[zl,$l]=ja(Il,[Ll]),[Hl,Vl]=zl(Il),Bl=D.forwardRef((e,t)=>m.jsx(Al.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Al.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Ul,{...e,ref:t})})}));Bl.displayName=Il;var Ul=D.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=D.useRef(null),p=Ea(t,f),h=Ba(a),[g,y]=Pa({prop:i,defaultProp:s??null,onChange:l,caller:Il}),[v,b]=D.useState(!1),w=Ua(u),x=Fl(n),C=D.useRef(!1),[S,k]=D.useState(0);return D.useEffect(()=>{const e=f.current;if(e)return e.addEventListener(Dl,w),()=>e.removeEventListener(Dl,w)},[w]),m.jsx(Hl,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:g,onItemFocus:D.useCallback(e=>y(e),[y]),onItemShiftTab:D.useCallback(()=>b(!0),[]),onFocusableItemAdd:D.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:D.useCallback(()=>k(e=>e-1),[]),children:m.jsx(za.div,{tabIndex:v||0===S?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Sa(e.onMouseDown,()=>{C.current=!0}),onFocus:Sa(e.onFocus,e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(Dl,Ml);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter(e=>e.focusable);Gl([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),c)}}C.current=!1}),onBlur:Sa(e.onBlur,()=>b(!1))})})}),Wl="RovingFocusGroupItem",ql=D.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,l=mi(),u=a||l,c=Vl(Wl,n),d=c.currentTabStopId===u,f=Fl(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:g}=c;return D.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),m.jsx(Al.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:m.jsx(za.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Sa(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:Sa(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Sa(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Yl[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=c.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>Gl(o))}var n,r}),children:"function"==typeof i?i({isCurrentTabStop:d,hasTabStop:null!=g}):i})})});ql.displayName=Wl;var Yl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Gl(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Kl=Bl,Ql=ql,Xl=new WeakMap,Zl=new WeakMap,Jl={},eu=0,tu=function(e){return e&&(e.host||tu(e.parentNode))},nu=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=tu(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Jl[n]||(Jl[n]=new WeakMap);var a=Jl[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Xl.get(e)||0)+1,u=(a.get(e)||0)+1;Xl.set(e,l),a.set(e,u),i.push(e),1===l&&o&&Zl.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),eu++,function(){i.forEach(function(e){var t=Xl.get(e)-1,o=a.get(e)-1;Xl.set(e,t),a.set(e,o),t||(Zl.has(e)||e.removeAttribute(r),Zl.delete(e)),o||e.removeAttribute(n)}),--eu||(Xl=new WeakMap,Xl=new WeakMap,Zl=new WeakMap,Jl={})}},ru=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),nu(r,o,n,"aria-hidden")):function(){return null}},ou=function(){return ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ou.apply(this,arguments)};function au(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function iu(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var su="right-scroll-bar-position",lu="width-before-scroll-bar";function uu(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var cu="undefined"!=typeof window?D.useLayoutEffect:D.useEffect,du=new WeakMap;function fu(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach(function(e){return uu(e,t)})},(o=D.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return cu(function(){var t=du.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||uu(e,null)}),r.forEach(function(e){n.has(e)||uu(e,o)})}du.set(a,e)},[e]),a}function pu(e){return e}var hu=function(e){var t=e.sideCar,n=au(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,ou({},n))};hu.isSideCarExport=!0;var mu=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=pu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=ou({async:!0,ssr:!1},e),t}(),gu=function(){},yu=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:gu,onWheelCapture:gu,onTouchMoveCapture:gu}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,v=void 0===y?"div":y,b=e.gapMode,w=au(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,C=fu([n,t]),S=ou(ou({},w),o);return D.createElement(D.Fragment,null,c&&D.createElement(x,{sideCar:mu,removeScrollBar:u,shards:d,noRelative:p,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),i?D.cloneElement(D.Children.only(s),ou(ou({},S),{ref:C})):D.createElement(v,ou({},S,{className:l,ref:C}),s))});yu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yu.classNames={fullWidth:lu,zeroRight:su};function vu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var bu=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=vu())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wu=function(){var e,t=(e=bu(),function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},xu={left:0,top:0,right:0,gap:0},Cu=function(e){return parseInt(e||"",10)||0},Su=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return xu;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Cu(n),Cu(r),Cu(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ku=wu(),_u="data-scroll-locked",Eu=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(_u,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(su," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(lu," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(su," .").concat(su," {\n right: 0 ").concat(r,";\n }\n \n .").concat(lu," .").concat(lu," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(_u,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},ju=function(){var e=parseInt(document.body.getAttribute(_u)||"0",10);return isFinite(e)?e:0},Nu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;D.useEffect(function(){return document.body.setAttribute(_u,(ju()+1).toString()),function(){var e=ju()-1;e<=0?document.body.removeAttribute(_u):document.body.setAttribute(_u,e.toString())}},[]);var a=D.useMemo(function(){return Su(o)},[o]);return D.createElement(ku,{styles:Eu(a,!t,o,n?"":"!important")})},Ou=!1;if("undefined"!=typeof window)try{var Ru=Object.defineProperty({},"passive",{get:function(){return Ou=!0,!0}});window.addEventListener("test",Ru,Ru),window.removeEventListener("test",Ru,Ru)}catch(e){Ou=!1}var Pu=!!Ou&&{passive:!1},Tu=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Du=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Mu(e,r)){var o=Iu(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Mu=function(e,t){return"v"===e?function(e){return Tu(e,"overflowY")}(t):function(e){return Tu(e,"overflowX")}(t)},Iu=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Au=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fu=function(e){return[e.deltaX,e.deltaY]},Lu=function(e){return e&&"current"in e?e.current:e},zu=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},$u=0,Hu=[];function Vu(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Bu,Uu=(Bu=function(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState($u++)[0],a=D.useState(wu)[0],i=D.useRef(e);D.useEffect(function(){i.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=iu([e.lockRef.current],(e.shards||[]).map(Lu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=D.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=Au(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=Du(d,c);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=Du(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,u=a>0,c=0,d=0;do{if(!i)break;var f=Iu(e,i),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&Mu(e,i)&&(c+=h,d+=p);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(u&&Math.abs(c)<1||!u&&Math.abs(d)<1)&&(l=!0),l}(m,t,e,"h"===m?l:u)},[]),l=D.useCallback(function(e){var n=e;if(Hu.length&&Hu[Hu.length-1]===a){var r="deltaY"in n?Fu(n):Au(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(i.current.shards||[]).map(Lu).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=D.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Vu(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=D.useCallback(function(e){n.current=Au(e),r.current=void 0},[]),d=D.useCallback(function(t){u(t.type,Fu(t),t.target,s(t,e.lockRef.current))},[]),f=D.useCallback(function(t){u(t.type,Au(t),t.target,s(t,e.lockRef.current))},[]);D.useEffect(function(){return Hu.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Pu),document.addEventListener("touchmove",l,Pu),document.addEventListener("touchstart",c,Pu),function(){Hu=Hu.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Pu),document.removeEventListener("touchmove",l,Pu),document.removeEventListener("touchstart",c,Pu)}},[]);var p=e.removeScrollBar,h=e.inert;return D.createElement(D.Fragment,null,h?D.createElement(a,{styles:zu(o)}):null,p?D.createElement(Nu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},mu.useMedium(Bu),hu),Wu=D.forwardRef(function(e,t){return D.createElement(yu,ou({},e,{ref:t,sideCar:Uu}))});Wu.classNames=yu.classNames;var qu=["Enter"," "],Yu=["ArrowUp","PageDown","End"],Gu=["ArrowDown","PageUp","Home",...Yu],Ku={ltr:[...qu,"ArrowRight"],rtl:[...qu,"ArrowLeft"]},Qu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Xu="Menu",[Zu,Ju,ec]=Ha(Xu),[tc,nc]=ja(Xu,[ec,cl,$l]),rc=cl(),oc=$l(),[ac,ic]=tc(Xu),[sc,lc]=tc(Xu),uc=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=rc(t),[l,u]=D.useState(null),c=D.useRef(!1),d=Ua(a),f=Ba(o);return D.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),m.jsx(El,{...s,children:m.jsx(ac,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:m.jsx(sc,{scope:t,onClose:D.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:i,children:r})})})};uc.displayName=Xu;var cc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=rc(n);return m.jsx(jl,{...o,...r,ref:t})});cc.displayName="MenuAnchor";var dc="MenuPortal",[fc,pc]=tc(dc,{forceMount:void 0}),hc=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=ic(dc,t);return m.jsx(fc,{scope:t,forceMount:n,children:m.jsx(Pl,{present:n||a.open,children:m.jsx(Rl,{asChild:!0,container:o,children:r})})})};hc.displayName=dc;var mc="MenuContent",[gc,yc]=tc(mc),vc=D.forwardRef((e,t)=>{const n=pc(mc,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ic(mc,e.__scopeMenu),i=lc(mc,e.__scopeMenu);return m.jsx(Zu.Provider,{scope:e.__scopeMenu,children:m.jsx(Pl,{present:r||a.open,children:m.jsx(Zu.Slot,{scope:e.__scopeMenu,children:i.modal?m.jsx(bc,{...o,ref:t}):m.jsx(wc,{...o,ref:t})})})})}),bc=D.forwardRef((e,t)=>{const n=ic(mc,e.__scopeMenu),r=D.useRef(null),o=Ea(t,r);return D.useEffect(()=>{const e=r.current;if(e)return ru(e)},[]),m.jsx(Cc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Sa(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),wc=D.forwardRef((e,t)=>{const n=ic(mc,e.__scopeMenu);return m.jsx(Cc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xc=Ma("MenuContent.ScrollLock"),Cc=D.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...g}=e,y=ic(mc,n),v=lc(mc,n),b=rc(n),w=oc(n),x=Ju(n),[C,S]=D.useState(null),k=D.useRef(null),_=Ea(t,k,y.onContentChange),E=D.useRef(0),j=D.useRef(""),N=D.useRef(0),O=D.useRef(null),R=D.useRef("right"),P=D.useRef(0),T=h?Wu:D.Fragment,M=h?{as:xc,allowPinchZoom:!0}:void 0,I=e=>{const t=j.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){j.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};D.useEffect(()=>()=>window.clearTimeout(E.current),[]),ti();const A=D.useCallback(e=>R.current===O.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,u=i.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,t)}(e,O.current?.area),[]);return m.jsx(gc,{scope:n,searchRef:j,onItemEnter:D.useCallback(e=>{A(e)&&e.preventDefault()},[A]),onItemLeave:D.useCallback(e=>{A(e)||(k.current?.focus(),S(null))},[A]),onTriggerLeave:D.useCallback(e=>{A(e)&&e.preventDefault()},[A]),pointerGraceTimerRef:N,onPointerGraceIntentChange:D.useCallback(e=>{O.current=e},[]),children:m.jsx(T,{...M,children:m.jsx(ii,{asChild:!0,trapped:o,onMountAutoFocus:Sa(a,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:m.jsx(Qa,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:m.jsx(Kl,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:Sa(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Nl,{role:"menu","aria-orientation":"vertical","data-state":Gc(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...g,ref:_,style:{outline:"none",...g.style},onKeyDown:Sa(g.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&I(e.key));const o=k.current;if(e.target!==o)return;if(!Gu.includes(e.key))return;e.preventDefault();const a=x().filter(e=>!e.disabled).map(e=>e.ref.current);Yu.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:Sa(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),j.current="")}),onPointerMove:Sa(e.onPointerMove,Xc(e=>{const t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>P.current?"right":"left";R.current=t,P.current=e.clientX}}))})})})})})})});vc.displayName=mc;var Sc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(za.div,{role:"group",...r,ref:t})});Sc.displayName="MenuGroup";var kc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(za.div,{...r,ref:t})});kc.displayName="MenuLabel";var _c="MenuItem",Ec="menu.itemSelect",jc=D.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=D.useRef(null),i=lc(_c,e.__scopeMenu),s=yc(_c,e.__scopeMenu),l=Ea(t,a),u=D.useRef(!1);return m.jsx(Nc,{...o,ref:l,disabled:n,onClick:Sa(e.onClick,()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Ec,{bubbles:!0,cancelable:!0});e.addEventListener(Ec,e=>r?.(e),{once:!0}),$a(e,t),t.defaultPrevented?u.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Sa(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:Sa(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||qu.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});jc.displayName=_c;var Nc=D.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=yc(_c,n),s=oc(n),l=D.useRef(null),u=Ea(t,l),[c,d]=D.useState(!1),[f,p]=D.useState("");return D.useEffect(()=>{const e=l.current;e&&p((e.textContent??"").trim())},[a.children]),m.jsx(Zu.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(Ql,{asChild:!0,...s,focusable:!r,children:m.jsx(za.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Sa(e.onPointerMove,Xc(e=>{if(r)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:Sa(e.onPointerLeave,Xc(e=>i.onItemLeave(e))),onFocus:Sa(e.onFocus,()=>d(!0)),onBlur:Sa(e.onBlur,()=>d(!1))})})})}),Oc=D.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(Fc,{scope:e.__scopeMenu,checked:n,children:m.jsx(jc,{role:"menuitemcheckbox","aria-checked":Kc(n)?"mixed":n,...o,ref:t,"data-state":Qc(n),onSelect:Sa(o.onSelect,()=>r?.(!!Kc(n)||!n),{checkForDefaultPrevented:!1})})})});Oc.displayName="MenuCheckboxItem";var Rc="MenuRadioGroup",[Pc,Tc]=tc(Rc,{value:void 0,onValueChange:()=>{}}),Dc=D.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Ua(r);return m.jsx(Pc,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Sc,{...o,ref:t})})});Dc.displayName=Rc;var Mc="MenuRadioItem",Ic=D.forwardRef((e,t)=>{const{value:n,...r}=e,o=Tc(Mc,e.__scopeMenu),a=n===o.value;return m.jsx(Fc,{scope:e.__scopeMenu,checked:a,children:m.jsx(jc,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Qc(a),onSelect:Sa(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ic.displayName=Mc;var Ac="MenuItemIndicator",[Fc,Lc]=tc(Ac,{checked:!1}),zc=D.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Lc(Ac,n);return m.jsx(Pl,{present:r||Kc(a.checked)||!0===a.checked,children:m.jsx(za.span,{...o,ref:t,"data-state":Qc(a.checked)})})});zc.displayName=Ac;var $c=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(za.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});$c.displayName="MenuSeparator";var Hc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=rc(n);return m.jsx(Ol,{...o,...r,ref:t})});Hc.displayName="MenuArrow";var[Vc,Bc]=tc("MenuSub"),Uc="MenuSubTrigger",Wc=D.forwardRef((e,t)=>{const n=ic(Uc,e.__scopeMenu),r=lc(Uc,e.__scopeMenu),o=Bc(Uc,e.__scopeMenu),a=yc(Uc,e.__scopeMenu),i=D.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=D.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return D.useEffect(()=>c,[c]),D.useEffect(()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),m.jsx(cc,{asChild:!0,...u,children:m.jsx(Nc,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Gc(n.open),...e,ref:_a(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Sa(e.onPointerMove,Xc(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:Sa(e.onPointerLeave,Xc(e=>{c();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,l=t[o?"left":"right"],u=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:l,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Sa(e.onKeyDown,t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||Ku[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Wc.displayName=Uc;var qc="MenuSubContent",Yc=D.forwardRef((e,t)=>{const n=pc(mc,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ic(mc,e.__scopeMenu),i=lc(mc,e.__scopeMenu),s=Bc(qc,e.__scopeMenu),l=D.useRef(null),u=Ea(t,l);return m.jsx(Zu.Provider,{scope:e.__scopeMenu,children:m.jsx(Pl,{present:r||a.open,children:m.jsx(Zu.Slot,{scope:e.__scopeMenu,children:m.jsx(Cc,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Sa(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Sa(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:Sa(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=Qu[i.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function Gc(e){return e?"open":"closed"}function Kc(e){return"indeterminate"===e}function Qc(e){return Kc(e)?"indeterminate":e?"checked":"unchecked"}function Xc(e){return t=>"mouse"===t.pointerType?e(t):void 0}Yc.displayName=qc;var Zc=uc,Jc=cc,ed=hc,td=vc,nd=Sc,rd=kc,od=jc,ad=Oc,id=Dc,sd=Ic,ld=zc,ud=$c,cd=Hc,dd=Wc,fd=Yc,pd="DropdownMenu",[hd]=ja(pd,[nc]),md=nc(),[gd,yd]=hd(pd),vd=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=md(t),u=D.useRef(null),[c,d]=Pa({prop:o,defaultProp:a??!1,onChange:i,caller:pd});return m.jsx(gd,{scope:t,triggerId:mi(),triggerRef:u,contentId:mi(),open:c,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(e=>!e),[d]),modal:s,children:m.jsx(Zc,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})};vd.displayName=pd;var bd="DropdownMenuTrigger",wd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=yd(bd,n),i=md(n);return m.jsx(Jc,{asChild:!0,...i,children:m.jsx(za.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:_a(t,a.triggerRef),onPointerDown:Sa(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:Sa(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});wd.displayName=bd;var xd=e=>{const{__scopeDropdownMenu:t,...n}=e,r=md(t);return m.jsx(ed,{...r,...n})};xd.displayName="DropdownMenuPortal";var Cd="DropdownMenuContent",Sd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yd(Cd,n),a=md(n),i=D.useRef(!1);return m.jsx(td,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:Sa(e.onCloseAutoFocus,e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:Sa(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Sd.displayName=Cd;D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(nd,{...o,...r,ref:t})}).displayName="DropdownMenuGroup";var kd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(rd,{...o,...r,ref:t})});kd.displayName="DropdownMenuLabel";var _d=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(od,{...o,...r,ref:t})});_d.displayName="DropdownMenuItem";var Ed=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(ad,{...o,...r,ref:t})});Ed.displayName="DropdownMenuCheckboxItem";D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(id,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup";var jd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(sd,{...o,...r,ref:t})});jd.displayName="DropdownMenuRadioItem";var Nd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(ld,{...o,...r,ref:t})});Nd.displayName="DropdownMenuItemIndicator";var Od=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(ud,{...o,...r,ref:t})});Od.displayName="DropdownMenuSeparator";D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(cd,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var Rd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(dd,{...o,...r,ref:t})});Rd.displayName="DropdownMenuSubTrigger";var Pd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=md(n);return m.jsx(fd,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pd.displayName="DropdownMenuSubContent";var Td=vd,Dd=wd,Md=xd,Id=Sd,Ad=kd,Fd=_d,Ld=Ed,zd=jd,$d=Nd,Hd=Od,Vd=Rd,Bd=Pd;
|
|
32
|
+
function Xr(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?D.createElement(e,t):e:null;var n}function Zr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zr(e))&&(r&&(r+=" "),r+=t);return r}const eo=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),to="-",no=[],ro=e=>{const t=io(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return ao(e);const n=e.split(to),r=""===n[0]&&n.length>1?1:0;return oo(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||no}return n[e]||no}}},oo=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=oo(e,t+1,o);if(n)return n}const a=n.validators;if(null===a)return;const i=0===t?e.join(to):e.slice(t).join(to),s=a.length;for(let e=0;e<s;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},ao=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),io=e=>{const{theme:t,classGroups:n}=e;return so(n,t)},so=(e,t)=>{const n=eo();for(const r in e){const o=e[r];lo(o,n,r,t)}return n},lo=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];uo(o,t,n,r)}},uo=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?po(e,t,n,r):fo(e,t,n,r):co(e,t,n)},co=(e,t,n)=>{(""===e?t:ho(t,e)).classGroupId=n},fo=(e,t,n,r)=>{mo(e)?lo(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},po=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];lo(i,ho(t,a),n,r)}},ho=(e,t)=>{let n=e;const r=t.split(to),o=r.length;for(let e=0;e<o;e++){const t=r[e];let o=n.nextPart.get(t);o||(o=eo(),n.nextPart.set(t,o)),n=o}return n},mo=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},yo=[],vo=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),bo=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;const i=e.length;for(let s=0;s<i;s++){const i=e[s];if(0===r&&0===o){if(":"===i){t.push(e.slice(a,s)),a=s+1;continue}if("/"===i){n=s;continue}}"["===i?r++:"]"===i?r--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,u=!1;s.endsWith("!")?(l=s.slice(0,-1),u=!0):s.startsWith("!")&&(l=s.slice(1),u=!0);return vo(t,u,l,n&&n>a?n-a:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):vo(yo,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},wo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},xo=/\s+/,Co=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Co(e[r]))&&(n&&(n+=" "),n+=t);return n},So=(e,...t)=>{let n,r,o,a;const i=e=>{const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(xo);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=0===c.length?"":1===c.length?c[0]:a(c).join(":"),y=d?g+"!":g,v=y+m;if(i.indexOf(v)>-1)continue;i.push(v);const b=o(m,h);for(let e=0;e<b.length;++e){const t=b[e];i.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:go(e.cacheSize),parseClassName:bo(e),sortModifiers:wo(e),...ro(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=Co(t))&&(o&&(o+=" "),o+=n);return o})(...e))},ko=[],_o=e=>{const t=t=>t[e]||ko;return t.isThemeGetter=!0,t},Eo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,No=/^\d+\/\d+$/,Oo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ro=/\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$/,Po=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,To=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Do=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mo=e=>No.test(e),Io=e=>!!e&&!Number.isNaN(Number(e)),Ao=e=>!!e&&Number.isInteger(Number(e)),Fo=e=>e.endsWith("%")&&Io(e.slice(0,-1)),Lo=e=>Oo.test(e),zo=()=>!0,$o=e=>Ro.test(e)&&!Po.test(e),Ho=()=>!1,Vo=e=>To.test(e),Bo=e=>Do.test(e),Uo=e=>!qo(e)&&!Zo(e),Wo=e=>aa(e,ua,Ho),qo=e=>Eo.test(e),Yo=e=>aa(e,ca,$o),Go=e=>aa(e,da,Io),Ko=e=>aa(e,sa,Ho),Qo=e=>aa(e,la,Bo),Xo=e=>aa(e,pa,Vo),Zo=e=>jo.test(e),Jo=e=>ia(e,ca),ea=e=>ia(e,fa),ta=e=>ia(e,sa),na=e=>ia(e,ua),ra=e=>ia(e,la),oa=e=>ia(e,pa,!0),aa=(e,t,n)=>{const r=Eo.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},ia=(e,t,n=!1)=>{const r=jo.exec(e);return!!r&&(r[1]?t(r[1]):n)},sa=e=>"position"===e||"percentage"===e,la=e=>"image"===e||"url"===e,ua=e=>"length"===e||"size"===e||"bg-size"===e,ca=e=>"length"===e,da=e=>"number"===e,fa=e=>"family-name"===e,pa=e=>"shadow"===e,ha=So(()=>{const e=_o("color"),t=_o("font"),n=_o("text"),r=_o("font-weight"),o=_o("tracking"),a=_o("leading"),i=_o("breakpoint"),s=_o("container"),l=_o("spacing"),u=_o("radius"),c=_o("shadow"),d=_o("inset-shadow"),f=_o("text-shadow"),p=_o("drop-shadow"),h=_o("blur"),m=_o("perspective"),g=_o("aspect"),y=_o("ease"),v=_o("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Zo,qo],w=()=>[Zo,qo,l],x=()=>[Mo,"full","auto",...w()],C=()=>[Ao,"none","subgrid",Zo,qo],S=()=>["auto",{span:["full",Ao,Zo,qo]},Ao,Zo,qo],k=()=>[Ao,"auto",Zo,qo],_=()=>["auto","min","max","fr",Zo,qo],E=()=>["auto",...w()],j=()=>[Mo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],N=()=>[e,Zo,qo],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ta,Ko,{position:[Zo,qo]}],R=()=>["auto","cover","contain",na,Wo,{size:[Zo,qo]}],P=()=>[Fo,Jo,Yo],T=()=>["","none","full",u,Zo,qo],D=()=>["",Io,Jo,Yo],M=()=>[Io,Fo,ta,Ko],I=()=>["","none",h,Zo,qo],A=()=>["none",Io,Zo,qo],F=()=>["none",Io,Zo,qo],L=()=>[Io,Zo,qo],z=()=>[Mo,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lo],breakpoint:[Lo],color:[zo],container:[Lo],"drop-shadow":[Lo],ease:["in","out","in-out"],font:[Uo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lo],shadow:[Lo],spacing:["px",Io],text:[Lo],"text-shadow":[Lo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mo,qo,Zo,g]}],container:["container"],columns:[{columns:[Io,qo,Zo,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Ao,"auto",Zo,qo]}],basis:[{basis:[Mo,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Io,Mo,"auto","initial","none",qo]}],grow:[{grow:["",Io,Zo,qo]}],shrink:[{shrink:["",Io,Zo,qo]}],order:[{order:[Ao,"first","last","none",Zo,qo]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Jo,Yo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Zo,Go]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fo,qo]}],"font-family":[{font:[ea,qo,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Zo,qo]}],"line-clamp":[{"line-clamp":[Io,"none",Zo,Go]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",Zo,qo]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Zo,qo]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Io,"from-font","auto",Zo,Yo]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[Io,"auto",Zo,qo]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Zo,qo]}],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",Zo,qo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ao,Zo,qo],radial:["",Zo,qo],conic:[Ao,Zo,qo]},ra,Qo]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Io,Zo,qo]}],"outline-w":[{outline:["",Io,Jo,Yo]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,oa,Xo]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,oa,Xo]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[Io,Yo]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,oa,Xo]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[Io,Zo,qo]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"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":[Io]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Zo,qo]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Io]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Zo,qo]}],filter:[{filter:["","none",Zo,qo]}],blur:[{blur:I()}],brightness:[{brightness:[Io,Zo,qo]}],contrast:[{contrast:[Io,Zo,qo]}],"drop-shadow":[{"drop-shadow":["","none",p,oa,Xo]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",Io,Zo,qo]}],"hue-rotate":[{"hue-rotate":[Io,Zo,qo]}],invert:[{invert:["",Io,Zo,qo]}],saturate:[{saturate:[Io,Zo,qo]}],sepia:[{sepia:["",Io,Zo,qo]}],"backdrop-filter":[{"backdrop-filter":["","none",Zo,qo]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[Io,Zo,qo]}],"backdrop-contrast":[{"backdrop-contrast":[Io,Zo,qo]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Io,Zo,qo]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Io,Zo,qo]}],"backdrop-invert":[{"backdrop-invert":["",Io,Zo,qo]}],"backdrop-opacity":[{"backdrop-opacity":[Io,Zo,qo]}],"backdrop-saturate":[{"backdrop-saturate":[Io,Zo,qo]}],"backdrop-sepia":[{"backdrop-sepia":["",Io,Zo,qo]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Zo,qo]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Io,"initial",Zo,qo]}],ease:[{ease:["linear","initial",y,Zo,qo]}],delay:[{delay:[Io,Zo,qo]}],animate:[{animate:["none",v,Zo,qo]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Zo,qo]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:A()}],"rotate-x":[{"rotate-x":A()}],"rotate-y":[{"rotate-y":A()}],"rotate-z":[{"rotate-z":A()}],scale:[{scale:F()}],"scale-x":[{"scale-x":F()}],"scale-y":[{"scale-y":F()}],"scale-z":[{"scale-z":F()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[Zo,qo,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",Zo,qo]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",Zo,qo]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[Io,Jo,Yo,Go]}],stroke:[{stroke:["none",...N()]}],"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"]}});function ma(...e){return ha(Jr(e))}const ga=D.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:n,className:ma("w-full caption-bottom text-sm",e),...t})}));ga.displayName="Table";const ya=D.forwardRef(({className:e,...t},n)=>m.jsx("thead",{ref:n,className:ma("[&_tr]:border-b",e),...t}));ya.displayName="TableHeader";const va=D.forwardRef(({className:e,...t},n)=>m.jsx("tbody",{ref:n,className:ma("[&_tr:last-child]:border-0",e),...t}));va.displayName="TableBody";D.forwardRef(({className:e,...t},n)=>m.jsx("tfoot",{ref:n,className:ma("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})).displayName="TableFooter";const ba=D.forwardRef(({className:e,...t},n)=>m.jsx("tr",{ref:n,className:ma("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));ba.displayName="TableRow";const wa=D.forwardRef(({className:e,...t},n)=>m.jsx("th",{ref:n,className:ma("h-12 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));wa.displayName="TableHead";const xa=D.forwardRef(({className:e,...t},n)=>m.jsx("td",{ref:n,className:ma("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));xa.displayName="TableCell";function Ca({className:e,...t}){return m.jsx("div",{className:ma("animate-pulse rounded-md bg-neutral-100 dark:bg-neutral-800",e),...t})}function Sa(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function ka(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function _a(...e){return t=>{let n=!1;const r=e.map(e=>{const r=ka(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():ka(e[t],null)}}}}function Ea(...e){return D.useCallback(_a(...e),e)}function ja(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>D.createContext(e));return function(n){const r=n?.[e]||t;return D.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=D.createContext(r),a=n.length;n=[...n,r];const i=t=>{const{scope:n,children:r,...i}=t,s=n?.[e]?.[a]||o,l=D.useMemo(()=>i,Object.values(i));return m.jsx(s.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e]?.[a]||o,l=D.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Na(r,...t)]}function Na(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return D.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}D.forwardRef(({className:e,...t},n)=>m.jsx("caption",{ref:n,className:ma("mt-4 text-sm text-muted-foreground",e),...t})).displayName="TableCaption";var Oa=globalThis?.document?D.useLayoutEffect:()=>{},Ra=I[" useInsertionEffect ".trim().toString()]||Oa;function Pa({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=D.useState(e),o=D.useRef(n),a=D.useRef(t);return Ra(()=>{a.current=t},[t]),D.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;{const t=D.useRef(void 0!==e);D.useEffect(()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}const u=D.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i]);return[l,u]}var Ta=N(),Da=n(Ta);function Ma(e){const t=Ia(e),n=D.forwardRef((e,n)=>{const{children:r,...o}=e,a=D.Children.toArray(r),i=a.find(Fa);if(i){const e=i.props.children,r=a.map(t=>t===i?D.Children.count(e)>1?D.Children.only(null):D.isValidElement(e)?e.props.children:null:t);return m.jsx(t,{...o,ref:n,children:D.isValidElement(e)?D.cloneElement(e,void 0,r):null})}return m.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ia(e){const t=D.forwardRef((e,t)=>{const{children:n,...r}=e;if(D.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==D.Fragment&&(o.ref=t?_a(t,e):e),D.cloneElement(n,o)}return D.Children.count(n)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Aa=Symbol("radix.slottable");function Fa(e){return D.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Aa}var La=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Ma(`Primitive.${t}`),r=D.forwardRef((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function za(e,t){e&&Ta.flushSync(()=>e.dispatchEvent(t))}function $a(e){const t=e+"CollectionProvider",[n,r]=ja(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return m.jsx(o,{scope:t,itemMap:a,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=Ma(s),u=M.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=Ea(t,a(s,n).collectionRef);return m.jsx(l,{ref:o,children:r})});u.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ma(c),p=M.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,i=M.useRef(null),s=Ea(t,i),l=a(c,n);return M.useEffect(()=>(l.itemMap.set(i,{ref:i,...o}),()=>{l.itemMap.delete(i)})),m.jsx(f,{[d]:"",ref:s,children:r})});return p.displayName=c,[{Provider:i,Slot:u,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t),r=M.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},r]}var Ha=D.createContext(void 0);function Va(e){const t=D.useContext(Ha);return e||t||"ltr"}function Ba(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...e)=>t.current?.(...e),[])}var Ua,Wa="dismissableLayer.update",qa="dismissableLayer.pointerDownOutside",Ya="dismissableLayer.focusOutside",Ga=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ka=D.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=D.useContext(Ga),[c,d]=D.useState(null),f=c?.ownerDocument??globalThis?.document,[,p]=D.useState({}),h=Ea(t,e=>d(e)),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),b=c?g.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=v,C=function(e,t=globalThis?.document){const n=Ba(e),r=D.useRef(!1),o=D.useRef(()=>{});return D.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Za(qa,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));x&&!n&&(o?.(e),i?.(e),e.defaultPrevented||s?.())},f),S=function(e,t=globalThis?.document){const n=Ba(e),r=D.useRef(!1);return D.useEffect(()=>{const e=e=>{if(e.target&&!r.current){Za(Ya,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),i?.(e),e.defaultPrevented||s?.())},f);return function(e,t=globalThis?.document){const n=Ba(e);D.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{b===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),D.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Ua=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Xa(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Ua)}},[c,f,n,u]),D.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Xa())},[c,u]),D.useEffect(()=>{const e=()=>p({});return document.addEventListener(Wa,e),()=>document.removeEventListener(Wa,e)},[]),m.jsx(La.div,{...l,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Sa(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Sa(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Sa(e.onPointerDownCapture,C.onPointerDownCapture)})});Ka.displayName="DismissableLayer";var Qa=D.forwardRef((e,t)=>{const n=D.useContext(Ga),r=D.useRef(null),o=Ea(t,r);return D.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),m.jsx(La.div,{...e,ref:o})});function Xa(){const e=new CustomEvent(Wa);document.dispatchEvent(e)}function Za(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?za(o,a):o.dispatchEvent(a)}Qa.displayName="DismissableLayerBranch";var Ja=0;function ei(){D.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ti()),document.body.insertAdjacentElement("beforeend",e[1]??ti()),Ja++,()=>{1===Ja&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Ja--}},[])}function ti(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ni="focusScope.autoFocusOnMount",ri="focusScope.autoFocusOnUnmount",oi={bubbles:!1,cancelable:!0},ai=D.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=D.useState(null),u=Ba(o),c=Ba(a),d=D.useRef(null),f=Ea(t,e=>l(e)),p=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:ui(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||ui(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ui(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,p.paused]),D.useEffect(()=>{if(s){ci.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(ni,oi);s.addEventListener(ni,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ui(r,{select:t}),document.activeElement!==n)return}((e=ii(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&ui(s))}return()=>{s.removeEventListener(ni,u),setTimeout(()=>{const e=new CustomEvent(ri,oi);s.addEventListener(ri,c),s.dispatchEvent(e),e.defaultPrevented||ui(t??document.body,{select:!0}),s.removeEventListener(ri,c),ci.remove(p)},0)}}var e},[s,u,c,p]);const h=D.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=ii(e),n=si(t,e),r=si(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&ui(a,{select:!0})):(e.preventDefault(),n&&ui(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return m.jsx(La.div,{tabIndex:-1,...i,ref:f,onKeyDown:h})});function ii(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function si(e,t){for(const n of e)if(!li(n,{upTo:t}))return n}function li(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ui(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}ai.displayName="FocusScope";var ci=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=di(e,t),e.unshift(t)},remove(t){e=di(e,t),e[0]?.resume()}}}();function di(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var fi=I[" useId ".trim().toString()]||(()=>{}),pi=0;function hi(e){const[t,n]=D.useState(fi());return Oa(()=>{n(e=>e??String(pi++))},[e]),t?`radix-${t}`:""}const mi=["top","right","bottom","left"],gi=Math.min,yi=Math.max,vi=Math.round,bi=Math.floor,wi=e=>({x:e,y:e}),xi={left:"right",right:"left",bottom:"top",top:"bottom"},Ci={start:"end",end:"start"};function Si(e,t,n){return yi(e,gi(t,n))}function ki(e,t){return"function"==typeof e?e(t):e}function _i(e){return e.split("-")[0]}function Ei(e){return e.split("-")[1]}function ji(e){return"x"===e?"y":"x"}function Ni(e){return"y"===e?"height":"width"}const Oi=new Set(["top","bottom"]);function Ri(e){return Oi.has(_i(e))?"y":"x"}function Pi(e){return ji(Ri(e))}function Ti(e){return e.replace(/start|end/g,e=>Ci[e])}const Di=["left","right"],Mi=["right","left"],Ii=["top","bottom"],Ai=["bottom","top"];function Fi(e,t,n,r){const o=Ei(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Mi:Di:t?Di:Mi;case"left":case"right":return t?Ii:Ai;default:return[]}}(_i(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Ti)))),a}function Li(e){return e.replace(/left|right|bottom|top/g,e=>xi[e])}function zi(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $i(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Hi(e,t,n){let{reference:r,floating:o}=e;const a=Ri(t),i=Pi(t),s=Ni(i),l=_i(t),u="y"===a,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ei(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}async function Vi(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ki(t,e),h=zi(p),m=s[f?"floating"===d?"reference":"floating":d],g=$i(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=$i(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function Bi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ui(e){return mi.some(t=>e[t]>=0)}const Wi=new Set(["left","top"]);function qi(){return"undefined"!=typeof window}function Yi(e){return Qi(e)?(e.nodeName||"").toLowerCase():"#document"}function Gi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ki(e){var t;return null==(t=(Qi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Qi(e){return!!qi()&&(e instanceof Node||e instanceof Gi(e).Node)}function Xi(e){return!!qi()&&(e instanceof Element||e instanceof Gi(e).Element)}function Zi(e){return!!qi()&&(e instanceof HTMLElement||e instanceof Gi(e).HTMLElement)}function Ji(e){return!(!qi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Gi(e).ShadowRoot)}const es=new Set(["inline","contents"]);function ts(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ps(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!es.has(o)}const ns=new Set(["table","td","th"]);function rs(e){return ns.has(Yi(e))}const os=[":popover-open",":modal"];function as(e){return os.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const is=["transform","translate","scale","rotate","perspective"],ss=["transform","translate","scale","rotate","perspective","filter"],ls=["paint","layout","strict","content"];function us(e){const t=cs(),n=Xi(e)?ps(e):e;return is.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ss.some(e=>(n.willChange||"").includes(e))||ls.some(e=>(n.contain||"").includes(e))}function cs(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ds=new Set(["html","body","#document"]);function fs(e){return ds.has(Yi(e))}function ps(e){return Gi(e).getComputedStyle(e)}function hs(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ms(e){if("html"===Yi(e))return e;const t=e.assignedSlot||e.parentNode||Ji(e)&&e.host||Ki(e);return Ji(t)?t.host:t}function gs(e){const t=ms(e);return fs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(t)&&ts(t)?t:gs(t)}function ys(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=gs(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Gi(o);if(a){const e=vs(i);return t.concat(i,i.visualViewport||[],ts(o)?o:[],e&&n?ys(e):[])}return t.concat(o,ys(o,[],n))}function vs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bs(e){const t=ps(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Zi(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=vi(n)!==a||vi(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function ws(e){return Xi(e)?e:e.contextElement}function xs(e){const t=ws(e);if(!Zi(t))return wi(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=bs(t);let i=(a?vi(n.width):n.width)/r,s=(a?vi(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Cs=wi(0);function Ss(e){const t=Gi(e);return cs()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Cs}function ks(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=ws(e);let i=wi(1);t&&(r?Xi(r)&&(i=xs(r)):i=xs(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Gi(e))&&t}(a,n,r)?Ss(a):wi(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Gi(a),t=r&&Xi(r)?Gi(r):r;let n=e,o=vs(n);for(;o&&r&&t!==n;){const e=xs(o),t=o.getBoundingClientRect(),r=ps(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=a,u+=i,n=Gi(o),o=vs(n)}}return $i({width:c,height:d,x:l,y:u})}function _s(e,t){const n=hs(e).scrollLeft;return t?t.left+n:ks(Ki(e)).left+n}function Es(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-_s(e,n),y:n.top+t.scrollTop}}const js=new Set(["absolute","fixed"]);function Ns(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Gi(e),r=Ki(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=cs();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const u=_s(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else u<=25&&(a+=u);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ki(e),n=hs(e),r=e.ownerDocument.body,o=yi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=yi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_s(e);const s=-n.scrollTop;return"rtl"===ps(r).direction&&(i+=yi(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Ki(e));else if(Xi(t))r=function(e,t){const n=ks(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Zi(e)?xs(e):wi(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Ss(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $i(r)}function Os(e,t){const n=ms(e);return!(n===t||!Xi(n)||fs(n))&&("fixed"===ps(n).position||Os(n,t))}function Rs(e,t,n){const r=Zi(t),o=Ki(t),a="fixed"===n,i=ks(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=wi(0);function u(){l.x=_s(o)}if(r||!r&&!a)if(("body"!==Yi(t)||ts(o))&&(s=hs(t)),r){const e=ks(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();a&&!r&&o&&u();const c=!o||r||a?wi(0):Es(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function Ps(e){return"static"===ps(e).position}function Ts(e,t){if(!Zi(e)||"fixed"===ps(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ki(e)===n&&(n=n.ownerDocument.body),n}function Ds(e,t){const n=Gi(e);if(as(e))return n;if(!Zi(e)){let t=ms(e);for(;t&&!fs(t);){if(Xi(t)&&!Ps(t))return t;t=ms(t)}return n}let r=Ts(e,t);for(;r&&rs(r)&&Ps(r);)r=Ts(r,t);return r&&fs(r)&&Ps(r)&&!us(r)?n:r||function(e){let t=ms(e);for(;Zi(t)&&!fs(t);){if(us(t))return t;if(as(t))return null;t=ms(t)}return null}(e)||n}const Ms={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Ki(r),s=!!t&&as(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=wi(1);const c=wi(0),d=Zi(r);if((d||!d&&!a)&&(("body"!==Yi(r)||ts(i))&&(l=hs(r)),Zi(r))){const e=ks(r);u=xs(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!i||d||a?wi(0):Es(i,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:Ki,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?as(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ys(e,[],!1).filter(e=>Xi(e)&&"body"!==Yi(e)),o=null;const a="fixed"===ps(e).position;let i=a?ms(e):e;for(;Xi(i)&&!fs(i);){const t=ps(i),n=us(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&js.has(o.position)||ts(i)&&!n&&Os(e,i))?r=r.filter(e=>e!==i):o=t,i=ms(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((e,n)=>{const r=Ns(t,n,o);return e.top=yi(r.top,e.top),e.right=gi(r.right,e.right),e.bottom=gi(r.bottom,e.bottom),e.left=yi(r.left,e.left),e},Ns(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ds,getElementRects:async function(e){const t=this.getOffsetParent||Ds,n=this.getDimensions,r=await n(e.floating);return{reference:Rs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=bs(e);return{width:t,height:n}},getScale:xs,isElement:Xi,isRTL:function(e){return"rtl"===ps(e).direction}};function Is(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function As(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=ws(e),c=o||a?[...u?ys(u):[],...ys(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=Ki(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-bi(d)+"px "+-bi(o.clientWidth-(c+f))+"px "+-bi(o.clientHeight-(d+p))+"px "+-bi(c)+"px",threshold:yi(0,gi(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||Is(u,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?ks(e):null;return l&&function t(){const r=ks(e);m&&!Is(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Fs=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=_i(n),s=Ei(n),l="y"===Ri(n),u=Wi.has(i)?-1:1,c=a&&l?-1:1,d=ki(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Ls=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=ki(e,t),c={x:n,y:r},d=await a.detectOverflow(t,u),f=Ri(_i(o)),p=ji(f);let h=c[p],m=c[f];if(i){const e="y"===p?"bottom":"right";h=Si(h+d["y"===p?"top":"left"],h,h-d[e])}if(s){const e="y"===f?"bottom":"right";m=Si(m+d["y"===f?"top":"left"],m,m-d[e])}const g=l.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:s}}}}}},zs=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=ki(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=_i(o),v=Ri(s),b=_i(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=f||(b||!m?[Li(s)]:function(e){const t=Li(e);return[Ti(e),t,Ti(t)]}(s)),C="none"!==h;!f&&C&&x.push(...Fi(s,m,h,w));const S=[s,...x],k=await l.detectOverflow(t,g),_=[];let E=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&_.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ei(e),o=Pi(e),a=Ni(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Li(i)),[i,Li(i)]}(o,i,w);_.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:o,overflows:_}],!_.every(e=>e<=0)){var j,N;const e=((null==(j=a.flip)?void 0:j.index)||0)+1,t=S[e];if(t){if(!("alignment"===d&&v!==Ri(t))||E.every(e=>Ri(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(N=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=E.filter(e=>{if(C){const t=Ri(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},$s=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...u}=ki(e,t),c=await i.detectOverflow(t,u),d=_i(o),f=Ei(o),p="y"===Ri(o),{width:h,height:m}=a.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const v=m-c.top-c.bottom,b=h-c.left-c.right,w=gi(m-c[g],v),x=gi(h-c[y],b),C=!t.middlewareData.shift;let S=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),C&&!f){const e=yi(c.left,0),t=yi(c.right,0),n=yi(c.top,0),r=yi(c.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:yi(c.left,c.right)):S=m-2*(0!==n||0!==r?n+r:yi(c.top,c.bottom))}await l({...t,availableWidth:k,availableHeight:S});const _=await i.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}},Hs=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=ki(e,t);switch(o){case"referenceHidden":{const e=Bi(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ui(e)}}}case"escaped":{const e=Bi(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ui(e)}}}default:return{}}}}},Vs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=ki(e,t)||{};if(null==u)return{};const d=zi(c),f={x:n,y:r},p=Pi(o),h=Ni(p),m=await i.getDimensions(u),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let S=C?C[b]:0;S&&await(null==i.isElement?void 0:i.isElement(C))||(S=s.floating[b]||a.floating[h]);const k=w/2-x/2,_=S/2-m[h]/2-1,E=gi(d[y],_),j=gi(d[v],_),N=E,O=S-m[h]-j,R=S/2-m[h]/2+k,P=Si(N,R,O),T=!l.arrow&&null!=Ei(o)&&R!==P&&a.reference[h]/2-(R<N?E:j)-m[h]/2<0,D=T?R<N?R-N:R-O:0;return{[p]:f[p]+D,data:{[p]:P,centerOffset:R-P-D,...T&&{alignmentOffset:D}},reset:T}}}),Bs=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=ki(e,t),c={x:n,y:r},d=Ri(o),f=ji(d);let p=c[f],h=c[d];const m=ki(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;const e="y"===f?"width":"height",t=Wi.has(_i(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Us=(e,t,n)=>{const r=new Map,o={platform:Ms,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Hi(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){var m;const{name:a,fn:g}=s[n],{x:y,y:v,data:b,reset:w}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:{...i,detectOverflow:null!=(m=i.detectOverflow)?m:Vi},elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=v?v:d,p={...p,[a]:{...p[a],...b}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:c,y:d}=Hi(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var Ws="undefined"!=typeof document?D.useLayoutEffect:function(){};function qs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!qs(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!qs(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ys(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gs(e,t){const n=Ys(e);return Math.round(t*n)/n}function Ks(e){const t=D.useRef(e);return Ws(()=>{t.current=e}),t}const Qs=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Vs({element:n.current,padding:r}).fn(t):{}:n?Vs({element:n,padding:r}).fn(t):{};var o}}),Xs=(e,t)=>({...Fs(e),options:[e,t]}),Zs=(e,t)=>({...Ls(e),options:[e,t]}),Js=(e,t)=>({...Bs(e),options:[e,t]}),el=(e,t)=>({...zs(e),options:[e,t]}),tl=(e,t)=>({...$s(e),options:[e,t]}),nl=(e,t)=>({...Hs(e),options:[e,t]}),rl=(e,t)=>({...Qs(e),options:[e,t]});var ol=D.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(La.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});ol.displayName="Arrow";var al=ol;function il(e){const[t,n]=D.useState(void 0);return Oa(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}var sl="Popper",[ll,ul]=ja(sl),[cl,dl]=ll(sl),fl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=D.useState(null);return m.jsx(cl,{scope:t,anchor:r,onAnchorChange:o,children:n})};fl.displayName=sl;var pl="PopperAnchor",hl=D.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=dl(pl,n),i=D.useRef(null),s=Ea(t,i),l=D.useRef(null);return D.useEffect(()=>{const e=l.current;l.current=r?.current||i.current,e!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(La.div,{...o,ref:s})});hl.displayName=pl;var ml="PopperContent",[gl,yl]=ll(ml),vl=D.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=dl(ml,n),[v,b]=D.useState(null),w=Ea(t,e=>b(e)),[x,C]=D.useState(null),S=il(x),k=S?.width??0,_=S?.height??0,E=r+("center"!==a?"-"+a:""),j="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},N=Array.isArray(u)?u:[u],O=N.length>0,R={padding:j,boundary:N.filter(Cl),altBoundary:O},{refs:P,floatingStyles:T,placement:M,isPositioned:I,middlewareData:A}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=D.useState(r);qs(f,r)||p(r);const[h,m]=D.useState(null),[g,y]=D.useState(null),v=D.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),b=D.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=a||h,x=i||g,C=D.useRef(null),S=D.useRef(null),k=D.useRef(c),_=null!=l,E=Ks(l),j=Ks(o),N=Ks(u),O=D.useCallback(()=>{if(!C.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),Us(C.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!qs(k.current,t)&&(k.current=t,Ta.flushSync(()=>{d(t)}))})},[f,t,n,j,N]);Ws(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const R=D.useRef(!1);Ws(()=>(R.current=!0,()=>{R.current=!1}),[]),Ws(()=>{if(w&&(C.current=w),x&&(S.current=x),w&&x){if(E.current)return E.current(w,x,O);O()}},[w,x,O,E,_]);const P=D.useMemo(()=>({reference:C,floating:S,setReference:v,setFloating:b}),[v,b]),T=D.useMemo(()=>({reference:w,floating:x}),[w,x]),M=D.useMemo(()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=Gs(T.floating,c.x),r=Gs(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Ys(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,T.floating,c.x,c.y]);return D.useMemo(()=>({...c,update:O,refs:P,elements:T,floatingStyles:M}),[c,O,P,T,M])}({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>As(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[Xs({mainAxis:o+_,alignmentAxis:i}),l&&Zs({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?Js():void 0,...R}),l&&el({...R}),tl({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),x&&rl({element:x,padding:s}),Sl({arrowWidth:k,arrowHeight:_}),f&&nl({strategy:"referenceHidden",...R})]}),[F,L]=kl(M),z=Ba(h);Oa(()=>{I&&z?.()},[I,z]);const $=A.arrow?.x,H=A.arrow?.y,V=0!==A.arrow?.centerOffset,[B,U]=D.useState();return Oa(()=>{v&&U(window.getComputedStyle(v).zIndex)},[v]),m.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:I?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(gl,{scope:n,placedSide:F,onArrowChange:C,arrowX:$,arrowY:H,shouldHideArrow:V,children:m.jsx(La.div,{"data-side":F,"data-align":L,...g,ref:w,style:{...g.style,animation:I?void 0:"none"}})})})});vl.displayName=ml;var bl="PopperArrow",wl={top:"bottom",right:"left",bottom:"top",left:"right"},xl=D.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=yl(bl,n),a=wl[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(al,{...r,ref:t,style:{...r.style,display:"block"}})})});function Cl(e){return null!==e}xl.displayName=bl;var Sl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=kl(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=a?c:`${d}px`,h=-s+"px"):"top"===l?(p=a?c:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=a?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=a?c:`${f}px`),{data:{x:p,y:h}}}});function kl(e){const[t,n="center"]=e.split("-");return[t,n]}var _l=fl,El=hl,jl=vl,Nl=xl,Ol=D.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=D.useState(!1);Oa(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Da.createPortal(m.jsx(La.div,{...r,ref:t}),i):null});Ol.displayName="Portal";var Rl=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=D.useState(),r=D.useRef(null),o=D.useRef(e),a=D.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return D.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const e=Pl(r.current);a.current="mounted"===s?e:"none"},[s]),Oa(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Pl(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),Oa(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=Pl(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=Pl(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:D.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):D.Children.only(n),a=Ea(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?D.cloneElement(o,{ref:a}):null};function Pl(e){return e?.animationName||"none"}Rl.displayName="Presence";var Tl="rovingFocusGroup.onEntryFocus",Dl={bubbles:!1,cancelable:!0},Ml="RovingFocusGroup",[Il,Al,Fl]=$a(Ml),[Ll,zl]=ja(Ml,[Fl]),[$l,Hl]=Ll(Ml),Vl=D.forwardRef((e,t)=>m.jsx(Il.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Il.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Bl,{...e,ref:t})})}));Vl.displayName=Ml;var Bl=D.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=D.useRef(null),p=Ea(t,f),h=Va(a),[g,y]=Pa({prop:i,defaultProp:s??null,onChange:l,caller:Ml}),[v,b]=D.useState(!1),w=Ba(u),x=Al(n),C=D.useRef(!1),[S,k]=D.useState(0);return D.useEffect(()=>{const e=f.current;if(e)return e.addEventListener(Tl,w),()=>e.removeEventListener(Tl,w)},[w]),m.jsx($l,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:g,onItemFocus:D.useCallback(e=>y(e),[y]),onItemShiftTab:D.useCallback(()=>b(!0),[]),onFocusableItemAdd:D.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:D.useCallback(()=>k(e=>e-1),[]),children:m.jsx(La.div,{tabIndex:v||0===S?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Sa(e.onMouseDown,()=>{C.current=!0}),onFocus:Sa(e.onFocus,e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(Tl,Dl);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter(e=>e.focusable);Yl([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),c)}}C.current=!1}),onBlur:Sa(e.onBlur,()=>b(!1))})})}),Ul="RovingFocusGroupItem",Wl=D.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,l=hi(),u=a||l,c=Hl(Ul,n),d=c.currentTabStopId===u,f=Al(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:g}=c;return D.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),m.jsx(Il.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:m.jsx(La.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Sa(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:Sa(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Sa(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:ql[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=c.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>Yl(o))}var n,r}),children:"function"==typeof i?i({isCurrentTabStop:d,hasTabStop:null!=g}):i})})});Wl.displayName=Ul;var ql={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Yl(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Gl=Vl,Kl=Wl,Ql=new WeakMap,Xl=new WeakMap,Zl={},Jl=0,eu=function(e){return e&&(e.host||eu(e.parentNode))},tu=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=eu(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Zl[n]||(Zl[n]=new WeakMap);var a=Zl[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Ql.get(e)||0)+1,u=(a.get(e)||0)+1;Ql.set(e,l),a.set(e,u),i.push(e),1===l&&o&&Xl.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),Jl++,function(){i.forEach(function(e){var t=Ql.get(e)-1,o=a.get(e)-1;Ql.set(e,t),a.set(e,o),t||(Xl.has(e)||e.removeAttribute(r),Xl.delete(e)),o||e.removeAttribute(n)}),--Jl||(Ql=new WeakMap,Ql=new WeakMap,Xl=new WeakMap,Zl={})}},nu=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tu(r,o,n,"aria-hidden")):function(){return null}},ru=function(){return ru=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ru.apply(this,arguments)};function ou(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function au(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var iu="right-scroll-bar-position",su="width-before-scroll-bar";function lu(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var uu="undefined"!=typeof window?D.useLayoutEffect:D.useEffect,cu=new WeakMap;function du(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach(function(e){return lu(e,t)})},(o=D.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return uu(function(){var t=cu.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||lu(e,null)}),r.forEach(function(e){n.has(e)||lu(e,o)})}cu.set(a,e)},[e]),a}function fu(e){return e}var pu=function(e){var t=e.sideCar,n=ou(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,ru({},n))};pu.isSideCarExport=!0;var hu=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=fu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=ru({async:!0,ssr:!1},e),t}(),mu=function(){},gu=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:mu,onWheelCapture:mu,onTouchMoveCapture:mu}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,v=void 0===y?"div":y,b=e.gapMode,w=ou(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,C=du([n,t]),S=ru(ru({},w),o);return D.createElement(D.Fragment,null,c&&D.createElement(x,{sideCar:hu,removeScrollBar:u,shards:d,noRelative:p,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),i?D.cloneElement(D.Children.only(s),ru(ru({},S),{ref:C})):D.createElement(v,ru({},S,{className:l,ref:C}),s))});gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},gu.classNames={fullWidth:su,zeroRight:iu};function yu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var vu=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=yu())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bu=function(){var e,t=(e=vu(),function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},wu={left:0,top:0,right:0,gap:0},xu=function(e){return parseInt(e||"",10)||0},Cu=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return wu;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[xu(n),xu(r),xu(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Su=bu(),ku="data-scroll-locked",_u=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(ku,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(iu," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(su," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(iu," .").concat(iu," {\n right: 0 ").concat(r,";\n }\n \n .").concat(su," .").concat(su," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ku,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Eu=function(){var e=parseInt(document.body.getAttribute(ku)||"0",10);return isFinite(e)?e:0},ju=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;D.useEffect(function(){return document.body.setAttribute(ku,(Eu()+1).toString()),function(){var e=Eu()-1;e<=0?document.body.removeAttribute(ku):document.body.setAttribute(ku,e.toString())}},[]);var a=D.useMemo(function(){return Cu(o)},[o]);return D.createElement(Su,{styles:_u(a,!t,o,n?"":"!important")})},Nu=!1;if("undefined"!=typeof window)try{var Ou=Object.defineProperty({},"passive",{get:function(){return Nu=!0,!0}});window.addEventListener("test",Ou,Ou),window.removeEventListener("test",Ou,Ou)}catch(e){Nu=!1}var Ru=!!Nu&&{passive:!1},Pu=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Tu=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Du(e,r)){var o=Mu(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Du=function(e,t){return"v"===e?function(e){return Pu(e,"overflowY")}(t):function(e){return Pu(e,"overflowX")}(t)},Mu=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Iu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Au=function(e){return[e.deltaX,e.deltaY]},Fu=function(e){return e&&"current"in e?e.current:e},Lu=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},zu=0,$u=[];function Hu(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Vu,Bu=(Vu=function(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState(zu++)[0],a=D.useState(bu)[0],i=D.useRef(e);D.useEffect(function(){i.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=au([e.lockRef.current],(e.shards||[]).map(Fu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=D.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=Iu(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=Tu(d,c);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=Tu(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,u=a>0,c=0,d=0;do{if(!i)break;var f=Mu(e,i),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&Du(e,i)&&(c+=h,d+=p);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(u&&Math.abs(c)<1||!u&&Math.abs(d)<1)&&(l=!0),l}(m,t,e,"h"===m?l:u)},[]),l=D.useCallback(function(e){var n=e;if($u.length&&$u[$u.length-1]===a){var r="deltaY"in n?Au(n):Iu(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(i.current.shards||[]).map(Fu).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=D.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Hu(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=D.useCallback(function(e){n.current=Iu(e),r.current=void 0},[]),d=D.useCallback(function(t){u(t.type,Au(t),t.target,s(t,e.lockRef.current))},[]),f=D.useCallback(function(t){u(t.type,Iu(t),t.target,s(t,e.lockRef.current))},[]);D.useEffect(function(){return $u.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ru),document.addEventListener("touchmove",l,Ru),document.addEventListener("touchstart",c,Ru),function(){$u=$u.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Ru),document.removeEventListener("touchmove",l,Ru),document.removeEventListener("touchstart",c,Ru)}},[]);var p=e.removeScrollBar,h=e.inert;return D.createElement(D.Fragment,null,h?D.createElement(a,{styles:Lu(o)}):null,p?D.createElement(ju,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},hu.useMedium(Vu),pu),Uu=D.forwardRef(function(e,t){return D.createElement(gu,ru({},e,{ref:t,sideCar:Bu}))});Uu.classNames=gu.classNames;var Wu=["Enter"," "],qu=["ArrowUp","PageDown","End"],Yu=["ArrowDown","PageUp","Home",...qu],Gu={ltr:[...Wu,"ArrowRight"],rtl:[...Wu,"ArrowLeft"]},Ku={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Qu="Menu",[Xu,Zu,Ju]=$a(Qu),[ec,tc]=ja(Qu,[Ju,ul,zl]),nc=ul(),rc=zl(),[oc,ac]=ec(Qu),[ic,sc]=ec(Qu),lc=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=nc(t),[l,u]=D.useState(null),c=D.useRef(!1),d=Ba(a),f=Va(o);return D.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),m.jsx(_l,{...s,children:m.jsx(oc,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:m.jsx(ic,{scope:t,onClose:D.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:i,children:r})})})};lc.displayName=Qu;var uc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=nc(n);return m.jsx(El,{...o,...r,ref:t})});uc.displayName="MenuAnchor";var cc="MenuPortal",[dc,fc]=ec(cc,{forceMount:void 0}),pc=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=ac(cc,t);return m.jsx(dc,{scope:t,forceMount:n,children:m.jsx(Rl,{present:n||a.open,children:m.jsx(Ol,{asChild:!0,container:o,children:r})})})};pc.displayName=cc;var hc="MenuContent",[mc,gc]=ec(hc),yc=D.forwardRef((e,t)=>{const n=fc(hc,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ac(hc,e.__scopeMenu),i=sc(hc,e.__scopeMenu);return m.jsx(Xu.Provider,{scope:e.__scopeMenu,children:m.jsx(Rl,{present:r||a.open,children:m.jsx(Xu.Slot,{scope:e.__scopeMenu,children:i.modal?m.jsx(vc,{...o,ref:t}):m.jsx(bc,{...o,ref:t})})})})}),vc=D.forwardRef((e,t)=>{const n=ac(hc,e.__scopeMenu),r=D.useRef(null),o=Ea(t,r);return D.useEffect(()=>{const e=r.current;if(e)return nu(e)},[]),m.jsx(xc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Sa(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),bc=D.forwardRef((e,t)=>{const n=ac(hc,e.__scopeMenu);return m.jsx(xc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),wc=Ma("MenuContent.ScrollLock"),xc=D.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...g}=e,y=ac(hc,n),v=sc(hc,n),b=nc(n),w=rc(n),x=Zu(n),[C,S]=D.useState(null),k=D.useRef(null),_=Ea(t,k,y.onContentChange),E=D.useRef(0),j=D.useRef(""),N=D.useRef(0),O=D.useRef(null),R=D.useRef("right"),P=D.useRef(0),T=h?Uu:D.Fragment,M=h?{as:wc,allowPinchZoom:!0}:void 0,I=e=>{const t=j.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){j.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};D.useEffect(()=>()=>window.clearTimeout(E.current),[]),ei();const A=D.useCallback(e=>R.current===O.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,u=i.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,t)}(e,O.current?.area),[]);return m.jsx(mc,{scope:n,searchRef:j,onItemEnter:D.useCallback(e=>{A(e)&&e.preventDefault()},[A]),onItemLeave:D.useCallback(e=>{A(e)||(k.current?.focus(),S(null))},[A]),onTriggerLeave:D.useCallback(e=>{A(e)&&e.preventDefault()},[A]),pointerGraceTimerRef:N,onPointerGraceIntentChange:D.useCallback(e=>{O.current=e},[]),children:m.jsx(T,{...M,children:m.jsx(ai,{asChild:!0,trapped:o,onMountAutoFocus:Sa(a,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:m.jsx(Ka,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:m.jsx(Gl,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:Sa(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(jl,{role:"menu","aria-orientation":"vertical","data-state":Yc(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...g,ref:_,style:{outline:"none",...g.style},onKeyDown:Sa(g.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&I(e.key));const o=k.current;if(e.target!==o)return;if(!Yu.includes(e.key))return;e.preventDefault();const a=x().filter(e=>!e.disabled).map(e=>e.ref.current);qu.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:Sa(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),j.current="")}),onPointerMove:Sa(e.onPointerMove,Qc(e=>{const t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>P.current?"right":"left";R.current=t,P.current=e.clientX}}))})})})})})})});yc.displayName=hc;var Cc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(La.div,{role:"group",...r,ref:t})});Cc.displayName="MenuGroup";var Sc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(La.div,{...r,ref:t})});Sc.displayName="MenuLabel";var kc="MenuItem",_c="menu.itemSelect",Ec=D.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=D.useRef(null),i=sc(kc,e.__scopeMenu),s=gc(kc,e.__scopeMenu),l=Ea(t,a),u=D.useRef(!1);return m.jsx(jc,{...o,ref:l,disabled:n,onClick:Sa(e.onClick,()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(_c,{bubbles:!0,cancelable:!0});e.addEventListener(_c,e=>r?.(e),{once:!0}),za(e,t),t.defaultPrevented?u.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Sa(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:Sa(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||Wu.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Ec.displayName=kc;var jc=D.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=gc(kc,n),s=rc(n),l=D.useRef(null),u=Ea(t,l),[c,d]=D.useState(!1),[f,p]=D.useState("");return D.useEffect(()=>{const e=l.current;e&&p((e.textContent??"").trim())},[a.children]),m.jsx(Xu.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(Kl,{asChild:!0,...s,focusable:!r,children:m.jsx(La.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Sa(e.onPointerMove,Qc(e=>{if(r)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:Sa(e.onPointerLeave,Qc(e=>i.onItemLeave(e))),onFocus:Sa(e.onFocus,()=>d(!0)),onBlur:Sa(e.onBlur,()=>d(!1))})})})}),Nc=D.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(Ac,{scope:e.__scopeMenu,checked:n,children:m.jsx(Ec,{role:"menuitemcheckbox","aria-checked":Gc(n)?"mixed":n,...o,ref:t,"data-state":Kc(n),onSelect:Sa(o.onSelect,()=>r?.(!!Gc(n)||!n),{checkForDefaultPrevented:!1})})})});Nc.displayName="MenuCheckboxItem";var Oc="MenuRadioGroup",[Rc,Pc]=ec(Oc,{value:void 0,onValueChange:()=>{}}),Tc=D.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Ba(r);return m.jsx(Rc,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Cc,{...o,ref:t})})});Tc.displayName=Oc;var Dc="MenuRadioItem",Mc=D.forwardRef((e,t)=>{const{value:n,...r}=e,o=Pc(Dc,e.__scopeMenu),a=n===o.value;return m.jsx(Ac,{scope:e.__scopeMenu,checked:a,children:m.jsx(Ec,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Kc(a),onSelect:Sa(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Mc.displayName=Dc;var Ic="MenuItemIndicator",[Ac,Fc]=ec(Ic,{checked:!1}),Lc=D.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Fc(Ic,n);return m.jsx(Rl,{present:r||Gc(a.checked)||!0===a.checked,children:m.jsx(La.span,{...o,ref:t,"data-state":Kc(a.checked)})})});Lc.displayName=Ic;var zc=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(La.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zc.displayName="MenuSeparator";var $c=D.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=nc(n);return m.jsx(Nl,{...o,...r,ref:t})});$c.displayName="MenuArrow";var[Hc,Vc]=ec("MenuSub"),Bc="MenuSubTrigger",Uc=D.forwardRef((e,t)=>{const n=ac(Bc,e.__scopeMenu),r=sc(Bc,e.__scopeMenu),o=Vc(Bc,e.__scopeMenu),a=gc(Bc,e.__scopeMenu),i=D.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=D.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return D.useEffect(()=>c,[c]),D.useEffect(()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),m.jsx(uc,{asChild:!0,...u,children:m.jsx(jc,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Yc(n.open),...e,ref:_a(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Sa(e.onPointerMove,Qc(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:Sa(e.onPointerLeave,Qc(e=>{c();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,l=t[o?"left":"right"],u=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:l,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Sa(e.onKeyDown,t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||Gu[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Uc.displayName=Bc;var Wc="MenuSubContent",qc=D.forwardRef((e,t)=>{const n=fc(hc,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ac(hc,e.__scopeMenu),i=sc(hc,e.__scopeMenu),s=Vc(Wc,e.__scopeMenu),l=D.useRef(null),u=Ea(t,l);return m.jsx(Xu.Provider,{scope:e.__scopeMenu,children:m.jsx(Rl,{present:r||a.open,children:m.jsx(Xu.Slot,{scope:e.__scopeMenu,children:m.jsx(xc,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Sa(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Sa(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:Sa(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=Ku[i.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function Yc(e){return e?"open":"closed"}function Gc(e){return"indeterminate"===e}function Kc(e){return Gc(e)?"indeterminate":e?"checked":"unchecked"}function Qc(e){return t=>"mouse"===t.pointerType?e(t):void 0}qc.displayName=Wc;var Xc=lc,Zc=uc,Jc=pc,ed=yc,td=Cc,nd=Sc,rd=Ec,od=Nc,ad=Tc,id=Mc,sd=Lc,ld=zc,ud=$c,cd=Uc,dd=qc,fd="DropdownMenu",[pd]=ja(fd,[tc]),hd=tc(),[md,gd]=pd(fd),yd=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=hd(t),u=D.useRef(null),[c,d]=Pa({prop:o,defaultProp:a??!1,onChange:i,caller:fd});return m.jsx(md,{scope:t,triggerId:hi(),triggerRef:u,contentId:hi(),open:c,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(e=>!e),[d]),modal:s,children:m.jsx(Xc,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})};yd.displayName=fd;var vd="DropdownMenuTrigger",bd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=gd(vd,n),i=hd(n);return m.jsx(Zc,{asChild:!0,...i,children:m.jsx(La.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:_a(t,a.triggerRef),onPointerDown:Sa(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:Sa(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});bd.displayName=vd;var wd=e=>{const{__scopeDropdownMenu:t,...n}=e,r=hd(t);return m.jsx(Jc,{...r,...n})};wd.displayName="DropdownMenuPortal";var xd="DropdownMenuContent",Cd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gd(xd,n),a=hd(n),i=D.useRef(!1);return m.jsx(ed,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:Sa(e.onCloseAutoFocus,e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:Sa(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Cd.displayName=xd;D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(td,{...o,...r,ref:t})}).displayName="DropdownMenuGroup";var Sd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(nd,{...o,...r,ref:t})});Sd.displayName="DropdownMenuLabel";var kd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(rd,{...o,...r,ref:t})});kd.displayName="DropdownMenuItem";var _d=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(od,{...o,...r,ref:t})});_d.displayName="DropdownMenuCheckboxItem";D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(ad,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup";var Ed=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(id,{...o,...r,ref:t})});Ed.displayName="DropdownMenuRadioItem";var jd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(sd,{...o,...r,ref:t})});jd.displayName="DropdownMenuItemIndicator";var Nd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(ld,{...o,...r,ref:t})});Nd.displayName="DropdownMenuSeparator";D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(ud,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var Od=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(cd,{...o,...r,ref:t})});Od.displayName="DropdownMenuSubTrigger";var Rd=D.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hd(n);return m.jsx(dd,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Rd.displayName="DropdownMenuSubContent";var Pd=yd,Td=bd,Dd=wd,Md=Cd,Id=Sd,Ad=kd,Fd=_d,Ld=Ed,zd=jd,$d=Nd,Hd=Od,Vd=Rd;
|
|
33
33
|
/**
|
|
34
34
|
* @license lucide-react v0.525.0 - ISC
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the ISC license.
|
|
37
37
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
38
|
*/
|
|
39
|
-
const
|
|
39
|
+
const Bd=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ud=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),Wd=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
|
|
40
40
|
/**
|
|
41
41
|
* @license lucide-react v0.525.0 - ISC
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
46
|
+
var qd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
47
47
|
/**
|
|
48
48
|
* @license lucide-react v0.525.0 - ISC
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the ISC license.
|
|
51
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const
|
|
52
|
+
*/const Yd=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>D.createElement("svg",{ref:l,...qd,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Ud("lucide",o),...!a&&!Wd(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,t])=>D.createElement(e,t)),...Array.isArray(a)?a:[a]])),Gd=(e,t)=>{const n=D.forwardRef(({className:n,...r},o)=>{return D.createElement(Yd,{ref:o,iconNode:t,className:Ud(`lucide-${a=Bd(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var a});return n.displayName=Bd(e),n},Kd=Gd("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Qd=Gd("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Xd=Gd("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Zd=Gd("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Jd=Gd("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),ef=Gd("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),tf=Gd("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),nf=Gd("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rf=Pd,of=Td;
|
|
53
53
|
/**
|
|
54
54
|
* @license lucide-react v0.525.0 - ISC
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the ISC license.
|
|
57
57
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/D.forwardRef(({className:e,inset:t,children:n,...r},o)=>m.jsxs(Vd,{ref:o,className:ma("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800",t&&"pl-8",e),...r,children:[n,m.jsx(Zd,{className:"ml-auto h-4 w-4"})]})).displayName=Vd.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(Bd,{ref:n,className:ma("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...t})).displayName=Bd.displayName;const sf=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(Md,{children:m.jsx(Id,{ref:r,sideOffset:t,className:ma("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-[0_8px_14px_0_#0F2A510A] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...n})}));sf.displayName=Id.displayName;const lf=D.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Fd,{ref:r,className:ma("relative flex cursor-default select-none items-center rounded-sm px-2 py-2.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",t&&"pl-8",e),...n}));lf.displayName=Fd.displayName;D.forwardRef(({className:e,children:t,checked:n,...r},o)=>m.jsxs(Ld,{ref:o,className:ma("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx($d,{children:m.jsx(Qd,{className:"h-4 w-4"})})}),t]})).displayName=Ld.displayName;D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(zd,{ref:r,className:ma("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx($d,{children:m.jsx(tf,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=zd.displayName;D.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Ad,{ref:r,className:ma("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})).displayName=Ad.displayName;function uf(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}D.forwardRef(({className:e,...t},n)=>m.jsx(Hd,{ref:n,className:ma("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=Hd.displayName;const cf=e=>e,df=(()=>{let e=cf;return{configure(t){e=t},generate:t=>e(t),reset(){e=cf}}})(),ff={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function pf(e,t,n="Mui"){const r=ff[t];return r?`${n}-${r}`:`${df.generate(e)}-${t}`}function hf(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=pf(e,t,n)}),r}function mf(e){return pf("MuiPagination",e)}function gf(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:l,page:u,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:f=1,...p}=e,[h,m]=function(e){const{controlled:t,default:n}=e,{current:r}=D.useRef(void 0!==t),[o,a]=D.useState(n);return[r?t:o,D.useCallback(e=>{r||a(e)},[])]}({controlled:u,default:o}),g=(e,t)=>{u||m(t),l&&l(e,t)},y=(e,t)=>{const n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},v=y(1,Math.min(t,r)),b=y(Math.max(r-t+1,t+1),r),w=Math.max(Math.min(h-f,r-t-2*f-1),t+2),x=Math.min(Math.max(h+f,t+2*f+2),r-t-1),C=[...c?["first"]:[],...s?[]:["previous"],...v,...w>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(w,x),...x<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],S=e=>{switch(e){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return r;default:return null}};return{items:C.map(e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===h,disabled:a,"aria-current":e===h?"page":void 0}:{onClick:t=>{g(t,S(e))},type:e,page:S(e),selected:!1,disabled:a||!e.includes("ellipsis")&&("next"===e||"last"===e?h>=r:h<=1)}),...p}}hf("MuiPagination",["root","ul","outlined","text"]);const yf=D.createContext();function vf(e){return pf("MuiPaginationItem",e)}const bf=hf("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);function wf(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function xf(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Cf(e){if("string"!=typeof e)throw new Error(xf(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Sf,kf,_f={exports:{}},Ef={};function jf(){if(Sf)return Ef;Sf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case u:case f:return p;default:switch(p=p&&p.$$typeof){case i:case s:case d:case c:case a:return p;default:return h}}case t:return h}}}return Ef.ContextConsumer=a,Ef.ContextProvider=i,Ef.Element=e,Ef.ForwardRef=s,Ef.Fragment=n,Ef.Lazy=d,Ef.Memo=c,Ef.Portal=t,Ef.Profiler=o,Ef.StrictMode=r,Ef.Suspense=l,Ef.SuspenseList=u,Ef.isContextConsumer=function(e){return h(e)===a},Ef.isContextProvider=function(e){return h(e)===i},Ef.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ef.isForwardRef=function(e){return h(e)===s},Ef.isFragment=function(e){return h(e)===n},Ef.isLazy=function(e){return h(e)===d},Ef.isMemo=function(e){return h(e)===c},Ef.isPortal=function(e){return h(e)===t},Ef.isProfiler=function(e){return h(e)===o},Ef.isStrictMode=function(e){return h(e)===r},Ef.isSuspense=function(e){return h(e)===l},Ef.isSuspenseList=function(e){return h(e)===u},Ef.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Ef.typeOf=h,Ef}function Nf(){return kf||(kf=1,_f.exports=jf()),_f.exports}var Of=Nf();function Rf(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Pf(e){if(D.isValidElement(e)||Of.isValidElementType(e)||!Rf(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Pf(e[n])}),t}function Tf(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Rf(e)&&Rf(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])||Of.isValidElementType(t[o])?r[o]=t[o]:Rf(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Rf(e[o])?r[o]=Tf(e[o],t[o],n):n.clone?r[o]=Rf(t[o])?Pf(t[o]):t[o]:r[o]=t[o]}),r}function Df(e,t){return t?Tf(e,t,{clone:!1}):e}function Mf(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const If={xs:0,sm:600,md:900,lg:1200,xl:1536},Af={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${If[e]}px)`},Ff={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:If[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Lf(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Af;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||Af;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(s=a)||s.startsWith("@")&&(i.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:Ff,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||If).includes(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}var i,s;return o},{})}return n(t)}function zf(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function $f(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Hf(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:$f(e,n)||r,t&&(o=t(o,r,e)),o}function Vf(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=$f(e.theme,r)||{};return Lf(e,a,e=>{let r=Hf(i,o,e);return e===r&&"string"==typeof e&&(r=Hf(i,o,`${t}${"default"===e?"":Cf(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}const Bf={m:"margin",p:"padding"},Uf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qf=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Wf[e])return[e];e=Wf[e]}const[t,n]=e.split(""),r=Bf[t],o=Uf[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Yf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Kf(e,t,n,r){const o=$f(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function Qf(e){return Kf(e,"spacing",8)}function Xf(e,t){return"string"==typeof t||null==t?t:e(t)}function Zf(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Xf(t,n),e),{})}(qf(n),r);return Lf(e,e[n],o)}function Jf(e,t){const n=Qf(e.theme);return Object.keys(e).map(r=>Zf(e,t,r,n)).reduce(Df,{})}function ep(e){return Jf(e,Yf)}function tp(e){return Jf(e,Gf)}function np(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Df(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function rp(e){return"number"!=typeof e?e:`${e}px solid`}function op(e,t){return Vf({prop:e,themeKey:"borders",transform:t})}ep.propTypes={},ep.filterProps=Yf,tp.propTypes={},tp.filterProps=Gf;const ap=op("border",rp),ip=op("borderTop",rp),sp=op("borderRight",rp),lp=op("borderBottom",rp),up=op("borderLeft",rp),cp=op("borderColor"),dp=op("borderTopColor"),fp=op("borderRightColor"),pp=op("borderBottomColor"),hp=op("borderLeftColor"),mp=op("outline",rp),gp=op("outlineColor"),yp=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Kf(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Xf(t,e)});return Lf(e,e.borderRadius,n)}return null};yp.propTypes={},yp.filterProps=["borderRadius"],np(ap,ip,sp,lp,up,cp,dp,fp,pp,hp,yp,mp,gp);const vp=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Kf(e.theme,"spacing",8),n=e=>({gap:Xf(t,e)});return Lf(e,e.gap,n)}return null};vp.propTypes={},vp.filterProps=["gap"];const bp=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Kf(e.theme,"spacing",8),n=e=>({columnGap:Xf(t,e)});return Lf(e,e.columnGap,n)}return null};bp.propTypes={},bp.filterProps=["columnGap"];const wp=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Kf(e.theme,"spacing",8),n=e=>({rowGap:Xf(t,e)});return Lf(e,e.rowGap,n)}return null};wp.propTypes={},wp.filterProps=["rowGap"];function xp(e,t){return"grey"===t?t:e}np(vp,bp,wp,Vf({prop:"gridColumn"}),Vf({prop:"gridRow"}),Vf({prop:"gridAutoFlow"}),Vf({prop:"gridAutoColumns"}),Vf({prop:"gridAutoRows"}),Vf({prop:"gridTemplateColumns"}),Vf({prop:"gridTemplateRows"}),Vf({prop:"gridTemplateAreas"}),Vf({prop:"gridArea"}));function Cp(e){return e<=1&&0!==e?100*e+"%":e}np(Vf({prop:"color",themeKey:"palette",transform:xp}),Vf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xp}),Vf({prop:"backgroundColor",themeKey:"palette",transform:xp}));const Sp=Vf({prop:"width",transform:Cp}),kp=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||If[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Cp(t)}};return Lf(e,e.maxWidth,t)}return null};kp.filterProps=["maxWidth"];const _p=Vf({prop:"minWidth",transform:Cp}),Ep=Vf({prop:"height",transform:Cp}),jp=Vf({prop:"maxHeight",transform:Cp}),Np=Vf({prop:"minHeight",transform:Cp});Vf({prop:"size",cssProperty:"width",transform:Cp}),Vf({prop:"size",cssProperty:"height",transform:Cp});np(Sp,kp,_p,Ep,jp,Np,Vf({prop:"boxSizing"}));const Op={border:{themeKey:"borders",transform:rp},borderTop:{themeKey:"borders",transform:rp},borderRight:{themeKey:"borders",transform:rp},borderBottom:{themeKey:"borders",transform:rp},borderLeft:{themeKey:"borders",transform:rp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yp},color:{themeKey:"palette",transform:xp},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xp},backgroundColor:{themeKey:"palette",transform:xp},p:{style:tp},pt:{style:tp},pr:{style:tp},pb:{style:tp},pl:{style:tp},px:{style:tp},py:{style:tp},padding:{style:tp},paddingTop:{style:tp},paddingRight:{style:tp},paddingBottom:{style:tp},paddingLeft:{style:tp},paddingX:{style:tp},paddingY:{style:tp},paddingInline:{style:tp},paddingInlineStart:{style:tp},paddingInlineEnd:{style:tp},paddingBlock:{style:tp},paddingBlockStart:{style:tp},paddingBlockEnd:{style:tp},m:{style:ep},mt:{style:ep},mr:{style:ep},mb:{style:ep},ml:{style:ep},mx:{style:ep},my:{style:ep},margin:{style:ep},marginTop:{style:ep},marginRight:{style:ep},marginBottom:{style:ep},marginLeft:{style:ep},marginX:{style:ep},marginY:{style:ep},marginInline:{style:ep},marginInlineStart:{style:ep},marginInlineEnd:{style:ep},marginBlock:{style:ep},marginBlockStart:{style:ep},marginBlockEnd:{style:ep},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:vp},rowGap:{style:wp},columnGap:{style:bp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cp},maxWidth:{style:kp},minWidth:{transform:Cp},height:{transform:Cp},maxHeight:{transform:Cp},minHeight:{transform:Cp},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Rp=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=$f(n,s)||{};if(u)return u(o);return Lf(o,t,t=>{let n=Hf(c,l,t);return t===n&&"string"==typeof t&&(n=Hf(c,l,`${e}${"default"===t?"":Cf(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Op;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let u=s;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])u=Df(u,e(n,a,o,i));else{const e=Lf({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?u=Df(u,e):u[n]=t({sx:a,theme:o,nested:!0})}else u=Df(u,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":Mf(o,zf(l,u))}:Mf(o,zf(l,u))}return Array.isArray(r)?r.map(s):s(r)}}();function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pp.apply(null,arguments)}Rp.filterProps=["sx"];var Tp=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Dp="-ms-",Mp="-moz-",Ip="-webkit-",Ap="comm",Fp="rule",Lp="decl",zp="@keyframes",$p=Math.abs,Hp=String.fromCharCode,Vp=Object.assign;function Bp(e){return e.trim()}function Up(e,t,n){return e.replace(t,n)}function Wp(e,t){return e.indexOf(t)}function qp(e,t){return 0|e.charCodeAt(t)}function Yp(e,t,n){return e.slice(t,n)}function Gp(e){return e.length}function Kp(e){return e.length}function Qp(e,t){return t.push(e),e}var Xp=1,Zp=1,Jp=0,eh=0,th=0,nh="";function rh(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Xp,column:Zp,length:i,return:""}}function oh(e,t){return Vp(rh("",null,null,"",null,null,0),e,{length:-e.length},t)}function ah(){return th=eh>0?qp(nh,--eh):0,Zp--,10===th&&(Zp=1,Xp--),th}function ih(){return th=eh<Jp?qp(nh,eh++):0,Zp++,10===th&&(Zp=1,Xp++),th}function sh(){return qp(nh,eh)}function lh(){return eh}function uh(e,t){return Yp(nh,e,t)}function ch(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dh(e){return Xp=Zp=1,Jp=Gp(nh=e),eh=0,[]}function fh(e){return nh="",e}function ph(e){return Bp(uh(eh-1,gh(91===e?e+2:40===e?e+1:e)))}function hh(e){for(;(th=sh())&&th<33;)ih();return ch(e)>2||ch(th)>3?"":" "}function mh(e,t){for(;--t&&ih()&&!(th<48||th>102||th>57&&th<65||th>70&&th<97););return uh(e,lh()+(t<6&&32==sh()&&32==ih()))}function gh(e){for(;ih();)switch(th){case e:return eh;case 34:case 39:34!==e&&39!==e&&gh(th);break;case 40:41===e&&gh(e);break;case 92:ih()}return eh}function yh(e,t){for(;ih()&&e+th!==57&&(e+th!==84||47!==sh()););return"/*"+uh(t,eh-1)+"*"+Hp(47===e?e:ih())}function vh(e){for(;!ch(sh());)ih();return uh(e,eh)}function bh(e){return fh(wh("",null,null,null,[""],e=dh(e),0,[0],e))}function wh(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,C=r,S=b;g;)switch(h=v,v=ih()){case 40:if(108!=h&&58==qp(S,d-1)){-1!=Wp(S+=Up(ph(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=ph(v);break;case 9:case 10:case 13:case 32:S+=hh(h);break;case 92:S+=mh(lh()-1,7);continue;case 47:switch(sh()){case 42:case 47:Qp(Ch(yh(ih(),lh()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=Gp(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=Up(S,/\f/g,"")),p>0&&Gp(S)-d&&Qp(p>32?Sh(S+";",r,n,d-1):Sh(Up(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Qp(C=xh(S,t,n,u,c,o,s,b,w=[],x=[],d),a),123===v)if(0===c)wh(S,t,C,C,w,a,d,s,x);else switch(99===f&&110===qp(S,3)?100:f){case 100:case 108:case 109:case 115:wh(e,C,C,r&&Qp(xh(e,C,C,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:wh(S,C,C,C,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=S="",d=i;break;case 58:d=1+Gp(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ah())continue;switch(S+=Hp(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(Gp(S)-1)*y,y=1;break;case 64:45===sh()&&(S+=ph(ih())),f=sh(),c=d=Gp(b=S+=vh(lh())),v++;break;case 45:45===h&&2==Gp(S)&&(m=0)}}return a}function xh(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=Kp(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=Yp(e,d+1,d=$p(m=i[h])),b=e;y<p;++y)(b=Bp(m>0?f[y]+" "+v:Up(v,/&\f/g,f[y])))&&(l[g++]=b);return rh(e,t,n,0===o?Fp:s,l,u,c)}function Ch(e,t,n){return rh(e,t,n,Ap,Hp(th),Yp(e,2,-2),0)}function Sh(e,t,n,r){return rh(e,t,n,Lp,Yp(e,0,r),Yp(e,r+1,-1),r)}function kh(e,t){for(var n="",r=Kp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function _h(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Lp:return e.return=e.return||e.value;case Ap:return"";case zp:return e.return=e.value+"{"+kh(e.children,r)+"}";case Fp:e.value=e.props.join(",")}return Gp(n=kh(e.children,r))?e.return=e.value+"{"+n+"}":""}function Eh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var jh=function(e,t,n){for(var r=0,o=0;r=o,o=sh(),38===r&&12===o&&(t[n]=1),!ch(o);)ih();return uh(e,eh)},Nh=function(e,t){return fh(function(e,t){var n=-1,r=44;do{switch(ch(r)){case 0:38===r&&12===sh()&&(t[n]=1),e[n]+=jh(eh-1,t,n);break;case 2:e[n]+=ph(r);break;case 4:if(44===r){e[++n]=58===sh()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Hp(r)}}while(r=ih());return e}(dh(e),t))},Oh=new WeakMap,Rh=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Oh.get(n))&&!r){Oh.set(e,!0);for(var o=[],a=Nh(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Ph=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Th(e,t){switch(function(e,t){return 45^qp(e,0)?(((t<<2^qp(e,0))<<2^qp(e,1))<<2^qp(e,2))<<2^qp(e,3):0}(e,t)){case 5103:return Ip+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ip+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ip+e+Mp+e+Dp+e+e;case 6828:case 4268:return Ip+e+Dp+e+e;case 6165:return Ip+e+Dp+"flex-"+e+e;case 5187:return Ip+e+Up(e,/(\w+).+(:[^]+)/,Ip+"box-$1$2"+Dp+"flex-$1$2")+e;case 5443:return Ip+e+Dp+"flex-item-"+Up(e,/flex-|-self/,"")+e;case 4675:return Ip+e+Dp+"flex-line-pack"+Up(e,/align-content|flex-|-self/,"")+e;case 5548:return Ip+e+Dp+Up(e,"shrink","negative")+e;case 5292:return Ip+e+Dp+Up(e,"basis","preferred-size")+e;case 6060:return Ip+"box-"+Up(e,"-grow","")+Ip+e+Dp+Up(e,"grow","positive")+e;case 4554:return Ip+Up(e,/([^-])(transform)/g,"$1"+Ip+"$2")+e;case 6187:return Up(Up(Up(e,/(zoom-|grab)/,Ip+"$1"),/(image-set)/,Ip+"$1"),e,"")+e;case 5495:case 3959:return Up(e,/(image-set\([^]*)/,Ip+"$1$`$1");case 4968:return Up(Up(e,/(.+:)(flex-)?(.*)/,Ip+"box-pack:$3"+Dp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ip+e+e;case 4095:case 3583:case 4068:case 2532:return Up(e,/(.+)-inline(.+)/,Ip+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gp(e)-1-t>6)switch(qp(e,t+1)){case 109:if(45!==qp(e,t+4))break;case 102:return Up(e,/(.+:)(.+)-([^]+)/,"$1"+Ip+"$2-$3$1"+Mp+(108==qp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wp(e,"stretch")?Th(Up(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qp(e,t+1))break;case 6444:switch(qp(e,Gp(e)-3-(~Wp(e,"!important")&&10))){case 107:return Up(e,":",":"+Ip)+e;case 101:return Up(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ip+(45===qp(e,14)?"inline-":"")+"box$3$1"+Ip+"$2$3$1"+Dp+"$2box$3")+e}break;case 5936:switch(qp(e,t+11)){case 114:return Ip+e+Dp+Up(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ip+e+Dp+Up(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ip+e+Dp+Up(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ip+e+Dp+e+e}return e}var Dh,Mh,Ih,Ah,Fh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Lp:e.return=Th(e.value,e.length);break;case zp:return kh([oh(e,{value:Up(e.value,"@","@"+Ip)})],r);case Fp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kh([oh(e,{props:[Up(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kh([oh(e,{props:[Up(t,/:(plac\w+)/,":"+Ip+"input-$1")]}),oh(e,{props:[Up(t,/:(plac\w+)/,":-moz-$1")]}),oh(e,{props:[Up(t,/:(plac\w+)/,Dp+"input-$1")]})],r)}return""})}}],Lh=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||Fh,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l,u,c=[_h,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Kp(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}([Rh,Ph].concat(a,c));o=function(e,t,n,r){l=n,kh(bh(e?e+"{"+t.styles+"}":t.styles),d),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Tp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},zh={exports:{}},$h={};function Hh(){return Mh||(Mh=1,zh.exports=function(){if(Dh)return $h;Dh=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case a:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case i:return e;default:return f}}case n:return f}}}function w(e){return b(e)===u}return $h.AsyncMode=l,$h.ConcurrentMode=u,$h.ContextConsumer=s,$h.ContextProvider=i,$h.Element=t,$h.ForwardRef=c,$h.Fragment=r,$h.Lazy=h,$h.Memo=p,$h.Portal=n,$h.Profiler=a,$h.StrictMode=o,$h.Suspense=d,$h.isAsyncMode=function(e){return w(e)||b(e)===l},$h.isConcurrentMode=w,$h.isContextConsumer=function(e){return b(e)===s},$h.isContextProvider=function(e){return b(e)===i},$h.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$h.isForwardRef=function(e){return b(e)===c},$h.isFragment=function(e){return b(e)===r},$h.isLazy=function(e){return b(e)===h},$h.isMemo=function(e){return b(e)===p},$h.isPortal=function(e){return b(e)===n},$h.isProfiler=function(e){return b(e)===a},$h.isStrictMode=function(e){return b(e)===o},$h.isSuspense=function(e){return b(e)===d},$h.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===a||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},$h.typeOf=b,$h}()),zh.exports}!function(){if(Ah)return Ih;Ah=1;var e=Hh(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function a(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var i=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Ih=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=a(t),m=a(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||m&&m[y]||h&&h[y])){var v=u(r,y);try{i(t,y,v)}catch(e){}}}}return t}}();function Vh(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Bh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Uh=function(e,t,n){Bh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Wh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qh=/[A-Z]|^ms/g,Yh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gh=function(e){return 45===e.charCodeAt(1)},Kh=function(e){return null!=e&&"boolean"!=typeof e},Qh=Eh(function(e){return Gh(e)?e:e.replace(qh,"-$&").toLowerCase()}),Xh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Yh,function(e,t,n){return Jh={name:t,styles:n,next:Jh},t})}return 1===Wh[e]||Gh(e)||"number"!=typeof t||0===t?t:t+"px"};function Zh(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Jh={name:o.name,styles:o.styles,next:Jh},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Jh={name:i.name,styles:i.styles,next:Jh},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":Kh(s)&&(r+=Qh(a)+":"+Xh(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Zh(e,t,i);switch(a){case"animation":case"animationName":r+=Qh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)Kh(i[u])&&(r+=Qh(a)+":"+Xh(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Jh,l=n(e);return Jh=s,Zh(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Jh,em=/label:\s*([^\s;{]+)\s*(;|$)/g;function tm(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Jh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Zh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=Zh(n,t,e[i]),r)o+=a[i]}em.lastIndex=0;for(var s,l="";null!==(s=em.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:Jh}}var nm=!!I.useInsertionEffect&&I.useInsertionEffect||function(e){return e()},rm=D.createContext("undefined"!=typeof HTMLElement?Lh({key:"css"}):null);rm.Provider;var om,am,im=function(e){return D.forwardRef(function(t,n){var r=D.useContext(rm);return e(t,r,n)})},sm=D.createContext({}),lm={}.hasOwnProperty,um="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Bh(t,n,r),nm(function(){return Uh(t,n,r)}),null},dm=im(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[um],a=[r],i="";"string"==typeof e.className?i=Vh(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=tm(a,void 0,D.useContext(sm));i+=t.key+"-"+s.name;var l={};for(var u in e)lm.call(e,u)&&"css"!==u&&u!==um&&(l[u]=e[u]);return l.className=i,n&&(l.ref=n),D.createElement(D.Fragment,null,D.createElement(cm,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,l))}),fm=dm,pm=function(e,t){var n=arguments;if(null==t||!lm.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=fm,o[1]=function(e,t){var n={};for(var r in t)lm.call(t,r)&&(n[r]=t[r]);return n[um]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return D.createElement.apply(null,o)};function hm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tm(t)}function mm(){var e=hm.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}om=pm||(pm={}),am||(am=om.JSX||(om.JSX={}));var gm=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ym=Eh(function(e){return gm.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),vm=function(e){return"theme"!==e},bm=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ym:vm},wm=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},xm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Bh(t,n,r),nm(function(){return Uh(t,n,r)}),null},Cm=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=wm(t,n,a),l=s||bm(i),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var m=im(function(e,t,n){var r=u&&e.as||i,a="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=D.useContext(sm)}"string"==typeof e.className?a=Vh(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var h=tm(d.concat(c),t.registered,f);a+=t.key+"-"+h.name,void 0!==o&&(a+=" "+o);var m=u&&void 0===s?bm(r):l,g={};for(var y in e)u&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=a,n&&(g.ref=n),D.createElement(D.Fragment,null,D.createElement(xm,{cache:t,serialized:h,isStringTag:"string"==typeof r}),D.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Pp({},n,r,{shouldForwardProp:wm(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Cm[e]=Cm(e)});const Sm=[];function km(e){return Sm[0]=e,tm(Sm)}function _m(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Em={borderRadius:4};function jm(e=8,t=Qf({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Nm(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Om(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e;let s=Tf({breakpoints:_m(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:jm(o),shape:{...Em,...a}},i);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Nm,s=t.reduce((e,t)=>Tf(e,t),s),s.unstable_sxConfig={...Op,...i?.unstable_sxConfig},s.unstable_sx=function(e){return Rp({sx:e,theme:this})},s}function Rm(e){const{variants:t,...n}=e,r={variants:t,style:km(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=km(e.style))}),r}const Pm=Om();function Tm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Dm(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Mm(e){return e?(t,n)=>n[e]:null}function Im(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Im(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Dm(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?Dm(km(o),n):o}return Am(e,r.variants,[t],n)}return r?.isProcessed?n?Dm(km(r.style),n):r.style:n?Dm(km(r),n):r}function Am(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if("function"==typeof i.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Dm(km(i.style(o)),r):i.style(o))):n.push(r?Dm(km(i.style),r):i.style)}return n}function Fm(e,t){}function Lm(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function zm(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if("components"===a||"slots"===a)r[a]={...e[a],...r[a]};else if("componentsProps"===a||"slotProps"===a){const o=e[a],i=t[a];if(i)if(o){r[a]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[a][t]=zm(o[t],i[t],n)}}else r[a]=i;else r[a]=o||{}}else"className"===a&&n&&t.className?r.className=Jr(e?.className,t?.className):"style"===a&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[a]&&(r[a]=e[a])}return r}const $m="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function Hm(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Vm(e){if(e.type)return e;if("#"===e.charAt(0))return Vm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(xf(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(xf(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Bm=(e,t)=>{try{return(e=>{const t=Vm(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function Um(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Wm(e){e=Vm(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Um({type:s,values:l})}function qm(e){let t="hsl"===(e=Vm(e)).type||"hsla"===e.type?Vm(Wm(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ym(e,t){return e=Vm(e),t=Hm(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Um(e)}function Gm(e,t,n){try{return Ym(e,t)}catch(t){return e}}function Km(e,t){if(e=Vm(e),t=Hm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Um(e)}function Qm(e,t,n){try{return Km(e,t)}catch(t){return e}}function Xm(e,t){if(e=Vm(e),t=Hm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Um(e)}function Zm(e,t,n){try{return Xm(e,t)}catch(t){return e}}function Jm(e,t,n){try{return function(e,t=.15){return qm(e)>.5?Km(e,t):Xm(e,t)}(e,t)}catch(t){return e}}const eg=D.createContext(void 0);function tg({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?zm(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:zm(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:D.useContext(eg)}})}const ng={theme:void 0};function rg(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const og=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function ag(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),og(a,e,`var(${r})`,s),og(i,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:a,varsWithDefaults:i}}const ig={black:"#000",white:"#fff"},sg={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},lg="#f3e5f5",ug="#ce93d8",cg="#ba68c8",dg="#ab47bc",fg="#9c27b0",pg="#7b1fa2",hg="#e57373",mg="#ef5350",gg="#f44336",yg="#d32f2f",vg="#c62828",bg="#ffb74d",wg="#ffa726",xg="#ff9800",Cg="#f57c00",Sg="#e65100",kg="#e3f2fd",_g="#90caf9",Eg="#42a5f5",jg="#1976d2",Ng="#1565c0",Og="#4fc3f7",Rg="#29b6f6",Pg="#03a9f4",Tg="#0288d1",Dg="#01579b",Mg="#81c784",Ig="#66bb6a",Ag="#4caf50",Fg="#388e3c",Lg="#2e7d32",zg="#1b5e20";function $g(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ig.white,default:ig.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Hg=$g();function Vg(){return{text:{primary:ig.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ig.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Bg=Vg();function Ug(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Xm(e.main,o):"dark"===t&&(e.dark=Km(e.main,a)))}function Wg(e,t,n,r,o){const a=o.light||o,i=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*a).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*i).toFixed(0)}%)`))}function qg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||function(e="light"){return"dark"===e?{main:_g,light:kg,dark:Eg}:{main:jg,light:Eg,dark:Ng}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:ug,light:lg,dark:dg}:{main:fg,light:cg,dark:pg}}(t),l=e.error||function(e="light"){return"dark"===e?{main:gg,light:hg,dark:yg}:{main:yg,light:mg,dark:vg}}(t),u=e.info||function(e="light"){return"dark"===e?{main:Rg,light:Og,dark:Tg}:{main:Tg,light:Pg,dark:Dg}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ig,light:Mg,dark:Fg}:{main:Lg,light:Ag,dark:zg}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:wg,light:bg,dark:Cg}:{main:"#ed6c02",light:xg,dark:Sg}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=qm(e),r=qm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Bg.text.primary)>=n?Bg.text.primary:Hg.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(xf(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(xf(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(Wg(o,e,"light",a,r),Wg(o,e,"dark",i,r)):(Ug(e,"light",a,r),Ug(e,"dark",i,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=$g():"dark"===t&&(h=Vg());return Tf({common:{...ig},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:sg,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},a)}function Yg(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const Gg={textTransform:"uppercase"},Kg='"Roboto", "Helvetica", "Arial", sans-serif';function Qg(e,t){const{fontFamily:n=Kg,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,f=r/14,p=c||(e=>e/l*f+"rem"),h=(e,t,r,o,a)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Kg?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},...a,...u};var i},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(i,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(i,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(i,14,1.75,.4,Gg),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Gg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tf({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...m},d,{clone:!1})}function Xg(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Zg=["none",Xg(0,2,1,-1,0,1,1,0,0,1,3,0),Xg(0,3,1,-2,0,2,2,0,0,1,5,0),Xg(0,3,3,-2,0,3,4,0,0,1,8,0),Xg(0,2,4,-1,0,4,5,0,0,1,10,0),Xg(0,3,5,-1,0,5,8,0,0,1,14,0),Xg(0,3,5,-1,0,6,10,0,0,1,18,0),Xg(0,4,5,-2,0,7,10,1,0,2,16,1),Xg(0,5,5,-3,0,8,10,1,0,3,14,2),Xg(0,5,6,-3,0,9,12,1,0,3,16,2),Xg(0,6,6,-3,0,10,14,1,0,4,18,3),Xg(0,6,7,-4,0,11,15,1,0,4,20,3),Xg(0,7,8,-4,0,12,17,2,0,5,22,4),Xg(0,7,8,-4,0,13,19,2,0,5,24,4),Xg(0,7,9,-4,0,14,21,2,0,5,26,4),Xg(0,8,9,-5,0,15,22,2,0,6,28,5),Xg(0,8,10,-5,0,16,24,2,0,6,30,5),Xg(0,8,11,-5,0,17,26,2,0,6,32,5),Xg(0,9,11,-5,0,18,28,2,0,7,34,6),Xg(0,9,12,-6,0,19,29,2,0,7,36,6),Xg(0,10,13,-6,0,20,31,3,0,8,38,7),Xg(0,10,13,-6,0,21,33,3,0,8,40,7),Xg(0,10,14,-6,0,22,35,3,0,8,42,7),Xg(0,11,14,-7,0,23,36,3,0,9,44,8),Xg(0,11,15,-7,0,24,38,3,0,9,46,8)],Jg={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ey={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ty(e){return`${Math.round(e)}ms`}function ny(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function ry(e){const t={...Jg,...e.easing},n={...ey,...e.duration};return{getAutoHeightDuration:ny,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:ty(o)} ${a} ${"string"==typeof i?i:ty(i)}`).join(",")},...e,easing:t,duration:n}}const oy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ay(e){return Rf(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function iy(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,a]=n[r];!ay(a)||o.startsWith("unstable_")?delete t[o]:Rf(a)&&(t[o]={...a},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function sy(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function ly(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Ym(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${sy(n)})`:Xm(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${sy(n)})`:Km(t,n)}})}function uy(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,colorSpace:u,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(xf(20));const d=qg({...a,colorSpace:u}),f=Om(e);let p=Tf(f,{mixins:(h=f.breakpoints,m=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:Zg.slice(),typography:Qg(d,s),transitions:ry(i),zIndex:{...oy}});var h,m;return p=Tf(p,c),p=t.reduce((e,t)=>Tf(e,t),p),p.unstable_sxConfig={...Op,...c?.unstable_sxConfig},p.unstable_sx=function(e){return Rp({sx:e,theme:this})},p.toRuntimeSource=iy,ly(p),p}const cy=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function dy(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function fy(e){return"dark"===e?cy:[]}function py(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var hy=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if("class"===o&&(a=".%s"),"data"===o&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(i=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${i?`${i}-`:""}overlays-${t}`),`--${i?`${i}-`:""}palette-AppBar-darkBg`,`--${i?`${i}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===a?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:a?{[a.replace("%s",t)]:o,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(a&&"media"!==a)return`${r}, ${a.replace("%s",String(t))}`}else if(t){if("media"===a)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}var i;return r};function my(e,t,n){!e[t]&&n&&(e[t]=n)}function gy(e){return"string"==typeof e&&e.startsWith("hsl")?Wm(e):e}function yy(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Bm(gy(e[t])))}const vy=e=>{try{return e()}catch(e){}};function by(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const a="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=qg({...t,colorSpace:o});return{palette:i,opacity:{...dy(i.mode),...n},overlays:r||fy(i.mode),...a}}({...n,palette:{mode:a,...n?.palette},colorSpace:e}));const{palette:i,...s}=uy({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...dy(a),...n?.opacity},overlays:n?.overlays||fy(a)},s}function wy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:s=py,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>rg(e))(a),{[f]:h,light:m,dark:g,...y}=n,v={...y};let b,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(xf(21,f));i&&(b="oklch");const x=by(b,v,w,c,f);m&&!v.light&&by(b,v,m,void 0,"light"),g&&!v.dark&&by(b,v,g,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:v,font:{...Yg(x.typography),...x.font},spacing:(S=c.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(b){let r;return e===Gm&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===Qm&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Zm&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if("light"===t.mode&&(my(t.common,"background","#fff"),my(t.common,"onBackground","#000")),"dark"===t.mode&&(my(t.common,"background","#000"),my(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){my(t.Alert,"errorColor",r(Qm,t.error.light,.6)),my(t.Alert,"infoColor",r(Qm,t.info.light,.6)),my(t.Alert,"successColor",r(Qm,t.success.light,.6)),my(t.Alert,"warningColor",r(Qm,t.warning.light,.6)),my(t.Alert,"errorFilledBg",n("palette-error-main")),my(t.Alert,"infoFilledBg",n("palette-info-main")),my(t.Alert,"successFilledBg",n("palette-success-main")),my(t.Alert,"warningFilledBg",n("palette-warning-main")),my(t.Alert,"errorFilledColor",vy(()=>t.getContrastText(t.error.main))),my(t.Alert,"infoFilledColor",vy(()=>t.getContrastText(t.info.main))),my(t.Alert,"successFilledColor",vy(()=>t.getContrastText(t.success.main))),my(t.Alert,"warningFilledColor",vy(()=>t.getContrastText(t.warning.main))),my(t.Alert,"errorStandardBg",r(Zm,t.error.light,.9)),my(t.Alert,"infoStandardBg",r(Zm,t.info.light,.9)),my(t.Alert,"successStandardBg",r(Zm,t.success.light,.9)),my(t.Alert,"warningStandardBg",r(Zm,t.warning.light,.9)),my(t.Alert,"errorIconColor",n("palette-error-main")),my(t.Alert,"infoIconColor",n("palette-info-main")),my(t.Alert,"successIconColor",n("palette-success-main")),my(t.Alert,"warningIconColor",n("palette-warning-main")),my(t.AppBar,"defaultBg",n("palette-grey-100")),my(t.Avatar,"defaultBg",n("palette-grey-400")),my(t.Button,"inheritContainedBg",n("palette-grey-300")),my(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),my(t.Chip,"defaultBorder",n("palette-grey-400")),my(t.Chip,"defaultAvatarColor",n("palette-grey-700")),my(t.Chip,"defaultIconColor",n("palette-grey-700")),my(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),my(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),my(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),my(t.LinearProgress,"primaryBg",r(Zm,t.primary.main,.62)),my(t.LinearProgress,"secondaryBg",r(Zm,t.secondary.main,.62)),my(t.LinearProgress,"errorBg",r(Zm,t.error.main,.62)),my(t.LinearProgress,"infoBg",r(Zm,t.info.main,.62)),my(t.LinearProgress,"successBg",r(Zm,t.success.main,.62)),my(t.LinearProgress,"warningBg",r(Zm,t.warning.main,.62)),my(t.Skeleton,"bg",b?r(Gm,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),my(t.Slider,"primaryTrack",r(Zm,t.primary.main,.62)),my(t.Slider,"secondaryTrack",r(Zm,t.secondary.main,.62)),my(t.Slider,"errorTrack",r(Zm,t.error.main,.62)),my(t.Slider,"infoTrack",r(Zm,t.info.main,.62)),my(t.Slider,"successTrack",r(Zm,t.success.main,.62)),my(t.Slider,"warningTrack",r(Zm,t.warning.main,.62));const e=b?r(Qm,t.background.default,.6825):Jm(t.background.default,.8);my(t.SnackbarContent,"bg",e),my(t.SnackbarContent,"color",vy(()=>b?Bg.text.primary:t.getContrastText(e))),my(t.SpeedDialAction,"fabHoverBg",Jm(t.background.paper,.15)),my(t.StepConnector,"border",n("palette-grey-400")),my(t.StepContent,"border",n("palette-grey-400")),my(t.Switch,"defaultColor",n("palette-common-white")),my(t.Switch,"defaultDisabledColor",n("palette-grey-100")),my(t.Switch,"primaryDisabledColor",r(Zm,t.primary.main,.62)),my(t.Switch,"secondaryDisabledColor",r(Zm,t.secondary.main,.62)),my(t.Switch,"errorDisabledColor",r(Zm,t.error.main,.62)),my(t.Switch,"infoDisabledColor",r(Zm,t.info.main,.62)),my(t.Switch,"successDisabledColor",r(Zm,t.success.main,.62)),my(t.Switch,"warningDisabledColor",r(Zm,t.warning.main,.62)),my(t.TableCell,"border",r(Zm,r(Gm,t.divider,1),.88)),my(t.Tooltip,"bg",r(Gm,t.grey[700],.92))}if("dark"===t.mode){my(t.Alert,"errorColor",r(Zm,t.error.light,.6)),my(t.Alert,"infoColor",r(Zm,t.info.light,.6)),my(t.Alert,"successColor",r(Zm,t.success.light,.6)),my(t.Alert,"warningColor",r(Zm,t.warning.light,.6)),my(t.Alert,"errorFilledBg",n("palette-error-dark")),my(t.Alert,"infoFilledBg",n("palette-info-dark")),my(t.Alert,"successFilledBg",n("palette-success-dark")),my(t.Alert,"warningFilledBg",n("palette-warning-dark")),my(t.Alert,"errorFilledColor",vy(()=>t.getContrastText(t.error.dark))),my(t.Alert,"infoFilledColor",vy(()=>t.getContrastText(t.info.dark))),my(t.Alert,"successFilledColor",vy(()=>t.getContrastText(t.success.dark))),my(t.Alert,"warningFilledColor",vy(()=>t.getContrastText(t.warning.dark))),my(t.Alert,"errorStandardBg",r(Qm,t.error.light,.9)),my(t.Alert,"infoStandardBg",r(Qm,t.info.light,.9)),my(t.Alert,"successStandardBg",r(Qm,t.success.light,.9)),my(t.Alert,"warningStandardBg",r(Qm,t.warning.light,.9)),my(t.Alert,"errorIconColor",n("palette-error-main")),my(t.Alert,"infoIconColor",n("palette-info-main")),my(t.Alert,"successIconColor",n("palette-success-main")),my(t.Alert,"warningIconColor",n("palette-warning-main")),my(t.AppBar,"defaultBg",n("palette-grey-900")),my(t.AppBar,"darkBg",n("palette-background-paper")),my(t.AppBar,"darkColor",n("palette-text-primary")),my(t.Avatar,"defaultBg",n("palette-grey-600")),my(t.Button,"inheritContainedBg",n("palette-grey-800")),my(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),my(t.Chip,"defaultBorder",n("palette-grey-700")),my(t.Chip,"defaultAvatarColor",n("palette-grey-300")),my(t.Chip,"defaultIconColor",n("palette-grey-300")),my(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),my(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),my(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),my(t.LinearProgress,"primaryBg",r(Qm,t.primary.main,.5)),my(t.LinearProgress,"secondaryBg",r(Qm,t.secondary.main,.5)),my(t.LinearProgress,"errorBg",r(Qm,t.error.main,.5)),my(t.LinearProgress,"infoBg",r(Qm,t.info.main,.5)),my(t.LinearProgress,"successBg",r(Qm,t.success.main,.5)),my(t.LinearProgress,"warningBg",r(Qm,t.warning.main,.5)),my(t.Skeleton,"bg",b?r(Gm,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),my(t.Slider,"primaryTrack",r(Qm,t.primary.main,.5)),my(t.Slider,"secondaryTrack",r(Qm,t.secondary.main,.5)),my(t.Slider,"errorTrack",r(Qm,t.error.main,.5)),my(t.Slider,"infoTrack",r(Qm,t.info.main,.5)),my(t.Slider,"successTrack",r(Qm,t.success.main,.5)),my(t.Slider,"warningTrack",r(Qm,t.warning.main,.5));const e=b?r(Zm,t.background.default,.985):Jm(t.background.default,.98);my(t.SnackbarContent,"bg",e),my(t.SnackbarContent,"color",vy(()=>b?Hg.text.primary:t.getContrastText(e))),my(t.SpeedDialAction,"fabHoverBg",Jm(t.background.paper,.15)),my(t.StepConnector,"border",n("palette-grey-600")),my(t.StepContent,"border",n("palette-grey-600")),my(t.Switch,"defaultColor",n("palette-grey-300")),my(t.Switch,"defaultDisabledColor",n("palette-grey-600")),my(t.Switch,"primaryDisabledColor",r(Qm,t.primary.main,.55)),my(t.Switch,"secondaryDisabledColor",r(Qm,t.secondary.main,.55)),my(t.Switch,"errorDisabledColor",r(Qm,t.error.main,.55)),my(t.Switch,"infoDisabledColor",r(Qm,t.info.main,.55)),my(t.Switch,"successDisabledColor",r(Qm,t.success.main,.55)),my(t.Switch,"warningDisabledColor",r(Qm,t.warning.main,.55)),my(t.TableCell,"border",r(Qm,r(Gm,t.divider,1),.68)),my(t.Tooltip,"bg",r(Gm,t.grey[700],.92))}yy(t.background,"default"),yy(t.background,"paper"),yy(t.common,"background"),yy(t.common,"onBackground"),yy(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&my(t[e],"mainChannel",Bm(gy(n.main))),n.light&&my(t[e],"lightChannel",Bm(gy(n.light))),n.dark&&my(t[e],"darkChannel",Bm(gy(n.dark))),n.contrastText&&my(t[e],"contrastTextChannel",Bm(gy(n.contrastText))),"text"===e&&(yy(t[e],"primary"),yy(t[e],"secondary")),"action"===e&&(n.active&&yy(t[e],"active"),n.selected&&yy(t[e],"selected")))})}),C=t.reduce((e,t)=>Tf(e,t),C);const k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:hy(C),enableContrastVars:i},{vars:_,generateThemeVars:E,generateStyleSheets:j}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:s,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:f}=ag(u,t);let p=f;const h={},{[l]:m,...g}=i;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=ag(n,t);p=Tf(p,a),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=ag(m,t);p=Tf(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=Tf(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...u}=h;if(l){const{css:e}=l,t=i[o]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...a}),a)}return Object.entries(u).forEach(([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,k);return C.vars=_,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=E,C.generateStyleSheets=j,C.generateSpacing=function(){return jm(c.spacing,Qf(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Op,...c?.unstable_sxConfig},C.unstable_sx=function(e){return Rp({sx:e,theme:this})},C.toRuntimeSource=iy,C}function xy(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:qg({...!0===n?{}:n.palette,mode:t})})}const Cy=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],u={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return uy(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const o=uy({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},xy(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},xy(o,"light",u.light)),o}return n||"light"in u||"light"!==s||(u.light=!0),wy({...i,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const Sy=function(e={}){const{themeId:t,defaultTheme:n=Pm,rootShouldForwardProp:r=Tm,slotShouldForwardProp:o=Tm}=e;function a(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Rp));const{name:n,slot:i,skipVariantsResolver:s,skipSx:l,overridesResolver:u=Mm(Lm(i)),...c}=t,d=n&&n.startsWith("Mui")||i?"components":"custom",f=void 0!==s?s:i&&"Root"!==i&&"root"!==i||!1,p=l||!1;let h=Tm;"Root"===i||"root"===i?h=r:i?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=
|
|
58
|
+
*/D.forwardRef(({className:e,inset:t,children:n,...r},o)=>m.jsxs(Hd,{ref:o,className:ma("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800",t&&"pl-8",e),...r,children:[n,m.jsx(Xd,{className:"ml-auto h-4 w-4"})]})).displayName=Hd.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(Vd,{ref:n,className:ma("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...t})).displayName=Vd.displayName;const af=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(Dd,{children:m.jsx(Md,{ref:r,sideOffset:t,className:ma("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-[0_8px_14px_0_#0F2A510A] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...n})}));af.displayName=Md.displayName;const sf=D.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Ad,{ref:r,className:ma("relative flex cursor-default select-none items-center rounded-sm px-2 py-2.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",t&&"pl-8",e),...n}));sf.displayName=Ad.displayName;D.forwardRef(({className:e,children:t,checked:n,...r},o)=>m.jsxs(Fd,{ref:o,className:ma("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(zd,{children:m.jsx(Kd,{className:"h-4 w-4"})})}),t]})).displayName=Fd.displayName;D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(Ld,{ref:r,className:ma("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(zd,{children:m.jsx(ef,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=Ld.displayName;D.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Id,{ref:r,className:ma("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})).displayName=Id.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx($d,{ref:n,className:ma("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=$d.displayName;var lf,uf,cf={exports:{}},df={};function ff(){return uf||(uf=1,cf.exports=function(){if(lf)return df;lf=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case a:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case i:return e;default:return f}}case n:return f}}}function w(e){return b(e)===u}return df.AsyncMode=l,df.ConcurrentMode=u,df.ContextConsumer=s,df.ContextProvider=i,df.Element=t,df.ForwardRef=c,df.Fragment=r,df.Lazy=h,df.Memo=p,df.Portal=n,df.Profiler=a,df.StrictMode=o,df.Suspense=d,df.isAsyncMode=function(e){return w(e)||b(e)===l},df.isConcurrentMode=w,df.isContextConsumer=function(e){return b(e)===s},df.isContextProvider=function(e){return b(e)===i},df.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},df.isForwardRef=function(e){return b(e)===c},df.isFragment=function(e){return b(e)===r},df.isLazy=function(e){return b(e)===h},df.isMemo=function(e){return b(e)===p},df.isPortal=function(e){return b(e)===n},df.isProfiler=function(e){return b(e)===a},df.isStrictMode=function(e){return b(e)===o},df.isSuspense=function(e){return b(e)===d},df.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===a||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},df.typeOf=b,df}()),cf.exports}function pf(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}const hf=e=>e,mf=(()=>{let e=hf;return{configure(t){e=t},generate:t=>e(t),reset(){e=hf}}})(),gf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yf(e,t,n="Mui"){const r=gf[t];return r?`${n}-${r}`:`${mf.generate(e)}-${t}`}function vf(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=yf(e,t,n)}),r}function bf(e){return yf("MuiPagination",e)}function wf(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:l,page:u,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:f=1,...p}=e,[h,m]=function(e){const{controlled:t,default:n}=e,{current:r}=D.useRef(void 0!==t),[o,a]=D.useState(n);return[r?t:o,D.useCallback(e=>{r||a(e)},[])]}({controlled:u,default:o}),g=(e,t)=>{u||m(t),l&&l(e,t)},y=(e,t)=>{const n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},v=y(1,Math.min(t,r)),b=y(Math.max(r-t+1,t+1),r),w=Math.max(Math.min(h-f,r-t-2*f-1),t+2),x=Math.min(Math.max(h+f,t+2*f+2),r-t-1),C=[...c?["first"]:[],...s?[]:["previous"],...v,...w>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(w,x),...x<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],S=e=>{switch(e){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return r;default:return null}};return{items:C.map(e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===h,disabled:a,"aria-current":e===h?"page":void 0}:{onClick:t=>{g(t,S(e))},type:e,page:S(e),selected:!1,disabled:a||!e.includes("ellipsis")&&("next"===e||"last"===e?h>=r:h<=1)}),...p}}vf("MuiPagination",["root","ul","outlined","text"]);const xf=D.createContext();function Cf(e){return yf("MuiPaginationItem",e)}const Sf=vf("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);function kf(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function _f(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Ef(e){if("string"!=typeof e)throw new Error(_f(7));return e.charAt(0).toUpperCase()+e.slice(1)}var jf,Nf,Of={exports:{}},Rf={};function Pf(){if(jf)return Rf;jf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case u:case f:return p;default:switch(p=p&&p.$$typeof){case i:case s:case d:case c:case a:return p;default:return h}}case t:return h}}}return Rf.ContextConsumer=a,Rf.ContextProvider=i,Rf.Element=e,Rf.ForwardRef=s,Rf.Fragment=n,Rf.Lazy=d,Rf.Memo=c,Rf.Portal=t,Rf.Profiler=o,Rf.StrictMode=r,Rf.Suspense=l,Rf.SuspenseList=u,Rf.isContextConsumer=function(e){return h(e)===a},Rf.isContextProvider=function(e){return h(e)===i},Rf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Rf.isForwardRef=function(e){return h(e)===s},Rf.isFragment=function(e){return h(e)===n},Rf.isLazy=function(e){return h(e)===d},Rf.isMemo=function(e){return h(e)===c},Rf.isPortal=function(e){return h(e)===t},Rf.isProfiler=function(e){return h(e)===o},Rf.isStrictMode=function(e){return h(e)===r},Rf.isSuspense=function(e){return h(e)===l},Rf.isSuspenseList=function(e){return h(e)===u},Rf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Rf.typeOf=h,Rf}function Tf(){return Nf||(Nf=1,Of.exports=Pf()),Of.exports}var Df=Tf();function Mf(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function If(e){if(D.isValidElement(e)||Df.isValidElementType(e)||!Mf(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=If(e[n])}),t}function Af(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Mf(e)&&Mf(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])||Df.isValidElementType(t[o])?r[o]=t[o]:Mf(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Mf(e[o])?r[o]=Af(e[o],t[o],n):n.clone?r[o]=Mf(t[o])?If(t[o]):t[o]:r[o]=t[o]}),r}function Ff(e,t){return t?Af(e,t,{clone:!1}):e}function Lf(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const zf={xs:0,sm:600,md:900,lg:1200,xl:1536},$f={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zf[e]}px)`},Hf={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:zf[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Vf(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||$f;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||$f;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(s=a)||s.startsWith("@")&&(i.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:Hf,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||zf).includes(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}var i,s;return o},{})}return n(t)}function Bf(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Uf(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Wf(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Uf(e,n)||r,t&&(o=t(o,r,e)),o}function qf(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Uf(e.theme,r)||{};return Vf(e,a,e=>{let r=Wf(i,o,e);return e===r&&"string"==typeof e&&(r=Wf(i,o,`${t}${"default"===e?"":Ef(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}const Yf={m:"margin",p:"padding"},Gf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Kf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qf=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Kf[e])return[e];e=Kf[e]}const[t,n]=e.split(""),r=Yf[t],o=Gf[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Xf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Jf(e,t,n,r){const o=Uf(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function ep(e){return Jf(e,"spacing",8)}function tp(e,t){return"string"==typeof t||null==t?t:e(t)}function np(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=tp(t,n),e),{})}(Qf(n),r);return Vf(e,e[n],o)}function rp(e,t){const n=ep(e.theme);return Object.keys(e).map(r=>np(e,t,r,n)).reduce(Ff,{})}function op(e){return rp(e,Xf)}function ap(e){return rp(e,Zf)}function ip(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Ff(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function sp(e){return"number"!=typeof e?e:`${e}px solid`}function lp(e,t){return qf({prop:e,themeKey:"borders",transform:t})}op.propTypes={},op.filterProps=Xf,ap.propTypes={},ap.filterProps=Zf;const up=lp("border",sp),cp=lp("borderTop",sp),dp=lp("borderRight",sp),fp=lp("borderBottom",sp),pp=lp("borderLeft",sp),hp=lp("borderColor"),mp=lp("borderTopColor"),gp=lp("borderRightColor"),yp=lp("borderBottomColor"),vp=lp("borderLeftColor"),bp=lp("outline",sp),wp=lp("outlineColor"),xp=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jf(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:tp(t,e)});return Vf(e,e.borderRadius,n)}return null};xp.propTypes={},xp.filterProps=["borderRadius"],ip(up,cp,dp,fp,pp,hp,mp,gp,yp,vp,xp,bp,wp);const Cp=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jf(e.theme,"spacing",8),n=e=>({gap:tp(t,e)});return Vf(e,e.gap,n)}return null};Cp.propTypes={},Cp.filterProps=["gap"];const Sp=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jf(e.theme,"spacing",8),n=e=>({columnGap:tp(t,e)});return Vf(e,e.columnGap,n)}return null};Sp.propTypes={},Sp.filterProps=["columnGap"];const kp=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jf(e.theme,"spacing",8),n=e=>({rowGap:tp(t,e)});return Vf(e,e.rowGap,n)}return null};kp.propTypes={},kp.filterProps=["rowGap"];function _p(e,t){return"grey"===t?t:e}ip(Cp,Sp,kp,qf({prop:"gridColumn"}),qf({prop:"gridRow"}),qf({prop:"gridAutoFlow"}),qf({prop:"gridAutoColumns"}),qf({prop:"gridAutoRows"}),qf({prop:"gridTemplateColumns"}),qf({prop:"gridTemplateRows"}),qf({prop:"gridTemplateAreas"}),qf({prop:"gridArea"}));function Ep(e){return e<=1&&0!==e?100*e+"%":e}ip(qf({prop:"color",themeKey:"palette",transform:_p}),qf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_p}),qf({prop:"backgroundColor",themeKey:"palette",transform:_p}));const jp=qf({prop:"width",transform:Ep}),Np=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||zf[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ep(t)}};return Vf(e,e.maxWidth,t)}return null};Np.filterProps=["maxWidth"];const Op=qf({prop:"minWidth",transform:Ep}),Rp=qf({prop:"height",transform:Ep}),Pp=qf({prop:"maxHeight",transform:Ep}),Tp=qf({prop:"minHeight",transform:Ep});qf({prop:"size",cssProperty:"width",transform:Ep}),qf({prop:"size",cssProperty:"height",transform:Ep});ip(jp,Np,Op,Rp,Pp,Tp,qf({prop:"boxSizing"}));const Dp={border:{themeKey:"borders",transform:sp},borderTop:{themeKey:"borders",transform:sp},borderRight:{themeKey:"borders",transform:sp},borderBottom:{themeKey:"borders",transform:sp},borderLeft:{themeKey:"borders",transform:sp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xp},color:{themeKey:"palette",transform:_p},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_p},backgroundColor:{themeKey:"palette",transform:_p},p:{style:ap},pt:{style:ap},pr:{style:ap},pb:{style:ap},pl:{style:ap},px:{style:ap},py:{style:ap},padding:{style:ap},paddingTop:{style:ap},paddingRight:{style:ap},paddingBottom:{style:ap},paddingLeft:{style:ap},paddingX:{style:ap},paddingY:{style:ap},paddingInline:{style:ap},paddingInlineStart:{style:ap},paddingInlineEnd:{style:ap},paddingBlock:{style:ap},paddingBlockStart:{style:ap},paddingBlockEnd:{style:ap},m:{style:op},mt:{style:op},mr:{style:op},mb:{style:op},ml:{style:op},mx:{style:op},my:{style:op},margin:{style:op},marginTop:{style:op},marginRight:{style:op},marginBottom:{style:op},marginLeft:{style:op},marginX:{style:op},marginY:{style:op},marginInline:{style:op},marginInlineStart:{style:op},marginInlineEnd:{style:op},marginBlock:{style:op},marginBlockStart:{style:op},marginBlockEnd:{style:op},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Cp},rowGap:{style:kp},columnGap:{style:Sp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ep},maxWidth:{style:Np},minWidth:{transform:Ep},height:{transform:Ep},maxHeight:{transform:Ep},minHeight:{transform:Ep},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Mp=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Uf(n,s)||{};if(u)return u(o);return Vf(o,t,t=>{let n=Wf(c,l,t);return t===n&&"string"==typeof t&&(n=Wf(c,l,`${e}${"default"===t?"":Ef(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Dp;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let u=s;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])u=Ff(u,e(n,a,o,i));else{const e=Vf({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?u=Ff(u,e):u[n]=t({sx:a,theme:o,nested:!0})}else u=Ff(u,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":Lf(o,Bf(l,u))}:Lf(o,Bf(l,u))}return Array.isArray(r)?r.map(s):s(r)}}();function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ip.apply(null,arguments)}Mp.filterProps=["sx"];var Ap=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Fp="-ms-",Lp="-moz-",zp="-webkit-",$p="comm",Hp="rule",Vp="decl",Bp="@keyframes",Up=Math.abs,Wp=String.fromCharCode,qp=Object.assign;function Yp(e){return e.trim()}function Gp(e,t,n){return e.replace(t,n)}function Kp(e,t){return e.indexOf(t)}function Qp(e,t){return 0|e.charCodeAt(t)}function Xp(e,t,n){return e.slice(t,n)}function Zp(e){return e.length}function Jp(e){return e.length}function eh(e,t){return t.push(e),e}var th=1,nh=1,rh=0,oh=0,ah=0,ih="";function sh(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:th,column:nh,length:i,return:""}}function lh(e,t){return qp(sh("",null,null,"",null,null,0),e,{length:-e.length},t)}function uh(){return ah=oh>0?Qp(ih,--oh):0,nh--,10===ah&&(nh=1,th--),ah}function ch(){return ah=oh<rh?Qp(ih,oh++):0,nh++,10===ah&&(nh=1,th++),ah}function dh(){return Qp(ih,oh)}function fh(){return oh}function ph(e,t){return Xp(ih,e,t)}function hh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mh(e){return th=nh=1,rh=Zp(ih=e),oh=0,[]}function gh(e){return ih="",e}function yh(e){return Yp(ph(oh-1,wh(91===e?e+2:40===e?e+1:e)))}function vh(e){for(;(ah=dh())&&ah<33;)ch();return hh(e)>2||hh(ah)>3?"":" "}function bh(e,t){for(;--t&&ch()&&!(ah<48||ah>102||ah>57&&ah<65||ah>70&&ah<97););return ph(e,fh()+(t<6&&32==dh()&&32==ch()))}function wh(e){for(;ch();)switch(ah){case e:return oh;case 34:case 39:34!==e&&39!==e&&wh(ah);break;case 40:41===e&&wh(e);break;case 92:ch()}return oh}function xh(e,t){for(;ch()&&e+ah!==57&&(e+ah!==84||47!==dh()););return"/*"+ph(t,oh-1)+"*"+Wp(47===e?e:ch())}function Ch(e){for(;!hh(dh());)ch();return ph(e,oh)}function Sh(e){return gh(kh("",null,null,null,[""],e=mh(e),0,[0],e))}function kh(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,C=r,S=b;g;)switch(h=v,v=ch()){case 40:if(108!=h&&58==Qp(S,d-1)){-1!=Kp(S+=Gp(yh(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=yh(v);break;case 9:case 10:case 13:case 32:S+=vh(h);break;case 92:S+=bh(fh()-1,7);continue;case 47:switch(dh()){case 42:case 47:eh(Eh(xh(ch(),fh()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=Zp(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=Gp(S,/\f/g,"")),p>0&&Zp(S)-d&&eh(p>32?jh(S+";",r,n,d-1):jh(Gp(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(eh(C=_h(S,t,n,u,c,o,s,b,w=[],x=[],d),a),123===v)if(0===c)kh(S,t,C,C,w,a,d,s,x);else switch(99===f&&110===Qp(S,3)?100:f){case 100:case 108:case 109:case 115:kh(e,C,C,r&&eh(_h(e,C,C,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:kh(S,C,C,C,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=S="",d=i;break;case 58:d=1+Zp(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==uh())continue;switch(S+=Wp(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(Zp(S)-1)*y,y=1;break;case 64:45===dh()&&(S+=yh(ch())),f=dh(),c=d=Zp(b=S+=Ch(fh())),v++;break;case 45:45===h&&2==Zp(S)&&(m=0)}}return a}function _h(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=Jp(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=Xp(e,d+1,d=Up(m=i[h])),b=e;y<p;++y)(b=Yp(m>0?f[y]+" "+v:Gp(v,/&\f/g,f[y])))&&(l[g++]=b);return sh(e,t,n,0===o?Hp:s,l,u,c)}function Eh(e,t,n){return sh(e,t,n,$p,Wp(ah),Xp(e,2,-2),0)}function jh(e,t,n,r){return sh(e,t,n,Vp,Xp(e,0,r),Xp(e,r+1,-1),r)}function Nh(e,t){for(var n="",r=Jp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Oh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Vp:return e.return=e.return||e.value;case $p:return"";case Bp:return e.return=e.value+"{"+Nh(e.children,r)+"}";case Hp:e.value=e.props.join(",")}return Zp(n=Nh(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ph=function(e,t,n){for(var r=0,o=0;r=o,o=dh(),38===r&&12===o&&(t[n]=1),!hh(o);)ch();return ph(e,oh)},Th=function(e,t){return gh(function(e,t){var n=-1,r=44;do{switch(hh(r)){case 0:38===r&&12===dh()&&(t[n]=1),e[n]+=Ph(oh-1,t,n);break;case 2:e[n]+=yh(r);break;case 4:if(44===r){e[++n]=58===dh()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wp(r)}}while(r=ch());return e}(mh(e),t))},Dh=new WeakMap,Mh=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Dh.get(n))&&!r){Dh.set(e,!0);for(var o=[],a=Th(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Ih=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ah(e,t){switch(function(e,t){return 45^Qp(e,0)?(((t<<2^Qp(e,0))<<2^Qp(e,1))<<2^Qp(e,2))<<2^Qp(e,3):0}(e,t)){case 5103:return zp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return zp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zp+e+Lp+e+Fp+e+e;case 6828:case 4268:return zp+e+Fp+e+e;case 6165:return zp+e+Fp+"flex-"+e+e;case 5187:return zp+e+Gp(e,/(\w+).+(:[^]+)/,zp+"box-$1$2"+Fp+"flex-$1$2")+e;case 5443:return zp+e+Fp+"flex-item-"+Gp(e,/flex-|-self/,"")+e;case 4675:return zp+e+Fp+"flex-line-pack"+Gp(e,/align-content|flex-|-self/,"")+e;case 5548:return zp+e+Fp+Gp(e,"shrink","negative")+e;case 5292:return zp+e+Fp+Gp(e,"basis","preferred-size")+e;case 6060:return zp+"box-"+Gp(e,"-grow","")+zp+e+Fp+Gp(e,"grow","positive")+e;case 4554:return zp+Gp(e,/([^-])(transform)/g,"$1"+zp+"$2")+e;case 6187:return Gp(Gp(Gp(e,/(zoom-|grab)/,zp+"$1"),/(image-set)/,zp+"$1"),e,"")+e;case 5495:case 3959:return Gp(e,/(image-set\([^]*)/,zp+"$1$`$1");case 4968:return Gp(Gp(e,/(.+:)(flex-)?(.*)/,zp+"box-pack:$3"+Fp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zp+e+e;case 4095:case 3583:case 4068:case 2532:return Gp(e,/(.+)-inline(.+)/,zp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zp(e)-1-t>6)switch(Qp(e,t+1)){case 109:if(45!==Qp(e,t+4))break;case 102:return Gp(e,/(.+:)(.+)-([^]+)/,"$1"+zp+"$2-$3$1"+Lp+(108==Qp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Kp(e,"stretch")?Ah(Gp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Qp(e,t+1))break;case 6444:switch(Qp(e,Zp(e)-3-(~Kp(e,"!important")&&10))){case 107:return Gp(e,":",":"+zp)+e;case 101:return Gp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zp+(45===Qp(e,14)?"inline-":"")+"box$3$1"+zp+"$2$3$1"+Fp+"$2box$3")+e}break;case 5936:switch(Qp(e,t+11)){case 114:return zp+e+Fp+Gp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zp+e+Fp+Gp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zp+e+Fp+Gp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zp+e+Fp+e+e}return e}var Fh,Lh,zh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Vp:e.return=Ah(e.value,e.length);break;case Bp:return Nh([lh(e,{value:Gp(e.value,"@","@"+zp)})],r);case Hp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nh([lh(e,{props:[Gp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Nh([lh(e,{props:[Gp(t,/:(plac\w+)/,":"+zp+"input-$1")]}),lh(e,{props:[Gp(t,/:(plac\w+)/,":-moz-$1")]}),lh(e,{props:[Gp(t,/:(plac\w+)/,Fp+"input-$1")]})],r)}return""})}}],$h=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||zh,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l,u,c=[Oh,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Jp(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}([Mh,Ih].concat(a,c));o=function(e,t,n,r){l=n,Nh(Sh(e?e+"{"+t.styles+"}":t.styles),d),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Ap({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f};!function(){if(Lh)return Fh;Lh=1;var e=ff(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function a(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var i=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Fh=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=a(t),m=a(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||m&&m[y]||h&&h[y])){var v=u(r,y);try{i(t,y,v)}catch(e){}}}}return t}}();function Hh(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Vh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Bh=function(e,t,n){Vh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Uh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wh=/[A-Z]|^ms/g,qh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yh=function(e){return 45===e.charCodeAt(1)},Gh=function(e){return null!=e&&"boolean"!=typeof e},Kh=Rh(function(e){return Yh(e)?e:e.replace(Wh,"-$&").toLowerCase()}),Qh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(qh,function(e,t,n){return Zh={name:t,styles:n,next:Zh},t})}return 1===Uh[e]||Yh(e)||"number"!=typeof t||0===t?t:t+"px"};function Xh(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Zh={name:o.name,styles:o.styles,next:Zh},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Zh={name:i.name,styles:i.styles,next:Zh},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Xh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":Gh(s)&&(r+=Kh(a)+":"+Qh(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Xh(e,t,i);switch(a){case"animation":case"animationName":r+=Kh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)Gh(i[u])&&(r+=Kh(a)+":"+Qh(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Zh,l=n(e);return Zh=s,Xh(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Zh,Jh=/label:\s*([^\s;{]+)\s*(;|$)/g;function em(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Zh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Xh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=Xh(n,t,e[i]),r)o+=a[i]}Jh.lastIndex=0;for(var s,l="";null!==(s=Jh.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:Zh}}var tm=!!I.useInsertionEffect&&I.useInsertionEffect||function(e){return e()},nm=D.createContext("undefined"!=typeof HTMLElement?$h({key:"css"}):null);nm.Provider;var rm,om,am=function(e){return D.forwardRef(function(t,n){var r=D.useContext(nm);return e(t,r,n)})},im=D.createContext({}),sm={}.hasOwnProperty,lm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",um=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Vh(t,n,r),tm(function(){return Bh(t,n,r)}),null},cm=am(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[lm],a=[r],i="";"string"==typeof e.className?i=Hh(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=em(a,void 0,D.useContext(im));i+=t.key+"-"+s.name;var l={};for(var u in e)sm.call(e,u)&&"css"!==u&&u!==lm&&(l[u]=e[u]);return l.className=i,n&&(l.ref=n),D.createElement(D.Fragment,null,D.createElement(um,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,l))}),dm=cm,fm=function(e,t){var n=arguments;if(null==t||!sm.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=dm,o[1]=function(e,t){var n={};for(var r in t)sm.call(t,r)&&(n[r]=t[r]);return n[lm]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return D.createElement.apply(null,o)};function pm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return em(t)}function hm(){var e=pm.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}rm=fm||(fm={}),om||(om=rm.JSX||(rm.JSX={}));var mm=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gm=Rh(function(e){return mm.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),ym=function(e){return"theme"!==e},vm=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?gm:ym},bm=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},wm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Vh(t,n,r),tm(function(){return Bh(t,n,r)}),null},xm=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=bm(t,n,a),l=s||vm(i),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var m=am(function(e,t,n){var r=u&&e.as||i,a="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=D.useContext(im)}"string"==typeof e.className?a=Hh(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var h=em(d.concat(c),t.registered,f);a+=t.key+"-"+h.name,void 0!==o&&(a+=" "+o);var m=u&&void 0===s?vm(r):l,g={};for(var y in e)u&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=a,n&&(g.ref=n),D.createElement(D.Fragment,null,D.createElement(wm,{cache:t,serialized:h,isStringTag:"string"==typeof r}),D.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Ip({},n,r,{shouldForwardProp:bm(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){xm[e]=xm(e)});const Cm=[];function Sm(e){return Cm[0]=e,em(Cm)}function km(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const _m={borderRadius:4};function Em(e=8,t=ep({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function jm(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Nm(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e;let s=Af({breakpoints:km(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Em(o),shape:{..._m,...a}},i);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=jm,s=t.reduce((e,t)=>Af(e,t),s),s.unstable_sxConfig={...Dp,...i?.unstable_sxConfig},s.unstable_sx=function(e){return Mp({sx:e,theme:this})},s}function Om(e){const{variants:t,...n}=e,r={variants:t,style:Sm(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Sm(e.style))}),r}const Rm=Nm();function Pm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Tm(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Dm(e){return e?(t,n)=>n[e]:null}function Mm(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Mm(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Tm(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?Tm(Sm(o),n):o}return Im(e,r.variants,[t],n)}return r?.isProcessed?n?Tm(Sm(r.style),n):r.style:n?Tm(Sm(r),n):r}function Im(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if("function"==typeof i.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Tm(Sm(i.style(o)),r):i.style(o))):n.push(r?Tm(Sm(i.style),r):i.style)}return n}function Am(e,t){}function Fm(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function Lm(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if("components"===a||"slots"===a)r[a]={...e[a],...r[a]};else if("componentsProps"===a||"slotProps"===a){const o=e[a],i=t[a];if(i)if(o){r[a]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[a][t]=Lm(o[t],i[t],n)}}else r[a]=i;else r[a]=o||{}}else"className"===a&&n&&t.className?r.className=Jr(e?.className,t?.className):"style"===a&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[a]&&(r[a]=e[a])}return r}const zm="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function $m(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Hm(e){if(e.type)return e;if("#"===e.charAt(0))return Hm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(_f(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(_f(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Vm=(e,t)=>{try{return(e=>{const t=Hm(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function Bm(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Um(e){e=Hm(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Bm({type:s,values:l})}function Wm(e){let t="hsl"===(e=Hm(e)).type||"hsla"===e.type?Hm(Um(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qm(e,t){return e=Hm(e),t=$m(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Bm(e)}function Ym(e,t,n){try{return qm(e,t)}catch(t){return e}}function Gm(e,t){if(e=Hm(e),t=$m(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Bm(e)}function Km(e,t,n){try{return Gm(e,t)}catch(t){return e}}function Qm(e,t){if(e=Hm(e),t=$m(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Bm(e)}function Xm(e,t,n){try{return Qm(e,t)}catch(t){return e}}function Zm(e,t,n){try{return function(e,t=.15){return Wm(e)>.5?Gm(e,t):Qm(e,t)}(e,t)}catch(t){return e}}const Jm=D.createContext(void 0);function eg({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Lm(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Lm(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:D.useContext(Jm)}})}const tg={theme:void 0};function ng(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const rg=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function og(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),rg(a,e,`var(${r})`,s),rg(i,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:a,varsWithDefaults:i}}const ag={black:"#000",white:"#fff"},ig={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},sg="#f3e5f5",lg="#ce93d8",ug="#ba68c8",cg="#ab47bc",dg="#9c27b0",fg="#7b1fa2",pg="#e57373",hg="#ef5350",mg="#f44336",gg="#d32f2f",yg="#c62828",vg="#ffb74d",bg="#ffa726",wg="#ff9800",xg="#f57c00",Cg="#e65100",Sg="#e3f2fd",kg="#90caf9",_g="#42a5f5",Eg="#1976d2",jg="#1565c0",Ng="#4fc3f7",Og="#29b6f6",Rg="#03a9f4",Pg="#0288d1",Tg="#01579b",Dg="#81c784",Mg="#66bb6a",Ig="#4caf50",Ag="#388e3c",Fg="#2e7d32",Lg="#1b5e20";function zg(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ag.white,default:ag.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const $g=zg();function Hg(){return{text:{primary:ag.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ag.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Vg=Hg();function Bg(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Qm(e.main,o):"dark"===t&&(e.dark=Gm(e.main,a)))}function Ug(e,t,n,r,o){const a=o.light||o,i=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*a).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*i).toFixed(0)}%)`))}function Wg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||function(e="light"){return"dark"===e?{main:kg,light:Sg,dark:_g}:{main:Eg,light:_g,dark:jg}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:lg,light:sg,dark:cg}:{main:dg,light:ug,dark:fg}}(t),l=e.error||function(e="light"){return"dark"===e?{main:mg,light:pg,dark:gg}:{main:gg,light:hg,dark:yg}}(t),u=e.info||function(e="light"){return"dark"===e?{main:Og,light:Ng,dark:Pg}:{main:Pg,light:Rg,dark:Tg}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Mg,light:Dg,dark:Ag}:{main:Fg,light:Ig,dark:Lg}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:bg,light:vg,dark:xg}:{main:"#ed6c02",light:wg,dark:Cg}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=Wm(e),r=Wm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Vg.text.primary)>=n?Vg.text.primary:$g.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(_f(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(_f(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(Ug(o,e,"light",a,r),Ug(o,e,"dark",i,r)):(Bg(e,"light",a,r),Bg(e,"dark",i,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=zg():"dark"===t&&(h=Hg());return Af({common:{...ag},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:ig,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},a)}function qg(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const Yg={textTransform:"uppercase"},Gg='"Roboto", "Helvetica", "Arial", sans-serif';function Kg(e,t){const{fontFamily:n=Gg,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,f=r/14,p=c||(e=>e/l*f+"rem"),h=(e,t,r,o,a)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Gg?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},...a,...u};var i},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(i,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(i,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(i,14,1.75,.4,Yg),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Yg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Af({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...m},d,{clone:!1})}function Qg(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Xg=["none",Qg(0,2,1,-1,0,1,1,0,0,1,3,0),Qg(0,3,1,-2,0,2,2,0,0,1,5,0),Qg(0,3,3,-2,0,3,4,0,0,1,8,0),Qg(0,2,4,-1,0,4,5,0,0,1,10,0),Qg(0,3,5,-1,0,5,8,0,0,1,14,0),Qg(0,3,5,-1,0,6,10,0,0,1,18,0),Qg(0,4,5,-2,0,7,10,1,0,2,16,1),Qg(0,5,5,-3,0,8,10,1,0,3,14,2),Qg(0,5,6,-3,0,9,12,1,0,3,16,2),Qg(0,6,6,-3,0,10,14,1,0,4,18,3),Qg(0,6,7,-4,0,11,15,1,0,4,20,3),Qg(0,7,8,-4,0,12,17,2,0,5,22,4),Qg(0,7,8,-4,0,13,19,2,0,5,24,4),Qg(0,7,9,-4,0,14,21,2,0,5,26,4),Qg(0,8,9,-5,0,15,22,2,0,6,28,5),Qg(0,8,10,-5,0,16,24,2,0,6,30,5),Qg(0,8,11,-5,0,17,26,2,0,6,32,5),Qg(0,9,11,-5,0,18,28,2,0,7,34,6),Qg(0,9,12,-6,0,19,29,2,0,7,36,6),Qg(0,10,13,-6,0,20,31,3,0,8,38,7),Qg(0,10,13,-6,0,21,33,3,0,8,40,7),Qg(0,10,14,-6,0,22,35,3,0,8,42,7),Qg(0,11,14,-7,0,23,36,3,0,9,44,8),Qg(0,11,15,-7,0,24,38,3,0,9,46,8)],Zg={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Jg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ey(e){return`${Math.round(e)}ms`}function ty(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function ny(e){const t={...Zg,...e.easing},n={...Jg,...e.duration};return{getAutoHeightDuration:ty,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:ey(o)} ${a} ${"string"==typeof i?i:ey(i)}`).join(",")},...e,easing:t,duration:n}}const ry={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function oy(e){return Mf(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function ay(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,a]=n[r];!oy(a)||o.startsWith("unstable_")?delete t[o]:Mf(a)&&(t[o]={...a},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function iy(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function sy(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:qm(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${iy(n)})`:Qm(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${iy(n)})`:Gm(t,n)}})}function ly(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,colorSpace:u,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(_f(20));const d=Wg({...a,colorSpace:u}),f=Nm(e);let p=Af(f,{mixins:(h=f.breakpoints,m=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:Xg.slice(),typography:Kg(d,s),transitions:ny(i),zIndex:{...ry}});var h,m;return p=Af(p,c),p=t.reduce((e,t)=>Af(e,t),p),p.unstable_sxConfig={...Dp,...c?.unstable_sxConfig},p.unstable_sx=function(e){return Mp({sx:e,theme:this})},p.toRuntimeSource=ay,sy(p),p}const uy=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function cy(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function dy(e){return"dark"===e?uy:[]}function fy(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var py=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if("class"===o&&(a=".%s"),"data"===o&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(i=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${i?`${i}-`:""}overlays-${t}`),`--${i?`${i}-`:""}palette-AppBar-darkBg`,`--${i?`${i}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===a?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:a?{[a.replace("%s",t)]:o,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(a&&"media"!==a)return`${r}, ${a.replace("%s",String(t))}`}else if(t){if("media"===a)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}var i;return r};function hy(e,t,n){!e[t]&&n&&(e[t]=n)}function my(e){return"string"==typeof e&&e.startsWith("hsl")?Um(e):e}function gy(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Vm(my(e[t])))}const yy=e=>{try{return e()}catch(e){}};function vy(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const a="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=Wg({...t,colorSpace:o});return{palette:i,opacity:{...cy(i.mode),...n},overlays:r||dy(i.mode),...a}}({...n,palette:{mode:a,...n?.palette},colorSpace:e}));const{palette:i,...s}=ly({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...cy(a),...n?.opacity},overlays:n?.overlays||dy(a)},s}function by(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:s=fy,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>ng(e))(a),{[f]:h,light:m,dark:g,...y}=n,v={...y};let b,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(_f(21,f));i&&(b="oklch");const x=vy(b,v,w,c,f);m&&!v.light&&vy(b,v,m,void 0,"light"),g&&!v.dark&&vy(b,v,g,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:v,font:{...qg(x.typography),...x.font},spacing:(S=c.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(b){let r;return e===Ym&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===Km&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Xm&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if("light"===t.mode&&(hy(t.common,"background","#fff"),hy(t.common,"onBackground","#000")),"dark"===t.mode&&(hy(t.common,"background","#000"),hy(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){hy(t.Alert,"errorColor",r(Km,t.error.light,.6)),hy(t.Alert,"infoColor",r(Km,t.info.light,.6)),hy(t.Alert,"successColor",r(Km,t.success.light,.6)),hy(t.Alert,"warningColor",r(Km,t.warning.light,.6)),hy(t.Alert,"errorFilledBg",n("palette-error-main")),hy(t.Alert,"infoFilledBg",n("palette-info-main")),hy(t.Alert,"successFilledBg",n("palette-success-main")),hy(t.Alert,"warningFilledBg",n("palette-warning-main")),hy(t.Alert,"errorFilledColor",yy(()=>t.getContrastText(t.error.main))),hy(t.Alert,"infoFilledColor",yy(()=>t.getContrastText(t.info.main))),hy(t.Alert,"successFilledColor",yy(()=>t.getContrastText(t.success.main))),hy(t.Alert,"warningFilledColor",yy(()=>t.getContrastText(t.warning.main))),hy(t.Alert,"errorStandardBg",r(Xm,t.error.light,.9)),hy(t.Alert,"infoStandardBg",r(Xm,t.info.light,.9)),hy(t.Alert,"successStandardBg",r(Xm,t.success.light,.9)),hy(t.Alert,"warningStandardBg",r(Xm,t.warning.light,.9)),hy(t.Alert,"errorIconColor",n("palette-error-main")),hy(t.Alert,"infoIconColor",n("palette-info-main")),hy(t.Alert,"successIconColor",n("palette-success-main")),hy(t.Alert,"warningIconColor",n("palette-warning-main")),hy(t.AppBar,"defaultBg",n("palette-grey-100")),hy(t.Avatar,"defaultBg",n("palette-grey-400")),hy(t.Button,"inheritContainedBg",n("palette-grey-300")),hy(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),hy(t.Chip,"defaultBorder",n("palette-grey-400")),hy(t.Chip,"defaultAvatarColor",n("palette-grey-700")),hy(t.Chip,"defaultIconColor",n("palette-grey-700")),hy(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),hy(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),hy(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),hy(t.LinearProgress,"primaryBg",r(Xm,t.primary.main,.62)),hy(t.LinearProgress,"secondaryBg",r(Xm,t.secondary.main,.62)),hy(t.LinearProgress,"errorBg",r(Xm,t.error.main,.62)),hy(t.LinearProgress,"infoBg",r(Xm,t.info.main,.62)),hy(t.LinearProgress,"successBg",r(Xm,t.success.main,.62)),hy(t.LinearProgress,"warningBg",r(Xm,t.warning.main,.62)),hy(t.Skeleton,"bg",b?r(Ym,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),hy(t.Slider,"primaryTrack",r(Xm,t.primary.main,.62)),hy(t.Slider,"secondaryTrack",r(Xm,t.secondary.main,.62)),hy(t.Slider,"errorTrack",r(Xm,t.error.main,.62)),hy(t.Slider,"infoTrack",r(Xm,t.info.main,.62)),hy(t.Slider,"successTrack",r(Xm,t.success.main,.62)),hy(t.Slider,"warningTrack",r(Xm,t.warning.main,.62));const e=b?r(Km,t.background.default,.6825):Zm(t.background.default,.8);hy(t.SnackbarContent,"bg",e),hy(t.SnackbarContent,"color",yy(()=>b?Vg.text.primary:t.getContrastText(e))),hy(t.SpeedDialAction,"fabHoverBg",Zm(t.background.paper,.15)),hy(t.StepConnector,"border",n("palette-grey-400")),hy(t.StepContent,"border",n("palette-grey-400")),hy(t.Switch,"defaultColor",n("palette-common-white")),hy(t.Switch,"defaultDisabledColor",n("palette-grey-100")),hy(t.Switch,"primaryDisabledColor",r(Xm,t.primary.main,.62)),hy(t.Switch,"secondaryDisabledColor",r(Xm,t.secondary.main,.62)),hy(t.Switch,"errorDisabledColor",r(Xm,t.error.main,.62)),hy(t.Switch,"infoDisabledColor",r(Xm,t.info.main,.62)),hy(t.Switch,"successDisabledColor",r(Xm,t.success.main,.62)),hy(t.Switch,"warningDisabledColor",r(Xm,t.warning.main,.62)),hy(t.TableCell,"border",r(Xm,r(Ym,t.divider,1),.88)),hy(t.Tooltip,"bg",r(Ym,t.grey[700],.92))}if("dark"===t.mode){hy(t.Alert,"errorColor",r(Xm,t.error.light,.6)),hy(t.Alert,"infoColor",r(Xm,t.info.light,.6)),hy(t.Alert,"successColor",r(Xm,t.success.light,.6)),hy(t.Alert,"warningColor",r(Xm,t.warning.light,.6)),hy(t.Alert,"errorFilledBg",n("palette-error-dark")),hy(t.Alert,"infoFilledBg",n("palette-info-dark")),hy(t.Alert,"successFilledBg",n("palette-success-dark")),hy(t.Alert,"warningFilledBg",n("palette-warning-dark")),hy(t.Alert,"errorFilledColor",yy(()=>t.getContrastText(t.error.dark))),hy(t.Alert,"infoFilledColor",yy(()=>t.getContrastText(t.info.dark))),hy(t.Alert,"successFilledColor",yy(()=>t.getContrastText(t.success.dark))),hy(t.Alert,"warningFilledColor",yy(()=>t.getContrastText(t.warning.dark))),hy(t.Alert,"errorStandardBg",r(Km,t.error.light,.9)),hy(t.Alert,"infoStandardBg",r(Km,t.info.light,.9)),hy(t.Alert,"successStandardBg",r(Km,t.success.light,.9)),hy(t.Alert,"warningStandardBg",r(Km,t.warning.light,.9)),hy(t.Alert,"errorIconColor",n("palette-error-main")),hy(t.Alert,"infoIconColor",n("palette-info-main")),hy(t.Alert,"successIconColor",n("palette-success-main")),hy(t.Alert,"warningIconColor",n("palette-warning-main")),hy(t.AppBar,"defaultBg",n("palette-grey-900")),hy(t.AppBar,"darkBg",n("palette-background-paper")),hy(t.AppBar,"darkColor",n("palette-text-primary")),hy(t.Avatar,"defaultBg",n("palette-grey-600")),hy(t.Button,"inheritContainedBg",n("palette-grey-800")),hy(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),hy(t.Chip,"defaultBorder",n("palette-grey-700")),hy(t.Chip,"defaultAvatarColor",n("palette-grey-300")),hy(t.Chip,"defaultIconColor",n("palette-grey-300")),hy(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),hy(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),hy(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),hy(t.LinearProgress,"primaryBg",r(Km,t.primary.main,.5)),hy(t.LinearProgress,"secondaryBg",r(Km,t.secondary.main,.5)),hy(t.LinearProgress,"errorBg",r(Km,t.error.main,.5)),hy(t.LinearProgress,"infoBg",r(Km,t.info.main,.5)),hy(t.LinearProgress,"successBg",r(Km,t.success.main,.5)),hy(t.LinearProgress,"warningBg",r(Km,t.warning.main,.5)),hy(t.Skeleton,"bg",b?r(Ym,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),hy(t.Slider,"primaryTrack",r(Km,t.primary.main,.5)),hy(t.Slider,"secondaryTrack",r(Km,t.secondary.main,.5)),hy(t.Slider,"errorTrack",r(Km,t.error.main,.5)),hy(t.Slider,"infoTrack",r(Km,t.info.main,.5)),hy(t.Slider,"successTrack",r(Km,t.success.main,.5)),hy(t.Slider,"warningTrack",r(Km,t.warning.main,.5));const e=b?r(Xm,t.background.default,.985):Zm(t.background.default,.98);hy(t.SnackbarContent,"bg",e),hy(t.SnackbarContent,"color",yy(()=>b?$g.text.primary:t.getContrastText(e))),hy(t.SpeedDialAction,"fabHoverBg",Zm(t.background.paper,.15)),hy(t.StepConnector,"border",n("palette-grey-600")),hy(t.StepContent,"border",n("palette-grey-600")),hy(t.Switch,"defaultColor",n("palette-grey-300")),hy(t.Switch,"defaultDisabledColor",n("palette-grey-600")),hy(t.Switch,"primaryDisabledColor",r(Km,t.primary.main,.55)),hy(t.Switch,"secondaryDisabledColor",r(Km,t.secondary.main,.55)),hy(t.Switch,"errorDisabledColor",r(Km,t.error.main,.55)),hy(t.Switch,"infoDisabledColor",r(Km,t.info.main,.55)),hy(t.Switch,"successDisabledColor",r(Km,t.success.main,.55)),hy(t.Switch,"warningDisabledColor",r(Km,t.warning.main,.55)),hy(t.TableCell,"border",r(Km,r(Ym,t.divider,1),.68)),hy(t.Tooltip,"bg",r(Ym,t.grey[700],.92))}gy(t.background,"default"),gy(t.background,"paper"),gy(t.common,"background"),gy(t.common,"onBackground"),gy(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&hy(t[e],"mainChannel",Vm(my(n.main))),n.light&&hy(t[e],"lightChannel",Vm(my(n.light))),n.dark&&hy(t[e],"darkChannel",Vm(my(n.dark))),n.contrastText&&hy(t[e],"contrastTextChannel",Vm(my(n.contrastText))),"text"===e&&(gy(t[e],"primary"),gy(t[e],"secondary")),"action"===e&&(n.active&&gy(t[e],"active"),n.selected&&gy(t[e],"selected")))})}),C=t.reduce((e,t)=>Af(e,t),C);const k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:py(C),enableContrastVars:i},{vars:_,generateThemeVars:E,generateStyleSheets:j}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:s,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:f}=og(u,t);let p=f;const h={},{[l]:m,...g}=i;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=og(n,t);p=Af(p,a),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=og(m,t);p=Af(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=Af(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...u}=h;if(l){const{css:e}=l,t=i[o]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...a}),a)}return Object.entries(u).forEach(([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,k);return C.vars=_,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=E,C.generateStyleSheets=j,C.generateSpacing=function(){return Em(c.spacing,ep(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Dp,...c?.unstable_sxConfig},C.unstable_sx=function(e){return Mp({sx:e,theme:this})},C.toRuntimeSource=ay,C}function wy(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Wg({...!0===n?{}:n.palette,mode:t})})}const xy=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],u={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return ly(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const o=ly({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},wy(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},wy(o,"light",u.light)),o}return n||"light"in u||"light"!==s||(u.light=!0),by({...i,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const Cy=function(e={}){const{themeId:t,defaultTheme:n=Rm,rootShouldForwardProp:r=Pm,slotShouldForwardProp:o=Pm}=e;function a(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Mp));const{name:n,slot:i,skipVariantsResolver:s,skipSx:l,overridesResolver:u=Dm(Fm(i)),...c}=t,d=n&&n.startsWith("Mui")||i?"components":"custom",f=void 0!==s?s:i&&"Root"!==i&&"root"!==i||!1,p=l||!1;let h=Pm;"Root"===i||"root"===i?h=r:i?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=
|
|
59
59
|
/**
|
|
60
60
|
* @mui/styled-engine v7.3.7
|
|
61
61
|
*
|
|
@@ -63,7 +63,7 @@ var Yd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
|
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
|
-
function(e,t){return
|
|
66
|
+
function(e,t){return xm(e,t)}(e,{shouldForwardProp:h,label:Am(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return Mm(t,e,t.theme.modularCssLayers?d:void 0)};if(Mf(e)){const t=Om(e);return function(e){return t.variants?Mm(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Tm(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(g),i=[];if(r.push(a),n&&u&&i.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=Mm(e,r[t],e.theme.modularCssLayers?"theme":void 0);return u(e,o)}),n&&!f&&i.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?Im(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||i.push(Mp),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(i.length).fill("");let a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}const s=[...r,...o,...i],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(y.withConfig=m.withConfig),y}}({themeId:"$$material",defaultTheme:xy,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function Sy(e){return eg(e)}function ky(...e){const t=D.useRef(void 0),n=D.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return D.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function _y(e){const t=D.useRef(e);return zm(()=>{t.current=e}),D.useRef((...e)=>(0,t.current)(...e)).current}const Ey={};function jy(e,t){const n=D.useRef(Ey);return n.current===Ey&&(n.current=e(t)),n}class Ny{static create(){return new Ny}static use(){const e=jy(Ny.create).current,[t,n]=D.useState(!1);return e.shouldMount=t,e.setShouldMount=n,D.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function Oy(e,t){return Oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oy(e,t)}var Ry=M.createContext(null);function Py(e,t){var n=Object.create(null);return e&&D.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&D.isValidElement(e)?t(e):e}(e)}),n}function Ty(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Dy(e,t,n){var r=Py(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(D.isValidElement(i)){var s=a in t,l=a in r,u=t[a],c=D.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&D.isValidElement(u)&&(o[a]=D.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:Ty(i,"exit",e),enter:Ty(i,"enter",e)})):o[a]=D.cloneElement(i,{in:!1}):o[a]=D.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Ty(i,"exit",e),enter:Ty(i,"enter",e)})}}),o}var My=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Iy=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Oy(t,n);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Py(n.children,function(e){return D.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Ty(e,"appear",n),enter:Ty(e,"enter",n),exit:Ty(e,"exit",n)})})):Dy(e,o,a),firstRender:!1}},o.handleExited=function(e,t){var n=Py(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Ip({},t.children);return delete n[e.key],{children:n}}))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,["component","childFactory"]),o=this.state.contextValue,a=My(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?M.createElement(Ry.Provider,{value:o},a):M.createElement(Ry.Provider,{value:o},M.createElement(t,r,a))},r}(M.Component);Iy.propTypes={},Iy.defaultProps={component:"div",childFactory:function(e){return e}};const Ay=[];class Fy{static create(){return new Fy}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ly(){const e=jy(Fy.create).current;var t;return t=e.disposeEffect,D.useEffect(t,Ay),e}const zy=vf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$y=hm`
|
|
67
67
|
0% {
|
|
68
68
|
transform: scale(0);
|
|
69
69
|
opacity: 0.1;
|
|
@@ -73,7 +73,7 @@ function(e,t){return Cm(e,t)}(e,{shouldForwardProp:h,label:Fm(),...c}),g=e=>{if(
|
|
|
73
73
|
transform: scale(1);
|
|
74
74
|
opacity: 0.3;
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,Hy=hm`
|
|
77
77
|
0% {
|
|
78
78
|
opacity: 1;
|
|
79
79
|
}
|
|
@@ -81,7 +81,7 @@ function(e,t){return Cm(e,t)}(e,{shouldForwardProp:h,label:Fm(),...c}),g=e=>{if(
|
|
|
81
81
|
100% {
|
|
82
82
|
opacity: 0;
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,Vy=hm`
|
|
85
85
|
0% {
|
|
86
86
|
transform: scale(1);
|
|
87
87
|
}
|
|
@@ -93,23 +93,23 @@ function(e,t){return Cm(e,t)}(e,{shouldForwardProp:h,label:Fm(),...c}),g=e=>{if(
|
|
|
93
93
|
100% {
|
|
94
94
|
transform: scale(1);
|
|
95
95
|
}
|
|
96
|
-
`,
|
|
96
|
+
`,By=Cy("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Uy=Cy(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:u}=e,[c,d]=D.useState(!1),f=Jr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:i,height:i,top:-i/2+a,left:-i/2+o},h=Jr(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),D.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),m.jsx("span",{className:f,style:p,children:m.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
97
97
|
opacity: 0;
|
|
98
98
|
position: absolute;
|
|
99
99
|
|
|
100
|
-
&.${
|
|
100
|
+
&.${zy.rippleVisible} {
|
|
101
101
|
opacity: 0.3;
|
|
102
102
|
transform: scale(1);
|
|
103
|
-
animation-name: ${
|
|
103
|
+
animation-name: ${$y};
|
|
104
104
|
animation-duration: ${550}ms;
|
|
105
105
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
&.${
|
|
108
|
+
&.${zy.ripplePulsate} {
|
|
109
109
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
& .${
|
|
112
|
+
& .${zy.child} {
|
|
113
113
|
opacity: 1;
|
|
114
114
|
display: block;
|
|
115
115
|
width: 100%;
|
|
@@ -118,53 +118,53 @@ function(e,t){return Cm(e,t)}(e,{shouldForwardProp:h,label:Fm(),...c}),g=e=>{if(
|
|
|
118
118
|
background-color: currentColor;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
& .${
|
|
121
|
+
& .${zy.childLeaving} {
|
|
122
122
|
opacity: 0;
|
|
123
|
-
animation-name: ${
|
|
123
|
+
animation-name: ${Hy};
|
|
124
124
|
animation-duration: ${550}ms;
|
|
125
125
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
& .${
|
|
128
|
+
& .${zy.childPulsate} {
|
|
129
129
|
position: absolute;
|
|
130
130
|
/* @noflip */
|
|
131
131
|
left: 0px;
|
|
132
132
|
top: 0;
|
|
133
|
-
animation-name: ${
|
|
133
|
+
animation-name: ${Vy};
|
|
134
134
|
animation-duration: 2500ms;
|
|
135
135
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
136
136
|
animation-iteration-count: infinite;
|
|
137
137
|
animation-delay: 200ms;
|
|
138
138
|
}
|
|
139
|
-
`,qy=D.forwardRef(function(e,t){const n=ky({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[s,l]=D.useState([]),u=D.useRef(0),c=D.useRef(null);D.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=D.useRef(!1),f=zy(),p=D.useRef(null),h=D.useRef(null),g=D.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;l(e=>[...e,m.jsx(Wy,{classes:{ripple:Jr(o.ripple,$y.ripple),rippleVisible:Jr(o.rippleVisible,$y.rippleVisible),ripplePulsate:Jr(o.ripplePulsate,$y.ripplePulsate),child:Jr(o.child,$y.child),childLeaving:Jr(o.childLeaving,$y.childLeaving),childPulsate:Jr(o.childPulsate,$y.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)]),u.current+=1,c.current=i},[o]),y=D.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,m;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(a)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;m=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},[r,g,f]),v=D.useCallback(()=>{y({},{pulsate:!0})},[y]),b=D.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void f.start(0,()=>{b(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return D.useImperativeHandle(t,()=>({pulsate:v,start:y,stop:b}),[v,y,b]),m.jsx(Uy,{className:Jr($y.root,o.root,a),ref:h,...i,children:m.jsx(Ay,{component:null,exit:!0,children:s})})});function Yy(e){return pf("MuiButtonBase",e)}const Gy=hf("MuiButtonBase",["root","disabled","focusVisible"]),Ky=Sy("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Gy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qy=D.forwardRef(function(e,t){const n=ky({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:h,onClick:g,onContextMenu:y,onDragLeave:v,onFocus:b,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:S,onMouseLeave:k,onMouseUp:_,onTouchEnd:E,onTouchMove:j,onTouchStart:N,tabIndex:O=0,TouchRippleProps:R,touchRippleRef:P,type:T,...M}=n,I=D.useRef(null),A=Oy.use(),F=_y(A.ref,P),[L,z]=D.useState(!1);l&&L&&z(!1),D.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),I.current.focus()}}),[]);const $=A.shouldMount&&!u&&!l;D.useEffect(()=>{L&&d&&!u&&A.pulsate()},[u,d,L,A]);const H=Xy(A,"start",S,c),V=Xy(A,"stop",y,c),B=Xy(A,"stop",v,c),U=Xy(A,"stop",_,c),W=Xy(A,"stop",e=>{L&&e.preventDefault(),k&&k(e)},c),q=Xy(A,"start",N,c),Y=Xy(A,"stop",E,c),G=Xy(A,"stop",j,c),K=Xy(A,"stop",e=>{wf(e.target)||z(!1),h&&h(e)},!1),Q=Ey(e=>{I.current||(I.current=e.currentTarget),wf(e.target)&&(z(!0),w&&w(e)),b&&b(e)}),X=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},Z=Ey(e=>{d&&!e.repeat&&L&&" "===e.key&&A.stop(e,()=>{A.start(e)}),e.target===e.currentTarget&&X()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&X()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))}),J=Ey(e=>{d&&" "===e.key&&L&&!e.defaultPrevented&&A.stop(e,()=>{A.pulsate(e)}),C&&C(e),g&&e.target===e.currentTarget&&X()&&" "===e.key&&!e.defaultPrevented&&g(e)});let ee=s;"button"===ee&&(M.href||M.to)&&(ee=p);const te={};if("button"===ee){const e=!!M.formAction;te.type=void 0!==T||e?T:"button",te.disabled=l}else M.href||M.to||(te.role="button"),l&&(te["aria-disabled"]=l);const ne=_y(t,I),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:O,focusVisible:L},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=uf({root:["root",t&&"disabled",n&&"focusVisible"]},Yy,o);return n&&r&&(a.root+=` ${r}`),a})(re);return m.jsxs(Ky,{as:ee,className:Jr(oe.root,i),ownerState:re,onBlur:K,onClick:g,onContextMenu:V,onFocus:Q,onKeyDown:Z,onKeyUp:J,onMouseDown:H,onMouseLeave:W,onMouseUp:U,onDragLeave:B,onTouchEnd:Y,onTouchMove:G,onTouchStart:q,ref:ne,tabIndex:l?-1:O,type:T,...te,...M,children:[a,$?m.jsx(qy,{ref:F,center:o,...R}):null]})});function Xy(e,t,n,r=!1){return Ey(o=>(n&&n(o),r||e[t](o),!0))}function Zy(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}const Jy=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(ng.theme=r.theme,o=Rm(e(ng)),t=o,n=r.theme),o}};function ev(e){return pf("MuiSvgIcon",e)}hf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tv=Sy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Cf(n.color)}`],t[`fontSize${Cf(n.fontSize)}`]]}})(Jy(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),nv=D.forwardRef(function(e,t){const n=ky({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...f}=n,p=D.isValidElement(r)&&"svg"===r.type,h={...n,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},g={};u||(g.viewBox=d);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return uf({root:["root","inherit"!==t&&`color${Cf(t)}`,`fontSize${Cf(n)}`]},ev,r)})(h);return m.jsxs(tv,{as:i,className:Jr(y.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...g,...f,...p&&r.props,ownerState:h,children:[p?r.props.children:r,c?m.jsx("title",{children:c}):null]})});function rv(e,t){function n(t,n){return m.jsx(nv,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=nv.muiName,D.memo(D.forwardRef(n))}nv.muiName="SvgIcon";var ov=rv(m.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),av=rv(m.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),iv=rv(m.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),sv=rv(m.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));function lv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function uv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Jr(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...o,...r}),s=lv(r),l=lv(o),u=t(i),c=Jr(u?.className,n?.className,a,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},f={...u,...n,...l,...s};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function cv(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=c[e]||r,h=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:m,...g},internalRef:y}=uv({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),v=_y(y,h?.ref,t.ref),b="root"===e?m||u:m,w=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&i,..."root"!==e&&!c[e]&&i,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},o);return[p,w]}const dv=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Cf(n.size)}`],"text"===n.variant&&t[`text${Cf(n.color)}`],"outlined"===n.variant&&t[`outlined${Cf(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},fv=Sy("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:dv})(Jy(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${bf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),pv=Sy(Qy,{name:"MuiPaginationItem",slot:"Root",overridesResolver:dv})(Jy(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${bf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bf.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${bf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${bf.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${bf.selected}`]:{[`&.${bf.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${bf.selected}`]:{[`&.${bf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Zy(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${bf.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${bf.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${bf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Zy(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${bf.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),hv=Sy("div",{name:"MuiPaginationItem",slot:"Icon"})(Jy(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),mv=D.forwardRef(function(e,t){const n=ky({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:a,components:i={},disabled:s=!1,page:l,selected:u=!1,shape:c="circular",size:d="medium",slots:f={},slotProps:p={},type:h="page",variant:g="text",...y}=n,v={...n,color:o,disabled:s,selected:u,shape:c,size:d,type:h,variant:g},b=D.useContext(yf)??!1,w=(e=>{const{classes:t,color:n,disabled:r,selected:o,size:a,shape:i,type:s,variant:l}=e;return uf({root:["root",`size${Cf(a)}`,l,i,"standard"!==n&&`color${Cf(n)}`,"standard"!==n&&`${l}${Cf(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]},vf,t)})(v),x={slots:{previous:f.previous??i.previous,next:f.next??i.next,first:f.first??i.first,last:f.last??i.last},slotProps:p},[C,S]=cv("previous",{elementType:iv,externalForwardedProps:x,ownerState:v}),[k,_]=cv("next",{elementType:sv,externalForwardedProps:x,ownerState:v}),[E,j]=cv("first",{elementType:ov,externalForwardedProps:x,ownerState:v}),[N,O]=cv("last",{elementType:av,externalForwardedProps:x,ownerState:v}),R=b?{previous:"next",next:"previous",first:"last",last:"first"}[h]:h,P={previous:C,next:k,first:E,last:N}[R],T={previous:S,next:_,first:j,last:O}[R];return"start-ellipsis"===h||"end-ellipsis"===h?m.jsx(fv,{ref:t,ownerState:v,className:Jr(w.root,r),children:"…"}):m.jsxs(pv,{ref:t,ownerState:v,component:a,disabled:s,className:Jr(w.root,r),...y,children:["page"===h&&l,P?m.jsx(hv,{...T,className:w.icon,as:P}):null]})}),gv=Sy("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),yv=Sy("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function vv(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const bv=D.forwardRef(function(e,t){const n=ky({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:a="standard",count:i=1,defaultPage:s=1,disabled:l=!1,getItemAriaLabel:u=vv,hideNextButton:c=!1,hidePrevButton:d=!1,onChange:f,page:p,renderItem:h=e=>m.jsx(mv,{...e}),shape:g="circular",showFirstButton:y=!1,showLastButton:v=!1,siblingCount:b=1,size:w="medium",variant:x="text",...C}=n,{items:S}=gf({...n,componentName:"Pagination"}),k={...n,boundaryCount:r,color:a,count:i,defaultPage:s,disabled:l,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:h,shape:g,showFirstButton:y,showLastButton:v,siblingCount:b,size:w,variant:x},_=(e=>{const{classes:t,variant:n}=e;return uf({root:["root",n],ul:["ul"]},mf,t)})(k);return m.jsx(gv,{"aria-label":"pagination navigation",className:Jr(_.root,o),ownerState:k,ref:t,...C,children:m.jsx(yv,{className:_.ul,ownerState:k,children:S.map((e,t)=>m.jsx("li",{children:h({...e,color:a,"aria-label":u(e.type,e.page,e.selected),shape:g,size:w,variant:x})},t))})})}),wv={arrow:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M8.65833 15.7667C8.54866 15.7673 8.43994 15.7463 8.33841 15.7048C8.23688 15.6634 8.14453 15.6023 8.06667 15.525C7.91146 15.3689 7.82434 15.1577 7.82434 14.9375C7.82434 14.7174 7.91146 14.5062 8.06667 14.35L12.4083 10L8.06667 5.65004C7.93014 5.49062 7.85881 5.28556 7.86691 5.07583C7.87501 4.8661 7.96195 4.66715 8.11036 4.51874C8.25878 4.37032 8.45773 4.28338 8.66746 4.27528C8.87719 4.26718 9.08225 4.33852 9.24167 4.47504L14.1667 9.40837C14.2439 9.48624 14.305 9.57859 14.3465 9.68012C14.3879 9.78165 14.409 9.89037 14.4083 10C14.4053 10.2207 14.3189 10.432 14.1667 10.5917L9.225 15.525C9.07391 15.675 8.87116 15.7615 8.65833 15.7667Z",fill:"#A1A5B7"})}),info_input:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M10 18.3332C14.6024 18.3332 18.3333 14.6022 18.3333 9.99984C18.3333 5.39746 14.6024 1.6665 10 1.6665C5.39763 1.6665 1.66667 5.39746 1.66667 9.99984C1.66667 14.6022 5.39763 18.3332 10 18.3332Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 8.83301C10.221 8.83301 10.433 8.9208 10.5893 9.07708C10.7455 9.23337 10.8333 9.44533 10.8333 9.66634V13.5497C10.8333 13.7707 10.7455 13.9826 10.5893 14.1389C10.433 14.2952 10.221 14.383 10 14.383C9.77899 14.383 9.56703 14.2952 9.41075 14.1389C9.25447 13.9826 9.16667 13.7707 9.16667 13.5497V9.66634C9.16667 9.44533 9.25447 9.23337 9.41075 9.07708C9.56703 8.9208 9.77899 8.83301 10 8.83301Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 7.70003C10.5753 7.70003 11.0417 7.23366 11.0417 6.65837C11.0417 6.08307 10.5753 5.6167 10 5.6167C9.42471 5.6167 8.95834 6.08307 8.95834 6.65837C8.95834 7.23366 9.42471 7.70003 10 7.70003Z",fill:"#1868DB"})]}),cube:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.90996 21.67L4.66996 18.67C4.02642 18.2997 3.4934 17.7643 3.12598 17.1192C2.75856 16.474 2.57006 15.7424 2.57996 15V9C2.57541 8.26267 2.76644 7.53731 3.13359 6.89787C3.50075 6.25843 4.03088 5.72778 4.66996 5.36L9.90996 2.36C10.5447 1.99116 11.2658 1.79688 12 1.79688C12.7341 1.79688 13.4552 1.99116 14.09 2.36L19.33 5.36C19.969 5.72778 20.4992 6.25843 20.8663 6.89787C21.2335 7.53731 21.4245 8.26267 21.42 9V15C21.4192 15.7323 21.2257 16.4514 20.8588 17.0851C20.4919 17.7188 19.9646 18.2448 19.33 18.61L14.09 21.61C13.4605 21.988 12.7422 22.1927 12.008 22.2032C11.2739 22.2137 10.55 22.0298 9.90996 21.67Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M20.8599 6.89C20.4965 6.2519 19.968 5.7234 19.3299 5.36L14.0899 2.36C13.4551 1.99116 12.734 1.79688 11.9999 1.79688C11.2657 1.79688 10.5447 1.99116 9.90989 2.36L4.66989 5.36C4.03179 5.7234 3.5033 6.2519 3.13989 6.89L11.9999 12L20.8599 6.89Z",fill:"#1868DB"}),m.jsx("path",{d:"M20.85 6.89014L12 12.0001L12.13 22.2201C12.8324 22.2082 13.5203 22.019 14.13 21.6701L19.37 18.6701C20.0061 18.2948 20.5311 17.7572 20.8913 17.1124C21.2515 16.4675 21.4339 15.7386 21.42 15.0001V9.00014C21.4215 8.25857 21.2247 7.53009 20.85 6.89014Z",fill:"#1868DB"})]}),magnifier:m.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M19.7083 17.8015L16.8025 15.0515C16.25 15.7628 15.5878 16.3817 14.8408 16.8848L17.8292 19.7265C17.9548 19.8733 18.1102 19.9917 18.285 20.074C18.4598 20.1563 18.6501 20.2005 18.8432 20.2038C19.0364 20.2071 19.2281 20.1694 19.4056 20.0932C19.5832 20.017 19.7425 19.9039 19.8731 19.7615C20.0037 19.6192 20.1026 19.4507 20.1633 19.2673C20.224 19.0839 20.2451 18.8897 20.2252 18.6975C20.2053 18.5053 20.1449 18.3195 20.0479 18.1525C19.9509 17.9854 19.8195 17.8408 19.6625 17.7282L19.7083 17.8015Z",fill:"#7E8299"}),m.jsx("path",{d:"M10.2117 1.83325C8.57998 1.83325 6.98492 2.31711 5.62822 3.22363C4.27151 4.13015 3.21409 5.41862 2.58967 6.92611C1.96524 8.4336 1.80187 10.0924 2.1202 11.6927C2.43852 13.2931 3.22426 14.7631 4.37804 15.9169C5.53183 17.0707 7.00183 17.8564 8.60218 18.1747C10.2025 18.4931 11.8613 18.3297 13.3688 17.7053C14.8763 17.0808 16.1648 16.0234 17.0713 14.6667C17.9778 13.31 18.4617 11.7149 18.4617 10.0833C18.4617 7.89522 17.5925 5.7968 16.0453 4.24962C14.4981 2.70245 12.3997 1.83325 10.2117 1.83325ZM10.2117 15.9133C9.06081 15.9132 7.93578 15.5721 6.97875 14.9329C6.02172 14.2937 5.27564 13.3851 4.83481 12.3221C4.39397 11.259 4.27817 10.0891 4.50202 8.9602C4.72588 7.83132 5.27935 6.79413 6.09249 5.97971C6.90563 5.16529 7.94195 4.61018 9.07048 4.38455C10.199 4.15892 11.3691 4.27288 12.4329 4.71204C13.4966 5.1512 14.4064 5.89585 15.0471 6.85187C15.6878 7.8079 16.0307 8.93239 16.0325 10.0833C16.0349 10.8488 15.8861 11.6072 15.5945 12.315C15.303 13.0229 14.8744 13.6661 14.3336 14.2078C13.7927 14.7496 13.1501 15.1791 12.4428 15.4718C11.7354 15.7644 10.9772 15.9145 10.2117 15.9133Z",fill:"#7E8299"})]}),filter_edit:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M17.3083 3.4917V5.4917C17.3065 5.84118 17.2313 6.18639 17.0878 6.50504C16.9443 6.82369 16.7355 7.10871 16.475 7.3417L15.5167 8.17503C15.3929 8.28554 15.2303 8.34235 15.0646 8.33298C14.899 8.3236 14.7438 8.2488 14.6333 8.12503C14.5228 8.00126 14.466 7.83867 14.4754 7.67301C14.4848 7.50735 14.5596 7.35221 14.6833 7.2417L15.6333 6.40837C15.7618 6.29272 15.8646 6.15136 15.9349 5.99344C16.0053 5.83552 16.0416 5.66458 16.0417 5.4917V3.4917C16.0417 3.16902 15.9135 2.85956 15.6853 2.63139C15.4571 2.40322 15.1477 2.27503 14.825 2.27503H4.21667C3.89399 2.27503 3.58452 2.40322 3.35635 2.63139C3.12818 2.85956 3 3.16902 3 3.4917V5.5667C3.00618 5.87894 3.13137 6.17702 3.35 6.40003L6.48333 9.57503C7.19463 10.2901 7.59322 11.2581 7.59167 12.2667V16.6667C7.59567 16.8589 7.65113 17.0465 7.75227 17.2099C7.85341 17.3734 7.99654 17.5068 8.16674 17.5961C8.33694 17.6855 8.52798 17.7276 8.71997 17.718C8.91196 17.7084 9.09787 17.6475 9.25833 17.5417L10.3917 16.7084C10.459 16.6608 10.535 16.6269 10.6154 16.6087C10.6958 16.5904 10.779 16.5882 10.8602 16.6021C10.9415 16.6161 11.0192 16.6459 11.0889 16.6898C11.1587 16.7338 11.2191 16.7911 11.2667 16.8584C11.3143 16.9257 11.3482 17.0017 11.3664 17.0821C11.3846 17.1625 11.3868 17.2457 11.3729 17.3269C11.359 17.4082 11.3292 17.4859 11.2852 17.5556C11.2412 17.6254 11.184 17.6858 11.1167 17.7334L9.975 18.5667C9.62709 18.8036 9.22141 18.9415 8.80123 18.9659C8.38105 18.9903 7.96213 18.9002 7.58916 18.7051C7.21619 18.5101 6.90316 18.2175 6.68346 17.8585C6.46376 17.4995 6.34563 17.0876 6.34167 16.6667V12.2917C6.34169 11.6108 6.07202 10.9576 5.59167 10.475L2.5 7.30003C2.03298 6.84254 1.76375 6.22032 1.75 5.5667V3.4917C1.75 2.82866 2.01339 2.19277 2.48223 1.72393C2.95107 1.25509 3.58696 0.991699 4.25 0.991699H14.8417C15.4989 1.00046 16.1263 1.26772 16.5879 1.73561C17.0496 2.20351 17.3084 2.83439 17.3083 3.4917ZM16.3583 12.1584L15.7167 12.8084L13.5583 15C13.3939 15.1657 13.1858 15.2813 12.9583 15.3334L12.075 15.5167C11.9919 15.5249 11.9081 15.5249 11.825 15.5167C11.5126 15.5114 11.2142 15.386 10.9917 15.1667C10.849 15.0271 10.7431 14.8544 10.6835 14.6639C10.6239 14.4734 10.6124 14.2711 10.65 14.075L10.8167 13.1917C10.8569 12.9611 10.9675 12.7486 11.1333 12.5834L13.925 9.72503C14.0459 9.60279 14.19 9.50591 14.3488 9.44009C14.5077 9.37426 14.6781 9.34081 14.85 9.3417C15.1962 9.34532 15.5277 9.48268 15.775 9.72503L16.3167 10.2584C16.4464 10.379 16.5506 10.5245 16.6232 10.6862C16.6957 10.8478 16.7351 11.0224 16.739 11.1996C16.7429 11.3767 16.7112 11.5528 16.6458 11.7175C16.5804 11.8822 16.4827 12.0321 16.3583 12.1584ZM14.8 10.6334L14.3167 11.1334C14.3687 11.2877 14.4624 11.4247 14.5874 11.5291C14.7124 11.6335 14.8639 11.7013 15.025 11.725L15.4583 11.2834C15.4583 11.2834 15.4583 11.2167 15.4583 11.1834L14.9167 10.65C14.8947 10.6453 14.872 10.6453 14.85 10.65L14.8 10.6334ZM14.075 12.7C13.8068 12.5397 13.5787 12.3203 13.4083 12.0584L12.0083 13.4917L11.8583 14.325L12.6917 14.1084L14.075 12.7Z",fill:"inherit"})}),price_tag:m.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("g",{opacity:"0.3",children:m.jsx("path",{d:"M3.55997 6.65016L3.41997 11.7402C3.39903 12.4124 3.517 13.0818 3.76649 13.7063C4.01598 14.3309 4.39164 14.8973 4.86997 15.3702L9.42997 19.9402C9.84795 20.3589 10.3444 20.6912 10.8909 20.9178C11.4374 21.1445 12.0233 21.2612 12.615 21.2612C13.2066 21.2612 13.7925 21.1445 14.339 20.9178C14.8855 20.6912 15.382 20.3589 15.8 19.9402L20.57 15.1702C20.9887 14.7522 21.321 14.2557 21.5477 13.7092C21.7743 13.1627 21.891 12.5768 21.891 11.9852C21.891 11.3935 21.7743 10.8076 21.5477 10.2611C21.321 9.71459 20.9887 9.21814 20.57 8.80016L15.96 4.19016C15.4798 3.71338 14.9078 3.33903 14.2787 3.08979C13.6496 2.84055 12.9764 2.72161 12.3 2.74016L7.29997 2.91016C6.31604 2.93547 5.37939 3.33763 4.68341 4.0336C3.98744 4.72958 3.58528 5.66623 3.55997 6.65016Z",fill:"inherit"})}),m.jsx("path",{d:"M10.23 12.2304C11.7764 12.2304 13.03 10.9768 13.03 9.43037C13.03 7.88397 11.7764 6.63037 10.23 6.63037C8.6836 6.63037 7.42999 7.88397 7.42999 9.43037C7.42999 10.9768 8.6836 12.2304 10.23 12.2304Z",fill:"inherit"}),m.jsx("path",{d:"M13.1 17.0003C12.9509 17.0022 12.8046 16.9596 12.6799 16.8779C12.5551 16.7963 12.4575 16.6793 12.3996 16.5419C12.3416 16.4045 12.3259 16.253 12.3545 16.1066C12.3831 15.9603 12.4546 15.8258 12.56 15.7203L16.56 11.7203C16.7006 11.5799 16.8912 11.501 17.09 11.501C17.2887 11.501 17.4794 11.5799 17.62 11.7203C17.6907 11.7893 17.747 11.8717 17.7854 11.9627C17.8238 12.0537 17.8435 12.1515 17.8435 12.2503C17.8435 12.3491 17.8238 12.4469 17.7854 12.5379C17.747 12.629 17.6907 12.7114 17.62 12.7803L13.67 16.7803C13.5961 16.8555 13.507 16.914 13.4087 16.9519C13.3104 16.9898 13.2052 17.0063 13.1 17.0003Z",fill:"inherit"})]}),eyeslash:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M2.88008 22.3404C2.67861 22.3386 2.48544 22.2599 2.34008 22.1204C2.19902 21.978 2.11987 21.7858 2.11987 21.5854C2.11987 21.385 2.19902 21.1927 2.34008 21.0504L20.6001 2.88037C20.6636 2.7878 20.7471 2.71068 20.8444 2.65467C20.9417 2.59867 21.0503 2.56523 21.1622 2.5568C21.2742 2.54838 21.3866 2.56519 21.4911 2.606C21.5957 2.64681 21.6898 2.71057 21.7665 2.79258C21.8431 2.8746 21.9004 2.97278 21.934 3.07987C21.9677 3.18697 21.9769 3.30025 21.9609 3.41137C21.9449 3.52249 21.9042 3.6286 21.8418 3.72189C21.7793 3.81518 21.6967 3.89325 21.6001 3.95037L3.40008 22.1204C3.26264 22.2595 3.07568 22.3386 2.88008 22.3404Z",fill:"black"}),m.jsx("path",{d:"M9.14993 13.1107C9.15256 12.3557 9.45368 11.6323 9.98758 11.0984C10.5215 10.5645 11.2449 10.2634 11.9999 10.2607C12.4251 10.2609 12.8448 10.3573 13.2275 10.5426C13.6102 10.7279 13.9461 10.9973 14.2099 11.3307L10.2099 15.3307C9.87756 15.0643 9.60962 14.7263 9.42608 14.3419C9.24255 13.9576 9.14815 13.5367 9.14993 13.1107ZM11.7099 15.9307C11.8065 15.9357 11.9033 15.9357 11.9999 15.9307C12.7558 15.9307 13.4807 15.6305 14.0152 15.096C14.5497 14.5615 14.8499 13.8366 14.8499 13.0807C14.8548 12.9908 14.8548 12.9007 14.8499 12.8107L11.7099 15.9307Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M6.05 19.5008L9.15 16.4108C8.70449 16.0196 8.34405 15.5411 8.09102 15.005C7.838 14.4688 7.69777 13.8864 7.67903 13.2938C7.66029 12.7013 7.76343 12.1112 7.98208 11.5601C8.20072 11.009 8.5302 10.5087 8.95011 10.0902C9.37001 9.67167 9.87139 9.34383 10.4232 9.12699C10.975 8.91015 11.5654 8.80893 12.1579 8.82961C12.7504 8.85029 13.3323 8.99243 13.8677 9.24721C14.403 9.50199 14.8803 9.86399 15.27 10.3108L18.43 7.16078C16.6374 5.59863 14.3743 4.68002 12 4.55078C7.27 4.55078 2 9.17078 2 13.1108C2 15.2508 3.71 17.7208 6.05 19.5008Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M16.0601 11.6004C16.2484 12.0817 16.3467 12.5935 16.3501 13.1104C16.3552 13.8149 16.1879 14.5101 15.8628 15.1352C15.5377 15.7604 15.0646 16.2965 14.4848 16.6968C13.905 17.0972 13.236 17.3496 12.5362 17.4322C11.8365 17.5147 11.1271 17.4248 10.4701 17.1704L7.33008 20.2904C8.74153 21.1458 10.3504 21.6212 12.0001 21.6704C17.0001 21.6704 22.0001 17.0804 22.0001 13.1104C21.8378 11.1937 20.9595 9.40848 19.5401 8.11035L16.0601 11.6004Z",fill:"black"})]}),eye_outline:m.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M7.99998 9.39988C7.5253 9.39988 7.06129 9.25912 6.66661 8.99541C6.27193 8.73169 5.96432 8.35686 5.78267 7.91832C5.60102 7.47978 5.55349 6.99722 5.6461 6.53166C5.7387 6.06611 5.96728 5.63847 6.30292 5.30282C6.63857 4.96718 7.06621 4.7386 7.53176 4.646C7.99732 4.55339 8.47988 4.60092 8.91842 4.78257C9.35696 4.96422 9.73179 5.27183 9.99551 5.66651C10.2592 6.06119 10.4 6.5252 10.4 6.99988C10.3982 7.63586 10.1448 8.24529 9.69509 8.69499C9.24539 9.1447 8.63596 9.39812 7.99998 9.39988ZM7.99998 5.59988C7.72309 5.59988 7.45241 5.68199 7.22218 5.83582C6.99195 5.98966 6.81251 6.20831 6.70655 6.46412C6.60059 6.71994 6.57286 7.00143 6.62688 7.27301C6.6809 7.54458 6.81424 7.79404 7.01003 7.98983C7.20582 8.18562 7.45528 8.31896 7.72685 8.37298C7.99843 8.427 8.27992 8.39927 8.53574 8.29331C8.79155 8.18735 9.0102 8.00791 9.16404 7.77768C9.31787 7.54745 9.39998 7.27677 9.39998 6.99988C9.39998 6.62858 9.25248 6.27248 8.98993 6.00993C8.72738 5.74738 8.37128 5.59988 7.99998 5.59988ZM7.99998 13.2065C6.19341 13.1238 4.4753 12.4006 3.15331 11.1665C1.69998 9.89321 0.833313 8.33321 0.833313 6.99988C0.833313 4.03988 4.58665 0.793213 7.99998 0.793213C11.4133 0.793213 15.1666 4.12655 15.1666 6.99988C15.1666 10.0132 11.48 13.2065 7.99998 13.2065ZM7.99998 1.79321C5.17998 1.79321 1.83331 4.61321 1.83331 6.99988C1.83331 8.03988 2.59331 9.34655 3.83331 10.4132C4.97144 11.4773 6.44482 12.1114 7.99998 12.2065C11.1733 12.2065 14.1666 9.27321 14.1666 6.99988C14.1666 4.84655 10.98 1.79321 7.99998 1.79321Z",fill:"inherit"})}),eye:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M12 3.94043C7.27 3.94043 2 8.56043 2 12.5004C2 16.2604 7.27 21.0604 12 21.0604C17 21.0604 22 16.4704 22 12.5004C22 8.68043 16.73 3.94043 12 3.94043ZM12 16.8504C11.1397 16.8504 10.2986 16.5953 9.58327 16.1173C8.86792 15.6393 8.31037 14.96 7.98112 14.1651C7.65188 13.3702 7.56574 12.4956 7.73358 11.6518C7.90143 10.808 8.31573 10.0329 8.92409 9.42452C9.53244 8.81616 10.3075 8.40186 11.1514 8.23401C11.9952 8.06617 12.8698 8.15231 13.6647 8.48155C14.4595 8.81079 15.1389 9.36834 15.6169 10.0837C16.0949 10.7991 16.35 11.6401 16.35 12.5004C16.35 13.6541 15.8917 14.7606 15.0759 15.5763C14.2601 16.3921 13.1537 16.8504 12 16.8504Z",fill:"black"})]}),trash:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"#F1416C"})}),trash2:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M10 2.25C9.58579 2.25 9.25 2.58579 9.25 3V3.75H5C4.58579 3.75 4.25 4.08579 4.25 4.5C4.25 4.91421 4.58579 5.25 5 5.25H19C19.4142 5.25 19.75 4.91421 19.75 4.5C19.75 4.08579 19.4142 3.75 19 3.75H14.75V3C14.75 2.58579 14.4142 2.25 14 2.25H10Z",fill:"#F1416C"}),m.jsx("path",{d:"M10 10.65C10.4142 10.65 10.75 10.9858 10.75 11.4L10.75 18.4C10.75 18.8142 10.4142 19.15 10 19.15C9.58579 19.15 9.25 18.8142 9.25 18.4L9.25 11.4C9.25 10.9858 9.58579 10.65 10 10.65Z",fill:"#F1416C"}),m.jsx("path",{d:"M14.75 11.4C14.75 10.9858 14.4142 10.65 14 10.65C13.5858 10.65 13.25 10.9858 13.25 11.4V18.4C13.25 18.8142 13.5858 19.15 14 19.15C14.4142 19.15 14.75 18.8142 14.75 18.4V11.4Z",fill:"#F1416C"}),m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99142 7.91718C6.03363 7.53735 6.35468 7.25 6.73684 7.25H17.2632C17.6453 7.25 17.9664 7.53735 18.0086 7.91718L18.2087 9.71852C18.5715 12.9838 18.5715 16.2793 18.2087 19.5446L18.189 19.722C18.045 21.0181 17.0404 22.0517 15.7489 22.2325C13.2618 22.5807 10.7382 22.5807 8.25108 22.2325C6.95954 22.0517 5.955 21.0181 5.81098 19.722L5.79128 19.5446C5.42846 16.2793 5.42846 12.9838 5.79128 9.71852L5.99142 7.91718ZM7.40812 8.75L7.2821 9.88417C6.93152 13.0394 6.93152 16.2238 7.2821 19.379L7.3018 19.5563C7.37011 20.171 7.84652 20.6612 8.45905 20.747C10.8082 21.0758 13.1918 21.0758 15.5409 20.747C16.1535 20.6612 16.6299 20.171 16.6982 19.5563L16.7179 19.379C17.0685 16.2238 17.0685 13.0394 16.7179 9.88417L16.5919 8.75H7.40812Z",fill:"#F1416C"})]}),trash_outline:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"inherit"})}),plus_squared:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8333H5.83333C5.61232 10.8333 5.40036 10.7455 5.24408 10.5893C5.0878 10.433 5 10.221 5 10C5 9.77899 5.0878 9.56703 5.24408 9.41075C5.40036 9.25447 5.61232 9.16667 5.83333 9.16667H9.16667V10.8333ZM14.1667 9.16667H10.8333V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56703 14.7559 9.41075C14.5996 9.25447 14.3877 9.16667 14.1667 9.16667Z",fill:"white"}),m.jsx("path",{opacity:"0.3",d:"M13.4915 1.66667H6.50817C3.83419 1.66667 1.6665 3.83436 1.6665 6.50834V13.4917C1.6665 16.1657 3.83419 18.3333 6.50817 18.3333H13.4915C16.1655 18.3333 18.3332 16.1657 18.3332 13.4917V6.50834C18.3332 3.83436 16.1655 1.66667 13.4915 1.66667Z",fill:"white"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"white"})]}),plus_squared2:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8332H5.83333C5.61232 10.8332 5.40036 10.7454 5.24408 10.5891C5.0878 10.4328 5 10.2209 5 9.99984C5 9.77882 5.0878 9.56686 5.24408 9.41058C5.40036 9.2543 5.61232 9.1665 5.83333 9.1665H9.16667V10.8332ZM14.1667 9.1665H10.8333V10.8332H14.1667C14.3877 10.8332 14.5996 10.7454 14.7559 10.5891C14.9122 10.4328 15 10.2209 15 9.99984C15 9.77882 14.9122 9.56686 14.7559 9.41058C14.5996 9.2543 14.3877 9.1665 14.1667 9.1665Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M13.4917 1.6665H6.50832C3.83434 1.6665 1.66666 3.83419 1.66666 6.50817V13.4915C1.66666 16.1655 3.83434 18.3332 6.50832 18.3332H13.4917C16.1656 18.3332 18.3333 16.1655 18.3333 13.4915V6.50817C18.3333 3.83419 16.1656 1.6665 13.4917 1.6665Z",fill:"#1868DB"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"#1868DB"})]}),plus_circle:m.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M9.00008 0.666992C7.35191 0.666992 5.74074 1.15573 4.37033 2.07141C2.99992 2.98709 1.93182 4.28858 1.30109 5.8113C0.670359 7.33401 0.505331 9.00957 0.826874 10.6261C1.14842 12.2426 1.94209 13.7274 3.10753 14.8929C4.27297 16.0583 5.75782 16.852 7.37433 17.1735C8.99084 17.4951 10.6664 17.3301 12.1891 16.6993C13.7118 16.0686 15.0133 15.0005 15.929 13.6301C16.8447 12.2597 17.3334 10.6485 17.3334 9.00033C17.3334 7.90598 17.1179 6.82234 16.6991 5.8113C16.2803 4.80025 15.6665 3.88159 14.8926 3.10777C14.1188 2.33395 13.2002 1.72012 12.1891 1.30133C11.1781 0.88254 10.0944 0.666992 9.00008 0.666992ZM13.1668 9.83366H9.83342V13.167C9.83342 13.388 9.74562 13.6 9.58934 13.7562C9.43306 13.9125 9.2211 14.0003 9.00008 14.0003C8.77907 14.0003 8.56711 13.9125 8.41083 13.7562C8.25455 13.6 8.16675 13.388 8.16675 13.167V9.83366H4.83342C4.6124 9.83366 4.40044 9.74586 4.24416 9.58958C4.08788 9.4333 4.00008 9.22134 4.00008 9.00033C4.00008 8.77931 4.08788 8.56735 4.24416 8.41107C4.40044 8.25479 4.6124 8.16699 4.83342 8.16699H8.16675V4.83366C8.16675 4.61265 8.25455 4.40068 8.41083 4.2444C8.56711 4.08812 8.77907 4.00033 9.00008 4.00033C9.2211 4.00033 9.43306 4.08812 9.58934 4.2444C9.74562 4.40068 9.83342 4.61265 9.83342 4.83366V8.16699H13.1668C13.3878 8.16699 13.5997 8.25479 13.756 8.41107C13.9123 8.56735 14.0001 8.77931 14.0001 9.00033C14.0001 9.22134 13.9123 9.4333 13.756 9.58958C13.5997 9.74586 13.3878 9.83366 13.1668 9.83366Z",fill:"black"})}),close:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"#1868DB"})}),close2:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"inherit"})}),close_custom:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M17.0001 16.9298C16.8127 17.1161 16.5593 17.2206 16.2951 17.2206C16.0309 17.2206 15.7774 17.1161 15.5901 16.9298L7.05007 8.48985C6.95634 8.39688 6.88195 8.28628 6.83118 8.16442C6.78041 8.04256 6.75427 7.91186 6.75427 7.77985C6.75427 7.64783 6.78041 7.51713 6.83118 7.39527C6.88195 7.27341 6.95634 7.16281 7.05007 7.06985C7.23743 6.88359 7.49088 6.77905 7.75507 6.77905C8.01926 6.77905 8.27271 6.88359 8.46007 7.06985L17.0001 15.5098C17.0938 15.6028 17.1682 15.7134 17.219 15.8353C17.2697 15.9571 17.2959 16.0878 17.2959 16.2198C17.2959 16.3519 17.2697 16.4826 17.219 16.6044C17.1682 16.7263 17.0938 16.8369 17.0001 16.9298Z",fill:"#202125"}),m.jsx("path",{opacity:"0.3",d:"M8.46004 16.9999C8.26909 17.1935 8.00904 17.3033 7.73711 17.3052C7.46518 17.3071 7.20365 17.2009 7.01004 17.0099C6.81643 16.819 6.70661 16.5589 6.70474 16.287C6.70286 16.0151 6.80909 15.7535 7.00004 15.5599L15.54 6.99991C15.731 6.8063 15.991 6.69648 16.263 6.6946C16.5349 6.69273 16.7964 6.79895 16.99 6.98991C17.1836 7.18087 17.2935 7.44091 17.2953 7.71284C17.2972 7.98477 17.191 8.2463 17 8.43991L8.46004 16.9999Z",fill:"#202125"})]}),expand:m.jsx("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M14.1667 29.75V26.9167H9.08083L15.4558 20.5417L13.4583 18.5442L7.08333 24.9192V19.8333H4.25V29.75H14.1667ZM20.5417 15.4558L26.9167 9.08083V14.1667H29.75V4.25H19.8333V7.08333H24.9192L18.5442 13.4583L20.5417 15.4558Z",fill:"#5E6278"})}),error:m.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M12 21C7.0293 21 3 16.9707 3 12C3 7.0293 7.0293 3 12 3C16.9707 3 21 7.0293 21 12C21 16.9707 16.9707 21 12 21ZM11.1 14.7V16.5H12.9V14.7H11.1ZM11.1 7.5V12.9H12.9V7.5H11.1Z",fill:"inherit"})}),printer_blue:m.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M12.1333 4.66602H3.86667C2.83574 4.66602 2 5.50175 2 6.53268V10.1327C2 11.1636 2.83574 11.9993 3.86667 11.9993H12.1333C13.1643 11.9993 14 11.1636 14 10.1327V6.53268C14 5.50175 13.1643 4.66602 12.1333 4.66602Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.83366 1.33301H9.17366C9.74714 1.33477 10.2965 1.56382 10.7014 1.96996C11.1063 2.3761 11.3337 2.92619 11.3337 3.49967V4.66634H4.66699V3.49967C4.66699 2.92504 4.89527 2.37394 5.30159 1.96761C5.70792 1.56128 6.25902 1.33301 6.83366 1.33301Z",fill:"#1868DB"}),m.jsx("path",{d:"M5.33301 10H10.6663V12.6133C10.6663 13.1579 10.45 13.6802 10.0649 14.0653C9.67986 14.4503 9.15759 14.6667 8.61301 14.6667H7.38634C6.84176 14.6667 6.31949 14.4503 5.93442 14.0653C5.54934 13.6802 5.33301 13.1579 5.33301 12.6133V10Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.66699 7.83301H4.66699C4.53438 7.83301 4.40721 7.78033 4.31344 7.68656C4.21967 7.59279 4.16699 7.46562 4.16699 7.33301C4.16699 7.2004 4.21967 7.07322 4.31344 6.97945C4.40721 6.88569 4.53438 6.83301 4.66699 6.83301H6.66699C6.7996 6.83301 6.92678 6.88569 7.02055 6.97945C7.11431 7.07322 7.16699 7.2004 7.16699 7.33301C7.16699 7.46562 7.11431 7.59279 7.02055 7.68656C6.92678 7.78033 6.7996 7.83301 6.66699 7.83301Z",fill:"black"}),m.jsx("path",{d:"M11.3337 10.5H4.66699C4.53438 10.5 4.40721 10.4473 4.31344 10.3536C4.21967 10.2598 4.16699 10.1326 4.16699 10C4.16699 9.86739 4.21967 9.74022 4.31344 9.64645C4.40721 9.55268 4.53438 9.5 4.66699 9.5H11.3337C11.4663 9.5 11.5934 9.55268 11.6872 9.64645C11.781 9.74022 11.8337 9.86739 11.8337 10C11.8337 10.1326 11.781 10.2598 11.6872 10.3536C11.5934 10.4473 11.4663 10.5 11.3337 10.5Z",fill:"black"})]})};function xv({showBulkActions:e=!0,meta:t}){const n=J(),{currentPage:r,perview:o}=ne(e=>e.app);return D.useEffect(()=>{t&&r>t?.last_page&&n($t(1))},[t?.per_page]),m.jsxs("div",{className:ma("flex items-center justify-between gap-4 flex-wrap",t&&t?.total>0?null:"hidden"),children:[e?m.jsxs("div",{className:"flex items-center gap-2.5 shrink-0",children:[m.jsxs(of,{children:[m.jsx(af,{asChild:!0,children:m.jsxs("button",{className:"rounded-md h-9 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 ",children:[o,m.jsx("span",{className:"rotate-90",children:wv.arrow})]})}),m.jsx(sf,{align:"center",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5",children:[7,10,20].map((e,t)=>m.jsx(lf,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${o===e?"bg-primary_light text-primary":"text-gray-700"} `,onClick:()=>n(Ht(e)),children:e},t))})]}),m.jsxs("p",{className:"font-normal text-gray-600 text-[15px]",children:["Showing ",t?.from," - ",t?.to," of ",t?.total]})]}):null,m.jsx(bv,{count:t?.last_page||1,page:t?.current_page??1,shape:"rounded",color:"primary",onChange:(e,t)=>{n($t(t))}})]})}function Cv({props:e={}}){return m.jsxs("div",{className:"flex flex-col gap-3 items-center py-24",children:[m.jsx("p",{className:"font-bold text-sm",children:e.header??"No item attached"}),m.jsx("p",{className:"font-bold text-[13px] text-gray-700",children:e.subText??"Add a new item to start managing your orders."})]})}function Sv({columns:e,data:t,tbhRowClass:n,tHeadClass:r,tbCellClass:o,meta:a,showBulkActions:i,showPaginate:s=!0,emptyData:l,emptyProps:u,loading:c,accordionData:d,hasAccordion:f,bodyRowClass:p,tableContainerClass:h,firstCellClass:g,lastCellClass:y,showAccordionDropdown:v=!0,onToggleAccordion:b}){const[w,x]=D.useState(null),C=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=D.useState(()=>({current:Qr(t)})),[r,o]=D.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:t,columns:e,getCoreRowModel:e=>or(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let l=0;l<t.length;l++){const u=cr(e,e._getRowId(t[l],l,a),t[l],l,o,0,null==a?void 0:a.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,o+1,u)))}return i};return n.rows=r(t),n},ar(e.options,"debugTable",0,()=>e._autoResetPageIndex()))});return m.jsxs("div",{className:"flex flex-col gap-[30px]",children:[m.jsx("div",{className:`shadow-[0_3px_4px_0_#00000008] ${h}`,children:m.jsxs(ga,{children:[m.jsx(ya,{children:C.getHeaderGroups().map(e=>m.jsx(ba,{className:ma("border-gray-300 bg-gray-100 hover:!bg-gray-100 rounded-xl",n),children:e.headers.map(e=>m.jsx(wa,{className:ma("text-dark text-sm capitalize font-bold",r),children:e.isPlaceholder?null:Xr(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),m.jsx(va,{children:c?Array(5).fill(null).map((e,t)=>m.jsx(M.Fragment,{children:C.getHeaderGroups().map(e=>m.jsx(ba,{className:ma("border-gray-300 hover:!bg-gray-100 rounded-xl"),children:e.headers.map(e=>m.jsx(xa,{children:m.jsx(Ca,{className:"w-full h-6 rounded-lg"})},e.id))},e.id))},t)):C?.getRowModel().rows?.length?C?.getRowModel().rows.map((e,t)=>m.jsx(M.Fragment,{children:m.jsx(ba,{onClick:()=>((e,t)=>{x(t=>t===e?null:e),b?.(e,t)})(t,e.original),"data-state":e.getIsSelected()&&"selected",className:`border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${p} `,children:e.getVisibleCells().map((n,r)=>m.jsx(xa,{className:ma("text-gray-500 text-sm font-bold",o,0===r&&g,r===e.getVisibleCells().length-1&&y),children:m.jsxs("div",{className:"flex",children:[f&&v&&0===r&&m.jsx("div",{className:"cursor-pointer inline",children:m.jsx("div",{className:"transform transition-transform duration-200 "+(w===t?"-rotate-90":"rotate-90"),children:wv.arrow})})," ",m.jsx("div",{children:Xr(n.column.columnDef.cell,n.getContext())})]})},n.id))},e.id)},e.id)):m.jsx(ba,{children:m.jsx(xa,{colSpan:e.length,className:"h-24 text-center hover:bg-gray-100",children:l?m.jsx(Cv,{props:u}):"No results found."})})})]})}),s&&m.jsx(xv,{showBulkActions:i,meta:a})]})}function kv(e,t="NGN",n="en-NG"){isNaN(e)&&(e=0);return new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:6}).format(e)}function _v(e=0){if(null==e)return"0";if(isNaN(e))return"0";{const[t,n]=e.toString().split("."),r=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?`${r}.${n}`:r}}var Ev,jv="HoverCard",[Nv]=ja(jv,[cl]),Ov=cl(),[Rv,Pv]=Nv(jv),Tv=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=Ov(t),u=D.useRef(0),c=D.useRef(0),d=D.useRef(!1),f=D.useRef(!1),[p,h]=Pa({prop:r,defaultProp:o??!1,onChange:a,caller:jv}),g=D.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>h(!0),i)},[i,h]),y=D.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>h(!1),s))},[s,h]),v=D.useCallback(()=>h(!1),[h]);return D.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),m.jsx(Rv,{scope:t,open:p,onOpenChange:h,onOpen:g,onClose:y,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:m.jsx(El,{...l,children:n})})};Tv.displayName=jv;var Dv="HoverCardTrigger",Mv=D.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Pv(Dv,n),a=Ov(n);return m.jsx(jl,{asChild:!0,...a,children:m.jsx(za.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:Sa(e.onPointerEnter,$v(o.onOpen)),onPointerLeave:Sa(e.onPointerLeave,$v(o.onClose)),onFocus:Sa(e.onFocus,o.onOpen),onBlur:Sa(e.onBlur,o.onClose),onTouchStart:Sa(e.onTouchStart,e=>e.preventDefault())})})});Mv.displayName=Dv;var[Iv,Av]=Nv("HoverCardPortal",{forceMount:void 0}),Fv="HoverCardContent",Lv=D.forwardRef((e,t)=>{const n=Av(Fv,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=Pv(Fv,e.__scopeHoverCard);return m.jsx(Pl,{present:r||a.open,children:m.jsx(zv,{"data-state":a.open?"open":"closed",...o,onPointerEnter:Sa(e.onPointerEnter,$v(a.onOpen)),onPointerLeave:Sa(e.onPointerLeave,$v(a.onClose)),ref:t})})});Lv.displayName=Fv;var zv=D.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=Pv(Fv,n),u=Ov(n),c=D.useRef(null),d=Ea(t,c),[f,p]=D.useState(!1);return D.useEffect(()=>{if(f){const e=document.body;return Ev=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Ev,e.style.webkitUserSelect=Ev}}},[f]),D.useEffect(()=>{if(c.current){const e=()=>{p(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),D.useEffect(()=>{if(c.current){const e=function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(c.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),m.jsx(Qa,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Sa(a,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:m.jsx(Nl,{...u,...s,onPointerDown:Sa(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function $v(e){return t=>"touch"===t.pointerType?void 0:e()}D.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Ov(n);return m.jsx(Ol,{...o,...r,ref:t})}).displayName="HoverCardArrow";var Hv=Lv;const Vv=Tv,Bv=Mv,Uv=D.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(Hv,{ref:o,align:t,sideOffset:n,className:ma("z-50 w-64 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r}));function Wv({children:e,trigger:t,fieldName:n,align:r="start"}){return m.jsxs(Vv,{children:[m.jsx(Bv,{className:"cursor-pointer",children:t??wv.info_input}),m.jsxs(Uv,{align:r,className:"bg-[#0A0D14] text-[#CDD0D5] text-xs font-normal border-none",children:[n?m.jsx("p",{className:"text-sm font-medium text-white first-letter:uppercase",children:n}):null,e]})]})}function qv({status:e}){return m.jsx("span",{className:ma("font-semibold text-xs rounded p-[7px] capitalize text-center min-w-[70px] bg-gray-300 text-gray-700",["active","approved","published","received","returned","completed","reconciled","credit"].includes(e)?"text-success bg-success-light":null,["inactive","pending","expired","expiring","rejected","voided","cancelled","debit","out of stock"].includes(e)?"text-danger bg-danger_light":null,["pending","paylater","suspended","awaiting_approval"].includes(e)?"text-warning bg-warning-light":null,["draft","in_transit"].includes(e)?"text-black bg-[#E1E3EA]":null,["ongoing"].includes(e)?"text-[#7239EA] bg-[#f5edff]":null),children:e?.replace("_"," ")})}Uv.displayName=Hv.displayName,Array(12).fill(0);let Yv=1;const Gv=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:Yv++,a=this.toasts.find(e=>e.id===o),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:i,title:n}):t):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const r=Promise.resolve(e instanceof Function?e():e);let o,a=void 0!==n;const i=r.then(async e=>{o=["resolve",e];if(M.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(Kv(e)&&!e.ok){a=!1;const r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"==typeof r&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}else if(e instanceof Error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}else if(void 0!==t.success){a=!1;const r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:"success",description:o,...i})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>i.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||Yv++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Kv=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,Qv=(e,t)=>{const n=(null==t?void 0:t.id)||Yv++;return Gv.addToast({title:e,...t,id:n}),n},Xv=Object.assign(Qv,{success:Gv.success,info:Gv.info,warning:Gv.warning,error:Gv.error,custom:Gv.custom,message:Gv.message,promise:Gv.promise,dismiss:Gv.dismiss,loading:Gv.loading},{getHistory:()=>Gv.toasts,getToasts:()=>Gv.getActiveToasts()});function Zv(e,t){return function(){return e.apply(t,arguments)}}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const{toString:Jv}=Object.prototype,{getPrototypeOf:eb}=Object,{iterator:tb,toStringTag:nb}=Symbol,rb=(ob=Object.create(null),e=>{const t=Jv.call(e);return ob[t]||(ob[t]=t.slice(8,-1).toLowerCase())});var ob;const ab=e=>(e=e.toLowerCase(),t=>rb(t)===e),ib=e=>t=>typeof t===e,{isArray:sb}=Array,lb=ib("undefined");function ub(e){return null!==e&&!lb(e)&&null!==e.constructor&&!lb(e.constructor)&&fb(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cb=ab("ArrayBuffer");const db=ib("string"),fb=ib("function"),pb=ib("number"),hb=e=>null!==e&&"object"==typeof e,mb=e=>{if("object"!==rb(e))return!1;const t=eb(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||nb in e||tb in e)},gb=ab("Date"),yb=ab("File"),vb=ab("Blob"),bb=ab("FileList"),wb=ab("URLSearchParams"),[xb,Cb,Sb,kb]=["ReadableStream","Request","Response","Headers"].map(ab);function _b(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),sb(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ub(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function Eb(e,t){if(ub(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const jb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Nb=e=>!lb(e)&&e!==jb;const Ob=(Rb="undefined"!=typeof Uint8Array&&eb(Uint8Array),e=>Rb&&e instanceof Rb);var Rb;const Pb=ab("HTMLFormElement"),Tb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Db=ab("RegExp"),Mb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_b(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const Ib=ab("AsyncFunction"),Ab=(Fb="function"==typeof setImmediate,Lb=fb(jb.postMessage),Fb?setImmediate:Lb?((e,t)=>(jb.addEventListener("message",({source:n,data:r})=>{n===jb&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),jb.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Fb,Lb;const zb="undefined"!=typeof queueMicrotask?queueMicrotask.bind(jb):"undefined"!=typeof process&&process.nextTick||Ab;var $b={isArray:sb,isArrayBuffer:cb,isBuffer:ub,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||fb(e.append)&&("formdata"===(t=rb(e))||"object"===t&&fb(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cb(e.buffer),t},isString:db,isNumber:pb,isBoolean:e=>!0===e||!1===e,isObject:hb,isPlainObject:mb,isEmptyObject:e=>{if(!hb(e)||ub(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:xb,isRequest:Cb,isResponse:Sb,isHeaders:kb,isUndefined:lb,isDate:gb,isFile:yb,isBlob:vb,isRegExp:Db,isFunction:fb,isStream:e=>hb(e)&&fb(e.pipe),isURLSearchParams:wb,isTypedArray:Ob,isFileList:bb,forEach:_b,merge:function e(){const{caseless:t,skipUndefined:n}=Nb(this)&&this||{},r={},o=(o,a)=>{const i=t&&Eb(r,a)||a;mb(r[i])&&mb(o)?r[i]=e(r[i],o):mb(o)?r[i]=e({},o):sb(o)?r[i]=o.slice():n&&lb(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_b(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(_b(t,(t,r)=>{n&&fb(t)?Object.defineProperty(e,r,{value:Zv(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&eb(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rb,kindOfTest:ab,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(sb(e))return e;let t=e.length;if(!pb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[tb]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Pb,hasOwnProperty:Tb,hasOwnProp:Tb,reduceDescriptors:Mb,freezeMethods:e=>{Mb(e,(t,n)=>{if(fb(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];fb(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return sb(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Eb,global:jb,isContextDefined:Nb,isSpecCompliantForm:function(e){return!!(e&&fb(e.append)&&"FormData"===e[nb]&&e[tb])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(hb(e)){if(t.indexOf(e)>=0)return;if(ub(e))return e;if(!("toJSON"in e)){t[r]=e;const o=sb(e)?[]:{};return _b(e,(e,t)=>{const a=n(e,r+1);!lb(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Ib,isThenable:e=>e&&(hb(e)||fb(e))&&fb(e.then)&&fb(e.catch),setImmediate:Ab,asap:zb,isIterable:e=>null!=e&&fb(e[tb])};let Hb=class e extends Error{static from(t,n,r,o,a,i){const s=new e(t.message,n||t.code,r,o,a);return s.cause=t,s.name=t.name,i&&Object.assign(s,i),s}constructor(e,t,n,r,o){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$b.toJSONObject(this.config),code:this.code,status:this.status}}};Hb.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Hb.ERR_BAD_OPTION="ERR_BAD_OPTION",Hb.ECONNABORTED="ECONNABORTED",Hb.ETIMEDOUT="ETIMEDOUT",Hb.ERR_NETWORK="ERR_NETWORK",Hb.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Hb.ERR_DEPRECATED="ERR_DEPRECATED",Hb.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Hb.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Hb.ERR_CANCELED="ERR_CANCELED",Hb.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Hb.ERR_INVALID_URL="ERR_INVALID_URL";function Vb(e){return $b.isPlainObject(e)||$b.isArray(e)}function Bb(e){return $b.endsWith(e,"[]")?e.slice(0,-2):e}function Ub(e,t,n){return e?e.concat(t).map(function(e,t){return e=Bb(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Wb=$b.toFlatObject($b,{},null,function(e){return/^is[A-Z]/.test(e)});function qb(e,t,n){if(!$b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=$b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!$b.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&$b.isSpecCompliantForm(t);if(!$b.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if($b.isDate(e))return e.toISOString();if($b.isBoolean(e))return e.toString();if(!s&&$b.isBlob(e))throw new Hb("Blob is not supported. Use a Buffer instead.");return $b.isArrayBuffer(e)||$b.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if($b.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if($b.isArray(e)&&function(e){return $b.isArray(e)&&!e.some(Vb)}(e)||($b.isFileList(e)||$b.endsWith(n,"[]"))&&(s=$b.toArray(e)))return n=Bb(n),s.forEach(function(e,r){!$b.isUndefined(e)&&null!==e&&t.append(!0===i?Ub([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!Vb(e)||(t.append(Ub(o,n,a),l(e)),!1)}const c=[],d=Object.assign(Wb,{defaultVisitor:u,convertValue:l,isVisitable:Vb});if(!$b.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!$b.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),$b.forEach(n,function(n,a){!0===(!($b.isUndefined(n)||null===n)&&o.call(t,n,$b.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),c.pop()}}(e),t}function Yb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Gb(e,t){this._pairs=[],e&&qb(e,this,t)}const Kb=Gb.prototype;function Qb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xb(e,t,n){if(!t)return e;const r=n&&n.encode||Qb,o=$b.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let i;if(i=a?a(t,o):$b.isURLSearchParams(t)?t.toString():new Gb(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Kb.append=function(e,t){this._pairs.push([e,t])},Kb.toString=function(e){const t=e?function(t){return e.call(this,t,Yb)}:Yb;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Zb{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$b.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Jb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ew={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Gb,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const tw="undefined"!=typeof window&&"undefined"!=typeof document,nw="object"==typeof navigator&&navigator||void 0,rw=tw&&(!nw||["ReactNative","NativeScript","NS"].indexOf(nw.product)<0),ow="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,aw=tw&&window.location.href||"http://localhost";var iw={...Object.freeze({__proto__:null,hasBrowserEnv:tw,hasStandardBrowserEnv:rw,hasStandardBrowserWebWorkerEnv:ow,navigator:nw,origin:aw}),...ew};function sw(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&$b.isArray(r)?r.length:a,s)return $b.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&$b.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&$b.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if($b.isFormData(e)&&$b.isFunction(e.entries)){const n={};return $b.forEachEntry(e,(e,r)=>{t(function(e){return $b.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const lw={transitional:Jb,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=$b.isObject(e);o&&$b.isHTMLForm(e)&&(e=new FormData(e));if($b.isFormData(e))return r?JSON.stringify(sw(e)):e;if($b.isArrayBuffer(e)||$b.isBuffer(e)||$b.isStream(e)||$b.isFile(e)||$b.isBlob(e)||$b.isReadableStream(e))return e;if($b.isArrayBufferView(e))return e.buffer;if($b.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return qb(e,new iw.classes.URLSearchParams,{visitor:function(e,t,n,r){return iw.isNode&&$b.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=$b.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return qb(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if($b.isString(e))try{return(t||JSON.parse)(e),$b.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||lw.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if($b.isResponse(e)||$b.isReadableStream(e))return e;if(e&&$b.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Hb.from(e,Hb.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iw.classes.FormData,Blob:iw.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$b.forEach(["delete","get","head","post","put","patch"],e=>{lw.headers[e]={}});const uw=$b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const cw=Symbol("internals");function dw(e){return e&&String(e).trim().toLowerCase()}function fw(e){return!1===e||null==e?e:$b.isArray(e)?e.map(fw):String(e)}function pw(e,t,n,r,o){return $b.isFunction(r)?r.call(this,t,n):(o&&(t=n),$b.isString(t)?$b.isString(r)?-1!==t.indexOf(r):$b.isRegExp(r)?r.test(t):void 0:void 0)}let hw=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=dw(t);if(!o)throw new Error("header name must be a non-empty string");const a=$b.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=fw(e))}const a=(e,t)=>$b.forEach(e,(e,n)=>o(e,n,t));if($b.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if($b.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&uw[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if($b.isObject(e)&&$b.isIterable(e)){let n,r,o={};for(const t of e){if(!$b.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?$b.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=dw(e)){const n=$b.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if($b.isFunction(t))return t.call(this,e,n);if($b.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=dw(e)){const n=$b.findKey(this,e);return!(!n||void 0===this[n]||t&&!pw(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=dw(e)){const o=$b.findKey(n,e);!o||t&&!pw(0,n[o],o,t)||(delete n[o],r=!0)}}return $b.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!pw(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return $b.forEach(this,(r,o)=>{const a=$b.findKey(n,o);if(a)return t[a]=fw(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=fw(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $b.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&$b.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[cw]=this[cw]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=dw(e);t[r]||(!function(e,t){const n=$b.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return $b.isArray(e)?e.forEach(r):r(e),this}};function mw(e,t){const n=this||lw,r=t||n,o=hw.from(r.headers);let a=r.data;return $b.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function gw(e){return!(!e||!e.__CANCEL__)}hw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$b.reduceDescriptors(hw.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),$b.freezeMethods(hw);let yw=class extends Hb{constructor(e,t,n){super(null==e?"canceled":e,Hb.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function vw(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Hb("Request failed with status code "+n.status,[Hb.ERR_BAD_REQUEST,Hb.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const bw=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},ww=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xw=e=>(...t)=>$b.asap(()=>e(...t));var Cw=iw.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,iw.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(iw.origin),iw.navigator&&/(msie|trident)/i.test(iw.navigator.userAgent)):()=>!0,Sw=iw.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];$b.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),$b.isString(r)&&s.push(`path=${r}`),$b.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),$b.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function kw(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _w=e=>e instanceof hw?{...e}:e;function Ew(e,t){t=t||{};const n={};function r(e,t,n,r){return $b.isPlainObject(e)&&$b.isPlainObject(t)?$b.merge.call({caseless:r},e,t):$b.isPlainObject(t)?$b.merge({},t):$b.isArray(t)?t.slice():t}function o(e,t,n,o){return $b.isUndefined(t)?$b.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!$b.isUndefined(t))return r(void 0,t)}function i(e,t){return $b.isUndefined(t)?$b.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(_w(e),_w(t),0,!0)};return $b.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||o,i=a(e[r],t[r],r);$b.isUndefined(i)&&a!==s||(n[r]=i)}),n}var jw=e=>{const t=Ew({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=hw.from(i),t.url=Xb(kw(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),$b.isFormData(n))if(iw.hasStandardBrowserEnv||iw.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if($b.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(iw.hasStandardBrowserEnv&&(r&&$b.isFunction(r)&&(r=r(t)),r||!1!==r&&Cw(t.url))){const e=o&&a&&Sw.read(a);e&&i.set(o,e)}return t};var Nw="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=jw(e);let o=r.data;const a=hw.from(r.headers).normalize();let i,s,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=hw.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());vw(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Hb("Request aborted",Hb.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Hb(r,Hb.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Jb;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Hb(t,o.clarifyTimeoutError?Hb.ETIMEDOUT:Hb.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&$b.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),$b.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,c]=bw(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,u]=bw(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new yw(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===iw.protocols.indexOf(y)?n(new Hb("Unsupported protocol "+y+":",Hb.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Ow=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Hb?t:new yw(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new Hb(`timeout of ${t}ms exceeded`,Hb.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>$b.asap(i),s}},Rw=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Pw=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Tw=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Pw(e))yield*Rw(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Dw}=$b,Mw=(({Request:e,Response:t})=>({Request:e,Response:t}))($b.global),{ReadableStream:Iw,TextEncoder:Aw}=$b.global,Fw=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Lw=e=>{e=$b.merge.call({skipUndefined:!0},Mw,e);const{fetch:t,Request:n,Response:r}=e,o=t?Dw(t):"function"==typeof fetch,a=Dw(n),i=Dw(r);if(!o)return!1;const s=o&&Dw(Iw),l=o&&("function"==typeof Aw?(u=new Aw,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const c=a&&s&&Fw(()=>{let e=!1;const t=new n(iw.origin,{body:new Iw,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=i&&s&&Fw(()=>$b.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Hb(`Response type '${e}' is not supported`,Hb.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=$b.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if($b.isBlob(e))return e.size;if($b.isSpecCompliantForm(e)){const t=new n(iw.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return $b.isArrayBufferView(e)||$b.isArrayBuffer(e)?e.byteLength:($b.isURLSearchParams(e)&&(e+=""),$b.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:s,signal:l,cancelToken:u,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:w}=jw(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Ow([l,u&&u.toAbortSignal()],h),S=null;const k=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let _;try{if(g&&c&&"get"!==i&&"head"!==i&&0!==(_=await p(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if($b.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=ww(_,bw(xw(g)));s=Tw(t.body,65536,e,n)}}$b.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,l={...w,signal:C,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};S=a&&new n(o,l);let u=await(a?x(S,w):x(o,l));const h=d&&("stream"===y||"response"===y);if(d&&(m||h&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=$b.toFiniteNumber(u.headers.get("content-length")),[n,o]=m&&ww(t,bw(xw(m),!0))||[];u=new r(Tw(u.body,65536,n,()=>{o&&o(),k&&k()}),e)}y=y||"text";let E=await f[$b.findKey(f,y)||"text"](u,e);return!h&&k&&k(),await new Promise((t,n)=>{vw(t,n,{data:E,headers:hw.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:S})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Hb("Network Error",Hb.ERR_NETWORK,e,S),{cause:t.cause||t});throw Hb.from(t,t&&t.code,e,S)}}},zw=new Map,$w=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,l=a.length,u=zw;for(;l--;)i=a[l],s=u.get(i),void 0===s&&u.set(i,s=l?new Map:Lw(t)),u=s;return s};$w();const Hw={http:null,xhr:Nw,fetch:{get:$w}};$b.forEach(Hw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Vw=e=>`- ${e}`,Bw=e=>$b.isFunction(e)||null===e||!1===e;var Uw={getAdapter:function(e,t){e=$b.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!Bw(r)&&(o=Hw[(n=String(r)).toLowerCase()],void 0===o))throw new Hb(`Unknown adapter '${n}'`);if(o&&($b.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Vw).join("\n"):" "+Vw(e[0]):"as no adapter specified";throw new Hb("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Hw};function Ww(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yw(null,e)}function qw(e){Ww(e),e.headers=hw.from(e.headers),e.data=mw.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Uw.getAdapter(e.adapter||lw.adapter,e)(e).then(function(t){return Ww(e),t.data=mw.call(e,e.transformResponse,t),t.headers=hw.from(t.headers),t},function(t){return gw(t)||(Ww(e),t&&t.response&&(t.response.data=mw.call(e,e.transformResponse,t.response),t.response.headers=hw.from(t.response.headers))),Promise.reject(t)})}const Yw="1.13.4",Gw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gw[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Kw={};Gw.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Yw+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new Hb(r(o," has been removed"+(t?" in "+t:"")),Hb.ERR_DEPRECATED);return t&&!Kw[o]&&(Kw[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},Gw.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Qw={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Hb("options must be an object",Hb.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new Hb("option "+a+" must be "+n,Hb.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Hb("Unknown option "+a,Hb.ERR_BAD_OPTION)}},validators:Gw};const Xw=Qw.validators;let Zw=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zb,response:new Zb}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ew(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Qw.assertOptions(n,{silentJSONParsing:Xw.transitional(Xw.boolean),forcedJSONParsing:Xw.transitional(Xw.boolean),clarifyTimeoutError:Xw.transitional(Xw.boolean)},!1),null!=r&&($b.isFunction(r)?t.paramsSerializer={serialize:r}:Qw.assertOptions(r,{encode:Xw.function,serialize:Xw.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Qw.assertOptions(t,{baseUrl:Xw.spelling("baseURL"),withXsrfToken:Xw.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&$b.merge(o.common,o[t.method]);o&&$b.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=hw.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[qw.bind(this),void 0];for(e.unshift(...i),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=i.length;let f=t;for(;d<c;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=qw.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return Xb(kw((e=Ew(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};$b.forEach(["delete","get","head","options"],function(e){Zw.prototype[e]=function(t,n){return this.request(Ew(n||{},{method:e,url:t,data:(n||{}).data}))}}),$b.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ew(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Zw.prototype[e]=t(),Zw.prototype[e+"Form"]=t(!0)});const Jw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Jw).forEach(([e,t])=>{Jw[t]=e});const ex=function e(t){const n=new Zw(t),r=Zv(Zw.prototype.request,n);return $b.extend(r,Zw.prototype,n,{allOwnKeys:!0}),$b.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ew(t,n))},r}(lw);ex.Axios=Zw,ex.CanceledError=yw,ex.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new yw(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;const n=new e(function(e){t=e});return{token:n,cancel:t}}},ex.isCancel=gw,ex.VERSION=Yw,ex.toFormData=qb,ex.AxiosError=Hb,ex.Cancel=ex.CanceledError,ex.all=function(e){return Promise.all(e)},ex.spread=function(e){return function(t){return e.apply(null,t)}},ex.isAxiosError=function(e){return $b.isObject(e)&&!0===e.isAxiosError},ex.mergeConfig=Ew,ex.AxiosHeaders=hw,ex.formToJSON=e=>sw($b.isHTMLForm(e)?new FormData(e):e),ex.getAdapter=Uw.getAdapter,ex.HttpStatusCode=Jw,ex.default=ex;const{Axios:tx,AxiosError:nx,CanceledError:rx,isCancel:ox,CancelToken:ax,VERSION:ix,all:sx,Cancel:lx,isAxiosError:ux,spread:cx,toFormData:dx,AxiosHeaders:fx,HttpStatusCode:px,formToJSON:hx,getAdapter:mx,mergeConfig:gx}=ex,yx=e=>{e||console.warn("⚠️ No API key provided to createApiClient");const t=ex.create({baseURL:"https://biz.api.simpoocodes.com/api/v1/outbound",headers:{"Content-Type":"application/json","SIMPOO-API-KEY":e}});return t.interceptors.request.use(t=>(e&&t.headers&&(t.headers["SIMPOO-API-KEY"]=e),t),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,e=>(e.response?console.error("API Error:",e.response.status,e.response.data):console.error("Network or Axios Error:",e.message),Promise.reject(e))),t},vx=(e,t,n={})=>{const{apiKey:r}=Jn(),o=yx(r||"");return function(e){return Xn(e,Pn)}({queryKey:e,queryFn:()=>(async e=>{try{const{data:t}=await o.get(e);return t}catch(e){wx(e)}})(t),...n})},bx=(e={enableToast:!0},t,n)=>{const{enableToast:r,...o}=e,{apiKey:a}=Jn(),i=yx(a||"");return function(e){const t=qn(),[n]=D.useState(()=>new Vn(t,e));D.useEffect(()=>{n.setOptions(e)},[n,e]);const r=D.useSyncExternalStore(D.useCallback(e=>n.subscribe(wn.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=D.useCallback((e,t)=>{n.mutate(e,t).catch(Gt)},[n]);if(r.error&&gn(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}({mutationFn:async({url:e,payload:t})=>{const{data:n}=await i.post(e,t);return n},onSuccess(e,t,n){r&&Xv.success(e.message)},onError(e,t,n){console.log(e),wx(e)},...o})},wx=e=>{e?.response?(console.log("response data:",e.response.data),console.log("Status Code:",e.response.status),console.log("Status Text:",e.response.statusText),500===e.response.status?Xv.error("Something went wrong",{position:"top-right"}):e.response.data&&e.response.data.message&&Xv.error(`${e.response?.data?.message}`,{position:"top-right"})):(e.request,console.log(e?.message),Xv.error(`${e?.message}`,{position:"top-right"}))};function xx(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cx,Sx={exports:{}};var kx=(Cx||(Cx=1,function(e){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Gn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=g(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=h(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,o,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(o=t[r=b[n]])||(e[r]=o);return e}function C(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function k(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,a,i,l=[],u=arguments.length;for(a=0;a<u;a++){if(o="","object"==typeof arguments[a]){for(i in o+="\n["+a+"] ",arguments[0])s(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[a];l.push(o)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var E,j={};function N(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),j[e]||(k(t),j[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e){var t,n;for(n in e)s(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function T(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var D={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function I(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},z={};function $(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return I(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(A);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=H(r[t]);return function(t){var o,a="";for(o=0;o<n;o++)a+=O(r[o])?r[o].call(t,e):r[o];return a}}function B(e,t){return e.isValid()?(t=U(t,e.localeData()),L[t]=L[t]||V(t),L[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(A).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var Y="Invalid date";function G(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var o=this._relativeTime[n];return O(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ie,se=/\d/,le=/\d\d/,ue=/\d{3}/,ce=/\d{4}/,de=/[+-]?\d{6}/,fe=/\d\d?/,pe=/\d\d\d\d?/,he=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,ye=/[+-]?\d{1,6}/,ve=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ke=/^[1-9]\d?/,_e=/^([1-9]\d|\d)/;function Ee(e,t,n){ie[e]=O(t)?t:function(e,r){return e&&n?n:t}}function je(e,t){return s(ie,e)?ie[e](t._strict,t._locale):new RegExp(Ne(e))}function Ne(e){return Oe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function Oe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Re(t)),n}ie={};var Te={};function De(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=Pe(e)}),r=e.length,n=0;n<r;n++)Te[e[n]]=o}function Me(e,t){De(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function Ie(e,t,n){null!=t&&s(Te,e)&&Te[e](t,n._a,n,e)}function Ae(e){return e%4==0&&e%100!=0||e%400==0}var Fe=0,Le=1,ze=2,$e=3,He=4,Ve=5,Be=6,Ue=7,We=8;function qe(e){return Ae(e)?366:365}$("Y",0,0,function(){var e=this.year();return e<=9999?I(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),Ee("Y",be),Ee("YY",fe,le),Ee("YYYY",ge,ce),Ee("YYYYY",ye,de),Ee("YYYYYY",ye,de),De(["YYYYY","YYYYYY"],Fe),De("YYYY",function(e,t){t[Fe]=2===e.length?r.parseTwoDigitYear(e):Pe(e)}),De("YY",function(e,t){t[Fe]=r.parseTwoDigitYear(e)}),De("Y",function(e,t){t[Fe]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return Pe(e)+(Pe(e)>68?1900:2e3)};var Ye,Ge=Qe("FullYear",!0);function Ke(){return Ae(this.year())}function Qe(e,t){return function(n){return null!=n?(Ze(this,e,n),r.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ze(e,t,n){var r,o,a,i,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),s=29!==(s=e.date())||1!==i||Ae(a)?s:28,o?r.setUTCFullYear(a,i,s):r.setFullYear(a,i,s)}}function Je(e){return O(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"==typeof e){var n,r=ae(e=re(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?Ae(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ee("M",fe,ke),Ee("MM",fe,le),Ee("MMM",function(e,t){return t.monthsShortRegex(e)}),Ee("MMMM",function(e,t){return t.monthsRegex(e)}),De(["M","MM"],function(e,t){t[Le]=Pe(e)-1}),De(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Le]=o:g(n).invalidMonth=e});var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Se,st=Se;function lt(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ut(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Ye.call(this._shortMonthsParse,i))?o:null:-1!==(o=Ye.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=Ye.call(this._shortMonthsParse,i))||-1!==(o=Ye.call(this._longMonthsParse,i))?o:null:-1!==(o=Ye.call(this._longMonthsParse,i))||-1!==(o=Ye.call(this._shortMonthsParse,i))?o:null}function dt(e,t,n){var r,o,a;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Pe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Xe(this,"Month")}function ht(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r,o,a=[],i=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r=Oe(this.monthsShort(n,"")),o=Oe(this.months(n,"")),a.push(r),i.push(o),s.push(o),s.push(r);a.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,o);return s<=0?i=qe(a=e-1)+s:s>qe(e)?(a=e+1,i=s-qe(e)):(a=e,i=s),{year:a,dayOfYear:i}}function Ct(e,t,n){var r,o,a=wt(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+St(o=e.year()-1,t,n):i>St(e.year(),t,n)?(r=i-St(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function St(e,t,n){var r=wt(e,t,n),o=wt(e+1,t,n);return(qe(e)-r+o)/7}function kt(e){return Ct(e,this._week.dow,this._week.doy).week}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),Ee("w",fe,ke),Ee("ww",fe,le),Ee("W",fe,ke),Ee("WW",fe,le),Me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Pe(e)});var _t={dow:0,doy:6};function Et(){return this._week.dow}function jt(){return this._week.doy}function Nt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Rt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Tt(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),Ee("d",fe),Ee("e",fe),Ee("E",fe),Ee("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ee("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e}),Me(["d","e","E"],function(e,t,n,r){t[r]=Pe(e)});var Dt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),At=Se,Ft=Se,Lt=Se;function zt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Tt(n,this._week.dow):e?n[e.day()]:n}function $t(e){return!0===e?Tt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Tt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Ye.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=Ye.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=Ye.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=Ye.call(this._weekdaysParse,i))||-1!==(o=Ye.call(this._shortWeekdaysParse,i))||-1!==(o=Ye.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=Ye.call(this._shortWeekdaysParse,i))||-1!==(o=Ye.call(this._weekdaysParse,i))||-1!==(o=Ye.call(this._minWeekdaysParse,i))?o:null:-1!==(o=Ye.call(this._minWeekdaysParse,i))||-1!==(o=Ye.call(this._weekdaysParse,i))||-1!==(o=Ye.call(this._shortWeekdaysParse,i))?o:null}function Bt(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=Rt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=At),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Oe(this.weekdaysMin(n,"")),o=Oe(this.weekdaysShort(n,"")),a=Oe(this.weekdays(n,"")),i.push(r),s.push(o),l.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function Jt(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Xt),$("k",["kk",2],0,Zt),$("hmm",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),Ee("a",en),Ee("A",en),Ee("H",fe,_e),Ee("h",fe,ke),Ee("k",fe,ke),Ee("HH",fe,le),Ee("hh",fe,le),Ee("kk",fe,le),Ee("hmm",pe),Ee("hmmss",he),Ee("Hmm",pe),Ee("Hmmss",he),De(["H","HH"],$e),De(["k","kk"],function(e,t,n){var r=Pe(e);t[$e]=24===r?0:r}),De(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),De(["h","hh"],function(e,t,n){t[$e]=Pe(e),g(n).bigHour=!0}),De("hmm",function(e,t,n){var r=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r)),g(n).bigHour=!0}),De("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r,2)),t[Ve]=Pe(e.substr(o)),g(n).bigHour=!0}),De("Hmm",function(e,t,n){var r=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r))}),De("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r,2)),t[Ve]=Pe(e.substr(o))});var nn=/[ap]\.?m?\.?/i,rn=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:D,longDateFormat:W,invalidDate:Y,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:rt,monthsShort:ot,week:_t,weekdays:Dt,weekdaysMin:It,weekdaysShort:Mt,meridiemParse:nn},ln={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=dn(e[a]).split("-")).length,n=(n=dn(e[a+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(o,n)>=t-1)break;t--}a++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function hn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,xx("./locale/"+t),mn(n)}catch(e){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=u(t)?vn(e):gn(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new T(P(r,t)),un[e]&&un[e].forEach(function(e){gn(e.name,e.config)}),mn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,o=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(P(ln[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=P(o,t),null==r&&(t.abbr=e),(n=new T(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!a(e)){if(t=hn(e))return t;e=[e]}return fn(e)}function bn(){return E(ln)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Le]<0||n[Le]>11?Le:n[ze]<1||n[ze]>nt(n[Fe],n[Le])?ze:n[$e]<0||n[$e]>24||24===n[$e]&&(0!==n[He]||0!==n[Ve]||0!==n[Be])?$e:n[He]<0||n[He]>59?He:n[Ve]<0||n[Ve]>59?Ve:n[Be]<0||n[Be]>999?Be:-1,g(e)._overflowDayOfYear&&(t<Fe||t>ze)&&(t=ze),g(e)._overflowWeeks&&-1===t&&(t=Ue),g(e)._overflowWeekday&&-1===t&&(t=We),g(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,kn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_n=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,jn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(e){var t,n,r,o,a,i,s=e._i,l=xn.exec(s)||Cn.exec(s),u=kn.length,c=_n.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(kn[t][1].exec(l[1])){o=kn[t][0],r=!1!==kn[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(_n[t][1].exec(l[3])){a=(l[2]||" ")+_n[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Sn.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Hn(e)}else e._isValid=!1}function Rn(e,t,n,r,o,a){var i=[Pn(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Tn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dn(e,t,n){return!e||Mt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Mn(e,t,n){if(e)return Nn[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function In(e){var t,n=jn.exec(Tn(e._i));if(n){if(t=Rn(n[4],n[3],n[2],n[5],n[6],n[7]),!Dn(n[1],t,e))return;e._a=t,e._tzm=Mn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function An(e){var t=En.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,In(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fn(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,o,a,i=[];if(!e._d){for(r=Ln(e),e._w&&null==e._a[ze]&&null==e._a[Le]&&$n(e),null!=e._dayOfYear&&(a=Fn(e._a[Fe],r[Fe]),(e._dayOfYear>qe(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[Le]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[$e]&&0===e._a[He]&&0===e._a[Ve]&&0===e._a[Be]&&(e._nextDay=!0,e._a[$e]=0),e._d=(e._useUTC?bt:vt).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function $n(e){var t,n,r,o,a,i,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=Fn(t.GG,e._a[Fe],Ct(Kn(),1,4).year),r=Fn(t.W,1),((o=Fn(t.E,1))<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Ct(Kn(),a,i),n=Fn(t.gg,e._a[Fe],u.year),r=Fn(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),r<1||r>St(n,a,i)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=xt(n,r,o,a,i),e._a[Fe]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,a,i,s,l,u=""+e._i,c=u.length,d=0;for(l=(o=U(e._f,e._locale).match(A)||[]).length,t=0;t<l;t++)a=o[t],(n=(u.match(je(a,e))||[])[0])&&((i=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(i),u=u.slice(u.indexOf(n)+n.length),d+=n.length),z[a]?(n?g(e).empty=!1:g(e).unusedTokens.push(a),Ie(a,n,e)):e._strict&&!n&&g(e).unusedTokens.push(a);g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),e._a[$e]<=12&&!0===g(e).bigHour&&e._a[$e]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[$e]=Vn(e._locale,e._a[$e],e._meridiem),null!==(s=g(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(s,e._a[Fe])),zn(e),wn(e)}else In(e);else On(e)}function Vn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,o,a,i,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)a=0,i=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Hn(t),y(t)&&(i=!0),a+=g(t).charsLeftOver,a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));p(e,n||t)}function Un(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),zn(e)}}function Wn(e){var t=new C(wn(qn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new C(wn(t)):(d(t)?e._d=t:a(n)?Bn(e):n?Hn(e):Yn(e),y(e)||(e._d=null),e))}function Yn(e){var t=e._i;u(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?An(e):a(t)?(e._a=f(t.slice(0),function(e){return parseInt(e,10)}),zn(e)):i(t)?Un(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Gn(e,t,n,r,o){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Wn(s)}function Kn(e,t,n,r){return Gn(e,t,n,r,!1)}r.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Xn=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Zn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Zn("isBefore",[].slice.call(arguments,0))}function er(){return Zn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(s(e,t)&&(-1===Ye.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==Pe(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Nr(NaN)}function ir(e){var t=re(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ir}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)Pe(e[r])!==Pe(t[r])&&i++;return i+a}function cr(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)})}cr("Z",":"),cr("ZZ",""),Ee("Z",xe),Ee("ZZ",xe),De(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=fr(xe,e)});var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+Pe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(S(e)||d(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Kn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(xe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=hr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==e&&(!t||this._changeInProgress?Dr(this,Nr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:hr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=qn(t))._a?(e=t._isUTC?h(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function kr(){return!!this.isValid()&&this._isUTC}function _r(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nr(e,t){var n,r,o,a=e,i=null;return sr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Er.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:Pe(i[ze])*n,h:Pe(i[$e])*n,m:Pe(i[He])*n,s:Pe(i[Ve])*n,ms:Pe(lr(1e3*i[Be]))*n}):(i=jr.exec(e))?(n="-"===i[1]?-1:1,a={y:Or(i[2],n),M:Or(i[3],n),w:Or(i[4],n),d:Or(i[5],n),h:Or(i[6],n),m:Or(i[7],n),s:Or(i[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Pr(Kn(a.from),Kn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),r=new ir(a),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Rr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Rr(e,t):((n=Rr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Dr(this,Nr(n,r),e),this}}function Dr(e,t,n,o){var a=t._milliseconds,i=lr(t._days),s=lr(t._months);e.isValid()&&(o=null==o||o,s&&ft(e,Xe(e,"Month")+s*n),i&&Ze(e,"Date",Xe(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),o&&r.updateOffset(e,i||s))}Nr.fn=ir.prototype,Nr.invalid=ar;var Mr=Tr(1,"add"),Ir=Tr(-1,"subtract");function Ar(e){return"string"==typeof e||e instanceof String}function Fr(e){return S(e)||d(e)||Ar(e)||c(e)||zr(e)||Lr(e)||null==e}function Lr(e){var t,n,r=i(e)&&!l(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=a.length;for(t=0;t<u;t+=1)n=a[t],o=o||s(e,n);return r&&o}function zr(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&Ar(e)}).length),t&&n}function $r(e){var t,n,r=i(e)&&!l(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],o=o||s(e,n);return r&&o}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(e,t){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(e=arguments[0],t=void 0):$r(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),o=pr(n,this).startOf("day"),a=r.calendarFormat(this,o)||"sameElse",i=t&&(O(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Kn(n)))}function Br(){return new C(this)}function Ur(e,t){var n=S(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=S(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function qr(e,t,n,r){var o=S(e)?e:Kn(e),a=S(t)?t:Kn(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Yr(e,t){var n,r=S(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":a=Xr(this,r)/12;break;case"month":a=Xr(this,r);break;case"quarter":a=Xr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:Re(a)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(S(e)&&e.isValid()||Kn(e).isValid())?Nr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Kn(),e)}function oo(e,t){return this.isValid()&&(S(e)&&e.isValid()||Kn(e).isValid())?Nr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.to(Kn(),e)}function io(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function lo(){return this._locale}var uo=1e3,co=60*uo,fo=60*co,po=3506328*fo;function ho(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-po:new Date(e,t,n).valueOf()}function go(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-po:Date.UTC(e,t,n)}function yo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ho(t+(this._isUTC?0:this.utcOffset()*co),fo);break;case"minute":t=this._d.valueOf(),t-=ho(t,co);break;case"second":t=this._d.valueOf(),t-=ho(t,uo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fo-ho(t+(this._isUTC?0:this.utcOffset()*co),fo)-1;break;case"minute":t=this._d.valueOf(),t+=co-ho(t,co)-1;break;case"second":t=this._d.valueOf(),t+=uo-ho(t,uo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bo(){return this._d.valueOf()-6e4*(this._offset||0)}function wo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function Co(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function So(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ko(){return this.isValid()?this.toISOString():null}function _o(){return y(this)}function Eo(){return p({},g(this))}function jo(){return g(this).overflow}function No(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oo(e,t){var n,o,a,i=this._eras||vn("en")._eras;for(n=0,o=i.length;n<o;++n)switch("string"==typeof i[n].since&&(a=r(i[n].since).startOf("day"),i[n].since=a.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=r(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf()}return i}function Ro(e,t,n){var r,o,a,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(a=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([a,i,s].indexOf(e)>=0)return l[r]}function Po(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function To(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Do(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Mo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Io(){var e,t,n,o,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,o=this.clone().startOf("day").valueOf(),a[e].since<=o&&o<=a[e].until||a[e].until<=o&&o<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Ao(e){return s(this,"_erasNameRegex")||Bo.call(this),e?this._erasNameRegex:this._erasRegex}function Fo(e){return s(this,"_erasAbbrRegex")||Bo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Lo(e){return s(this,"_erasNarrowRegex")||Bo.call(this),e?this._erasNarrowRegex:this._erasRegex}function zo(e,t){return t.erasAbbrRegex(e)}function $o(e,t){return t.erasNameRegex(e)}function Ho(e,t){return t.erasNarrowRegex(e)}function Vo(e,t){return t._eraYearOrdinalRegex||ve}function Bo(){var e,t,n,r,o,a=[],i=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=Oe(u[e].name),r=Oe(u[e].abbr),o=Oe(u[e].narrow),i.push(n),a.push(r),s.push(o),l.push(n),l.push(r),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Uo(e,t){$(0,[e,e.length],0,t)}function Wo(e){return Xo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function qo(e){return Xo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Yo(){return St(this.year(),1,4)}function Go(){return St(this.isoWeekYear(),1,4)}function Ko(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Qo(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Xo(e,t,n,r,o){var a;return null==e?Ct(this,r,o).year:(t>(a=St(e,r,o))&&(t=a),Zo.call(this,e,t,n,r,o))}function Zo(e,t,n,r,o){var a=xt(e,t,n,r,o),i=bt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Jo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Ee("N",zo),Ee("NN",zo),Ee("NNN",zo),Ee("NNNN",$o),Ee("NNNNN",Ho),De(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e}),Ee("y",ve),Ee("yy",ve),Ee("yyy",ve),Ee("yyyy",ve),Ee("yo",Vo),De(["y","yy","yyy","yyyy"],Fe),De(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Fe]=n._locale.eraYearOrdinalParse(e,o):t[Fe]=parseInt(e,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Uo("gggg","weekYear"),Uo("ggggg","weekYear"),Uo("GGGG","isoWeekYear"),Uo("GGGGG","isoWeekYear"),Ee("G",be),Ee("g",be),Ee("GG",fe,le),Ee("gg",fe,le),Ee("GGGG",ge,ce),Ee("gggg",ge,ce),Ee("GGGGG",ye,de),Ee("ggggg",ye,de),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Pe(e)}),Me(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),Ee("Q",se),De("Q",function(e,t){t[Le]=3*(Pe(e)-1)}),$("D",["DD",2],"Do","date"),Ee("D",fe,ke),Ee("DD",fe,le),Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),De(["D","DD"],ze),De("Do",function(e,t){t[ze]=Pe(e.match(fe)[0])});var ea=Qe("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}$("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",me),Ee("DDDD",ue),De(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Pe(e)}),$("m",["mm",2],0,"minute"),Ee("m",fe,_e),Ee("mm",fe,le),De(["m","mm"],He);var na=Qe("Minutes",!1);$("s",["ss",2],0,"second"),Ee("s",fe,_e),Ee("ss",fe,le),De(["s","ss"],Ve);var ra,oa,aa=Qe("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ee("S",me,se),Ee("SS",me,le),Ee("SSS",me,ue),ra="SSSS";ra.length<=9;ra+="S")Ee(ra,ve);function ia(e,t){t[Be]=Pe(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")De(ra,ia);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}oa=Qe("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var ua=C.prototype;function ca(e){return Kn(1e3*e)}function da(){return Kn.apply(null,arguments).parseZone()}function fa(e){return e}ua.add=Mr,ua.calendar=Vr,ua.clone=Br,ua.diff=Qr,ua.endOf=vo,ua.format=to,ua.from=no,ua.fromNow=ro,ua.to=oo,ua.toNow=ao,ua.get=Je,ua.invalidAt=jo,ua.isAfter=Ur,ua.isBefore=Wr,ua.isBetween=qr,ua.isSame=Yr,ua.isSameOrAfter=Gr,ua.isSameOrBefore=Kr,ua.isValid=_o,ua.lang=so,ua.locale=io,ua.localeData=lo,ua.max=Xn,ua.min=Qn,ua.parsingFlags=Eo,ua.set=et,ua.startOf=yo,ua.subtract=Ir,ua.toArray=Co,ua.toObject=So,ua.toDate=xo,ua.toISOString=Jr,ua.inspect=eo,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=ko,ua.toString=Zr,ua.unix=wo,ua.valueOf=bo,ua.creationData=No,ua.eraName=To,ua.eraNarrow=Do,ua.eraAbbr=Mo,ua.eraYear=Io,ua.year=Ge,ua.isLeapYear=Ke,ua.weekYear=Wo,ua.isoWeekYear=qo,ua.quarter=ua.quarters=Jo,ua.month=pt,ua.daysInMonth=ht,ua.week=ua.weeks=Nt,ua.isoWeek=ua.isoWeeks=Ot,ua.weeksInYear=Ko,ua.weeksInWeekYear=Qo,ua.isoWeeksInYear=Yo,ua.isoWeeksInISOWeekYear=Go,ua.date=ea,ua.day=ua.days=Ut,ua.weekday=Wt,ua.isoWeekday=qt,ua.dayOfYear=ta,ua.hour=ua.hours=rn,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=oa,ua.utcOffset=mr,ua.utc=yr,ua.local=vr,ua.parseZone=br,ua.hasAlignedHourOffset=wr,ua.isDST=xr,ua.isLocal=Sr,ua.isUtcOffset=kr,ua.isUtc=_r,ua.isUTC=_r,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=_("dates accessor is deprecated. Use date instead.",ea),ua.months=_("months accessor is deprecated. Use month instead",pt),ua.years=_("years accessor is deprecated. Use year instead",Ge),ua.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cr);var pa=T.prototype;function ha(e,t,n,r){var o=vn(),a=h().set(r,t);return o[n](a,e)}function ma(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return ha(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ha(e,r,n,"month");return o}function ga(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,a=vn(),i=e?a._week.dow:0,s=[];if(null!=n)return ha(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=ha(t,(o+i)%7,r,"day");return s}function ya(e,t){return ma(e,t,"months")}function va(e,t){return ma(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function xa(e,t,n){return ga(e,t,n,"weekdaysMin")}pa.calendar=M,pa.longDateFormat=q,pa.invalidDate=G,pa.ordinal=X,pa.preparse=fa,pa.postformat=fa,pa.relativeTime=J,pa.pastFuture=ee,pa.set=R,pa.eras=Oo,pa.erasParse=Ro,pa.erasConvertYear=Po,pa.erasAbbrRegex=Fo,pa.erasNameRegex=Ao,pa.erasNarrowRegex=Lo,pa.months=lt,pa.monthsShort=ut,pa.monthsParse=dt,pa.monthsRegex=gt,pa.monthsShortRegex=mt,pa.week=kt,pa.firstDayOfYear=jt,pa.firstDayOfWeek=Et,pa.weekdays=zt,pa.weekdaysMin=Ht,pa.weekdaysShort=$t,pa.weekdaysParse=Bt,pa.weekdaysRegex=Yt,pa.weekdaysShortRegex=Gt,pa.weekdaysMinRegex=Kt,pa.isPM=tn,pa.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",vn);var Ca=Math.abs;function Sa(){var e=this._data;return this._milliseconds=Ca(this._milliseconds),this._days=Ca(this._days),this._months=Ca(this._months),e.milliseconds=Ca(e.milliseconds),e.seconds=Ca(e.seconds),e.minutes=Ca(e.minutes),e.hours=Ca(e.hours),e.months=Ca(e.months),e.years=Ca(e.years),this}function ka(e,t,n,r){var o=Nr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _a(e,t){return ka(this,e,t,1)}function Ea(e,t){return ka(this,e,t,-1)}function ja(e){return e<0?Math.floor(e):Math.ceil(e)}function Na(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*ja(Ra(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=Re(a/1e3),l.seconds=e%60,t=Re(e/60),l.minutes=t%60,n=Re(t/60),l.hours=n%24,i+=Re(n/24),s+=o=Re(Oa(i)),i-=ja(Ra(o)),r=Re(s/12),s%=12,l.days=i,l.months=s,l.years=r,this}function Oa(e){return 4800*e/146097}function Ra(e){return 146097*e/4800}function Pa(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oa(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ra(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ta(e){return function(){return this.as(e)}}var Da=Ta("ms"),Ma=Ta("s"),Ia=Ta("m"),Aa=Ta("h"),Fa=Ta("d"),La=Ta("w"),za=Ta("M"),$a=Ta("Q"),Ha=Ta("y"),Va=Da;function Ba(){return Nr(this)}function Ua(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var qa=Wa("milliseconds"),Ya=Wa("seconds"),Ga=Wa("minutes"),Ka=Wa("hours"),Qa=Wa("days"),Xa=Wa("months"),Za=Wa("years");function Ja(){return Re(this.days()/7)}var ei=Math.round,ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ri(e,t,n,r){var o=Nr(e).abs(),a=ei(o.as("s")),i=ei(o.as("m")),s=ei(o.as("h")),l=ei(o.as("d")),u=ei(o.as("M")),c=ei(o.as("w")),d=ei(o.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,ni.apply(null,f)}function oi(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ai(e,t){return void 0!==ti[e]&&(void 0===t?ti[e]:(ti[e]=t,"s"===e&&(ti.ss=t-1),!0))}function ii(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ti;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},ti,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=ri(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var si=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ui(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,l=si(this._milliseconds)/1e3,u=si(this._days),c=si(this._months),d=this.asSeconds();return d?(e=Re(l/60),t=Re(e/60),l%=60,e%=60,n=Re(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=li(this._months)!==li(d)?"-":"",i=li(this._days)!==li(d)?"-":"",s=li(this._milliseconds)!==li(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ci=ir.prototype;return ci.isValid=or,ci.abs=Sa,ci.add=_a,ci.subtract=Ea,ci.as=Pa,ci.asMilliseconds=Da,ci.asSeconds=Ma,ci.asMinutes=Ia,ci.asHours=Aa,ci.asDays=Fa,ci.asWeeks=La,ci.asMonths=za,ci.asQuarters=$a,ci.asYears=Ha,ci.valueOf=Va,ci._bubble=Na,ci.clone=Ba,ci.get=Ua,ci.milliseconds=qa,ci.seconds=Ya,ci.minutes=Ga,ci.hours=Ka,ci.days=Qa,ci.weeks=Ja,ci.months=Xa,ci.years=Za,ci.humanize=ii,ci.toISOString=ui,ci.toString=ui,ci.toJSON=ui,ci.locale=io,ci.localeData=lo,ci.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ui),ci.lang=so,$("X",0,0,"unix"),$("x",0,0,"valueOf"),Ee("x",be),Ee("X",Ce),De("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),De("x",function(e,t,n){n._d=new Date(Pe(e))}),
|
|
139
|
+
`,Wy=D.forwardRef(function(e,t){const n=Sy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[s,l]=D.useState([]),u=D.useRef(0),c=D.useRef(null);D.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=D.useRef(!1),f=Ly(),p=D.useRef(null),h=D.useRef(null),g=D.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;l(e=>[...e,m.jsx(Uy,{classes:{ripple:Jr(o.ripple,zy.ripple),rippleVisible:Jr(o.rippleVisible,zy.rippleVisible),ripplePulsate:Jr(o.ripplePulsate,zy.ripplePulsate),child:Jr(o.child,zy.child),childLeaving:Jr(o.childLeaving,zy.childLeaving),childPulsate:Jr(o.childPulsate,zy.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)]),u.current+=1,c.current=i},[o]),y=D.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,m;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(a)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;m=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},[r,g,f]),v=D.useCallback(()=>{y({},{pulsate:!0})},[y]),b=D.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void f.start(0,()=>{b(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return D.useImperativeHandle(t,()=>({pulsate:v,start:y,stop:b}),[v,y,b]),m.jsx(By,{className:Jr(zy.root,o.root,a),ref:h,...i,children:m.jsx(Iy,{component:null,exit:!0,children:s})})});function qy(e){return yf("MuiButtonBase",e)}const Yy=vf("MuiButtonBase",["root","disabled","focusVisible"]),Gy=Cy("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Yy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ky=D.forwardRef(function(e,t){const n=Sy({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:h,onClick:g,onContextMenu:y,onDragLeave:v,onFocus:b,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:S,onMouseLeave:k,onMouseUp:_,onTouchEnd:E,onTouchMove:j,onTouchStart:N,tabIndex:O=0,TouchRippleProps:R,touchRippleRef:P,type:T,...M}=n,I=D.useRef(null),A=Ny.use(),F=ky(A.ref,P),[L,z]=D.useState(!1);l&&L&&z(!1),D.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),I.current.focus()}}),[]);const $=A.shouldMount&&!u&&!l;D.useEffect(()=>{L&&d&&!u&&A.pulsate()},[u,d,L,A]);const H=Qy(A,"start",S,c),V=Qy(A,"stop",y,c),B=Qy(A,"stop",v,c),U=Qy(A,"stop",_,c),W=Qy(A,"stop",e=>{L&&e.preventDefault(),k&&k(e)},c),q=Qy(A,"start",N,c),Y=Qy(A,"stop",E,c),G=Qy(A,"stop",j,c),K=Qy(A,"stop",e=>{kf(e.target)||z(!1),h&&h(e)},!1),Q=_y(e=>{I.current||(I.current=e.currentTarget),kf(e.target)&&(z(!0),w&&w(e)),b&&b(e)}),X=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},Z=_y(e=>{d&&!e.repeat&&L&&" "===e.key&&A.stop(e,()=>{A.start(e)}),e.target===e.currentTarget&&X()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&X()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))}),J=_y(e=>{d&&" "===e.key&&L&&!e.defaultPrevented&&A.stop(e,()=>{A.pulsate(e)}),C&&C(e),g&&e.target===e.currentTarget&&X()&&" "===e.key&&!e.defaultPrevented&&g(e)});let ee=s;"button"===ee&&(M.href||M.to)&&(ee=p);const te={};if("button"===ee){const e=!!M.formAction;te.type=void 0!==T||e?T:"button",te.disabled=l}else M.href||M.to||(te.role="button"),l&&(te["aria-disabled"]=l);const ne=ky(t,I),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:O,focusVisible:L},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=pf({root:["root",t&&"disabled",n&&"focusVisible"]},qy,o);return n&&r&&(a.root+=` ${r}`),a})(re);return m.jsxs(Gy,{as:ee,className:Jr(oe.root,i),ownerState:re,onBlur:K,onClick:g,onContextMenu:V,onFocus:Q,onKeyDown:Z,onKeyUp:J,onMouseDown:H,onMouseLeave:W,onMouseUp:U,onDragLeave:B,onTouchEnd:Y,onTouchMove:G,onTouchStart:q,ref:ne,tabIndex:l?-1:O,type:T,...te,...M,children:[a,$?m.jsx(Wy,{ref:F,center:o,...R}):null]})});function Qy(e,t,n,r=!1){return _y(o=>(n&&n(o),r||e[t](o),!0))}function Xy(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}const Zy=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(tg.theme=r.theme,o=Om(e(tg)),t=o,n=r.theme),o}};function Jy(e){return yf("MuiSvgIcon",e)}vf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ev=Cy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ef(n.color)}`],t[`fontSize${Ef(n.fontSize)}`]]}})(Zy(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),tv=D.forwardRef(function(e,t){const n=Sy({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...f}=n,p=D.isValidElement(r)&&"svg"===r.type,h={...n,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},g={};u||(g.viewBox=d);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return pf({root:["root","inherit"!==t&&`color${Ef(t)}`,`fontSize${Ef(n)}`]},Jy,r)})(h);return m.jsxs(ev,{as:i,className:Jr(y.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...g,...f,...p&&r.props,ownerState:h,children:[p?r.props.children:r,c?m.jsx("title",{children:c}):null]})});function nv(e,t){function n(t,n){return m.jsx(tv,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=tv.muiName,D.memo(D.forwardRef(n))}tv.muiName="SvgIcon";var rv=nv(m.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),ov=nv(m.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),av=nv(m.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),iv=nv(m.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));function sv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function lv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Jr(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...o,...r}),s=sv(r),l=sv(o),u=t(i),c=Jr(u?.className,n?.className,a,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},f={...u,...n,...l,...s};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function uv(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=c[e]||r,h=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:m,...g},internalRef:y}=lv({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),v=ky(y,h?.ref,t.ref),b="root"===e?m||u:m,w=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&i,..."root"!==e&&!c[e]&&i,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},o);return[p,w]}const cv=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ef(n.size)}`],"text"===n.variant&&t[`text${Ef(n.color)}`],"outlined"===n.variant&&t[`outlined${Ef(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},dv=Cy("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:cv})(Zy(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),fv=Cy(Ky,{name:"MuiPaginationItem",slot:"Root",overridesResolver:cv})(Zy(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sf.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Sf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${Sf.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${Sf.selected}`]:{[`&.${Sf.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Sf.selected}`]:{[`&.${Sf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Xy(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Sf.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Sf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Xy(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Sf.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),pv=Cy("div",{name:"MuiPaginationItem",slot:"Icon"})(Zy(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),hv=D.forwardRef(function(e,t){const n=Sy({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:a,components:i={},disabled:s=!1,page:l,selected:u=!1,shape:c="circular",size:d="medium",slots:f={},slotProps:p={},type:h="page",variant:g="text",...y}=n,v={...n,color:o,disabled:s,selected:u,shape:c,size:d,type:h,variant:g},b=D.useContext(xf)??!1,w=(e=>{const{classes:t,color:n,disabled:r,selected:o,size:a,shape:i,type:s,variant:l}=e;return pf({root:["root",`size${Ef(a)}`,l,i,"standard"!==n&&`color${Ef(n)}`,"standard"!==n&&`${l}${Ef(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]},Cf,t)})(v),x={slots:{previous:f.previous??i.previous,next:f.next??i.next,first:f.first??i.first,last:f.last??i.last},slotProps:p},[C,S]=uv("previous",{elementType:av,externalForwardedProps:x,ownerState:v}),[k,_]=uv("next",{elementType:iv,externalForwardedProps:x,ownerState:v}),[E,j]=uv("first",{elementType:rv,externalForwardedProps:x,ownerState:v}),[N,O]=uv("last",{elementType:ov,externalForwardedProps:x,ownerState:v}),R=b?{previous:"next",next:"previous",first:"last",last:"first"}[h]:h,P={previous:C,next:k,first:E,last:N}[R],T={previous:S,next:_,first:j,last:O}[R];return"start-ellipsis"===h||"end-ellipsis"===h?m.jsx(dv,{ref:t,ownerState:v,className:Jr(w.root,r),children:"…"}):m.jsxs(fv,{ref:t,ownerState:v,component:a,disabled:s,className:Jr(w.root,r),...y,children:["page"===h&&l,P?m.jsx(pv,{...T,className:w.icon,as:P}):null]})}),mv=Cy("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),gv=Cy("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function yv(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const vv=D.forwardRef(function(e,t){const n=Sy({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:a="standard",count:i=1,defaultPage:s=1,disabled:l=!1,getItemAriaLabel:u=yv,hideNextButton:c=!1,hidePrevButton:d=!1,onChange:f,page:p,renderItem:h=e=>m.jsx(hv,{...e}),shape:g="circular",showFirstButton:y=!1,showLastButton:v=!1,siblingCount:b=1,size:w="medium",variant:x="text",...C}=n,{items:S}=wf({...n,componentName:"Pagination"}),k={...n,boundaryCount:r,color:a,count:i,defaultPage:s,disabled:l,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:h,shape:g,showFirstButton:y,showLastButton:v,siblingCount:b,size:w,variant:x},_=(e=>{const{classes:t,variant:n}=e;return pf({root:["root",n],ul:["ul"]},bf,t)})(k);return m.jsx(mv,{"aria-label":"pagination navigation",className:Jr(_.root,o),ownerState:k,ref:t,...C,children:m.jsx(gv,{className:_.ul,ownerState:k,children:S.map((e,t)=>m.jsx("li",{children:h({...e,color:a,"aria-label":u(e.type,e.page,e.selected),shape:g,size:w,variant:x})},t))})})}),bv={arrow:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M8.65833 15.7667C8.54866 15.7673 8.43994 15.7463 8.33841 15.7048C8.23688 15.6634 8.14453 15.6023 8.06667 15.525C7.91146 15.3689 7.82434 15.1577 7.82434 14.9375C7.82434 14.7174 7.91146 14.5062 8.06667 14.35L12.4083 10L8.06667 5.65004C7.93014 5.49062 7.85881 5.28556 7.86691 5.07583C7.87501 4.8661 7.96195 4.66715 8.11036 4.51874C8.25878 4.37032 8.45773 4.28338 8.66746 4.27528C8.87719 4.26718 9.08225 4.33852 9.24167 4.47504L14.1667 9.40837C14.2439 9.48624 14.305 9.57859 14.3465 9.68012C14.3879 9.78165 14.409 9.89037 14.4083 10C14.4053 10.2207 14.3189 10.432 14.1667 10.5917L9.225 15.525C9.07391 15.675 8.87116 15.7615 8.65833 15.7667Z",fill:"#A1A5B7"})}),info_input:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M10 18.3332C14.6024 18.3332 18.3333 14.6022 18.3333 9.99984C18.3333 5.39746 14.6024 1.6665 10 1.6665C5.39763 1.6665 1.66667 5.39746 1.66667 9.99984C1.66667 14.6022 5.39763 18.3332 10 18.3332Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 8.83301C10.221 8.83301 10.433 8.9208 10.5893 9.07708C10.7455 9.23337 10.8333 9.44533 10.8333 9.66634V13.5497C10.8333 13.7707 10.7455 13.9826 10.5893 14.1389C10.433 14.2952 10.221 14.383 10 14.383C9.77899 14.383 9.56703 14.2952 9.41075 14.1389C9.25447 13.9826 9.16667 13.7707 9.16667 13.5497V9.66634C9.16667 9.44533 9.25447 9.23337 9.41075 9.07708C9.56703 8.9208 9.77899 8.83301 10 8.83301Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 7.70003C10.5753 7.70003 11.0417 7.23366 11.0417 6.65837C11.0417 6.08307 10.5753 5.6167 10 5.6167C9.42471 5.6167 8.95834 6.08307 8.95834 6.65837C8.95834 7.23366 9.42471 7.70003 10 7.70003Z",fill:"#1868DB"})]}),cube:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.90996 21.67L4.66996 18.67C4.02642 18.2997 3.4934 17.7643 3.12598 17.1192C2.75856 16.474 2.57006 15.7424 2.57996 15V9C2.57541 8.26267 2.76644 7.53731 3.13359 6.89787C3.50075 6.25843 4.03088 5.72778 4.66996 5.36L9.90996 2.36C10.5447 1.99116 11.2658 1.79688 12 1.79688C12.7341 1.79688 13.4552 1.99116 14.09 2.36L19.33 5.36C19.969 5.72778 20.4992 6.25843 20.8663 6.89787C21.2335 7.53731 21.4245 8.26267 21.42 9V15C21.4192 15.7323 21.2257 16.4514 20.8588 17.0851C20.4919 17.7188 19.9646 18.2448 19.33 18.61L14.09 21.61C13.4605 21.988 12.7422 22.1927 12.008 22.2032C11.2739 22.2137 10.55 22.0298 9.90996 21.67Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M20.8599 6.89C20.4965 6.2519 19.968 5.7234 19.3299 5.36L14.0899 2.36C13.4551 1.99116 12.734 1.79688 11.9999 1.79688C11.2657 1.79688 10.5447 1.99116 9.90989 2.36L4.66989 5.36C4.03179 5.7234 3.5033 6.2519 3.13989 6.89L11.9999 12L20.8599 6.89Z",fill:"#1868DB"}),m.jsx("path",{d:"M20.85 6.89014L12 12.0001L12.13 22.2201C12.8324 22.2082 13.5203 22.019 14.13 21.6701L19.37 18.6701C20.0061 18.2948 20.5311 17.7572 20.8913 17.1124C21.2515 16.4675 21.4339 15.7386 21.42 15.0001V9.00014C21.4215 8.25857 21.2247 7.53009 20.85 6.89014Z",fill:"#1868DB"})]}),magnifier:m.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M19.7083 17.8015L16.8025 15.0515C16.25 15.7628 15.5878 16.3817 14.8408 16.8848L17.8292 19.7265C17.9548 19.8733 18.1102 19.9917 18.285 20.074C18.4598 20.1563 18.6501 20.2005 18.8432 20.2038C19.0364 20.2071 19.2281 20.1694 19.4056 20.0932C19.5832 20.017 19.7425 19.9039 19.8731 19.7615C20.0037 19.6192 20.1026 19.4507 20.1633 19.2673C20.224 19.0839 20.2451 18.8897 20.2252 18.6975C20.2053 18.5053 20.1449 18.3195 20.0479 18.1525C19.9509 17.9854 19.8195 17.8408 19.6625 17.7282L19.7083 17.8015Z",fill:"#7E8299"}),m.jsx("path",{d:"M10.2117 1.83325C8.57998 1.83325 6.98492 2.31711 5.62822 3.22363C4.27151 4.13015 3.21409 5.41862 2.58967 6.92611C1.96524 8.4336 1.80187 10.0924 2.1202 11.6927C2.43852 13.2931 3.22426 14.7631 4.37804 15.9169C5.53183 17.0707 7.00183 17.8564 8.60218 18.1747C10.2025 18.4931 11.8613 18.3297 13.3688 17.7053C14.8763 17.0808 16.1648 16.0234 17.0713 14.6667C17.9778 13.31 18.4617 11.7149 18.4617 10.0833C18.4617 7.89522 17.5925 5.7968 16.0453 4.24962C14.4981 2.70245 12.3997 1.83325 10.2117 1.83325ZM10.2117 15.9133C9.06081 15.9132 7.93578 15.5721 6.97875 14.9329C6.02172 14.2937 5.27564 13.3851 4.83481 12.3221C4.39397 11.259 4.27817 10.0891 4.50202 8.9602C4.72588 7.83132 5.27935 6.79413 6.09249 5.97971C6.90563 5.16529 7.94195 4.61018 9.07048 4.38455C10.199 4.15892 11.3691 4.27288 12.4329 4.71204C13.4966 5.1512 14.4064 5.89585 15.0471 6.85187C15.6878 7.8079 16.0307 8.93239 16.0325 10.0833C16.0349 10.8488 15.8861 11.6072 15.5945 12.315C15.303 13.0229 14.8744 13.6661 14.3336 14.2078C13.7927 14.7496 13.1501 15.1791 12.4428 15.4718C11.7354 15.7644 10.9772 15.9145 10.2117 15.9133Z",fill:"#7E8299"})]}),filter_edit:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M17.3083 3.4917V5.4917C17.3065 5.84118 17.2313 6.18639 17.0878 6.50504C16.9443 6.82369 16.7355 7.10871 16.475 7.3417L15.5167 8.17503C15.3929 8.28554 15.2303 8.34235 15.0646 8.33298C14.899 8.3236 14.7438 8.2488 14.6333 8.12503C14.5228 8.00126 14.466 7.83867 14.4754 7.67301C14.4848 7.50735 14.5596 7.35221 14.6833 7.2417L15.6333 6.40837C15.7618 6.29272 15.8646 6.15136 15.9349 5.99344C16.0053 5.83552 16.0416 5.66458 16.0417 5.4917V3.4917C16.0417 3.16902 15.9135 2.85956 15.6853 2.63139C15.4571 2.40322 15.1477 2.27503 14.825 2.27503H4.21667C3.89399 2.27503 3.58452 2.40322 3.35635 2.63139C3.12818 2.85956 3 3.16902 3 3.4917V5.5667C3.00618 5.87894 3.13137 6.17702 3.35 6.40003L6.48333 9.57503C7.19463 10.2901 7.59322 11.2581 7.59167 12.2667V16.6667C7.59567 16.8589 7.65113 17.0465 7.75227 17.2099C7.85341 17.3734 7.99654 17.5068 8.16674 17.5961C8.33694 17.6855 8.52798 17.7276 8.71997 17.718C8.91196 17.7084 9.09787 17.6475 9.25833 17.5417L10.3917 16.7084C10.459 16.6608 10.535 16.6269 10.6154 16.6087C10.6958 16.5904 10.779 16.5882 10.8602 16.6021C10.9415 16.6161 11.0192 16.6459 11.0889 16.6898C11.1587 16.7338 11.2191 16.7911 11.2667 16.8584C11.3143 16.9257 11.3482 17.0017 11.3664 17.0821C11.3846 17.1625 11.3868 17.2457 11.3729 17.3269C11.359 17.4082 11.3292 17.4859 11.2852 17.5556C11.2412 17.6254 11.184 17.6858 11.1167 17.7334L9.975 18.5667C9.62709 18.8036 9.22141 18.9415 8.80123 18.9659C8.38105 18.9903 7.96213 18.9002 7.58916 18.7051C7.21619 18.5101 6.90316 18.2175 6.68346 17.8585C6.46376 17.4995 6.34563 17.0876 6.34167 16.6667V12.2917C6.34169 11.6108 6.07202 10.9576 5.59167 10.475L2.5 7.30003C2.03298 6.84254 1.76375 6.22032 1.75 5.5667V3.4917C1.75 2.82866 2.01339 2.19277 2.48223 1.72393C2.95107 1.25509 3.58696 0.991699 4.25 0.991699H14.8417C15.4989 1.00046 16.1263 1.26772 16.5879 1.73561C17.0496 2.20351 17.3084 2.83439 17.3083 3.4917ZM16.3583 12.1584L15.7167 12.8084L13.5583 15C13.3939 15.1657 13.1858 15.2813 12.9583 15.3334L12.075 15.5167C11.9919 15.5249 11.9081 15.5249 11.825 15.5167C11.5126 15.5114 11.2142 15.386 10.9917 15.1667C10.849 15.0271 10.7431 14.8544 10.6835 14.6639C10.6239 14.4734 10.6124 14.2711 10.65 14.075L10.8167 13.1917C10.8569 12.9611 10.9675 12.7486 11.1333 12.5834L13.925 9.72503C14.0459 9.60279 14.19 9.50591 14.3488 9.44009C14.5077 9.37426 14.6781 9.34081 14.85 9.3417C15.1962 9.34532 15.5277 9.48268 15.775 9.72503L16.3167 10.2584C16.4464 10.379 16.5506 10.5245 16.6232 10.6862C16.6957 10.8478 16.7351 11.0224 16.739 11.1996C16.7429 11.3767 16.7112 11.5528 16.6458 11.7175C16.5804 11.8822 16.4827 12.0321 16.3583 12.1584ZM14.8 10.6334L14.3167 11.1334C14.3687 11.2877 14.4624 11.4247 14.5874 11.5291C14.7124 11.6335 14.8639 11.7013 15.025 11.725L15.4583 11.2834C15.4583 11.2834 15.4583 11.2167 15.4583 11.1834L14.9167 10.65C14.8947 10.6453 14.872 10.6453 14.85 10.65L14.8 10.6334ZM14.075 12.7C13.8068 12.5397 13.5787 12.3203 13.4083 12.0584L12.0083 13.4917L11.8583 14.325L12.6917 14.1084L14.075 12.7Z",fill:"inherit"})}),price_tag:m.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("g",{opacity:"0.3",children:m.jsx("path",{d:"M3.55997 6.65016L3.41997 11.7402C3.39903 12.4124 3.517 13.0818 3.76649 13.7063C4.01598 14.3309 4.39164 14.8973 4.86997 15.3702L9.42997 19.9402C9.84795 20.3589 10.3444 20.6912 10.8909 20.9178C11.4374 21.1445 12.0233 21.2612 12.615 21.2612C13.2066 21.2612 13.7925 21.1445 14.339 20.9178C14.8855 20.6912 15.382 20.3589 15.8 19.9402L20.57 15.1702C20.9887 14.7522 21.321 14.2557 21.5477 13.7092C21.7743 13.1627 21.891 12.5768 21.891 11.9852C21.891 11.3935 21.7743 10.8076 21.5477 10.2611C21.321 9.71459 20.9887 9.21814 20.57 8.80016L15.96 4.19016C15.4798 3.71338 14.9078 3.33903 14.2787 3.08979C13.6496 2.84055 12.9764 2.72161 12.3 2.74016L7.29997 2.91016C6.31604 2.93547 5.37939 3.33763 4.68341 4.0336C3.98744 4.72958 3.58528 5.66623 3.55997 6.65016Z",fill:"inherit"})}),m.jsx("path",{d:"M10.23 12.2304C11.7764 12.2304 13.03 10.9768 13.03 9.43037C13.03 7.88397 11.7764 6.63037 10.23 6.63037C8.6836 6.63037 7.42999 7.88397 7.42999 9.43037C7.42999 10.9768 8.6836 12.2304 10.23 12.2304Z",fill:"inherit"}),m.jsx("path",{d:"M13.1 17.0003C12.9509 17.0022 12.8046 16.9596 12.6799 16.8779C12.5551 16.7963 12.4575 16.6793 12.3996 16.5419C12.3416 16.4045 12.3259 16.253 12.3545 16.1066C12.3831 15.9603 12.4546 15.8258 12.56 15.7203L16.56 11.7203C16.7006 11.5799 16.8912 11.501 17.09 11.501C17.2887 11.501 17.4794 11.5799 17.62 11.7203C17.6907 11.7893 17.747 11.8717 17.7854 11.9627C17.8238 12.0537 17.8435 12.1515 17.8435 12.2503C17.8435 12.3491 17.8238 12.4469 17.7854 12.5379C17.747 12.629 17.6907 12.7114 17.62 12.7803L13.67 16.7803C13.5961 16.8555 13.507 16.914 13.4087 16.9519C13.3104 16.9898 13.2052 17.0063 13.1 17.0003Z",fill:"inherit"})]}),eyeslash:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M2.88008 22.3404C2.67861 22.3386 2.48544 22.2599 2.34008 22.1204C2.19902 21.978 2.11987 21.7858 2.11987 21.5854C2.11987 21.385 2.19902 21.1927 2.34008 21.0504L20.6001 2.88037C20.6636 2.7878 20.7471 2.71068 20.8444 2.65467C20.9417 2.59867 21.0503 2.56523 21.1622 2.5568C21.2742 2.54838 21.3866 2.56519 21.4911 2.606C21.5957 2.64681 21.6898 2.71057 21.7665 2.79258C21.8431 2.8746 21.9004 2.97278 21.934 3.07987C21.9677 3.18697 21.9769 3.30025 21.9609 3.41137C21.9449 3.52249 21.9042 3.6286 21.8418 3.72189C21.7793 3.81518 21.6967 3.89325 21.6001 3.95037L3.40008 22.1204C3.26264 22.2595 3.07568 22.3386 2.88008 22.3404Z",fill:"black"}),m.jsx("path",{d:"M9.14993 13.1107C9.15256 12.3557 9.45368 11.6323 9.98758 11.0984C10.5215 10.5645 11.2449 10.2634 11.9999 10.2607C12.4251 10.2609 12.8448 10.3573 13.2275 10.5426C13.6102 10.7279 13.9461 10.9973 14.2099 11.3307L10.2099 15.3307C9.87756 15.0643 9.60962 14.7263 9.42608 14.3419C9.24255 13.9576 9.14815 13.5367 9.14993 13.1107ZM11.7099 15.9307C11.8065 15.9357 11.9033 15.9357 11.9999 15.9307C12.7558 15.9307 13.4807 15.6305 14.0152 15.096C14.5497 14.5615 14.8499 13.8366 14.8499 13.0807C14.8548 12.9908 14.8548 12.9007 14.8499 12.8107L11.7099 15.9307Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M6.05 19.5008L9.15 16.4108C8.70449 16.0196 8.34405 15.5411 8.09102 15.005C7.838 14.4688 7.69777 13.8864 7.67903 13.2938C7.66029 12.7013 7.76343 12.1112 7.98208 11.5601C8.20072 11.009 8.5302 10.5087 8.95011 10.0902C9.37001 9.67167 9.87139 9.34383 10.4232 9.12699C10.975 8.91015 11.5654 8.80893 12.1579 8.82961C12.7504 8.85029 13.3323 8.99243 13.8677 9.24721C14.403 9.50199 14.8803 9.86399 15.27 10.3108L18.43 7.16078C16.6374 5.59863 14.3743 4.68002 12 4.55078C7.27 4.55078 2 9.17078 2 13.1108C2 15.2508 3.71 17.7208 6.05 19.5008Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M16.0601 11.6004C16.2484 12.0817 16.3467 12.5935 16.3501 13.1104C16.3552 13.8149 16.1879 14.5101 15.8628 15.1352C15.5377 15.7604 15.0646 16.2965 14.4848 16.6968C13.905 17.0972 13.236 17.3496 12.5362 17.4322C11.8365 17.5147 11.1271 17.4248 10.4701 17.1704L7.33008 20.2904C8.74153 21.1458 10.3504 21.6212 12.0001 21.6704C17.0001 21.6704 22.0001 17.0804 22.0001 13.1104C21.8378 11.1937 20.9595 9.40848 19.5401 8.11035L16.0601 11.6004Z",fill:"black"})]}),eye_outline:m.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M7.99998 9.39988C7.5253 9.39988 7.06129 9.25912 6.66661 8.99541C6.27193 8.73169 5.96432 8.35686 5.78267 7.91832C5.60102 7.47978 5.55349 6.99722 5.6461 6.53166C5.7387 6.06611 5.96728 5.63847 6.30292 5.30282C6.63857 4.96718 7.06621 4.7386 7.53176 4.646C7.99732 4.55339 8.47988 4.60092 8.91842 4.78257C9.35696 4.96422 9.73179 5.27183 9.99551 5.66651C10.2592 6.06119 10.4 6.5252 10.4 6.99988C10.3982 7.63586 10.1448 8.24529 9.69509 8.69499C9.24539 9.1447 8.63596 9.39812 7.99998 9.39988ZM7.99998 5.59988C7.72309 5.59988 7.45241 5.68199 7.22218 5.83582C6.99195 5.98966 6.81251 6.20831 6.70655 6.46412C6.60059 6.71994 6.57286 7.00143 6.62688 7.27301C6.6809 7.54458 6.81424 7.79404 7.01003 7.98983C7.20582 8.18562 7.45528 8.31896 7.72685 8.37298C7.99843 8.427 8.27992 8.39927 8.53574 8.29331C8.79155 8.18735 9.0102 8.00791 9.16404 7.77768C9.31787 7.54745 9.39998 7.27677 9.39998 6.99988C9.39998 6.62858 9.25248 6.27248 8.98993 6.00993C8.72738 5.74738 8.37128 5.59988 7.99998 5.59988ZM7.99998 13.2065C6.19341 13.1238 4.4753 12.4006 3.15331 11.1665C1.69998 9.89321 0.833313 8.33321 0.833313 6.99988C0.833313 4.03988 4.58665 0.793213 7.99998 0.793213C11.4133 0.793213 15.1666 4.12655 15.1666 6.99988C15.1666 10.0132 11.48 13.2065 7.99998 13.2065ZM7.99998 1.79321C5.17998 1.79321 1.83331 4.61321 1.83331 6.99988C1.83331 8.03988 2.59331 9.34655 3.83331 10.4132C4.97144 11.4773 6.44482 12.1114 7.99998 12.2065C11.1733 12.2065 14.1666 9.27321 14.1666 6.99988C14.1666 4.84655 10.98 1.79321 7.99998 1.79321Z",fill:"inherit"})}),eye:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M12 3.94043C7.27 3.94043 2 8.56043 2 12.5004C2 16.2604 7.27 21.0604 12 21.0604C17 21.0604 22 16.4704 22 12.5004C22 8.68043 16.73 3.94043 12 3.94043ZM12 16.8504C11.1397 16.8504 10.2986 16.5953 9.58327 16.1173C8.86792 15.6393 8.31037 14.96 7.98112 14.1651C7.65188 13.3702 7.56574 12.4956 7.73358 11.6518C7.90143 10.808 8.31573 10.0329 8.92409 9.42452C9.53244 8.81616 10.3075 8.40186 11.1514 8.23401C11.9952 8.06617 12.8698 8.15231 13.6647 8.48155C14.4595 8.81079 15.1389 9.36834 15.6169 10.0837C16.0949 10.7991 16.35 11.6401 16.35 12.5004C16.35 13.6541 15.8917 14.7606 15.0759 15.5763C14.2601 16.3921 13.1537 16.8504 12 16.8504Z",fill:"black"})]}),trash:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"#F1416C"})}),trash2:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M10 2.25C9.58579 2.25 9.25 2.58579 9.25 3V3.75H5C4.58579 3.75 4.25 4.08579 4.25 4.5C4.25 4.91421 4.58579 5.25 5 5.25H19C19.4142 5.25 19.75 4.91421 19.75 4.5C19.75 4.08579 19.4142 3.75 19 3.75H14.75V3C14.75 2.58579 14.4142 2.25 14 2.25H10Z",fill:"#F1416C"}),m.jsx("path",{d:"M10 10.65C10.4142 10.65 10.75 10.9858 10.75 11.4L10.75 18.4C10.75 18.8142 10.4142 19.15 10 19.15C9.58579 19.15 9.25 18.8142 9.25 18.4L9.25 11.4C9.25 10.9858 9.58579 10.65 10 10.65Z",fill:"#F1416C"}),m.jsx("path",{d:"M14.75 11.4C14.75 10.9858 14.4142 10.65 14 10.65C13.5858 10.65 13.25 10.9858 13.25 11.4V18.4C13.25 18.8142 13.5858 19.15 14 19.15C14.4142 19.15 14.75 18.8142 14.75 18.4V11.4Z",fill:"#F1416C"}),m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99142 7.91718C6.03363 7.53735 6.35468 7.25 6.73684 7.25H17.2632C17.6453 7.25 17.9664 7.53735 18.0086 7.91718L18.2087 9.71852C18.5715 12.9838 18.5715 16.2793 18.2087 19.5446L18.189 19.722C18.045 21.0181 17.0404 22.0517 15.7489 22.2325C13.2618 22.5807 10.7382 22.5807 8.25108 22.2325C6.95954 22.0517 5.955 21.0181 5.81098 19.722L5.79128 19.5446C5.42846 16.2793 5.42846 12.9838 5.79128 9.71852L5.99142 7.91718ZM7.40812 8.75L7.2821 9.88417C6.93152 13.0394 6.93152 16.2238 7.2821 19.379L7.3018 19.5563C7.37011 20.171 7.84652 20.6612 8.45905 20.747C10.8082 21.0758 13.1918 21.0758 15.5409 20.747C16.1535 20.6612 16.6299 20.171 16.6982 19.5563L16.7179 19.379C17.0685 16.2238 17.0685 13.0394 16.7179 9.88417L16.5919 8.75H7.40812Z",fill:"#F1416C"})]}),trash_outline:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"inherit"})}),plus_squared:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8333H5.83333C5.61232 10.8333 5.40036 10.7455 5.24408 10.5893C5.0878 10.433 5 10.221 5 10C5 9.77899 5.0878 9.56703 5.24408 9.41075C5.40036 9.25447 5.61232 9.16667 5.83333 9.16667H9.16667V10.8333ZM14.1667 9.16667H10.8333V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56703 14.7559 9.41075C14.5996 9.25447 14.3877 9.16667 14.1667 9.16667Z",fill:"white"}),m.jsx("path",{opacity:"0.3",d:"M13.4915 1.66667H6.50817C3.83419 1.66667 1.6665 3.83436 1.6665 6.50834V13.4917C1.6665 16.1657 3.83419 18.3333 6.50817 18.3333H13.4915C16.1655 18.3333 18.3332 16.1657 18.3332 13.4917V6.50834C18.3332 3.83436 16.1655 1.66667 13.4915 1.66667Z",fill:"white"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"white"})]}),plus_squared2:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8332H5.83333C5.61232 10.8332 5.40036 10.7454 5.24408 10.5891C5.0878 10.4328 5 10.2209 5 9.99984C5 9.77882 5.0878 9.56686 5.24408 9.41058C5.40036 9.2543 5.61232 9.1665 5.83333 9.1665H9.16667V10.8332ZM14.1667 9.1665H10.8333V10.8332H14.1667C14.3877 10.8332 14.5996 10.7454 14.7559 10.5891C14.9122 10.4328 15 10.2209 15 9.99984C15 9.77882 14.9122 9.56686 14.7559 9.41058C14.5996 9.2543 14.3877 9.1665 14.1667 9.1665Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M13.4917 1.6665H6.50832C3.83434 1.6665 1.66666 3.83419 1.66666 6.50817V13.4915C1.66666 16.1655 3.83434 18.3332 6.50832 18.3332H13.4917C16.1656 18.3332 18.3333 16.1655 18.3333 13.4915V6.50817C18.3333 3.83419 16.1656 1.6665 13.4917 1.6665Z",fill:"#1868DB"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"#1868DB"})]}),plus_circle:m.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M9.00008 0.666992C7.35191 0.666992 5.74074 1.15573 4.37033 2.07141C2.99992 2.98709 1.93182 4.28858 1.30109 5.8113C0.670359 7.33401 0.505331 9.00957 0.826874 10.6261C1.14842 12.2426 1.94209 13.7274 3.10753 14.8929C4.27297 16.0583 5.75782 16.852 7.37433 17.1735C8.99084 17.4951 10.6664 17.3301 12.1891 16.6993C13.7118 16.0686 15.0133 15.0005 15.929 13.6301C16.8447 12.2597 17.3334 10.6485 17.3334 9.00033C17.3334 7.90598 17.1179 6.82234 16.6991 5.8113C16.2803 4.80025 15.6665 3.88159 14.8926 3.10777C14.1188 2.33395 13.2002 1.72012 12.1891 1.30133C11.1781 0.88254 10.0944 0.666992 9.00008 0.666992ZM13.1668 9.83366H9.83342V13.167C9.83342 13.388 9.74562 13.6 9.58934 13.7562C9.43306 13.9125 9.2211 14.0003 9.00008 14.0003C8.77907 14.0003 8.56711 13.9125 8.41083 13.7562C8.25455 13.6 8.16675 13.388 8.16675 13.167V9.83366H4.83342C4.6124 9.83366 4.40044 9.74586 4.24416 9.58958C4.08788 9.4333 4.00008 9.22134 4.00008 9.00033C4.00008 8.77931 4.08788 8.56735 4.24416 8.41107C4.40044 8.25479 4.6124 8.16699 4.83342 8.16699H8.16675V4.83366C8.16675 4.61265 8.25455 4.40068 8.41083 4.2444C8.56711 4.08812 8.77907 4.00033 9.00008 4.00033C9.2211 4.00033 9.43306 4.08812 9.58934 4.2444C9.74562 4.40068 9.83342 4.61265 9.83342 4.83366V8.16699H13.1668C13.3878 8.16699 13.5997 8.25479 13.756 8.41107C13.9123 8.56735 14.0001 8.77931 14.0001 9.00033C14.0001 9.22134 13.9123 9.4333 13.756 9.58958C13.5997 9.74586 13.3878 9.83366 13.1668 9.83366Z",fill:"black"})}),close:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"#1868DB"})}),close2:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"inherit"})}),close_custom:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M17.0001 16.9298C16.8127 17.1161 16.5593 17.2206 16.2951 17.2206C16.0309 17.2206 15.7774 17.1161 15.5901 16.9298L7.05007 8.48985C6.95634 8.39688 6.88195 8.28628 6.83118 8.16442C6.78041 8.04256 6.75427 7.91186 6.75427 7.77985C6.75427 7.64783 6.78041 7.51713 6.83118 7.39527C6.88195 7.27341 6.95634 7.16281 7.05007 7.06985C7.23743 6.88359 7.49088 6.77905 7.75507 6.77905C8.01926 6.77905 8.27271 6.88359 8.46007 7.06985L17.0001 15.5098C17.0938 15.6028 17.1682 15.7134 17.219 15.8353C17.2697 15.9571 17.2959 16.0878 17.2959 16.2198C17.2959 16.3519 17.2697 16.4826 17.219 16.6044C17.1682 16.7263 17.0938 16.8369 17.0001 16.9298Z",fill:"#202125"}),m.jsx("path",{opacity:"0.3",d:"M8.46004 16.9999C8.26909 17.1935 8.00904 17.3033 7.73711 17.3052C7.46518 17.3071 7.20365 17.2009 7.01004 17.0099C6.81643 16.819 6.70661 16.5589 6.70474 16.287C6.70286 16.0151 6.80909 15.7535 7.00004 15.5599L15.54 6.99991C15.731 6.8063 15.991 6.69648 16.263 6.6946C16.5349 6.69273 16.7964 6.79895 16.99 6.98991C17.1836 7.18087 17.2935 7.44091 17.2953 7.71284C17.2972 7.98477 17.191 8.2463 17 8.43991L8.46004 16.9999Z",fill:"#202125"})]}),expand:m.jsx("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M14.1667 29.75V26.9167H9.08083L15.4558 20.5417L13.4583 18.5442L7.08333 24.9192V19.8333H4.25V29.75H14.1667ZM20.5417 15.4558L26.9167 9.08083V14.1667H29.75V4.25H19.8333V7.08333H24.9192L18.5442 13.4583L20.5417 15.4558Z",fill:"#5E6278"})}),error:m.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M12 21C7.0293 21 3 16.9707 3 12C3 7.0293 7.0293 3 12 3C16.9707 3 21 7.0293 21 12C21 16.9707 16.9707 21 12 21ZM11.1 14.7V16.5H12.9V14.7H11.1ZM11.1 7.5V12.9H12.9V7.5H11.1Z",fill:"inherit"})}),printer_blue:m.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M12.1333 4.66602H3.86667C2.83574 4.66602 2 5.50175 2 6.53268V10.1327C2 11.1636 2.83574 11.9993 3.86667 11.9993H12.1333C13.1643 11.9993 14 11.1636 14 10.1327V6.53268C14 5.50175 13.1643 4.66602 12.1333 4.66602Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.83366 1.33301H9.17366C9.74714 1.33477 10.2965 1.56382 10.7014 1.96996C11.1063 2.3761 11.3337 2.92619 11.3337 3.49967V4.66634H4.66699V3.49967C4.66699 2.92504 4.89527 2.37394 5.30159 1.96761C5.70792 1.56128 6.25902 1.33301 6.83366 1.33301Z",fill:"#1868DB"}),m.jsx("path",{d:"M5.33301 10H10.6663V12.6133C10.6663 13.1579 10.45 13.6802 10.0649 14.0653C9.67986 14.4503 9.15759 14.6667 8.61301 14.6667H7.38634C6.84176 14.6667 6.31949 14.4503 5.93442 14.0653C5.54934 13.6802 5.33301 13.1579 5.33301 12.6133V10Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.66699 7.83301H4.66699C4.53438 7.83301 4.40721 7.78033 4.31344 7.68656C4.21967 7.59279 4.16699 7.46562 4.16699 7.33301C4.16699 7.2004 4.21967 7.07322 4.31344 6.97945C4.40721 6.88569 4.53438 6.83301 4.66699 6.83301H6.66699C6.7996 6.83301 6.92678 6.88569 7.02055 6.97945C7.11431 7.07322 7.16699 7.2004 7.16699 7.33301C7.16699 7.46562 7.11431 7.59279 7.02055 7.68656C6.92678 7.78033 6.7996 7.83301 6.66699 7.83301Z",fill:"black"}),m.jsx("path",{d:"M11.3337 10.5H4.66699C4.53438 10.5 4.40721 10.4473 4.31344 10.3536C4.21967 10.2598 4.16699 10.1326 4.16699 10C4.16699 9.86739 4.21967 9.74022 4.31344 9.64645C4.40721 9.55268 4.53438 9.5 4.66699 9.5H11.3337C11.4663 9.5 11.5934 9.55268 11.6872 9.64645C11.781 9.74022 11.8337 9.86739 11.8337 10C11.8337 10.1326 11.781 10.2598 11.6872 10.3536C11.5934 10.4473 11.4663 10.5 11.3337 10.5Z",fill:"black"})]})};function wv({showBulkActions:e=!0,meta:t}){const n=J(),{currentPage:r,perview:o}=ne(e=>e.app);return D.useEffect(()=>{t&&r>t?.last_page&&n($t(1))},[t?.per_page]),m.jsxs("div",{className:ma("flex items-center justify-between gap-4 flex-wrap",t&&t?.total>0?null:"hidden"),children:[e?m.jsxs("div",{className:"flex items-center gap-2.5 shrink-0",children:[m.jsxs(rf,{children:[m.jsx(of,{asChild:!0,children:m.jsxs("button",{className:"rounded-md h-9 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 ",children:[o,m.jsx("span",{className:"rotate-90",children:bv.arrow})]})}),m.jsx(af,{align:"center",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5",children:[7,10,20].map((e,t)=>m.jsx(sf,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${o===e?"bg-primary_light text-primary":"text-gray-700"} `,onClick:()=>n(Ht(e)),children:e},t))})]}),m.jsxs("p",{className:"font-normal text-gray-600 text-[15px]",children:["Showing ",t?.from," - ",t?.to," of ",t?.total]})]}):null,m.jsx(vv,{count:t?.last_page||1,page:t?.current_page??1,shape:"rounded",color:"primary",onChange:(e,t)=>{n($t(t))}})]})}function xv({props:e={}}){return m.jsxs("div",{className:"flex flex-col gap-3 items-center py-24",children:[m.jsx("p",{className:"font-bold text-sm",children:e.header??"No item attached"}),m.jsx("p",{className:"font-bold text-[13px] text-gray-700",children:e.subText??"Add a new item to start managing your orders."})]})}function Cv({columns:e,data:t,tbhRowClass:n,tHeadClass:r,tbCellClass:o,meta:a,showBulkActions:i,showPaginate:s=!0,emptyData:l,emptyProps:u,loading:c,accordionData:d,hasAccordion:f,bodyRowClass:p,tableContainerClass:h,firstCellClass:g,lastCellClass:y,showAccordionDropdown:v=!0,onToggleAccordion:b}){const[w,x]=D.useState(null),C=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=D.useState(()=>({current:Qr(t)})),[r,o]=D.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:t,columns:e,getCoreRowModel:e=>or(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let l=0;l<t.length;l++){const u=cr(e,e._getRowId(t[l],l,a),t[l],l,o,0,null==a?void 0:a.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,o+1,u)))}return i};return n.rows=r(t),n},ar(e.options,"debugTable",0,()=>e._autoResetPageIndex()))});return m.jsxs("div",{className:"flex flex-col gap-[30px]",children:[m.jsx("div",{className:`shadow-[0_3px_4px_0_#00000008] ${h}`,children:m.jsxs(ga,{children:[m.jsx(ya,{children:C.getHeaderGroups().map(e=>m.jsx(ba,{className:ma("border-gray-300 bg-gray-100 hover:!bg-gray-100 rounded-xl",n),children:e.headers.map(e=>m.jsx(wa,{className:ma("text-dark text-sm capitalize font-bold",r),children:e.isPlaceholder?null:Xr(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),m.jsx(va,{children:c?Array(5).fill(null).map((e,t)=>m.jsx(M.Fragment,{children:C.getHeaderGroups().map(e=>m.jsx(ba,{className:ma("border-gray-300 hover:!bg-gray-100 rounded-xl"),children:e.headers.map(e=>m.jsx(xa,{children:m.jsx(Ca,{className:"w-full h-6 rounded-lg"})},e.id))},e.id))},t)):C?.getRowModel().rows?.length?C?.getRowModel().rows.map((e,t)=>m.jsx(M.Fragment,{children:m.jsx(ba,{onClick:()=>((e,t)=>{x(t=>t===e?null:e),b?.(e,t)})(t,e.original),"data-state":e.getIsSelected()&&"selected",className:`border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${p} `,children:e.getVisibleCells().map((n,r)=>m.jsx(xa,{className:ma("text-gray-500 text-sm font-bold",o,0===r&&g,r===e.getVisibleCells().length-1&&y),children:m.jsxs("div",{className:"flex",children:[f&&v&&0===r&&m.jsx("div",{className:"cursor-pointer inline",children:m.jsx("div",{className:"transform transition-transform duration-200 "+(w===t?"-rotate-90":"rotate-90"),children:bv.arrow})})," ",m.jsx("div",{children:Xr(n.column.columnDef.cell,n.getContext())})]})},n.id))},e.id)},e.id)):m.jsx(ba,{children:m.jsx(xa,{colSpan:e.length,className:"h-24 text-center hover:bg-gray-100",children:l?m.jsx(xv,{props:u}):"No results found."})})})]})}),s&&m.jsx(wv,{showBulkActions:i,meta:a})]})}function Sv(e,t="NGN",n="en-NG"){isNaN(e)&&(e=0);return new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:6}).format(e)}function kv(e=0){if(null==e)return"0";if(isNaN(e))return"0";{const[t,n]=e.toString().split("."),r=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?`${r}.${n}`:r}}var _v,Ev="HoverCard",[jv]=ja(Ev,[ul]),Nv=ul(),[Ov,Rv]=jv(Ev),Pv=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=Nv(t),u=D.useRef(0),c=D.useRef(0),d=D.useRef(!1),f=D.useRef(!1),[p,h]=Pa({prop:r,defaultProp:o??!1,onChange:a,caller:Ev}),g=D.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>h(!0),i)},[i,h]),y=D.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>h(!1),s))},[s,h]),v=D.useCallback(()=>h(!1),[h]);return D.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),m.jsx(Ov,{scope:t,open:p,onOpenChange:h,onOpen:g,onClose:y,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:m.jsx(_l,{...l,children:n})})};Pv.displayName=Ev;var Tv="HoverCardTrigger",Dv=D.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Rv(Tv,n),a=Nv(n);return m.jsx(El,{asChild:!0,...a,children:m.jsx(La.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:Sa(e.onPointerEnter,zv(o.onOpen)),onPointerLeave:Sa(e.onPointerLeave,zv(o.onClose)),onFocus:Sa(e.onFocus,o.onOpen),onBlur:Sa(e.onBlur,o.onClose),onTouchStart:Sa(e.onTouchStart,e=>e.preventDefault())})})});Dv.displayName=Tv;var[Mv,Iv]=jv("HoverCardPortal",{forceMount:void 0}),Av="HoverCardContent",Fv=D.forwardRef((e,t)=>{const n=Iv(Av,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=Rv(Av,e.__scopeHoverCard);return m.jsx(Rl,{present:r||a.open,children:m.jsx(Lv,{"data-state":a.open?"open":"closed",...o,onPointerEnter:Sa(e.onPointerEnter,zv(a.onOpen)),onPointerLeave:Sa(e.onPointerLeave,zv(a.onClose)),ref:t})})});Fv.displayName=Av;var Lv=D.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=Rv(Av,n),u=Nv(n),c=D.useRef(null),d=Ea(t,c),[f,p]=D.useState(!1);return D.useEffect(()=>{if(f){const e=document.body;return _v=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=_v,e.style.webkitUserSelect=_v}}},[f]),D.useEffect(()=>{if(c.current){const e=()=>{p(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),D.useEffect(()=>{if(c.current){const e=function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(c.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),m.jsx(Ka,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Sa(a,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:m.jsx(jl,{...u,...s,onPointerDown:Sa(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function zv(e){return t=>"touch"===t.pointerType?void 0:e()}D.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Nv(n);return m.jsx(Nl,{...o,...r,ref:t})}).displayName="HoverCardArrow";var $v=Fv;const Hv=Pv,Vv=Dv,Bv=D.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx($v,{ref:o,align:t,sideOffset:n,className:ma("z-50 w-64 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r}));function Uv({children:e,trigger:t,fieldName:n,align:r="start"}){return m.jsxs(Hv,{children:[m.jsx(Vv,{className:"cursor-pointer",children:t??bv.info_input}),m.jsxs(Bv,{align:r,className:"bg-[#0A0D14] text-[#CDD0D5] text-xs font-normal border-none",children:[n?m.jsx("p",{className:"text-sm font-medium text-white first-letter:uppercase",children:n}):null,e]})]})}function Wv({status:e}){return m.jsx("span",{className:ma("font-semibold text-xs rounded p-[7px] capitalize text-center min-w-[70px] bg-gray-300 text-gray-700",["active","approved","published","received","returned","completed","reconciled","credit"].includes(e)?"text-success bg-success-light":null,["inactive","pending","expired","expiring","rejected","voided","cancelled","debit","out of stock"].includes(e)?"text-danger bg-danger_light":null,["pending","paylater","suspended","awaiting_approval"].includes(e)?"text-warning bg-warning-light":null,["draft","in_transit"].includes(e)?"text-black bg-[#E1E3EA]":null,["ongoing"].includes(e)?"text-[#7239EA] bg-[#f5edff]":null),children:e?.replace("_"," ")})}Bv.displayName=$v.displayName,Array(12).fill(0);let qv=1;const Yv=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:qv++,a=this.toasts.find(e=>e.id===o),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:i,title:n}):t):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const r=Promise.resolve(e instanceof Function?e():e);let o,a=void 0!==n;const i=r.then(async e=>{o=["resolve",e];if(M.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(Gv(e)&&!e.ok){a=!1;const r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"==typeof r&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}else if(e instanceof Error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}else if(void 0!==t.success){a=!1;const r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:"success",description:o,...i})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>i.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||qv++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Gv=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,Kv=(e,t)=>{const n=(null==t?void 0:t.id)||qv++;return Yv.addToast({title:e,...t,id:n}),n},Qv=Object.assign(Kv,{success:Yv.success,info:Yv.info,warning:Yv.warning,error:Yv.error,custom:Yv.custom,message:Yv.message,promise:Yv.promise,dismiss:Yv.dismiss,loading:Yv.loading},{getHistory:()=>Yv.toasts,getToasts:()=>Yv.getActiveToasts()});function Xv(e,t){return function(){return e.apply(t,arguments)}}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const{toString:Zv}=Object.prototype,{getPrototypeOf:Jv}=Object,{iterator:eb,toStringTag:tb}=Symbol,nb=(rb=Object.create(null),e=>{const t=Zv.call(e);return rb[t]||(rb[t]=t.slice(8,-1).toLowerCase())});var rb;const ob=e=>(e=e.toLowerCase(),t=>nb(t)===e),ab=e=>t=>typeof t===e,{isArray:ib}=Array,sb=ab("undefined");function lb(e){return null!==e&&!sb(e)&&null!==e.constructor&&!sb(e.constructor)&&db(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ub=ob("ArrayBuffer");const cb=ab("string"),db=ab("function"),fb=ab("number"),pb=e=>null!==e&&"object"==typeof e,hb=e=>{if("object"!==nb(e))return!1;const t=Jv(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||tb in e||eb in e)},mb=ob("Date"),gb=ob("File"),yb=ob("Blob"),vb=ob("FileList"),bb=ob("URLSearchParams"),[wb,xb,Cb,Sb]=["ReadableStream","Request","Response","Headers"].map(ob);function kb(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ib(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(lb(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function _b(e,t){if(lb(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Eb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,jb=e=>!sb(e)&&e!==Eb;const Nb=(Ob="undefined"!=typeof Uint8Array&&Jv(Uint8Array),e=>Ob&&e instanceof Ob);var Ob;const Rb=ob("HTMLFormElement"),Pb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Tb=ob("RegExp"),Db=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};kb(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const Mb=ob("AsyncFunction"),Ib=(Ab="function"==typeof setImmediate,Fb=db(Eb.postMessage),Ab?setImmediate:Fb?((e,t)=>(Eb.addEventListener("message",({source:n,data:r})=>{n===Eb&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Eb.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Ab,Fb;const Lb="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Eb):"undefined"!=typeof process&&process.nextTick||Ib;var zb={isArray:ib,isArrayBuffer:ub,isBuffer:lb,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||db(e.append)&&("formdata"===(t=nb(e))||"object"===t&&db(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ub(e.buffer),t},isString:cb,isNumber:fb,isBoolean:e=>!0===e||!1===e,isObject:pb,isPlainObject:hb,isEmptyObject:e=>{if(!pb(e)||lb(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:wb,isRequest:xb,isResponse:Cb,isHeaders:Sb,isUndefined:sb,isDate:mb,isFile:gb,isBlob:yb,isRegExp:Tb,isFunction:db,isStream:e=>pb(e)&&db(e.pipe),isURLSearchParams:bb,isTypedArray:Nb,isFileList:vb,forEach:kb,merge:function e(){const{caseless:t,skipUndefined:n}=jb(this)&&this||{},r={},o=(o,a)=>{const i=t&&_b(r,a)||a;hb(r[i])&&hb(o)?r[i]=e(r[i],o):hb(o)?r[i]=e({},o):ib(o)?r[i]=o.slice():n&&sb(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&kb(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(kb(t,(t,r)=>{n&&db(t)?Object.defineProperty(e,r,{value:Xv(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Jv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:nb,kindOfTest:ob,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ib(e))return e;let t=e.length;if(!fb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[eb]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Rb,hasOwnProperty:Pb,hasOwnProp:Pb,reduceDescriptors:Db,freezeMethods:e=>{Db(e,(t,n)=>{if(db(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];db(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ib(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_b,global:Eb,isContextDefined:jb,isSpecCompliantForm:function(e){return!!(e&&db(e.append)&&"FormData"===e[tb]&&e[eb])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(pb(e)){if(t.indexOf(e)>=0)return;if(lb(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ib(e)?[]:{};return kb(e,(e,t)=>{const a=n(e,r+1);!sb(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Mb,isThenable:e=>e&&(pb(e)||db(e))&&db(e.then)&&db(e.catch),setImmediate:Ib,asap:Lb,isIterable:e=>null!=e&&db(e[eb])};let $b=class e extends Error{static from(t,n,r,o,a,i){const s=new e(t.message,n||t.code,r,o,a);return s.cause=t,s.name=t.name,i&&Object.assign(s,i),s}constructor(e,t,n,r,o){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:zb.toJSONObject(this.config),code:this.code,status:this.status}}};$b.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",$b.ERR_BAD_OPTION="ERR_BAD_OPTION",$b.ECONNABORTED="ECONNABORTED",$b.ETIMEDOUT="ETIMEDOUT",$b.ERR_NETWORK="ERR_NETWORK",$b.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",$b.ERR_DEPRECATED="ERR_DEPRECATED",$b.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",$b.ERR_BAD_REQUEST="ERR_BAD_REQUEST",$b.ERR_CANCELED="ERR_CANCELED",$b.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",$b.ERR_INVALID_URL="ERR_INVALID_URL";function Hb(e){return zb.isPlainObject(e)||zb.isArray(e)}function Vb(e){return zb.endsWith(e,"[]")?e.slice(0,-2):e}function Bb(e,t,n){return e?e.concat(t).map(function(e,t){return e=Vb(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Ub=zb.toFlatObject(zb,{},null,function(e){return/^is[A-Z]/.test(e)});function Wb(e,t,n){if(!zb.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=zb.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!zb.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&zb.isSpecCompliantForm(t);if(!zb.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(zb.isDate(e))return e.toISOString();if(zb.isBoolean(e))return e.toString();if(!s&&zb.isBlob(e))throw new $b("Blob is not supported. Use a Buffer instead.");return zb.isArrayBuffer(e)||zb.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(zb.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(zb.isArray(e)&&function(e){return zb.isArray(e)&&!e.some(Hb)}(e)||(zb.isFileList(e)||zb.endsWith(n,"[]"))&&(s=zb.toArray(e)))return n=Vb(n),s.forEach(function(e,r){!zb.isUndefined(e)&&null!==e&&t.append(!0===i?Bb([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!Hb(e)||(t.append(Bb(o,n,a),l(e)),!1)}const c=[],d=Object.assign(Ub,{defaultVisitor:u,convertValue:l,isVisitable:Hb});if(!zb.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!zb.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),zb.forEach(n,function(n,a){!0===(!(zb.isUndefined(n)||null===n)&&o.call(t,n,zb.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),c.pop()}}(e),t}function qb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Yb(e,t){this._pairs=[],e&&Wb(e,this,t)}const Gb=Yb.prototype;function Kb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Qb(e,t,n){if(!t)return e;const r=n&&n.encode||Kb,o=zb.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let i;if(i=a?a(t,o):zb.isURLSearchParams(t)?t.toString():new Yb(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Gb.append=function(e,t){this._pairs.push([e,t])},Gb.toString=function(e){const t=e?function(t){return e.call(this,t,qb)}:qb;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Xb{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){zb.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Zb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jb={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Yb,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ew="undefined"!=typeof window&&"undefined"!=typeof document,tw="object"==typeof navigator&&navigator||void 0,nw=ew&&(!tw||["ReactNative","NativeScript","NS"].indexOf(tw.product)<0),rw="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ow=ew&&window.location.href||"http://localhost";var aw={...Object.freeze({__proto__:null,hasBrowserEnv:ew,hasStandardBrowserEnv:nw,hasStandardBrowserWebWorkerEnv:rw,navigator:tw,origin:ow}),...Jb};function iw(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&zb.isArray(r)?r.length:a,s)return zb.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&zb.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&zb.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(zb.isFormData(e)&&zb.isFunction(e.entries)){const n={};return zb.forEachEntry(e,(e,r)=>{t(function(e){return zb.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const sw={transitional:Zb,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=zb.isObject(e);o&&zb.isHTMLForm(e)&&(e=new FormData(e));if(zb.isFormData(e))return r?JSON.stringify(iw(e)):e;if(zb.isArrayBuffer(e)||zb.isBuffer(e)||zb.isStream(e)||zb.isFile(e)||zb.isBlob(e)||zb.isReadableStream(e))return e;if(zb.isArrayBufferView(e))return e.buffer;if(zb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Wb(e,new aw.classes.URLSearchParams,{visitor:function(e,t,n,r){return aw.isNode&&zb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=zb.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Wb(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(zb.isString(e))try{return(t||JSON.parse)(e),zb.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||sw.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(zb.isResponse(e)||zb.isReadableStream(e))return e;if(e&&zb.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw $b.from(e,$b.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:aw.classes.FormData,Blob:aw.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zb.forEach(["delete","get","head","post","put","patch"],e=>{sw.headers[e]={}});const lw=zb.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const uw=Symbol("internals");function cw(e){return e&&String(e).trim().toLowerCase()}function dw(e){return!1===e||null==e?e:zb.isArray(e)?e.map(dw):String(e)}function fw(e,t,n,r,o){return zb.isFunction(r)?r.call(this,t,n):(o&&(t=n),zb.isString(t)?zb.isString(r)?-1!==t.indexOf(r):zb.isRegExp(r)?r.test(t):void 0:void 0)}let pw=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=cw(t);if(!o)throw new Error("header name must be a non-empty string");const a=zb.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=dw(e))}const a=(e,t)=>zb.forEach(e,(e,n)=>o(e,n,t));if(zb.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(zb.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&lw[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(zb.isObject(e)&&zb.isIterable(e)){let n,r,o={};for(const t of e){if(!zb.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?zb.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=cw(e)){const n=zb.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(zb.isFunction(t))return t.call(this,e,n);if(zb.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=cw(e)){const n=zb.findKey(this,e);return!(!n||void 0===this[n]||t&&!fw(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=cw(e)){const o=zb.findKey(n,e);!o||t&&!fw(0,n[o],o,t)||(delete n[o],r=!0)}}return zb.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!fw(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return zb.forEach(this,(r,o)=>{const a=zb.findKey(n,o);if(a)return t[a]=dw(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=dw(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return zb.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&zb.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[uw]=this[uw]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=cw(e);t[r]||(!function(e,t){const n=zb.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return zb.isArray(e)?e.forEach(r):r(e),this}};function hw(e,t){const n=this||sw,r=t||n,o=pw.from(r.headers);let a=r.data;return zb.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function mw(e){return!(!e||!e.__CANCEL__)}pw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),zb.reduceDescriptors(pw.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),zb.freezeMethods(pw);let gw=class extends $b{constructor(e,t,n){super(null==e?"canceled":e,$b.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function yw(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new $b("Request failed with status code "+n.status,[$b.ERR_BAD_REQUEST,$b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const vw=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},bw=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ww=e=>(...t)=>zb.asap(()=>e(...t));var xw=aw.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,aw.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(aw.origin),aw.navigator&&/(msie|trident)/i.test(aw.navigator.userAgent)):()=>!0,Cw=aw.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];zb.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),zb.isString(r)&&s.push(`path=${r}`),zb.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),zb.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Sw(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const kw=e=>e instanceof pw?{...e}:e;function _w(e,t){t=t||{};const n={};function r(e,t,n,r){return zb.isPlainObject(e)&&zb.isPlainObject(t)?zb.merge.call({caseless:r},e,t):zb.isPlainObject(t)?zb.merge({},t):zb.isArray(t)?t.slice():t}function o(e,t,n,o){return zb.isUndefined(t)?zb.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!zb.isUndefined(t))return r(void 0,t)}function i(e,t){return zb.isUndefined(t)?zb.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(kw(e),kw(t),0,!0)};return zb.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||o,i=a(e[r],t[r],r);zb.isUndefined(i)&&a!==s||(n[r]=i)}),n}var Ew=e=>{const t=_w({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=pw.from(i),t.url=Qb(Sw(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),zb.isFormData(n))if(aw.hasStandardBrowserEnv||aw.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(zb.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(aw.hasStandardBrowserEnv&&(r&&zb.isFunction(r)&&(r=r(t)),r||!1!==r&&xw(t.url))){const e=o&&a&&Cw.read(a);e&&i.set(o,e)}return t};var jw="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ew(e);let o=r.data;const a=pw.from(r.headers).normalize();let i,s,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=pw.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());yw(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new $b("Request aborted",$b.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new $b(r,$b.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Zb;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $b(t,o.clarifyTimeoutError?$b.ETIMEDOUT:$b.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&zb.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),zb.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,c]=vw(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,u]=vw(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new gw(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===aw.protocols.indexOf(y)?n(new $b("Unsupported protocol "+y+":",$b.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Nw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $b?t:new gw(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new $b(`timeout of ${t}ms exceeded`,$b.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>zb.asap(i),s}},Ow=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Rw=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Pw=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Rw(e))yield*Ow(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Tw}=zb,Dw=(({Request:e,Response:t})=>({Request:e,Response:t}))(zb.global),{ReadableStream:Mw,TextEncoder:Iw}=zb.global,Aw=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Fw=e=>{e=zb.merge.call({skipUndefined:!0},Dw,e);const{fetch:t,Request:n,Response:r}=e,o=t?Tw(t):"function"==typeof fetch,a=Tw(n),i=Tw(r);if(!o)return!1;const s=o&&Tw(Mw),l=o&&("function"==typeof Iw?(u=new Iw,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const c=a&&s&&Aw(()=>{let e=!1;const t=new n(aw.origin,{body:new Mw,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=i&&s&&Aw(()=>zb.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new $b(`Response type '${e}' is not supported`,$b.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=zb.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(zb.isBlob(e))return e.size;if(zb.isSpecCompliantForm(e)){const t=new n(aw.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return zb.isArrayBufferView(e)||zb.isArrayBuffer(e)?e.byteLength:(zb.isURLSearchParams(e)&&(e+=""),zb.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:s,signal:l,cancelToken:u,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:w}=Ew(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Nw([l,u&&u.toAbortSignal()],h),S=null;const k=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let _;try{if(g&&c&&"get"!==i&&"head"!==i&&0!==(_=await p(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(zb.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=bw(_,vw(ww(g)));s=Pw(t.body,65536,e,n)}}zb.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in n.prototype,l={...w,signal:C,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};S=a&&new n(o,l);let u=await(a?x(S,w):x(o,l));const h=d&&("stream"===y||"response"===y);if(d&&(m||h&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=zb.toFiniteNumber(u.headers.get("content-length")),[n,o]=m&&bw(t,vw(ww(m),!0))||[];u=new r(Pw(u.body,65536,n,()=>{o&&o(),k&&k()}),e)}y=y||"text";let E=await f[zb.findKey(f,y)||"text"](u,e);return!h&&k&&k(),await new Promise((t,n)=>{yw(t,n,{data:E,headers:pw.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:S})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new $b("Network Error",$b.ERR_NETWORK,e,S),{cause:t.cause||t});throw $b.from(t,t&&t.code,e,S)}}},Lw=new Map,zw=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,l=a.length,u=Lw;for(;l--;)i=a[l],s=u.get(i),void 0===s&&u.set(i,s=l?new Map:Fw(t)),u=s;return s};zw();const $w={http:null,xhr:jw,fetch:{get:zw}};zb.forEach($w,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Hw=e=>`- ${e}`,Vw=e=>zb.isFunction(e)||null===e||!1===e;var Bw={getAdapter:function(e,t){e=zb.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!Vw(r)&&(o=$w[(n=String(r)).toLowerCase()],void 0===o))throw new $b(`Unknown adapter '${n}'`);if(o&&(zb.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Hw).join("\n"):" "+Hw(e[0]):"as no adapter specified";throw new $b("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:$w};function Uw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gw(null,e)}function Ww(e){Uw(e),e.headers=pw.from(e.headers),e.data=hw.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Bw.getAdapter(e.adapter||sw.adapter,e)(e).then(function(t){return Uw(e),t.data=hw.call(e,e.transformResponse,t),t.headers=pw.from(t.headers),t},function(t){return mw(t)||(Uw(e),t&&t.response&&(t.response.data=hw.call(e,e.transformResponse,t.response),t.response.headers=pw.from(t.response.headers))),Promise.reject(t)})}const qw="1.13.4",Yw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yw[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Gw={};Yw.transitional=function(e,t,n){function r(e,t){return"[Axios v"+qw+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new $b(r(o," has been removed"+(t?" in "+t:"")),$b.ERR_DEPRECATED);return t&&!Gw[o]&&(Gw[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},Yw.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Kw={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $b("options must be an object",$b.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new $b("option "+a+" must be "+n,$b.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new $b("Unknown option "+a,$b.ERR_BAD_OPTION)}},validators:Yw};const Qw=Kw.validators;let Xw=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Xb,response:new Xb}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=_w(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Kw.assertOptions(n,{silentJSONParsing:Qw.transitional(Qw.boolean),forcedJSONParsing:Qw.transitional(Qw.boolean),clarifyTimeoutError:Qw.transitional(Qw.boolean)},!1),null!=r&&(zb.isFunction(r)?t.paramsSerializer={serialize:r}:Kw.assertOptions(r,{encode:Qw.function,serialize:Qw.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Kw.assertOptions(t,{baseUrl:Qw.spelling("baseURL"),withXsrfToken:Qw.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&zb.merge(o.common,o[t.method]);o&&zb.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=pw.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[Ww.bind(this),void 0];for(e.unshift(...i),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=i.length;let f=t;for(;d<c;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Ww.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return Qb(Sw((e=_w(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};zb.forEach(["delete","get","head","options"],function(e){Xw.prototype[e]=function(t,n){return this.request(_w(n||{},{method:e,url:t,data:(n||{}).data}))}}),zb.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(_w(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Xw.prototype[e]=t(),Xw.prototype[e+"Form"]=t(!0)});const Zw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Zw).forEach(([e,t])=>{Zw[t]=e});const Jw=function e(t){const n=new Xw(t),r=Xv(Xw.prototype.request,n);return zb.extend(r,Xw.prototype,n,{allOwnKeys:!0}),zb.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(_w(t,n))},r}(sw);Jw.Axios=Xw,Jw.CanceledError=gw,Jw.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new gw(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;const n=new e(function(e){t=e});return{token:n,cancel:t}}},Jw.isCancel=mw,Jw.VERSION=qw,Jw.toFormData=Wb,Jw.AxiosError=$b,Jw.Cancel=Jw.CanceledError,Jw.all=function(e){return Promise.all(e)},Jw.spread=function(e){return function(t){return e.apply(null,t)}},Jw.isAxiosError=function(e){return zb.isObject(e)&&!0===e.isAxiosError},Jw.mergeConfig=_w,Jw.AxiosHeaders=pw,Jw.formToJSON=e=>iw(zb.isHTMLForm(e)?new FormData(e):e),Jw.getAdapter=Bw.getAdapter,Jw.HttpStatusCode=Zw,Jw.default=Jw;const{Axios:ex,AxiosError:tx,CanceledError:nx,isCancel:rx,CancelToken:ox,VERSION:ax,all:ix,Cancel:sx,isAxiosError:lx,spread:ux,toFormData:cx,AxiosHeaders:dx,HttpStatusCode:fx,formToJSON:px,getAdapter:hx,mergeConfig:mx}=Jw,gx=e=>{e||console.warn("⚠️ No API key provided to createApiClient");const t=Jw.create({baseURL:"https://biz.api.simpoocodes.com/api/v1/outbound",headers:{"Content-Type":"application/json","SIMPOO-API-KEY":e}});return t.interceptors.request.use(t=>(e&&t.headers&&(t.headers["SIMPOO-API-KEY"]=e),t),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,e=>(e.response?console.error("API Error:",e.response.status,e.response.data):console.error("Network or Axios Error:",e.message),Promise.reject(e))),t},yx=(e,t,n={})=>{const{apiKey:r}=Jn(),o=gx(r||"");return function(e){return Xn(e,Pn)}({queryKey:e,queryFn:()=>(async e=>{try{const{data:t}=await o.get(e);return t}catch(e){bx(e)}})(t),...n})},vx=(e={enableToast:!0},t,n)=>{const{enableToast:r,...o}=e,{apiKey:a}=Jn(),i=gx(a||"");return function(e){const t=qn(),[n]=D.useState(()=>new Vn(t,e));D.useEffect(()=>{n.setOptions(e)},[n,e]);const r=D.useSyncExternalStore(D.useCallback(e=>n.subscribe(wn.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=D.useCallback((e,t)=>{n.mutate(e,t).catch(Gt)},[n]);if(r.error&&gn(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}({mutationFn:async({url:e,payload:t})=>{const{data:n}=await i.post(e,t);return n},onSuccess(e,t,n){r&&Qv.success(e.message)},onError(e,t,n){console.log(e),bx(e)},...o})},bx=e=>{e?.response?(console.log("response data:",e.response.data),console.log("Status Code:",e.response.status),console.log("Status Text:",e.response.statusText),500===e.response.status?Qv.error("Something went wrong",{position:"top-right"}):e.response.data&&e.response.data.message&&Qv.error(`${e.response?.data?.message}`,{position:"top-right"})):(e.request,console.log(e?.message),Qv.error(`${e?.message}`,{position:"top-right"}))};function wx(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xx,Cx={exports:{}};var Sx=(xx||(xx=1,function(e){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Gn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=g(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=h(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,o,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(o=t[r=b[n]])||(e[r]=o);return e}function C(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function k(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,a,i,l=[],u=arguments.length;for(a=0;a<u;a++){if(o="","object"==typeof arguments[a]){for(i in o+="\n["+a+"] ",arguments[0])s(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[a];l.push(o)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var E,j={};function N(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),j[e]||(k(t),j[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e){var t,n;for(n in e)s(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function T(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var D={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function I(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},z={};function $(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return I(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(A);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=H(r[t]);return function(t){var o,a="";for(o=0;o<n;o++)a+=O(r[o])?r[o].call(t,e):r[o];return a}}function B(e,t){return e.isValid()?(t=U(t,e.localeData()),L[t]=L[t]||V(t),L[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(A).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var Y="Invalid date";function G(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var o=this._relativeTime[n];return O(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ie,se=/\d/,le=/\d\d/,ue=/\d{3}/,ce=/\d{4}/,de=/[+-]?\d{6}/,fe=/\d\d?/,pe=/\d\d\d\d?/,he=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,ye=/[+-]?\d{1,6}/,ve=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ke=/^[1-9]\d?/,_e=/^([1-9]\d|\d)/;function Ee(e,t,n){ie[e]=O(t)?t:function(e,r){return e&&n?n:t}}function je(e,t){return s(ie,e)?ie[e](t._strict,t._locale):new RegExp(Ne(e))}function Ne(e){return Oe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function Oe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Re(t)),n}ie={};var Te={};function De(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=Pe(e)}),r=e.length,n=0;n<r;n++)Te[e[n]]=o}function Me(e,t){De(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function Ie(e,t,n){null!=t&&s(Te,e)&&Te[e](t,n._a,n,e)}function Ae(e){return e%4==0&&e%100!=0||e%400==0}var Fe=0,Le=1,ze=2,$e=3,He=4,Ve=5,Be=6,Ue=7,We=8;function qe(e){return Ae(e)?366:365}$("Y",0,0,function(){var e=this.year();return e<=9999?I(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),Ee("Y",be),Ee("YY",fe,le),Ee("YYYY",ge,ce),Ee("YYYYY",ye,de),Ee("YYYYYY",ye,de),De(["YYYYY","YYYYYY"],Fe),De("YYYY",function(e,t){t[Fe]=2===e.length?r.parseTwoDigitYear(e):Pe(e)}),De("YY",function(e,t){t[Fe]=r.parseTwoDigitYear(e)}),De("Y",function(e,t){t[Fe]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return Pe(e)+(Pe(e)>68?1900:2e3)};var Ye,Ge=Qe("FullYear",!0);function Ke(){return Ae(this.year())}function Qe(e,t){return function(n){return null!=n?(Ze(this,e,n),r.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ze(e,t,n){var r,o,a,i,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),s=29!==(s=e.date())||1!==i||Ae(a)?s:28,o?r.setUTCFullYear(a,i,s):r.setFullYear(a,i,s)}}function Je(e){return O(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"==typeof e){var n,r=ae(e=re(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?Ae(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ee("M",fe,ke),Ee("MM",fe,le),Ee("MMM",function(e,t){return t.monthsShortRegex(e)}),Ee("MMMM",function(e,t){return t.monthsRegex(e)}),De(["M","MM"],function(e,t){t[Le]=Pe(e)-1}),De(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Le]=o:g(n).invalidMonth=e});var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Se,st=Se;function lt(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ut(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Ye.call(this._shortMonthsParse,i))?o:null:-1!==(o=Ye.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=Ye.call(this._shortMonthsParse,i))||-1!==(o=Ye.call(this._longMonthsParse,i))?o:null:-1!==(o=Ye.call(this._longMonthsParse,i))||-1!==(o=Ye.call(this._shortMonthsParse,i))?o:null}function dt(e,t,n){var r,o,a;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Pe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Xe(this,"Month")}function ht(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r,o,a=[],i=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r=Oe(this.monthsShort(n,"")),o=Oe(this.months(n,"")),a.push(r),i.push(o),s.push(o),s.push(r);a.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,o);return s<=0?i=qe(a=e-1)+s:s>qe(e)?(a=e+1,i=s-qe(e)):(a=e,i=s),{year:a,dayOfYear:i}}function Ct(e,t,n){var r,o,a=wt(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+St(o=e.year()-1,t,n):i>St(e.year(),t,n)?(r=i-St(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function St(e,t,n){var r=wt(e,t,n),o=wt(e+1,t,n);return(qe(e)-r+o)/7}function kt(e){return Ct(e,this._week.dow,this._week.doy).week}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),Ee("w",fe,ke),Ee("ww",fe,le),Ee("W",fe,ke),Ee("WW",fe,le),Me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Pe(e)});var _t={dow:0,doy:6};function Et(){return this._week.dow}function jt(){return this._week.doy}function Nt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Rt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Tt(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),Ee("d",fe),Ee("e",fe),Ee("E",fe),Ee("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ee("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e}),Me(["d","e","E"],function(e,t,n,r){t[r]=Pe(e)});var Dt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),At=Se,Ft=Se,Lt=Se;function zt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Tt(n,this._week.dow):e?n[e.day()]:n}function $t(e){return!0===e?Tt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Tt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Ye.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=Ye.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=Ye.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=Ye.call(this._weekdaysParse,i))||-1!==(o=Ye.call(this._shortWeekdaysParse,i))||-1!==(o=Ye.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=Ye.call(this._shortWeekdaysParse,i))||-1!==(o=Ye.call(this._weekdaysParse,i))||-1!==(o=Ye.call(this._minWeekdaysParse,i))?o:null:-1!==(o=Ye.call(this._minWeekdaysParse,i))||-1!==(o=Ye.call(this._weekdaysParse,i))||-1!==(o=Ye.call(this._shortWeekdaysParse,i))?o:null}function Bt(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=Rt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=At),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Oe(this.weekdaysMin(n,"")),o=Oe(this.weekdaysShort(n,"")),a=Oe(this.weekdays(n,"")),i.push(r),s.push(o),l.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function Jt(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Xt),$("k",["kk",2],0,Zt),$("hmm",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),Ee("a",en),Ee("A",en),Ee("H",fe,_e),Ee("h",fe,ke),Ee("k",fe,ke),Ee("HH",fe,le),Ee("hh",fe,le),Ee("kk",fe,le),Ee("hmm",pe),Ee("hmmss",he),Ee("Hmm",pe),Ee("Hmmss",he),De(["H","HH"],$e),De(["k","kk"],function(e,t,n){var r=Pe(e);t[$e]=24===r?0:r}),De(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),De(["h","hh"],function(e,t,n){t[$e]=Pe(e),g(n).bigHour=!0}),De("hmm",function(e,t,n){var r=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r)),g(n).bigHour=!0}),De("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r,2)),t[Ve]=Pe(e.substr(o)),g(n).bigHour=!0}),De("Hmm",function(e,t,n){var r=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r))}),De("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Pe(e.substr(0,r)),t[He]=Pe(e.substr(r,2)),t[Ve]=Pe(e.substr(o))});var nn=/[ap]\.?m?\.?/i,rn=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:D,longDateFormat:W,invalidDate:Y,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:rt,monthsShort:ot,week:_t,weekdays:Dt,weekdaysMin:It,weekdaysShort:Mt,meridiemParse:nn},ln={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=dn(e[a]).split("-")).length,n=(n=dn(e[a+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(o,n)>=t-1)break;t--}a++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function hn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,wx("./locale/"+t),mn(n)}catch(e){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=u(t)?vn(e):gn(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new T(P(r,t)),un[e]&&un[e].forEach(function(e){gn(e.name,e.config)}),mn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,o=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(P(ln[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=P(o,t),null==r&&(t.abbr=e),(n=new T(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!a(e)){if(t=hn(e))return t;e=[e]}return fn(e)}function bn(){return E(ln)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Le]<0||n[Le]>11?Le:n[ze]<1||n[ze]>nt(n[Fe],n[Le])?ze:n[$e]<0||n[$e]>24||24===n[$e]&&(0!==n[He]||0!==n[Ve]||0!==n[Be])?$e:n[He]<0||n[He]>59?He:n[Ve]<0||n[Ve]>59?Ve:n[Be]<0||n[Be]>999?Be:-1,g(e)._overflowDayOfYear&&(t<Fe||t>ze)&&(t=ze),g(e)._overflowWeeks&&-1===t&&(t=Ue),g(e)._overflowWeekday&&-1===t&&(t=We),g(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,kn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_n=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,jn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(e){var t,n,r,o,a,i,s=e._i,l=xn.exec(s)||Cn.exec(s),u=kn.length,c=_n.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(kn[t][1].exec(l[1])){o=kn[t][0],r=!1!==kn[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(_n[t][1].exec(l[3])){a=(l[2]||" ")+_n[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Sn.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Hn(e)}else e._isValid=!1}function Rn(e,t,n,r,o,a){var i=[Pn(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Tn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dn(e,t,n){return!e||Mt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Mn(e,t,n){if(e)return Nn[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function In(e){var t,n=jn.exec(Tn(e._i));if(n){if(t=Rn(n[4],n[3],n[2],n[5],n[6],n[7]),!Dn(n[1],t,e))return;e._a=t,e._tzm=Mn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function An(e){var t=En.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,In(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fn(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,o,a,i=[];if(!e._d){for(r=Ln(e),e._w&&null==e._a[ze]&&null==e._a[Le]&&$n(e),null!=e._dayOfYear&&(a=Fn(e._a[Fe],r[Fe]),(e._dayOfYear>qe(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[Le]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[$e]&&0===e._a[He]&&0===e._a[Ve]&&0===e._a[Be]&&(e._nextDay=!0,e._a[$e]=0),e._d=(e._useUTC?bt:vt).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function $n(e){var t,n,r,o,a,i,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=Fn(t.GG,e._a[Fe],Ct(Kn(),1,4).year),r=Fn(t.W,1),((o=Fn(t.E,1))<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Ct(Kn(),a,i),n=Fn(t.gg,e._a[Fe],u.year),r=Fn(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),r<1||r>St(n,a,i)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=xt(n,r,o,a,i),e._a[Fe]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,a,i,s,l,u=""+e._i,c=u.length,d=0;for(l=(o=U(e._f,e._locale).match(A)||[]).length,t=0;t<l;t++)a=o[t],(n=(u.match(je(a,e))||[])[0])&&((i=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(i),u=u.slice(u.indexOf(n)+n.length),d+=n.length),z[a]?(n?g(e).empty=!1:g(e).unusedTokens.push(a),Ie(a,n,e)):e._strict&&!n&&g(e).unusedTokens.push(a);g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),e._a[$e]<=12&&!0===g(e).bigHour&&e._a[$e]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[$e]=Vn(e._locale,e._a[$e],e._meridiem),null!==(s=g(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(s,e._a[Fe])),zn(e),wn(e)}else In(e);else On(e)}function Vn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,o,a,i,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)a=0,i=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Hn(t),y(t)&&(i=!0),a+=g(t).charsLeftOver,a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));p(e,n||t)}function Un(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),zn(e)}}function Wn(e){var t=new C(wn(qn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new C(wn(t)):(d(t)?e._d=t:a(n)?Bn(e):n?Hn(e):Yn(e),y(e)||(e._d=null),e))}function Yn(e){var t=e._i;u(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?An(e):a(t)?(e._a=f(t.slice(0),function(e){return parseInt(e,10)}),zn(e)):i(t)?Un(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Gn(e,t,n,r,o){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Wn(s)}function Kn(e,t,n,r){return Gn(e,t,n,r,!1)}r.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Xn=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Zn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Zn("isBefore",[].slice.call(arguments,0))}function er(){return Zn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(s(e,t)&&(-1===Ye.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==Pe(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Nr(NaN)}function ir(e){var t=re(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ir}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)Pe(e[r])!==Pe(t[r])&&i++;return i+a}function cr(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)})}cr("Z",":"),cr("ZZ",""),Ee("Z",xe),Ee("ZZ",xe),De(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=fr(xe,e)});var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+Pe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(S(e)||d(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Kn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(xe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=hr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==e&&(!t||this._changeInProgress?Dr(this,Nr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:hr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=qn(t))._a?(e=t._isUTC?h(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function kr(){return!!this.isValid()&&this._isUTC}function _r(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nr(e,t){var n,r,o,a=e,i=null;return sr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Er.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:Pe(i[ze])*n,h:Pe(i[$e])*n,m:Pe(i[He])*n,s:Pe(i[Ve])*n,ms:Pe(lr(1e3*i[Be]))*n}):(i=jr.exec(e))?(n="-"===i[1]?-1:1,a={y:Or(i[2],n),M:Or(i[3],n),w:Or(i[4],n),d:Or(i[5],n),h:Or(i[6],n),m:Or(i[7],n),s:Or(i[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Pr(Kn(a.from),Kn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),r=new ir(a),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Rr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Rr(e,t):((n=Rr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Dr(this,Nr(n,r),e),this}}function Dr(e,t,n,o){var a=t._milliseconds,i=lr(t._days),s=lr(t._months);e.isValid()&&(o=null==o||o,s&&ft(e,Xe(e,"Month")+s*n),i&&Ze(e,"Date",Xe(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),o&&r.updateOffset(e,i||s))}Nr.fn=ir.prototype,Nr.invalid=ar;var Mr=Tr(1,"add"),Ir=Tr(-1,"subtract");function Ar(e){return"string"==typeof e||e instanceof String}function Fr(e){return S(e)||d(e)||Ar(e)||c(e)||zr(e)||Lr(e)||null==e}function Lr(e){var t,n,r=i(e)&&!l(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=a.length;for(t=0;t<u;t+=1)n=a[t],o=o||s(e,n);return r&&o}function zr(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&Ar(e)}).length),t&&n}function $r(e){var t,n,r=i(e)&&!l(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],o=o||s(e,n);return r&&o}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(e,t){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(e=arguments[0],t=void 0):$r(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),o=pr(n,this).startOf("day"),a=r.calendarFormat(this,o)||"sameElse",i=t&&(O(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Kn(n)))}function Br(){return new C(this)}function Ur(e,t){var n=S(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=S(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function qr(e,t,n,r){var o=S(e)?e:Kn(e),a=S(t)?t:Kn(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Yr(e,t){var n,r=S(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":a=Xr(this,r)/12;break;case"month":a=Xr(this,r);break;case"quarter":a=Xr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:Re(a)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(S(e)&&e.isValid()||Kn(e).isValid())?Nr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Kn(),e)}function oo(e,t){return this.isValid()&&(S(e)&&e.isValid()||Kn(e).isValid())?Nr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.to(Kn(),e)}function io(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function lo(){return this._locale}var uo=1e3,co=60*uo,fo=60*co,po=3506328*fo;function ho(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-po:new Date(e,t,n).valueOf()}function go(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-po:Date.UTC(e,t,n)}function yo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ho(t+(this._isUTC?0:this.utcOffset()*co),fo);break;case"minute":t=this._d.valueOf(),t-=ho(t,co);break;case"second":t=this._d.valueOf(),t-=ho(t,uo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fo-ho(t+(this._isUTC?0:this.utcOffset()*co),fo)-1;break;case"minute":t=this._d.valueOf(),t+=co-ho(t,co)-1;break;case"second":t=this._d.valueOf(),t+=uo-ho(t,uo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bo(){return this._d.valueOf()-6e4*(this._offset||0)}function wo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function Co(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function So(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ko(){return this.isValid()?this.toISOString():null}function _o(){return y(this)}function Eo(){return p({},g(this))}function jo(){return g(this).overflow}function No(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oo(e,t){var n,o,a,i=this._eras||vn("en")._eras;for(n=0,o=i.length;n<o;++n)switch("string"==typeof i[n].since&&(a=r(i[n].since).startOf("day"),i[n].since=a.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=r(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf()}return i}function Ro(e,t,n){var r,o,a,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(a=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([a,i,s].indexOf(e)>=0)return l[r]}function Po(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function To(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Do(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Mo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Io(){var e,t,n,o,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,o=this.clone().startOf("day").valueOf(),a[e].since<=o&&o<=a[e].until||a[e].until<=o&&o<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Ao(e){return s(this,"_erasNameRegex")||Bo.call(this),e?this._erasNameRegex:this._erasRegex}function Fo(e){return s(this,"_erasAbbrRegex")||Bo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Lo(e){return s(this,"_erasNarrowRegex")||Bo.call(this),e?this._erasNarrowRegex:this._erasRegex}function zo(e,t){return t.erasAbbrRegex(e)}function $o(e,t){return t.erasNameRegex(e)}function Ho(e,t){return t.erasNarrowRegex(e)}function Vo(e,t){return t._eraYearOrdinalRegex||ve}function Bo(){var e,t,n,r,o,a=[],i=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=Oe(u[e].name),r=Oe(u[e].abbr),o=Oe(u[e].narrow),i.push(n),a.push(r),s.push(o),l.push(n),l.push(r),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Uo(e,t){$(0,[e,e.length],0,t)}function Wo(e){return Xo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function qo(e){return Xo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Yo(){return St(this.year(),1,4)}function Go(){return St(this.isoWeekYear(),1,4)}function Ko(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Qo(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Xo(e,t,n,r,o){var a;return null==e?Ct(this,r,o).year:(t>(a=St(e,r,o))&&(t=a),Zo.call(this,e,t,n,r,o))}function Zo(e,t,n,r,o){var a=xt(e,t,n,r,o),i=bt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Jo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Ee("N",zo),Ee("NN",zo),Ee("NNN",zo),Ee("NNNN",$o),Ee("NNNNN",Ho),De(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e}),Ee("y",ve),Ee("yy",ve),Ee("yyy",ve),Ee("yyyy",ve),Ee("yo",Vo),De(["y","yy","yyy","yyyy"],Fe),De(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Fe]=n._locale.eraYearOrdinalParse(e,o):t[Fe]=parseInt(e,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Uo("gggg","weekYear"),Uo("ggggg","weekYear"),Uo("GGGG","isoWeekYear"),Uo("GGGGG","isoWeekYear"),Ee("G",be),Ee("g",be),Ee("GG",fe,le),Ee("gg",fe,le),Ee("GGGG",ge,ce),Ee("gggg",ge,ce),Ee("GGGGG",ye,de),Ee("ggggg",ye,de),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Pe(e)}),Me(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),Ee("Q",se),De("Q",function(e,t){t[Le]=3*(Pe(e)-1)}),$("D",["DD",2],"Do","date"),Ee("D",fe,ke),Ee("DD",fe,le),Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),De(["D","DD"],ze),De("Do",function(e,t){t[ze]=Pe(e.match(fe)[0])});var ea=Qe("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}$("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",me),Ee("DDDD",ue),De(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Pe(e)}),$("m",["mm",2],0,"minute"),Ee("m",fe,_e),Ee("mm",fe,le),De(["m","mm"],He);var na=Qe("Minutes",!1);$("s",["ss",2],0,"second"),Ee("s",fe,_e),Ee("ss",fe,le),De(["s","ss"],Ve);var ra,oa,aa=Qe("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ee("S",me,se),Ee("SS",me,le),Ee("SSS",me,ue),ra="SSSS";ra.length<=9;ra+="S")Ee(ra,ve);function ia(e,t){t[Be]=Pe(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")De(ra,ia);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}oa=Qe("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var ua=C.prototype;function ca(e){return Kn(1e3*e)}function da(){return Kn.apply(null,arguments).parseZone()}function fa(e){return e}ua.add=Mr,ua.calendar=Vr,ua.clone=Br,ua.diff=Qr,ua.endOf=vo,ua.format=to,ua.from=no,ua.fromNow=ro,ua.to=oo,ua.toNow=ao,ua.get=Je,ua.invalidAt=jo,ua.isAfter=Ur,ua.isBefore=Wr,ua.isBetween=qr,ua.isSame=Yr,ua.isSameOrAfter=Gr,ua.isSameOrBefore=Kr,ua.isValid=_o,ua.lang=so,ua.locale=io,ua.localeData=lo,ua.max=Xn,ua.min=Qn,ua.parsingFlags=Eo,ua.set=et,ua.startOf=yo,ua.subtract=Ir,ua.toArray=Co,ua.toObject=So,ua.toDate=xo,ua.toISOString=Jr,ua.inspect=eo,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=ko,ua.toString=Zr,ua.unix=wo,ua.valueOf=bo,ua.creationData=No,ua.eraName=To,ua.eraNarrow=Do,ua.eraAbbr=Mo,ua.eraYear=Io,ua.year=Ge,ua.isLeapYear=Ke,ua.weekYear=Wo,ua.isoWeekYear=qo,ua.quarter=ua.quarters=Jo,ua.month=pt,ua.daysInMonth=ht,ua.week=ua.weeks=Nt,ua.isoWeek=ua.isoWeeks=Ot,ua.weeksInYear=Ko,ua.weeksInWeekYear=Qo,ua.isoWeeksInYear=Yo,ua.isoWeeksInISOWeekYear=Go,ua.date=ea,ua.day=ua.days=Ut,ua.weekday=Wt,ua.isoWeekday=qt,ua.dayOfYear=ta,ua.hour=ua.hours=rn,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=oa,ua.utcOffset=mr,ua.utc=yr,ua.local=vr,ua.parseZone=br,ua.hasAlignedHourOffset=wr,ua.isDST=xr,ua.isLocal=Sr,ua.isUtcOffset=kr,ua.isUtc=_r,ua.isUTC=_r,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=_("dates accessor is deprecated. Use date instead.",ea),ua.months=_("months accessor is deprecated. Use month instead",pt),ua.years=_("years accessor is deprecated. Use year instead",Ge),ua.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cr);var pa=T.prototype;function ha(e,t,n,r){var o=vn(),a=h().set(r,t);return o[n](a,e)}function ma(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return ha(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ha(e,r,n,"month");return o}function ga(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,a=vn(),i=e?a._week.dow:0,s=[];if(null!=n)return ha(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=ha(t,(o+i)%7,r,"day");return s}function ya(e,t){return ma(e,t,"months")}function va(e,t){return ma(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function xa(e,t,n){return ga(e,t,n,"weekdaysMin")}pa.calendar=M,pa.longDateFormat=q,pa.invalidDate=G,pa.ordinal=X,pa.preparse=fa,pa.postformat=fa,pa.relativeTime=J,pa.pastFuture=ee,pa.set=R,pa.eras=Oo,pa.erasParse=Ro,pa.erasConvertYear=Po,pa.erasAbbrRegex=Fo,pa.erasNameRegex=Ao,pa.erasNarrowRegex=Lo,pa.months=lt,pa.monthsShort=ut,pa.monthsParse=dt,pa.monthsRegex=gt,pa.monthsShortRegex=mt,pa.week=kt,pa.firstDayOfYear=jt,pa.firstDayOfWeek=Et,pa.weekdays=zt,pa.weekdaysMin=Ht,pa.weekdaysShort=$t,pa.weekdaysParse=Bt,pa.weekdaysRegex=Yt,pa.weekdaysShortRegex=Gt,pa.weekdaysMinRegex=Kt,pa.isPM=tn,pa.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",vn);var Ca=Math.abs;function Sa(){var e=this._data;return this._milliseconds=Ca(this._milliseconds),this._days=Ca(this._days),this._months=Ca(this._months),e.milliseconds=Ca(e.milliseconds),e.seconds=Ca(e.seconds),e.minutes=Ca(e.minutes),e.hours=Ca(e.hours),e.months=Ca(e.months),e.years=Ca(e.years),this}function ka(e,t,n,r){var o=Nr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _a(e,t){return ka(this,e,t,1)}function Ea(e,t){return ka(this,e,t,-1)}function ja(e){return e<0?Math.floor(e):Math.ceil(e)}function Na(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*ja(Ra(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=Re(a/1e3),l.seconds=e%60,t=Re(e/60),l.minutes=t%60,n=Re(t/60),l.hours=n%24,i+=Re(n/24),s+=o=Re(Oa(i)),i-=ja(Ra(o)),r=Re(s/12),s%=12,l.days=i,l.months=s,l.years=r,this}function Oa(e){return 4800*e/146097}function Ra(e){return 146097*e/4800}function Pa(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oa(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ra(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ta(e){return function(){return this.as(e)}}var Da=Ta("ms"),Ma=Ta("s"),Ia=Ta("m"),Aa=Ta("h"),Fa=Ta("d"),La=Ta("w"),za=Ta("M"),$a=Ta("Q"),Ha=Ta("y"),Va=Da;function Ba(){return Nr(this)}function Ua(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var qa=Wa("milliseconds"),Ya=Wa("seconds"),Ga=Wa("minutes"),Ka=Wa("hours"),Qa=Wa("days"),Xa=Wa("months"),Za=Wa("years");function Ja(){return Re(this.days()/7)}var ei=Math.round,ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ri(e,t,n,r){var o=Nr(e).abs(),a=ei(o.as("s")),i=ei(o.as("m")),s=ei(o.as("h")),l=ei(o.as("d")),u=ei(o.as("M")),c=ei(o.as("w")),d=ei(o.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,ni.apply(null,f)}function oi(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ai(e,t){return void 0!==ti[e]&&(void 0===t?ti[e]:(ti[e]=t,"s"===e&&(ti.ss=t-1),!0))}function ii(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ti;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},ti,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=ri(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var si=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ui(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,l=si(this._milliseconds)/1e3,u=si(this._days),c=si(this._months),d=this.asSeconds();return d?(e=Re(l/60),t=Re(e/60),l%=60,e%=60,n=Re(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=li(this._months)!==li(d)?"-":"",i=li(this._days)!==li(d)?"-":"",s=li(this._milliseconds)!==li(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ci=ir.prototype;return ci.isValid=or,ci.abs=Sa,ci.add=_a,ci.subtract=Ea,ci.as=Pa,ci.asMilliseconds=Da,ci.asSeconds=Ma,ci.asMinutes=Ia,ci.asHours=Aa,ci.asDays=Fa,ci.asWeeks=La,ci.asMonths=za,ci.asQuarters=$a,ci.asYears=Ha,ci.valueOf=Va,ci._bubble=Na,ci.clone=Ba,ci.get=Ua,ci.milliseconds=qa,ci.seconds=Ya,ci.minutes=Ga,ci.hours=Ka,ci.days=Qa,ci.weeks=Ja,ci.months=Xa,ci.years=Za,ci.humanize=ii,ci.toISOString=ui,ci.toString=ui,ci.toJSON=ui,ci.locale=io,ci.localeData=lo,ci.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ui),ci.lang=so,$("X",0,0,"unix"),$("x",0,0,"valueOf"),Ee("x",be),Ee("X",Ce),De("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),De("x",function(e,t,n){n._d=new Date(Pe(e))}),
|
|
140
140
|
//! moment.js
|
|
141
|
-
r.version="2.30.1",o(Kn),r.fn=ua,r.min=Jn,r.max=er,r.now=tr,r.utc=h,r.unix=ca,r.months=ya,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Nr,r.isMoment=S,r.weekdays=ba,r.parseZone=da,r.localeData=vn,r.isDuration=sr,r.monthsShort=va,r.weekdaysMin=xa,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=wa,r.normalizeUnits=ne,r.relativeTimeRounding=oi,r.relativeTimeThreshold=ai,r.calendarFormat=Hr,r.prototype=ua,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(Sx)),Sx.exports),_x=n(kx),Ex="Dialog",[jx]=ja(Ex),[Nx,Ox]=jx(Ex),Rx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=D.useRef(null),l=D.useRef(null),[u,c]=Pa({prop:r,defaultProp:o??!1,onChange:a,caller:Ex});return m.jsx(Nx,{scope:t,triggerRef:s,contentRef:l,contentId:mi(),titleId:mi(),descriptionId:mi(),open:u,onOpenChange:c,onOpenToggle:D.useCallback(()=>c(e=>!e),[c]),modal:i,children:n})};Rx.displayName=Ex;var Px="DialogTrigger";D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ox(Px,n),a=Ea(t,o.triggerRef);return m.jsx(za.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xx(o.open),...r,ref:a,onClick:Sa(e.onClick,o.onOpenToggle)})}).displayName=Px;var Tx="DialogPortal",[Dx,Mx]=jx(Tx,{forceMount:void 0}),Ix=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ox(Tx,t);return m.jsx(Dx,{scope:t,forceMount:n,children:D.Children.map(r,e=>m.jsx(Pl,{present:n||a.open,children:m.jsx(Rl,{asChild:!0,container:o,children:e})}))})};Ix.displayName=Tx;var Ax="DialogOverlay",Fx=D.forwardRef((e,t)=>{const n=Mx(Ax,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ox(Ax,e.__scopeDialog);return a.modal?m.jsx(Pl,{present:r||a.open,children:m.jsx(zx,{...o,ref:t})}):null});Fx.displayName=Ax;var Lx=Ma("DialogOverlay.RemoveScroll"),zx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ox(Ax,n);return m.jsx(Wu,{as:Lx,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(za.div,{"data-state":Xx(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),$x="DialogContent",Hx=D.forwardRef((e,t)=>{const n=Mx($x,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ox($x,e.__scopeDialog);return m.jsx(Pl,{present:r||a.open,children:a.modal?m.jsx(Vx,{...o,ref:t}):m.jsx(Bx,{...o,ref:t})})});Hx.displayName=$x;var Vx=D.forwardRef((e,t)=>{const n=Ox($x,e.__scopeDialog),r=D.useRef(null),o=Ea(t,n.contentRef,r);return D.useEffect(()=>{const e=r.current;if(e)return ru(e)},[]),m.jsx(Ux,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sa(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Sa(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Sa(e.onFocusOutside,e=>e.preventDefault())})}),Bx=D.forwardRef((e,t)=>{const n=Ox($x,e.__scopeDialog),r=D.useRef(!1),o=D.useRef(!1);return m.jsx(Ux,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Ux=D.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ox($x,n),l=D.useRef(null),u=Ea(t,l);return ti(),m.jsxs(m.Fragment,{children:[m.jsx(ii,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(Qa,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Xx(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(tC,{titleId:s.titleId}),m.jsx(nC,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Wx="DialogTitle",qx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ox(Wx,n);return m.jsx(za.h2,{id:o.titleId,...r,ref:t})});qx.displayName=Wx;var Yx="DialogDescription",Gx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ox(Yx,n);return m.jsx(za.p,{id:o.descriptionId,...r,ref:t})});Gx.displayName=Yx;var Kx="DialogClose",Qx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ox(Kx,n);return m.jsx(za.button,{type:"button",...r,ref:t,onClick:Sa(e.onClick,()=>o.onOpenChange(!1))})});function Xx(e){return e?"open":"closed"}Qx.displayName=Kx;var Zx="DialogTitleWarning",[Jx,eC]=function(e,t){const n=D.createContext(t),r=e=>{const{children:t,...r}=e,o=D.useMemo(()=>r,Object.values(r));return m.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=D.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Zx,{contentName:$x,titleName:Wx,docsSlug:"dialog"}),tC=({titleId:e})=>{const t=eC(Zx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return D.useEffect(()=>{if(e){document.getElementById(e)||console.error(n)}},[n,e]),null},nC=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eC("DialogDescriptionWarning").contentName}}.`;return D.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}},[n,e,t]),null},rC=Rx,oC=Ix,aC=Fx,iC=Hx,sC=qx,lC=Gx,uC=Qx;const cC=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,dC=Jr,fC=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return dC(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=cC(t)||cC(r);return o[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return dC(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},pC=rC,hC=uC,mC=oC,gC=D.forwardRef(({className:e,...t},n)=>m.jsx(aC,{className:ma("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));gC.displayName=aC.displayName;const yC=fC("fixed z-50 gap-4 bg-white p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:bg-neutral-950",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),vC=D.forwardRef(({side:e="right",className:t,children:n,...r},o)=>m.jsxs(mC,{children:[m.jsx(gC,{}),m.jsx(iC,{ref:o,className:ma(yC({side:e}),t),...r,children:n})]}));vC.displayName=iC.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(sC,{ref:n,className:ma("text-lg font-semibold text-neutral-950 dark:text-neutral-50",e),...t})).displayName=sC.displayName;function bC({children:e,isOpen:t,onClose:n,title:r,className:o}){const[a,i]=D.useState(!1);return m.jsx(pC,{open:t,onOpenChange:n,children:m.jsxs(vC,{className:ma("p-[30px] rounded-l-xl lg:max-w-full space-y-6 overflow-auto",o,a?"w-full rounded-l-none":null),children:[m.jsxs("div",{className:"flex items-center justify-between border-b pb-2",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-xl",children:r}),m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("button",{className:"w-9 h-9 flex items-center justify-center rounded-md hover:ring-2 ring-inset ring-dark",onClick:()=>{i(!a)},children:wv.expand}),m.jsx(hC,{asChild:!0,className:"w-9 h-9 rounded-md flex items-center justify-center bg-danger_light",children:m.jsxs("button",{children:[" ",M.cloneElement(wv.close2,{fill:"#F1416C"})]})})]})]}),e]})})}function wC({children:e,className:t}){return m.jsx("div",{className:ma("border rounded-xl py-[30px] border-gray-200 ",t),children:e})}function xC(){return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(Ca,{className:"h-5 w-[500px] rounded-md"}),m.jsx(Ca,{className:"h-5 w-[500px] rounded-md"})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx(Ca,{className:"h-9 w-[140px] rounded-md"}),m.jsx(Ca,{className:"h-9 w-[140px] rounded-md"})]})]}),m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsxs(wC,{className:"p-4 flex flex-col gap-3",children:[m.jsx(Ca,{className:"flex-grow w-full rounded-md"}),m.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[m.jsx(Ca,{className:"h-[79px] rounded-md"}),m.jsx(Ca,{className:"h-[79px] rounded-md"}),m.jsx(Ca,{className:"h-[79px] rounded-md"})]})]}),m.jsxs("div",{className:"space-y-8 col-span-2",children:[m.jsx(Ca,{className:"h-9 w-full rounded-md"}),m.jsx(Ca,{className:"h-4 w-[326px] rounded-md"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Ca,{className:"h-3.5 w-[150px] rounded-md"}),m.jsx(Ca,{className:"h-10 w-full rounded-md"})]}),m.jsx(Ca,{className:"h-9 w-[500px] rounded-md"}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx(Ca,{className:"h-12 w-[115px] rounded-md"}),m.jsx(Ca,{className:"h-12 w-[150px] rounded-md"}),m.jsx(Ca,{className:"h-12 w-[171px] rounded-md"})]}),m.jsx(Ca,{className:"h-3.5 w-[337px] rounded-md"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(Ca,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ca,{className:"h-3.5 w-[140px] rounded-md"})]}),m.jsx("div",{className:"grid grid-cols-4 gap-3",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx(Ca,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ca,{className:"h-10 w-[200px] rounded-md"})]},t))}),m.jsx("div",{className:"space-y-6",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:" gap-4 flex flex-col",children:[m.jsx(Ca,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ca,{className:"h-[163px] w-[896px] rounded-md"})]},t))})]})}D.forwardRef(({className:e,...t},n)=>m.jsx(lC,{ref:n,className:ma("text-sm text-neutral-500 dark:text-neutral-400",e),...t})).displayName=lC.displayName;var CC="https://unpkg.com/@simpoobusiness/sdk/dist/assets/placeholder-image94ba15ea00cc66fe.svg";function SC({images:e}){return m.jsxs(wC,{className:"p-5 flex flex-col gap-2.5",children:[m.jsx("div",{className:"relative flex-grow",children:m.jsx("img",{src:e?.[0]??CC,sizes:"100%",alt:"item image",draggable:!1,className:"rounded-xl object-cover w-full h-full"})}),m.jsx("div",{className:"flex gap-4 overflow-auto",children:e.filter((e,t)=>0!==t).map((e,t)=>m.jsx("div",{className:"w-[89px] h-[79px] relative shrink-0",children:m.jsx("img",{src:e??CC,alt:"item image",draggable:!1,className:"rounded-xl object-cover h-full w-full"})},t))})]})}var kC=Symbol.for("react.lazy"),_C=I[" use ".trim().toString()];function EC(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===kC&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function jC(e){const t=D.forwardRef((e,t)=>{let{children:n,...r}=e;if(EC(n)&&"function"==typeof _C&&(n=_C(n._payload)),D.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==D.Fragment&&(o.ref=t?_a(t,e):e),D.cloneElement(n,o)}return D.Children.count(n)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var NC=Symbol("radix.slottable");function OC(e){return D.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===NC}var RC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=function(e){const t=jC(e),n=D.forwardRef((e,n)=>{let{children:r,...o}=e;EC(r)&&"function"==typeof _C&&(r=_C(r._payload));const a=D.Children.toArray(r),i=a.find(OC);if(i){const e=i.props.children,r=a.map(t=>t===i?D.Children.count(e)>1?D.Children.only(null):D.isValidElement(e)?e.props.children:null:t);return m.jsx(t,{...o,ref:n,children:D.isValidElement(e)?D.cloneElement(e,void 0,r):null})}return m.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=D.forwardRef((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),PC="horizontal",TC=["horizontal","vertical"],DC=D.forwardRef((e,t)=>{const{decorative:n,orientation:r=PC,...o}=e,a=function(e){return TC.includes(e)}(r)?r:PC,i=n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return m.jsx(RC.div,{"data-orientation":a,...i,...o,ref:t})});DC.displayName="Separator";var MC=DC;const IC=D.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>m.jsx(MC,{ref:o,decorative:n,orientation:t,className:ma("shrink-0 bg-gray-300 dark:bg-neutral-800","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...r}));function AC({data:e,printLabel:t}){const n=[{tag:"reorder level",value:`${e?.reorder_level} ${e?.unit_resource?.name}`},{tag:"packing groups",value:`${e?.item_group?.length} group(s)`},{tag:"variations",value:`${e?.variation?.length} variable(s)`},{tag:"extras",value:`${e?.extras?.length} extras`}];return m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsx(SC,{images:e?.images?.map(e=>e.image)}),m.jsxs("div",{className:"col-span-2 flex flex-col gap-9",children:[m.jsxs("div",{className:"flex gap-4 bg-primary_light p-2.5 rounded-md",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Cost price:"," ",m.jsx("span",{className:"text-dark font-bold text-[15px]",children:kv(Number(e?.cost_price))})]}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Selling price:"," ",e?.duplicate_prices?.map((t,n)=>m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-dark font-bold text-[15px] px-2",children:kv(Number(t.selling_price))},n),n<e?.duplicate_prices?.length-1&&"-"]}))]})]}),m.jsxs("div",{className:"flex gap-2.5",children:[m.jsxs("p",{className:"text-gray-800 text-sm font-medium",children:["In stock:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[_v(Number(e?.quantity))," ",e?.item_unit]})]}),"|",m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Total sold:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[_v(e?.total_sold)," ",e?.item_unit]})]})]}),m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("h2",{className:"text-gray-800 text-sm font-bold",children:"Description"}),m.jsx("p",{className:"text-gray-800 font-normal text-sm",children:e?.description??"No description..."})]}),m.jsx("div",{className:"flex gap-5 items-center",children:n.map((e,t)=>m.jsxs("div",{className:"flex gap-5 items-center",children:[m.jsxs("div",{className:"flex flex-col gap-2.5",children:[m.jsx("p",{className:"text-dark font-medium text-sm first-letter:uppercase",children:e.tag}),m.jsx("p",{className:"text-primary",children:e.value})]}),t<n.length-1&&m.jsx(IC,{className:"bg-[#7E8299] h-[30px] w-[1px]"})]},t))}),m.jsxs("div",{className:"flex gap-2.5 items-center",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium flex gap-2",children:["Category:"," ",e?.category?.map((e,t)=>m.jsxs("span",{className:"text-dark font-normal text-[15px]",children:[e.name," "]},t))]}),m.jsx(IC,{className:"bg-[#7E8299] h-[14px] w-[1px]"}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Collection:"," ",e?.item_tags?.map((e,t)=>m.jsx("span",{className:"text-dark font-normal text-[15px]",children:e.name},t))]})]})]})]})}IC.displayName=MC.displayName;var FC=.999,LC=/[\\\/_+.#"@\[\(\{&]/,zC=/[\\\/_+.#"@\[\(\{&]/g,$C=/[\s-]/,HC=/[\s-]/g;function VC(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,u,c,d,f=r.charAt(a),p=n.indexOf(f,o),h=0;p>=0;)(l=VC(e,t,n,r,p+1,a+1,i))>h&&(p===o?l*=1:LC.test(e.charAt(p-1))?(l*=.8,(c=e.slice(o,p-1).match(zC))&&o>0&&(l*=Math.pow(FC,c.length))):$C.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(HC))&&o>0&&(l*=Math.pow(FC,d.length))):(l*=.17,o>0&&(l*=Math.pow(FC,p-o))),e.charAt(p)!==t.charAt(a)&&(l*=.9999)),(l<.1&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&(.1*(u=VC(e,t,n,r,p+1,a+2,i))>l&&(l=.1*u)),l>h&&(h=l),p=n.indexOf(f,p+1);return i[s]=h,h}function BC(e){return e.toLowerCase().replace(HC," ")}function UC(e,t,n){return VC(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,BC(e),BC(t),0,0,{})}var WC='[cmdk-group=""]',qC='[cmdk-group-items=""]',YC='[cmdk-item=""]',GC=`${YC}:not([aria-disabled="true"])`,KC="cmdk-item-select",QC="data-value",XC=(e,t,n)=>UC(e,t,n),ZC=D.createContext(void 0),JC=()=>D.useContext(ZC),eS=D.createContext(void 0),tS=()=>D.useContext(eS),nS=D.createContext(void 0),rS=D.forwardRef((e,t)=>{let n=yS(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=yS(()=>new Set),o=yS(()=>new Map),a=yS(()=>new Map),i=yS(()=>new Set),s=mS(e),{label:l,children:u,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,v=mi(),b=mi(),w=mi(),x=D.useRef(null),C=wS();gS(()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}},[c]),gS(()=>{C(6,O)},[]);let S=D.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),E(),C(1,j);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(v))||o.focus()}if(C(7,()=>{var e;n.current.selectedItemId=null==(e=R())?void 0:e.id,S.emit()}),r||C(5,O),void 0!==(null==(a=s.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(l=(i=s.current).onValueChange)||l.call(i,e))}}S.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),k=D.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,_(t,r)),C(2,()=>{E(),S.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),C(3,()=>{N(),E(),n.current.value||j(),S.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();C(4,()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&j(),S.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:w,labelId:b,listInnerRef:x}),[]);function _(e,t){var r,o;let a=null!=(o=null==(r=s.current)?void 0:r.filter)?o:XC;return e?a(e,n.current.search,t):0}function E(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=x.current;P().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(qC);t?t.appendChild(e.parentElement===t?e:e.closest(`${qC} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${qC} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=x.current)?void 0:t.querySelector(`${WC}[${QC}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function j(){let e=P().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(QC);S.setState("value",t||void 0)}function N(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let u=0;for(let o of r.current){let r=_(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&u++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function O(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(WC))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=x.current)?void 0:e.querySelector(`${YC}[aria-selected="true"]`)}function P(){var e;return Array.from((null==(e=x.current)?void 0:e.querySelectorAll(GC))||[])}function T(e){let t=P()[e];t&&S.setState("value",t.getAttribute(QC))}function M(e){var t;let n=R(),r=P(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=s.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&S.setState("value",a.getAttribute(QC))}function I(e){let t,n=R(),r=null==n?void 0:n.closest(WC);for(;r&&!t;)r=e>0?pS(r,WC):hS(r,WC),t=null==r?void 0:r.querySelector(GC);t?S.setState("value",t.getAttribute(QC)):M(e)}let A=()=>T(P().length-1),F=e=>{e.preventDefault(),e.metaKey?A():e.altKey?I(1):M(1)},L=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?I(-1):M(-1)};return D.createElement(za.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":g&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":g&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),A();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(KC);t.dispatchEvent(e)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:CS},l),xS(e,e=>D.createElement(eS.Provider,{value:S},D.createElement(ZC.Provider,{value:k},e))))}),oS=D.forwardRef((e,t)=>{var n,r;let o=mi(),a=D.useRef(null),i=D.useContext(nS),s=JC(),l=mS(e),u=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;gS(()=>{if(!u)return s.item(o,null==i?void 0:i.id)},[u]);let c=bS(o,a,[e.value,e.children,a],e.keywords),d=tS(),f=vS(e=>e.value&&e.value===c.current),p=vS(e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=l.current).onSelect)||t.call(e,c.current)}function m(){d.setState("value",c.current,!0)}if(D.useEffect(()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(KC,h),()=>t.removeEventListener(KC,h)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:v,forceMount:b,keywords:w,...x}=e;return D.createElement(za.div,{ref:_a(a,t),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||s.getDisablePointerSelection()?void 0:m,onClick:g?void 0:h},e.children)}),aS=D.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=mi(),s=D.useRef(null),l=D.useRef(null),u=mi(),c=JC(),d=vS(e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(i)));gS(()=>c.group(i),[]),bS(i,s,[e.value,e.heading,l]);let f=D.useMemo(()=>({id:i,forceMount:o}),[o]);return D.createElement(za.div,{ref:_a(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&D.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),xS(e,e=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},D.createElement(nS.Provider,{value:f},e))))}),iS=D.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=D.useRef(null),a=vS(e=>!e.search);return n||a?D.createElement(za.div,{ref:_a(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),sS=D.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=tS(),i=vS(e=>e.search),s=vS(e=>e.selectedItemId),l=JC();return D.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),D.createElement(za.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),lS=D.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=D.useRef(null),i=D.useRef(null),s=vS(e=>e.selectedItemId),l=JC();return D.useEffect(()=>{if(i.current&&a.current){let e,t=i.current,n=a.current,r=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}},[]),D.createElement(za.div,{ref:_a(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},xS(e,e=>D.createElement("div",{ref:_a(i,l.listInnerRef),"cmdk-list-sizer":""},e)))}),uS=D.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return D.createElement(rC,{open:n,onOpenChange:r},D.createElement(oC,{container:i},D.createElement(aC,{"cmdk-overlay":"",className:o}),D.createElement(iC,{"aria-label":e.label,"cmdk-dialog":"",className:a},D.createElement(rS,{ref:t,...s}))))}),cS=D.forwardRef((e,t)=>vS(e=>0===e.filtered.count)?D.createElement(za.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),dS=D.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return D.createElement(za.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},xS(e,e=>D.createElement("div",{"aria-hidden":!0},e)))}),fS=Object.assign(rS,{List:lS,Item:oS,Input:sS,Group:aS,Separator:iS,Dialog:uS,Empty:cS,Loading:dS});function pS(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function hS(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function mS(e){let t=D.useRef(e);return gS(()=>{t.current=e}),t}var gS="undefined"==typeof window?D.useEffect:D.useLayoutEffect;function yS(e){let t=D.useRef();return void 0===t.current&&(t.current=e()),t}function vS(e){let t=tS(),n=()=>e(t.snapshot());return D.useSyncExternalStore(t.subscribe,n,n)}function bS(e,t,n,r=[]){let o=D.useRef(),a=JC();return gS(()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=r.map(e=>e.trim());a.value(e,s,l),null==(i=t.current)||i.setAttribute(QC,s),o.current=s}),o}var wS=()=>{let[e,t]=D.useState(),n=yS(()=>new Map);return gS(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function xS({asChild:e,children:t},n){return e&&D.isValidElement(t)?D.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var CS={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const SS=rC,kS=oC,_S=D.forwardRef(({className:e,...t},n)=>m.jsx(aC,{ref:n,className:ma("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));_S.displayName=aC.displayName;const ES=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(kS,{children:[m.jsx(_S,{}),m.jsxs(iC,{ref:r,className:ma("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,m.jsxs(uC,{className:"hidden absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[m.jsx(rf,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ES.displayName=iC.displayName;const jS=D.forwardRef(({className:e,...t},n)=>m.jsx(sC,{ref:n,className:ma("text-lg font-semibold leading-none tracking-tight",e),...t}));jS.displayName=sC.displayName;const NS=D.forwardRef(({className:e,...t},n)=>m.jsx(lC,{ref:n,className:ma("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));NS.displayName=lC.displayName;const OS=D.forwardRef(({className:e,...t},n)=>m.jsx(fS,{ref:n,className:ma("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));OS.displayName=fS.displayName;const RS=D.forwardRef(({className:e,...t},n)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx(nf,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(fS.Input,{ref:n,className:ma("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})]}));RS.displayName=fS.Input.displayName;const PS=D.forwardRef(({className:e,...t},n)=>m.jsx(fS.List,{ref:n,className:ma("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));PS.displayName=fS.List.displayName;const TS=D.forwardRef((e,t)=>m.jsx(fS.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));TS.displayName=fS.Empty.displayName;const DS=D.forwardRef(({className:e,...t},n)=>m.jsx(fS.Group,{ref:n,className:ma("overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));DS.displayName=fS.Group.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(fS.Separator,{ref:n,className:ma("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t})).displayName=fS.Separator.displayName;const MS=D.forwardRef(({className:e,...t},n)=>m.jsx(fS.Item,{ref:n,className:ma("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-primary_light data-[selected=true]:text-primary data-[disabled=true]:opacity-50 dark:data-[selected='true']:bg-primary_light dark:data-[selected=true]:text-primary",e),...t}));MS.displayName=fS.Item.displayName;var IS="Popover",[AS]=ja(IS,[cl]),FS=cl(),[LS,zS]=AS(IS),$S=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=FS(t),l=D.useRef(null),[u,c]=D.useState(!1),[d,f]=Pa({prop:r,defaultProp:o??!1,onChange:a,caller:IS});return m.jsx(El,{...s,children:m.jsx(LS,{scope:t,contentId:mi(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:D.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:D.useCallback(()=>c(!0),[]),onCustomAnchorRemove:D.useCallback(()=>c(!1),[]),modal:i,children:n})})};$S.displayName=IS;var HS="PopoverAnchor";D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=zS(HS,n),a=FS(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return D.useEffect(()=>(i(),()=>s()),[i,s]),m.jsx(jl,{...a,...r,ref:t})}).displayName=HS;var VS="PopoverTrigger",BS=D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=zS(VS,n),a=FS(n),i=Ea(t,o.triggerRef),s=m.jsx(za.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":nk(o.open),...r,ref:i,onClick:Sa(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:m.jsx(jl,{asChild:!0,...a,children:s})});BS.displayName=VS;var US="PopoverPortal",[WS,qS]=AS(US,{forceMount:void 0}),YS=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=zS(US,t);return m.jsx(WS,{scope:t,forceMount:n,children:m.jsx(Pl,{present:n||a.open,children:m.jsx(Rl,{asChild:!0,container:o,children:r})})})};YS.displayName=US;var GS="PopoverContent",KS=D.forwardRef((e,t)=>{const n=qS(GS,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=zS(GS,e.__scopePopover);return m.jsx(Pl,{present:r||a.open,children:a.modal?m.jsx(XS,{...o,ref:t}):m.jsx(ZS,{...o,ref:t})})});KS.displayName=GS;var QS=Ma("PopoverContent.RemoveScroll"),XS=D.forwardRef((e,t)=>{const n=zS(GS,e.__scopePopover),r=D.useRef(null),o=Ea(t,r),a=D.useRef(!1);return D.useEffect(()=>{const e=r.current;if(e)return ru(e)},[]),m.jsx(Wu,{as:QS,allowPinchZoom:!0,children:m.jsx(JS,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sa(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Sa(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Sa(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ZS=D.forwardRef((e,t)=>{const n=zS(GS,e.__scopePopover),r=D.useRef(!1),o=D.useRef(!1);return m.jsx(JS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),JS=D.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=zS(GS,n),p=FS(n);return ti(),m.jsx(ii,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(Qa,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:m.jsx(Nl,{"data-state":nk(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ek="PopoverClose",tk=D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=zS(ek,n);return m.jsx(za.button,{type:"button",...r,ref:t,onClick:Sa(e.onClick,()=>o.onOpenChange(!1))})});tk.displayName=ek;function nk(e){return e?"open":"closed"}D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=FS(n);return m.jsx(Ol,{...o,...r,ref:t})}).displayName="PopoverArrow";var rk=YS,ok=KS;const ak=$S,ik=BS,sk=D.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(rk,{children:m.jsx(ok,{ref:o,align:t,sideOffset:n,className:ma("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));sk.displayName=ok.displayName;const lk=fC("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",{variants:{variant:{default:"bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",destructive:"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),uk=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?Ia:"button";return m.jsx(i,{className:ma(lk({variant:t,size:n,className:e})),ref:a,...o})});uk.displayName="Button";const ck=({label:e,options:t=[],className:n,placeholder:r,value:o="",onValueChange:a,required:i,error:s,showSearch:l=!0,showOutline:u=!0,icon:c,info:d,optional:f,labelClass:p,actionLabel:h,actionLabelAction:g,actionLabelInfo:y,searchPlaceholder:v,disabled:b,triggerClass:w,loading:x,showError:C,onChangeSearch:S,searching:k,infoAlignment:_,align:E="start",valueClass:j})=>{const[N,O]=D.useState(""),[R,P]=D.useState(!1),[T,M]=D.useState(0),I=D.useRef(null);D.useEffect(()=>{const e=()=>{I.current&&M(I?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return m.jsx(m.Fragment,{children:x?m.jsx(Ca,{className:"w-full h-[48px]"}):m.jsxs("div",{className:ma("flex flex-col gap-2.5",n),children:[m.jsxs("div",{className:ma("flex justify-between gap-2 flex-wrap",e?null:"hidden"),children:[e&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",p),children:[m.jsx("span",{className:"first-letter:inherit",children:e})," ",i?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(Wv,{fieldName:e,align:_,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),h&&m.jsxs("button",{onClick:g,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[h,y&&m.jsx(Wv,{fieldName:h,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:y})})]})]}),m.jsxs(ak,{modal:!0,open:R,onOpenChange:P,children:[m.jsx(ik,{asChild:!0,children:m.jsxs(uk,{ref:I,variant:"outline",role:"combobox","aria-expanded":R,className:ma(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(s||C)&&"!border-danger"}`,w),disabled:b,children:[m.jsx("span",{className:ma("flex gap-2 first-letter:uppercase capitalize text-[#5E6278] justify-start truncate",o?"text-dark":null,j),children:o?(e=>{const n=t?.find(t=>t.value===e);return n?.label})(o):r??"Select..."}),m.jsx(ef,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(sk,{style:{width:T},className:"min-w-[280px] p-0 bg-white rounded-xl border-gray-200",align:E,children:m.jsxs(OS,{className:"w-full",children:[l&&m.jsx(RS,{onChangeCapture:S,className:"placeholder:text-xs",placeholder:v??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(Ca,{className:"h-9 rounded-md"},t))}):m.jsx(TS,{children:"No result found."}),m.jsx(DS,{children:m.jsx(PS,{className:"",children:t?.map(e=>m.jsxs(MS,{value:"string"==typeof e.label?e.label:e?.searchId,className:`first-letter:uppercase capitalize mb-1 hover:bg-primary_light w-full rounded-md hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o===e.value&&"bg-primary_light text-primary"}`,onSelect:()=>{a&&a(e.value),P(!1)},children:[m.jsx(Qd,{className:ma("mr-2 h-4 w-4",o===e.value?"opacity-100":"opacity-0")}),e.label]},`${"string"==typeof e.label?e.label:e?.searchId}${e.value}`))})})]})})]}),s&&m.jsx("p",{className:"text-danger text-xs font-normal",children:s})]})})};var dk="https://unpkg.com/@simpoobusiness/sdk/dist/assets/image-placeholdere1821db1b147e2aa.png";function fk({data:e}){const[t,n]=D.useState(e?.total_selling_price||0),r=[{label:"Stock Quantity",value:_v(Number(e?.quantity)),desc:null},{label:"Total Cost",value:kv(Number(e?.total_cost_price)),desc:null},{label:"Total Selling Price",value:kv(t),desc:m.jsx(ck,{options:e?.prices?.map(e=>({label:e.priceGroup.name,value:e.selling_price.toString()})),onValueChange:e=>n(Number(e)),value:t?.toString(),triggerClass:"h-8",showSearch:!1,placeholder:"Select price"})},{label:"Profit to be made",value:kv(t-e?.total_cost_price),desc:null}],o=[{tag:"Barcode",value:e?.barcode.map(e=>e.barcode)},{tag:"SKU",value:e?.sku},{tag:"System code",value:e?.itemcode.toString()}],a=["S/N","Batch number","Quantity","Expiry date","Unit cost"],i=[{tag:"Extras",headers:["S/N","image","extra name","quantity inside ","selling price"],body:e?.extras?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:dk,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.extra.name}),m.jsxs("td",{children:[e.quantity," ",e.extra.item_unit]}),m.jsx("td",{children:kv(Number(e.selling_price))})]},t))||[]},{tag:"Raw materials",headers:["S/N","image","material name","quantity inside ","selling price"],body:e?.material?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:dk,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.raw_material?.name}),m.jsxs("td",{children:[e.quantity," ",e.raw_material?.item_unit]}),m.jsx("td",{children:kv(Number(e.selling_price))})]},t))},{tag:"Packing groups",headers:["S/N","image","group name","quantity inside ","selling price","Group code","print label"],body:e?.item_group?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:dk,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.group_name}),m.jsxs("td",{children:[t.quantity," ",e.item_unit]}),m.jsx("td",{children:kv(Number(t.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:wv.printer_blue})})]},n))},{tag:"Variations",headers:["S/N","image","variation","quantity ","selling price","code","print label"],body:e?.variation?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:t.image??dk,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.variation_values.map((e,n)=>m.jsxs("span",{className:"pr-2",children:[e.attribute_value.value_name," ",t?.variation_values?.length-1>n&&"-"]},n))}),m.jsxs("td",{children:[t.quantity,e?.item_unit]}),m.jsx("td",{children:kv(Number(t.locationprices?.[0]?.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:wv.printer_blue})})]},n))}];return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"grid grid-cols-4 gap-2.5",children:r.map((n,o)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:n.label}),m.jsxs("p",{title:n.value,className:ma("text-dark font-bold text-3xl truncate",o===r.length-1&&Number(t)-Number(e?.cost_price)<0?"text-danger":null),children:[n.value,0===o&&m.jsx("span",{className:"font-normal text-sm",children:e.item_unit})]}),n.desc]},o))}),m.jsx("div",{className:"grid grid-cols-12",children:m.jsxs("div",{className:"col-span-10 space-y-6",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Item codes:"}),m.jsx("div",{className:"flex gap-5",children:o.map((e,t)=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:ma("flex flex-col gap-2.5"),children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:e.tag}),m.jsx("p",{className:"text-gray-500 text-sm font-normal flex flex-col gap-2",children:Array.isArray(e.value)?e.value?.map((e,t)=>m.jsx("span",{children:e},t)):e.value})]},t),t<o.length-1&&m.jsx("div",{children:m.jsx(IC,{orientation:"vertical",className:"bg-[#7E8299]"})},t)]}))})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Suppliers:"}),m.jsx("div",{className:"flex gap-5 flex-col",children:e?.suppliers?.map((e,t)=>m.jsxs("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:dk,className:"object-cover w-full h-full"})}),m.jsxs("div",{className:"space-y-1 flex-grow border-b border-dashed border-gray-300 pb-1",children:[m.jsx("h1",{className:"text-dark font-semibold text-sm capitalize",children:e.name}),m.jsx("p",{className:"text-gray-700 font-medium text-[13px] capitalize"})]})]}),m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:a.map((e,t)=>m.jsx("th",{className:"text-left text-dark",children:e},t))})}),m.jsx("tbody",{children:m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:"1"}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:e.supplier_batch_number})}),m.jsx("td",{children:e.supplier_quantity}),m.jsx("td",{children:_x(e.supplier_expired_date).format("MMMM DD, YYYY")}),m.jsx("td",{children:kv(Number(e.supplier_price))})]})})]})]},t))})]}),i.map((e,t)=>m.jsxs("div",{className:"space-y-3",children:[m.jsxs("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:[e.tag,": ",e.body?.length]}),e.body?.length>0?m.jsx("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:e.headers.map((e,t)=>m.jsx("th",{className:"text-left text-dark first-letter:uppercase",children:e},t))})}),m.jsx("tbody",{children:e.body})]})}):null]},t))]})})]})}const pk=[{label:"All",count:900},{label:"Active",count:10},{label:"Inactive",count:0}];function hk({tabs:e=pk,loading:t}){const[n,r]=D.useState(0);return m.jsxs("div",{className:"flex flex-col overflow-auto",children:[m.jsx("div",{className:"flex gap-[30px] ",children:e.map((e,o)=>m.jsxs("button",{className:"flex items-center gap-2.5 group relative pb-2",onClick:()=>((e,t)=>{e.link||r(t),e.action&&e.action()})(e,o),children:[m.jsx("p",{className:ma("group-hover:text-gray-900 duration-200 text-gray-800 font-normal text-sm first-letter:uppercase whitespace-nowrap",o===n?"text-gray-900 font-semibold":null),children:e.label}),t?m.jsx(Ca,{className:"h-6.5 rounded w-8"}):m.jsxs(m.Fragment,{children:[" ",e.count>=0?m.jsx("span",{className:ma("rounded px-1.5 h-6.5 flex items-center text-xs font-semibold duration-200 group-hover:bg-primary_light group-hover:text-primary bg-gray-200 text-gray-500 shrink-0",o===n?"bg-primary_light text-primary":null),children:e.count}):null]}),o===n?m.jsx("div",{className:"h-[5px] rounded bg-primary absolute left-0 right-0 -bottom-[5px]"}):null]},o))}),m.jsx("div",{className:"h-[5px] rounded bg-gray-300"})]})}function mk({isOpen:e,onClose:t,itemUUID:n}){const{data:r,isFetching:o}=vx(["single_item",n],`/items/get?item_uuid=${n}`,{enabled:e}),a=r?.data,i=[{tag:"Created",value:_x(a?.created_date).format("MMMM DD, YYYY")},{tag:"Last edited",value:_x(a?.last_update_date).format("MMMM DD, YYYY")},{tag:"Expiry",value:m.jsxs("p",{className:"",children:[" ",m.jsxs("span",{className:"text-danger",children:[a?.expired," Expired,"]})," ",m.jsxs("span",{className:"text-warning",children:[a?.expiring," Expiring"]})]})}],[s,l]=D.useState(1),u=[{label:"Item overview",action:()=>l(1)}];return D.useEffect(()=>{!e&&l(1)},[e]),m.jsx(bC,{isOpen:e,onClose:t,title:"Item View",className:"w-[1176px]",children:o?m.jsx(xC,{}):m.jsxs("div",{className:"space-y-7",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-dark text-xl font-semibold flex items-center gap-2",children:[a?.name,m.jsx("span",{className:"bg-primary_light text-primary text-xs rounded px-[7px] h-5 flex items-center capitalize",children:a?.item_type?.name})]}),m.jsx("div",{className:"flex gap-2",children:i.map((e,t)=>m.jsxs("p",{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[m.jsxs("span",{className:"text-dark",children:[e.tag,":"]})," ",e.value," ",t<2&&"|"]},t))})]}),m.jsx("div",{className:"flex gap-3"})]}),m.jsx(AC,{data:a}),m.jsx(hk,{tabs:u}),1===s?m.jsx(fk,{data:a}):null]})})}function gk({children:e,isOpen:t,onClose:n,title:r,className:o}){return m.jsx(SS,{open:t,onOpenChange:n,children:m.jsxs(ES,{className:ma("p-0 gap-4 max-h-[90vh] overflow-auto",o),children:[m.jsx(jS,{className:"sr-only",children:"Modal Component"}),m.jsx(NS,{className:"sr-only",children:"This is a modal component"}),r?m.jsxs("div",{className:"sticky top-0 bg-inherit flex flex-col gap-4 pt-5 z-10",children:[m.jsxs("div",{className:"flex justify-between items-center px-5",children:[m.jsx("h1",{className:"text-dark font-medium text-lg",children:r}),m.jsx("button",{className:"w-6 h-6",onClick:n,children:M.cloneElement(wv.close2,{fill:"black"})})]}),m.jsx(IC,{})]}):null,e]})})}var yk="-ms-",vk="-moz-",bk="-webkit-",wk="comm",xk="rule",Ck="decl",Sk="@keyframes",kk=Math.abs,_k=String.fromCharCode,Ek=Object.assign;function jk(e){return e.trim()}function Nk(e,t){return(e=t.exec(e))?e[0]:e}function Ok(e,t,n){return e.replace(t,n)}function Rk(e,t,n){return e.indexOf(t,n)}function Pk(e,t){return 0|e.charCodeAt(t)}function Tk(e,t,n){return e.slice(t,n)}function Dk(e){return e.length}function Mk(e){return e.length}function Ik(e,t){return t.push(e),e}function Ak(e,t){return e.filter(function(e){return!Nk(e,t)})}var Fk=1,Lk=1,zk=0,$k=0,Hk=0,Vk="";function Bk(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Fk,column:Lk,length:i,return:"",siblings:s}}function Uk(e,t){return Ek(Bk("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Wk(e){for(;e.root;)e=Uk(e.root,{children:[e]});Ik(e,e.siblings)}function qk(){return Hk=$k>0?Pk(Vk,--$k):0,Lk--,10===Hk&&(Lk=1,Fk--),Hk}function Yk(){return Hk=$k<zk?Pk(Vk,$k++):0,Lk++,10===Hk&&(Lk=1,Fk++),Hk}function Gk(){return Pk(Vk,$k)}function Kk(){return $k}function Qk(e,t){return Tk(Vk,e,t)}function Xk(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Zk(e){return jk(Qk($k-1,t_(91===e?e+2:40===e?e+1:e)))}function Jk(e){for(;(Hk=Gk())&&Hk<33;)Yk();return Xk(e)>2||Xk(Hk)>3?"":" "}function e_(e,t){for(;--t&&Yk()&&!(Hk<48||Hk>102||Hk>57&&Hk<65||Hk>70&&Hk<97););return Qk(e,Kk()+(t<6&&32==Gk()&&32==Yk()))}function t_(e){for(;Yk();)switch(Hk){case e:return $k;case 34:case 39:34!==e&&39!==e&&t_(Hk);break;case 40:41===e&&t_(e);break;case 92:Yk()}return $k}function n_(e,t){for(;Yk()&&e+Hk!==57&&(e+Hk!==84||47!==Gk()););return"/*"+Qk(t,$k-1)+"*"+_k(47===e?e:Yk())}function r_(e){for(;!Xk(Gk());)Yk();return Qk(e,$k)}function o_(e){return function(e){return Vk="",e}(a_("",null,null,null,[""],e=function(e){return Fk=Lk=1,zk=Dk(Vk=e),$k=0,[]}(e),0,[0],e))}function a_(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,C=r,S=b;g;)switch(h=v,v=Yk()){case 40:if(108!=h&&58==Pk(S,d-1)){-1!=Rk(S+=Ok(Zk(v),"&","&\f"),"&\f",kk(u?s[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:S+=Zk(v);break;case 9:case 10:case 13:case 32:S+=Jk(h);break;case 92:S+=e_(Kk()-1,7);continue;case 47:switch(Gk()){case 42:case 47:Ik(s_(n_(Yk(),Kk()),t,n,l),l),5!=Xk(h||1)&&5!=Xk(Gk()||1)||!Dk(S)||" "===Tk(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[u++]=Dk(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=Ok(S,/\f/g,"")),p>0&&(Dk(S)-d||0===m&&47===h)&&Ik(p>32?l_(S+";",r,n,d-1,l):l_(Ok(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(Ik(C=i_(S,t,n,u,c,o,s,b,w=[],x=[],d,a),a),123===v)if(0===c)a_(S,t,C,C,w,a,d,s,x);else{switch(f){case 99:if(110===Pk(S,3))break;case 108:if(97===Pk(S,2))break;default:c=0;case 100:case 109:case 115:}c?a_(e,C,C,r&&Ik(i_(e,C,C,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,r?w:x):a_(S,C,C,C,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=S="",d=i;break;case 58:d=1+Dk(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==qk())continue;switch(S+=_k(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(Dk(S)-1)*y,y=1;break;case 64:45===Gk()&&(S+=Zk(Yk())),f=Gk(),c=d=Dk(b=S+=r_(Kk())),v++;break;case 45:45===h&&2==Dk(S)&&(m=0)}}return a}function i_(e,t,n,r,o,a,i,s,l,u,c,d){for(var f=o-1,p=0===o?a:[""],h=Mk(p),m=0,g=0,y=0;m<r;++m)for(var v=0,b=Tk(e,f+1,f=kk(g=i[m])),w=e;v<h;++v)(w=jk(g>0?p[v]+" "+b:Ok(b,/&\f/g,p[v])))&&(l[y++]=w);return Bk(e,t,n,0===o?xk:s,l,u,c,d)}function s_(e,t,n,r){return Bk(e,t,n,wk,_k(Hk),Tk(e,2,-2),0,r)}function l_(e,t,n,r,o){return Bk(e,t,n,Ck,Tk(e,0,r),Tk(e,r+1,-1),r,o)}function u_(e,t,n){switch(function(e,t){return 45^Pk(e,0)?(((t<<2^Pk(e,0))<<2^Pk(e,1))<<2^Pk(e,2))<<2^Pk(e,3):0}(e,t)){case 5103:return bk+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return bk+e+e;case 4855:return bk+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return vk+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bk+e+vk+e+yk+e+e;case 5936:switch(Pk(e,t+11)){case 114:return bk+e+yk+Ok(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bk+e+yk+Ok(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bk+e+yk+Ok(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return bk+e+yk+e+e;case 6165:return bk+e+yk+"flex-"+e+e;case 5187:return bk+e+Ok(e,/(\w+).+(:[^]+)/,bk+"box-$1$2"+yk+"flex-$1$2")+e;case 5443:return bk+e+yk+"flex-item-"+Ok(e,/flex-|-self/g,"")+(Nk(e,/flex-|baseline/)?"":yk+"grid-row-"+Ok(e,/flex-|-self/g,""))+e;case 4675:return bk+e+yk+"flex-line-pack"+Ok(e,/align-content|flex-|-self/g,"")+e;case 5548:return bk+e+yk+Ok(e,"shrink","negative")+e;case 5292:return bk+e+yk+Ok(e,"basis","preferred-size")+e;case 6060:return bk+"box-"+Ok(e,"-grow","")+bk+e+yk+Ok(e,"grow","positive")+e;case 4554:return bk+Ok(e,/([^-])(transform)/g,"$1"+bk+"$2")+e;case 6187:return Ok(Ok(Ok(e,/(zoom-|grab)/,bk+"$1"),/(image-set)/,bk+"$1"),e,"")+e;case 5495:case 3959:return Ok(e,/(image-set\([^]*)/,bk+"$1$`$1");case 4968:return Ok(Ok(e,/(.+:)(flex-)?(.*)/,bk+"box-pack:$3"+yk+"flex-pack:$3"),/space-between/,"justify")+bk+e+e;case 4200:if(!Nk(e,/flex-|baseline/))return yk+"grid-column-align"+Tk(e,t)+e;break;case 2592:case 3360:return yk+Ok(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Nk(e.props,/grid-\w+-end/)})?~Rk(e+(n=n[t].value),"span",0)?e:yk+Ok(e,"-start","")+e+yk+"grid-row-span:"+(~Rk(n,"span",0)?Nk(n,/\d+/):+Nk(n,/\d+/)-+Nk(e,/\d+/))+";":yk+Ok(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Nk(e.props,/grid-\w+-start/)})?e:yk+Ok(Ok(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ok(e,/(.+)-inline(.+)/,bk+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Dk(e)-1-t>6)switch(Pk(e,t+1)){case 109:if(45!==Pk(e,t+4))break;case 102:return Ok(e,/(.+:)(.+)-([^]+)/,"$1"+bk+"$2-$3$1"+vk+(108==Pk(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Rk(e,"stretch",0)?u_(Ok(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ok(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,a,i,s){return yk+n+":"+r+s+(o?yk+n+"-span:"+(a?i:+i-+r)+s:"")+e});case 4949:if(121===Pk(e,t+6))return Ok(e,":",":"+bk)+e;break;case 6444:switch(Pk(e,45===Pk(e,14)?18:11)){case 120:return Ok(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+bk+(45===Pk(e,14)?"inline-":"")+"box$3$1"+bk+"$2$3$1"+yk+"$2box$3")+e;case 100:return Ok(e,":",":"+yk)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ok(e,"scroll-","scroll-snap-")+e}return e}function c_(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function d_(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Ck:return e.return=e.return||e.value;case wk:return"";case Sk:return e.return=e.value+"{"+c_(e.children,r)+"}";case xk:if(!Dk(e.value=e.props.join(",")))return""}return Dk(n=c_(e.children,r))?e.return=e.value+"{"+n+"}":""}function f_(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ck:return void(e.return=u_(e.value,e.length,n));case Sk:return c_([Uk(e,{value:Ok(e.value,"@","@"+bk)})],r);case xk:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Nk(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Wk(Uk(e,{props:[Ok(t,/:(read-\w+)/,":-moz-$1")]})),Wk(Uk(e,{props:[t]})),Ek(e,{props:Ak(n,r)});break;case"::placeholder":Wk(Uk(e,{props:[Ok(t,/:(plac\w+)/,":"+bk+"input-$1")]})),Wk(Uk(e,{props:[Ok(t,/:(plac\w+)/,":-moz-$1")]})),Wk(Uk(e,{props:[Ok(t,/:(plac\w+)/,yk+"input-$1")]})),Wk(Uk(e,{props:[t]})),Ek(e,{props:Ak(n,r)})}return""})}}var p_="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",h_="active",m_="data-styled-version",g_="6.3.8",y_="/*!sc*/\n",v_="undefined"!=typeof window&&"undefined"!=typeof document,b_=void 0===M.createContext,w_=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),x_=Object.freeze([]),C_=Object.freeze({});var S_=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),k_=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,__=/(^-|-$)/g;function E_(e){return e.replace(k_,"-").replace(__,"")}var j_=/(a)(d)/gi,N_=function(e){return String.fromCharCode(e+(e>25?39:97))};function O_(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=N_(t%52)+n;return(N_(t%52)+n).replace(j_,"$1-$2")}var R_,P_=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T_=function(e){return P_(5381,e)};function D_(e){return O_(T_(e)>>>0)}function M_(e){return"string"==typeof e&&!0}var I_="function"==typeof Symbol&&Symbol.for,A_=I_?Symbol.for("react.memo"):60115,F_=I_?Symbol.for("react.forward_ref"):60112,L_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},H_=((R_={})[F_]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R_[A_]=$_,R_);function V_(e){return("type"in(t=e)&&t.type.$$typeof)===A_?$_:"$$typeof"in e?H_[e.$$typeof]:L_;var t}var B_=Object.defineProperty,U_=Object.getOwnPropertyNames,W_=Object.getOwnPropertySymbols,q_=Object.getOwnPropertyDescriptor,Y_=Object.getPrototypeOf,G_=Object.prototype;function K_(e,t,n){if("string"!=typeof t){if(G_){var r=Y_(t);r&&r!==G_&&K_(e,r,n)}var o=U_(t);W_&&(o=o.concat(W_(t)));for(var a=V_(e),i=V_(t),s=0;s<o.length;++s){var l=o[s];if(!(l in z_||n&&n[l]||i&&l in i||a&&l in a)){var u=q_(t,l);try{B_(e,l,u)}catch(e){}}}}return e}function Q_(e){return"function"==typeof e}function X_(e){return"object"==typeof e&&"styledComponentId"in e}function Z_(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function J_(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function eE(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function tE(e,t,n){if(void 0===n&&(n=!1),!n&&!eE(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=tE(e[r],t[r]);else if(eE(t))for(var r in t)e[r]=tE(e[r],t[r]);return e}function nE(e,t){Object.defineProperty(e,"toString",{value:t})}function rE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var oE=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw rE(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),s=(a=0,t.length);a<s;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(y_);return t},e}(),aE=new Map,iE=new Map,sE=1,lE=function(e){if(aE.has(e))return aE.get(e);for(;iE.has(sE);)sE++;var t=sE++;return aE.set(e,t),iE.set(t,e),t},uE=function(e,t){sE=t+1,aE.set(e,t),iE.set(t,e)},cE="style[".concat(p_,"][").concat(m_,'="').concat(g_,'"]'),dE=new RegExp("^".concat(p_,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),fE=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},pE=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(y_),o=[],a=0,i=r.length;a<i;a++){var s=r[a].trim();if(s){var l=s.match(dE);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(uE(c,u),fE(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},hE=function(e){for(var t=document.querySelectorAll(cE),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(p_)!==h_&&(pE(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var mE=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(p_,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(p_,h_),r.setAttribute(m_,g_);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},gE=function(){function e(e){this.element=mE(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw rE(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),yE=function(){function e(e){this.element=mE(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),vE=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bE=v_,wE={isServer:!v_,useCSSOMInjection:!w_},xE=function(){function e(e,t,n){void 0===e&&(e=C_),void 0===t&&(t={});var r=this;this.options=ou(ou({},wE),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&v_&&bE&&(bE=!1,hE(this)),nE(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return iE.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||!a.size||0===i.length)return"continue";var s="".concat(p_,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(i).concat(s,'{content:"').concat(l,'"}').concat(y_)},a=0;a<n;a++)o(a);return r}(r)})}return e.registerId=function(e){return lE(e)},e.prototype.rehydrate=function(){!this.server&&v_&&hE(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ou(ou({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new vE(n):t?new gE(n):new yE(n)}(this.options),new oE(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(lE(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(lE(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(lE(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),CE=/&/g,SE=47;function kE(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,a=0;a<t;a++){var i=e.charCodeAt(a);if(0!==r||o||i!==SE||42!==e.charCodeAt(a+1))if(o)42===i&&e.charCodeAt(a+1)===SE&&(o=!1,a++);else if(34!==i&&39!==i||0!==a&&92===e.charCodeAt(a-1)){if(0===r)if(123===i)n++;else if(125===i&&--n<0)return!0}else 0===r?r=i:r===i&&(r=0);else o=!0,a++}return 0!==n||0!==r}function _E(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=_E(e.children,t)),e})}var EE=new xE,jE=function(){var e,t,n,r=C_,o=r.options,a=void 0===o?C_:o,i=r.plugins,s=void 0===i?x_:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},u=s.slice();u.push(function(e){e.type===xk&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(CE,t).replace(n,l))}),a.prefix&&u.push(f_),u.push(d_);var c=function(r,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),e=s,t=o,n=new RegExp("\\".concat(t,"\\b"),"g");var l=function(e){if(!kE(e))return e;for(var t=e.length,n="",r=0,o=0,a=0,i=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==a||i||l!==SE||42!==e.charCodeAt(s+1))if(i)42===l&&e.charCodeAt(s+1)===SE&&(i=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===a)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,r=u;continue}0===o&&(n+=e.substring(r,s+1),r=s+1)}else 59===l&&0===o&&(n+=e.substring(r,s+1),r=s+1)}else 0===a?a=l:a===l&&(a=0);else i=!0,s++}if(r<t){var d=e.substring(r);kE(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,a=0,i=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===a)if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))i=1,o++;else if(i>0)41===s?i--:40===s&&i++,o++;else if(s===SE&&o+1<t&&e.charCodeAt(o+1)===SE){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===a?a=s:a===s&&(a=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(r)),c=o_(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=_E(c,a.namespace));var d,f=[];return c_(c,function(e){var t=Mk(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(u.concat((d=function(e){return f.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),f};return c.hash=s.length?s.reduce(function(e,t){return t.name||rE(15),P_(e,t.name)},5381).toString():"",c}(),NE={shouldForwardProp:void 0,styleSheet:EE,stylis:jE},OE=b_?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(NE)}}:M.createContext(NE);function RE(){return b_?NE:M.useContext(OE)}OE.Consumer,b_||M.createContext(void 0);var PE=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=jE);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,nE(this,function(){throw rE(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=jE),this.name+e.hash},e}();function TE(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Wh||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var DE=function(e){return e>="A"&&e<="Z"};function ME(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;DE(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var IE=function(e){return null==e||!1===e||""===e},AE=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!IE(r)&&(Array.isArray(r)&&r.isCss||Q_(r)?t.push("".concat(ME(n),":"),r,";"):eE(r)?t.push.apply(t,iu(iu(["".concat(n," {")],AE(r),!1),["}"],!1)):t.push("".concat(ME(n),": ").concat(TE(n,r),";")))}return t};function FE(e,t,n,r){return IE(e)?[]:X_(e)?[".".concat(e.styledComponentId)]:Q_(e)?!Q_(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:FE(e(t),t,n,r):e instanceof PE?n?(e.inject(n,r),[e.getName(r)]):[e]:eE(e)?AE(e):Array.isArray(e)?Array.prototype.concat.apply(x_,e.map(function(e){return FE(e,t,n,r)})):[e.toString()];var o}var LE=T_(g_),zE=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Q_(n)&&!X_(n))return!1}return!0}(e),this.componentId=t,this.baseHash=P_(LE,t),this.baseStyle=n,xE.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Z_(r,this.staticRulesId);else{var o=J_(FE(this.rules,e,t,n)),a=O_(P_(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=Z_(r,a),this.staticRulesId=a}else{for(var s=P_(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=J_(FE(c,e,t,n));s=P_(s,d+u),l+=d}}if(l){var f=O_(s>>>0);if(!t.hasNameForId(this.componentId,f)){var p=n(l,".".concat(f),void 0,this.componentId);t.insertRules(this.componentId,f,p)}r=Z_(r,f)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(lE(this.componentId)):""}},e}(),$E=b_?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:M.createContext(void 0);$E.Consumer;var HE={};function VE(e,t,n){var r=X_(e),o=e,a=!M_(e),i=t.attrs,s=void 0===i?x_:i,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":E_(e);HE[n]=(HE[n]||0)+1;var r="".concat(n,"-").concat(D_(g_+n+HE[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return M_(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,f=t.displayName&&t.componentId?"".concat(E_(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var y=new zE(n,f,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,a=e.defaultProps,i=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=b_?void 0:M.useContext($E),c=RE(),d=e.shouldForwardProp||c.shouldForwardProp,f=function(e,t,n){return void 0===n&&(n=C_),e.theme!==n.theme&&e.theme||t||n.theme}(t,u,a)||C_,p=function(e,t,n){for(var r,o=ou(ou({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var i=Q_(r=e[a])?r(o):r;for(var s in i)"className"===s?o.className=Z_(o.className,i[s]):"style"===s?o.style=ou(ou({},o.style),i[s]):o[s]=i[s]}return"className"in t&&"string"==typeof t.className&&(o.className=Z_(o.className,t.className)),o}(r,t,f),h=p.as||l,m={};for(var g in p)void 0===p[g]||"$"===g[0]||"as"===g||"theme"===g&&p.theme===f||("forwardedAs"===g?m.as=p.forwardedAs:d&&!d(g,h)||(m[g]=p[g]));var y=function(e,t){var n=RE();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,p),v=y.className,b=y.css,w=Z_(i,s);v&&(w+=" "+v),p.className&&(w+=" "+p.className),m[M_(h)&&!S_.has(h)?"class":"className"]=w,n&&(m.ref=n);var x=D.createElement(h,m);return b_&&b?M.createElement(M.Fragment,null,M.createElement("style",{precedence:"styled-components",href:"sc-".concat(s,"-").concat(v),children:b}),x):x}(b,e,t)}v.displayName=d;var b=M.forwardRef(v);return b.attrs=p,b.componentStyle=y,b.displayName=d,b.shouldForwardProp=h,b.foldedComponentIds=r?Z_(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)tE(e,o[r],!0);return e}({},o.defaultProps,e):e}}),nE(b,function(){return".".concat(b.styledComponentId)}),a&&K_(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function BE(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var UE=function(e){return Object.assign(e,{isCss:!0})};function WE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Q_(e)||eE(e))return UE(FE(BE(x_,iu([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?FE(r):UE(FE(BE(r,t)))}function qE(e,t,n){if(void 0===n&&(n=C_),!t)throw rE(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,WE.apply(void 0,iu([r],o,!1)))};return r.attrs=function(r){return qE(e,t,ou(ou({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return qE(e,t,ou(ou({},n),r))},r}var YE=function(e){return qE(VE,e)},GE=YE;function KE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=J_(WE.apply(void 0,iu([e],t,!1))),o=D_(r);return new PE(o,r)}S_.forEach(function(e){GE[e]=YE(e)});const QE={"aria-busy":!0,role:"progressbar"},XE=GE.div`
|
|
141
|
+
r.version="2.30.1",o(Kn),r.fn=ua,r.min=Jn,r.max=er,r.now=tr,r.utc=h,r.unix=ca,r.months=ya,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Nr,r.isMoment=S,r.weekdays=ba,r.parseZone=da,r.localeData=vn,r.isDuration=sr,r.monthsShort=va,r.weekdaysMin=xa,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=wa,r.normalizeUnits=ne,r.relativeTimeRounding=oi,r.relativeTimeThreshold=ai,r.calendarFormat=Hr,r.prototype=ua,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(Cx)),Cx.exports),kx=n(Sx),_x="Dialog",[Ex]=ja(_x),[jx,Nx]=Ex(_x),Ox=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=D.useRef(null),l=D.useRef(null),[u,c]=Pa({prop:r,defaultProp:o??!1,onChange:a,caller:_x});return m.jsx(jx,{scope:t,triggerRef:s,contentRef:l,contentId:hi(),titleId:hi(),descriptionId:hi(),open:u,onOpenChange:c,onOpenToggle:D.useCallback(()=>c(e=>!e),[c]),modal:i,children:n})};Ox.displayName=_x;var Rx="DialogTrigger";D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Nx(Rx,n),a=Ea(t,o.triggerRef);return m.jsx(La.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Qx(o.open),...r,ref:a,onClick:Sa(e.onClick,o.onOpenToggle)})}).displayName=Rx;var Px="DialogPortal",[Tx,Dx]=Ex(Px,{forceMount:void 0}),Mx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Nx(Px,t);return m.jsx(Tx,{scope:t,forceMount:n,children:D.Children.map(r,e=>m.jsx(Rl,{present:n||a.open,children:m.jsx(Ol,{asChild:!0,container:o,children:e})}))})};Mx.displayName=Px;var Ix="DialogOverlay",Ax=D.forwardRef((e,t)=>{const n=Dx(Ix,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Nx(Ix,e.__scopeDialog);return a.modal?m.jsx(Rl,{present:r||a.open,children:m.jsx(Lx,{...o,ref:t})}):null});Ax.displayName=Ix;var Fx=Ma("DialogOverlay.RemoveScroll"),Lx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Nx(Ix,n);return m.jsx(Uu,{as:Fx,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(La.div,{"data-state":Qx(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),zx="DialogContent",$x=D.forwardRef((e,t)=>{const n=Dx(zx,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Nx(zx,e.__scopeDialog);return m.jsx(Rl,{present:r||a.open,children:a.modal?m.jsx(Hx,{...o,ref:t}):m.jsx(Vx,{...o,ref:t})})});$x.displayName=zx;var Hx=D.forwardRef((e,t)=>{const n=Nx(zx,e.__scopeDialog),r=D.useRef(null),o=Ea(t,n.contentRef,r);return D.useEffect(()=>{const e=r.current;if(e)return nu(e)},[]),m.jsx(Bx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sa(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Sa(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Sa(e.onFocusOutside,e=>e.preventDefault())})}),Vx=D.forwardRef((e,t)=>{const n=Nx(zx,e.__scopeDialog),r=D.useRef(!1),o=D.useRef(!1);return m.jsx(Bx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Bx=D.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Nx(zx,n),l=D.useRef(null),u=Ea(t,l);return ei(),m.jsxs(m.Fragment,{children:[m.jsx(ai,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(Ka,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Qx(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(eC,{titleId:s.titleId}),m.jsx(tC,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Ux="DialogTitle",Wx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Nx(Ux,n);return m.jsx(La.h2,{id:o.titleId,...r,ref:t})});Wx.displayName=Ux;var qx="DialogDescription",Yx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Nx(qx,n);return m.jsx(La.p,{id:o.descriptionId,...r,ref:t})});Yx.displayName=qx;var Gx="DialogClose",Kx=D.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Nx(Gx,n);return m.jsx(La.button,{type:"button",...r,ref:t,onClick:Sa(e.onClick,()=>o.onOpenChange(!1))})});function Qx(e){return e?"open":"closed"}Kx.displayName=Gx;var Xx="DialogTitleWarning",[Zx,Jx]=function(e,t){const n=D.createContext(t),r=e=>{const{children:t,...r}=e,o=D.useMemo(()=>r,Object.values(r));return m.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=D.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Xx,{contentName:zx,titleName:Ux,docsSlug:"dialog"}),eC=({titleId:e})=>{const t=Jx(Xx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return D.useEffect(()=>{if(e){document.getElementById(e)||console.error(n)}},[n,e]),null},tC=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Jx("DialogDescriptionWarning").contentName}}.`;return D.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}},[n,e,t]),null},nC=Ox,rC=Mx,oC=Ax,aC=$x,iC=Wx,sC=Yx,lC=Kx;const uC=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,cC=Jr,dC=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return cC(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=uC(t)||uC(r);return o[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return cC(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},fC=nC,pC=lC,hC=rC,mC=D.forwardRef(({className:e,...t},n)=>m.jsx(oC,{className:ma("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));mC.displayName=oC.displayName;const gC=dC("fixed z-50 gap-4 bg-white p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:bg-neutral-950",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),yC=D.forwardRef(({side:e="right",className:t,children:n,...r},o)=>m.jsxs(hC,{children:[m.jsx(mC,{}),m.jsx(aC,{ref:o,className:ma(gC({side:e}),t),...r,children:n})]}));yC.displayName=aC.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(iC,{ref:n,className:ma("text-lg font-semibold text-neutral-950 dark:text-neutral-50",e),...t})).displayName=iC.displayName;function vC({children:e,isOpen:t,onClose:n,title:r,className:o}){const[a,i]=D.useState(!1);return m.jsx(fC,{open:t,onOpenChange:n,children:m.jsxs(yC,{className:ma("p-[30px] rounded-l-xl lg:max-w-full space-y-6 overflow-auto",o,a?"w-full rounded-l-none":null),children:[m.jsxs("div",{className:"flex items-center justify-between border-b pb-2",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-xl",children:r}),m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("button",{className:"w-9 h-9 flex items-center justify-center rounded-md hover:ring-2 ring-inset ring-dark",onClick:()=>{i(!a)},children:bv.expand}),m.jsx(pC,{asChild:!0,className:"w-9 h-9 rounded-md flex items-center justify-center bg-danger_light",children:m.jsxs("button",{children:[" ",M.cloneElement(bv.close2,{fill:"#F1416C"})]})})]})]}),e]})})}function bC({children:e,className:t}){return m.jsx("div",{className:ma("border rounded-xl py-[30px] border-gray-200 ",t),children:e})}function wC(){return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(Ca,{className:"h-5 w-[500px] rounded-md"}),m.jsx(Ca,{className:"h-5 w-[500px] rounded-md"})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx(Ca,{className:"h-9 w-[140px] rounded-md"}),m.jsx(Ca,{className:"h-9 w-[140px] rounded-md"})]})]}),m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsxs(bC,{className:"p-4 flex flex-col gap-3",children:[m.jsx(Ca,{className:"flex-grow w-full rounded-md"}),m.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[m.jsx(Ca,{className:"h-[79px] rounded-md"}),m.jsx(Ca,{className:"h-[79px] rounded-md"}),m.jsx(Ca,{className:"h-[79px] rounded-md"})]})]}),m.jsxs("div",{className:"space-y-8 col-span-2",children:[m.jsx(Ca,{className:"h-9 w-full rounded-md"}),m.jsx(Ca,{className:"h-4 w-[326px] rounded-md"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Ca,{className:"h-3.5 w-[150px] rounded-md"}),m.jsx(Ca,{className:"h-10 w-full rounded-md"})]}),m.jsx(Ca,{className:"h-9 w-[500px] rounded-md"}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx(Ca,{className:"h-12 w-[115px] rounded-md"}),m.jsx(Ca,{className:"h-12 w-[150px] rounded-md"}),m.jsx(Ca,{className:"h-12 w-[171px] rounded-md"})]}),m.jsx(Ca,{className:"h-3.5 w-[337px] rounded-md"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(Ca,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ca,{className:"h-3.5 w-[140px] rounded-md"})]}),m.jsx("div",{className:"grid grid-cols-4 gap-3",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx(Ca,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ca,{className:"h-10 w-[200px] rounded-md"})]},t))}),m.jsx("div",{className:"space-y-6",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:" gap-4 flex flex-col",children:[m.jsx(Ca,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ca,{className:"h-[163px] w-[896px] rounded-md"})]},t))})]})}D.forwardRef(({className:e,...t},n)=>m.jsx(sC,{ref:n,className:ma("text-sm text-neutral-500 dark:text-neutral-400",e),...t})).displayName=sC.displayName;var xC="https://unpkg.com/@simpoobusiness/sdk/dist/assets/placeholder-image94ba15ea00cc66fe.svg";function CC({images:e}){return m.jsxs(bC,{className:"p-5 flex flex-col gap-2.5",children:[m.jsx("div",{className:"relative flex-grow",children:m.jsx("img",{src:e?.[0]??xC,sizes:"100%",alt:"item image",draggable:!1,className:"rounded-xl object-cover w-full h-full"})}),m.jsx("div",{className:"flex gap-4 overflow-auto",children:e.filter((e,t)=>0!==t).map((e,t)=>m.jsx("div",{className:"w-[89px] h-[79px] relative shrink-0",children:m.jsx("img",{src:e??xC,alt:"item image",draggable:!1,className:"rounded-xl object-cover h-full w-full"})},t))})]})}var SC=Symbol.for("react.lazy"),kC=I[" use ".trim().toString()];function _C(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===SC&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function EC(e){const t=NC(e),n=D.forwardRef((e,n)=>{let{children:r,...o}=e;_C(r)&&"function"==typeof kC&&(r=kC(r._payload));const a=D.Children.toArray(r),i=a.find(RC);if(i){const e=i.props.children,r=a.map(t=>t===i?D.Children.count(e)>1?D.Children.only(null):D.isValidElement(e)?e.props.children:null:t);return m.jsx(t,{...o,ref:n,children:D.isValidElement(e)?D.cloneElement(e,void 0,r):null})}return m.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var jC=EC("Slot");function NC(e){const t=D.forwardRef((e,t)=>{let{children:n,...r}=e;if(_C(n)&&"function"==typeof kC&&(n=kC(n._payload)),D.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==D.Fragment&&(o.ref=t?_a(t,e):e),D.cloneElement(n,o)}return D.Children.count(n)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var OC=Symbol("radix.slottable");function RC(e){return D.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===OC}var PC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=EC(`Primitive.${t}`),r=D.forwardRef((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),TC="horizontal",DC=["horizontal","vertical"],MC=D.forwardRef((e,t)=>{const{decorative:n,orientation:r=TC,...o}=e,a=function(e){return DC.includes(e)}(r)?r:TC,i=n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return m.jsx(PC.div,{"data-orientation":a,...i,...o,ref:t})});MC.displayName="Separator";var IC=MC;const AC=D.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>m.jsx(IC,{ref:o,decorative:n,orientation:t,className:ma("shrink-0 bg-gray-300 dark:bg-neutral-800","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...r}));function FC({data:e,printLabel:t}){const n=[{tag:"reorder level",value:`${e?.reorder_level} ${e?.unit_resource?.name}`},{tag:"packing groups",value:`${e?.item_group?.length} group(s)`},{tag:"variations",value:`${e?.variation?.length} variable(s)`},{tag:"extras",value:`${e?.extras?.length} extras`}];return m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsx(CC,{images:e?.images?.map(e=>e.image)}),m.jsxs("div",{className:"col-span-2 flex flex-col gap-9",children:[m.jsxs("div",{className:"flex gap-4 bg-primary_light p-2.5 rounded-md",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Cost price:"," ",m.jsx("span",{className:"text-dark font-bold text-[15px]",children:Sv(Number(e?.cost_price))})]}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Selling price:"," ",e?.duplicate_prices?.map((t,n)=>m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-dark font-bold text-[15px] px-2",children:Sv(Number(t.selling_price))},n),n<e?.duplicate_prices?.length-1&&"-"]}))]})]}),m.jsxs("div",{className:"flex gap-2.5",children:[m.jsxs("p",{className:"text-gray-800 text-sm font-medium",children:["In stock:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[kv(Number(e?.quantity))," ",e?.item_unit]})]}),"|",m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Total sold:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[kv(e?.total_sold)," ",e?.item_unit]})]})]}),m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("h2",{className:"text-gray-800 text-sm font-bold",children:"Description"}),m.jsx("p",{className:"text-gray-800 font-normal text-sm",children:e?.description??"No description..."})]}),m.jsx("div",{className:"flex gap-5 items-center",children:n.map((e,t)=>m.jsxs("div",{className:"flex gap-5 items-center",children:[m.jsxs("div",{className:"flex flex-col gap-2.5",children:[m.jsx("p",{className:"text-dark font-medium text-sm first-letter:uppercase",children:e.tag}),m.jsx("p",{className:"text-primary",children:e.value})]}),t<n.length-1&&m.jsx(AC,{className:"bg-[#7E8299] h-[30px] w-[1px]"})]},t))}),m.jsxs("div",{className:"flex gap-2.5 items-center",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium flex gap-2",children:["Category:"," ",e?.category?.map((e,t)=>m.jsxs("span",{className:"text-dark font-normal text-[15px]",children:[e.name," "]},t))]}),m.jsx(AC,{className:"bg-[#7E8299] h-[14px] w-[1px]"}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Collection:"," ",e?.item_tags?.map((e,t)=>m.jsx("span",{className:"text-dark font-normal text-[15px]",children:e.name},t))]})]})]})]})}AC.displayName=IC.displayName;var LC=.999,zC=/[\\\/_+.#"@\[\(\{&]/,$C=/[\\\/_+.#"@\[\(\{&]/g,HC=/[\s-]/,VC=/[\s-]/g;function BC(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,u,c,d,f=r.charAt(a),p=n.indexOf(f,o),h=0;p>=0;)(l=BC(e,t,n,r,p+1,a+1,i))>h&&(p===o?l*=1:zC.test(e.charAt(p-1))?(l*=.8,(c=e.slice(o,p-1).match($C))&&o>0&&(l*=Math.pow(LC,c.length))):HC.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(VC))&&o>0&&(l*=Math.pow(LC,d.length))):(l*=.17,o>0&&(l*=Math.pow(LC,p-o))),e.charAt(p)!==t.charAt(a)&&(l*=.9999)),(l<.1&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&(.1*(u=BC(e,t,n,r,p+1,a+2,i))>l&&(l=.1*u)),l>h&&(h=l),p=n.indexOf(f,p+1);return i[s]=h,h}function UC(e){return e.toLowerCase().replace(VC," ")}function WC(e,t,n){return BC(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,UC(e),UC(t),0,0,{})}var qC='[cmdk-group=""]',YC='[cmdk-group-items=""]',GC='[cmdk-item=""]',KC=`${GC}:not([aria-disabled="true"])`,QC="cmdk-item-select",XC="data-value",ZC=(e,t,n)=>WC(e,t,n),JC=D.createContext(void 0),eS=()=>D.useContext(JC),tS=D.createContext(void 0),nS=()=>D.useContext(tS),rS=D.createContext(void 0),oS=D.forwardRef((e,t)=>{let n=vS(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=vS(()=>new Set),o=vS(()=>new Map),a=vS(()=>new Map),i=vS(()=>new Set),s=gS(e),{label:l,children:u,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,v=hi(),b=hi(),w=hi(),x=D.useRef(null),C=xS();yS(()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}},[c]),yS(()=>{C(6,O)},[]);let S=D.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),E(),C(1,j);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(v))||o.focus()}if(C(7,()=>{var e;n.current.selectedItemId=null==(e=R())?void 0:e.id,S.emit()}),r||C(5,O),void 0!==(null==(a=s.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(l=(i=s.current).onValueChange)||l.call(i,e))}}S.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),k=D.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,_(t,r)),C(2,()=>{E(),S.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),C(3,()=>{N(),E(),n.current.value||j(),S.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=R();C(4,()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&j(),S.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:w,labelId:b,listInnerRef:x}),[]);function _(e,t){var r,o;let a=null!=(o=null==(r=s.current)?void 0:r.filter)?o:ZC;return e?a(e,n.current.search,t):0}function E(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=x.current;P().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(YC);t?t.appendChild(e.parentElement===t?e:e.closest(`${YC} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${YC} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=x.current)?void 0:t.querySelector(`${qC}[${XC}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function j(){let e=P().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(XC);S.setState("value",t||void 0)}function N(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let u=0;for(let o of r.current){let r=_(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&u++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function O(){var e,t,n;let r=R();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(qC))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=x.current)?void 0:e.querySelector(`${GC}[aria-selected="true"]`)}function P(){var e;return Array.from((null==(e=x.current)?void 0:e.querySelectorAll(KC))||[])}function T(e){let t=P()[e];t&&S.setState("value",t.getAttribute(XC))}function M(e){var t;let n=R(),r=P(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=s.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&S.setState("value",a.getAttribute(XC))}function I(e){let t,n=R(),r=null==n?void 0:n.closest(qC);for(;r&&!t;)r=e>0?hS(r,qC):mS(r,qC),t=null==r?void 0:r.querySelector(KC);t?S.setState("value",t.getAttribute(XC)):M(e)}let A=()=>T(P().length-1),F=e=>{e.preventDefault(),e.metaKey?A():e.altKey?I(1):M(1)},L=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?I(-1):M(-1)};return D.createElement(PC.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":g&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":g&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),A();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(QC);t.dispatchEvent(e)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:SS},l),CS(e,e=>D.createElement(tS.Provider,{value:S},D.createElement(JC.Provider,{value:k},e))))}),aS=D.forwardRef((e,t)=>{var n,r;let o=hi(),a=D.useRef(null),i=D.useContext(rS),s=eS(),l=gS(e),u=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;yS(()=>{if(!u)return s.item(o,null==i?void 0:i.id)},[u]);let c=wS(o,a,[e.value,e.children,a],e.keywords),d=nS(),f=bS(e=>e.value&&e.value===c.current),p=bS(e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=l.current).onSelect)||t.call(e,c.current)}function m(){d.setState("value",c.current,!0)}if(D.useEffect(()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(QC,h),()=>t.removeEventListener(QC,h)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:v,forceMount:b,keywords:w,...x}=e;return D.createElement(PC.div,{ref:_a(a,t),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||s.getDisablePointerSelection()?void 0:m,onClick:g?void 0:h},e.children)}),iS=D.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=hi(),s=D.useRef(null),l=D.useRef(null),u=hi(),c=eS(),d=bS(e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(i)));yS(()=>c.group(i),[]),wS(i,s,[e.value,e.heading,l]);let f=D.useMemo(()=>({id:i,forceMount:o}),[o]);return D.createElement(PC.div,{ref:_a(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&D.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),CS(e,e=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},D.createElement(rS.Provider,{value:f},e))))}),sS=D.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=D.useRef(null),a=bS(e=>!e.search);return n||a?D.createElement(PC.div,{ref:_a(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),lS=D.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=nS(),i=bS(e=>e.search),s=bS(e=>e.selectedItemId),l=eS();return D.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),D.createElement(PC.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),uS=D.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=D.useRef(null),i=D.useRef(null),s=bS(e=>e.selectedItemId),l=eS();return D.useEffect(()=>{if(i.current&&a.current){let e,t=i.current,n=a.current,r=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}},[]),D.createElement(PC.div,{ref:_a(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},CS(e,e=>D.createElement("div",{ref:_a(i,l.listInnerRef),"cmdk-list-sizer":""},e)))}),cS=D.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return D.createElement(nC,{open:n,onOpenChange:r},D.createElement(rC,{container:i},D.createElement(oC,{"cmdk-overlay":"",className:o}),D.createElement(aC,{"aria-label":e.label,"cmdk-dialog":"",className:a},D.createElement(oS,{ref:t,...s}))))}),dS=D.forwardRef((e,t)=>bS(e=>0===e.filtered.count)?D.createElement(PC.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),fS=D.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return D.createElement(PC.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},CS(e,e=>D.createElement("div",{"aria-hidden":!0},e)))}),pS=Object.assign(oS,{List:uS,Item:aS,Input:lS,Group:iS,Separator:sS,Dialog:cS,Empty:dS,Loading:fS});function hS(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function mS(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function gS(e){let t=D.useRef(e);return yS(()=>{t.current=e}),t}var yS="undefined"==typeof window?D.useEffect:D.useLayoutEffect;function vS(e){let t=D.useRef();return void 0===t.current&&(t.current=e()),t}function bS(e){let t=nS(),n=()=>e(t.snapshot());return D.useSyncExternalStore(t.subscribe,n,n)}function wS(e,t,n,r=[]){let o=D.useRef(),a=eS();return yS(()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=r.map(e=>e.trim());a.value(e,s,l),null==(i=t.current)||i.setAttribute(XC,s),o.current=s}),o}var xS=()=>{let[e,t]=D.useState(),n=vS(()=>new Map);return yS(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function CS({asChild:e,children:t},n){return e&&D.isValidElement(t)?D.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var SS={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const kS=nC,_S=rC,ES=D.forwardRef(({className:e,...t},n)=>m.jsx(oC,{ref:n,className:ma("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ES.displayName=oC.displayName;const jS=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(_S,{children:[m.jsx(ES,{}),m.jsxs(aC,{ref:r,className:ma("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,m.jsxs(lC,{className:"hidden absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[m.jsx(nf,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jS.displayName=aC.displayName;const NS=D.forwardRef(({className:e,...t},n)=>m.jsx(iC,{ref:n,className:ma("text-lg font-semibold leading-none tracking-tight",e),...t}));NS.displayName=iC.displayName;const OS=D.forwardRef(({className:e,...t},n)=>m.jsx(sC,{ref:n,className:ma("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));OS.displayName=sC.displayName;const RS=D.forwardRef(({className:e,...t},n)=>m.jsx(pS,{ref:n,className:ma("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));RS.displayName=pS.displayName;const PS=D.forwardRef(({className:e,...t},n)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx(tf,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(pS.Input,{ref:n,className:ma("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})]}));PS.displayName=pS.Input.displayName;const TS=D.forwardRef(({className:e,...t},n)=>m.jsx(pS.List,{ref:n,className:ma("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));TS.displayName=pS.List.displayName;const DS=D.forwardRef((e,t)=>m.jsx(pS.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));DS.displayName=pS.Empty.displayName;const MS=D.forwardRef(({className:e,...t},n)=>m.jsx(pS.Group,{ref:n,className:ma("overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));MS.displayName=pS.Group.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(pS.Separator,{ref:n,className:ma("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t})).displayName=pS.Separator.displayName;const IS=D.forwardRef(({className:e,...t},n)=>m.jsx(pS.Item,{ref:n,className:ma("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-primary_light data-[selected=true]:text-primary data-[disabled=true]:opacity-50 dark:data-[selected='true']:bg-primary_light dark:data-[selected=true]:text-primary",e),...t}));IS.displayName=pS.Item.displayName;var AS="Popover",[FS]=ja(AS,[ul]),LS=ul(),[zS,$S]=FS(AS),HS=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=LS(t),l=D.useRef(null),[u,c]=D.useState(!1),[d,f]=Pa({prop:r,defaultProp:o??!1,onChange:a,caller:AS});return m.jsx(_l,{...s,children:m.jsx(zS,{scope:t,contentId:hi(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:D.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:D.useCallback(()=>c(!0),[]),onCustomAnchorRemove:D.useCallback(()=>c(!1),[]),modal:i,children:n})})};HS.displayName=AS;var VS="PopoverAnchor";D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=$S(VS,n),a=LS(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return D.useEffect(()=>(i(),()=>s()),[i,s]),m.jsx(El,{...a,...r,ref:t})}).displayName=VS;var BS="PopoverTrigger",US=D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=$S(BS,n),a=LS(n),i=Ea(t,o.triggerRef),s=m.jsx(La.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":rk(o.open),...r,ref:i,onClick:Sa(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:m.jsx(El,{asChild:!0,...a,children:s})});US.displayName=BS;var WS="PopoverPortal",[qS,YS]=FS(WS,{forceMount:void 0}),GS=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=$S(WS,t);return m.jsx(qS,{scope:t,forceMount:n,children:m.jsx(Rl,{present:n||a.open,children:m.jsx(Ol,{asChild:!0,container:o,children:r})})})};GS.displayName=WS;var KS="PopoverContent",QS=D.forwardRef((e,t)=>{const n=YS(KS,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=$S(KS,e.__scopePopover);return m.jsx(Rl,{present:r||a.open,children:a.modal?m.jsx(ZS,{...o,ref:t}):m.jsx(JS,{...o,ref:t})})});QS.displayName=KS;var XS=Ma("PopoverContent.RemoveScroll"),ZS=D.forwardRef((e,t)=>{const n=$S(KS,e.__scopePopover),r=D.useRef(null),o=Ea(t,r),a=D.useRef(!1);return D.useEffect(()=>{const e=r.current;if(e)return nu(e)},[]),m.jsx(Uu,{as:XS,allowPinchZoom:!0,children:m.jsx(ek,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sa(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Sa(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Sa(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),JS=D.forwardRef((e,t)=>{const n=$S(KS,e.__scopePopover),r=D.useRef(!1),o=D.useRef(!1);return m.jsx(ek,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),ek=D.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=$S(KS,n),p=LS(n);return ei(),m.jsx(ai,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(Ka,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:m.jsx(jl,{"data-state":rk(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tk="PopoverClose",nk=D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=$S(tk,n);return m.jsx(La.button,{type:"button",...r,ref:t,onClick:Sa(e.onClick,()=>o.onOpenChange(!1))})});nk.displayName=tk;function rk(e){return e?"open":"closed"}D.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=LS(n);return m.jsx(Nl,{...o,...r,ref:t})}).displayName="PopoverArrow";var ok=GS,ak=QS;const ik=HS,sk=US,lk=D.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(ok,{children:m.jsx(ak,{ref:o,align:t,sideOffset:n,className:ma("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));lk.displayName=ak.displayName;const uk=dC("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",{variants:{variant:{default:"bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",destructive:"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ck=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?jC:"button";return m.jsx(i,{className:ma(uk({variant:t,size:n,className:e})),ref:a,...o})});ck.displayName="Button";const dk=({label:e,options:t=[],className:n,placeholder:r,value:o="",onValueChange:a,required:i,error:s,showSearch:l=!0,showOutline:u=!0,icon:c,info:d,optional:f,labelClass:p,actionLabel:h,actionLabelAction:g,actionLabelInfo:y,searchPlaceholder:v,disabled:b,triggerClass:w,loading:x,showError:C,onChangeSearch:S,searching:k,infoAlignment:_,align:E="start",valueClass:j})=>{const[N,O]=D.useState(""),[R,P]=D.useState(!1),[T,M]=D.useState(0),I=D.useRef(null);D.useEffect(()=>{const e=()=>{I.current&&M(I?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return m.jsx(m.Fragment,{children:x?m.jsx(Ca,{className:"w-full h-[48px]"}):m.jsxs("div",{className:ma("flex flex-col gap-2.5",n),children:[m.jsxs("div",{className:ma("flex justify-between gap-2 flex-wrap",e?null:"hidden"),children:[e&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",p),children:[m.jsx("span",{className:"first-letter:inherit",children:e})," ",i?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(Uv,{fieldName:e,align:_,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),h&&m.jsxs("button",{onClick:g,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[h,y&&m.jsx(Uv,{fieldName:h,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:y})})]})]}),m.jsxs(ik,{modal:!0,open:R,onOpenChange:P,children:[m.jsx(sk,{asChild:!0,children:m.jsxs(ck,{ref:I,variant:"outline",role:"combobox","aria-expanded":R,className:ma(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(s||C)&&"!border-danger"}`,w),disabled:b,children:[m.jsx("span",{className:ma("flex gap-2 first-letter:uppercase capitalize text-[#5E6278] justify-start truncate",o?"text-dark":null,j),children:o?(e=>{const n=t?.find(t=>t.value===e);return n?.label})(o):r??"Select..."}),m.jsx(Jd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(lk,{style:{width:T},className:"min-w-[280px] p-0 bg-white rounded-xl border-gray-200",align:E,children:m.jsxs(RS,{className:"w-full",children:[l&&m.jsx(PS,{onChangeCapture:S,className:"placeholder:text-xs",placeholder:v??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(Ca,{className:"h-9 rounded-md"},t))}):m.jsx(DS,{children:"No result found."}),m.jsx(MS,{children:m.jsx(TS,{className:"",children:t?.map(e=>m.jsxs(IS,{value:"string"==typeof e.label?e.label:e?.searchId,className:`first-letter:uppercase capitalize mb-1 hover:bg-primary_light w-full rounded-md hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o===e.value&&"bg-primary_light text-primary"}`,onSelect:()=>{a&&a(e.value),P(!1)},children:[m.jsx(Kd,{className:ma("mr-2 h-4 w-4",o===e.value?"opacity-100":"opacity-0")}),e.label]},`${"string"==typeof e.label?e.label:e?.searchId}${e.value}`))})})]})})]}),s&&m.jsx("p",{className:"text-danger text-xs font-normal",children:s})]})})};var fk="https://unpkg.com/@simpoobusiness/sdk/dist/assets/image-placeholdere1821db1b147e2aa.png";function pk({data:e}){const[t,n]=D.useState(e?.total_selling_price||0),r=[{label:"Stock Quantity",value:kv(Number(e?.quantity)),desc:null},{label:"Total Cost",value:Sv(Number(e?.total_cost_price)),desc:null},{label:"Total Selling Price",value:Sv(t),desc:m.jsx(dk,{options:e?.prices?.map(e=>({label:e.priceGroup.name,value:e.selling_price.toString()})),onValueChange:e=>n(Number(e)),value:t?.toString(),triggerClass:"h-8",showSearch:!1,placeholder:"Select price"})},{label:"Profit to be made",value:Sv(t-e?.total_cost_price),desc:null}],o=[{tag:"Barcode",value:e?.barcode.map(e=>e.barcode)},{tag:"SKU",value:e?.sku},{tag:"System code",value:e?.itemcode.toString()}],a=["S/N","Batch number","Quantity","Expiry date","Unit cost"],i=[{tag:"Extras",headers:["S/N","image","extra name","quantity inside ","selling price"],body:e?.extras?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:fk,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.extra.name}),m.jsxs("td",{children:[e.quantity," ",e.extra.item_unit]}),m.jsx("td",{children:Sv(Number(e.selling_price))})]},t))||[]},{tag:"Raw materials",headers:["S/N","image","material name","quantity inside ","selling price"],body:e?.material?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:fk,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.raw_material?.name}),m.jsxs("td",{children:[e.quantity," ",e.raw_material?.item_unit]}),m.jsx("td",{children:Sv(Number(e.selling_price))})]},t))},{tag:"Packing groups",headers:["S/N","image","group name","quantity inside ","selling price","Group code","print label"],body:e?.item_group?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:fk,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.group_name}),m.jsxs("td",{children:[t.quantity," ",e.item_unit]}),m.jsx("td",{children:Sv(Number(t.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:bv.printer_blue})})]},n))},{tag:"Variations",headers:["S/N","image","variation","quantity ","selling price","code","print label"],body:e?.variation?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:t.image??fk,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.variation_values.map((e,n)=>m.jsxs("span",{className:"pr-2",children:[e.attribute_value.value_name," ",t?.variation_values?.length-1>n&&"-"]},n))}),m.jsxs("td",{children:[t.quantity,e?.item_unit]}),m.jsx("td",{children:Sv(Number(t.locationprices?.[0]?.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:bv.printer_blue})})]},n))}];return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"grid grid-cols-4 gap-2.5",children:r.map((n,o)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:n.label}),m.jsxs("p",{title:n.value,className:ma("text-dark font-bold text-3xl truncate",o===r.length-1&&Number(t)-Number(e?.cost_price)<0?"text-danger":null),children:[n.value,0===o&&m.jsx("span",{className:"font-normal text-sm",children:e.item_unit})]}),n.desc]},o))}),m.jsx("div",{className:"grid grid-cols-12",children:m.jsxs("div",{className:"col-span-10 space-y-6",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Item codes:"}),m.jsx("div",{className:"flex gap-5",children:o.map((e,t)=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:ma("flex flex-col gap-2.5"),children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:e.tag}),m.jsx("p",{className:"text-gray-500 text-sm font-normal flex flex-col gap-2",children:Array.isArray(e.value)?e.value?.map((e,t)=>m.jsx("span",{children:e},t)):e.value})]},t),t<o.length-1&&m.jsx("div",{children:m.jsx(AC,{orientation:"vertical",className:"bg-[#7E8299]"})},t)]}))})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Suppliers:"}),m.jsx("div",{className:"flex gap-5 flex-col",children:e?.suppliers?.map((e,t)=>m.jsxs("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:fk,className:"object-cover w-full h-full"})}),m.jsxs("div",{className:"space-y-1 flex-grow border-b border-dashed border-gray-300 pb-1",children:[m.jsx("h1",{className:"text-dark font-semibold text-sm capitalize",children:e.name}),m.jsx("p",{className:"text-gray-700 font-medium text-[13px] capitalize"})]})]}),m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:a.map((e,t)=>m.jsx("th",{className:"text-left text-dark",children:e},t))})}),m.jsx("tbody",{children:m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:"1"}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:e.supplier_batch_number})}),m.jsx("td",{children:e.supplier_quantity}),m.jsx("td",{children:kx(e.supplier_expired_date).format("MMMM DD, YYYY")}),m.jsx("td",{children:Sv(Number(e.supplier_price))})]})})]})]},t))})]}),i.map((e,t)=>m.jsxs("div",{className:"space-y-3",children:[m.jsxs("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:[e.tag,": ",e.body?.length]}),e.body?.length>0?m.jsx("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:e.headers.map((e,t)=>m.jsx("th",{className:"text-left text-dark first-letter:uppercase",children:e},t))})}),m.jsx("tbody",{children:e.body})]})}):null]},t))]})})]})}const hk=[{label:"All",count:900},{label:"Active",count:10},{label:"Inactive",count:0}];function mk({tabs:e=hk,loading:t}){const[n,r]=D.useState(0);return m.jsxs("div",{className:"flex flex-col overflow-auto",children:[m.jsx("div",{className:"flex gap-[30px] ",children:e.map((e,o)=>m.jsxs("button",{className:"flex items-center gap-2.5 group relative pb-2",onClick:()=>((e,t)=>{e.link||r(t),e.action&&e.action()})(e,o),children:[m.jsx("p",{className:ma("group-hover:text-gray-900 duration-200 text-gray-800 font-normal text-sm first-letter:uppercase whitespace-nowrap",o===n?"text-gray-900 font-semibold":null),children:e.label}),t?m.jsx(Ca,{className:"h-6.5 rounded w-8"}):m.jsxs(m.Fragment,{children:[" ",e.count>=0?m.jsx("span",{className:ma("rounded px-1.5 h-6.5 flex items-center text-xs font-semibold duration-200 group-hover:bg-primary_light group-hover:text-primary bg-gray-200 text-gray-500 shrink-0",o===n?"bg-primary_light text-primary":null),children:e.count}):null]}),o===n?m.jsx("div",{className:"h-[5px] rounded bg-primary absolute left-0 right-0 -bottom-[5px]"}):null]},o))}),m.jsx("div",{className:"h-[5px] rounded bg-gray-300"})]})}function gk({isOpen:e,onClose:t,itemUUID:n}){const{data:r,isFetching:o}=yx(["single_item",n],`/items/get?item_uuid=${n}`,{enabled:e}),a=r?.data,i=[{tag:"Created",value:kx(a?.created_date).format("MMMM DD, YYYY")},{tag:"Last edited",value:kx(a?.last_update_date).format("MMMM DD, YYYY")},{tag:"Expiry",value:m.jsxs("p",{className:"",children:[" ",m.jsxs("span",{className:"text-danger",children:[a?.expired," Expired,"]})," ",m.jsxs("span",{className:"text-warning",children:[a?.expiring," Expiring"]})]})}],[s,l]=D.useState(1),u=[{label:"Item overview",action:()=>l(1)}];return D.useEffect(()=>{!e&&l(1)},[e]),m.jsx(vC,{isOpen:e,onClose:t,title:"Item View",className:"w-[1176px]",children:o?m.jsx(wC,{}):m.jsxs("div",{className:"space-y-7",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-dark text-xl font-semibold flex items-center gap-2",children:[a?.name,m.jsx("span",{className:"bg-primary_light text-primary text-xs rounded px-[7px] h-5 flex items-center capitalize",children:a?.item_type?.name})]}),m.jsx("div",{className:"flex gap-2",children:i.map((e,t)=>m.jsxs("p",{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[m.jsxs("span",{className:"text-dark",children:[e.tag,":"]})," ",e.value," ",t<2&&"|"]},t))})]}),m.jsx("div",{className:"flex gap-3"})]}),m.jsx(FC,{data:a}),m.jsx(mk,{tabs:u}),1===s?m.jsx(pk,{data:a}):null]})})}function yk({children:e,isOpen:t,onClose:n,title:r,className:o}){return m.jsx(kS,{open:t,onOpenChange:n,children:m.jsxs(jS,{className:ma("p-0 gap-4 max-h-[90vh] overflow-auto",o),children:[m.jsx(NS,{className:"sr-only",children:"Modal Component"}),m.jsx(OS,{className:"sr-only",children:"This is a modal component"}),r?m.jsxs("div",{className:"sticky top-0 bg-inherit flex flex-col gap-4 pt-5 z-10",children:[m.jsxs("div",{className:"flex justify-between items-center px-5",children:[m.jsx("h1",{className:"text-dark font-medium text-lg",children:r}),m.jsx("button",{className:"w-6 h-6",onClick:n,children:M.cloneElement(bv.close2,{fill:"black"})})]}),m.jsx(AC,{})]}):null,e]})})}var vk="-ms-",bk="-moz-",wk="-webkit-",xk="comm",Ck="rule",Sk="decl",kk="@keyframes",_k=Math.abs,Ek=String.fromCharCode,jk=Object.assign;function Nk(e){return e.trim()}function Ok(e,t){return(e=t.exec(e))?e[0]:e}function Rk(e,t,n){return e.replace(t,n)}function Pk(e,t,n){return e.indexOf(t,n)}function Tk(e,t){return 0|e.charCodeAt(t)}function Dk(e,t,n){return e.slice(t,n)}function Mk(e){return e.length}function Ik(e){return e.length}function Ak(e,t){return t.push(e),e}function Fk(e,t){return e.filter(function(e){return!Ok(e,t)})}var Lk=1,zk=1,$k=0,Hk=0,Vk=0,Bk="";function Uk(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Lk,column:zk,length:i,return:"",siblings:s}}function Wk(e,t){return jk(Uk("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function qk(e){for(;e.root;)e=Wk(e.root,{children:[e]});Ak(e,e.siblings)}function Yk(){return Vk=Hk>0?Tk(Bk,--Hk):0,zk--,10===Vk&&(zk=1,Lk--),Vk}function Gk(){return Vk=Hk<$k?Tk(Bk,Hk++):0,zk++,10===Vk&&(zk=1,Lk++),Vk}function Kk(){return Tk(Bk,Hk)}function Qk(){return Hk}function Xk(e,t){return Dk(Bk,e,t)}function Zk(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jk(e){return Nk(Xk(Hk-1,n_(91===e?e+2:40===e?e+1:e)))}function e_(e){for(;(Vk=Kk())&&Vk<33;)Gk();return Zk(e)>2||Zk(Vk)>3?"":" "}function t_(e,t){for(;--t&&Gk()&&!(Vk<48||Vk>102||Vk>57&&Vk<65||Vk>70&&Vk<97););return Xk(e,Qk()+(t<6&&32==Kk()&&32==Gk()))}function n_(e){for(;Gk();)switch(Vk){case e:return Hk;case 34:case 39:34!==e&&39!==e&&n_(Vk);break;case 40:41===e&&n_(e);break;case 92:Gk()}return Hk}function r_(e,t){for(;Gk()&&e+Vk!==57&&(e+Vk!==84||47!==Kk()););return"/*"+Xk(t,Hk-1)+"*"+Ek(47===e?e:Gk())}function o_(e){for(;!Zk(Kk());)Gk();return Xk(e,Hk)}function a_(e){return function(e){return Bk="",e}(i_("",null,null,null,[""],e=function(e){return Lk=zk=1,$k=Mk(Bk=e),Hk=0,[]}(e),0,[0],e))}function i_(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,C=r,S=b;g;)switch(h=v,v=Gk()){case 40:if(108!=h&&58==Tk(S,d-1)){-1!=Pk(S+=Rk(Jk(v),"&","&\f"),"&\f",_k(u?s[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:S+=Jk(v);break;case 9:case 10:case 13:case 32:S+=e_(h);break;case 92:S+=t_(Qk()-1,7);continue;case 47:switch(Kk()){case 42:case 47:Ak(l_(r_(Gk(),Qk()),t,n,l),l),5!=Zk(h||1)&&5!=Zk(Kk()||1)||!Mk(S)||" "===Dk(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[u++]=Mk(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=Rk(S,/\f/g,"")),p>0&&(Mk(S)-d||0===m&&47===h)&&Ak(p>32?u_(S+";",r,n,d-1,l):u_(Rk(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(Ak(C=s_(S,t,n,u,c,o,s,b,w=[],x=[],d,a),a),123===v)if(0===c)i_(S,t,C,C,w,a,d,s,x);else{switch(f){case 99:if(110===Tk(S,3))break;case 108:if(97===Tk(S,2))break;default:c=0;case 100:case 109:case 115:}c?i_(e,C,C,r&&Ak(s_(e,C,C,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,r?w:x):i_(S,C,C,C,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=S="",d=i;break;case 58:d=1+Mk(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Yk())continue;switch(S+=Ek(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(Mk(S)-1)*y,y=1;break;case 64:45===Kk()&&(S+=Jk(Gk())),f=Kk(),c=d=Mk(b=S+=o_(Qk())),v++;break;case 45:45===h&&2==Mk(S)&&(m=0)}}return a}function s_(e,t,n,r,o,a,i,s,l,u,c,d){for(var f=o-1,p=0===o?a:[""],h=Ik(p),m=0,g=0,y=0;m<r;++m)for(var v=0,b=Dk(e,f+1,f=_k(g=i[m])),w=e;v<h;++v)(w=Nk(g>0?p[v]+" "+b:Rk(b,/&\f/g,p[v])))&&(l[y++]=w);return Uk(e,t,n,0===o?Ck:s,l,u,c,d)}function l_(e,t,n,r){return Uk(e,t,n,xk,Ek(Vk),Dk(e,2,-2),0,r)}function u_(e,t,n,r,o){return Uk(e,t,n,Sk,Dk(e,0,r),Dk(e,r+1,-1),r,o)}function c_(e,t,n){switch(function(e,t){return 45^Tk(e,0)?(((t<<2^Tk(e,0))<<2^Tk(e,1))<<2^Tk(e,2))<<2^Tk(e,3):0}(e,t)){case 5103:return wk+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return wk+e+e;case 4855:return wk+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return bk+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wk+e+bk+e+vk+e+e;case 5936:switch(Tk(e,t+11)){case 114:return wk+e+vk+Rk(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wk+e+vk+Rk(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wk+e+vk+Rk(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return wk+e+vk+e+e;case 6165:return wk+e+vk+"flex-"+e+e;case 5187:return wk+e+Rk(e,/(\w+).+(:[^]+)/,wk+"box-$1$2"+vk+"flex-$1$2")+e;case 5443:return wk+e+vk+"flex-item-"+Rk(e,/flex-|-self/g,"")+(Ok(e,/flex-|baseline/)?"":vk+"grid-row-"+Rk(e,/flex-|-self/g,""))+e;case 4675:return wk+e+vk+"flex-line-pack"+Rk(e,/align-content|flex-|-self/g,"")+e;case 5548:return wk+e+vk+Rk(e,"shrink","negative")+e;case 5292:return wk+e+vk+Rk(e,"basis","preferred-size")+e;case 6060:return wk+"box-"+Rk(e,"-grow","")+wk+e+vk+Rk(e,"grow","positive")+e;case 4554:return wk+Rk(e,/([^-])(transform)/g,"$1"+wk+"$2")+e;case 6187:return Rk(Rk(Rk(e,/(zoom-|grab)/,wk+"$1"),/(image-set)/,wk+"$1"),e,"")+e;case 5495:case 3959:return Rk(e,/(image-set\([^]*)/,wk+"$1$`$1");case 4968:return Rk(Rk(e,/(.+:)(flex-)?(.*)/,wk+"box-pack:$3"+vk+"flex-pack:$3"),/space-between/,"justify")+wk+e+e;case 4200:if(!Ok(e,/flex-|baseline/))return vk+"grid-column-align"+Dk(e,t)+e;break;case 2592:case 3360:return vk+Rk(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Ok(e.props,/grid-\w+-end/)})?~Pk(e+(n=n[t].value),"span",0)?e:vk+Rk(e,"-start","")+e+vk+"grid-row-span:"+(~Pk(n,"span",0)?Ok(n,/\d+/):+Ok(n,/\d+/)-+Ok(e,/\d+/))+";":vk+Rk(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Ok(e.props,/grid-\w+-start/)})?e:vk+Rk(Rk(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Rk(e,/(.+)-inline(.+)/,wk+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mk(e)-1-t>6)switch(Tk(e,t+1)){case 109:if(45!==Tk(e,t+4))break;case 102:return Rk(e,/(.+:)(.+)-([^]+)/,"$1"+wk+"$2-$3$1"+bk+(108==Tk(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Pk(e,"stretch",0)?c_(Rk(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Rk(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,a,i,s){return vk+n+":"+r+s+(o?vk+n+"-span:"+(a?i:+i-+r)+s:"")+e});case 4949:if(121===Tk(e,t+6))return Rk(e,":",":"+wk)+e;break;case 6444:switch(Tk(e,45===Tk(e,14)?18:11)){case 120:return Rk(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+wk+(45===Tk(e,14)?"inline-":"")+"box$3$1"+wk+"$2$3$1"+vk+"$2box$3")+e;case 100:return Rk(e,":",":"+vk)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Rk(e,"scroll-","scroll-snap-")+e}return e}function d_(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function f_(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Sk:return e.return=e.return||e.value;case xk:return"";case kk:return e.return=e.value+"{"+d_(e.children,r)+"}";case Ck:if(!Mk(e.value=e.props.join(",")))return""}return Mk(n=d_(e.children,r))?e.return=e.value+"{"+n+"}":""}function p_(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Sk:return void(e.return=c_(e.value,e.length,n));case kk:return d_([Wk(e,{value:Rk(e.value,"@","@"+wk)})],r);case Ck:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Ok(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":qk(Wk(e,{props:[Rk(t,/:(read-\w+)/,":-moz-$1")]})),qk(Wk(e,{props:[t]})),jk(e,{props:Fk(n,r)});break;case"::placeholder":qk(Wk(e,{props:[Rk(t,/:(plac\w+)/,":"+wk+"input-$1")]})),qk(Wk(e,{props:[Rk(t,/:(plac\w+)/,":-moz-$1")]})),qk(Wk(e,{props:[Rk(t,/:(plac\w+)/,vk+"input-$1")]})),qk(Wk(e,{props:[t]})),jk(e,{props:Fk(n,r)})}return""})}}var h_="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m_="active",g_="data-styled-version",y_="6.3.8",v_="/*!sc*/\n",b_="undefined"!=typeof window&&"undefined"!=typeof document,w_=void 0===M.createContext,x_=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),C_=Object.freeze([]),S_=Object.freeze({});var k_=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),__=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,E_=/(^-|-$)/g;function j_(e){return e.replace(__,"-").replace(E_,"")}var N_=/(a)(d)/gi,O_=function(e){return String.fromCharCode(e+(e>25?39:97))};function R_(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=O_(t%52)+n;return(O_(t%52)+n).replace(N_,"$1-$2")}var P_,T_=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},D_=function(e){return T_(5381,e)};function M_(e){return R_(D_(e)>>>0)}function I_(e){return"string"==typeof e&&!0}var A_="function"==typeof Symbol&&Symbol.for,F_=A_?Symbol.for("react.memo"):60115,L_=A_?Symbol.for("react.forward_ref"):60112,z_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},H_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V_=((P_={})[L_]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},P_[F_]=H_,P_);function B_(e){return("type"in(t=e)&&t.type.$$typeof)===F_?H_:"$$typeof"in e?V_[e.$$typeof]:z_;var t}var U_=Object.defineProperty,W_=Object.getOwnPropertyNames,q_=Object.getOwnPropertySymbols,Y_=Object.getOwnPropertyDescriptor,G_=Object.getPrototypeOf,K_=Object.prototype;function Q_(e,t,n){if("string"!=typeof t){if(K_){var r=G_(t);r&&r!==K_&&Q_(e,r,n)}var o=W_(t);q_&&(o=o.concat(q_(t)));for(var a=B_(e),i=B_(t),s=0;s<o.length;++s){var l=o[s];if(!(l in $_||n&&n[l]||i&&l in i||a&&l in a)){var u=Y_(t,l);try{U_(e,l,u)}catch(e){}}}}return e}function X_(e){return"function"==typeof e}function Z_(e){return"object"==typeof e&&"styledComponentId"in e}function J_(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eE(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function tE(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function nE(e,t,n){if(void 0===n&&(n=!1),!n&&!tE(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=nE(e[r],t[r]);else if(tE(t))for(var r in t)e[r]=nE(e[r],t[r]);return e}function rE(e,t){Object.defineProperty(e,"toString",{value:t})}function oE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var aE=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw oE(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),s=(a=0,t.length);a<s;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(v_);return t},e}(),iE=new Map,sE=new Map,lE=1,uE=function(e){if(iE.has(e))return iE.get(e);for(;sE.has(lE);)lE++;var t=lE++;return iE.set(e,t),sE.set(t,e),t},cE=function(e,t){lE=t+1,iE.set(e,t),sE.set(t,e)},dE="style[".concat(h_,"][").concat(g_,'="').concat(y_,'"]'),fE=new RegExp("^".concat(h_,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pE=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},hE=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(v_),o=[],a=0,i=r.length;a<i;a++){var s=r[a].trim();if(s){var l=s.match(fE);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(cE(c,u),pE(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},mE=function(e){for(var t=document.querySelectorAll(dE),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(h_)!==m_&&(hE(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var gE=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(h_,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(h_,m_),r.setAttribute(g_,y_);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},yE=function(){function e(e){this.element=gE(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw oE(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),vE=function(){function e(e){this.element=gE(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),bE=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),wE=b_,xE={isServer:!b_,useCSSOMInjection:!x_},CE=function(){function e(e,t,n){void 0===e&&(e=S_),void 0===t&&(t={});var r=this;this.options=ru(ru({},xE),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&b_&&wE&&(wE=!1,mE(this)),rE(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return sE.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||!a.size||0===i.length)return"continue";var s="".concat(h_,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(i).concat(s,'{content:"').concat(l,'"}').concat(v_)},a=0;a<n;a++)o(a);return r}(r)})}return e.registerId=function(e){return uE(e)},e.prototype.rehydrate=function(){!this.server&&b_&&mE(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ru(ru({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new bE(n):t?new yE(n):new vE(n)}(this.options),new aE(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(uE(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(uE(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(uE(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),SE=/&/g,kE=47;function _E(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,o=!1,a=0;a<t;a++){var i=e.charCodeAt(a);if(0!==r||o||i!==kE||42!==e.charCodeAt(a+1))if(o)42===i&&e.charCodeAt(a+1)===kE&&(o=!1,a++);else if(34!==i&&39!==i||0!==a&&92===e.charCodeAt(a-1)){if(0===r)if(123===i)n++;else if(125===i&&--n<0)return!0}else 0===r?r=i:r===i&&(r=0);else o=!0,a++}return 0!==n||0!==r}function EE(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=EE(e.children,t)),e})}var jE=new CE,NE=function(){var e,t,n,r=S_,o=r.options,a=void 0===o?S_:o,i=r.plugins,s=void 0===i?C_:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},u=s.slice();u.push(function(e){e.type===Ck&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(SE,t).replace(n,l))}),a.prefix&&u.push(p_),u.push(f_);var c=function(r,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),e=s,t=o,n=new RegExp("\\".concat(t,"\\b"),"g");var l=function(e){if(!_E(e))return e;for(var t=e.length,n="",r=0,o=0,a=0,i=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==a||i||l!==kE||42!==e.charCodeAt(s+1))if(i)42===l&&e.charCodeAt(s+1)===kE&&(i=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===a)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,r=u;continue}0===o&&(n+=e.substring(r,s+1),r=s+1)}else 59===l&&0===o&&(n+=e.substring(r,s+1),r=s+1)}else 0===a?a=l:a===l&&(a=0);else i=!0,s++}if(r<t){var d=e.substring(r);_E(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,o=0,a=0,i=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===a)if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))i=1,o++;else if(i>0)41===s?i--:40===s&&i++,o++;else if(s===kE&&o+1<t&&e.charCodeAt(o+1)===kE){for(o>r&&n.push(e.substring(r,o));o<t&&10!==e.charCodeAt(o);)o++;r=o}else o++;else o++;else 0===a?a=s:a===s&&(a=0),o++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(r)),c=a_(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=EE(c,a.namespace));var d,f=[];return d_(c,function(e){var t=Ik(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(u.concat((d=function(e){return f.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),f};return c.hash=s.length?s.reduce(function(e,t){return t.name||oE(15),T_(e,t.name)},5381).toString():"",c}(),OE={shouldForwardProp:void 0,styleSheet:jE,stylis:NE},RE=w_?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(OE)}}:M.createContext(OE);function PE(){return w_?OE:M.useContext(RE)}RE.Consumer,w_||M.createContext(void 0);var TE=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=NE);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,rE(this,function(){throw oE(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=NE),this.name+e.hash},e}();function DE(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Uh||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var ME=function(e){return e>="A"&&e<="Z"};function IE(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ME(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var AE=function(e){return null==e||!1===e||""===e},FE=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!AE(r)&&(Array.isArray(r)&&r.isCss||X_(r)?t.push("".concat(IE(n),":"),r,";"):tE(r)?t.push.apply(t,au(au(["".concat(n," {")],FE(r),!1),["}"],!1)):t.push("".concat(IE(n),": ").concat(DE(n,r),";")))}return t};function LE(e,t,n,r){return AE(e)?[]:Z_(e)?[".".concat(e.styledComponentId)]:X_(e)?!X_(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:LE(e(t),t,n,r):e instanceof TE?n?(e.inject(n,r),[e.getName(r)]):[e]:tE(e)?FE(e):Array.isArray(e)?Array.prototype.concat.apply(C_,e.map(function(e){return LE(e,t,n,r)})):[e.toString()];var o}var zE=D_(y_),$E=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(X_(n)&&!Z_(n))return!1}return!0}(e),this.componentId=t,this.baseHash=T_(zE,t),this.baseStyle=n,CE.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=J_(r,this.staticRulesId);else{var o=eE(LE(this.rules,e,t,n)),a=R_(T_(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=J_(r,a),this.staticRulesId=a}else{for(var s=T_(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=eE(LE(c,e,t,n));s=T_(s,d+u),l+=d}}if(l){var f=R_(s>>>0);if(!t.hasNameForId(this.componentId,f)){var p=n(l,".".concat(f),void 0,this.componentId);t.insertRules(this.componentId,f,p)}r=J_(r,f)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(uE(this.componentId)):""}},e}(),HE=w_?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:M.createContext(void 0);HE.Consumer;var VE={};function BE(e,t,n){var r=Z_(e),o=e,a=!I_(e),i=t.attrs,s=void 0===i?C_:i,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":j_(e);VE[n]=(VE[n]||0)+1;var r="".concat(n,"-").concat(M_(y_+n+VE[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return I_(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,f=t.displayName&&t.componentId?"".concat(j_(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var y=new $E(n,f,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,a=e.defaultProps,i=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=w_?void 0:M.useContext(HE),c=PE(),d=e.shouldForwardProp||c.shouldForwardProp,f=function(e,t,n){return void 0===n&&(n=S_),e.theme!==n.theme&&e.theme||t||n.theme}(t,u,a)||S_,p=function(e,t,n){for(var r,o=ru(ru({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var i=X_(r=e[a])?r(o):r;for(var s in i)"className"===s?o.className=J_(o.className,i[s]):"style"===s?o.style=ru(ru({},o.style),i[s]):o[s]=i[s]}return"className"in t&&"string"==typeof t.className&&(o.className=J_(o.className,t.className)),o}(r,t,f),h=p.as||l,m={};for(var g in p)void 0===p[g]||"$"===g[0]||"as"===g||"theme"===g&&p.theme===f||("forwardedAs"===g?m.as=p.forwardedAs:d&&!d(g,h)||(m[g]=p[g]));var y=function(e,t){var n=PE();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,p),v=y.className,b=y.css,w=J_(i,s);v&&(w+=" "+v),p.className&&(w+=" "+p.className),m[I_(h)&&!k_.has(h)?"class":"className"]=w,n&&(m.ref=n);var x=D.createElement(h,m);return w_&&b?M.createElement(M.Fragment,null,M.createElement("style",{precedence:"styled-components",href:"sc-".concat(s,"-").concat(v),children:b}),x):x}(b,e,t)}v.displayName=d;var b=M.forwardRef(v);return b.attrs=p,b.componentStyle=y,b.displayName=d,b.shouldForwardProp=h,b.foldedComponentIds=r?J_(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)nE(e,o[r],!0);return e}({},o.defaultProps,e):e}}),rE(b,function(){return".".concat(b.styledComponentId)}),a&&Q_(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function UE(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var WE=function(e){return Object.assign(e,{isCss:!0})};function qE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(X_(e)||tE(e))return WE(LE(UE(C_,au([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?LE(r):WE(LE(UE(r,t)))}function YE(e,t,n){if(void 0===n&&(n=S_),!t)throw oE(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,qE.apply(void 0,au([r],o,!1)))};return r.attrs=function(r){return YE(e,t,ru(ru({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return YE(e,t,ru(ru({},n),r))},r}var GE=function(e){return YE(BE,e)},KE=GE;function QE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=eE(qE.apply(void 0,au([e],t,!1))),o=M_(r);return new TE(o,r)}k_.forEach(function(e){KE[e]=GE(e)});const XE={"aria-busy":!0,role:"progressbar"},ZE=KE.div`
|
|
142
142
|
display: ${e=>e.$visible?"flex":"none"};
|
|
143
|
-
`,
|
|
143
|
+
`,JE=242.776657104492,ej=QE`
|
|
144
144
|
12.5% {
|
|
145
|
-
stroke-dasharray: ${33.98873199462888}px, ${
|
|
145
|
+
stroke-dasharray: ${33.98873199462888}px, ${JE}px;
|
|
146
146
|
stroke-dashoffset: -${26.70543228149412}px;
|
|
147
147
|
}
|
|
148
148
|
43.75% {
|
|
149
|
-
stroke-dasharray: ${84.97182998657219}px, ${
|
|
149
|
+
stroke-dasharray: ${84.97182998657219}px, ${JE}px;
|
|
150
150
|
stroke-dashoffset: -${84.97182998657219}px;
|
|
151
151
|
}
|
|
152
152
|
100% {
|
|
153
|
-
stroke-dasharray: ${2.42776657104492}px, ${
|
|
153
|
+
stroke-dasharray: ${2.42776657104492}px, ${JE}px;
|
|
154
154
|
stroke-dashoffset: -${240.34889053344708}px;
|
|
155
155
|
}
|
|
156
|
-
`;
|
|
157
|
-
stroke-dasharray: ${2.42776657104492}px, ${
|
|
156
|
+
`;KE.path`
|
|
157
|
+
stroke-dasharray: ${2.42776657104492}px, ${JE};
|
|
158
158
|
stroke-dashoffset: 0;
|
|
159
|
-
animation: ${
|
|
160
|
-
`;const
|
|
159
|
+
animation: ${ej} ${1.6}s linear infinite;
|
|
160
|
+
`;const tj=QE`
|
|
161
161
|
to {
|
|
162
162
|
transform: rotate(360deg);
|
|
163
163
|
}
|
|
164
|
-
`;
|
|
165
|
-
animation: ${
|
|
164
|
+
`;KE.svg`
|
|
165
|
+
animation: ${tj} 0.75s steps(12, end) infinite;
|
|
166
166
|
animation-duration: 0.75s;
|
|
167
|
-
`,
|
|
167
|
+
`,KE.polyline`
|
|
168
168
|
stroke-width: ${e=>e.width}px;
|
|
169
169
|
stroke-linecap: round;
|
|
170
170
|
|
|
@@ -211,16 +211,16 @@ to {
|
|
|
211
211
|
&:nth-child(12n + 11) {
|
|
212
212
|
stroke-opacity: 0.92;
|
|
213
213
|
}
|
|
214
|
-
`;const
|
|
214
|
+
`;const nj=({height:e=80,width:t=80,radius:n=9,color:r="#4fa94d",ariaLabel:o="three-dots-loading",wrapperStyle:a,wrapperClass:i,visible:s=!0})=>m.jsx(ZE,{style:a,$visible:s,className:i,"data-testid":"three-dots-loading","aria-label":o,...XE,children:m.jsxs("svg",{width:t,height:e,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:r,"data-testid":"three-dots-svg",children:[m.jsxs("circle",{cx:"15",cy:"15",r:Number(n)+6,children:[m.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]}),m.jsxs("circle",{cx:"60",cy:"15",r:n,attributeName:"fill-opacity",from:"1",to:"0.3",children:[m.jsx("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]}),m.jsxs("circle",{cx:"105",cy:"15",r:Number(n)+6,children:[m.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]})]})}),rj=QE`
|
|
215
215
|
to {
|
|
216
216
|
stroke-dashoffset: 136;
|
|
217
217
|
}
|
|
218
|
-
`;function
|
|
218
|
+
`;function oj({label:e,left_addon:t,right_addon:n,className:r,disabled:o,loading:a,mode:i="contained",onClick:s,type:l,loaderColor:u="#fff",...c}){return m.jsx("button",{onClick:s,className:ma(("contained"===i?"bg-primary hover:bg-button h-[38px] px-3 text-white":"text-primary hover:text-button bg-transparent")+" flex gap-1.5 transition ease-in items-center justify-center font-semibold cursor-pointer text-sm rounded-md disabled:opacity-70 disabled:cursor-not-allowed",r),disabled:o??a,type:l,...c,children:a?m.jsx(nj,{visible:!0,height:"40",width:"40",color:u,radius:"9",ariaLabel:"three-dots-loading"}):m.jsxs(m.Fragment,{children:[t,m.jsx("span",{className:"first-letter:uppercase",children:e}),n]})})}function aj({isOpen:e,onClose:t,uuids:n,single:r=!1}){const o=qn(),{mutate:a,isPending:i}=vx();return m.jsxs(yk,{isOpen:e,onClose:t,className:"w-[440px] py-5",children:[m.jsxs("div",{className:"px-5 flex gap-4",children:[m.jsx("span",{className:"shrink-0 w-10 h-10 flex items-center justify-center rounded-[10px] bg-red_light",children:M.cloneElement(bv.error,{fill:"#DF1C41"})}),m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-[#0A0D14] font-semibold capitalize",children:["delete ",r?"item":"items"]}),m.jsxs("p",{className:"text-[#525866] text-sm font-normal",children:["Are you sure you want to delete"," ",r?"this item":"these items","? Some sales data will be lost if you delete ",r?"this item":"these items","."]})]})]}),m.jsx(AC,{}),m.jsxs("div",{className:"grid grid-cols-2 gap-2.5 px-5",children:[m.jsx(oj,{label:"Dismiss",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:i}),m.jsx(oj,{label:"Delete",className:"bg-danger hover:bg-danger/90",onClick:()=>{a({url:"/items/delete",payload:{item_uuids:n}},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),o.invalidateQueries({queryKey:["items-tab"]}),t()}})},loading:i})]})]})}function ij(e,[t,n]){return Math.min(n,Math.max(t,e))}function sj(e){const t=D.useRef({value:e,previous:e});return D.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}KE.polygon`
|
|
219
219
|
stroke-dasharray: 17;
|
|
220
|
-
animation: ${
|
|
221
|
-
`,
|
|
220
|
+
animation: ${rj} 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;
|
|
221
|
+
`,KE.svg`
|
|
222
222
|
transform-origin: 50% 65%;
|
|
223
|
-
`;var sj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});D.forwardRef((e,t)=>m.jsx(za.span,{...e,ref:t,style:{...sj,...e.style}})).displayName="VisuallyHidden";var lj=[" ","Enter","ArrowUp","ArrowDown"],uj=[" ","Enter"],cj="Select",[dj,fj,pj]=Ha(cj),[hj]=ja(cj,[pj,cl]),mj=cl(),[gj,yj]=hj(cj),[vj,bj]=hj(cj),wj=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:p,form:h}=e,g=mj(t),[y,v]=D.useState(null),[b,w]=D.useState(null),[x,C]=D.useState(!1),S=Ba(u),[k,_]=Pa({prop:r,defaultProp:o??!1,onChange:a,caller:cj}),[E,j]=Pa({prop:i,defaultProp:s,onChange:l,caller:cj}),N=D.useRef(null),O=!y||(h||!!y.closest("form")),[R,P]=D.useState(new Set),T=Array.from(R).map(e=>e.props.value).join(";");return m.jsx(El,{...g,children:m.jsxs(gj,{required:p,scope:t,trigger:y,onTriggerChange:v,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:x,onValueNodeHasChildrenChange:C,contentId:mi(),value:E,onValueChange:j,open:k,onOpenChange:_,dir:S,triggerPointerDownPosRef:N,disabled:f,children:[m.jsx(dj.Provider,{scope:t,children:m.jsx(vj,{scope:e.__scopeSelect,onNativeOptionAdd:D.useCallback(e=>{P(t=>new Set(t).add(e))},[]),onNativeOptionRemove:D.useCallback(e=>{P(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),O?m.jsxs(iN,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:E,onChange:e=>j(e.target.value),disabled:f,form:h,children:[void 0===E?m.jsx("option",{value:""}):null,Array.from(R)]},T):null]})})};wj.displayName=cj;var xj="SelectTrigger",Cj=D.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=mj(n),i=yj(xj,n),s=i.disabled||r,l=Ea(t,i.onTriggerChange),u=fj(n),c=D.useRef("touch"),[d,f,p]=lN(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===i.value),r=uN(t,e,n);void 0!==r&&i.onValueChange(r.value)}),h=e=>{s||(i.onOpenChange(!0),p()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return m.jsx(jl,{asChild:!0,...a,children:m.jsx(za.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":sN(i.value)?"":void 0,...o,ref:l,onClick:Sa(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&h(e)}),onPointerDown:Sa(o.onPointerDown,e=>{c.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:Sa(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||lj.includes(e.key)&&(h(),e.preventDefault())})})})});Cj.displayName=xj;var Sj="SelectValue",kj=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=yj(Sj,n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==a,d=Ea(t,l.onValueNodeChange);return Oa(()=>{u(c)},[u,c]),m.jsx(za.span,{...s,ref:d,style:{pointerEvents:"none"},children:sN(l.value)?m.jsx(m.Fragment,{children:i}):a})});kj.displayName=Sj;var _j=D.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.jsx(za.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});_j.displayName="SelectIcon";var Ej=e=>m.jsx(Rl,{asChild:!0,...e});Ej.displayName="SelectPortal";var jj="SelectContent",Nj=D.forwardRef((e,t)=>{const n=yj(jj,e.__scopeSelect),[r,o]=D.useState();if(Oa(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?Ta.createPortal(m.jsx(Rj,{scope:e.__scopeSelect,children:m.jsx(dj.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),t):null}return m.jsx(Dj,{...e,ref:t})});Nj.displayName=jj;var Oj=10,[Rj,Pj]=hj(jj),Tj=Ma("SelectContent.RemoveScroll"),Dj=D.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y,...v}=e,b=yj(jj,n),[w,x]=D.useState(null),[C,S]=D.useState(null),k=Ea(t,e=>x(e)),[_,E]=D.useState(null),[j,N]=D.useState(null),O=fj(n),[R,P]=D.useState(!1),T=D.useRef(!1);D.useEffect(()=>{if(w)return ru(w)},[w]),ti();const M=D.useCallback(e=>{const[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==o)return}},[O,C]),I=D.useCallback(()=>M([_,w]),[M,_,w]);D.useEffect(()=>{R&&I()},[R,I]);const{onOpenChange:A,triggerPointerDownPosRef:F}=b;D.useEffect(()=>{if(w){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||A(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[w,A,F]),D.useEffect(()=>{const e=()=>A(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[A]);const[L,z]=lN(e=>{const t=O().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=uN(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),$=D.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==b.value&&b.value===t||r)&&(E(e),r&&(T.current=!0))},[b.value]),H=D.useCallback(()=>w?.focus(),[w]),V=D.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==b.value&&b.value===t||r)&&N(e)},[b.value]),B="popper"===r?Ij:Mj,U=B===Ij?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y}:{};return m.jsx(Rj,{scope:n,content:w,viewport:C,onViewportChange:S,itemRefCallback:$,selectedItem:_,onItemLeave:H,itemTextRefCallback:V,focusSelectedItem:I,selectedItemText:j,position:r,isPositioned:R,searchRef:L,children:m.jsx(Wu,{as:Tj,allowPinchZoom:!0,children:m.jsx(ii,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Sa(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:m.jsx(Qa,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:m.jsx(B,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...v,...U,onPlaced:()=>P(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Sa(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>M(t)),e.preventDefault()}})})})})})})});Dj.displayName="SelectContentImpl";var Mj=D.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=yj(jj,n),i=Pj(jj,n),[s,l]=D.useState(null),[u,c]=D.useState(null),d=Ea(t,e=>c(e)),f=fj(n),p=D.useRef(!1),h=D.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:v,focusSelectedItem:b}=i,w=D.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&y&&v){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-Oj,d=aj(a,[Oj,Math.max(Oj,c-u)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-Oj,d=aj(a,[Oj,Math.max(Oj,c-u)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=f(),l=window.innerHeight-2*Oj,c=g.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+m+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*y.offsetHeight,w),C=window.getComputedStyle(g),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),_=e.top+e.height/2-Oj,E=l-_,j=y.offsetHeight/2,N=h+m+(y.offsetTop+j),O=w-N;if(N<=_){const e=i.length>0&&y===i[i.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-g.offsetTop-g.offsetHeight,n=N+Math.max(E,j+(e?k:0)+t+b);s.style.height=n+"px"}else{const e=i.length>0&&y===i[0].ref.current;s.style.top="0px";const t=Math.max(_,h+g.offsetTop+(e?S:0)+j)+O;s.style.height=t+"px",g.scrollTop=N-_+g.offsetTop}s.style.margin=`${Oj}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,u,g,y,v,a.dir,r]);Oa(()=>w(),[w]);const[x,C]=D.useState();Oa(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const S=D.useCallback(e=>{e&&!0===h.current&&(w(),b?.(),h.current=!1)},[w,b]);return m.jsx(Aj,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:m.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:m.jsx(za.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Mj.displayName="SelectItemAlignedPosition";var Ij=D.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Oj,...a}=e,i=mj(n);return m.jsx(Nl,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ij.displayName="SelectPopperPosition";var[Aj,Fj]=hj(jj,{}),Lj="SelectViewport",zj=D.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Pj(Lj,n),i=Fj(Lj,n),s=Ea(t,a.onViewportChange),l=D.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),m.jsx(dj.Slot,{scope:n,children:m.jsx(za.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Sa(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(r?.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Oj,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});zj.displayName=Lj;var $j="SelectGroup",[Hj,Vj]=hj($j);D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=mi();return m.jsx(Hj,{scope:n,id:o,children:m.jsx(za.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=$j;var Bj="SelectLabel",Uj=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Vj(Bj,n);return m.jsx(za.div,{id:o.id,...r,ref:t})});Uj.displayName=Bj;var Wj="SelectItem",[qj,Yj]=hj(Wj),Gj=D.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=yj(Wj,n),l=Pj(Wj,n),u=s.value===r,[c,d]=D.useState(a??""),[f,p]=D.useState(!1),h=Ea(t,e=>l.itemRefCallback?.(e,r,o)),g=mi(),y=D.useRef("touch"),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(qj,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:D.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:m.jsx(dj.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:m.jsx(za.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:h,onFocus:Sa(i.onFocus,()=>p(!0)),onBlur:Sa(i.onBlur,()=>p(!1)),onClick:Sa(i.onClick,()=>{"mouse"!==y.current&&v()}),onPointerUp:Sa(i.onPointerUp,()=>{"mouse"===y.current&&v()}),onPointerDown:Sa(i.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:Sa(i.onPointerMove,e=>{y.current=e.pointerType,o?l.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Sa(i.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Sa(i.onKeyDown,e=>{""!==l.searchRef?.current&&" "===e.key||(uj.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});Gj.displayName=Wj;var Kj="SelectItemText",Qj=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=yj(Kj,n),s=Pj(Kj,n),l=Yj(Kj,n),u=bj(Kj,n),[c,d]=D.useState(null),f=Ea(t,e=>d(e),l.onItemTextChange,e=>s.itemTextRefCallback?.(e,l.value,l.disabled)),p=c?.textContent,h=D.useMemo(()=>m.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=u;return Oa(()=>(g(h),()=>y(h)),[g,y,h]),m.jsxs(m.Fragment,{children:[m.jsx(za.span,{id:l.textId,...a,ref:f}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Ta.createPortal(a.children,i.valueNode):null]})});Qj.displayName=Kj;var Xj="SelectItemIndicator",Zj=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Yj(Xj,n).isSelected?m.jsx(za.span,{"aria-hidden":!0,...r,ref:t}):null});Zj.displayName=Xj;var Jj="SelectScrollUpButton",eN=D.forwardRef((e,t)=>{const n=Pj(Jj,e.__scopeSelect),r=Fj(Jj,e.__scopeSelect),[o,a]=D.useState(!1),i=Ea(t,r.onScrollButtonChange);return Oa(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?m.jsx(rN,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eN.displayName=Jj;var tN="SelectScrollDownButton",nN=D.forwardRef((e,t)=>{const n=Pj(tN,e.__scopeSelect),r=Fj(tN,e.__scopeSelect),[o,a]=D.useState(!1),i=Ea(t,r.onScrollButtonChange);return Oa(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?m.jsx(rN,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});nN.displayName=tN;var rN=D.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Pj("SelectScrollButton",n),i=D.useRef(null),s=fj(n),l=D.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return D.useEffect(()=>()=>l(),[l]),Oa(()=>{const e=s().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[s]),m.jsx(za.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Sa(o.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(r,50))}),onPointerMove:Sa(o.onPointerMove,()=>{a.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(r,50))}),onPointerLeave:Sa(o.onPointerLeave,()=>{l()})})}),oN=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(za.div,{"aria-hidden":!0,...r,ref:t})});oN.displayName="SelectSeparator";var aN="SelectArrow";D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=mj(n),a=yj(aN,n),i=Pj(aN,n);return a.open&&"popper"===i.position?m.jsx(Ol,{...o,...r,ref:t}):null}).displayName=aN;var iN=D.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=D.useRef(null),a=Ea(r,o),i=ij(t);return D.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),m.jsx(za.select,{...n,style:{...sj,...n.style},ref:a,defaultValue:t})});function sN(e){return""===e||void 0===e}function lN(e){const t=Ua(e),n=D.useRef(""),r=D.useRef(0),o=D.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=D.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return D.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function uN(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}iN.displayName="SelectBubbleInput";var cN=Cj,dN=_j,fN=Ej,pN=Nj,hN=zj,mN=Uj,gN=Gj,yN=Qj,vN=Zj,bN=eN,wN=nN,xN=oN;const CN=wj,SN=kj,kN=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(cN,{ref:r,className:ma("flex h-10 w-full items-center hover:border-[#BFD7FE] justify-between rounded-md border focus:border-primary border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-neutral-500 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 ",e),...n,children:[t,m.jsx(dN,{asChild:!0,children:m.jsx(Xd,{className:"h-4 w-4 opacity-50"})})]}));kN.displayName=cN.displayName;const _N=D.forwardRef(({className:e,...t},n)=>m.jsx(bN,{ref:n,className:ma("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(Jd,{className:"h-4 w-4"})}));_N.displayName=bN.displayName;const EN=D.forwardRef(({className:e,...t},n)=>m.jsx(wN,{ref:n,className:ma("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(Xd,{className:"h-4 w-4"})}));EN.displayName=wN.displayName;const jN=D.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>m.jsx(fN,{children:m.jsxs(pN,{ref:o,className:ma("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[m.jsx(_N,{}),m.jsx(hN,{className:ma("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(EN,{})]})}));jN.displayName=pN.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(mN,{ref:n,className:ma("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=mN.displayName;const NN=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(gN,{ref:r,className:ma("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary/20 cursor-pointer focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(vN,{children:m.jsx(Qd,{className:"h-4 w-4"})})}),m.jsx(yN,{children:t})]}));NN.displayName=gN.displayName;function ON({label:e,addonLabel:t,type:n,placeholder:r,selectPlaceholder:o,error:a,success:i,value:s,defaultValue:l,name:u,id:c,formik:d,onChange:f,inputRef:p,onBlur:h,required:g,disabled:y,loading:v,showError:b,selectOptions:w,disableSearch:x,searchSelectPlaceholder:C,showSelectSearch:S,onSelectValueChange:k,selectValue:_,showOutline:E=!0,cols:j,rows:N,labelClass:O,addonLabelClass:R,optional:P,info:T,addonInfo:M,icon:I,actionIcon:A,actionLabel:F,actionLabelInfo:L,actionLabelAction:z,className:$,textAreaOnChange:H,addOn:V,infoAlignment:B,addonInfoAlignment:U,inputContainerClass:W,showNegative:q,showPositive:Y,...G}){const[K,Q]=D.useState(n),[X,Z]=D.useState(!1),[J,ee]=D.useState(""),te=((e,t)=>{const n=e?.filter(e=>"string"==typeof e.label?e.label?.toLowerCase().includes(t.toLowerCase()):e.value?.toLowerCase().includes(t.toLowerCase())||e?.searchId?.toLowerCase().includes(t.toLowerCase()));return t?n:e})(w??[],J);return m.jsx(m.Fragment,{children:v?m.jsx(Ca,{className:"w-full h-12"}):m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:`flex flex-col ${e&&"gap-2.5"} relative `,children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[t&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",R),children:[t," ",g?m.jsx("span",{className:"text-[#E12D39]",children:t&&"*"}):P?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,M&&m.jsx(Wv,{fieldName:t,align:U,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:M})})]}),e&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",O),children:[e," ",g?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):P?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,T&&m.jsx(Wv,{fieldName:e,align:B,children:m.jsx("p",{className:"font-normal first-letter:uppercase w-full whitespace-pre-wrap",children:T})})]}),F&&m.jsxs("button",{onClick:z,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-bold",children:[A,F,L&&m.jsx(Wv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:L})})]})]}),m.jsxs("div",{className:ma(`border overflow-hidden rounded-md text-sm border-[#E1E3EA] hover:border-primary_light font-normal text-grey-950 flex gap-2 items-center bg-white px-3 ${"text-area"!==n&&"h-12"} ${(a||b)&&"!border-danger"} ${i&&"!border-success"} ${X&&E&&"!border-primary"}\n ${I&&"px-2"}\n ${V&&"px-0"}\n `,y?"cursor-not-allowed bg-gray-200":null,w?"px-0":null,W),children:[V&&m.jsx("span",{className:"bg-gray-200 text-[13px] font-semibold text-gray-700 h-full min-w-[38px] flex items-center justify-center shrink-0 rounded-l-md px-2 ",children:V}),I,w&&m.jsxs(CN,{onValueChange:k,defaultValue:_,value:_,children:[m.jsx(kN,{disabled:x,className:" min-w-max w-max h-full border-0 border-r rounded-none hover:border-neutral-200 focus:border-neutral-200 bg-[#F9F9F9] hover:border-b-neutral-200 disabled:opacity-100 ",children:m.jsx(SN,{className:" text-sm text-[#5E6278] placeholder:font-medium outline-none",placeholder:o})}),m.jsxs(jN,{className:"bg-white w-full relative",children:[S&&m.jsx("input",{value:J,onChange:e=>{ee(e.target.value.toString())},placeholder:C??"Search...",className:"h-10 border mb-2 text-sm px-4 outline-none w-full border-neutral-200 rounded bg-white sticky top-0 z-20"}),te?.map((e,t)=>m.jsx(NN,{className:"text-sm",value:e.value,children:e.label},e.value))]})]}),"text-area"===n?m.jsx("textarea",{cols:j,rows:N,onFocus:()=>Z(!0),onBlur:e=>{Z(!1)},placeholder:r,className:ma(`placeholder:text-[#7E8299] hover:border-primary_light py-2 h-full placeholder:font-medium outline-none w-full rounded ${y?"bg-[#EEEFF2] cursor-not-allowed":null} ${X&&E&&"!border-primary"} transition-all ease-in-out`,$),...G,value:s,name:u,onChange:H}):m.jsx("input",{onInput:e=>{const t=e.target;"number"===n&&(t.value=t.value.replace(/[^0-9.]/g,""),t.value=t.value.replace(/^\.|(\..*)\./g,"$1"),t.value.length>1&&t.value.startsWith("0")&&"."!==t.value[1]&&(t.value=t.value.replace(/^0+/,"")),""!==t.value&&"0"!==t.value||(t.value="0"))},type:"number"===K?"text":K,placeholder:r,className:ma("placeholder:text-[#7E8299] h-full placeholder:font-medium outline-none w-full rounded disabled:cursor-not-allowed",w&&"number"===n?"pr-2":null,I||V?"pr-0":null,w&&"number"===n&&t&&"text-right pr-2",$,Y&&"0"!==s?.toString().trim()?"text-green-600 font-semibold":"",q&&s?.toString().trim().startsWith("-")?"text-red-600 font-semibold":""),onFocus:()=>Z(!0),onBlur:e=>{d&&h&&d&&h(e),Z(!1)},value:s||"",defaultValue:l,onChange:f,id:c,name:u,required:g,disabled:y,ref:p,...G}),"password"===n&&m.jsx("span",{className:"cursor-pointer",onClick:()=>{Q(e=>"password"===e?"text":"password")},children:"password"===K?wv.eyeslash:wv.eye})]}),a&&m.jsx("p",{className:"text-danger text-xs font-normal",children:a})]})})})}function RN({value:e,label:t,placeholder:n,uuid:r,name:o,displayValue:a,valueType:i,item_unit:s}){const{mutate:l,isPending:u}=bx();J();const[c,d]=D.useState(!1),[f,p]=D.useState({item_uuid:r,[o]:e});qn();const[h,g]=D.useState("");return m.jsxs(ak,{open:c,onOpenChange:d,children:[m.jsx(ik,{className:"flex items-center",children:m.jsx("button",{className:"hover:text-primary duration-150 underline disabled:no-underline disabled:hover:text-inherit",children:h?"selling_price"===o?kv(+h):_v(+h)+s:a})}),m.jsxs(sk,{align:"center",className:"shadow-[0_1px_2px_0px_#E4E5E73D,_0_12px_24px_0_#868C981F] space-y-2 bg-white rounded-xl p-3 w-[280px] relative before:absolute before:w-3 before:h-1.5 before:bg-white before:left-1/2 before:-translate-x-1/2 before:rotate-45 data-[side=bottom]:before:top-0 data-[side=top]:before:bottom-0",children:[m.jsx(ON,{type:i,value:f[o],label:t,placeholder:n,onChange:e=>{p(t=>({...t,[o]:e.target.value}))}}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(tk,{children:m.jsx(rj,{label:"Dismiss",className:"bg-gray-300 text-dark text-sm hover:bg-gray-300/90 font-medium",disabled:u})}),m.jsx(rj,{label:"Update",className:"text-sm font-medium",onClick:()=>{l({url:"/items/update_basic",payload:f},{onSuccess:()=>{g(f[o]),d(!1)},onError:()=>{g("")}})},loading:u})]})]})]})}D.forwardRef(({className:e,...t},n)=>m.jsx(xN,{ref:n,className:ma("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=xN.displayName;const PN=[{accessorKey:"item_description",header:()=>m.jsxs("p",{children:[" ","Item description/ ",m.jsx("br",{})," Product code"," "]}),cell:({row:e})=>{const t=e.original;return m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("div",{className:"w-[50px] h-[50px] rounded-2xl relative bg-gray-100",children:m.jsx("img",{src:t.item_image,alt:"item image",className:"rounded-2xl object-cover w-full h-full",draggable:!1})}),m.jsxs("div",{className:"space-y-1 max-w-[265px]",children:[m.jsx(DN,{title:t.item_description,item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData}),m.jsxs("p",{className:"text-dark text-xs font-normal flex items-center gap-1",children:[m.jsx("span",{className:"uppercase whitespace-nowrap",children:t.itemcode}),t.sku||t.barcode.length>0?m.jsx(Wv,{align:"center",fieldName:"All item codes",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px]",children:["+",(t.barcode?.length||0)+(t.sku?1:0)]}),children:m.jsxs("div",{className:"space-y-2",children:[t.sku?m.jsxs("div",{className:"",children:[m.jsx("p",{children:" SKU:"}),m.jsx("ul",{className:"list-disc pl-4",children:m.jsx("li",{children:t.sku})})]}):null,t.barcode.length>0?m.jsxs("div",{children:[m.jsx("p",{children:"Barcodes:"}),m.jsx("ul",{className:"list-disc pl-4 ",children:t.barcode.map((e,t)=>m.jsx("li",{children:e.barcode},t))})]}):null,m.jsxs("div",{className:"",children:[m.jsx("p",{children:" Itemcode:"}),m.jsx("ul",{className:"list-disc pl-4",children:m.jsx("li",{children:t.itemcode})})]})]})}):null,t.expired?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expired",m.jsx("span",{className:"rounded bg-danger_light px-[5px] flex items-center text-danger font-semibold text-[11px] h-[18px]",children:t.expired})]}):null,t.expiring?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expiring",m.jsx("span",{className:"rounded bg-warning-light px-[5px] flex items-center text-warning font-semibold text-[11px] h-[18px]",children:t.expiring})]}):null]})]})]})}},{accessorKey:"quantity",header:()=>m.jsx("p",{children:"quantity"}),cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:ma("flex items-center",t.quantity<=0?"text-danger":Number(t.reorder_level)==t.quantity?"text-orange":null),children:m.jsx(RN,{label:"Edit item quantity",placeholder:"Enter quantity",uuid:t.uuid,name:"item_quantity",displayValue:_v(t.quantity)+t.unit,value:t.quantity,valueType:"number",item_unit:t.unit})}),t.all_quantity===t.quantity?null:m.jsx("p",{className:"text-gray-700",children:Intl.NumberFormat().format(t.all_quantity??0)+t.unit})]})}},{accessorKey:"type",cell:({row:e})=>{const t=e.original;return m.jsx("p",{className:"capitalize",children:t.type})}},{accessorKey:"selling_price",header:"Selling Price (₦)",cell:({row:e})=>{const t=e.original;return m.jsx(RN,{label:"Edit selling price (₦)",placeholder:"Enter selling price",uuid:t.uuid,name:"selling_price",displayValue:kv(t.selling_price??0),value:t.selling_price??0,valueType:"number"})}},{accessorKey:"categories",header:"categories/Tags",cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[" ",m.jsxs("div",{className:"flex items-center gap-2 capitalize",children:[t.categories&&t.categories?.length>0?t.categories?.[0]?.name:"...",t.categories.length>1?m.jsx(Wv,{align:"center",fieldName:"Categories",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px]",children:["+",t.categories.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.categories.map((e,t)=>m.jsx("li",{children:e.name},t))})}):null]}),m.jsxs("div",{className:"text-gray-700 flex items-center gap-2 capitalize",children:[t.tags?.[0],t.tags?.length>1?m.jsx(Wv,{align:"center",fieldName:"Tags",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px] border-primary",children:["+",t.tags.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.tags.map((e,t)=>m.jsx("li",{children:e},t))})}):null]})]})}},{accessorKey:"status",cell:({row:e})=>{const t=e.getValue("status");return m.jsx(qv,{status:t})}},{id:"actions",header:"actions",cell:({row:e})=>{const t=e.original;return m.jsx(TN,{item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData})}}],TN=({item_uuid:e,item_type_id:t,data:n})=>{const[r,o]=D.useState(null),a=()=>{o(null)},[i,s]=D.useState(!1),[l,u]=D.useState(!1),[c,d]=D.useState(!1),[f,p]=D.useState(!1),[h,g]=D.useState(!1),[y,v]=D.useState(!1),[b,w]=D.useState(!1),x=[{label:"view",icon:wv.eye_outline,action:()=>s(!0)},{label:"delete",icon:wv.trash,action:()=>p(!0)}];return m.jsxs(m.Fragment,{children:[m.jsxs(of,{children:[m.jsx(af,{asChild:!0,children:m.jsxs("button",{className:"bg-gray-100 rounded-md h-[30px] w-[90px] flex items-center justify-between p-2.5 font-semibold text-[10px] text-gray-500 hover:border duration-200",children:["Action"," ",m.jsx("svg",{width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.50855 5.49304C5.42081 5.49355 5.33383 5.47673 5.25261 5.44356C5.17138 5.41038 5.09751 5.3615 5.03521 5.29971L1.03521 1.29971C0.972726 1.23773 0.92313 1.164 0.889284 1.08276C0.855438 1.00152 0.838013 0.914383 0.838013 0.826375C0.838013 0.738367 0.855438 0.65123 0.889284 0.56999C0.92313 0.488751 0.972726 0.415017 1.03521 0.353041C1.16012 0.228874 1.32909 0.15918 1.50521 0.15918C1.68134 0.15918 1.8503 0.228874 1.97521 0.353041L5.50855 3.88637L9.03521 0.353041C9.16012 0.228874 9.32909 0.15918 9.50521 0.15918C9.68134 0.15918 9.8503 0.228874 9.97521 0.353041C10.0377 0.415017 10.0873 0.488751 10.1211 0.56999C10.155 0.65123 10.1724 0.738367 10.1724 0.826375C10.1724 0.914383 10.155 1.00152 10.1211 1.08276C10.0873 1.164 10.0377 1.23773 9.97521 1.29971L5.97521 5.29971C5.85104 5.42287 5.68344 5.4923 5.50855 5.49304Z",fill:"#202125"})})]})}),m.jsx(sf,{align:"end",className:"flex flex-col gap-2.5 rounded-xl border-gray-200",children:x.map((e,t)=>m.jsxs(lf,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-gray-700 text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${t===x.length-1&&"text-danger focus:text-danger"}`,onMouseOver:()=>(e=>{o(e)})(t),onMouseOut:a,onClick:e.action,children:[M.cloneElement(e.icon,{fill:r===t?"#1868DB":"#5E6278"})," ",e.label]},t))})]}),m.jsx(mk,{isOpen:i,onClose:()=>s(!1),itemUUID:e}),m.jsx(oj,{isOpen:f,onClose:()=>p(!1),uuids:[e],single:!0})]})},DN=({title:e,item_uuid:t,item_type_id:n,data:r})=>{const[o,a]=D.useState(!1),[i,s]=D.useState(!1),[l,u]=D.useState(!1);return m.jsxs(m.Fragment,{children:[m.jsx("button",{className:ma("text-primary font-bold text-sm first-letter:uppercase truncate max-w-[265px] cursor-pointer",r.expired?"text-danger":""),title:e,onClick:()=>a(!0),children:e}),m.jsx(mk,{isOpen:o,onClose:()=>a(!1),itemUUID:t})]})};var MN,IN={};function AN(){if(MN)return IN;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}MN=1,Object.defineProperty(IN,"__esModule",{value:!0}),IN.Collapse=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t};function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=s(t);if(n){var a=s(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,r)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t=a(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),l(i(n=t.call(this,e)),"timeout",void 0),l(i(n),"container",void 0),l(i(n),"content",void 0),l(i(n),"onResize",function(){if(clearTimeout(n.timeout),n.container&&n.content){var e=n.props,t=e.isOpened,r=e.checkTimeout,o=Math.floor(n.container.clientHeight),a=Math.floor(n.content.clientHeight),i=t&&Math.abs(a-o)<=1,s=!t&&Math.abs(o)<=1;i||s?n.onRest({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}):(n.onWork({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}),n.timeout=setTimeout(function(){return n.onResize()},r))}}),l(i(n),"onRest",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(s||l){n.container.style.overflow=o?"initial":"hidden",n.container.style.height=o?"auto":"0px";var u=n.props.onRest;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onWork",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(!s&&!l){n.container.style.overflow="hidden",n.container.style.height=o?"".concat(i,"px"):"0px";var u=n.props.onWork;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onRefContainer",function(e){n.container=e}),l(i(n),"onRefContent",function(e){n.content=e}),e.initialStyle?n.initialStyle=e.initialStyle:n.initialStyle=e.isOpened?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"},n}return r(s,[{key:"componentDidMount",value:function(){this.onResize()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.theme,r=t.isOpened;return t.children!==e.children||r!==e.isOpened||Object.keys(n).some(function(t){return n[t]!==e.theme[t]})}},{key:"getSnapshotBeforeUpdate",value:function(){if(!this.container||!this.content)return null;if("auto"===this.container.style.height){var e=this.content.clientHeight;this.container.style.height="".concat(e,"px")}return null}},{key:"componentDidUpdate",value:function(){this.onResize()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props,t=e.theme,r=e.children,o=e.isOpened;return n.default.createElement("div",{ref:this.onRefContainer,className:t.collapse,style:this.initialStyle,"aria-hidden":!o},n.default.createElement("div",{ref:this.onRefContent,className:t.content},r))}}]),s}(n.default.Component);return IN.Collapse=u,l(u,"defaultProps",{theme:{collapse:"ReactCollapse--collapse",content:"ReactCollapse--content"},initialStyle:void 0,onRest:void 0,onWork:void 0,checkTimeout:50}),IN}var FN,LN,zN,$N={};function HN(){if(FN)return $N;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}FN=1,Object.defineProperty($N,"__esModule",{value:!0}),$N.UnmountClosed=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t},r=AN(),o=["isOpened"],a=["isOpened"];function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=m(t);if(n){var a=m(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t=p(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),g(h(n=t.call(this,e)),"onWork",function(e){var t=e.isOpened,r=u(e,o);n.setState({isResting:!1,isOpened:t});var a=n.props.onWork;a&&a(l({isOpened:t},r))}),g(h(n),"onRest",function(e){var t=e.isOpened,r=u(e,a);n.setState({isResting:!0,isOpened:t,isInitialRender:!1});var o=n.props.onRest;o&&o(l({isOpened:t},r))}),g(h(n),"getInitialStyle",function(){var e=n.state,t=e.isOpened;return e.isInitialRender&&t?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"}}),n.state={isResting:!0,isOpened:e.isOpened,isInitialRender:!0},n}return c(s,[{key:"componentDidUpdate",value:function(e){var t=this.props.isOpened;e.isOpened!==t&&this.setState({isResting:!1,isOpened:t,isInitialRender:!1})}},{key:"render",value:function(){var e=this.state,t=e.isResting,o=e.isOpened;return t&&!o?null:n.default.createElement(r.Collapse,i({},this.props,{initialStyle:this.getInitialStyle(),onWork:this.onWork,onRest:this.onRest}))}}]),s}(n.default.PureComponent);return $N.UnmountClosed=y,g(y,"defaultProps",{onWork:void 0,onRest:void 0}),$N}var VN=function(){if(zN)return LN;zN=1;var e=AN().Collapse,t=HN().UnmountClosed;return LN=t,t.Collapse=e,t.UnmountClosed=t,LN}();function BN({loading:e,data:t,meta:n}){const r=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_selling_price??0}}),o=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_selling_price??0},...r||[]],a=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_profit??0}}),i=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_profit??0},...a||[]],[s,l]=D.useState({type:o?.[0].type,value:o?.[0].value}),[u,c]=D.useState({type:i?.[0].type,value:i?.[0].value});M.useEffect(()=>{l({type:o?.[0].type,value:o?.[0].value}),c({type:i?.[0].type,value:i?.[0].value})},[e]);const d=[{label:"Total No. of Unique Item",count:Intl.NumberFormat().format(n?.total??0),desc:`With ${t?.unit_count??0} unit(s)`,icon:m.jsx("div",{className:"shrink-0 rounded-lg \n \n bg-[#EFF5FF] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:wv.cube})},{label:"Total Cost Price",count:kv(t?.result_array?.Retail?.total_cost??0),desc:"Takes into Account FIFO & LIFO ",icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#F9DFDD] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(wv.price_tag,{fill:"#ED7400"})})},{label:"Total Selling Price",count:kv(s.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",s.type," price"," ",m.jsxs(of,{children:[m.jsx(af,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:wv.arrow})]})}),m.jsx(sf,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:o.map((e,t)=>m.jsx(lf,{className:ma("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===s.type?"bg-primary_light text-primary":null),onClick:()=>l(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#D8CDF4] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(wv.price_tag,{fill:"#9747FF"})})},{label:"Profit to be made",count:kv(u.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",u.type," price"," ",m.jsxs(of,{children:[m.jsx(af,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:wv.arrow})]})}),m.jsx(sf,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:i.map((e,t)=>m.jsx(lf,{className:ma("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===u.type?"bg-primary_light text-primary":null),onClick:()=>c(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#C6E3D2] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(wv.price_tag,{fill:"#378C5A"})})}],[f,p]=D.useState(!1);return m.jsxs(wC,{className:"bg-[#F6F8FA] p-2.5 flex flex-col",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsx("h1",{className:"capitalize text-dark font-semibold text-lg",children:"Items overview"}),m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-white",onClick:()=>p(!f),children:[f?"Close":"Open"," ",m.jsx("span",{className:"rotate-90",children:wv.arrow})]})]}),m.jsx(VN.Collapse,{isOpened:f,children:m.jsx("div",{className:"flex flex-wrap gap-2.5 mt-3",children:d.map((t,n)=>m.jsxs("div",{className:ma("border rounded-xl border-[#E4E7EC] p-4 flex flex-col relative bg-right-bottom bg-no-repeat flex-auto",0===n?"bg-[#E4EEFA] bg-[url('/assets/images/ecstacy1.svg')]":1===n?"bg-[#FAEAE9] bg-[url('/assets/images/ecstacy2.svg')]":2===n?"bg-[#EEE9FA] bg-[url('/assets/images/ecstacy3.svg')]":3===n?"bg-[#EBF5EF] bg-[url('/assets/images/ecstacy4.svg')]":null),children:[m.jsxs("div",{className:"flex justify-between gap-1",children:[m.jsx("h1",{className:"text-dark text-sm font-medium",children:t.label}),m.jsx("div",{className:"shrink-0",children:t.icon})]}),m.jsxs("div",{className:"flex flex-col gap-1",children:[e?m.jsx(Ca,{className:"w-28 h-6 rounded"}):m.jsx("h1",{className:ma("text-dark font-bold text-[29px] truncate",n===d.length-1&&u.value<0?"text-danger":null),title:t.count,children:t.count}),m.jsx("div",{className:"text-gray-700 text-sm font-medium ",children:t.desc})]})]},n))})})]})}function UN({placeholder:e,className:t,inputClass:n,...r}){return m.jsxs("div",{className:ma("h-12 border border-gray-300 rounded-md w-[320px] flex",t),children:[m.jsx("span",{className:"bg-gray-200 w-[38px] flex items-center justify-center shrink-0 rounded-l-md ",children:wv.magnifier}),m.jsx("input",{type:"search",placeholder:e,className:"w-full px-3 text-dark text-sm font-medium bg-transparent outline-none rounded-r-md",...r})]})}function WN(e,t){return e===t}function qN(e,t,n){var r=WN,o=D.useRef(e),a=D.useState({})[1],i=function(e,t,n,r){var o=this,a=D.useRef(null),i=D.useRef(0),s=D.useRef(0),l=D.useRef(null),u=D.useRef([]),c=D.useRef(),d=D.useRef(),f=D.useRef(e),p=D.useRef(!0),h=D.useRef(),m=D.useRef();f.current=e;var g="undefined"!=typeof window,y=!t&&0!==t&&g;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,w=!!n.flushOnExit&&b,x="maxWait"in n,C="debounceOnServer"in n&&!!n.debounceOnServer,S=x?Math.max(+n.maxWait||0,t):null,k=D.useMemo(function(){var e=function(e){var t=u.current,n=c.current;return u.current=c.current=null,i.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){y&&cancelAnimationFrame(l.current),l.current=y?requestAnimationFrame(e):setTimeout(e,t)},k=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||x&&e-i.current>=S},_=function(t){return l.current=null,b&&u.current?e(t):(u.current=c.current=null,d.current)},E=function e(){var r=Date.now();if(v&&s.current===i.current&&j(),k(r))return _(r);if(p.current){var o=t-(r-a.current),l=x?Math.min(o,S-(r-i.current)):o;n(e,l)}},j=function(){r&&r({})},N=function(){if(g||C){var r,s=Date.now(),f=k(s);if(u.current=[].slice.call(arguments),c.current=o,a.current=s,w&&!h.current&&(h.current=function(){var e;"hidden"===(null==(e=global.document)?void 0:e.visibilityState)&&m.current.flush()},null==(r=global.document)||null==r.addEventListener||r.addEventListener("visibilitychange",h.current)),f){if(!l.current&&p.current)return i.current=a.current,n(E,t),v?e(a.current):d.current;if(x)return n(E,t),e(a.current)}return l.current||n(E,t),d.current}};return N.cancel=function(){var e=l.current;e&&(y?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,u.current=a.current=c.current=l.current=null,e&&r&&r({})},N.isPending=function(){return!!l.current},N.flush=function(){return l.current?_(Date.now()):d.current},N},[v,x,t,S,b,w,y,g,C,r]);return m.current=k,D.useEffect(function(){return p.current=!0,function(){var e;w&&m.current.flush(),h.current&&(null==(e=global.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",h.current),h.current=null),p.current=!1}},[w]),k}(D.useCallback(function(e){o.current=e,a({})},[a]),t,n,a),s=D.useRef(e);return r(s.current,e)||(i(e),s.current=e),[o.current,i]}function YN({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x}){const[C,S]=D.useState(!1),[k,_]=D.useState(0),E=D.useRef(null);D.useEffect(()=>{const e=()=>{E.current&&_(E?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[E]);const j=e=>{const t=o?.includes(e)?o?.filter(t=>t!==e):[...o||[],e];a&&a(t)};D.useEffect(()=>{y&&j(y)},[y]);const[N,O]=D.useState(null),R=e=>{O(t=>t===e?null:e)},P=e=>{for(let t of n){if(t.value===e)return t.label;if(t.subOptions){const n=t.subOptions.find(t=>t.value===e);if(n)return n.label}}return null};return m.jsx("div",{ref:E,children:b?m.jsx(Ca,{className:"w-full h-[48px]"}):m.jsxs("div",{className:ma("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(Wv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(Wv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:g})})]})]}),m.jsxs(ak,{modal:!0,open:C,onOpenChange:S,children:[m.jsx(ik,{asChild:!0,children:m.jsxs(uk,{variant:"outline",role:"combobox","aria-expanded":C,className:ma(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${x&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:o?.length&&r?o.map((e,t)=>m.jsxs("div",{onClick:()=>{v||j(e),R(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[m.jsx("span",{className:"flex justify-start text-start flex-wrap gap-2 whitespace-normal",children:P(e)}),m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${o.length} ${l} selected`:e??"Select..."}),m.jsx(ef,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(sk,{align:"start",style:{width:k},className:"w-[480px] p-0 bg-white rounded-xl border-gray-200",children:m.jsxs(OS,{children:[m.jsx(RS,{className:"placeholder:text-xs",placeholder:t??"Search..."}),m.jsx(TS,{children:"No result found."}),m.jsx(DS,{children:m.jsx(PS,{className:"",children:n?.map((e,t)=>m.jsxs("div",{children:[m.jsxs(MS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{j(e.value),e?.subOptions&&e?.subOptions?.length>0&&R(e.value)},children:[s&&m.jsx(Qd,{className:ma("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),m.jsxs("p",{className:"flex justify-between w-full",children:[e.label,e?.subOptions&&e?.subOptions?.length>0&&m.jsx(Xd,{className:"ml-2 h-5 w-5 font-bold shrink-0 opacity-50"})]})]}),N===e.value&&e?.subOptions&&e?.subOptions?.map((e,t)=>m.jsxs(MS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer pl-6 ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{j(e.value)},children:[s&&m.jsx(Qd,{className:ma("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},t))]},t))})})]})})]}),x&&m.jsx("p",{className:"text-danger text-xs font-normal",children:x})]})})}var GN="ScrollArea",[KN]=ja(GN),[QN,XN]=KN(GN),ZN=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=D.useState(null),[u,c]=D.useState(null),[d,f]=D.useState(null),[p,h]=D.useState(null),[g,y]=D.useState(null),[v,b]=D.useState(0),[w,x]=D.useState(0),[C,S]=D.useState(!1),[k,_]=D.useState(!1),E=Ea(t,e=>l(e)),j=Ba(o);return m.jsx(QN,{scope:n,type:r,dir:j,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:k,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:x,children:m.jsx(za.div,{dir:j,...i,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});ZN.displayName=GN;var JN="ScrollAreaViewport",eO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=XN(JN,n),s=Ea(t,D.useRef(null),i.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),m.jsx(za.div,{"data-radix-scroll-area-viewport":"",...a,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});eO.displayName=JN;var tO="ScrollAreaScrollbar",nO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=XN(tO,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s="horizontal"===e.orientation;return D.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),"hover"===o.type?m.jsx(rO,{...r,ref:t,forceMount:n}):"scroll"===o.type?m.jsx(oO,{...r,ref:t,forceMount:n}):"auto"===o.type?m.jsx(aO,{...r,ref:t,forceMount:n}):"always"===o.type?m.jsx(iO,{...r,ref:t}):null});nO.displayName=tO;var rO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=XN(tO,e.__scopeScrollArea),[a,i]=D.useState(!1);return D.useEffect(()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),m.jsx(Pl,{present:n||a,children:m.jsx(aO,{"data-state":a?"visible":"hidden",...r,ref:t})})}),oO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=XN(tO,e.__scopeScrollArea),a="horizontal"===e.orientation,i=_O(()=>l("SCROLL_END"),100),[s,l]=function(e,t){return D.useReducer((e,n)=>t[e][n]??e,e)}("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return D.useEffect(()=>{if("idle"===s){const e=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,o.scrollHideDelay,l]),D.useEffect(()=>{const e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,l,i]),m.jsx(Pl,{present:n||"hidden"!==s,children:m.jsx(iO,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:Sa(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Sa(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),aO=D.forwardRef((e,t)=>{const n=XN(tO,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=D.useState(!1),s="horizontal"===e.orientation,l=_O(()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}},10);return EO(n.viewport,l),EO(n.content,l),m.jsx(Pl,{present:r||a,children:m.jsx(iO,{"data-state":a?"visible":"hidden",...o,ref:t})})}),iO=D.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=XN(tO,e.__scopeScrollArea),a=D.useRef(null),i=D.useRef(0),[s,l]=D.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=bO(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=wO(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d="ltr"===r?[0,c]:[-1*c,0];return CO([l,u],d)(e)}(e,i.current,s,t)}return"horizontal"===n?m.jsx(sO,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=xO(o.viewport.scrollLeft,s,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}}):"vertical"===n?m.jsx(lO,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=xO(o.viewport.scrollTop,s);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}}):null}),sO=D.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=XN(tO,e.__scopeScrollArea),[i,s]=D.useState(),l=D.useRef(null),u=Ea(t,l,a.onScrollbarXChange);return D.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(dO,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":wO(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),SO(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:vO(i.paddingLeft),paddingEnd:vO(i.paddingRight)}})}})}),lO=D.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=XN(tO,e.__scopeScrollArea),[i,s]=D.useState(),l=D.useRef(null),u=Ea(t,l,a.onScrollbarYChange);return D.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(dO,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":wO(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),SO(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:vO(i.paddingTop),paddingEnd:vO(i.paddingBottom)}})}})}),[uO,cO]=KN(tO),dO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=XN(tO,n),[h,g]=D.useState(null),y=Ea(t,e=>g(e)),v=D.useRef(null),b=D.useRef(""),w=p.viewport,x=r.content-r.viewport,C=Ua(c),S=Ua(l),k=_O(d,10);function _(e){if(v.current){const t=e.clientX-v.current.left,n=e.clientY-v.current.top;u({x:t,y:n})}}return D.useEffect(()=>{const e=e=>{const t=e.target,n=h?.contains(t);n&&C(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[w,h,x,C]),D.useEffect(S,[r,S]),EO(h,k),EO(p.content,k),m.jsx(uO,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:Ua(a),onThumbPointerUp:Ua(i),onThumbPositionChange:S,onThumbPointerDown:Ua(s),children:m.jsx(za.div,{...f,ref:y,style:{position:"absolute",...f.style},onPointerDown:Sa(e.onPointerDown,e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),_(e)}}),onPointerMove:Sa(e.onPointerMove,_),onPointerUp:Sa(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,p.viewport&&(p.viewport.style.scrollBehavior=""),v.current=null})})})}),fO="ScrollAreaThumb",pO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=cO(fO,e.__scopeScrollArea);return m.jsx(Pl,{present:n||o.hasThumb,children:m.jsx(hO,{ref:t,...r})})}),hO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=XN(fO,n),i=cO(fO,n),{onThumbPositionChange:s}=i,l=Ea(t,e=>i.onThumbChange(e)),u=D.useRef(void 0),c=_O(()=>{u.current&&(u.current(),u.current=void 0)},100);return D.useEffect(()=>{const e=a.viewport;if(e){const t=()=>{if(c(),!u.current){const t=kO(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),m.jsx(za.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Sa(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})}),onPointerUp:Sa(e.onPointerUp,i.onThumbPointerUp)})});pO.displayName=fO;var mO="ScrollAreaCorner",gO=D.forwardRef((e,t)=>{const n=XN(mO,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?m.jsx(yO,{...e,ref:t}):null});gO.displayName=mO;var yO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=XN(mO,n),[a,i]=D.useState(0),[s,l]=D.useState(0),u=Boolean(a&&s);return EO(o.scrollbarX,()=>{const e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),l(e)}),EO(o.scrollbarY,()=>{const e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),i(e)}),u?m.jsx(za.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function vO(e){return e?parseInt(e,10):0}function bO(e,t){const n=e/t;return isNaN(n)?0:n}function wO(e){const t=bO(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function xO(e,t,n="ltr"){const r=wO(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=aj(e,"ltr"===n?[0,i]:[-1*i,0]);return CO([0,i],[0,s])(l)}function CO(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function SO(e,t){return e>0&&e<t}var kO=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function _O(e,t){const n=Ua(e),r=D.useRef(0);return D.useEffect(()=>()=>window.clearTimeout(r.current),[]),D.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function EO(e,t){const n=Ua(t);Oa(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var jO=ZN,NO=eO,OO=gO;const RO=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(jO,{ref:r,className:ma("relative overflow-hidden",e),...n,children:[m.jsx(NO,{className:"h-full w-full rounded-[inherit]",children:t}),m.jsx(PO,{}),m.jsx(OO,{})]}));RO.displayName=jO.displayName;const PO=D.forwardRef(({className:e,orientation:t="vertical",...n},r)=>m.jsx(nO,{ref:r,orientation:t,className:ma("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:m.jsx(pO,{className:"relative flex-1 rounded-full bg-neutral-200 dark:bg-neutral-800"})}));function TO({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x,showError:C,onChangeSearch:S,searching:k,contentStyle:_,disabled:E,searchValue:j}){const[N,O]=D.useState(!1),[R,P]=D.useState(0),T=D.useRef(null);D.useEffect(()=>{const e=()=>{T.current&&P(T?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const M=o?.filter(e=>""!==e),I=e=>{const t=M?.includes(e)?M?.filter(t=>t!==e):[...M||[],e];a&&a(t)};return D.useEffect(()=>{y&&I(y)},[y]),m.jsx(m.Fragment,{children:b?m.jsx(Ca,{className:"w-full h-[48px]"}):m.jsxs("div",{className:ma("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(Wv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(Wv,{fieldName:p,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:g})})]})]}),m.jsxs(ak,{modal:!0,open:N,onOpenChange:O,children:[m.jsx(ik,{disabled:E,asChild:!0,children:m.jsxs(uk,{ref:T,variant:"outline",role:"combobox","aria-expanded":N,className:ma(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(x||C)&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:M?.length>0&&r?M?.map((e,t)=>m.jsxs("div",{onClick:()=>{!v&&I(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[n?.[0].searchId?n?.find(t=>t.value===e)?.searchId:n?.find(t=>t.value===e)?.label,m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${M.length} ${l} selected`:e??"Select..."}),m.jsx(ef,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(sk,{align:"start",style:{width:R},className:ma("w-[480px] p-0 bg-white rounded-xl border-gray-200",_),children:m.jsx(RO,{children:m.jsxs(OS,{children:[m.jsx(RS,{onChangeCapture:S,className:"placeholder:text-xs",placeholder:t??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(Ca,{className:"h-9 rounded-md"},t))}):m.jsx(TS,{children:j?"No result found.":e}),m.jsx(DS,{children:m.jsx(PS,{className:"",children:n?.map(e=>m.jsxs(MS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{I(e.value)},children:[s&&m.jsx(Qd,{className:ma("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},e.value))})})]})})})]})]})})}PO.displayName=nO.displayName;const DO=D.createContext({dragDropManager:void 0});function MO(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var IO="function"==typeof Symbol&&Symbol.observable||"@@observable",AO=function(){return Math.random().toString(36).substring(7).split("").join(".")},FO={INIT:"@@redux/INIT"+AO(),REPLACE:"@@redux/REPLACE"+AO()};function LO(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(MO(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(MO(1));return n(LO)(e,t)}if("function"!=typeof e)throw new Error(MO(2));var o=e,a=t,i=[],s=i,l=!1;function u(){s===i&&(s=i.slice())}function c(){if(l)throw new Error(MO(3));return a}function d(e){if("function"!=typeof e)throw new Error(MO(4));if(l)throw new Error(MO(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(MO(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),i=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(MO(7));if(void 0===e.type)throw new Error(MO(8));if(l)throw new Error(MO(9));try{l=!0,a=o(a,e)}finally{l=!1}for(var t=i=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:FO.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(MO(10));o=e,f({type:FO.REPLACE})}})[IO]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(MO(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[IO]=function(){return this},e},r}function zO(e,t,...n){if("undefined"!=typeof process&&"production"===process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function $O(e){return"object"==typeof e}const HO="dnd-core/INIT_COORDS",VO="dnd-core/BEGIN_DRAG",BO="dnd-core/PUBLISH_DRAG_SOURCE",UO="dnd-core/HOVER",WO="dnd-core/DROP",qO="dnd-core/END_DRAG";function YO(e,t){return{type:HO,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const GO={type:HO,payload:{clientOffset:null,sourceClientOffset:null}};function KO(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:a}=n,i=e.getMonitor(),s=e.getRegistry();e.dispatch(YO(o)),function(e,t,n){zO(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){zO(n.getSource(e),"Expected sourceIds to be registered.")})}(t,i,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,i);if(null==l)return void e.dispatch(GO);let u=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){zO("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),u=a(l)}e.dispatch(YO(o,u));const c=s.getSource(l).beginDrag(i,l);if(null==c)return;!function(e){zO($O(e),"Item must be an object.")}(c),s.pinSource(l);const d=s.getSourceType(l);return{type:VO,payload:{itemType:d,item:c,sourceId:l,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function QO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){QO(e,t,n[t])})}return e}function ZO(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){zO(e.isDragging(),"Cannot call drop while not dragging."),zO(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach((o,a)=>{const i=function(e,t,n,r){const o=n.getTarget(e);let a=o?o.drop(r,e):void 0;(function(e){zO(void 0===e||$O(e),"Drop result must either be an object or undefined.")})(a),void 0===a&&(a=0===t?{}:r.getDropResult());return a}(o,a,r,n),s={type:WO,payload:{dropResult:XO({},t,i)}};e.dispatch(s)})}}function JO(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){zO(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:qO}}}function eR(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function tR(e){return function(t,{clientOffset:n}={}){!function(e){zO(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),a=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];eR(t.getTargetType(o),n)||e.splice(r,1)}}(r,a,o.getItemType()),function(e,t,n){zO(t.isDragging(),"Cannot call hover while not dragging."),zO(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];zO(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");zO(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,a),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,a),{type:UO,payload:{targetIds:r,clientOffset:n||null}}}}function nR(e){return function(){if(e.getMonitor().isDragging())return{type:BO}}}class rR{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:KO(e),publishDragSource:nR(e),hover:tR(e),drop:ZO(e),endDrag:JO(e)}}(this);return Object.keys(n).reduce((r,o)=>{const a=n[o];var i;return r[o]=(i=a,(...n)=>{const r=i.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function oR(e,t){return{x:e.x-t.x,y:e.y-t.y}}const aR=[],iR=[];aR.__IS_NONE__=!0,iR.__IS_ALL__=!0;class sR{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;zO("function"==typeof e,"listener must be a function."),zO(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{const a=o===r||o===r+1&&!function(e,t){return e!==aR&&(e===iR||void 0===t||(n=e,t.filter(e=>n.indexOf(e)>-1)).length>0);var n}(t.dirtyHandlerIds,n);a||e()}finally{r=o}})}subscribeToOffsetChange(e){zO("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return zO(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(zO(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return eR(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(zO(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!eR(r,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const i=a.indexOf(e);return n?i===a.length-1:i>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?oR(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?oR(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const lR="undefined"!=typeof global?global:self,uR=lR.MutationObserver||lR.WebKitMutationObserver;function cR(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const dR="function"==typeof uR?function(e){let t=1;const n=new uR(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:cR;class fR{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const pR=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=dR(this.flush),this.requestErrorThrow=cR(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},hR=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new fR(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(pR.registerPendingError);const mR="dnd-core/ADD_SOURCE",gR="dnd-core/ADD_TARGET",yR="dnd-core/REMOVE_SOURCE",vR="dnd-core/REMOVE_TARGET";function bR(e,t){t&&Array.isArray(e)?e.forEach(e=>bR(e,!1)):zO("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var wR;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(wR||(wR={}));let xR=0;function CR(e){const t=(xR++).toString();switch(e){case wR.SOURCE:return`S${t}`;case wR.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function SR(e){switch(e[0]){case"S":return wR.SOURCE;case"T":return wR.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function kR(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class _R{addSource(e,t){bR(e),function(e){zO("function"==typeof e.canDrag,"Expected canDrag to be a function."),zO("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),zO("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(wR.SOURCE,e,t);return this.store.dispatch(function(e){return{type:mR,payload:{sourceId:e}}}(n)),n}addTarget(e,t){bR(e,!0),function(e){zO("function"==typeof e.canDrop,"Expected canDrop to be a function."),zO("function"==typeof e.hover,"Expected hover to be a function."),zO("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(wR.TARGET,e,t);return this.store.dispatch(function(e){return{type:gR,payload:{targetId:e}}}(n)),n}containsHandler(e){return kR(this.dragSources,e)||kR(this.dropTargets,e)}getSource(e,t=!1){zO(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return zO(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return zO(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return zO(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return SR(e)===wR.SOURCE}isTargetId(e){return SR(e)===wR.TARGET}removeSource(e){var t;zO(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:yR,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},pR.enqueueTask(hR.create(t))}removeTarget(e){zO(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:vR,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);zO(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){zO(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=CR(e);return this.types.set(r,t),e===wR.SOURCE?this.dragSources.set(r,n):e===wR.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const ER=(e,t)=>e===t;function jR(e=aR,t){switch(t.type){case UO:break;case mR:case gR:case vR:case yR:return aR;default:return iR}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((e,t)=>{1===e&&o.push(t)}),o}(n,r),a=o.length>0||!function(e,t,n=ER){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!a)return aR;const i=r[r.length-1],s=n[n.length-1];return i!==s&&(i&&o.push(i),s&&o.push(s)),o}function NR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OR={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function RR(e=OR,t){const{payload:n}=t;switch(t.type){case HO:case VO:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case UO:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){NR(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case qO:case WO:return OR;default:return e}var r,o}function PR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){PR(e,t,n[t])})}return e}const DR={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function MR(e=DR,t){const{payload:n}=t;switch(t.type){case VO:return TR({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case BO:return TR({},e,{isSourcePublic:!0});case UO:return TR({},e,{targetIds:n.targetIds});case vR:return-1===e.targetIds.indexOf(n.targetId)?e:TR({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case WO:return TR({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case qO:return TR({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function IR(e=0,t){switch(t.type){case mR:case gR:return e+1;case yR:case vR:return e-1;default:return e}}function AR(e=0){return e+1}function FR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){FR(e,t,n[t])})}return e}function zR(e={},t){return{dirtyHandlerIds:jR(e.dirtyHandlerIds,{type:t.type,payload:LR({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce((e,t)=>e&&e[t]?e[t]:o||null,n))})}),dragOffset:RR(e.dragOffset,t),refCount:IR(e.refCount,t),dragOperation:MR(e.dragOperation,t),stateId:AR(e.stateId)};var n,r,o}function $R(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return LO(zR,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),a=new sR(o,new _R(o)),i=new rR(o,a),s=e(i,t,n);return i.receiveBackend(s),i}function HR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let VR=0;const BR=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var UR,WR,qR=D.memo(function(e){var{children:t}=e,n=HR(e,["children"]);const[r,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=YR(),n,r){const o=t;o[BR]||(o[BR]={dragDropManager:$R(e,t,n,r)});return o[BR]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return D.useEffect(()=>{if(o){const e=YR();return++VR,()=>{0===--VR&&(e[BR]=null)}}},[]),m.jsx(DO.Provider,{value:r,children:t})});function YR(){return"undefined"!=typeof global?global:window}var GR=(WR||(WR=1,UR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!==o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}),UR),KR=n(GR);const QR="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function XR(e,t,n){const[r,o]=function(e,t,n){const[r,o]=D.useState(()=>t(e)),a=D.useCallback(()=>{const a=t(e);KR(r,a)||(o(a),n&&n())},[r,e,n]);return QR(a),[r,a]}(e,t,n);return QR(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}function ZR(e,t,n){return XR(t,e||(()=>({})),()=>n.reconnect())}function JR(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),D.useMemo(()=>"function"==typeof e?e():e,n)}function eP(e){return D.useMemo(()=>e.hooks.dragSource(),[e])}function tP(e){return D.useMemo(()=>e.hooks.dragPreview(),[e])}let nP=!1,rP=!1;class oP{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){zO(!nP,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return nP=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{nP=!1}}isDragging(){if(!this.sourceId)return!1;zO(!rP,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return rP=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{rP=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let aP=!1;class iP{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;zO(!aP,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return aP=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{aP=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function sP(e,t,n,r){let o;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let n=0;n<a.length;n++){const r=a[n];if(!s(r))return!1;const i=e[r],l=t[r];if(o=void 0,!1===o||void 0===o&&i!==l)return!1}return!0}function lP(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function uP(e){return(t=null,n=null)=>{if(!D.isValidElement(t)){const r=t;return e(r,n),r}const r=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(r);const o=n?t=>e(t,n):e;return function(e,t){const n=e.ref;return zO("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?D.cloneElement(e,{ref:e=>{dP(n,e),dP(t,e)}}):D.cloneElement(e,{ref:t})}(r,o)}}function cP(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=uP(r);t[n]=()=>e}}),t}function dP(e,t){"function"==typeof e?e(t):e.current=t}class fP{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!sP(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!sP(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=cP({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,lP(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,lP(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class pP{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!sP(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=cP({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,lP(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function hP(){const{dragDropManager:e}=D.useContext(DO);return zO(null!=e,"Expected drag drop context"),e}class mP{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function gP(e,t,n){const r=hP(),o=function(e,t,n){const r=D.useMemo(()=>new mP(e,t,n),[t,n]);return D.useEffect(()=>{r.spec=e},[e]),r}(e,t,n),a=function(e){return D.useMemo(()=>{const t=e.type;return zO(null!=t,"spec.type must be defined"),t},[e])}(e);QR(function(){if(null!=a){const[e,i]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i}},[r,t,n,o,a])}function yP(e,t){const n=JR(e,t);zO(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=hP();return D.useMemo(()=>new oP(e),[e])}(),o=function(e,t){const n=hP(),r=D.useMemo(()=>new fP(n.getBackend()),[n]);return QR(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),QR(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}(n.options,n.previewOptions);return gP(n,r,o),[ZR(n.collect,r,o),eP(o),tP(o)]}function vP(e){return D.useMemo(()=>e.hooks.dropTarget(),[e])}class bP{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function wP(e,t,n){const r=hP(),o=function(e,t){const n=D.useMemo(()=>new bP(e,t),[t]);return D.useEffect(()=>{n.spec=e},[e]),n}(e,t),a=function(e){const{accept:t}=e;return D.useMemo(()=>(zO(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);QR(function(){const[e,i]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i},[r,t,o,n,a.map(e=>e.toString()).join("|")])}function xP(e,t){const n=JR(e,t),r=function(){const e=hP();return D.useMemo(()=>new iP(e),[e])}(),o=function(e){const t=hP(),n=D.useMemo(()=>new pP(t.getBackend()),[t]);return QR(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}(n.options);return wP(n,r,o),[ZR(n.collect,r,o),vP(o)]}function CP(e){let t=null;return()=>(null==t&&(t=e()),t)}class SP{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class kP{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const _P="__NATIVE_FILE__",EP="__NATIVE_URL__",jP="__NATIVE_TEXT__",NP="__NATIVE_HTML__";var OP=Object.freeze({__proto__:null,FILE:_P,HTML:NP,TEXT:jP,URL:EP});function RP(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}const PP={[_P]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[NP]:{exposeProperties:{html:(e,t)=>RP(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[EP]:{exposeProperties:{urls:(e,t)=>RP(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[jP]:{exposeProperties:{text:(e,t)=>RP(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function TP(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(PP).filter(e=>{const n=PP[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const DP=CP(()=>/firefox/i.test(navigator.userAgent)),MP=CP(()=>Boolean(window.safari));class IP{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:a}=this;let i=t.length-1;if(e===t[i])return n[i];let s,l=0,u=a.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];u=s-1}}i=Math.max(0,u);const c=e-t[i],d=c*c;return n[i]+r[i]*c+o[i]*d+a[i]*c*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[],a=[];let i,s;for(let r=0;r<n-1;r++)i=e[r+1]-e[r],s=t[r+1]-t[r],o.push(i),a.push(s/i);const l=[a[0]];for(let e=0;e<o.length-1;e++){const t=a[e],n=a[e+1];if(t*n<=0)l.push(0);else{i=o[e];const r=o[e+1],a=i+r;l.push(3*a/((a+r)/t+(a+i)/n))}}l.push(a[a.length-1]);const u=[],c=[];let d;for(let e=0;e<l.length-1;e++){d=a[e];const t=l[e],n=1/o[e],r=t+l[e+1]-d-d;u.push((d-t-r)*n),c.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=c}}function AP(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function FP(e){return{x:e.clientX,y:e.clientY}}function LP(e,t,n,r,o){const a=function(e){var t;return"IMG"===e.nodeName&&(DP()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),i=AP(a?e:t),s={x:n.x-i.x,y:n.y-i.y},{offsetWidth:l,offsetHeight:u}=e,{anchorX:c,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=function(e,t,n,r){let o=e?t.width:n,a=e?t.height:r;return MP()&&e&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}}(a,t,l,u),{offsetX:h,offsetY:m}=o,g=0===m||m;return{x:0===h||h?h:new IP([0,.5,1],[s.x,s.x/l*f,s.x+f-l]).interpolate(c),y:g?m:(()=>{let e=new IP([0,.5,1],[s.y,s.y/u*p,s.y+p-u]).interpolate(d);return MP()&&a&&(e+=(window.devicePixelRatio-1)*p),e})()}}class zP{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function $P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){$P(e,t,n[t])})}return e}class VP{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return HP({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return HP({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(OP).some(t=>OP[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=PP[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new kP(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&AP(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=FP(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=TP(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:a,offsetX:i,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=LP(t,o,n,{anchorX:e,anchorY:a},{offsetX:i,offsetY:s});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=TP(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:FP(e)});t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=FP(e),this.scheduleHover(t);(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):TP(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:FP(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new zP(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new SP(this.isNodeInDocument)}}const BP=function(e,t,n){return new VP(e,t,n)};var UP,WP,qP=Object.create,YP=Object.defineProperty,GP=Object.getOwnPropertyDescriptor,KP=Object.getOwnPropertyNames,QP=Object.getPrototypeOf,XP=Object.prototype.hasOwnProperty,ZP=(e,t,n)=>(n=null!=e?qP(QP(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of KP(t))XP.call(e,o)||o===n||YP(e,o,{get:()=>t[o],enumerable:!(r=GP(t,o))||r.enumerable});return e})(YP(n,"default",{value:e,enumerable:!0}),e)),JP=(UP={"node_modules/classnames/index.js"(e,t){!function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var a=typeof o;if("string"===a||"number"===a)t.push(o);else if(Array.isArray(o)){if(o.length){var i=n.apply(null,o);i&&t.push(i)}}else if("object"===a){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){t.push(o.toString());continue}for(var s in o)e.call(o,s)&&o[s]&&t.push(s)}}}return t.join(" ")}void 0!==t&&t.exports?(n.default=n,t.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}},function(){return WP||(0,UP[KP(UP)[0]])((WP={exports:{}}).exports,WP),WP.exports}),eT=ZP(JP()),tT="object"==typeof global&&global&&global.Object===Object&&global,nT="object"==typeof self&&self&&self.Object===Object&&self,rT=tT||nT||Function("return this")(),oT=rT.Symbol,aT=Object.prototype,iT=aT.hasOwnProperty,sT=aT.toString,lT=oT?oT.toStringTag:void 0;var uT=function(e){var t=iT.call(e,lT),n=e[lT];try{e[lT]=void 0;var r=!0}catch(e){}var o=sT.call(e);return r&&(t?e[lT]=n:delete e[lT]),o},cT=Object.prototype.toString;var dT=function(e){return cT.call(e)},fT=oT?oT.toStringTag:void 0;var pT=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":fT&&fT in Object(e)?uT(e):dT(e)};var hT=function(e){return null!=e&&"object"==typeof e};var mT=function(e){return"symbol"==typeof e||hT(e)&&"[object Symbol]"==pT(e)};var gT=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},yT=Array.isArray,vT=oT?oT.prototype:void 0,bT=vT?vT.toString:void 0;var wT=function e(t){if("string"==typeof t)return t;if(yT(t))return gT(t,e)+"";if(mT(t))return bT?bT.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var xT=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var CT,ST=function(e){if(!xT(e))return!1;var t=pT(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},kT=rT["__core-js_shared__"],_T=(CT=/[^.]+$/.exec(kT&&kT.keys&&kT.keys.IE_PROTO||""))?"Symbol(src)_1."+CT:"";var ET=function(e){return!!_T&&_T in e},jT=Function.prototype.toString;var NT=function(e){if(null!=e){try{return jT.call(e)}catch(e){}try{return e+""}catch(e){}}return""},OT=/^\[object .+?Constructor\]$/,RT=Function.prototype,PT=Object.prototype,TT=RT.toString,DT=PT.hasOwnProperty,MT=RegExp("^"+TT.call(DT).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var IT=function(e){return!(!xT(e)||ET(e))&&(ST(e)?MT:OT).test(NT(e))};var AT=function(e,t){return null==e?void 0:e[t]};var FT=function(e,t){var n=AT(e,t);return IT(n)?n:void 0},LT=FT(rT,"WeakMap");var zT=function(){};var $T=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var HT=function(e){return e!=e};var VT=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var BT=function(e,t,n){return t==t?VT(e,t,n):$T(e,HT,n)};var UT=function(e,t){return!!(null==e?0:e.length)&&BT(e,t,0)>-1},WT=/^(?:0|[1-9]\d*)$/;var qT=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&WT.test(e))&&e>-1&&e%1==0&&e<t};var YT=function(e,t){return e===t||e!=e&&t!=t};var GT=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var KT=function(e){return null!=e&>(e.length)&&!ST(e)},QT=Object.prototype;var XT=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||QT)};var ZT=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var JT=function(e){return hT(e)&&"[object Arguments]"==pT(e)},eD=Object.prototype,tD=eD.hasOwnProperty,nD=eD.propertyIsEnumerable,rD=JT(function(){return arguments}())?JT:function(e){return hT(e)&&tD.call(e,"callee")&&!nD.call(e,"callee")},oD=rD;var aD=function(){return!1},iD="object"==typeof e&&e&&!e.nodeType&&e,sD=iD&&"object"==typeof module&&module&&!module.nodeType&&module,lD=sD&&sD.exports===iD?rT.Buffer:void 0,uD=(lD?lD.isBuffer:void 0)||aD,cD={};cD["[object Float32Array]"]=cD["[object Float64Array]"]=cD["[object Int8Array]"]=cD["[object Int16Array]"]=cD["[object Int32Array]"]=cD["[object Uint8Array]"]=cD["[object Uint8ClampedArray]"]=cD["[object Uint16Array]"]=cD["[object Uint32Array]"]=!0,cD["[object Arguments]"]=cD["[object Array]"]=cD["[object ArrayBuffer]"]=cD["[object Boolean]"]=cD["[object DataView]"]=cD["[object Date]"]=cD["[object Error]"]=cD["[object Function]"]=cD["[object Map]"]=cD["[object Number]"]=cD["[object Object]"]=cD["[object RegExp]"]=cD["[object Set]"]=cD["[object String]"]=cD["[object WeakMap]"]=!1;var dD=function(e){return hT(e)&>(e.length)&&!!cD[pT(e)]};var fD=function(e){return function(t){return e(t)}},pD="object"==typeof e&&e&&!e.nodeType&&e,hD=pD&&"object"==typeof module&&module&&!module.nodeType&&module,mD=hD&&hD.exports===pD&&tT.process,gD=function(){try{var e=hD&&hD.require&&hD.require("util").types;return e||mD&&mD.binding&&mD.binding("util")}catch(e){}}(),yD=gD&&gD.isTypedArray,vD=yD?fD(yD):dD,bD=Object.prototype.hasOwnProperty;var wD=function(e,t){var n=yT(e),r=!n&&oD(e),o=!n&&!r&&uD(e),a=!n&&!r&&!o&&vD(e),i=n||r||o||a,s=i?ZT(e.length,String):[],l=s.length;for(var u in e)!t&&!bD.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||qT(u,l))||s.push(u);return s};var xD=function(e,t){return function(n){return e(t(n))}},CD=xD(Object.keys,Object),SD=Object.prototype.hasOwnProperty;var kD=function(e){if(!XT(e))return CD(e);var t=[];for(var n in Object(e))SD.call(e,n)&&"constructor"!=n&&t.push(n);return t};var _D=function(e){return KT(e)?wD(e):kD(e)},ED=FT(Object,"create");var jD=function(){this.__data__=ED?ED(null):{},this.size=0};var ND=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},OD=Object.prototype.hasOwnProperty;var RD=function(e){var t=this.__data__;if(ED){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return OD.call(t,e)?t[e]:void 0},PD=Object.prototype.hasOwnProperty;var TD=function(e){var t=this.__data__;return ED?void 0!==t[e]:PD.call(t,e)};var DD=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ED&&void 0===t?"__lodash_hash_undefined__":t,this};function MD(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}MD.prototype.clear=jD,MD.prototype.delete=ND,MD.prototype.get=RD,MD.prototype.has=TD,MD.prototype.set=DD;var ID=MD;var AD=function(){this.__data__=[],this.size=0};var FD=function(e,t){for(var n=e.length;n--;)if(YT(e[n][0],t))return n;return-1},LD=Array.prototype.splice;var zD=function(e){var t=this.__data__,n=FD(t,e);return!(n<0)&&(n==t.length-1?t.pop():LD.call(t,n,1),--this.size,!0)};var $D=function(e){var t=this.__data__,n=FD(t,e);return n<0?void 0:t[n][1]};var HD=function(e){return FD(this.__data__,e)>-1};var VD=function(e,t){var n=this.__data__,r=FD(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function BD(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}BD.prototype.clear=AD,BD.prototype.delete=zD,BD.prototype.get=$D,BD.prototype.has=HD,BD.prototype.set=VD;var UD=BD,WD=FT(rT,"Map");var qD=function(){this.size=0,this.__data__={hash:new ID,map:new(WD||UD),string:new ID}};var YD=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var GD=function(e,t){var n=e.__data__;return YD(t)?n["string"==typeof t?"string":"hash"]:n.map};var KD=function(e){var t=GD(this,e).delete(e);return this.size-=t?1:0,t};var QD=function(e){return GD(this,e).get(e)};var XD=function(e){return GD(this,e).has(e)};var ZD=function(e,t){var n=GD(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function JD(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}JD.prototype.clear=qD,JD.prototype.delete=KD,JD.prototype.get=QD,JD.prototype.has=XD,JD.prototype.set=ZD;var eM=JD;var tM=function(e){return null==e?"":wT(e)};var nM=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var rM=function(e){return function(t){return null==e?void 0:e[t]}};var oM=function(){this.__data__=new UD,this.size=0};var aM=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var iM=function(e){return this.__data__.get(e)};var sM=function(e){return this.__data__.has(e)};var lM=function(e,t){var n=this.__data__;if(n instanceof UD){var r=n.__data__;if(!WD||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new eM(r)}return n.set(e,t),this.size=n.size,this};function uM(e){var t=this.__data__=new UD(e);this.size=t.size}uM.prototype.clear=oM,uM.prototype.delete=aM,uM.prototype.get=iM,uM.prototype.has=sM,uM.prototype.set=lM;var cM=uM;var dM=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a};var fM=function(){return[]},pM=Object.prototype.propertyIsEnumerable,hM=Object.getOwnPropertySymbols,mM=hM?function(e){return null==e?[]:(e=Object(e),dM(hM(e),function(t){return pM.call(e,t)}))}:fM;var gM=function(e,t,n){var r=t(e);return yT(e)?r:nM(r,n(e))};var yM=function(e){return gM(e,_D,mM)},vM=FT(rT,"DataView"),bM=FT(rT,"Promise"),wM=FT(rT,"Set"),xM="[object Map]",CM="[object Promise]",SM="[object Set]",kM="[object WeakMap]",_M="[object DataView]",EM=NT(vM),jM=NT(WD),NM=NT(bM),OM=NT(wM),RM=NT(LT),PM=pT;(vM&&PM(new vM(new ArrayBuffer(1)))!=_M||WD&&PM(new WD)!=xM||bM&&PM(bM.resolve())!=CM||wM&&PM(new wM)!=SM||LT&&PM(new LT)!=kM)&&(PM=function(e){var t=pT(e),n="[object Object]"==t?e.constructor:void 0,r=n?NT(n):"";if(r)switch(r){case EM:return _M;case jM:return xM;case NM:return CM;case OM:return SM;case RM:return kM}return t});var TM=PM,DM=rT.Uint8Array;var MM=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var IM=function(e){return this.__data__.has(e)};function AM(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new eM;++t<n;)this.add(e[t])}AM.prototype.add=AM.prototype.push=MM,AM.prototype.has=IM;var FM=AM;var LM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var zM=function(e,t){return e.has(t)};var $M=function(e,t,n,r,o,a){var i=1&n,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new FM:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var g=i?r(m,h,d,t,e,a):r(h,m,d,e,t,a);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!LM(t,function(e,t){if(!zM(p,t)&&(h===e||o(h,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f};var HM=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var VM=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},BM=oT?oT.prototype:void 0,UM=BM?BM.valueOf:void 0;var WM=function(e,t,n,r,o,a,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new DM(e),new DM(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return YT(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=HM;case"[object Set]":var l=1&r;if(s||(s=VM),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;r|=2,i.set(e,t);var c=$M(s(e),s(t),r,o,a,i);return i.delete(e),c;case"[object Symbol]":if(UM)return UM.call(e)==UM.call(t)}return!1},qM=Object.prototype.hasOwnProperty;var YM=function(e,t,n,r,o,a){var i=1&n,s=yM(e),l=s.length;if(l!=yM(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:qM.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=i;++u<l;){var m=e[c=s[u]],g=t[c];if(r)var y=i?r(g,m,c,t,e,a):r(m,g,c,e,t,a);if(!(void 0===y?m===g||o(m,g,n,r,a):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},GM="[object Arguments]",KM="[object Array]",QM="[object Object]",XM=Object.prototype.hasOwnProperty;var ZM=function(e,t,n,r,o,a){var i=yT(e),s=yT(t),l=i?KM:TM(e),u=s?KM:TM(t),c=(l=l==GM?QM:l)==QM,d=(u=u==GM?QM:u)==QM,f=l==u;if(f&&uD(e)){if(!uD(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new cM),i||vD(e)?$M(e,t,n,r,o,a):WM(e,t,l,n,r,o,a);if(!(1&n)){var p=c&&XM.call(e,"__wrapped__"),h=d&&XM.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return a||(a=new cM),o(m,g,n,r,a)}}return!!f&&(a||(a=new cM),YM(e,t,n,r,o,a))};var JM=function e(t,n,r,o,a){return t===n||(null==t||null==n||!hT(t)&&!hT(n)?t!=t&&n!=n:ZM(t,n,r,o,e,a))};var eI=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},tI=rM({"&":"&","<":"<",">":">",'"':""","'":"'"}),nI=/[&<>"']/g,rI=RegExp(nI.source);var oI=function(e){return(e=tM(e))&&rI.test(e)?e.replace(nI,tI):e},aI=/[\\^$.*+?()[\]{}|]/g,iI=RegExp(aI.source);var sI=function(e){return(e=tM(e))&&iI.test(e)?e.replace(aI,"\\$&"):e};var lI=function(e,t){return JM(e,t)},uI=wM&&1/VM(new wM([,-0]))[1]==1/0?function(e){return new wM(e)}:zT,cI=uI;var dI=function(e,t,n){var r=-1,o=UT,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=eI;else if(a>=200){var u=t?null:cI(e);if(u)return VM(u);i=!1,o=zM,l=new FM}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s};var fI=function(e){return e&&e.length?dI(e):[]},pI={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,SPACE:32},hI={ENTER:"Enter",TAB:"Tab",COMMA:",",SPACE:" ",SEMICOLON:";"},mI="Press enter to add new tag",gI="text",yI={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},vI="inline",bI="top",wI="bottom",xI="Tag limit reached!";function CI(e){const{moveTag:t,readOnly:n,allowDragDrop:r}=e;return void 0!==t&&!n&&r}var SI=e=>{const{readOnly:t,removeComponent:n,onRemove:r,className:o,tag:a,index:i}=e,s=e=>{if(pI.ENTER.includes(e.keyCode)||e.keyCode===pI.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===pI.BACKSPACE&&r(e)};if(t)return m.jsx("span",{});const l=`Tag at index ${i} with value ${a.id} focussed. Press backspace to remove`;if(n){const e=n;return m.jsx(e,{"data-testid":"remove",onRemove:r,onKeyDown:s,className:o,"aria-label":l,tag:a,index:i})}return m.jsx("button",{"data-testid":"remove",onClick:r,onKeyDown:s,className:o,type:"button","aria-label":l,children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"12",width:"12",fill:"#fff",children:m.jsx("path",{d:"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"})})})},kI="tag",_I=e=>{const t=D.useRef(null),{readOnly:n=!1,tag:r,classNames:o,index:a,moveTag:i,allowDragDrop:s=!0,labelField:l="text",tags:u}=e,[{isDragging:c},d]=yP(()=>({type:kI,collect:e=>({isDragging:!!e.isDragging()}),item:e,canDrag:()=>CI({moveTag:i,readOnly:n,allowDragDrop:s})}),[u]),[,f]=xP(()=>({accept:kI,drop:t=>{const n=t.index,r=a;n!==r&&e?.moveTag?.(n,r)},canDrop:e=>function(e){const{readOnly:t,allowDragDrop:n}=e;return!t&&n}(e)}),[u]);d(f(t));const p=e.tag[l],{className:h=""}=r,g=c?0:1;return m.jsxs("span",{ref:t,className:(0,eT.default)("tag-wrapper",o.tag,h),style:{opacity:g,cursor:CI({moveTag:i,readOnly:n,allowDragDrop:s})?"move":"auto"},"data-testid":"tag",onClick:e.onTagClicked,onTouchStart:e.onTagClicked,children:[p,m.jsx(SI,{tag:e.tag,className:o.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:n,index:a})]})},EI=e=>m.jsx("button",{"aria-label":e["aria-label"],className:e.classNames.clearAll,onClick:e.onClick,children:"Clear all"}),jI=(e,t,n,r)=>"function"==typeof r?r(e):e.length>=t&&n,NI=D.memo(e=>{const t=D.createRef(),{labelField:n,minQueryLength:r,isFocused:o,classNames:a,selectedIndex:i,query:s}=e;D.useEffect(()=>{if(!t.current)return;const e=t.current.querySelector(`.${a.activeSuggestion}`);e&&((e,t)=>{const n=t.offsetHeight,r=e.offsetHeight,o=e.offsetTop-t.scrollTop;o+r>=n?t.scrollTop+=o-n+r:o<0&&(t.scrollTop+=o)})(e,t.current)},[i]);const l=(e,t)=>{const r=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&"),{[n]:o}=e;return{__html:o.replace(RegExp(r,"gi"),e=>`<mark>${oI(e)}</mark>`)}},u=(t,n)=>"function"==typeof e.renderSuggestion?e.renderSuggestion(t,n):m.jsx("span",{dangerouslySetInnerHTML:l(t,n)}),c=e.suggestions.map((t,n)=>m.jsx("li",{onMouseDown:e.handleClick.bind(null,n),onTouchStart:e.handleClick.bind(null,n),onMouseOver:e.handleHover.bind(null,n),className:n===e.selectedIndex?e.classNames.activeSuggestion:"",children:u(t,e.query)},n));return 0!==c.length&&jI(s,r||2,o,e.shouldRenderSuggestions)?m.jsx("div",{ref:t,className:a.suggestions,"data-testid":"suggestions",children:m.jsxs("ul",{children:[" ",c," "]})}):null},(e,t)=>{const{query:n,minQueryLength:r=2,isFocused:o,suggestions:a}=t;return!(e.isFocused!==o||!lI(e.suggestions,a)||jI(n,r,o,t.shouldRenderSuggestions)!==jI(e.query,e.minQueryLength??2,e.isFocused,e.shouldRenderSuggestions)||e.selectedIndex!==t.selectedIndex)}),OI=NI,RI=ZP(JP()),PI=e=>{const{autofocus:t,autoFocus:n,readOnly:r,labelField:o,allowDeleteFromEmptyInput:a,allowAdditionFromPaste:i,allowDragDrop:s,minQueryLength:l,shouldRenderSuggestions:u,removeComponent:c,autocomplete:d,inline:f,maxTags:p,allowUnique:h,editable:g,placeholder:y,delimiters:v,separators:b,tags:w,inputFieldPosition:x,inputProps:C,classNames:S,maxLength:k,inputValue:_,clearAll:E,ariaAttrs:j}=e,[N,O]=D.useState(e.suggestions),[R,P]=D.useState(""),[T,M]=D.useState(!1),[I,A]=D.useState(-1),[F,L]=D.useState(!1),[z,$]=D.useState(""),[H,V]=D.useState(-1),[B,U]=D.useState(""),W=D.createRef(),q=D.useRef(null),Y=D.useRef(null);D.useEffect(()=>{v.length&&console.warn("[Deprecation] The delimiters prop is deprecated and will be removed in v7.x.x, please use separators instead. If you have any concerns regarding this, please share your thoughts in https://github.com/react-tags/react-tags/issues/960")},[]),D.useEffect(()=>{void 0!==f&&console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.")},[f]),D.useEffect(()=>{void 0!==t&&console.warn("[Deprecated] autofocus prop will be removed in 7.x so please migrate to autoFocus prop."),(t||n&&!1!==t)&&!r&&Q()},[n,n,r]),D.useEffect(()=>{ee()},[R,e.suggestions]);const G=t=>{let n=e.suggestions.slice();if(h){const e=w.map(e=>e.id.trim().toLowerCase());n=n.filter(t=>!e.includes(t.id.toLowerCase()))}if(e.handleFilterSuggestions)return e.handleFilterSuggestions(t,n);const r=n.filter(e=>0===K(t,e)),o=n.filter(e=>K(t,e)>0);return r.concat(o)},K=(e,t)=>t[o].toLowerCase().indexOf(e.toLowerCase()),Q=()=>{P(""),q.current&&(q.current.value="",q.current.focus())},X=(t,n)=>{n.preventDefault(),n.stopPropagation();const r=w.slice();0!==r.length&&(U(""),e?.handleDelete?.(t,n),Z(t,r))},Z=(e,t)=>{if(!W?.current)return;const n=W.current.querySelectorAll(".ReactTags__remove");let r="";0===e&&t.length>1?(r=`Tag at index ${e} with value ${t[e].id} deleted. Tag at index 0 with value ${t[1].id} focussed. Press backspace to remove`,n[0].focus()):e>0?(r=`Tag at index ${e} with value ${t[e].id} deleted. Tag at index ${e-1} with value ${t[e-1].id} focussed. Press backspace to remove`,n[e-1].focus()):(r=`Tag at index ${e} with value ${t[e].id} deleted. Input focussed. Press enter to add a new tag`,q.current?.focus()),$(r)},J=t=>{e.handleInputChange&&e.handleInputChange(t.target.value,t);const n=t.target.value.trim();P(n)},ee=()=>{const e=G(R);O(e),A(I>=e.length?e.length-1:I)},te=t=>{const n=t.target.value;e.handleInputFocus&&e.handleInputFocus(n,t),M(!0)},ne=t=>{const n=t.target.value;e.handleInputBlur&&(e.handleInputBlur(n,t),q.current&&(q.current.value="")),M(!1),V(-1)},re=e=>{if(!e.nativeEvent.isComposing){if("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),A(-1),L(!1),O([]),V(-1)),(-1!==b.indexOf(e.key)||-1!==v.indexOf(e.keyCode))&&!e.shiftKey){e.keyCode===pI.TAB&&""===R||e.preventDefault();const t=F&&-1!==I?N[I]:{id:R.trim(),[o]:R.trim(),className:""};Object.keys(t)&&ie(t)}"Backspace"!==e.key||""!==R||!a&&x!==vI||X(w.length-1,e),e.keyCode===pI.UP_ARROW&&(e.preventDefault(),A(I<=0?N.length-1:I-1),L(!0)),e.keyCode===pI.DOWN_ARROW&&(e.preventDefault(),L(!0),0===N.length?A(-1):A((I+1)%N.length))}},oe=()=>p&&w.length>=p,ae=t=>{if(!i)return;if(oe())return U(xI),void Q();U(""),t.preventDefault();const n=t.clipboardData||window.clipboardData,r=n.getData("text"),{maxLength:a=r.length}=e,s=Math.min(a,r.length),l=n.getData("text").substr(0,s);let u=v;b.length&&(u=[],b.forEach(e=>{const t=function(e){switch(e){case hI.ENTER:return[10,13];case hI.TAB:return 9;case hI.COMMA:return 188;case hI.SPACE:return 32;case hI.SEMICOLON:return 186;default:return 0}}(e);Array.isArray(t)?u=[...u,...t]:u.push(t)}));const c=function(e){const t=e.map(e=>{const t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join(""),n=sI(t);return new RegExp(`[${n}]+`)}(u),d=l.split(c).map(e=>e.trim());fI(d).forEach(e=>ie({id:e.trim(),[o]:e.trim(),className:""}))},ie=t=>{if(!t.id||!t[o])return;if(-1===H){if(oe())return U(xI),void Q();U("")}const n=w.map(e=>e.id.toLowerCase());if(!(h&&n.indexOf(t.id.trim().toLowerCase())>=0)){if(d){const e=G(t[o]);console.warn("[Deprecation] The autocomplete prop will be removed in 7.x to simplify the integration and make it more intutive. If you have any concerns regarding this, please share your thoughts in https://github.com/react-tags/react-tags/issues/949"),(1===d&&1===e.length||!0===d&&e.length)&&(t=e[0])}-1!==H&&e.onTagUpdate?e.onTagUpdate(H,t):e?.handleAddition?.(t),P(""),L(!1),A(-1),V(-1),Q()}},se=(t,n)=>{const r=w[t];e?.handleDrag?.(r,t,n)},le=(()=>{const t={...yI,...e.classNames};return w.map((n,a)=>m.jsx(D.Fragment,{children:H===a?m.jsx("div",{className:t.editTagInput,children:m.jsx("input",{ref:e=>{Y.current=e},onFocus:te,value:R,onChange:J,onKeyDown:re,onBlur:ne,className:t.editTagInputField,onPaste:ae,"data-testid":"tag-edit"})}):m.jsx(_I,{index:a,tag:n,tags:w,labelField:o,onDelete:e=>X(a,e),moveTag:s?se:void 0,removeComponent:c,onTagClicked:t=>((t,n,a)=>{r||(g&&(V(t),P(n[o]),Y.current?.focus()),e.handleTagClick?.(t,a))})(a,n,t),readOnly:r,classNames:t,allowDragDrop:s})},a))})(),ue={...yI,...S},{name:ce,id:de}=e,fe=!1===f?wI:x,pe=r?null:m.jsxs("div",{className:ue.tagInput,children:[m.jsx("input",{...C,ref:e=>{q.current=e},className:ue.tagInputField,type:"text",placeholder:y,"aria-label":y,onFocus:te,onBlur:ne,onChange:J,onKeyDown:re,onPaste:ae,name:ce,id:de,maxLength:k,value:_,"data-automation":"input","data-testid":"input"}),m.jsx(OI,{query:R.trim(),suggestions:N,labelField:o,selectedIndex:I,handleClick:e=>{ie(N[e])},handleHover:e=>{A(e),L(!0)},minQueryLength:l,shouldRenderSuggestions:u,isFocused:T,classNames:ue,renderSuggestion:e.renderSuggestion}),E&&w.length>0&&m.jsx(EI,{"aria-label":j?.clearAllLabel,classNames:ue,onClick:()=>{e.onClearAll&&e.onClearAll(),U(""),Q()}}),B&&m.jsxs("div",{"data-testid":"error",className:"ReactTags__error",children:[m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"24",width:"24",fill:"#e03131",children:m.jsx("path",{d:"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})}),B]})]});return m.jsxs("div",{className:(0,RI.default)(ue.tags,"react-tags-wrapper"),ref:W,children:[m.jsx("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0},children:z}),fe===bI&&pe,m.jsxs("div",{className:ue.selected,children:[le,fe===vI&&pe]}),fe===wI&&pe]})},TI=e=>{const{placeholder:t=mI,labelField:n=gI,suggestions:r=[],delimiters:o=[],separators:a=(e.delimiters?.length?[]:[hI.ENTER,hI.TAB]),autofocus:i,autoFocus:s=!0,inline:l,inputFieldPosition:u="inline",allowDeleteFromEmptyInput:c=!1,allowAdditionFromPaste:d=!0,autocomplete:f=!1,readOnly:p=!1,allowUnique:h=!0,allowDragDrop:g=!0,tags:y=[],inputProps:v={},editable:b=!1,clearAll:w=!1,ariaAttrs:x={clearAllLabel:"clear all tags"},handleDelete:C,handleAddition:S,onTagUpdate:k,handleDrag:_,handleFilterSuggestions:E,handleTagClick:j,handleInputChange:N,handleInputFocus:O,handleInputBlur:R,minQueryLength:P,shouldRenderSuggestions:T,removeComponent:D,onClearAll:M,classNames:I,name:A,id:F,maxLength:L,inputValue:z,maxTags:$,renderSuggestion:H}=e;return m.jsx(PI,{placeholder:t,labelField:n,suggestions:r,delimiters:o,separators:a,autofocus:i,autoFocus:s,inline:l,inputFieldPosition:u,allowDeleteFromEmptyInput:c,allowAdditionFromPaste:d,autocomplete:f,readOnly:p,allowUnique:h,allowDragDrop:g,tags:y,inputProps:v,editable:b,clearAll:w,ariaAttrs:x,handleDelete:C,handleAddition:S,onTagUpdate:k,handleDrag:_,handleFilterSuggestions:E,handleTagClick:j,handleInputChange:N,handleInputFocus:O,handleInputBlur:R,minQueryLength:P,shouldRenderSuggestions:T,removeComponent:D,onClearAll:M,classNames:I,name:A,id:F,maxLength:L,inputValue:z,maxTags:$,renderSuggestion:H})},DI=({...e})=>m.jsx(qR,{backend:BP,children:m.jsx(TI,{...e})});
|
|
223
|
+
`;var lj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});D.forwardRef((e,t)=>m.jsx(La.span,{...e,ref:t,style:{...lj,...e.style}})).displayName="VisuallyHidden";var uj=[" ","Enter","ArrowUp","ArrowDown"],cj=[" ","Enter"],dj="Select",[fj,pj,hj]=$a(dj),[mj]=ja(dj,[hj,ul]),gj=ul(),[yj,vj]=mj(dj),[bj,wj]=mj(dj),xj=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:p,form:h}=e,g=gj(t),[y,v]=D.useState(null),[b,w]=D.useState(null),[x,C]=D.useState(!1),S=Va(u),[k,_]=Pa({prop:r,defaultProp:o??!1,onChange:a,caller:dj}),[E,j]=Pa({prop:i,defaultProp:s,onChange:l,caller:dj}),N=D.useRef(null),O=!y||(h||!!y.closest("form")),[R,P]=D.useState(new Set),T=Array.from(R).map(e=>e.props.value).join(";");return m.jsx(_l,{...g,children:m.jsxs(yj,{required:p,scope:t,trigger:y,onTriggerChange:v,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:x,onValueNodeHasChildrenChange:C,contentId:hi(),value:E,onValueChange:j,open:k,onOpenChange:_,dir:S,triggerPointerDownPosRef:N,disabled:f,children:[m.jsx(fj.Provider,{scope:t,children:m.jsx(bj,{scope:e.__scopeSelect,onNativeOptionAdd:D.useCallback(e=>{P(t=>new Set(t).add(e))},[]),onNativeOptionRemove:D.useCallback(e=>{P(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),O?m.jsxs(sN,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:E,onChange:e=>j(e.target.value),disabled:f,form:h,children:[void 0===E?m.jsx("option",{value:""}):null,Array.from(R)]},T):null]})})};xj.displayName=dj;var Cj="SelectTrigger",Sj=D.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=gj(n),i=vj(Cj,n),s=i.disabled||r,l=Ea(t,i.onTriggerChange),u=pj(n),c=D.useRef("touch"),[d,f,p]=uN(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===i.value),r=cN(t,e,n);void 0!==r&&i.onValueChange(r.value)}),h=e=>{s||(i.onOpenChange(!0),p()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return m.jsx(El,{asChild:!0,...a,children:m.jsx(La.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":lN(i.value)?"":void 0,...o,ref:l,onClick:Sa(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&h(e)}),onPointerDown:Sa(o.onPointerDown,e=>{c.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:Sa(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||uj.includes(e.key)&&(h(),e.preventDefault())})})})});Sj.displayName=Cj;var kj="SelectValue",_j=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=vj(kj,n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==a,d=Ea(t,l.onValueNodeChange);return Oa(()=>{u(c)},[u,c]),m.jsx(La.span,{...s,ref:d,style:{pointerEvents:"none"},children:lN(l.value)?m.jsx(m.Fragment,{children:i}):a})});_j.displayName=kj;var Ej=D.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.jsx(La.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ej.displayName="SelectIcon";var jj=e=>m.jsx(Ol,{asChild:!0,...e});jj.displayName="SelectPortal";var Nj="SelectContent",Oj=D.forwardRef((e,t)=>{const n=vj(Nj,e.__scopeSelect),[r,o]=D.useState();if(Oa(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?Ta.createPortal(m.jsx(Pj,{scope:e.__scopeSelect,children:m.jsx(fj.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),t):null}return m.jsx(Mj,{...e,ref:t})});Oj.displayName=Nj;var Rj=10,[Pj,Tj]=mj(Nj),Dj=Ma("SelectContent.RemoveScroll"),Mj=D.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y,...v}=e,b=vj(Nj,n),[w,x]=D.useState(null),[C,S]=D.useState(null),k=Ea(t,e=>x(e)),[_,E]=D.useState(null),[j,N]=D.useState(null),O=pj(n),[R,P]=D.useState(!1),T=D.useRef(!1);D.useEffect(()=>{if(w)return nu(w)},[w]),ei();const M=D.useCallback(e=>{const[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==o)return}},[O,C]),I=D.useCallback(()=>M([_,w]),[M,_,w]);D.useEffect(()=>{R&&I()},[R,I]);const{onOpenChange:A,triggerPointerDownPosRef:F}=b;D.useEffect(()=>{if(w){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||A(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[w,A,F]),D.useEffect(()=>{const e=()=>A(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[A]);const[L,z]=uN(e=>{const t=O().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=cN(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),$=D.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==b.value&&b.value===t||r)&&(E(e),r&&(T.current=!0))},[b.value]),H=D.useCallback(()=>w?.focus(),[w]),V=D.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==b.value&&b.value===t||r)&&N(e)},[b.value]),B="popper"===r?Aj:Ij,U=B===Aj?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y}:{};return m.jsx(Pj,{scope:n,content:w,viewport:C,onViewportChange:S,itemRefCallback:$,selectedItem:_,onItemLeave:H,itemTextRefCallback:V,focusSelectedItem:I,selectedItemText:j,position:r,isPositioned:R,searchRef:L,children:m.jsx(Uu,{as:Dj,allowPinchZoom:!0,children:m.jsx(ai,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Sa(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:m.jsx(Ka,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:m.jsx(B,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...v,...U,onPlaced:()=>P(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Sa(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>M(t)),e.preventDefault()}})})})})})})});Mj.displayName="SelectContentImpl";var Ij=D.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=vj(Nj,n),i=Tj(Nj,n),[s,l]=D.useState(null),[u,c]=D.useState(null),d=Ea(t,e=>c(e)),f=pj(n),p=D.useRef(!1),h=D.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:v,focusSelectedItem:b}=i,w=D.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&y&&v){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-Rj,d=ij(a,[Rj,Math.max(Rj,c-u)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-Rj,d=ij(a,[Rj,Math.max(Rj,c-u)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=f(),l=window.innerHeight-2*Rj,c=g.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+m+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*y.offsetHeight,w),C=window.getComputedStyle(g),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),_=e.top+e.height/2-Rj,E=l-_,j=y.offsetHeight/2,N=h+m+(y.offsetTop+j),O=w-N;if(N<=_){const e=i.length>0&&y===i[i.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-g.offsetTop-g.offsetHeight,n=N+Math.max(E,j+(e?k:0)+t+b);s.style.height=n+"px"}else{const e=i.length>0&&y===i[0].ref.current;s.style.top="0px";const t=Math.max(_,h+g.offsetTop+(e?S:0)+j)+O;s.style.height=t+"px",g.scrollTop=N-_+g.offsetTop}s.style.margin=`${Rj}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,u,g,y,v,a.dir,r]);Oa(()=>w(),[w]);const[x,C]=D.useState();Oa(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const S=D.useCallback(e=>{e&&!0===h.current&&(w(),b?.(),h.current=!1)},[w,b]);return m.jsx(Fj,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:m.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:m.jsx(La.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ij.displayName="SelectItemAlignedPosition";var Aj=D.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Rj,...a}=e,i=gj(n);return m.jsx(jl,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Aj.displayName="SelectPopperPosition";var[Fj,Lj]=mj(Nj,{}),zj="SelectViewport",$j=D.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Tj(zj,n),i=Lj(zj,n),s=Ea(t,a.onViewportChange),l=D.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),m.jsx(fj.Slot,{scope:n,children:m.jsx(La.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Sa(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(r?.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Rj,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});$j.displayName=zj;var Hj="SelectGroup",[Vj,Bj]=mj(Hj);D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hi();return m.jsx(Vj,{scope:n,id:o,children:m.jsx(La.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=Hj;var Uj="SelectLabel",Wj=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Bj(Uj,n);return m.jsx(La.div,{id:o.id,...r,ref:t})});Wj.displayName=Uj;var qj="SelectItem",[Yj,Gj]=mj(qj),Kj=D.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=vj(qj,n),l=Tj(qj,n),u=s.value===r,[c,d]=D.useState(a??""),[f,p]=D.useState(!1),h=Ea(t,e=>l.itemRefCallback?.(e,r,o)),g=hi(),y=D.useRef("touch"),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(Yj,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:D.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:m.jsx(fj.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:m.jsx(La.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:h,onFocus:Sa(i.onFocus,()=>p(!0)),onBlur:Sa(i.onBlur,()=>p(!1)),onClick:Sa(i.onClick,()=>{"mouse"!==y.current&&v()}),onPointerUp:Sa(i.onPointerUp,()=>{"mouse"===y.current&&v()}),onPointerDown:Sa(i.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:Sa(i.onPointerMove,e=>{y.current=e.pointerType,o?l.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Sa(i.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Sa(i.onKeyDown,e=>{""!==l.searchRef?.current&&" "===e.key||(cj.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});Kj.displayName=qj;var Qj="SelectItemText",Xj=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=vj(Qj,n),s=Tj(Qj,n),l=Gj(Qj,n),u=wj(Qj,n),[c,d]=D.useState(null),f=Ea(t,e=>d(e),l.onItemTextChange,e=>s.itemTextRefCallback?.(e,l.value,l.disabled)),p=c?.textContent,h=D.useMemo(()=>m.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=u;return Oa(()=>(g(h),()=>y(h)),[g,y,h]),m.jsxs(m.Fragment,{children:[m.jsx(La.span,{id:l.textId,...a,ref:f}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Ta.createPortal(a.children,i.valueNode):null]})});Xj.displayName=Qj;var Zj="SelectItemIndicator",Jj=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Gj(Zj,n).isSelected?m.jsx(La.span,{"aria-hidden":!0,...r,ref:t}):null});Jj.displayName=Zj;var eN="SelectScrollUpButton",tN=D.forwardRef((e,t)=>{const n=Tj(eN,e.__scopeSelect),r=Lj(eN,e.__scopeSelect),[o,a]=D.useState(!1),i=Ea(t,r.onScrollButtonChange);return Oa(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?m.jsx(oN,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tN.displayName=eN;var nN="SelectScrollDownButton",rN=D.forwardRef((e,t)=>{const n=Tj(nN,e.__scopeSelect),r=Lj(nN,e.__scopeSelect),[o,a]=D.useState(!1),i=Ea(t,r.onScrollButtonChange);return Oa(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?m.jsx(oN,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});rN.displayName=nN;var oN=D.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Tj("SelectScrollButton",n),i=D.useRef(null),s=pj(n),l=D.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return D.useEffect(()=>()=>l(),[l]),Oa(()=>{const e=s().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[s]),m.jsx(La.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Sa(o.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(r,50))}),onPointerMove:Sa(o.onPointerMove,()=>{a.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(r,50))}),onPointerLeave:Sa(o.onPointerLeave,()=>{l()})})}),aN=D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(La.div,{"aria-hidden":!0,...r,ref:t})});aN.displayName="SelectSeparator";var iN="SelectArrow";D.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=gj(n),a=vj(iN,n),i=Tj(iN,n);return a.open&&"popper"===i.position?m.jsx(Nl,{...o,...r,ref:t}):null}).displayName=iN;var sN=D.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=D.useRef(null),a=Ea(r,o),i=sj(t);return D.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),m.jsx(La.select,{...n,style:{...lj,...n.style},ref:a,defaultValue:t})});function lN(e){return""===e||void 0===e}function uN(e){const t=Ba(e),n=D.useRef(""),r=D.useRef(0),o=D.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=D.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return D.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function cN(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}sN.displayName="SelectBubbleInput";var dN=Sj,fN=Ej,pN=jj,hN=Oj,mN=$j,gN=Wj,yN=Kj,vN=Xj,bN=Jj,wN=tN,xN=rN,CN=aN;const SN=xj,kN=_j,_N=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(dN,{ref:r,className:ma("flex h-10 w-full items-center hover:border-[#BFD7FE] justify-between rounded-md border focus:border-primary border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-neutral-500 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 ",e),...n,children:[t,m.jsx(fN,{asChild:!0,children:m.jsx(Qd,{className:"h-4 w-4 opacity-50"})})]}));_N.displayName=dN.displayName;const EN=D.forwardRef(({className:e,...t},n)=>m.jsx(wN,{ref:n,className:ma("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(Zd,{className:"h-4 w-4"})}));EN.displayName=wN.displayName;const jN=D.forwardRef(({className:e,...t},n)=>m.jsx(xN,{ref:n,className:ma("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(Qd,{className:"h-4 w-4"})}));jN.displayName=xN.displayName;const NN=D.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>m.jsx(pN,{children:m.jsxs(hN,{ref:o,className:ma("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[m.jsx(EN,{}),m.jsx(mN,{className:ma("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(jN,{})]})}));NN.displayName=hN.displayName;D.forwardRef(({className:e,...t},n)=>m.jsx(gN,{ref:n,className:ma("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=gN.displayName;const ON=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(yN,{ref:r,className:ma("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary/20 cursor-pointer focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(bN,{children:m.jsx(Kd,{className:"h-4 w-4"})})}),m.jsx(vN,{children:t})]}));ON.displayName=yN.displayName;function RN({label:e,addonLabel:t,type:n,placeholder:r,selectPlaceholder:o,error:a,success:i,value:s,defaultValue:l,name:u,id:c,formik:d,onChange:f,inputRef:p,onBlur:h,required:g,disabled:y,loading:v,showError:b,selectOptions:w,disableSearch:x,searchSelectPlaceholder:C,showSelectSearch:S,onSelectValueChange:k,selectValue:_,showOutline:E=!0,cols:j,rows:N,labelClass:O,addonLabelClass:R,optional:P,info:T,addonInfo:M,icon:I,actionIcon:A,actionLabel:F,actionLabelInfo:L,actionLabelAction:z,className:$,textAreaOnChange:H,addOn:V,infoAlignment:B,addonInfoAlignment:U,inputContainerClass:W,showNegative:q,showPositive:Y,...G}){const[K,Q]=D.useState(n),[X,Z]=D.useState(!1),[J,ee]=D.useState(""),te=((e,t)=>{const n=e?.filter(e=>"string"==typeof e.label?e.label?.toLowerCase().includes(t.toLowerCase()):e.value?.toLowerCase().includes(t.toLowerCase())||e?.searchId?.toLowerCase().includes(t.toLowerCase()));return t?n:e})(w??[],J);return m.jsx(m.Fragment,{children:v?m.jsx(Ca,{className:"w-full h-12"}):m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:`flex flex-col ${e&&"gap-2.5"} relative `,children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[t&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",R),children:[t," ",g?m.jsx("span",{className:"text-[#E12D39]",children:t&&"*"}):P?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,M&&m.jsx(Uv,{fieldName:t,align:U,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:M})})]}),e&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",O),children:[e," ",g?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):P?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,T&&m.jsx(Uv,{fieldName:e,align:B,children:m.jsx("p",{className:"font-normal first-letter:uppercase w-full whitespace-pre-wrap",children:T})})]}),F&&m.jsxs("button",{onClick:z,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-bold",children:[A,F,L&&m.jsx(Uv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:L})})]})]}),m.jsxs("div",{className:ma(`border overflow-hidden rounded-md text-sm border-[#E1E3EA] hover:border-primary_light font-normal text-grey-950 flex gap-2 items-center bg-white px-3 ${"text-area"!==n&&"h-12"} ${(a||b)&&"!border-danger"} ${i&&"!border-success"} ${X&&E&&"!border-primary"}\n ${I&&"px-2"}\n ${V&&"px-0"}\n `,y?"cursor-not-allowed bg-gray-200":null,w?"px-0":null,W),children:[V&&m.jsx("span",{className:"bg-gray-200 text-[13px] font-semibold text-gray-700 h-full min-w-[38px] flex items-center justify-center shrink-0 rounded-l-md px-2 ",children:V}),I,w&&m.jsxs(SN,{onValueChange:k,defaultValue:_,value:_,children:[m.jsx(_N,{disabled:x,className:" min-w-max w-max h-full border-0 border-r rounded-none hover:border-neutral-200 focus:border-neutral-200 bg-[#F9F9F9] hover:border-b-neutral-200 disabled:opacity-100 ",children:m.jsx(kN,{className:" text-sm text-[#5E6278] placeholder:font-medium outline-none",placeholder:o})}),m.jsxs(NN,{className:"bg-white w-full relative",children:[S&&m.jsx("input",{value:J,onChange:e=>{ee(e.target.value.toString())},placeholder:C??"Search...",className:"h-10 border mb-2 text-sm px-4 outline-none w-full border-neutral-200 rounded bg-white sticky top-0 z-20"}),te?.map((e,t)=>m.jsx(ON,{className:"text-sm",value:e.value,children:e.label},e.value))]})]}),"text-area"===n?m.jsx("textarea",{cols:j,rows:N,onFocus:()=>Z(!0),onBlur:e=>{Z(!1)},placeholder:r,className:ma(`placeholder:text-[#7E8299] hover:border-primary_light py-2 h-full placeholder:font-medium outline-none w-full rounded ${y?"bg-[#EEEFF2] cursor-not-allowed":null} ${X&&E&&"!border-primary"} transition-all ease-in-out`,$),...G,value:s,name:u,onChange:H}):m.jsx("input",{onInput:e=>{const t=e.target;"number"===n&&(t.value=t.value.replace(/[^0-9.]/g,""),t.value=t.value.replace(/^\.|(\..*)\./g,"$1"),t.value.length>1&&t.value.startsWith("0")&&"."!==t.value[1]&&(t.value=t.value.replace(/^0+/,"")),""!==t.value&&"0"!==t.value||(t.value="0"))},type:"number"===K?"text":K,placeholder:r,className:ma("placeholder:text-[#7E8299] h-full placeholder:font-medium outline-none w-full rounded disabled:cursor-not-allowed",w&&"number"===n?"pr-2":null,I||V?"pr-0":null,w&&"number"===n&&t&&"text-right pr-2",$,Y&&"0"!==s?.toString().trim()?"text-green-600 font-semibold":"",q&&s?.toString().trim().startsWith("-")?"text-red-600 font-semibold":""),onFocus:()=>Z(!0),onBlur:e=>{d&&h&&d&&h(e),Z(!1)},value:s||"",defaultValue:l,onChange:f,id:c,name:u,required:g,disabled:y,ref:p,...G}),"password"===n&&m.jsx("span",{className:"cursor-pointer",onClick:()=>{Q(e=>"password"===e?"text":"password")},children:"password"===K?bv.eyeslash:bv.eye})]}),a&&m.jsx("p",{className:"text-danger text-xs font-normal",children:a})]})})})}function PN({value:e,label:t,placeholder:n,uuid:r,name:o,displayValue:a,valueType:i,item_unit:s}){const{mutate:l,isPending:u}=vx();J();const[c,d]=D.useState(!1),[f,p]=D.useState({item_uuid:r,[o]:e});qn();const[h,g]=D.useState("");return m.jsxs(ik,{open:c,onOpenChange:d,children:[m.jsx(sk,{className:"flex items-center",children:m.jsx("button",{className:"hover:text-primary duration-150 underline disabled:no-underline disabled:hover:text-inherit",children:h?"selling_price"===o?Sv(+h):kv(+h)+s:a})}),m.jsxs(lk,{align:"center",className:"shadow-[0_1px_2px_0px_#E4E5E73D,_0_12px_24px_0_#868C981F] space-y-2 bg-white rounded-xl p-3 w-[280px] relative before:absolute before:w-3 before:h-1.5 before:bg-white before:left-1/2 before:-translate-x-1/2 before:rotate-45 data-[side=bottom]:before:top-0 data-[side=top]:before:bottom-0",children:[m.jsx(RN,{type:i,value:f[o],label:t,placeholder:n,onChange:e=>{p(t=>({...t,[o]:e.target.value}))}}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(nk,{children:m.jsx(oj,{label:"Dismiss",className:"bg-gray-300 text-dark text-sm hover:bg-gray-300/90 font-medium",disabled:u})}),m.jsx(oj,{label:"Update",className:"text-sm font-medium",onClick:()=>{l({url:"/items/update_basic",payload:f},{onSuccess:()=>{g(f[o]),d(!1)},onError:()=>{g("")}})},loading:u})]})]})]})}D.forwardRef(({className:e,...t},n)=>m.jsx(CN,{ref:n,className:ma("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=CN.displayName;const TN=[{accessorKey:"item_description",header:()=>m.jsxs("p",{children:[" ","Item description/ ",m.jsx("br",{})," Product code"," "]}),cell:({row:e})=>{const t=e.original;return m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("div",{className:"w-[50px] h-[50px] rounded-2xl relative bg-gray-100",children:m.jsx("img",{src:t.item_image,alt:"item image",className:"rounded-2xl object-cover w-full h-full",draggable:!1})}),m.jsxs("div",{className:"space-y-1 max-w-[265px]",children:[m.jsx(MN,{title:t.item_description,item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData}),m.jsxs("p",{className:"text-dark text-xs font-normal flex items-center gap-1",children:[m.jsx("span",{className:"uppercase whitespace-nowrap",children:t.itemcode}),t.sku||t.barcode.length>0?m.jsx(Uv,{align:"center",fieldName:"All item codes",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px]",children:["+",(t.barcode?.length||0)+(t.sku?1:0)]}),children:m.jsxs("div",{className:"space-y-2",children:[t.sku?m.jsxs("div",{className:"",children:[m.jsx("p",{children:" SKU:"}),m.jsx("ul",{className:"list-disc pl-4",children:m.jsx("li",{children:t.sku})})]}):null,t.barcode.length>0?m.jsxs("div",{children:[m.jsx("p",{children:"Barcodes:"}),m.jsx("ul",{className:"list-disc pl-4 ",children:t.barcode.map((e,t)=>m.jsx("li",{children:e.barcode},t))})]}):null,m.jsxs("div",{className:"",children:[m.jsx("p",{children:" Itemcode:"}),m.jsx("ul",{className:"list-disc pl-4",children:m.jsx("li",{children:t.itemcode})})]})]})}):null,t.expired?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expired",m.jsx("span",{className:"rounded bg-danger_light px-[5px] flex items-center text-danger font-semibold text-[11px] h-[18px]",children:t.expired})]}):null,t.expiring?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expiring",m.jsx("span",{className:"rounded bg-warning-light px-[5px] flex items-center text-warning font-semibold text-[11px] h-[18px]",children:t.expiring})]}):null]})]})]})}},{accessorKey:"quantity",header:()=>m.jsx("p",{children:"quantity"}),cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:ma("flex items-center",t.quantity<=0?"text-danger":Number(t.reorder_level)==t.quantity?"text-orange":null),children:m.jsx(PN,{label:"Edit item quantity",placeholder:"Enter quantity",uuid:t.uuid,name:"item_quantity",displayValue:kv(t.quantity)+t.unit,value:t.quantity,valueType:"number",item_unit:t.unit})}),t.all_quantity===t.quantity?null:m.jsx("p",{className:"text-gray-700",children:Intl.NumberFormat().format(t.all_quantity??0)+t.unit})]})}},{accessorKey:"type",cell:({row:e})=>{const t=e.original;return m.jsx("p",{className:"capitalize",children:t.type})}},{accessorKey:"selling_price",header:"Selling Price (₦)",cell:({row:e})=>{const t=e.original;return m.jsx(PN,{label:"Edit selling price (₦)",placeholder:"Enter selling price",uuid:t.uuid,name:"selling_price",displayValue:Sv(t.selling_price??0),value:t.selling_price??0,valueType:"number"})}},{accessorKey:"categories",header:"categories/Tags",cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[" ",m.jsxs("div",{className:"flex items-center gap-2 capitalize",children:[t.categories&&t.categories?.length>0?t.categories?.[0]?.name:"...",t.categories.length>1?m.jsx(Uv,{align:"center",fieldName:"Categories",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px]",children:["+",t.categories.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.categories.map((e,t)=>m.jsx("li",{children:e.name},t))})}):null]}),m.jsxs("div",{className:"text-gray-700 flex items-center gap-2 capitalize",children:[t.tags?.[0],t.tags?.length>1?m.jsx(Uv,{align:"center",fieldName:"Tags",trigger:m.jsxs("button",{className:"rounded bg-primary_light px-[5px] flex items-center text-primary font-semibold text-[11px] h-[18px] border-primary",children:["+",t.tags.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.tags.map((e,t)=>m.jsx("li",{children:e},t))})}):null]})]})}},{accessorKey:"status",cell:({row:e})=>{const t=e.getValue("status");return m.jsx(Wv,{status:t})}},{id:"actions",header:"actions",cell:({row:e})=>{const t=e.original;return m.jsx(DN,{item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData})}}],DN=({item_uuid:e,item_type_id:t,data:n})=>{const[r,o]=D.useState(null),a=()=>{o(null)},[i,s]=D.useState(!1),[l,u]=D.useState(!1),[c,d]=D.useState(!1),[f,p]=D.useState(!1),[h,g]=D.useState(!1),[y,v]=D.useState(!1),[b,w]=D.useState(!1),x=[{label:"view",icon:bv.eye_outline,action:()=>s(!0)},{label:"delete",icon:bv.trash,action:()=>p(!0)}];return m.jsxs(m.Fragment,{children:[m.jsxs(rf,{children:[m.jsx(of,{asChild:!0,children:m.jsxs("button",{className:"bg-gray-100 rounded-md h-[30px] w-[90px] flex items-center justify-between p-2.5 font-semibold text-[10px] text-gray-500 hover:border duration-200",children:["Action"," ",m.jsx("svg",{width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.50855 5.49304C5.42081 5.49355 5.33383 5.47673 5.25261 5.44356C5.17138 5.41038 5.09751 5.3615 5.03521 5.29971L1.03521 1.29971C0.972726 1.23773 0.92313 1.164 0.889284 1.08276C0.855438 1.00152 0.838013 0.914383 0.838013 0.826375C0.838013 0.738367 0.855438 0.65123 0.889284 0.56999C0.92313 0.488751 0.972726 0.415017 1.03521 0.353041C1.16012 0.228874 1.32909 0.15918 1.50521 0.15918C1.68134 0.15918 1.8503 0.228874 1.97521 0.353041L5.50855 3.88637L9.03521 0.353041C9.16012 0.228874 9.32909 0.15918 9.50521 0.15918C9.68134 0.15918 9.8503 0.228874 9.97521 0.353041C10.0377 0.415017 10.0873 0.488751 10.1211 0.56999C10.155 0.65123 10.1724 0.738367 10.1724 0.826375C10.1724 0.914383 10.155 1.00152 10.1211 1.08276C10.0873 1.164 10.0377 1.23773 9.97521 1.29971L5.97521 5.29971C5.85104 5.42287 5.68344 5.4923 5.50855 5.49304Z",fill:"#202125"})})]})}),m.jsx(af,{align:"end",className:"flex flex-col gap-2.5 rounded-xl border-gray-200",children:x.map((e,t)=>m.jsxs(sf,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-gray-700 text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${t===x.length-1&&"text-danger focus:text-danger"}`,onMouseOver:()=>(e=>{o(e)})(t),onMouseOut:a,onClick:e.action,children:[M.cloneElement(e.icon,{fill:r===t?"#1868DB":"#5E6278"})," ",e.label]},t))})]}),m.jsx(gk,{isOpen:i,onClose:()=>s(!1),itemUUID:e}),m.jsx(aj,{isOpen:f,onClose:()=>p(!1),uuids:[e],single:!0})]})},MN=({title:e,item_uuid:t,item_type_id:n,data:r})=>{const[o,a]=D.useState(!1),[i,s]=D.useState(!1),[l,u]=D.useState(!1);return m.jsxs(m.Fragment,{children:[m.jsx("button",{className:ma("text-primary font-bold text-sm first-letter:uppercase truncate max-w-[265px] cursor-pointer",r.expired?"text-danger":""),title:e,onClick:()=>a(!0),children:e}),m.jsx(gk,{isOpen:o,onClose:()=>a(!1),itemUUID:t})]})};var IN,AN={};function FN(){if(IN)return AN;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}IN=1,Object.defineProperty(AN,"__esModule",{value:!0}),AN.Collapse=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t};function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=s(t);if(n){var a=s(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,r)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t=a(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),l(i(n=t.call(this,e)),"timeout",void 0),l(i(n),"container",void 0),l(i(n),"content",void 0),l(i(n),"onResize",function(){if(clearTimeout(n.timeout),n.container&&n.content){var e=n.props,t=e.isOpened,r=e.checkTimeout,o=Math.floor(n.container.clientHeight),a=Math.floor(n.content.clientHeight),i=t&&Math.abs(a-o)<=1,s=!t&&Math.abs(o)<=1;i||s?n.onRest({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}):(n.onWork({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}),n.timeout=setTimeout(function(){return n.onResize()},r))}}),l(i(n),"onRest",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(s||l){n.container.style.overflow=o?"initial":"hidden",n.container.style.height=o?"auto":"0px";var u=n.props.onRest;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onWork",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(!s&&!l){n.container.style.overflow="hidden",n.container.style.height=o?"".concat(i,"px"):"0px";var u=n.props.onWork;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onRefContainer",function(e){n.container=e}),l(i(n),"onRefContent",function(e){n.content=e}),e.initialStyle?n.initialStyle=e.initialStyle:n.initialStyle=e.isOpened?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"},n}return r(s,[{key:"componentDidMount",value:function(){this.onResize()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.theme,r=t.isOpened;return t.children!==e.children||r!==e.isOpened||Object.keys(n).some(function(t){return n[t]!==e.theme[t]})}},{key:"getSnapshotBeforeUpdate",value:function(){if(!this.container||!this.content)return null;if("auto"===this.container.style.height){var e=this.content.clientHeight;this.container.style.height="".concat(e,"px")}return null}},{key:"componentDidUpdate",value:function(){this.onResize()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props,t=e.theme,r=e.children,o=e.isOpened;return n.default.createElement("div",{ref:this.onRefContainer,className:t.collapse,style:this.initialStyle,"aria-hidden":!o},n.default.createElement("div",{ref:this.onRefContent,className:t.content},r))}}]),s}(n.default.Component);return AN.Collapse=u,l(u,"defaultProps",{theme:{collapse:"ReactCollapse--collapse",content:"ReactCollapse--content"},initialStyle:void 0,onRest:void 0,onWork:void 0,checkTimeout:50}),AN}var LN,zN,$N,HN={};function VN(){if(LN)return HN;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}LN=1,Object.defineProperty(HN,"__esModule",{value:!0}),HN.UnmountClosed=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t},r=FN(),o=["isOpened"],a=["isOpened"];function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=m(t);if(n){var a=m(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t=p(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),g(h(n=t.call(this,e)),"onWork",function(e){var t=e.isOpened,r=u(e,o);n.setState({isResting:!1,isOpened:t});var a=n.props.onWork;a&&a(l({isOpened:t},r))}),g(h(n),"onRest",function(e){var t=e.isOpened,r=u(e,a);n.setState({isResting:!0,isOpened:t,isInitialRender:!1});var o=n.props.onRest;o&&o(l({isOpened:t},r))}),g(h(n),"getInitialStyle",function(){var e=n.state,t=e.isOpened;return e.isInitialRender&&t?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"}}),n.state={isResting:!0,isOpened:e.isOpened,isInitialRender:!0},n}return c(s,[{key:"componentDidUpdate",value:function(e){var t=this.props.isOpened;e.isOpened!==t&&this.setState({isResting:!1,isOpened:t,isInitialRender:!1})}},{key:"render",value:function(){var e=this.state,t=e.isResting,o=e.isOpened;return t&&!o?null:n.default.createElement(r.Collapse,i({},this.props,{initialStyle:this.getInitialStyle(),onWork:this.onWork,onRest:this.onRest}))}}]),s}(n.default.PureComponent);return HN.UnmountClosed=y,g(y,"defaultProps",{onWork:void 0,onRest:void 0}),HN}var BN=function(){if($N)return zN;$N=1;var e=FN().Collapse,t=VN().UnmountClosed;return zN=t,t.Collapse=e,t.UnmountClosed=t,zN}();function UN({loading:e,data:t,meta:n}){const r=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_selling_price??0}}),o=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_selling_price??0},...r||[]],a=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_profit??0}}),i=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_profit??0},...a||[]],[s,l]=D.useState({type:o?.[0].type,value:o?.[0].value}),[u,c]=D.useState({type:i?.[0].type,value:i?.[0].value});M.useEffect(()=>{l({type:o?.[0].type,value:o?.[0].value}),c({type:i?.[0].type,value:i?.[0].value})},[e]);const d=[{label:"Total No. of Unique Item",count:Intl.NumberFormat().format(n?.total??0),desc:`With ${t?.unit_count??0} unit(s)`,icon:m.jsx("div",{className:"shrink-0 rounded-lg \n \n bg-[#EFF5FF] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:bv.cube})},{label:"Total Cost Price",count:Sv(t?.result_array?.Retail?.total_cost??0),desc:"Takes into Account FIFO & LIFO ",icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#F9DFDD] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(bv.price_tag,{fill:"#ED7400"})})},{label:"Total Selling Price",count:Sv(s.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",s.type," price"," ",m.jsxs(rf,{children:[m.jsx(of,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:bv.arrow})]})}),m.jsx(af,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:o.map((e,t)=>m.jsx(sf,{className:ma("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===s.type?"bg-primary_light text-primary":null),onClick:()=>l(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#D8CDF4] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(bv.price_tag,{fill:"#9747FF"})})},{label:"Profit to be made",count:Sv(u.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",u.type," price"," ",m.jsxs(rf,{children:[m.jsx(of,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:bv.arrow})]})}),m.jsx(af,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:i.map((e,t)=>m.jsx(sf,{className:ma("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===u.type?"bg-primary_light text-primary":null),onClick:()=>c(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#C6E3D2] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:M.cloneElement(bv.price_tag,{fill:"#378C5A"})})}],[f,p]=D.useState(!1);return m.jsxs(bC,{className:"bg-[#F6F8FA] p-2.5 flex flex-col",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsx("h1",{className:"capitalize text-dark font-semibold text-lg",children:"Items overview"}),m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-white",onClick:()=>p(!f),children:[f?"Close":"Open"," ",m.jsx("span",{className:"rotate-90",children:bv.arrow})]})]}),m.jsx(BN.Collapse,{isOpened:f,children:m.jsx("div",{className:"flex flex-wrap gap-2.5 mt-3",children:d.map((t,n)=>m.jsxs("div",{className:ma("border rounded-xl border-[#E4E7EC] p-4 flex flex-col relative bg-right-bottom bg-no-repeat flex-auto",0===n?"bg-[#E4EEFA] bg-[url('/assets/images/ecstacy1.svg')]":1===n?"bg-[#FAEAE9] bg-[url('/assets/images/ecstacy2.svg')]":2===n?"bg-[#EEE9FA] bg-[url('/assets/images/ecstacy3.svg')]":3===n?"bg-[#EBF5EF] bg-[url('/assets/images/ecstacy4.svg')]":null),children:[m.jsxs("div",{className:"flex justify-between gap-1",children:[m.jsx("h1",{className:"text-dark text-sm font-medium",children:t.label}),m.jsx("div",{className:"shrink-0",children:t.icon})]}),m.jsxs("div",{className:"flex flex-col gap-1",children:[e?m.jsx(Ca,{className:"w-28 h-6 rounded"}):m.jsx("h1",{className:ma("text-dark font-bold text-[29px] truncate",n===d.length-1&&u.value<0?"text-danger":null),title:t.count,children:t.count}),m.jsx("div",{className:"text-gray-700 text-sm font-medium ",children:t.desc})]})]},n))})})]})}function WN({placeholder:e,className:t,inputClass:n,...r}){return m.jsxs("div",{className:ma("h-12 border border-gray-300 rounded-md w-[320px] flex",t),children:[m.jsx("span",{className:"bg-gray-200 w-[38px] flex items-center justify-center shrink-0 rounded-l-md ",children:bv.magnifier}),m.jsx("input",{type:"search",placeholder:e,className:"w-full px-3 text-dark text-sm font-medium bg-transparent outline-none rounded-r-md",...r})]})}function qN(e,t){return e===t}function YN(e,t,n){var r=qN,o=D.useRef(e),a=D.useState({})[1],i=function(e,t,n,r){var o=this,a=D.useRef(null),i=D.useRef(0),s=D.useRef(0),l=D.useRef(null),u=D.useRef([]),c=D.useRef(),d=D.useRef(),f=D.useRef(e),p=D.useRef(!0),h=D.useRef(),m=D.useRef();f.current=e;var g="undefined"!=typeof window,y=!t&&0!==t&&g;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,w=!!n.flushOnExit&&b,x="maxWait"in n,C="debounceOnServer"in n&&!!n.debounceOnServer,S=x?Math.max(+n.maxWait||0,t):null,k=D.useMemo(function(){var e=function(e){var t=u.current,n=c.current;return u.current=c.current=null,i.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){y&&cancelAnimationFrame(l.current),l.current=y?requestAnimationFrame(e):setTimeout(e,t)},k=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||x&&e-i.current>=S},_=function(t){return l.current=null,b&&u.current?e(t):(u.current=c.current=null,d.current)},E=function e(){var r=Date.now();if(v&&s.current===i.current&&j(),k(r))return _(r);if(p.current){var o=t-(r-a.current),l=x?Math.min(o,S-(r-i.current)):o;n(e,l)}},j=function(){r&&r({})},N=function(){if(g||C){var r,s=Date.now(),f=k(s);if(u.current=[].slice.call(arguments),c.current=o,a.current=s,w&&!h.current&&(h.current=function(){var e;"hidden"===(null==(e=global.document)?void 0:e.visibilityState)&&m.current.flush()},null==(r=global.document)||null==r.addEventListener||r.addEventListener("visibilitychange",h.current)),f){if(!l.current&&p.current)return i.current=a.current,n(E,t),v?e(a.current):d.current;if(x)return n(E,t),e(a.current)}return l.current||n(E,t),d.current}};return N.cancel=function(){var e=l.current;e&&(y?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,u.current=a.current=c.current=l.current=null,e&&r&&r({})},N.isPending=function(){return!!l.current},N.flush=function(){return l.current?_(Date.now()):d.current},N},[v,x,t,S,b,w,y,g,C,r]);return m.current=k,D.useEffect(function(){return p.current=!0,function(){var e;w&&m.current.flush(),h.current&&(null==(e=global.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",h.current),h.current=null),p.current=!1}},[w]),k}(D.useCallback(function(e){o.current=e,a({})},[a]),t,n,a),s=D.useRef(e);return r(s.current,e)||(i(e),s.current=e),[o.current,i]}function GN({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x}){const[C,S]=D.useState(!1),[k,_]=D.useState(0),E=D.useRef(null);D.useEffect(()=>{const e=()=>{E.current&&_(E?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[E]);const j=e=>{const t=o?.includes(e)?o?.filter(t=>t!==e):[...o||[],e];a&&a(t)};D.useEffect(()=>{y&&j(y)},[y]);const[N,O]=D.useState(null),R=e=>{O(t=>t===e?null:e)},P=e=>{for(let t of n){if(t.value===e)return t.label;if(t.subOptions){const n=t.subOptions.find(t=>t.value===e);if(n)return n.label}}return null};return m.jsx("div",{ref:E,children:b?m.jsx(Ca,{className:"w-full h-[48px]"}):m.jsxs("div",{className:ma("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(Uv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(Uv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:g})})]})]}),m.jsxs(ik,{modal:!0,open:C,onOpenChange:S,children:[m.jsx(sk,{asChild:!0,children:m.jsxs(ck,{variant:"outline",role:"combobox","aria-expanded":C,className:ma(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${x&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:o?.length&&r?o.map((e,t)=>m.jsxs("div",{onClick:()=>{v||j(e),R(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[m.jsx("span",{className:"flex justify-start text-start flex-wrap gap-2 whitespace-normal",children:P(e)}),m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${o.length} ${l} selected`:e??"Select..."}),m.jsx(Jd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(lk,{align:"start",style:{width:k},className:"w-[480px] p-0 bg-white rounded-xl border-gray-200",children:m.jsxs(RS,{children:[m.jsx(PS,{className:"placeholder:text-xs",placeholder:t??"Search..."}),m.jsx(DS,{children:"No result found."}),m.jsx(MS,{children:m.jsx(TS,{className:"",children:n?.map((e,t)=>m.jsxs("div",{children:[m.jsxs(IS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{j(e.value),e?.subOptions&&e?.subOptions?.length>0&&R(e.value)},children:[s&&m.jsx(Kd,{className:ma("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),m.jsxs("p",{className:"flex justify-between w-full",children:[e.label,e?.subOptions&&e?.subOptions?.length>0&&m.jsx(Qd,{className:"ml-2 h-5 w-5 font-bold shrink-0 opacity-50"})]})]}),N===e.value&&e?.subOptions&&e?.subOptions?.map((e,t)=>m.jsxs(IS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer pl-6 ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{j(e.value)},children:[s&&m.jsx(Kd,{className:ma("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},t))]},t))})})]})})]}),x&&m.jsx("p",{className:"text-danger text-xs font-normal",children:x})]})})}var KN="ScrollArea",[QN]=ja(KN),[XN,ZN]=QN(KN),JN=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=D.useState(null),[u,c]=D.useState(null),[d,f]=D.useState(null),[p,h]=D.useState(null),[g,y]=D.useState(null),[v,b]=D.useState(0),[w,x]=D.useState(0),[C,S]=D.useState(!1),[k,_]=D.useState(!1),E=Ea(t,e=>l(e)),j=Va(o);return m.jsx(XN,{scope:n,type:r,dir:j,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:k,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:x,children:m.jsx(La.div,{dir:j,...i,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});JN.displayName=KN;var eO="ScrollAreaViewport",tO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=ZN(eO,n),s=Ea(t,D.useRef(null),i.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),m.jsx(La.div,{"data-radix-scroll-area-viewport":"",...a,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});tO.displayName=eO;var nO="ScrollAreaScrollbar",rO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ZN(nO,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s="horizontal"===e.orientation;return D.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),"hover"===o.type?m.jsx(oO,{...r,ref:t,forceMount:n}):"scroll"===o.type?m.jsx(aO,{...r,ref:t,forceMount:n}):"auto"===o.type?m.jsx(iO,{...r,ref:t,forceMount:n}):"always"===o.type?m.jsx(sO,{...r,ref:t}):null});rO.displayName=nO;var oO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ZN(nO,e.__scopeScrollArea),[a,i]=D.useState(!1);return D.useEffect(()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),m.jsx(Rl,{present:n||a,children:m.jsx(iO,{"data-state":a?"visible":"hidden",...r,ref:t})})}),aO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ZN(nO,e.__scopeScrollArea),a="horizontal"===e.orientation,i=EO(()=>l("SCROLL_END"),100),[s,l]=function(e,t){return D.useReducer((e,n)=>t[e][n]??e,e)}("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return D.useEffect(()=>{if("idle"===s){const e=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,o.scrollHideDelay,l]),D.useEffect(()=>{const e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,l,i]),m.jsx(Rl,{present:n||"hidden"!==s,children:m.jsx(sO,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:Sa(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Sa(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),iO=D.forwardRef((e,t)=>{const n=ZN(nO,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=D.useState(!1),s="horizontal"===e.orientation,l=EO(()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}},10);return jO(n.viewport,l),jO(n.content,l),m.jsx(Rl,{present:r||a,children:m.jsx(sO,{"data-state":a?"visible":"hidden",...o,ref:t})})}),sO=D.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=ZN(nO,e.__scopeScrollArea),a=D.useRef(null),i=D.useRef(0),[s,l]=D.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=wO(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=xO(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d="ltr"===r?[0,c]:[-1*c,0];return SO([l,u],d)(e)}(e,i.current,s,t)}return"horizontal"===n?m.jsx(lO,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=CO(o.viewport.scrollLeft,s,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}}):"vertical"===n?m.jsx(uO,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=CO(o.viewport.scrollTop,s);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}}):null}),lO=D.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=ZN(nO,e.__scopeScrollArea),[i,s]=D.useState(),l=D.useRef(null),u=Ea(t,l,a.onScrollbarXChange);return D.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(fO,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":xO(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),kO(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:bO(i.paddingLeft),paddingEnd:bO(i.paddingRight)}})}})}),uO=D.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=ZN(nO,e.__scopeScrollArea),[i,s]=D.useState(),l=D.useRef(null),u=Ea(t,l,a.onScrollbarYChange);return D.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(fO,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":xO(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),kO(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:bO(i.paddingTop),paddingEnd:bO(i.paddingBottom)}})}})}),[cO,dO]=QN(nO),fO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=ZN(nO,n),[h,g]=D.useState(null),y=Ea(t,e=>g(e)),v=D.useRef(null),b=D.useRef(""),w=p.viewport,x=r.content-r.viewport,C=Ba(c),S=Ba(l),k=EO(d,10);function _(e){if(v.current){const t=e.clientX-v.current.left,n=e.clientY-v.current.top;u({x:t,y:n})}}return D.useEffect(()=>{const e=e=>{const t=e.target,n=h?.contains(t);n&&C(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[w,h,x,C]),D.useEffect(S,[r,S]),jO(h,k),jO(p.content,k),m.jsx(cO,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:Ba(a),onThumbPointerUp:Ba(i),onThumbPositionChange:S,onThumbPointerDown:Ba(s),children:m.jsx(La.div,{...f,ref:y,style:{position:"absolute",...f.style},onPointerDown:Sa(e.onPointerDown,e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),_(e)}}),onPointerMove:Sa(e.onPointerMove,_),onPointerUp:Sa(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,p.viewport&&(p.viewport.style.scrollBehavior=""),v.current=null})})})}),pO="ScrollAreaThumb",hO=D.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=dO(pO,e.__scopeScrollArea);return m.jsx(Rl,{present:n||o.hasThumb,children:m.jsx(mO,{ref:t,...r})})}),mO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=ZN(pO,n),i=dO(pO,n),{onThumbPositionChange:s}=i,l=Ea(t,e=>i.onThumbChange(e)),u=D.useRef(void 0),c=EO(()=>{u.current&&(u.current(),u.current=void 0)},100);return D.useEffect(()=>{const e=a.viewport;if(e){const t=()=>{if(c(),!u.current){const t=_O(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),m.jsx(La.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Sa(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})}),onPointerUp:Sa(e.onPointerUp,i.onThumbPointerUp)})});hO.displayName=pO;var gO="ScrollAreaCorner",yO=D.forwardRef((e,t)=>{const n=ZN(gO,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?m.jsx(vO,{...e,ref:t}):null});yO.displayName=gO;var vO=D.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=ZN(gO,n),[a,i]=D.useState(0),[s,l]=D.useState(0),u=Boolean(a&&s);return jO(o.scrollbarX,()=>{const e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),l(e)}),jO(o.scrollbarY,()=>{const e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),i(e)}),u?m.jsx(La.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function bO(e){return e?parseInt(e,10):0}function wO(e,t){const n=e/t;return isNaN(n)?0:n}function xO(e){const t=wO(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function CO(e,t,n="ltr"){const r=xO(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=ij(e,"ltr"===n?[0,i]:[-1*i,0]);return SO([0,i],[0,s])(l)}function SO(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function kO(e,t){return e>0&&e<t}var _O=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function EO(e,t){const n=Ba(e),r=D.useRef(0);return D.useEffect(()=>()=>window.clearTimeout(r.current),[]),D.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function jO(e,t){const n=Ba(t);Oa(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var NO=JN,OO=tO,RO=yO;const PO=D.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(NO,{ref:r,className:ma("relative overflow-hidden",e),...n,children:[m.jsx(OO,{className:"h-full w-full rounded-[inherit]",children:t}),m.jsx(TO,{}),m.jsx(RO,{})]}));PO.displayName=NO.displayName;const TO=D.forwardRef(({className:e,orientation:t="vertical",...n},r)=>m.jsx(rO,{ref:r,orientation:t,className:ma("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:m.jsx(hO,{className:"relative flex-1 rounded-full bg-neutral-200 dark:bg-neutral-800"})}));function DO({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x,showError:C,onChangeSearch:S,searching:k,contentStyle:_,disabled:E,searchValue:j}){const[N,O]=D.useState(!1),[R,P]=D.useState(0),T=D.useRef(null);D.useEffect(()=>{const e=()=>{T.current&&P(T?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const M=o?.filter(e=>""!==e),I=e=>{const t=M?.includes(e)?M?.filter(t=>t!==e):[...M||[],e];a&&a(t)};return D.useEffect(()=>{y&&I(y)},[y]),m.jsx(m.Fragment,{children:b?m.jsx(Ca,{className:"w-full h-[48px]"}):m.jsxs("div",{className:ma("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:ma("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(Uv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(Uv,{fieldName:p,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:g})})]})]}),m.jsxs(ik,{modal:!0,open:N,onOpenChange:O,children:[m.jsx(sk,{disabled:E,asChild:!0,children:m.jsxs(ck,{ref:T,variant:"outline",role:"combobox","aria-expanded":N,className:ma(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(x||C)&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:M?.length>0&&r?M?.map((e,t)=>m.jsxs("div",{onClick:()=>{!v&&I(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[n?.[0].searchId?n?.find(t=>t.value===e)?.searchId:n?.find(t=>t.value===e)?.label,m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${M.length} ${l} selected`:e??"Select..."}),m.jsx(Jd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(lk,{align:"start",style:{width:R},className:ma("w-[480px] p-0 bg-white rounded-xl border-gray-200",_),children:m.jsx(PO,{children:m.jsxs(RS,{children:[m.jsx(PS,{onChangeCapture:S,className:"placeholder:text-xs",placeholder:t??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(Ca,{className:"h-9 rounded-md"},t))}):m.jsx(DS,{children:j?"No result found.":e}),m.jsx(MS,{children:m.jsx(TS,{className:"",children:n?.map(e=>m.jsxs(IS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{I(e.value)},children:[s&&m.jsx(Kd,{className:ma("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},e.value))})})]})})})]})]})})}TO.displayName=rO.displayName;const MO=D.createContext({dragDropManager:void 0});function IO(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var AO="function"==typeof Symbol&&Symbol.observable||"@@observable",FO=function(){return Math.random().toString(36).substring(7).split("").join(".")},LO={INIT:"@@redux/INIT"+FO(),REPLACE:"@@redux/REPLACE"+FO()};function zO(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(IO(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(IO(1));return n(zO)(e,t)}if("function"!=typeof e)throw new Error(IO(2));var o=e,a=t,i=[],s=i,l=!1;function u(){s===i&&(s=i.slice())}function c(){if(l)throw new Error(IO(3));return a}function d(e){if("function"!=typeof e)throw new Error(IO(4));if(l)throw new Error(IO(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(IO(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),i=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(IO(7));if(void 0===e.type)throw new Error(IO(8));if(l)throw new Error(IO(9));try{l=!0,a=o(a,e)}finally{l=!1}for(var t=i=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:LO.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(IO(10));o=e,f({type:LO.REPLACE})}})[AO]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(IO(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[AO]=function(){return this},e},r}function $O(e,t,...n){if("undefined"!=typeof process&&"production"===process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function HO(e){return"object"==typeof e}const VO="dnd-core/INIT_COORDS",BO="dnd-core/BEGIN_DRAG",UO="dnd-core/PUBLISH_DRAG_SOURCE",WO="dnd-core/HOVER",qO="dnd-core/DROP",YO="dnd-core/END_DRAG";function GO(e,t){return{type:VO,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const KO={type:VO,payload:{clientOffset:null,sourceClientOffset:null}};function QO(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:a}=n,i=e.getMonitor(),s=e.getRegistry();e.dispatch(GO(o)),function(e,t,n){$O(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){$O(n.getSource(e),"Expected sourceIds to be registered.")})}(t,i,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,i);if(null==l)return void e.dispatch(KO);let u=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){$O("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),u=a(l)}e.dispatch(GO(o,u));const c=s.getSource(l).beginDrag(i,l);if(null==c)return;!function(e){$O(HO(e),"Item must be an object.")}(c),s.pinSource(l);const d=s.getSourceType(l);return{type:BO,payload:{itemType:d,item:c,sourceId:l,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function XO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){XO(e,t,n[t])})}return e}function JO(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){$O(e.isDragging(),"Cannot call drop while not dragging."),$O(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach((o,a)=>{const i=function(e,t,n,r){const o=n.getTarget(e);let a=o?o.drop(r,e):void 0;(function(e){$O(void 0===e||HO(e),"Drop result must either be an object or undefined.")})(a),void 0===a&&(a=0===t?{}:r.getDropResult());return a}(o,a,r,n),s={type:qO,payload:{dropResult:ZO({},t,i)}};e.dispatch(s)})}}function eR(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){$O(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:YO}}}function tR(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function nR(e){return function(t,{clientOffset:n}={}){!function(e){$O(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),a=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];tR(t.getTargetType(o),n)||e.splice(r,1)}}(r,a,o.getItemType()),function(e,t,n){$O(t.isDragging(),"Cannot call hover while not dragging."),$O(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];$O(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");$O(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,a),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,a),{type:WO,payload:{targetIds:r,clientOffset:n||null}}}}function rR(e){return function(){if(e.getMonitor().isDragging())return{type:UO}}}class oR{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:QO(e),publishDragSource:rR(e),hover:nR(e),drop:JO(e),endDrag:eR(e)}}(this);return Object.keys(n).reduce((r,o)=>{const a=n[o];var i;return r[o]=(i=a,(...n)=>{const r=i.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function aR(e,t){return{x:e.x-t.x,y:e.y-t.y}}const iR=[],sR=[];iR.__IS_NONE__=!0,sR.__IS_ALL__=!0;class lR{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;$O("function"==typeof e,"listener must be a function."),$O(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{const a=o===r||o===r+1&&!function(e,t){return e!==iR&&(e===sR||void 0===t||(n=e,t.filter(e=>n.indexOf(e)>-1)).length>0);var n}(t.dirtyHandlerIds,n);a||e()}finally{r=o}})}subscribeToOffsetChange(e){$O("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return $O(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if($O(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return tR(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if($O(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!tR(r,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const i=a.indexOf(e);return n?i===a.length-1:i>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?aR(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?aR(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const uR="undefined"!=typeof global?global:self,cR=uR.MutationObserver||uR.WebKitMutationObserver;function dR(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const fR="function"==typeof cR?function(e){let t=1;const n=new cR(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:dR;class pR{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const hR=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=fR(this.flush),this.requestErrorThrow=dR(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},mR=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new pR(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(hR.registerPendingError);const gR="dnd-core/ADD_SOURCE",yR="dnd-core/ADD_TARGET",vR="dnd-core/REMOVE_SOURCE",bR="dnd-core/REMOVE_TARGET";function wR(e,t){t&&Array.isArray(e)?e.forEach(e=>wR(e,!1)):$O("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var xR;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(xR||(xR={}));let CR=0;function SR(e){const t=(CR++).toString();switch(e){case xR.SOURCE:return`S${t}`;case xR.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function kR(e){switch(e[0]){case"S":return xR.SOURCE;case"T":return xR.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function _R(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class ER{addSource(e,t){wR(e),function(e){$O("function"==typeof e.canDrag,"Expected canDrag to be a function."),$O("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),$O("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(xR.SOURCE,e,t);return this.store.dispatch(function(e){return{type:gR,payload:{sourceId:e}}}(n)),n}addTarget(e,t){wR(e,!0),function(e){$O("function"==typeof e.canDrop,"Expected canDrop to be a function."),$O("function"==typeof e.hover,"Expected hover to be a function."),$O("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(xR.TARGET,e,t);return this.store.dispatch(function(e){return{type:yR,payload:{targetId:e}}}(n)),n}containsHandler(e){return _R(this.dragSources,e)||_R(this.dropTargets,e)}getSource(e,t=!1){$O(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return $O(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return $O(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return $O(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return kR(e)===xR.SOURCE}isTargetId(e){return kR(e)===xR.TARGET}removeSource(e){var t;$O(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:vR,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},hR.enqueueTask(mR.create(t))}removeTarget(e){$O(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:bR,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);$O(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){$O(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=SR(e);return this.types.set(r,t),e===xR.SOURCE?this.dragSources.set(r,n):e===xR.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const jR=(e,t)=>e===t;function NR(e=iR,t){switch(t.type){case WO:break;case gR:case yR:case bR:case vR:return iR;default:return sR}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((e,t)=>{1===e&&o.push(t)}),o}(n,r),a=o.length>0||!function(e,t,n=jR){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!a)return iR;const i=r[r.length-1],s=n[n.length-1];return i!==s&&(i&&o.push(i),s&&o.push(s)),o}function OR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RR={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function PR(e=RR,t){const{payload:n}=t;switch(t.type){case VO:case BO:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case WO:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){OR(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case YO:case qO:return RR;default:return e}var r,o}function TR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){TR(e,t,n[t])})}return e}const MR={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function IR(e=MR,t){const{payload:n}=t;switch(t.type){case BO:return DR({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case UO:return DR({},e,{isSourcePublic:!0});case WO:return DR({},e,{targetIds:n.targetIds});case bR:return-1===e.targetIds.indexOf(n.targetId)?e:DR({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case qO:return DR({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case YO:return DR({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function AR(e=0,t){switch(t.type){case gR:case yR:return e+1;case vR:case bR:return e-1;default:return e}}function FR(e=0){return e+1}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){LR(e,t,n[t])})}return e}function $R(e={},t){return{dirtyHandlerIds:NR(e.dirtyHandlerIds,{type:t.type,payload:zR({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce((e,t)=>e&&e[t]?e[t]:o||null,n))})}),dragOffset:PR(e.dragOffset,t),refCount:AR(e.refCount,t),dragOperation:IR(e.dragOperation,t),stateId:FR(e.stateId)};var n,r,o}function HR(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return zO($R,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),a=new lR(o,new ER(o)),i=new oR(o,a),s=e(i,t,n);return i.receiveBackend(s),i}function VR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let BR=0;const UR=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var WR,qR,YR=D.memo(function(e){var{children:t}=e,n=VR(e,["children"]);const[r,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=GR(),n,r){const o=t;o[UR]||(o[UR]={dragDropManager:HR(e,t,n,r)});return o[UR]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return D.useEffect(()=>{if(o){const e=GR();return++BR,()=>{0===--BR&&(e[UR]=null)}}},[]),m.jsx(MO.Provider,{value:r,children:t})});function GR(){return"undefined"!=typeof global?global:window}var KR=(qR||(qR=1,WR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!==o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}),WR),QR=n(KR);const XR="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function ZR(e,t,n){const[r,o]=function(e,t,n){const[r,o]=D.useState(()=>t(e)),a=D.useCallback(()=>{const a=t(e);QR(r,a)||(o(a),n&&n())},[r,e,n]);return XR(a),[r,a]}(e,t,n);return XR(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}function JR(e,t,n){return ZR(t,e||(()=>({})),()=>n.reconnect())}function eP(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),D.useMemo(()=>"function"==typeof e?e():e,n)}function tP(e){return D.useMemo(()=>e.hooks.dragSource(),[e])}function nP(e){return D.useMemo(()=>e.hooks.dragPreview(),[e])}let rP=!1,oP=!1;class aP{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){$O(!rP,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return rP=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rP=!1}}isDragging(){if(!this.sourceId)return!1;$O(!oP,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return oP=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{oP=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let iP=!1;class sP{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;$O(!iP,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return iP=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{iP=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function lP(e,t,n,r){let o;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let n=0;n<a.length;n++){const r=a[n];if(!s(r))return!1;const i=e[r],l=t[r];if(o=void 0,!1===o||void 0===o&&i!==l)return!1}return!0}function uP(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function cP(e){return(t=null,n=null)=>{if(!D.isValidElement(t)){const r=t;return e(r,n),r}const r=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(r);const o=n?t=>e(t,n):e;return function(e,t){const n=e.ref;return $O("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?D.cloneElement(e,{ref:e=>{fP(n,e),fP(t,e)}}):D.cloneElement(e,{ref:t})}(r,o)}}function dP(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=cP(r);t[n]=()=>e}}),t}function fP(e,t){"function"==typeof e?e(t):e.current=t}class pP{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!lP(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!lP(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=dP({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,uP(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,uP(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class hP{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!lP(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=dP({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,uP(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function mP(){const{dragDropManager:e}=D.useContext(MO);return $O(null!=e,"Expected drag drop context"),e}class gP{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function yP(e,t,n){const r=mP(),o=function(e,t,n){const r=D.useMemo(()=>new gP(e,t,n),[t,n]);return D.useEffect(()=>{r.spec=e},[e]),r}(e,t,n),a=function(e){return D.useMemo(()=>{const t=e.type;return $O(null!=t,"spec.type must be defined"),t},[e])}(e);XR(function(){if(null!=a){const[e,i]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i}},[r,t,n,o,a])}function vP(e,t){const n=eP(e,t);$O(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=mP();return D.useMemo(()=>new aP(e),[e])}(),o=function(e,t){const n=mP(),r=D.useMemo(()=>new pP(n.getBackend()),[n]);return XR(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),XR(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}(n.options,n.previewOptions);return yP(n,r,o),[JR(n.collect,r,o),tP(o),nP(o)]}function bP(e){return D.useMemo(()=>e.hooks.dropTarget(),[e])}class wP{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function xP(e,t,n){const r=mP(),o=function(e,t){const n=D.useMemo(()=>new wP(e,t),[t]);return D.useEffect(()=>{n.spec=e},[e]),n}(e,t),a=function(e){const{accept:t}=e;return D.useMemo(()=>($O(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);XR(function(){const[e,i]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i},[r,t,o,n,a.map(e=>e.toString()).join("|")])}function CP(e,t){const n=eP(e,t),r=function(){const e=mP();return D.useMemo(()=>new sP(e),[e])}(),o=function(e){const t=mP(),n=D.useMemo(()=>new hP(t.getBackend()),[t]);return XR(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}(n.options);return xP(n,r,o),[JR(n.collect,r,o),bP(o)]}function SP(e){let t=null;return()=>(null==t&&(t=e()),t)}class kP{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class _P{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const EP="__NATIVE_FILE__",jP="__NATIVE_URL__",NP="__NATIVE_TEXT__",OP="__NATIVE_HTML__";var RP=Object.freeze({__proto__:null,FILE:EP,HTML:OP,TEXT:NP,URL:jP});function PP(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}const TP={[EP]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[OP]:{exposeProperties:{html:(e,t)=>PP(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[jP]:{exposeProperties:{urls:(e,t)=>PP(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[NP]:{exposeProperties:{text:(e,t)=>PP(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function DP(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(TP).filter(e=>{const n=TP[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const MP=SP(()=>/firefox/i.test(navigator.userAgent)),IP=SP(()=>Boolean(window.safari));class AP{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:a}=this;let i=t.length-1;if(e===t[i])return n[i];let s,l=0,u=a.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];u=s-1}}i=Math.max(0,u);const c=e-t[i],d=c*c;return n[i]+r[i]*c+o[i]*d+a[i]*c*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[],a=[];let i,s;for(let r=0;r<n-1;r++)i=e[r+1]-e[r],s=t[r+1]-t[r],o.push(i),a.push(s/i);const l=[a[0]];for(let e=0;e<o.length-1;e++){const t=a[e],n=a[e+1];if(t*n<=0)l.push(0);else{i=o[e];const r=o[e+1],a=i+r;l.push(3*a/((a+r)/t+(a+i)/n))}}l.push(a[a.length-1]);const u=[],c=[];let d;for(let e=0;e<l.length-1;e++){d=a[e];const t=l[e],n=1/o[e],r=t+l[e+1]-d-d;u.push((d-t-r)*n),c.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=c}}function FP(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function LP(e){return{x:e.clientX,y:e.clientY}}function zP(e,t,n,r,o){const a=function(e){var t;return"IMG"===e.nodeName&&(MP()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),i=FP(a?e:t),s={x:n.x-i.x,y:n.y-i.y},{offsetWidth:l,offsetHeight:u}=e,{anchorX:c,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=function(e,t,n,r){let o=e?t.width:n,a=e?t.height:r;return IP()&&e&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}}(a,t,l,u),{offsetX:h,offsetY:m}=o,g=0===m||m;return{x:0===h||h?h:new AP([0,.5,1],[s.x,s.x/l*f,s.x+f-l]).interpolate(c),y:g?m:(()=>{let e=new AP([0,.5,1],[s.y,s.y/u*p,s.y+p-u]).interpolate(d);return IP()&&a&&(e+=(window.devicePixelRatio-1)*p),e})()}}class $P{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function HP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){HP(e,t,n[t])})}return e}class BP{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return VP({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return VP({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(RP).some(t=>RP[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=TP[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new _P(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&FP(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=LP(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=DP(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:a,offsetX:i,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=zP(t,o,n,{anchorX:e,anchorY:a},{offsetX:i,offsetY:s});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=DP(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:LP(e)});t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=LP(e),this.scheduleHover(t);(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):DP(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:LP(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new $P(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new kP(this.isNodeInDocument)}}const UP=function(e,t,n){return new BP(e,t,n)};var WP,qP,YP=Object.create,GP=Object.defineProperty,KP=Object.getOwnPropertyDescriptor,QP=Object.getOwnPropertyNames,XP=Object.getPrototypeOf,ZP=Object.prototype.hasOwnProperty,JP=(e,t,n)=>(n=null!=e?YP(XP(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of QP(t))ZP.call(e,o)||o===n||GP(e,o,{get:()=>t[o],enumerable:!(r=KP(t,o))||r.enumerable});return e})(GP(n,"default",{value:e,enumerable:!0}),e)),eT=(WP={"node_modules/classnames/index.js"(e,t){!function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var a=typeof o;if("string"===a||"number"===a)t.push(o);else if(Array.isArray(o)){if(o.length){var i=n.apply(null,o);i&&t.push(i)}}else if("object"===a){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){t.push(o.toString());continue}for(var s in o)e.call(o,s)&&o[s]&&t.push(s)}}}return t.join(" ")}void 0!==t&&t.exports?(n.default=n,t.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}},function(){return qP||(0,WP[QP(WP)[0]])((qP={exports:{}}).exports,qP),qP.exports}),tT=JP(eT()),nT="object"==typeof global&&global&&global.Object===Object&&global,rT="object"==typeof self&&self&&self.Object===Object&&self,oT=nT||rT||Function("return this")(),aT=oT.Symbol,iT=Object.prototype,sT=iT.hasOwnProperty,lT=iT.toString,uT=aT?aT.toStringTag:void 0;var cT=function(e){var t=sT.call(e,uT),n=e[uT];try{e[uT]=void 0;var r=!0}catch(e){}var o=lT.call(e);return r&&(t?e[uT]=n:delete e[uT]),o},dT=Object.prototype.toString;var fT=function(e){return dT.call(e)},pT=aT?aT.toStringTag:void 0;var hT=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":pT&&pT in Object(e)?cT(e):fT(e)};var mT=function(e){return null!=e&&"object"==typeof e};var gT=function(e){return"symbol"==typeof e||mT(e)&&"[object Symbol]"==hT(e)};var yT=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},vT=Array.isArray,bT=aT?aT.prototype:void 0,wT=bT?bT.toString:void 0;var xT=function e(t){if("string"==typeof t)return t;if(vT(t))return yT(t,e)+"";if(gT(t))return wT?wT.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var CT=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ST,kT=function(e){if(!CT(e))return!1;var t=hT(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},_T=oT["__core-js_shared__"],ET=(ST=/[^.]+$/.exec(_T&&_T.keys&&_T.keys.IE_PROTO||""))?"Symbol(src)_1."+ST:"";var jT=function(e){return!!ET&&ET in e},NT=Function.prototype.toString;var OT=function(e){if(null!=e){try{return NT.call(e)}catch(e){}try{return e+""}catch(e){}}return""},RT=/^\[object .+?Constructor\]$/,PT=Function.prototype,TT=Object.prototype,DT=PT.toString,MT=TT.hasOwnProperty,IT=RegExp("^"+DT.call(MT).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var AT=function(e){return!(!CT(e)||jT(e))&&(kT(e)?IT:RT).test(OT(e))};var FT=function(e,t){return null==e?void 0:e[t]};var LT=function(e,t){var n=FT(e,t);return AT(n)?n:void 0},zT=LT(oT,"WeakMap");var $T=function(){};var HT=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var VT=function(e){return e!=e};var BT=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var UT=function(e,t,n){return t==t?BT(e,t,n):HT(e,VT,n)};var WT=function(e,t){return!!(null==e?0:e.length)&&UT(e,t,0)>-1},qT=/^(?:0|[1-9]\d*)$/;var YT=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&qT.test(e))&&e>-1&&e%1==0&&e<t};var GT=function(e,t){return e===t||e!=e&&t!=t};var KT=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var QT=function(e){return null!=e&&KT(e.length)&&!kT(e)},XT=Object.prototype;var ZT=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||XT)};var JT=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var eD=function(e){return mT(e)&&"[object Arguments]"==hT(e)},tD=Object.prototype,nD=tD.hasOwnProperty,rD=tD.propertyIsEnumerable,oD=eD(function(){return arguments}())?eD:function(e){return mT(e)&&nD.call(e,"callee")&&!rD.call(e,"callee")},aD=oD;var iD=function(){return!1},sD="object"==typeof e&&e&&!e.nodeType&&e,lD=sD&&"object"==typeof module&&module&&!module.nodeType&&module,uD=lD&&lD.exports===sD?oT.Buffer:void 0,cD=(uD?uD.isBuffer:void 0)||iD,dD={};dD["[object Float32Array]"]=dD["[object Float64Array]"]=dD["[object Int8Array]"]=dD["[object Int16Array]"]=dD["[object Int32Array]"]=dD["[object Uint8Array]"]=dD["[object Uint8ClampedArray]"]=dD["[object Uint16Array]"]=dD["[object Uint32Array]"]=!0,dD["[object Arguments]"]=dD["[object Array]"]=dD["[object ArrayBuffer]"]=dD["[object Boolean]"]=dD["[object DataView]"]=dD["[object Date]"]=dD["[object Error]"]=dD["[object Function]"]=dD["[object Map]"]=dD["[object Number]"]=dD["[object Object]"]=dD["[object RegExp]"]=dD["[object Set]"]=dD["[object String]"]=dD["[object WeakMap]"]=!1;var fD=function(e){return mT(e)&&KT(e.length)&&!!dD[hT(e)]};var pD=function(e){return function(t){return e(t)}},hD="object"==typeof e&&e&&!e.nodeType&&e,mD=hD&&"object"==typeof module&&module&&!module.nodeType&&module,gD=mD&&mD.exports===hD&&nT.process,yD=function(){try{var e=mD&&mD.require&&mD.require("util").types;return e||gD&&gD.binding&&gD.binding("util")}catch(e){}}(),vD=yD&&yD.isTypedArray,bD=vD?pD(vD):fD,wD=Object.prototype.hasOwnProperty;var xD=function(e,t){var n=vT(e),r=!n&&aD(e),o=!n&&!r&&cD(e),a=!n&&!r&&!o&&bD(e),i=n||r||o||a,s=i?JT(e.length,String):[],l=s.length;for(var u in e)!t&&!wD.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||YT(u,l))||s.push(u);return s};var CD=function(e,t){return function(n){return e(t(n))}},SD=CD(Object.keys,Object),kD=Object.prototype.hasOwnProperty;var _D=function(e){if(!ZT(e))return SD(e);var t=[];for(var n in Object(e))kD.call(e,n)&&"constructor"!=n&&t.push(n);return t};var ED=function(e){return QT(e)?xD(e):_D(e)},jD=LT(Object,"create");var ND=function(){this.__data__=jD?jD(null):{},this.size=0};var OD=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},RD=Object.prototype.hasOwnProperty;var PD=function(e){var t=this.__data__;if(jD){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return RD.call(t,e)?t[e]:void 0},TD=Object.prototype.hasOwnProperty;var DD=function(e){var t=this.__data__;return jD?void 0!==t[e]:TD.call(t,e)};var MD=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jD&&void 0===t?"__lodash_hash_undefined__":t,this};function ID(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ID.prototype.clear=ND,ID.prototype.delete=OD,ID.prototype.get=PD,ID.prototype.has=DD,ID.prototype.set=MD;var AD=ID;var FD=function(){this.__data__=[],this.size=0};var LD=function(e,t){for(var n=e.length;n--;)if(GT(e[n][0],t))return n;return-1},zD=Array.prototype.splice;var $D=function(e){var t=this.__data__,n=LD(t,e);return!(n<0)&&(n==t.length-1?t.pop():zD.call(t,n,1),--this.size,!0)};var HD=function(e){var t=this.__data__,n=LD(t,e);return n<0?void 0:t[n][1]};var VD=function(e){return LD(this.__data__,e)>-1};var BD=function(e,t){var n=this.__data__,r=LD(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function UD(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}UD.prototype.clear=FD,UD.prototype.delete=$D,UD.prototype.get=HD,UD.prototype.has=VD,UD.prototype.set=BD;var WD=UD,qD=LT(oT,"Map");var YD=function(){this.size=0,this.__data__={hash:new AD,map:new(qD||WD),string:new AD}};var GD=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var KD=function(e,t){var n=e.__data__;return GD(t)?n["string"==typeof t?"string":"hash"]:n.map};var QD=function(e){var t=KD(this,e).delete(e);return this.size-=t?1:0,t};var XD=function(e){return KD(this,e).get(e)};var ZD=function(e){return KD(this,e).has(e)};var JD=function(e,t){var n=KD(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function eM(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eM.prototype.clear=YD,eM.prototype.delete=QD,eM.prototype.get=XD,eM.prototype.has=ZD,eM.prototype.set=JD;var tM=eM;var nM=function(e){return null==e?"":xT(e)};var rM=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var oM=function(e){return function(t){return null==e?void 0:e[t]}};var aM=function(){this.__data__=new WD,this.size=0};var iM=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var sM=function(e){return this.__data__.get(e)};var lM=function(e){return this.__data__.has(e)};var uM=function(e,t){var n=this.__data__;if(n instanceof WD){var r=n.__data__;if(!qD||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new tM(r)}return n.set(e,t),this.size=n.size,this};function cM(e){var t=this.__data__=new WD(e);this.size=t.size}cM.prototype.clear=aM,cM.prototype.delete=iM,cM.prototype.get=sM,cM.prototype.has=lM,cM.prototype.set=uM;var dM=cM;var fM=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a};var pM=function(){return[]},hM=Object.prototype.propertyIsEnumerable,mM=Object.getOwnPropertySymbols,gM=mM?function(e){return null==e?[]:(e=Object(e),fM(mM(e),function(t){return hM.call(e,t)}))}:pM;var yM=function(e,t,n){var r=t(e);return vT(e)?r:rM(r,n(e))};var vM=function(e){return yM(e,ED,gM)},bM=LT(oT,"DataView"),wM=LT(oT,"Promise"),xM=LT(oT,"Set"),CM="[object Map]",SM="[object Promise]",kM="[object Set]",_M="[object WeakMap]",EM="[object DataView]",jM=OT(bM),NM=OT(qD),OM=OT(wM),RM=OT(xM),PM=OT(zT),TM=hT;(bM&&TM(new bM(new ArrayBuffer(1)))!=EM||qD&&TM(new qD)!=CM||wM&&TM(wM.resolve())!=SM||xM&&TM(new xM)!=kM||zT&&TM(new zT)!=_M)&&(TM=function(e){var t=hT(e),n="[object Object]"==t?e.constructor:void 0,r=n?OT(n):"";if(r)switch(r){case jM:return EM;case NM:return CM;case OM:return SM;case RM:return kM;case PM:return _M}return t});var DM=TM,MM=oT.Uint8Array;var IM=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var AM=function(e){return this.__data__.has(e)};function FM(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new tM;++t<n;)this.add(e[t])}FM.prototype.add=FM.prototype.push=IM,FM.prototype.has=AM;var LM=FM;var zM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var $M=function(e,t){return e.has(t)};var HM=function(e,t,n,r,o,a){var i=1&n,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new LM:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var g=i?r(m,h,d,t,e,a):r(h,m,d,e,t,a);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!zM(t,function(e,t){if(!$M(p,t)&&(h===e||o(h,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f};var VM=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var BM=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},UM=aT?aT.prototype:void 0,WM=UM?UM.valueOf:void 0;var qM=function(e,t,n,r,o,a,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new MM(e),new MM(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return GT(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=VM;case"[object Set]":var l=1&r;if(s||(s=BM),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;r|=2,i.set(e,t);var c=HM(s(e),s(t),r,o,a,i);return i.delete(e),c;case"[object Symbol]":if(WM)return WM.call(e)==WM.call(t)}return!1},YM=Object.prototype.hasOwnProperty;var GM=function(e,t,n,r,o,a){var i=1&n,s=vM(e),l=s.length;if(l!=vM(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:YM.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=i;++u<l;){var m=e[c=s[u]],g=t[c];if(r)var y=i?r(g,m,c,t,e,a):r(m,g,c,e,t,a);if(!(void 0===y?m===g||o(m,g,n,r,a):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},KM="[object Arguments]",QM="[object Array]",XM="[object Object]",ZM=Object.prototype.hasOwnProperty;var JM=function(e,t,n,r,o,a){var i=vT(e),s=vT(t),l=i?QM:DM(e),u=s?QM:DM(t),c=(l=l==KM?XM:l)==XM,d=(u=u==KM?XM:u)==XM,f=l==u;if(f&&cD(e)){if(!cD(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new dM),i||bD(e)?HM(e,t,n,r,o,a):qM(e,t,l,n,r,o,a);if(!(1&n)){var p=c&&ZM.call(e,"__wrapped__"),h=d&&ZM.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return a||(a=new dM),o(m,g,n,r,a)}}return!!f&&(a||(a=new dM),GM(e,t,n,r,o,a))};var eI=function e(t,n,r,o,a){return t===n||(null==t||null==n||!mT(t)&&!mT(n)?t!=t&&n!=n:JM(t,n,r,o,e,a))};var tI=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},nI=oM({"&":"&","<":"<",">":">",'"':""","'":"'"}),rI=/[&<>"']/g,oI=RegExp(rI.source);var aI=function(e){return(e=nM(e))&&oI.test(e)?e.replace(rI,nI):e},iI=/[\\^$.*+?()[\]{}|]/g,sI=RegExp(iI.source);var lI=function(e){return(e=nM(e))&&sI.test(e)?e.replace(iI,"\\$&"):e};var uI=function(e,t){return eI(e,t)},cI=xM&&1/BM(new xM([,-0]))[1]==1/0?function(e){return new xM(e)}:$T,dI=cI;var fI=function(e,t,n){var r=-1,o=WT,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=tI;else if(a>=200){var u=t?null:dI(e);if(u)return BM(u);i=!1,o=$M,l=new LM}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s};var pI=function(e){return e&&e.length?fI(e):[]},hI={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,SPACE:32},mI={ENTER:"Enter",TAB:"Tab",COMMA:",",SPACE:" ",SEMICOLON:";"},gI="Press enter to add new tag",yI="text",vI={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},bI="inline",wI="top",xI="bottom",CI="Tag limit reached!";function SI(e){const{moveTag:t,readOnly:n,allowDragDrop:r}=e;return void 0!==t&&!n&&r}var kI=e=>{const{readOnly:t,removeComponent:n,onRemove:r,className:o,tag:a,index:i}=e,s=e=>{if(hI.ENTER.includes(e.keyCode)||e.keyCode===hI.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===hI.BACKSPACE&&r(e)};if(t)return m.jsx("span",{});const l=`Tag at index ${i} with value ${a.id} focussed. Press backspace to remove`;if(n){const e=n;return m.jsx(e,{"data-testid":"remove",onRemove:r,onKeyDown:s,className:o,"aria-label":l,tag:a,index:i})}return m.jsx("button",{"data-testid":"remove",onClick:r,onKeyDown:s,className:o,type:"button","aria-label":l,children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"12",width:"12",fill:"#fff",children:m.jsx("path",{d:"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"})})})},_I="tag",EI=e=>{const t=D.useRef(null),{readOnly:n=!1,tag:r,classNames:o,index:a,moveTag:i,allowDragDrop:s=!0,labelField:l="text",tags:u}=e,[{isDragging:c},d]=vP(()=>({type:_I,collect:e=>({isDragging:!!e.isDragging()}),item:e,canDrag:()=>SI({moveTag:i,readOnly:n,allowDragDrop:s})}),[u]),[,f]=CP(()=>({accept:_I,drop:t=>{const n=t.index,r=a;n!==r&&e?.moveTag?.(n,r)},canDrop:e=>function(e){const{readOnly:t,allowDragDrop:n}=e;return!t&&n}(e)}),[u]);d(f(t));const p=e.tag[l],{className:h=""}=r,g=c?0:1;return m.jsxs("span",{ref:t,className:(0,tT.default)("tag-wrapper",o.tag,h),style:{opacity:g,cursor:SI({moveTag:i,readOnly:n,allowDragDrop:s})?"move":"auto"},"data-testid":"tag",onClick:e.onTagClicked,onTouchStart:e.onTagClicked,children:[p,m.jsx(kI,{tag:e.tag,className:o.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:n,index:a})]})},jI=e=>m.jsx("button",{"aria-label":e["aria-label"],className:e.classNames.clearAll,onClick:e.onClick,children:"Clear all"}),NI=(e,t,n,r)=>"function"==typeof r?r(e):e.length>=t&&n,OI=D.memo(e=>{const t=D.createRef(),{labelField:n,minQueryLength:r,isFocused:o,classNames:a,selectedIndex:i,query:s}=e;D.useEffect(()=>{if(!t.current)return;const e=t.current.querySelector(`.${a.activeSuggestion}`);e&&((e,t)=>{const n=t.offsetHeight,r=e.offsetHeight,o=e.offsetTop-t.scrollTop;o+r>=n?t.scrollTop+=o-n+r:o<0&&(t.scrollTop+=o)})(e,t.current)},[i]);const l=(e,t)=>{const r=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&"),{[n]:o}=e;return{__html:o.replace(RegExp(r,"gi"),e=>`<mark>${aI(e)}</mark>`)}},u=(t,n)=>"function"==typeof e.renderSuggestion?e.renderSuggestion(t,n):m.jsx("span",{dangerouslySetInnerHTML:l(t,n)}),c=e.suggestions.map((t,n)=>m.jsx("li",{onMouseDown:e.handleClick.bind(null,n),onTouchStart:e.handleClick.bind(null,n),onMouseOver:e.handleHover.bind(null,n),className:n===e.selectedIndex?e.classNames.activeSuggestion:"",children:u(t,e.query)},n));return 0!==c.length&&NI(s,r||2,o,e.shouldRenderSuggestions)?m.jsx("div",{ref:t,className:a.suggestions,"data-testid":"suggestions",children:m.jsxs("ul",{children:[" ",c," "]})}):null},(e,t)=>{const{query:n,minQueryLength:r=2,isFocused:o,suggestions:a}=t;return!(e.isFocused!==o||!uI(e.suggestions,a)||NI(n,r,o,t.shouldRenderSuggestions)!==NI(e.query,e.minQueryLength??2,e.isFocused,e.shouldRenderSuggestions)||e.selectedIndex!==t.selectedIndex)}),RI=OI,PI=JP(eT()),TI=e=>{const{autofocus:t,autoFocus:n,readOnly:r,labelField:o,allowDeleteFromEmptyInput:a,allowAdditionFromPaste:i,allowDragDrop:s,minQueryLength:l,shouldRenderSuggestions:u,removeComponent:c,autocomplete:d,inline:f,maxTags:p,allowUnique:h,editable:g,placeholder:y,delimiters:v,separators:b,tags:w,inputFieldPosition:x,inputProps:C,classNames:S,maxLength:k,inputValue:_,clearAll:E,ariaAttrs:j}=e,[N,O]=D.useState(e.suggestions),[R,P]=D.useState(""),[T,M]=D.useState(!1),[I,A]=D.useState(-1),[F,L]=D.useState(!1),[z,$]=D.useState(""),[H,V]=D.useState(-1),[B,U]=D.useState(""),W=D.createRef(),q=D.useRef(null),Y=D.useRef(null);D.useEffect(()=>{v.length&&console.warn("[Deprecation] The delimiters prop is deprecated and will be removed in v7.x.x, please use separators instead. If you have any concerns regarding this, please share your thoughts in https://github.com/react-tags/react-tags/issues/960")},[]),D.useEffect(()=>{void 0!==f&&console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.")},[f]),D.useEffect(()=>{void 0!==t&&console.warn("[Deprecated] autofocus prop will be removed in 7.x so please migrate to autoFocus prop."),(t||n&&!1!==t)&&!r&&Q()},[n,n,r]),D.useEffect(()=>{ee()},[R,e.suggestions]);const G=t=>{let n=e.suggestions.slice();if(h){const e=w.map(e=>e.id.trim().toLowerCase());n=n.filter(t=>!e.includes(t.id.toLowerCase()))}if(e.handleFilterSuggestions)return e.handleFilterSuggestions(t,n);const r=n.filter(e=>0===K(t,e)),o=n.filter(e=>K(t,e)>0);return r.concat(o)},K=(e,t)=>t[o].toLowerCase().indexOf(e.toLowerCase()),Q=()=>{P(""),q.current&&(q.current.value="",q.current.focus())},X=(t,n)=>{n.preventDefault(),n.stopPropagation();const r=w.slice();0!==r.length&&(U(""),e?.handleDelete?.(t,n),Z(t,r))},Z=(e,t)=>{if(!W?.current)return;const n=W.current.querySelectorAll(".ReactTags__remove");let r="";0===e&&t.length>1?(r=`Tag at index ${e} with value ${t[e].id} deleted. Tag at index 0 with value ${t[1].id} focussed. Press backspace to remove`,n[0].focus()):e>0?(r=`Tag at index ${e} with value ${t[e].id} deleted. Tag at index ${e-1} with value ${t[e-1].id} focussed. Press backspace to remove`,n[e-1].focus()):(r=`Tag at index ${e} with value ${t[e].id} deleted. Input focussed. Press enter to add a new tag`,q.current?.focus()),$(r)},J=t=>{e.handleInputChange&&e.handleInputChange(t.target.value,t);const n=t.target.value.trim();P(n)},ee=()=>{const e=G(R);O(e),A(I>=e.length?e.length-1:I)},te=t=>{const n=t.target.value;e.handleInputFocus&&e.handleInputFocus(n,t),M(!0)},ne=t=>{const n=t.target.value;e.handleInputBlur&&(e.handleInputBlur(n,t),q.current&&(q.current.value="")),M(!1),V(-1)},re=e=>{if(!e.nativeEvent.isComposing){if("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),A(-1),L(!1),O([]),V(-1)),(-1!==b.indexOf(e.key)||-1!==v.indexOf(e.keyCode))&&!e.shiftKey){e.keyCode===hI.TAB&&""===R||e.preventDefault();const t=F&&-1!==I?N[I]:{id:R.trim(),[o]:R.trim(),className:""};Object.keys(t)&&ie(t)}"Backspace"!==e.key||""!==R||!a&&x!==bI||X(w.length-1,e),e.keyCode===hI.UP_ARROW&&(e.preventDefault(),A(I<=0?N.length-1:I-1),L(!0)),e.keyCode===hI.DOWN_ARROW&&(e.preventDefault(),L(!0),0===N.length?A(-1):A((I+1)%N.length))}},oe=()=>p&&w.length>=p,ae=t=>{if(!i)return;if(oe())return U(CI),void Q();U(""),t.preventDefault();const n=t.clipboardData||window.clipboardData,r=n.getData("text"),{maxLength:a=r.length}=e,s=Math.min(a,r.length),l=n.getData("text").substr(0,s);let u=v;b.length&&(u=[],b.forEach(e=>{const t=function(e){switch(e){case mI.ENTER:return[10,13];case mI.TAB:return 9;case mI.COMMA:return 188;case mI.SPACE:return 32;case mI.SEMICOLON:return 186;default:return 0}}(e);Array.isArray(t)?u=[...u,...t]:u.push(t)}));const c=function(e){const t=e.map(e=>{const t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join(""),n=lI(t);return new RegExp(`[${n}]+`)}(u),d=l.split(c).map(e=>e.trim());pI(d).forEach(e=>ie({id:e.trim(),[o]:e.trim(),className:""}))},ie=t=>{if(!t.id||!t[o])return;if(-1===H){if(oe())return U(CI),void Q();U("")}const n=w.map(e=>e.id.toLowerCase());if(!(h&&n.indexOf(t.id.trim().toLowerCase())>=0)){if(d){const e=G(t[o]);console.warn("[Deprecation] The autocomplete prop will be removed in 7.x to simplify the integration and make it more intutive. If you have any concerns regarding this, please share your thoughts in https://github.com/react-tags/react-tags/issues/949"),(1===d&&1===e.length||!0===d&&e.length)&&(t=e[0])}-1!==H&&e.onTagUpdate?e.onTagUpdate(H,t):e?.handleAddition?.(t),P(""),L(!1),A(-1),V(-1),Q()}},se=(t,n)=>{const r=w[t];e?.handleDrag?.(r,t,n)},le=(()=>{const t={...vI,...e.classNames};return w.map((n,a)=>m.jsx(D.Fragment,{children:H===a?m.jsx("div",{className:t.editTagInput,children:m.jsx("input",{ref:e=>{Y.current=e},onFocus:te,value:R,onChange:J,onKeyDown:re,onBlur:ne,className:t.editTagInputField,onPaste:ae,"data-testid":"tag-edit"})}):m.jsx(EI,{index:a,tag:n,tags:w,labelField:o,onDelete:e=>X(a,e),moveTag:s?se:void 0,removeComponent:c,onTagClicked:t=>((t,n,a)=>{r||(g&&(V(t),P(n[o]),Y.current?.focus()),e.handleTagClick?.(t,a))})(a,n,t),readOnly:r,classNames:t,allowDragDrop:s})},a))})(),ue={...vI,...S},{name:ce,id:de}=e,fe=!1===f?xI:x,pe=r?null:m.jsxs("div",{className:ue.tagInput,children:[m.jsx("input",{...C,ref:e=>{q.current=e},className:ue.tagInputField,type:"text",placeholder:y,"aria-label":y,onFocus:te,onBlur:ne,onChange:J,onKeyDown:re,onPaste:ae,name:ce,id:de,maxLength:k,value:_,"data-automation":"input","data-testid":"input"}),m.jsx(RI,{query:R.trim(),suggestions:N,labelField:o,selectedIndex:I,handleClick:e=>{ie(N[e])},handleHover:e=>{A(e),L(!0)},minQueryLength:l,shouldRenderSuggestions:u,isFocused:T,classNames:ue,renderSuggestion:e.renderSuggestion}),E&&w.length>0&&m.jsx(jI,{"aria-label":j?.clearAllLabel,classNames:ue,onClick:()=>{e.onClearAll&&e.onClearAll(),U(""),Q()}}),B&&m.jsxs("div",{"data-testid":"error",className:"ReactTags__error",children:[m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"24",width:"24",fill:"#e03131",children:m.jsx("path",{d:"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})}),B]})]});return m.jsxs("div",{className:(0,PI.default)(ue.tags,"react-tags-wrapper"),ref:W,children:[m.jsx("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0},children:z}),fe===wI&&pe,m.jsxs("div",{className:ue.selected,children:[le,fe===bI&&pe]}),fe===xI&&pe]})},DI=e=>{const{placeholder:t=gI,labelField:n=yI,suggestions:r=[],delimiters:o=[],separators:a=(e.delimiters?.length?[]:[mI.ENTER,mI.TAB]),autofocus:i,autoFocus:s=!0,inline:l,inputFieldPosition:u="inline",allowDeleteFromEmptyInput:c=!1,allowAdditionFromPaste:d=!0,autocomplete:f=!1,readOnly:p=!1,allowUnique:h=!0,allowDragDrop:g=!0,tags:y=[],inputProps:v={},editable:b=!1,clearAll:w=!1,ariaAttrs:x={clearAllLabel:"clear all tags"},handleDelete:C,handleAddition:S,onTagUpdate:k,handleDrag:_,handleFilterSuggestions:E,handleTagClick:j,handleInputChange:N,handleInputFocus:O,handleInputBlur:R,minQueryLength:P,shouldRenderSuggestions:T,removeComponent:D,onClearAll:M,classNames:I,name:A,id:F,maxLength:L,inputValue:z,maxTags:$,renderSuggestion:H}=e;return m.jsx(TI,{placeholder:t,labelField:n,suggestions:r,delimiters:o,separators:a,autofocus:i,autoFocus:s,inline:l,inputFieldPosition:u,allowDeleteFromEmptyInput:c,allowAdditionFromPaste:d,autocomplete:f,readOnly:p,allowUnique:h,allowDragDrop:g,tags:y,inputProps:v,editable:b,clearAll:w,ariaAttrs:x,handleDelete:C,handleAddition:S,onTagUpdate:k,handleDrag:_,handleFilterSuggestions:E,handleTagClick:j,handleInputChange:N,handleInputFocus:O,handleInputBlur:R,minQueryLength:P,shouldRenderSuggestions:T,removeComponent:D,onClearAll:M,classNames:I,name:A,id:F,maxLength:L,inputValue:z,maxTags:$,renderSuggestion:H})},MI=({...e})=>m.jsx(YR,{backend:UP,children:m.jsx(DI,{...e})});
|
|
224
224
|
/*! Bundled license information:
|
|
225
225
|
|
|
226
226
|
classnames/index.js:
|
|
@@ -241,5 +241,5 @@ to {
|
|
|
241
241
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
242
242
|
*)
|
|
243
243
|
*/
|
|
244
|
-
function MI({label:e,labelClass:t,required:n,info:r,placeholder:o,setTagArray:a,values:i=[]}){const s=i?.map(e=>({id:"1",text:e??"example",className:""})),[l,u]=D.useState(s);return D.useEffect(()=>{const e=l.map(e=>e.text);a&&a(e)},[l]),m.jsxs("div",{className:"space-y-3",children:[e&&m.jsxs("label",{className:ma("text-dark flex items-center gap-1 first-letter:uppercase text-sm font-medium",t),children:[e," ",n&&m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}),r&&m.jsx(Wv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:r})})]}),m.jsx("div",{className:"border rounded-md px-4 py-2 bg-white border-gray-300",children:m.jsx(DI,{tags:l,handleDelete:e=>{u(l.filter((t,n)=>n!==e))},separators:[hI.ENTER,hI.COMMA],onTagUpdate:(e,t)=>{const n=[...l];n.splice(e,1,t),u(n)},editable:!0,placeholder:o,allowDeleteFromEmptyInput:!0,allowDragDrop:!1,onClearAll:()=>{u([])},handleAddition:e=>{u([...l,e])},handleTagClick:e=>{console.log("The tag at index "+e+" was clicked")},inputFieldPosition:"inline"})})]})}function II({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=bx(),[o,a]=D.useState([]),i=qn();return m.jsx(gk,{isOpen:e,onClose:t,title:"New Tag",className:"w-[425px] pb-5",children:m.jsxs("form",{className:"space-y-5",onSubmit:e=>{e.preventDefault(),n({url:"/inventory_metas/tags/create",payload:{names:o}},{onSuccess:()=>{i.invalidateQueries({queryKey:["itemtags"]}),t&&t()}})},action:"",children:[m.jsx("div",{className:"px-5 space-y-5",children:m.jsx(MI,{info:"Enter a name for the tag. Tags help categorize items and make them easier to search for.",label:"Tag names ",required:!0,values:o||[],setTagArray:a})}),m.jsx(IC,{}),m.jsxs("div",{className:"flex justify-end gap-2.5 px-5",children:[m.jsx(rj,{label:"Dismiss",className:"px-4 bg-gray-300 text-gray-900 hover:bg-gray-400",onClick:t,disabled:r}),m.jsx(rj,{loading:r,label:"Create",className:"px-4",type:"submit"})]})]})})}function AI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=bx(),[o,a]=D.useState(""),{apiKey:i}=Jn(),[s,l]=D.useState({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),u=(e,t)=>{l({...s,[e]:t})},{data:c}=vx(["itemtypes",i],"/inventory_metas/types",{enabled:!!i}),d=c?.data?.data?.filter(e=>"products"===e.name||"services"===e.name)?.map(e=>({label:e.name,value:e.uuid})),f=qn();return m.jsx(gk,{isOpen:e,onClose:t,title:"New Unit",className:"w-[425px]",children:m.jsxs("div",{className:"px-5 space-y-5 pb-5",children:[m.jsx(ON,{type:"text",placeholder:"e.g Kilogram",info:"Enter the name of the unit used to measure this item (e.g., pieces, kg, liters). This helps in tracking inventory accurately.",label:"Unit name ",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.name,onChange:e=>u("name",e.target.value)}),m.jsx(ck,{options:d,label:"Item type",placeholder:"select type",value:s.item_type_uuid,onValueChange:e=>u("item_type_uuid",e),info:"Select the type of item you are adding (e.g., product, service). This helps in categorizing and managing inventory efficiently.",labelClass:"text-dark font-bold"}),m.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[m.jsx(ON,{type:"text",placeholder:"e.g KG",info:"Enter a short form or symbol for the unit name (e.g., kg for kilograms, pcs for pieces). This will be used for display in reports and transactions.",label:"Abbreviation",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.abbreviation,onChange:e=>u("abbreviation",e.target.value)}),m.jsx(ck,{options:[{label:"Yes ",value:"yes"},{label:"No ",value:"no"}],label:"Allow decimal",placeholder:"Yes/ No",value:o,onValueChange:e=>a(e),info:"Enable this option if the unit can have decimal values (e.g., 2.5 kg, 1.75 liters). Disable it for whole number quantities only.",infoAlignment:"end",labelClass:"text-dark font-semibold text-[15px]",showSearch:!1})]}),m.jsx("div",{className:"flex justify-end gap-2.5",children:m.jsx(rj,{onClick:()=>{n({url:"/inventory_metas/units/create",payload:s},{onSuccess:()=>{f.invalidateQueries({queryKey:["itemunits"]}),l({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),t&&t()}})},loading:r,label:"Create",className:"px-4"})})]})})}var FI="Checkbox",[LI]=ja(FI),[zI,$I]=LI(FI);function HI(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=e,[f,p]=Pa({prop:n,defaultProp:o??!1,onChange:l,caller:FI}),[h,g]=D.useState(null),[y,v]=D.useState(null),b=D.useRef(!1),w=!h||(!!i||!!h.closest("form")),x={checked:f,disabled:a,setChecked:p,control:h,setControl:g,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:!QI(o)&&o,isFormControl:w,bubbleInput:y,setBubbleInput:v};return m.jsx(zI,{scope:t,...x,children:KI(d)?d(x):r})}var VI="CheckboxTrigger",BI=D.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:s,checked:l,required:u,setControl:c,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:h}=$I(VI,e),g=Ea(o,c),y=D.useRef(l);return D.useEffect(()=>{const e=a?.form;if(e){const t=()=>d(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[a,d]),m.jsx(za.button,{type:"button",role:"checkbox","aria-checked":QI(l)?"mixed":l,"aria-required":u,"data-state":XI(l),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:g,onKeyDown:Sa(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:Sa(n,e=>{d(e=>!!QI(e)||!e),h&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});BI.displayName=VI;var UI=D.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l,onCheckedChange:u,form:c,...d}=e;return m.jsx(HI,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:u,name:r,form:c,value:l,internal_do_not_use_render:({isFormControl:e})=>m.jsxs(m.Fragment,{children:[m.jsx(BI,{...d,ref:t,__scopeCheckbox:n}),e&&m.jsx(GI,{__scopeCheckbox:n})]})})});UI.displayName=FI;var WI="CheckboxIndicator",qI=D.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=$I(WI,n);return m.jsx(Pl,{present:r||QI(a.checked)||!0===a.checked,children:m.jsx(za.span,{"data-state":XI(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});qI.displayName=WI;var YI="CheckboxBubbleInput",GI=D.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:l,name:u,value:c,form:d,bubbleInput:f,setBubbleInput:p}=$I(YI,e),h=Ea(n,p),g=ij(a),y=sl(r);D.useEffect(()=>{const e=f;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set,r=!o.current;if(g!==a&&n){const t=new Event("click",{bubbles:r});e.indeterminate=QI(a),n.call(e,!QI(a)&&a),e.dispatchEvent(t)}},[f,g,a,o]);const v=D.useRef(!QI(a)&&a);return m.jsx(za.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:l,name:u,value:c,form:d,...t,tabIndex:-1,ref:h,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function KI(e){return"function"==typeof e}function QI(e){return"indeterminate"===e}function XI(e){return QI(e)?"indeterminate":e?"checked":"unchecked"}GI.displayName=YI;const ZI=D.forwardRef(({className:e,...t},n)=>m.jsx(UI,{ref:n,className:ma("peer h-5 w-5 shrink-0 border border-[#7E8299] ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary rounded-[7px] data-[state=checked]:text-neutral-50 dark:border-neutral-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300 dark:data-[state=checked]:bg-neutral-50 data-[state=checked]:border-primary dark:data-[state=checked]:text-neutral-900 bg-white",e),...t,children:m.jsx(qI,{className:ma("flex items-center justify-center text-current"),children:m.jsx(Qd,{className:"h-4 w-4"})})}));ZI.displayName=UI.displayName;const JI=({returnSelectedManagers:e})=>{const[t,n]=D.useState(!1),[r,o]=D.useState({}),[a,i]=D.useState(""),{apiKey:s}=Jn(),{data:l,isLoading:u}=vx(["item-managers",s],"/manager/get_unpaginated",{enabled:!!s}),c=l?.data?.data||[],d=D.useMemo(()=>{if(!a)return c;const e=a.toLowerCase();return c.filter(t=>(t.name||"").toLowerCase().includes(e))},[c,a]);D.useEffect(()=>{if(console.log("Selected Managers Updated:",r),e){const t=Object.entries(r).map(([e,t])=>({manager_uuid:e,quantity:t}));e(t)}},[r]);const f=Object.keys(r).length;return m.jsx("div",{className:"w-full",children:m.jsxs(ak,{modal:!0,open:t,onOpenChange:n,children:[m.jsx(ik,{asChild:!0,children:m.jsxs(uk,{variant:"outline",role:"combobox","aria-expanded":t,className:"w-full justify-between h-12 bg-white border-neutral-200 text-neutral-700 hover:bg-neutral-50",children:[f>0?`${f} Manager${1===f?"":"s"} Selected`:"Select Managers",m.jsx(ef,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(sk,{align:"end",className:"w-[450px] p-0 bg-white",side:"bottom",children:m.jsxs(OS,{shouldFilter:!1,children:[m.jsx(RS,{placeholder:"Search managers...",value:a,onValueChange:i}),m.jsxs(PS,{children:[m.jsx(TS,{children:"No manager found."}),m.jsx(DS,{children:u?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map(e=>m.jsx(Ca,{className:"h-10 w-full"},e))}):m.jsx(RO,{className:"h-72",children:d?.map(e=>{const t=(e=>e.uuid||"")(e),n=(e=>e.name||"Unknown Manager")(e),a=!!r[t],i=r[t]||0;return m.jsxs(MS,{value:t+n,onSelect:()=>{var e;(e=t)&&(console.log("Toggling Manager:",e),o(t=>{const n={...t};return n[e]?delete n[e]:n[e]=1,n}))},className:ma("flex items-center gap-3 p-2 cursor-pointer transition-colors aria-selected:bg-neutral-100",a&&"bg-blue-50 aria-selected:bg-blue-100"),children:[m.jsx("div",{className:"pointer-events-none flex items-center justify-center",children:m.jsx(ZI,{checked:a,className:ma(a?"bg-primary border-primary":"border-neutral-300")})}),m.jsx("div",{className:"flex-1 truncate font-medium text-neutral-700",children:n}),m.jsxs("div",{className:"flex items-center gap-2",onClick:e=>e.stopPropagation(),children:[m.jsx("span",{className:"text-xs text-neutral-400 font-medium",children:"Qty"}),m.jsx("input",{type:"number",min:"0",className:"w-20 h-8 rounded border border-neutral-300 px-2 text-sm focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary",placeholder:"0",value:a?i:"",disabled:!a,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),onChange:e=>{const n=parseFloat(e.target.value);((e,t)=>{e&&o(n=>({...n,[e]:t}))})(t,isNaN(n)?0:n)}})]})]},t)})})})]})]})})]})})};function eA({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=bx(),o=qn(),{apiKey:a}=Jn(),{data:i}=vx(["categories",a],"/inventory_metas/categories",{enabled:!!a}),{data:s}=vx(["itemunits",a],"/inventory_metas/units",{enabled:!!a}),{data:l}=vx(["itemtags",a],"/inventory_metas/tags",{enabled:!!a}),{data:u}=vx(["itemtypes",a],"/inventory_metas/types",{enabled:!!a}),{data:c}=vx(["locations",a],"/locations/get_integrated",{enabled:!!a}),d=i?.data?.data?.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))}))||[],f=s?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],p=l?.data?.data?.map(e=>({label:e.name,value:e.uuid})),h=c?.data?.data?.map(e=>({label:e.name,value:e.uuid})),g=u?.data?.data?.filter(e=>"products"===e.name||"services"===e.name).map(e=>({label:e.name,value:e.uuid}))||[],[y,v]=D.useState(""),[b,w]=M.useState([]),[x,C]=M.useState([]),[S,k]=D.useState(g?.[0]?.value||"");D.useEffect(()=>{const e=g.find(e=>e?.value===S)?.label||"";v(e)},[S]);const[_,E]=D.useState([]),[j,N]=D.useState([{name:"",itemunit_id:f?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:"",managers:[{manager_uuid:"",quantity:""}]}]),O=(e,t,n)=>{const r=[...j];r[n]={...r[n],[e]:t},N(r)},R={itemtype_id:S,itemcategory_id:b,tags:_,items:j,locations_uuid:x},P=["Item name","Item unit",..."services"!==y?["Quantity","Barcode"]:[],"Cost price (₦)","Selling price (₦)","Item Managers"],[T,I]=D.useState(!1),[A,F]=D.useState(!1);return m.jsxs(gk,{isOpen:e,onClose:t,title:"Quick create multiple items",className:"max-w-5xl",children:[m.jsxs("div",{className:"px-5 space-y-7 pb-5",children:[m.jsxs("div",{className:"grid grid-cols-3 gap-5 bg-gray-100 rounded-xl p-4",children:[m.jsx("div",{className:"col-span-3",children:m.jsx(TO,{label:"Locations",placeholder:"Search and Select locations",labelClass:"text-dark text-sm",options:h,values:x,onChange:C,showSearch:!0,showCount:!0,showMultiSelectValues:!0})}),m.jsx(ck,{label:"Item type",options:g,placeholder:"select item type",value:S,onValueChange:e=>k(e),required:!0,info:"Select the type of item you're creating (e.g., product, service, variations, kits ). This classification helps determine how the item is managed, displayed, or fulfilled."}),m.jsx(YN,{placeholder:"select categories",label:"Category",options:d,values:b,onChange:e=>w(e),showMultiSelectValues:!1,showCount:!0,info:"Select the category that best describes this item(s) (e.g., electronics, clothing, food). Categorizing items helps in organizing inventory and simplifies product management."}),m.jsx(TO,{label:"Item tag",placeholder:"Search and Select item tags",info:"Enter relevant keywords or labels for this item(s). Tags help in categorizing and making the item easier to find through search filters.",labelClass:"text-dark text-sm",options:p,values:_,onChange:E,showSearch:!0,showCount:!0,showMultiSelectValues:!1,actionLabel:"Create a new tag",actionLabelInfo:"Enter a new tag to help categorize the item. Tags are useful for organizing and making items easily searchable by specific attributes or keywords.",actionLabelAction:()=>I(!0)})]}),m.jsxs("div",{className:"space-y-2 overflow-auto",children:[m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-x-4 border-spacing-y-4",children:[m.jsx("thead",{children:m.jsx("tr",{children:P.map((e,t)=>m.jsx("th",{className:"text-dark text-sm font-medium text-left",children:m.jsxs("p",{className:"flex gap-1",children:[e,1===t?m.jsx(rj,{mode:"text",label:"",left_addon:wv.plus_squared2,onClick:()=>F(!0),className:" text-sm"}):null]})},t))})}),m.jsx("tbody",{className:"text-dark text-[15px] ",children:j.map((e,t)=>m.jsxs("tr",{children:[m.jsx("td",{className:"",children:m.jsx(ON,{type:"text",placeholder:"Enter item name",value:e.name,onChange:e=>O("name",e.target.value,t)})}),m.jsx("td",{children:m.jsx(ck,{options:f,placeholder:"select item unit",value:e.itemunit_id,onValueChange:e=>O("itemunit_id",e,t)})}),"services"!==y?m.jsxs(m.Fragment,{children:[m.jsx("td",{className:"",children:m.jsx(ON,{type:"number",placeholder:"0",value:e.quantity,onChange:e=>O("quantity",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(ON,{type:"text",placeholder:"Enter barcode",value:e.barcode,onChange:e=>O("barcode",e.target.value,t)})})]}):null,m.jsx("td",{className:"",children:m.jsx(ON,{type:"number",placeholder:"0.00",value:e.cost_price,onChange:e=>O("cost_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(ON,{type:"number",placeholder:"0.00",value:e.selling_price,onChange:e=>O("selling_price",e.target.value,t)})}),m.jsx("td",{children:m.jsx(JI,{returnSelectedManagers:e=>{O("managers",e,t),console.log("Selected managers for item index",t,":",e)}})}),m.jsx("td",{className:"",children:m.jsx("button",{onClick:()=>(e=>{const t=j.filter((t,n)=>n!==e);N(t)})(t),disabled:1===j.length,className:"disabled:cursor-not-allowed disabled:opacity-70",children:wv.trash2})})]},t))})]}),m.jsx("div",{className:"flex justify-between items-center gap-3",children:m.jsx(rj,{mode:"text",label:"Add more",left_addon:wv.plus_squared2,onClick:()=>{N(e=>[...e,{name:"",itemunit_id:f?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:"",managers:[{manager_uuid:"",quantity:""}]}])},className:"font-medium text-sm ml-4"})})]})]}),m.jsxs("div",{className:"flex justify-between items-center px-5 sticky bottom-0 bg-white py-5 border-t ",children:[m.jsxs("button",{className:"text-primary text-sm font-medium flex items-center gap-1",children:[wv.question," Need help?"]}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(rj,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t}),m.jsx(rj,{label:"Create Items",onClick:()=>{n({url:"/items/create_multiple",payload:R},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),t&&t()}})},loading:r})]})]}),m.jsx(II,{isOpen:T,onClose:()=>I(!1)}),m.jsx(AI,{isOpen:A,onClose:()=>F(!1)})]})}function tA({isOpen:e,onClose:t,currentTab:n,loading:r,filter:o,setFiltering:a}){const[i,s]=D.useState(""),[l]=qN(i,1e3),{apiKey:u}=Jn(),{data:c}=vx(["categories",u],"/inventory_metas/categories",{enabled:!!u}),{data:d}=vx(["itemtypes",u],"/inventory_metas/types",{enabled:!!u}),{data:f}=vx(["itemunits",u],"/inventory_metas/units",{enabled:!!u}),{data:p}=vx(["suppliers",l],i?`/suppliers/search/${i}/all`:"/suppliers",{enabled:!!u}),{data:h}=vx(["itembrands"],"/inventory_metas/brands",{enabled:!!u}),g=p?.data?.data?.map(e=>({label:e?.name,value:e?.uuid})),y=h?.data?.data?.map(e=>({label:e.name,value:e.uuid})),[v,b]=D.useState(""),[w]=qN(v,1e3),{data:x}=vx(["itemtags",u,w],"/inventory_metas/tags",{enabled:!!u&&!!w}),C=x?.data?.data?.map(e=>({label:e.name,value:e.uuid})),S=c?.data?.data.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))})),k=d?.data?.data?.map(e=>({label:e.name,value:e.uuid})),_=f?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],[E,j]=D.useState({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),N=(e,t)=>{j(n=>({...n,[e]:t}))};return m.jsx(gk,{isOpen:e,onClose:t,children:m.jsxs("div",{className:"px-8",children:[m.jsxs("div",{className:"flex justify-between items-center sticky top-0 py-5 bg-white",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-lg",children:"Item Filter"}),m.jsxs("button",{className:"text-danger text-sm font-medium inline-flex items-center",onClick:()=>{j({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),a(!1),t&&t()},children:[m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M11.175 9.99997L14.1667 7.0333C14.3258 6.87196 14.4143 6.65401 14.4128 6.42741C14.4112 6.2008 14.3197 5.98409 14.1583 5.82497C13.997 5.66584 13.779 5.57731 13.5524 5.57888C13.3258 5.58044 13.1091 5.67196 12.95 5.8333L10 8.82497L7.05 5.89163C6.89387 5.73642 6.68266 5.6493 6.4625 5.6493C6.24235 5.6493 6.03114 5.73642 5.875 5.89163C5.79689 5.9691 5.7349 6.06127 5.69259 6.16282C5.65028 6.26437 5.6285 6.37329 5.6285 6.4833C5.6285 6.59331 5.65028 6.70223 5.69259 6.80378C5.7349 6.90533 5.79689 6.9975 5.875 7.07497L8.825 9.99997L5.83333 12.9666C5.6742 13.128 5.58568 13.3459 5.58725 13.5725C5.58881 13.7991 5.68033 14.0158 5.84167 14.175C6.00301 14.3341 6.22095 14.4226 6.44756 14.4211C6.67417 14.4195 6.89087 14.328 7.05 14.1666L10 11.175L12.95 14.1083C13.1061 14.2635 13.3173 14.3506 13.5375 14.3506C13.7577 14.3506 13.9689 14.2635 14.125 14.1083C14.2031 14.0308 14.2651 13.9387 14.3074 13.8371C14.3497 13.7356 14.3715 13.6266 14.3715 13.5166C14.3715 13.4066 14.3497 13.2977 14.3074 13.1962C14.2651 13.0946 14.2031 13.0024 14.125 12.925L11.175 9.99997Z",fill:"#F1416C"})}),"Reset"," "]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-5",children:[m.jsx(YN,{options:S,label:"Categories",placeholder:"Select categories",values:E.category,onChange:e=>N("category",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0}),m.jsx(TO,{options:g,label:"Supplier",placeholder:"Select Suppliers",values:E.supplier,onChange:e=>N("supplier",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>s(e.target.value)}),m.jsx(TO,{options:k,label:"Item types",placeholder:"Select types",values:E.type,onChange:e=>N("type",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(TO,{options:_,label:"Item units",placeholder:"Select item unit",values:E.unit,onChange:e=>N("unit",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(TO,{options:y,label:"Item brands",placeholder:"Select item brands",values:E.brands,onChange:e=>N("brands",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(TO,{options:C,label:"Item tag",placeholder:"Select item tag",values:E.tags,onChange:e=>N("tags",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>b(e.target.value)})]}),m.jsxs("div",{className:"flex justify-end gap-2.5 sticky bottom-0 py-5 bg-white",children:[m.jsx(rj,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:r}),m.jsx(rj,{label:"Apply filter",onClick:()=>o(E),loading:r})]})]})})}let nA={};function rA(e){nA=e}const oA={inventory:({showStats:e=!0})=>{const[t,n]=M.useState(),{currentPage:r,perview:o,inline_update:a}=ne(e=>e.app),[i,s]=D.useState("all"),[l,u]=D.useState(!1),[c,d]=D.useState("all"),[f,p]=D.useState(""),[h]=qN(f,1e3),[g,y]=D.useState(!1),{apiKey:v}=Jn(),{mutate:b,isPending:w}=bx(),{data:x,isFetching:C}=vx(["items",o.toString(),r?.toString(),i,h,v],h?`/items/search?page=${r}&paginate=${o}¶m=${h}&for=${i}&filter=all`:`/items?page=${r}&paginate=${o}&status=${i}`,{enabled:!!v}),[S,k]=D.useState(),_=e=>{y(!0),b({url:`/inventory/item/filter?page=${r}&perview=${o}`,payload:e},{onSuccess(e,t,n){k(e),u(!1)}})},[E,j]=D.useState({for:i,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]});M.useEffect(()=>{g&&!f&&_(E)},[f,a,o,r,C]);const N=g?S?.data[0]:x?.data?.[0]||[],O=N?.data?.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,other_locations:e?.other_locations,itemcode:e?.itemcode,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images?.[0].image:CC,barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}))||[],{data:R,isFetching:P}=vx(["items-tab"],"/items/count",{enabled:!!v}),T=R?.data,I=[{label:"all",count:T?.all||0,action:()=>s("all")},{label:"published",count:T?.published||0,action:()=>s("published")},{label:"out of stock",count:T?.out_of_stock||0,action:()=>s("out_of_stock")},{label:"draft",count:T?.draft||0,action:()=>s("draft")},{label:"expiring",count:T?.expiring||0,action:()=>s("expiring")},{label:"expired",count:T?.expired||0,action:()=>s("expired")}],[A,F]=D.useState(!1);return m.jsxs(wC,{className:"px-4 py-6 flex flex-col gap-8",children:[m.jsx(hk,{tabs:I,loading:C}),m.jsxs("div",{className:" flex items-center justify-between md:flex-row flex-col flex-wrap gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(UN,{placeholder:"Search Item name, barcode or sku",value:f,onChange:e=>p(e.target.value)}),C?m.jsx(Ca,{className:"w-20 h-6"}):m.jsxs("p",{className:"text-dark text-sm font-medium",children:[N?.meta?.total??0," ",m.jsx("span",{className:"text-gray-700",children:"Items"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(rj,{label:"Filter",left_addon:M.cloneElement(wv.filter_edit,{fill:"#5E6278"}),onClick:()=>u(!0),className:"font-medium bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm h-12"}),m.jsx(rj,{label:"Create New",left_addon:wv.plus_squared,className:"font-medium text-sm h-12",onClick:()=>F(!0)})]})]}),e?m.jsx(BN,{loading:C,data:x?.data?.[1],meta:N?.meta}):null,m.jsx(Sv,{loading:C,columns:PN,data:O,emptyData:0===O.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:N?.meta}),m.jsx(tA,{isOpen:l,onClose:()=>u(!1),currentTab:i,loading:w,filter:e=>{_(e),j(e)},setFiltering:y}),A?m.jsx(eA,{isOpen:A,onClose:()=>F(!1)}):null]})}};async function aA(e,t,n={}){const r=oA[e];if(!r)return void console.error(`SimpooSDK: Widget "${e}" not found.`);const o=document.querySelector(t);if(!o)throw new Error(`Container "${t}" not found!`);try{await new Promise((e,t)=>{const n=document.querySelector("#simpoo-sdk-styles");if(n)return e(n);const r=document.createElement("link");r.id="simpoo-sdk-styles",r.rel="stylesheet",r.href="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css",r.onload=()=>e(r),r.onerror=()=>{document.querySelector(`#${r.id}`)||document.head.appendChild(r),e(r)};const o=setTimeout(()=>{document.querySelector(`#${r.id}`)||document.head.appendChild(r),e(r)},5e3);document.head.appendChild(r),r.addEventListener("load",()=>clearTimeout(o)),r.addEventListener("error",()=>clearTimeout(o))})}catch(e){console.warn("SimpooSDK: stylesheet failed to load, continuing to render.",e)}const a=document.createElement("div");a.className="simpoo-sdk",o.appendChild(a);T.createRoot(a).render(m.jsx(er,{apiKey:nA.apiKey||"",children:m.jsx(r,{...n})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:rA,renderWidget:aA}),e.init=rA,e.renderWidget=aA});
|
|
244
|
+
function II({label:e,labelClass:t,required:n,info:r,placeholder:o,setTagArray:a,values:i=[]}){const s=i?.map(e=>({id:"1",text:e??"example",className:""})),[l,u]=D.useState(s);return D.useEffect(()=>{const e=l.map(e=>e.text);a&&a(e)},[l]),m.jsxs("div",{className:"space-y-3",children:[e&&m.jsxs("label",{className:ma("text-dark flex items-center gap-1 first-letter:uppercase text-sm font-medium",t),children:[e," ",n&&m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}),r&&m.jsx(Uv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:r})})]}),m.jsx("div",{className:"border rounded-md px-4 py-2 bg-white border-gray-300",children:m.jsx(MI,{tags:l,handleDelete:e=>{u(l.filter((t,n)=>n!==e))},separators:[mI.ENTER,mI.COMMA],onTagUpdate:(e,t)=>{const n=[...l];n.splice(e,1,t),u(n)},editable:!0,placeholder:o,allowDeleteFromEmptyInput:!0,allowDragDrop:!1,onClearAll:()=>{u([])},handleAddition:e=>{u([...l,e])},handleTagClick:e=>{console.log("The tag at index "+e+" was clicked")},inputFieldPosition:"inline"})})]})}function AI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=vx(),[o,a]=D.useState([]),i=qn();return m.jsx(yk,{isOpen:e,onClose:t,title:"New Tag",className:"w-[425px] pb-5",children:m.jsxs("form",{className:"space-y-5",onSubmit:e=>{e.preventDefault(),n({url:"/inventory_metas/tags/create",payload:{names:o}},{onSuccess:()=>{i.invalidateQueries({queryKey:["itemtags"]}),t&&t()}})},action:"",children:[m.jsx("div",{className:"px-5 space-y-5",children:m.jsx(II,{info:"Enter a name for the tag. Tags help categorize items and make them easier to search for.",label:"Tag names ",required:!0,values:o||[],setTagArray:a})}),m.jsx(AC,{}),m.jsxs("div",{className:"flex justify-end gap-2.5 px-5",children:[m.jsx(oj,{label:"Dismiss",className:"px-4 bg-gray-300 text-gray-900 hover:bg-gray-400",onClick:t,disabled:r}),m.jsx(oj,{loading:r,label:"Create",className:"px-4",type:"submit"})]})]})})}function FI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=vx(),[o,a]=D.useState(""),{apiKey:i}=Jn(),[s,l]=D.useState({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),u=(e,t)=>{l({...s,[e]:t})},{data:c}=yx(["itemtypes",i],"/inventory_metas/types",{enabled:!!i}),d=c?.data?.data?.filter(e=>"products"===e.name||"services"===e.name)?.map(e=>({label:e.name,value:e.uuid})),f=qn();return m.jsx(yk,{isOpen:e,onClose:t,title:"New Unit",className:"w-[425px]",children:m.jsxs("div",{className:"px-5 space-y-5 pb-5",children:[m.jsx(RN,{type:"text",placeholder:"e.g Kilogram",info:"Enter the name of the unit used to measure this item (e.g., pieces, kg, liters). This helps in tracking inventory accurately.",label:"Unit name ",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.name,onChange:e=>u("name",e.target.value)}),m.jsx(dk,{options:d,label:"Item type",placeholder:"select type",value:s.item_type_uuid,onValueChange:e=>u("item_type_uuid",e),info:"Select the type of item you are adding (e.g., product, service). This helps in categorizing and managing inventory efficiently.",labelClass:"text-dark font-bold"}),m.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[m.jsx(RN,{type:"text",placeholder:"e.g KG",info:"Enter a short form or symbol for the unit name (e.g., kg for kilograms, pcs for pieces). This will be used for display in reports and transactions.",label:"Abbreviation",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.abbreviation,onChange:e=>u("abbreviation",e.target.value)}),m.jsx(dk,{options:[{label:"Yes ",value:"yes"},{label:"No ",value:"no"}],label:"Allow decimal",placeholder:"Yes/ No",value:o,onValueChange:e=>a(e),info:"Enable this option if the unit can have decimal values (e.g., 2.5 kg, 1.75 liters). Disable it for whole number quantities only.",infoAlignment:"end",labelClass:"text-dark font-semibold text-[15px]",showSearch:!1})]}),m.jsx("div",{className:"flex justify-end gap-2.5",children:m.jsx(oj,{onClick:()=>{n({url:"/inventory_metas/units/create",payload:s},{onSuccess:()=>{f.invalidateQueries({queryKey:["itemunits"]}),l({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),t&&t()}})},loading:r,label:"Create",className:"px-4"})})]})})}var LI="Checkbox",[zI]=ja(LI),[$I,HI]=zI(LI);function VI(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=e,[f,p]=Pa({prop:n,defaultProp:o??!1,onChange:l,caller:LI}),[h,g]=D.useState(null),[y,v]=D.useState(null),b=D.useRef(!1),w=!h||(!!i||!!h.closest("form")),x={checked:f,disabled:a,setChecked:p,control:h,setControl:g,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:!XI(o)&&o,isFormControl:w,bubbleInput:y,setBubbleInput:v};return m.jsx($I,{scope:t,...x,children:QI(d)?d(x):r})}var BI="CheckboxTrigger",UI=D.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:s,checked:l,required:u,setControl:c,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:h}=HI(BI,e),g=Ea(o,c),y=D.useRef(l);return D.useEffect(()=>{const e=a?.form;if(e){const t=()=>d(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[a,d]),m.jsx(La.button,{type:"button",role:"checkbox","aria-checked":XI(l)?"mixed":l,"aria-required":u,"data-state":ZI(l),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:g,onKeyDown:Sa(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:Sa(n,e=>{d(e=>!!XI(e)||!e),h&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});UI.displayName=BI;var WI=D.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l,onCheckedChange:u,form:c,...d}=e;return m.jsx(VI,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:u,name:r,form:c,value:l,internal_do_not_use_render:({isFormControl:e})=>m.jsxs(m.Fragment,{children:[m.jsx(UI,{...d,ref:t,__scopeCheckbox:n}),e&&m.jsx(KI,{__scopeCheckbox:n})]})})});WI.displayName=LI;var qI="CheckboxIndicator",YI=D.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=HI(qI,n);return m.jsx(Rl,{present:r||XI(a.checked)||!0===a.checked,children:m.jsx(La.span,{"data-state":ZI(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});YI.displayName=qI;var GI="CheckboxBubbleInput",KI=D.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:l,name:u,value:c,form:d,bubbleInput:f,setBubbleInput:p}=HI(GI,e),h=Ea(n,p),g=sj(a),y=il(r);D.useEffect(()=>{const e=f;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set,r=!o.current;if(g!==a&&n){const t=new Event("click",{bubbles:r});e.indeterminate=XI(a),n.call(e,!XI(a)&&a),e.dispatchEvent(t)}},[f,g,a,o]);const v=D.useRef(!XI(a)&&a);return m.jsx(La.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:l,name:u,value:c,form:d,...t,tabIndex:-1,ref:h,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function QI(e){return"function"==typeof e}function XI(e){return"indeterminate"===e}function ZI(e){return XI(e)?"indeterminate":e?"checked":"unchecked"}KI.displayName=GI;const JI=D.forwardRef(({className:e,...t},n)=>m.jsx(WI,{ref:n,className:ma("peer h-5 w-5 shrink-0 border border-[#7E8299] ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary rounded-[7px] data-[state=checked]:text-neutral-50 dark:border-neutral-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300 dark:data-[state=checked]:bg-neutral-50 data-[state=checked]:border-primary dark:data-[state=checked]:text-neutral-900 bg-white",e),...t,children:m.jsx(YI,{className:ma("flex items-center justify-center text-current"),children:m.jsx(Kd,{className:"h-4 w-4"})})}));JI.displayName=WI.displayName;const eA=({returnSelectedManagers:e})=>{const[t,n]=D.useState(!1),[r,o]=D.useState({}),[a,i]=D.useState(""),{apiKey:s}=Jn(),{data:l,isLoading:u}=yx(["item-managers",s],"/manager/get_unpaginated",{enabled:!!s}),c=l?.data?.data||[],d=D.useMemo(()=>{if(!a)return c;const e=a.toLowerCase();return c.filter(t=>(t.name||"").toLowerCase().includes(e))},[c,a]);D.useEffect(()=>{if(console.log("Selected Managers Updated:",r),e){const t=Object.entries(r).map(([e,t])=>({manager_uuid:e,quantity:t}));e(t)}},[r]);const f=Object.keys(r).length;return m.jsx("div",{className:"w-full",children:m.jsxs(ik,{modal:!0,open:t,onOpenChange:n,children:[m.jsx(sk,{asChild:!0,children:m.jsxs(ck,{variant:"outline",role:"combobox","aria-expanded":t,className:"w-full justify-between h-12 bg-white border-neutral-200 text-neutral-700 hover:bg-neutral-50",children:[f>0?`${f} Manager${1===f?"":"s"} Selected`:"Select Managers",m.jsx(Jd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(lk,{align:"end",className:"w-[450px] p-0 bg-white",side:"bottom",children:m.jsxs(RS,{shouldFilter:!1,children:[m.jsx(PS,{placeholder:"Search managers...",value:a,onValueChange:i}),m.jsxs(TS,{children:[m.jsx(DS,{children:"No manager found."}),m.jsx(MS,{children:u?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map(e=>m.jsx(Ca,{className:"h-10 w-full"},e))}):m.jsx(PO,{className:"h-72",children:d?.map(e=>{const t=(e=>e.uuid||"")(e),n=(e=>e.name||"Unknown Manager")(e),a=!!r[t],i=r[t]||0;return m.jsxs(IS,{value:t+n,onSelect:()=>{var e;(e=t)&&(console.log("Toggling Manager:",e),o(t=>{const n={...t};return n[e]?delete n[e]:n[e]=1,n}))},className:ma("flex items-center gap-3 p-2 cursor-pointer transition-colors aria-selected:bg-neutral-100",a&&"bg-blue-50 aria-selected:bg-blue-100"),children:[m.jsx("div",{className:"pointer-events-none flex items-center justify-center",children:m.jsx(JI,{checked:a,className:ma(a?"bg-primary border-primary":"border-neutral-300")})}),m.jsx("div",{className:"flex-1 truncate font-medium text-neutral-700",children:n}),m.jsxs("div",{className:"flex items-center gap-2",onClick:e=>e.stopPropagation(),children:[m.jsx("span",{className:"text-xs text-neutral-400 font-medium",children:"Qty"}),m.jsx("input",{type:"number",min:"0",className:"w-20 h-8 rounded border border-neutral-300 px-2 text-sm focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary",placeholder:"0",value:a?i:"",disabled:!a,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),onChange:e=>{const n=parseFloat(e.target.value);((e,t)=>{e&&o(n=>({...n,[e]:t}))})(t,isNaN(n)?0:n)}})]})]},t)})})})]})]})})]})})};function tA({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=vx(),o=qn(),{apiKey:a}=Jn(),{data:i}=yx(["categories",a],"/inventory_metas/categories",{enabled:!!a}),{data:s}=yx(["itemunits",a],"/inventory_metas/units",{enabled:!!a}),{data:l}=yx(["itemtags",a],"/inventory_metas/tags",{enabled:!!a}),{data:u}=yx(["itemtypes",a],"/inventory_metas/types",{enabled:!!a}),{data:c}=yx(["locations",a],"/locations/get_integrated",{enabled:!!a}),d=i?.data?.data?.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))}))||[],f=s?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],p=l?.data?.data?.map(e=>({label:e.name,value:e.uuid})),h=c?.data?.data?.map(e=>({label:e.name,value:e.uuid})),g=u?.data?.data?.filter(e=>"products"===e.name||"services"===e.name).map(e=>({label:e.name,value:e.uuid}))||[],[y,v]=D.useState(""),[b,w]=M.useState([]),[x,C]=M.useState([]),[S,k]=D.useState(g?.[0]?.value||"");D.useEffect(()=>{const e=g.find(e=>e?.value===S)?.label||"";v(e)},[S]);const[_,E]=D.useState([]),[j,N]=D.useState([{name:"",itemunit_id:f?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:"",managers:[{manager_uuid:"",quantity:""}]}]),O=(e,t,n)=>{const r=[...j];r[n]={...r[n],[e]:t},N(r)},R={itemtype_id:S,itemcategory_id:b,tags:_,items:j,locations_uuid:x},P=["Item name","Item unit",..."services"!==y?["Quantity","Barcode"]:[],"Cost price (₦)","Selling price (₦)","Item Managers"],[T,I]=D.useState(!1),[A,F]=D.useState(!1);return m.jsxs(yk,{isOpen:e,onClose:t,title:"Quick create multiple items",className:"max-w-5xl",children:[m.jsxs("div",{className:"px-5 space-y-7 pb-5",children:[m.jsxs("div",{className:"grid grid-cols-3 gap-5 bg-gray-100 rounded-xl p-4",children:[m.jsx("div",{className:"col-span-3",children:m.jsx(DO,{label:"Locations",placeholder:"Search and Select locations",labelClass:"text-dark text-sm",options:h,values:x,onChange:C,showSearch:!0,showCount:!0,showMultiSelectValues:!0})}),m.jsx(dk,{label:"Item type",options:g,placeholder:"select item type",value:S,onValueChange:e=>k(e),required:!0,info:"Select the type of item you're creating (e.g., product, service, variations, kits ). This classification helps determine how the item is managed, displayed, or fulfilled."}),m.jsx(GN,{placeholder:"select categories",label:"Category",options:d,values:b,onChange:e=>w(e),showMultiSelectValues:!1,showCount:!0,info:"Select the category that best describes this item(s) (e.g., electronics, clothing, food). Categorizing items helps in organizing inventory and simplifies product management."}),m.jsx(DO,{label:"Item tag",placeholder:"Search and Select item tags",info:"Enter relevant keywords or labels for this item(s). Tags help in categorizing and making the item easier to find through search filters.",labelClass:"text-dark text-sm",options:p,values:_,onChange:E,showSearch:!0,showCount:!0,showMultiSelectValues:!1,actionLabel:"Create a new tag",actionLabelInfo:"Enter a new tag to help categorize the item. Tags are useful for organizing and making items easily searchable by specific attributes or keywords.",actionLabelAction:()=>I(!0)})]}),m.jsxs("div",{className:"space-y-2 overflow-auto",children:[m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-x-4 border-spacing-y-4",children:[m.jsx("thead",{children:m.jsx("tr",{children:P.map((e,t)=>m.jsx("th",{className:"text-dark text-sm font-medium text-left",children:m.jsxs("p",{className:"flex gap-1",children:[e,1===t?m.jsx(oj,{mode:"text",label:"",left_addon:bv.plus_squared2,onClick:()=>F(!0),className:" text-sm"}):null]})},t))})}),m.jsx("tbody",{className:"text-dark text-[15px] ",children:j.map((e,t)=>m.jsxs("tr",{children:[m.jsx("td",{className:"",children:m.jsx(RN,{type:"text",placeholder:"Enter item name",value:e.name,onChange:e=>O("name",e.target.value,t)})}),m.jsx("td",{children:m.jsx(dk,{options:f,placeholder:"select item unit",value:e.itemunit_id,onValueChange:e=>O("itemunit_id",e,t)})}),"services"!==y?m.jsxs(m.Fragment,{children:[m.jsx("td",{className:"",children:m.jsx(RN,{type:"number",placeholder:"0",value:e.quantity,onChange:e=>O("quantity",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(RN,{type:"text",placeholder:"Enter barcode",value:e.barcode,onChange:e=>O("barcode",e.target.value,t)})})]}):null,m.jsx("td",{className:"",children:m.jsx(RN,{type:"number",placeholder:"0.00",value:e.cost_price,onChange:e=>O("cost_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(RN,{type:"number",placeholder:"0.00",value:e.selling_price,onChange:e=>O("selling_price",e.target.value,t)})}),m.jsx("td",{children:m.jsx(eA,{returnSelectedManagers:e=>{O("managers",e,t),console.log("Selected managers for item index",t,":",e)}})}),m.jsx("td",{className:"",children:m.jsx("button",{onClick:()=>(e=>{const t=j.filter((t,n)=>n!==e);N(t)})(t),disabled:1===j.length,className:"disabled:cursor-not-allowed disabled:opacity-70",children:bv.trash2})})]},t))})]}),m.jsx("div",{className:"flex justify-between items-center gap-3",children:m.jsx(oj,{mode:"text",label:"Add more",left_addon:bv.plus_squared2,onClick:()=>{N(e=>[...e,{name:"",itemunit_id:f?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:"",managers:[{manager_uuid:"",quantity:""}]}])},className:"font-medium text-sm ml-4"})})]})]}),m.jsxs("div",{className:"flex justify-between items-center px-5 sticky bottom-0 bg-white py-5 border-t ",children:[m.jsxs("button",{className:"text-primary text-sm font-medium flex items-center gap-1",children:[bv.question," Need help?"]}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(oj,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t}),m.jsx(oj,{label:"Create Items",onClick:()=>{n({url:"/items/create_multiple",payload:R},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),t&&t()}})},loading:r})]})]}),m.jsx(AI,{isOpen:T,onClose:()=>I(!1)}),m.jsx(FI,{isOpen:A,onClose:()=>F(!1)})]})}function nA({isOpen:e,onClose:t,currentTab:n,loading:r,filter:o,setFiltering:a}){const[i,s]=D.useState(""),[l]=YN(i,1e3),{apiKey:u}=Jn(),{data:c}=yx(["categories",u],"/inventory_metas/categories",{enabled:!!u}),{data:d}=yx(["itemtypes",u],"/inventory_metas/types",{enabled:!!u}),{data:f}=yx(["itemunits",u],"/inventory_metas/units",{enabled:!!u}),{data:p}=yx(["suppliers",l],i?`/suppliers/search/${i}/all`:"/suppliers",{enabled:!!u}),{data:h}=yx(["itembrands"],"/inventory_metas/brands",{enabled:!!u}),g=p?.data?.data?.map(e=>({label:e?.name,value:e?.uuid})),y=h?.data?.data?.map(e=>({label:e.name,value:e.uuid})),[v,b]=D.useState(""),[w]=YN(v,1e3),{data:x}=yx(["itemtags",u,w],"/inventory_metas/tags",{enabled:!!u&&!!w}),C=x?.data?.data?.map(e=>({label:e.name,value:e.uuid})),S=c?.data?.data.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))})),k=d?.data?.data?.map(e=>({label:e.name,value:e.uuid})),_=f?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],[E,j]=D.useState({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),N=(e,t)=>{j(n=>({...n,[e]:t}))};return m.jsx(yk,{isOpen:e,onClose:t,children:m.jsxs("div",{className:"px-8",children:[m.jsxs("div",{className:"flex justify-between items-center sticky top-0 py-5 bg-white",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-lg",children:"Item Filter"}),m.jsxs("button",{className:"text-danger text-sm font-medium inline-flex items-center",onClick:()=>{j({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),a(!1),t&&t()},children:[m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M11.175 9.99997L14.1667 7.0333C14.3258 6.87196 14.4143 6.65401 14.4128 6.42741C14.4112 6.2008 14.3197 5.98409 14.1583 5.82497C13.997 5.66584 13.779 5.57731 13.5524 5.57888C13.3258 5.58044 13.1091 5.67196 12.95 5.8333L10 8.82497L7.05 5.89163C6.89387 5.73642 6.68266 5.6493 6.4625 5.6493C6.24235 5.6493 6.03114 5.73642 5.875 5.89163C5.79689 5.9691 5.7349 6.06127 5.69259 6.16282C5.65028 6.26437 5.6285 6.37329 5.6285 6.4833C5.6285 6.59331 5.65028 6.70223 5.69259 6.80378C5.7349 6.90533 5.79689 6.9975 5.875 7.07497L8.825 9.99997L5.83333 12.9666C5.6742 13.128 5.58568 13.3459 5.58725 13.5725C5.58881 13.7991 5.68033 14.0158 5.84167 14.175C6.00301 14.3341 6.22095 14.4226 6.44756 14.4211C6.67417 14.4195 6.89087 14.328 7.05 14.1666L10 11.175L12.95 14.1083C13.1061 14.2635 13.3173 14.3506 13.5375 14.3506C13.7577 14.3506 13.9689 14.2635 14.125 14.1083C14.2031 14.0308 14.2651 13.9387 14.3074 13.8371C14.3497 13.7356 14.3715 13.6266 14.3715 13.5166C14.3715 13.4066 14.3497 13.2977 14.3074 13.1962C14.2651 13.0946 14.2031 13.0024 14.125 12.925L11.175 9.99997Z",fill:"#F1416C"})}),"Reset"," "]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-5",children:[m.jsx(GN,{options:S,label:"Categories",placeholder:"Select categories",values:E.category,onChange:e=>N("category",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0}),m.jsx(DO,{options:g,label:"Supplier",placeholder:"Select Suppliers",values:E.supplier,onChange:e=>N("supplier",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>s(e.target.value)}),m.jsx(DO,{options:k,label:"Item types",placeholder:"Select types",values:E.type,onChange:e=>N("type",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(DO,{options:_,label:"Item units",placeholder:"Select item unit",values:E.unit,onChange:e=>N("unit",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(DO,{options:y,label:"Item brands",placeholder:"Select item brands",values:E.brands,onChange:e=>N("brands",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(DO,{options:C,label:"Item tag",placeholder:"Select item tag",values:E.tags,onChange:e=>N("tags",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>b(e.target.value)})]}),m.jsxs("div",{className:"flex justify-end gap-2.5 sticky bottom-0 py-5 bg-white",children:[m.jsx(oj,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:r}),m.jsx(oj,{label:"Apply filter",onClick:()=>o(E),loading:r})]})]})})}let rA={};function oA(e){rA=e}const aA={inventory:({showStats:e=!0})=>{const[t,n]=M.useState(),{currentPage:r,perview:o,inline_update:a}=ne(e=>e.app),[i,s]=D.useState("all"),[l,u]=D.useState(!1),[c,d]=D.useState("all"),[f,p]=D.useState(""),[h]=YN(f,1e3),[g,y]=D.useState(!1),{apiKey:v}=Jn(),{mutate:b,isPending:w}=vx(),{data:x,isFetching:C}=yx(["items",o.toString(),r?.toString(),i,h,v],h?`/items/search?page=${r}&paginate=${o}¶m=${h}&for=${i}&filter=all`:`/items?page=${r}&paginate=${o}&status=${i}`,{enabled:!!v}),[S,k]=D.useState(),_=e=>{y(!0),b({url:`/inventory/item/filter?page=${r}&perview=${o}`,payload:e},{onSuccess(e,t,n){k(e),u(!1)}})},[E,j]=D.useState({for:i,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]});M.useEffect(()=>{g&&!f&&_(E)},[f,a,o,r,C]);const N=g?S?.data[0]:x?.data?.[0]||[],O=N?.data?.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,other_locations:e?.other_locations,itemcode:e?.itemcode,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images?.[0].image:xC,barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}))||[],{data:R,isFetching:P}=yx(["items-tab"],"/items/count",{enabled:!!v}),T=R?.data,I=[{label:"all",count:T?.all||0,action:()=>s("all")},{label:"published",count:T?.published||0,action:()=>s("published")},{label:"out of stock",count:T?.out_of_stock||0,action:()=>s("out_of_stock")},{label:"draft",count:T?.draft||0,action:()=>s("draft")},{label:"expiring",count:T?.expiring||0,action:()=>s("expiring")},{label:"expired",count:T?.expired||0,action:()=>s("expired")}],[A,F]=D.useState(!1);return m.jsxs(bC,{className:"px-4 py-6 flex flex-col gap-8",children:[m.jsx(mk,{tabs:I,loading:C}),m.jsxs("div",{className:" flex items-center justify-between md:flex-row flex-col flex-wrap gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(WN,{placeholder:"Search Item name, barcode or sku",value:f,onChange:e=>p(e.target.value)}),C?m.jsx(Ca,{className:"w-20 h-6"}):m.jsxs("p",{className:"text-dark text-sm font-medium",children:[N?.meta?.total??0," ",m.jsx("span",{className:"text-gray-700",children:"Items"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(oj,{label:"Filter",left_addon:M.cloneElement(bv.filter_edit,{fill:"#5E6278"}),onClick:()=>u(!0),className:"font-medium bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm h-12"}),m.jsx(oj,{label:"Create New",left_addon:bv.plus_squared,className:"font-medium text-sm h-12",onClick:()=>F(!0)})]})]}),e?m.jsx(UN,{loading:C,data:x?.data?.[1],meta:N?.meta}):null,m.jsx(Cv,{loading:C,columns:TN,data:O,emptyData:0===O.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:N?.meta}),m.jsx(nA,{isOpen:l,onClose:()=>u(!1),currentTab:i,loading:w,filter:e=>{_(e),j(e)},setFiltering:y}),A?m.jsx(tA,{isOpen:A,onClose:()=>F(!1)}):null]})}};async function iA(e,t,n={}){const r=aA[e];if(!r)return void console.error(`SimpooSDK: Widget "${e}" not found.`);const o=document.querySelector(t);if(!o)throw new Error(`Container "${t}" not found!`);try{await new Promise((e,t)=>{const n=document.querySelector("#simpoo-sdk-styles");if(n)return e(n);const r=document.createElement("link");r.id="simpoo-sdk-styles",r.rel="stylesheet",r.href="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css",r.onload=()=>e(r),r.onerror=()=>{document.querySelector(`#${r.id}`)||document.head.appendChild(r),e(r)};const o=setTimeout(()=>{document.querySelector(`#${r.id}`)||document.head.appendChild(r),e(r)},5e3);document.head.appendChild(r),r.addEventListener("load",()=>clearTimeout(o)),r.addEventListener("error",()=>clearTimeout(o))})}catch(e){console.warn("SimpooSDK: stylesheet failed to load, continuing to render.",e)}const a=document.createElement("div");a.className="simpoo-sdk",o.appendChild(a);T.createRoot(a).render(m.jsx(er,{apiKey:rA.apiKey||"",children:m.jsx(r,{...n})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:oA,renderWidget:iA}),e.init=oA,e.renderWidget=iA});
|
|
245
245
|
//# sourceMappingURL=simpoo-sdk.js.map
|