@drjaat/react-video-editor
Version:
A React video editor component that can be integrated into any React application
5 lines • 2.23 MB
JavaScript
(function(Ce,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],x):(Ce=typeof globalThis<"u"?globalThis:Ce||self,x(Ce.ReactVideoEditor={},Ce.jsxRuntime,Ce.React,Ce.ReactDOM))})(this,function(Ce,x,C,_c){"use strict";var yIt=Object.defineProperty;var bIt=(Ce,x,C)=>x in Ce?yIt(Ce,x,{enumerable:!0,configurable:!0,writable:!0,value:C}):Ce[x]=C;var Yt=(Ce,x,C)=>bIt(Ce,typeof x!="symbol"?x+"":x,C);var sC,oC,aC;function Ow(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const km=Ow(x),Z=Ow(C),O9=Ow(_c);function B9(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Tm(...e){return t=>{let r=!1;const n=e.map(i=>{const s=B9(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():B9(e[i],null)}}}}function Xe(...e){return Z.useCallback(Tm(...e),e)}function Sc(e){const t=RV(e),r=Z.forwardRef((n,i)=>{const{children:s,...a}=n,o=Z.Children.toArray(s),c=o.find(qV);if(c){const d=c.props.children,f=o.map(p=>p===c?Z.Children.count(d)>1?Z.Children.only(null):Z.isValidElement(d)?d.props.children:null:p);return x.jsx(t,{...a,ref:i,children:Z.isValidElement(d)?Z.cloneElement(d,void 0,f):null})}return x.jsx(t,{...a,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}var GV=Sc("Slot");function RV(e){const t=Z.forwardRef((r,n)=>{const{children:i,...s}=r;if(Z.isValidElement(i)){const a=QV(i),o=$V(s,i.props);return i.type!==Z.Fragment&&(o.ref=n?Tm(n,a):a),Z.cloneElement(i,o)}return Z.Children.count(i)>1?Z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KV=Symbol("radix.slottable");function qV(e){return Z.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KV}function $V(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...o)=>{const c=s(...o);return i(...o),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function QV(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function j9(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=j9(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Cm(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=j9(e))&&(n&&(n+=" "),n+=t);return n}const XV=Object.freeze(Object.defineProperty({__proto__:null,clsx:Cm,default:Cm},Symbol.toStringTag,{value:"Module"})),L9=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,F9=Cm,Bw=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return F9(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(d=>{const f=r==null?void 0:r[d],p=s==null?void 0:s[d];if(f===null)return null;const l=L9(f)||L9(p);return i[d][l]}),o=r&&Object.entries(r).reduce((d,f)=>{let[p,l]=f;return l===void 0||(d[p]=l),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:l,...u}=f;return Object.entries(u).every(h=>{let[g,v]=h;return Array.isArray(v)?v.includes({...s,...o}[g]):{...s,...o}[g]===v})?[...d,p,l]:d},[]);return F9(e,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},jw="-",JV=e=>{const t=eH(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const o=a.split(jw);return o[0]===""&&o.length!==1&&o.shift(),z9(o,t)||tH(a)},getConflictingClassGroupIds:(a,o)=>{const c=r[a]||[];return o&&n[a]?[...c,...n[a]]:c}}},z9=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?z9(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(jw);return(a=t.validators.find(({validator:o})=>o(s)))==null?void 0:a.classGroupId},Z9=/^\[(.+)\]$/,tH=e=>{if(Z9.test(e)){const t=Z9.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},eH=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return nH(Object.entries(e.classGroups),r).forEach(([s,a])=>{Lw(a,n,s,t)}),n},Lw=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:U9(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(rH(i)){Lw(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,a])=>{Lw(a,U9(t,s),r,n)})})},U9=(e,t)=>{let r=e;return t.split(jw).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},rH=e=>e.isThemeGetter,nH=(e,t)=>t?e.map(([r,n])=>{const i=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,o])=>[t+a,o])):s);return[r,i]}):e,iH=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return i(s,a),a},set(s,a){r.has(s)?r.set(s,a):i(s,a)}}},W9="!",sH=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],s=t.length,a=o=>{const c=[];let d=0,f=0,p;for(let v=0;v<o.length;v++){let b=o[v];if(d===0){if(b===i&&(n||o.slice(v,v+s)===t)){c.push(o.slice(f,v)),f=v+s;continue}if(b==="/"){p=v;continue}}b==="["?d++:b==="]"&&d--}const l=c.length===0?o:o.substring(f),u=l.startsWith(W9),h=u?l.substring(1):l,g=p&&p>f?p-f:void 0;return{modifiers:c,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:g}};return r?o=>r({className:o,parseClassName:a}):a},oH=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},aH=e=>({cache:iH(e.cacheSize),parseClassName:sH(e),...JV(e)}),lH=/\s+/,cH=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,s=[],a=e.trim().split(lH);let o="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{modifiers:f,hasImportantModifier:p,baseClassName:l,maybePostfixModifierPosition:u}=r(d);let h=!!u,g=n(h?l.substring(0,u):l);if(!g){if(!h){o=d+(o.length>0?" "+o:o);continue}if(g=n(l),!g){o=d+(o.length>0?" "+o:o);continue}h=!1}const v=oH(f).join(":"),b=p?v+W9:v,w=b+g;if(s.includes(w))continue;s.push(w);const _=i(g,h);for(let S=0;S<_.length;++S){const k=_[S];s.push(b+k)}o=d+(o.length>0?" "+o:o)}return o};function uH(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=V9(t))&&(n&&(n+=" "),n+=r);return n}const V9=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=V9(e[n]))&&(r&&(r+=" "),r+=t);return r};function dH(e,...t){let r,n,i,s=a;function a(c){const d=t.reduce((f,p)=>p(f),e());return r=aH(d),n=r.cache.get,i=r.cache.set,s=o,o(c)}function o(c){const d=n(c);if(d)return d;const f=cH(c,r);return i(c,f),f}return function(){return s(uH.apply(null,arguments))}}const Sr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},H9=/^\[(?:([a-z-]+):)?(.+)\]$/i,fH=/^\d+\/\d+$/,pH=new Set(["px","full","screen"]),hH=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gH=/\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$/,mH=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vH=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=e=>Ju(e)||pH.has(e)||fH.test(e),hl=e=>td(e,"length",CH),Ju=e=>!!e&&!Number.isNaN(Number(e)),Fw=e=>td(e,"number",Ju),Ep=e=>!!e&&Number.isInteger(Number(e)),bH=e=>e.endsWith("%")&&Ju(e.slice(0,-1)),Ie=e=>H9.test(e),gl=e=>hH.test(e),wH=new Set(["length","size","percentage"]),xH=e=>td(e,wH,Y9),_H=e=>td(e,"position",Y9),SH=new Set(["image","url"]),kH=e=>td(e,SH,AH),TH=e=>td(e,"",IH),Mp=()=>!0,td=(e,t,r)=>{const n=H9.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},CH=e=>gH.test(e)&&!mH.test(e),Y9=()=>!1,IH=e=>vH.test(e),AH=e=>yH.test(e),EH=dH(()=>{const e=Sr("colors"),t=Sr("spacing"),r=Sr("blur"),n=Sr("brightness"),i=Sr("borderColor"),s=Sr("borderRadius"),a=Sr("borderSpacing"),o=Sr("borderWidth"),c=Sr("contrast"),d=Sr("grayscale"),f=Sr("hueRotate"),p=Sr("invert"),l=Sr("gap"),u=Sr("gradientColorStops"),h=Sr("gradientColorStopPositions"),g=Sr("inset"),v=Sr("margin"),b=Sr("opacity"),w=Sr("padding"),_=Sr("saturate"),S=Sr("scale"),k=Sr("sepia"),A=Sr("skew"),I=Sr("space"),M=Sr("translate"),N=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Ie,t],j=()=>[Ie,t],B=()=>["",ga,hl],F=()=>["auto",Ju,Ie],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",Ie],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[Ju,Ie];return{cacheSize:500,separator:":",theme:{colors:[Mp],spacing:[ga,hl],blur:["none","",gl,Ie],brightness:K(),borderColor:[e],borderRadius:["none","","full",gl,Ie],borderSpacing:j(),borderWidth:B(),contrast:K(),grayscale:q(),hueRotate:K(),invert:q(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[bH,hl],inset:O(),margin:O(),opacity:K(),padding:j(),saturate:K(),scale:K(),sepia:q(),skew:K(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Ie]}],container:["container"],columns:[{columns:[gl]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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"],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:[...U(),Ie]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ep,Ie]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ie]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Ep,Ie]}],"grid-cols":[{"grid-cols":[Mp]}],"col-start-end":[{col:["auto",{span:["full",Ep,Ie]},Ie]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Mp]}],"row-start-end":[{row:["auto",{span:[Ep,Ie]},Ie]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ie]}],gap:[{gap:[l]}],"gap-x":[{"gap-x":[l]}],"gap-y":[{"gap-y":[l]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],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:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ie,t]}],"min-w":[{"min-w":[Ie,t,"min","max","fit"]}],"max-w":[{"max-w":[Ie,t,"none","full","min","max","fit","prose",{screen:[gl]},gl]}],h:[{h:[Ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",gl,hl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fw]}],"font-family":[{font:[Mp]}],"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:["tighter","tight","normal","wide","wider","widest",Ie]}],"line-clamp":[{"line-clamp":["none",Ju,Fw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ga,Ie]}],"list-image":[{"list-image":["none",Ie]}],"list-style-type":[{list:["none","disc","decimal",Ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ga,hl]}],"underline-offset":[{"underline-offset":["auto",ga,Ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),_H]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xH]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kH]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:H()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[ga,Ie]}],"outline-w":[{outline:[ga,hl]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[ga,hl]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",gl,TH]}],"shadow-color":[{shadow:[Mp]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",gl,Ie]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[_]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ie]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",Ie]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ep,Ie]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",Ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ga,hl,Fw]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function Le(...e){return EH(Cm(e))}const G9=Bw("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),pe=Z.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},s)=>{const a=n?GV:"button";return x.jsx(a,{className:Le(G9({variant:t,size:r,className:e})),ref:s,...i})});pe.displayName="Button";var zw=function(e,t){return zw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},zw(e,t)};function Np(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zw(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Zw(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Uw(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}function Ww(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function Do(e){return typeof e=="function"}function R9(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Vw=R9(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}});function Hw(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Im=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=Zw(a),c=o.next();!c.done;c=o.next()){var d=c.value;d.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(Do(f))try{f()}catch(g){s=g instanceof Vw?g.errors:[g]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var l=Zw(p),u=l.next();!u.done;u=l.next()){var h=u.value;try{$9(h)}catch(g){s=s??[],g instanceof Vw?s=Ww(Ww([],Uw(s)),Uw(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}if(s)throw new Vw(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)$9(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Hw(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Hw(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),K9=Im.EMPTY;function q9(e){return e instanceof Im||e&&"closed"in e&&Do(e.remove)&&Do(e.add)&&Do(e.unsubscribe)}function $9(e){Do(e)?e():e.unsubscribe()}var MH={Promise:void 0},NH={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Ww([e,t],Uw(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function PH(e){NH.setTimeout(function(){throw e})}function Q9(){}function Am(e){e()}var Yw=function(e){Np(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,q9(r)&&r.add(n)):n.destination=BH,n}return t.create=function(r,n,i){return new Gw(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Im),DH=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Em(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Em(n)}else Em(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Em(r)}},e}(),Gw=function(e){Np(t,e);function t(r,n,i){var s=e.call(this)||this,a;return Do(r)||!r?a={next:r??void 0,error:n??void 0,complete:i??void 0}:a=r,s.destination=new DH(a),s}return t}(Yw);function Em(e){PH(e)}function OH(e){throw e}var BH={closed:!0,next:Q9,error:OH,complete:Q9},jH=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function LH(e){return e}function FH(e){return e.length===0?LH:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var X9=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=ZH(t)?t:new Gw(t,r,n);return Am(function(){var a=i,o=a.operator,c=a.source;s.add(o?o.call(s,c):c?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=J9(r),new r(function(i,s){var a=new Gw({next:function(o){try{t(o)}catch(c){s(c),a.unsubscribe()}},error:s,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[jH]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return FH(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=J9(t),new t(function(n,i){var s;r.subscribe(function(a){return s=a},function(a){return i(a)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function J9(e){var t;return(t=e??MH.Promise)!==null&&t!==void 0?t:Promise}function zH(e){return e&&Do(e.next)&&Do(e.error)&&Do(e.complete)}function ZH(e){return e&&e instanceof Yw||zH(e)&&q9(e)}function UH(e){return Do(e==null?void 0:e.lift)}function WH(e){return function(t){if(UH(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function VH(e,t,r,n,i){return new HH(e,t,r,n,i)}var HH=function(e){Np(t,e);function t(r,n,i,s,a,o){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=o,c._next=n?function(d){try{n(d)}catch(f){r.error(f)}}:e.prototype._next,c._error=s?function(d){try{s(d)}catch(f){r.error(f)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(d){r.error(d)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Yw),YH=R9(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tI=function(e){Np(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new eI(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new YH},t.prototype.next=function(r){var n=this;Am(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Zw(n.currentObservers),o=a.next();!o.done;o=a.next()){var c=o.value;c.next(r)}}catch(d){i={error:d}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Am(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Am(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,a=i.isStopped,o=i.observers;return s||a?K9:(this.currentObservers=null,o.push(r),new Im(function(){n.currentObservers=null,Hw(o,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,a=n.isStopped;i?r.error(s):a&&r.complete()},t.prototype.asObservable=function(){var r=new X9;return r.source=this,r},t.create=function(r,n){return new eI(r,n)},t}(X9),eI=function(e){Np(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:K9},t}(tI);function Wi(e,t){return WH(function(r,n){var i=0;r.subscribe(VH(n,function(s){return e.call(t,s,i++)&&n.next(s)}))})}let Rw=null;function GH(){if(!Rw){const e=new tI;Rw={subject:e,dispatch:(t,r)=>e.next({key:t,value:r})}}return Rw}const{subject:Vi,dispatch:Nt}=GH();var RH=Object.defineProperty,KH=(e,t,r)=>t in e?RH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ed=(e,t,r)=>KH(e,typeof t!="symbol"?t+"":t,r),Kw=function(e,t){return Kw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Kw(e,t)};function Pp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kw(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function qw(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $w(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}function Qw(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function ma(e){return typeof e=="function"}function rI(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Xw=rI(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}});function Jw(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Mm=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=qw(a),c=o.next();!c.done;c=o.next()){var d=c.value;d.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(ma(f))try{f()}catch(g){s=g instanceof Xw?g.errors:[g]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var l=qw(p),u=l.next();!u.done;u=l.next()){var h=u.value;try{sI(h)}catch(g){s=s??[],g instanceof Xw?s=Qw(Qw([],$w(s)),$w(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}if(s)throw new Xw(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)sI(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Jw(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Jw(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),nI=Mm.EMPTY;function iI(e){return e instanceof Mm||e&&"closed"in e&&ma(e.remove)&&ma(e.add)&&ma(e.unsubscribe)}function sI(e){ma(e)?e():e.unsubscribe()}var qH={Promise:void 0},$H={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Qw([e,t],$w(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function QH(e){$H.setTimeout(function(){throw e})}function oI(){}function Nm(e){e()}var aI=function(e){Pp(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,iI(r)&&r.add(n)):n.destination=tY,n}return t.create=function(r,n,i){return new t1(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Mm),XH=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Pm(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Pm(n)}else Pm(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Pm(r)}},e}(),t1=function(e){Pp(t,e);function t(r,n,i){var s=e.call(this)||this,a;return ma(r)||!r?a={next:r??void 0,error:n??void 0,complete:i??void 0}:a=r,s.destination=new XH(a),s}return t}(aI);function Pm(e){QH(e)}function JH(e){throw e}var tY={closed:!0,next:oI,error:JH,complete:oI},eY=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function rY(e){return e}function nY(e){return e.length===0?rY:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var lI=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=sY(t)?t:new t1(t,r,n);return Nm(function(){var a=i,o=a.operator,c=a.source;s.add(o?o.call(s,c):c?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=cI(r),new r(function(i,s){var a=new t1({next:function(o){try{t(o)}catch(c){s(c),a.unsubscribe()}},error:s,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[eY]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return nY(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=cI(t),new t(function(n,i){var s;r.subscribe(function(a){return s=a},function(a){return i(a)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function cI(e){var t;return(t=e??qH.Promise)!==null&&t!==void 0?t:Promise}function iY(e){return e&&ma(e.next)&&ma(e.error)&&ma(e.complete)}function sY(e){return e&&e instanceof aI||iY(e)&&iI(e)}var oY=rI(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),uI=function(e){Pp(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new dI(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new oY},t.prototype.next=function(r){var n=this;Nm(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=qw(n.currentObservers),o=a.next();!o.done;o=a.next()){var c=o.value;c.next(r)}}catch(d){i={error:d}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Nm(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Nm(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,a=i.isStopped,o=i.observers;return s||a?nI:(this.currentObservers=null,o.push(r),new Mm(function(){n.currentObservers=null,Jw(o,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,a=n.isStopped;i?r.error(s):a&&r.complete()},t.prototype.asObservable=function(){var r=new lI;return r.source=this,r},t.create=function(r,n){return new dI(r,n)},t}(lI),dI=function(e){Pp(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:nI},t}(uI),fI=function(e){Pp(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,i=r.thrownError,s=r._value;if(n)throw i;return this._throwIfClosed(),s},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(uI),ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dm={exports:{}};Dm.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",i=1,s=2,a=9007199254740991,o="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",f="[object Boolean]",p="[object Date]",l="[object Error]",u="[object Function]",h="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Null]",w="[object Object]",_="[object Promise]",S="[object Proxy]",k="[object RegExp]",A="[object Set]",I="[object String]",M="[object Symbol]",N="[object Undefined]",E="[object WeakMap]",O="[object ArrayBuffer]",j="[object DataView]",B="[object Float32Array]",F="[object Float64Array]",U="[object Int8Array]",H="[object Int16Array]",$="[object Int32Array]",R="[object Uint8Array]",q="[object Uint8ClampedArray]",W="[object Uint16Array]",K="[object Uint32Array]",dt=/[\\^$.*+?()[\]{}|]/g,J=/^\[object .+?Constructor\]$/,Q=/^(?:0|[1-9]\d*)$/,X={};X[B]=X[F]=X[U]=X[H]=X[$]=X[R]=X[q]=X[W]=X[K]=!0,X[o]=X[c]=X[O]=X[f]=X[j]=X[p]=X[l]=X[u]=X[g]=X[v]=X[w]=X[k]=X[A]=X[I]=X[E]=!1;var et=typeof ys=="object"&&ys&&ys.Object===Object&&ys,rt=typeof self=="object"&&self&&self.Object===Object&&self,ct=et||rt||Function("return this")(),ht=t&&!t.nodeType&&t,yt=ht&&!0&&e&&!e.nodeType&&e,Dt=yt&&yt.exports===ht,lt=Dt&&et.process,ft=function(){try{return lt&<.binding&<.binding("util")}catch{}}(),Lt=ft&&ft.isTypedArray;function Qt(D,Y){for(var nt=-1,wt=D==null?0:D.length,ve=0,Jt=[];++nt<wt;){var He=D[nt];Y(He,nt,D)&&(Jt[ve++]=He)}return Jt}function me(D,Y){for(var nt=-1,wt=Y.length,ve=D.length;++nt<wt;)D[ve+nt]=Y[nt];return D}function Ut(D,Y){for(var nt=-1,wt=D==null?0:D.length;++nt<wt;)if(Y(D[nt],nt,D))return!0;return!1}function Ft(D,Y){for(var nt=-1,wt=Array(D);++nt<D;)wt[nt]=Y(nt);return wt}function ze(D){return function(Y){return D(Y)}}function ar(D,Y){return D.has(Y)}function we(D,Y){return D==null?void 0:D[Y]}function Zt(D){var Y=-1,nt=Array(D.size);return D.forEach(function(wt,ve){nt[++Y]=[ve,wt]}),nt}function qt(D,Y){return function(nt){return D(Y(nt))}}function bt(D){var Y=-1,nt=Array(D.size);return D.forEach(function(wt){nt[++Y]=wt}),nt}var Mt=Array.prototype,ae=Function.prototype,Gt=Object.prototype,le=ct["__core-js_shared__"],Ee=ae.toString,Ve=Gt.hasOwnProperty,nn=function(){var D=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return D?"Symbol(src)_1."+D:""}(),vn=Gt.toString,xe=RegExp("^"+Ee.call(Ve).replace(dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fr=Dt?ct.Buffer:void 0,Pr=ct.Symbol,yn=ct.Uint8Array,Dr=Gt.propertyIsEnumerable,xr=Mt.splice,_r=Pr?Pr.toStringTag:void 0,Or=Object.getOwnPropertySymbols,Nn=fr?fr.isBuffer:void 0,Zr=qt(Object.keys,Object),ei=ri(ct,"DataView"),ji=ri(ct,"Map"),Li=ri(ct,"Promise"),Bs=ri(ct,"Set"),xi=ri(ct,"WeakMap"),Pn=ri(Object,"create"),us=Wn(ei),he=Wn(ji),_e=Wn(Li),Ur=Wn(Bs),Dn=Wn(xi),To=Pr?Pr.prototype:void 0,Co=To?To.valueOf:void 0;function Wr(D){var Y=-1,nt=D==null?0:D.length;for(this.clear();++Y<nt;){var wt=D[Y];this.set(wt[0],wt[1])}}function L(){this.__data__=Pn?Pn(null):{},this.size=0}function at(D){var Y=this.has(D)&&delete this.__data__[D];return this.size-=Y?1:0,Y}function gt(D){var Y=this.__data__;if(Pn){var nt=Y[D];return nt===n?void 0:nt}return Ve.call(Y,D)?Y[D]:void 0}function At(D){var Y=this.__data__;return Pn?Y[D]!==void 0:Ve.call(Y,D)}function Vt(D,Y){var nt=this.__data__;return this.size+=this.has(D)?0:1,nt[D]=Pn&&Y===void 0?n:Y,this}Wr.prototype.clear=L,Wr.prototype.delete=at,Wr.prototype.get=gt,Wr.prototype.has=At,Wr.prototype.set=Vt;function Bt(D){var Y=-1,nt=D==null?0:D.length;for(this.clear();++Y<nt;){var wt=D[Y];this.set(wt[0],wt[1])}}function zt(){this.__data__=[],this.size=0}function Ot(D){var Y=this.__data__,nt=tl(Y,D);if(nt<0)return!1;var wt=Y.length-1;return nt==wt?Y.pop():xr.call(Y,nt,1),--this.size,!0}function Ze(D){var Y=this.__data__,nt=tl(Y,D);return nt<0?void 0:Y[nt][1]}function de(D){return tl(this.__data__,D)>-1}function fe(D,Y){var nt=this._