diff --git a/project.json b/project.json index 0da27d60c..aa0ed9666 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1733256381992,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"babel-jest":"29.7.0"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.2.3"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/html-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/html","portableStoriesFileCount":0,"storybookVersion":"8.3.2","storybookVersionSpecifier":"^8.2.9","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"8.3.2"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-interactions":{"version":"8.3.2"},"@storybook/addon-links":{"version":"8.3.2"},"@storybook/addon-mdx-gfm":{"version":"8.3.2"},"@storybook/addon-storysource":{"version":"8.3.2"},"@storybook/blocks":{"version":"8.3.2"},"@storybook/html":{"version":"8.3.2"},"@storybook/html-webpack5":{"version":"8.3.2"},"@storybook/manager-api":{"version":"8.3.2"},"@storybook/test":{"version":"8.3.2"},"@storybook/theming":{"version":"8.3.2"},"storybook":{"version":"8.3.2"}},"addons":{"@storybook/addon-essentials":{"options":{"backgrounds":false,"outline":false,"measure":false,"viewport":false},"version":"8.3.2"},"@storybook/addon-docs":{"version":"8.3.2"},"$SNIP/node_modules/@storybook/addon-designs":{"version":null},"$SNIP/node_modules/@storybook/addon-storysource":{"version":null},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"}}} +{"generatedAt":1734469668636,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"babel-jest":"29.7.0"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.2.3"},"preview":{"usesGlobals":true},"framework":{"name":"@storybook/html-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/html","portableStoriesFileCount":0,"storybookVersion":"8.3.2","storybookVersionSpecifier":"^8.2.9","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"8.3.2"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-interactions":{"version":"8.3.2"},"@storybook/addon-links":{"version":"8.3.2"},"@storybook/addon-mdx-gfm":{"version":"8.3.2"},"@storybook/addon-storysource":{"version":"8.3.2"},"@storybook/blocks":{"version":"8.3.2"},"@storybook/html":{"version":"8.3.2"},"@storybook/html-webpack5":{"version":"8.3.2"},"@storybook/manager-api":{"version":"8.3.2"},"@storybook/test":{"version":"8.3.2"},"@storybook/theming":{"version":"8.3.2"},"storybook":{"version":"8.3.2"}},"addons":{"@storybook/addon-essentials":{"options":{"backgrounds":false,"outline":false,"measure":false,"viewport":false},"version":"8.3.2"},"@storybook/addon-docs":{"version":"8.3.2"},"$SNIP/node_modules/@storybook/addon-designs":{"version":null},"$SNIP/node_modules/@storybook/addon-storysource":{"version":null},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"}}} diff --git a/sb-addons/storybook-6/manager-bundle.js b/sb-addons/storybook-6/manager-bundle.js index 33daea2fa..0b4b937a9 100644 --- a/sb-addons/storybook-6/manager-bundle.js +++ b/sb-addons/storybook-6/manager-bundle.js @@ -1,5 +1,5 @@ try{ -(()=>{var XC=Object.create;var qn=Object.defineProperty;var KC=Object.getOwnPropertyDescriptor;var JC=Object.getOwnPropertyNames;var QC=Object.getPrototypeOf,ZC=Object.prototype.hasOwnProperty;var Ft=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var Vt=(r,e)=>()=>(r&&(e=r(r=0)),e);var H=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),rr=(r,e)=>{for(var t in e)qn(r,t,{get:e[t],enumerable:!0})},cp=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of JC(e))!ZC.call(r,s)&&s!==t&&qn(r,s,{get:()=>e[s],enumerable:!(i=KC(e,s))||i.enumerable});return r};var ye=(r,e,t)=>(t=r!=null?XC(QC(r)):{},cp(e||!r||!r.__esModule?qn(t,"default",{value:r,enumerable:!0}):t,r)),e1=r=>cp(qn({},"__esModule",{value:!0}),r);var h=Vt(()=>{});var d=Vt(()=>{});var p=Vt(()=>{});var Rl={};rr(Rl,{Children:()=>Tl,Component:()=>ir,Fragment:()=>s1,Profiler:()=>n1,PureComponent:()=>o1,StrictMode:()=>a1,Suspense:()=>Cl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>l1,cloneElement:()=>Ue,createContext:()=>fi,createElement:()=>yp,createFactory:()=>u1,createRef:()=>c1,default:()=>z,forwardRef:()=>h1,isValidElement:()=>d1,lazy:()=>Al,memo:()=>hs,startTransition:()=>p1,unstable_act:()=>f1,useCallback:()=>ut,useContext:()=>El,useDebugValue:()=>g1,useDeferredValue:()=>m1,useEffect:()=>He,useId:()=>_1,useImperativeHandle:()=>y1,useInsertionEffect:()=>x1,useLayoutEffect:()=>Il,useMemo:()=>vr,useReducer:()=>b1,useRef:()=>Bt,useState:()=>Fe,useSyncExternalStore:()=>v1,useTransition:()=>S1,version:()=>w1});var z,Tl,ir,s1,n1,o1,a1,Cl,l1,Ue,fi,yp,u1,c1,h1,d1,Al,hs,p1,f1,ut,El,g1,m1,He,_1,y1,x1,Il,vr,b1,Bt,Fe,v1,S1,w1,Ge=Vt(()=>{h();d();p();z=__REACT__,{Children:Tl,Component:ir,Fragment:s1,Profiler:n1,PureComponent:o1,StrictMode:a1,Suspense:Cl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:l1,cloneElement:Ue,createContext:fi,createElement:yp,createFactory:u1,createRef:c1,forwardRef:h1,isValidElement:d1,lazy:Al,memo:hs,startTransition:p1,unstable_act:f1,useCallback:ut,useContext:El,useDebugValue:g1,useDeferredValue:m1,useEffect:He,useId:_1,useImperativeHandle:y1,useInsertionEffect:x1,useLayoutEffect:Il,useMemo:vr,useReducer:b1,useRef:Bt,useState:Fe,useSyncExternalStore:v1,useTransition:S1,version:w1}=__REACT__});var Tp=H(Jn=>{"use strict";h();d();p();var T1=(Ge(),e1(Rl)),C1=Symbol.for("react.element"),A1=Symbol.for("react.fragment"),E1=Object.prototype.hasOwnProperty,I1=T1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R1={key:!0,ref:!0,__self:!0,__source:!0};function wp(r,e,t){var i,s={},n=null,o=null;t!==void 0&&(n=""+t),e.key!==void 0&&(n=""+e.key),e.ref!==void 0&&(o=e.ref);for(i in e)E1.call(e,i)&&!R1.hasOwnProperty(i)&&(s[i]=e[i]);if(r&&r.defaultProps)for(i in e=r.defaultProps,e)s[i]===void 0&&(s[i]=e[i]);return{$$typeof:C1,type:r,key:n,ref:o,props:s,_owner:I1.current}}Jn.Fragment=A1;Jn.jsx=wp;Jn.jsxs=wp});var Ce=H((PG,Cp)=>{"use strict";h();d();p();Cp.exports=Tp()});var Cf=H((ufe,Tf)=>{h();d();p();function oc(r,e,t){var i,s,n,o,a;e==null&&(e=100);function l(){var c=Date.now()-o;c=0?i=setTimeout(l,e-c):(i=null,t||(a=r.apply(n,s),n=s=null))}var u=function(){n=this,s=arguments,o=Date.now();var c=t&&!i;return i||(i=setTimeout(l,e)),c&&(a=r.apply(n,s),n=s=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=r.apply(n,s),n=s=null,clearTimeout(i),i=null)},u}oc.debounce=oc;Tf.exports=oc});var VA,Rf,GA,Pf,YA,XA,Xr,KA,kf,Kt,lc,uc=Vt(()=>{h();d();p();VA=Object.create,Rf=Object.defineProperty,GA=Object.getOwnPropertyDescriptor,Pf=Object.getOwnPropertyNames,YA=Object.getPrototypeOf,XA=Object.prototype.hasOwnProperty,Xr=(r,e)=>function(){return e||(0,r[Pf(r)[0]])((e={exports:{}}).exports,e),e.exports},KA=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Pf(e))!XA.call(r,s)&&s!==t&&Rf(r,s,{get:()=>e[s],enumerable:!(i=GA(e,s))||i.enumerable});return r},kf=(r,e,t)=>(t=r!=null?VA(YA(r)):{},KA(e||!r||!r.__esModule?Rf(t,"default",{value:r,enumerable:!0}):t,r)),Kt=r=>`control-${r.replace(/\s+/g,"-")}`,lc=r=>`set-${r.replace(/\s+/g,"-")}`});var Hf={};rr(Hf,{A:()=>QA,ActionBar:()=>cc,AddonPanel:()=>ZA,Badge:()=>eE,Bar:()=>tE,Blockquote:()=>rE,Button:()=>Zo,ClipboardCode:()=>iE,Code:()=>Of,DL:()=>sE,Div:()=>nE,DocumentWrapper:()=>oE,EmptyTabContent:()=>Lf,ErrorFormatter:()=>Df,FlexBar:()=>hc,Form:()=>Rr,H1:()=>aE,H2:()=>dc,H3:()=>Ff,H4:()=>lE,H5:()=>uE,H6:()=>cE,HR:()=>hE,IconButton:()=>Kr,IconButtonSkeleton:()=>dE,Icons:()=>pE,Img:()=>fE,LI:()=>gE,Link:()=>Bf,ListItem:()=>mE,Loader:()=>Mf,Modal:()=>_E,OL:()=>yE,P:()=>xE,Placeholder:()=>bE,Pre:()=>vE,ResetWrapper:()=>Nf,ScrollArea:()=>SE,Separator:()=>wE,Spaced:()=>TE,Span:()=>CE,StorybookIcon:()=>AE,StorybookLogo:()=>EE,Symbols:()=>IE,SyntaxHighlighter:()=>pc,TT:()=>RE,TabBar:()=>PE,TabButton:()=>kE,TabWrapper:()=>OE,Table:()=>LE,Tabs:()=>DE,TabsState:()=>zf,TooltipLinkList:()=>FE,TooltipMessage:()=>BE,TooltipNote:()=>fc,UL:()=>ME,WithTooltip:()=>ea,WithTooltipPure:()=>jf,Zoom:()=>gc,codeCommon:()=>Ai,components:()=>mc,createCopyToClipboardFunction:()=>NE,default:()=>JA,getStoryHref:()=>Uf,icons:()=>zE,interleaveSeparators:()=>jE,nameSpaceClassNames:()=>_c,resetComponents:()=>UE,withReset:()=>Ei});var JA,QA,cc,ZA,eE,tE,rE,Zo,iE,Of,sE,nE,oE,Lf,Df,hc,Rr,aE,dc,Ff,lE,uE,cE,hE,Kr,dE,pE,fE,gE,Bf,mE,Mf,_E,yE,xE,bE,vE,Nf,SE,wE,TE,CE,AE,EE,IE,pc,RE,PE,kE,OE,LE,DE,zf,FE,BE,fc,ME,ea,jf,gc,Ai,mc,NE,Uf,zE,jE,_c,UE,Ei,ta=Vt(()=>{h();d();p();JA=__STORYBOOK_COMPONENTS__,{A:QA,ActionBar:cc,AddonPanel:ZA,Badge:eE,Bar:tE,Blockquote:rE,Button:Zo,ClipboardCode:iE,Code:Of,DL:sE,Div:nE,DocumentWrapper:oE,EmptyTabContent:Lf,ErrorFormatter:Df,FlexBar:hc,Form:Rr,H1:aE,H2:dc,H3:Ff,H4:lE,H5:uE,H6:cE,HR:hE,IconButton:Kr,IconButtonSkeleton:dE,Icons:pE,Img:fE,LI:gE,Link:Bf,ListItem:mE,Loader:Mf,Modal:_E,OL:yE,P:xE,Placeholder:bE,Pre:vE,ResetWrapper:Nf,ScrollArea:SE,Separator:wE,Spaced:TE,Span:CE,StorybookIcon:AE,StorybookLogo:EE,Symbols:IE,SyntaxHighlighter:pc,TT:RE,TabBar:PE,TabButton:kE,TabWrapper:OE,Table:LE,Tabs:DE,TabsState:zf,TooltipLinkList:FE,TooltipMessage:BE,TooltipNote:fc,UL:ME,WithTooltip:ea,WithTooltipPure:jf,Zoom:gc,codeCommon:Ai,components:mc,createCopyToClipboardFunction:NE,getStoryHref:Uf,icons:zE,interleaveSeparators:jE,nameSpaceClassNames:_c,resetComponents:UE,withReset:Ei}=__STORYBOOK_COMPONENTS__});var ige,sge,nge,oge,Wf,age,lge,qf,uge,cge,hge,dge,pge,fge,HE,$f,gge,mge,_ge,yge,J,yc,xge,Vf,bge,xc=Vt(()=>{h();d();p();ige=__STORYBOOK_THEMING__,{CacheProvider:sge,ClassNames:nge,Global:oge,ThemeProvider:Wf,background:age,color:lge,convert:qf,create:uge,createCache:cge,createGlobal:hge,createReset:dge,css:pge,darken:fge,ensure:HE,ignoreSsrWarning:$f,isPropValid:gge,jsx:mge,keyframes:_ge,lighten:yge,styled:J,themes:yc,typography:xge,useTheme:Vf,withTheme:bge}=__STORYBOOK_THEMING__});var Hme,Wme,qme,ig,$me,Vme,Gme,Yme,Xme,Kme,Jme,Qme,Zme,e_e,t_e,r_e,i_e,s_e,n_e,o_e,a_e,l_e,u_e,c_e,h_e,d_e,p_e,f_e,g_e,m_e,__e,y_e,x_e,b_e,v_e,S_e,w_e,T_e,C_e,A_e,E_e,I_e,R_e,P_e,k_e,O_e,L_e,D_e,sg,F_e,ng,Ac,B_e,M_e,og,N_e,z_e,j_e,U_e,H_e,W_e,q_e,$_e,V_e,G_e,Y_e,X_e,K_e,J_e,Q_e,Z_e,eye,tye,rye,iye,sye,nye,oye,aye,lye,uye,cye,hye,dye,pye,fye,gye,mye,EI,_ye,yye,xye,bye,vye,Sye,wye,II,RI,Tye,Cye,Aye,Eye,Iye,Rye,Pye,kye,Oye,Lye,Dye,Fye,Bye,Mye,Nye,zye,jye,Uye,Hye,Wye,qye,$ye,Vye,Gye,Yye,Xye,Kye,Jye,Qye,Zye,exe,txe,rxe,ag,ixe,sxe,nxe,oxe,axe,lxe,uxe,lg,cxe,hxe,dxe,pxe,fxe,gxe,mxe,_xe,yxe,xxe,bxe,vxe,Sxe,wxe,Txe,Cxe,Axe,Exe,Ixe,Rxe,Pxe,kxe,Oxe,Lxe,Dxe,Fxe,Bxe,Mxe,Nxe,zxe,jxe,Uxe,Hxe,Wxe,qxe,$xe,Vxe,Gxe,Yxe,Xxe,Kxe,Jxe,Qxe,Zxe,ebe,tbe,rbe,ibe,sbe,nbe,obe,abe,lbe,ube,cbe,hbe,dbe,pbe,fbe,gbe,mbe,ug,_be,ybe,xbe,bbe,vbe,Sbe,wbe,Tbe,Cbe,Abe,Ebe,Ibe,Rbe,PI,Pbe,kbe,Obe,Lbe,Dbe,Fbe,Bbe,Mbe,Nbe,zbe,kI,jbe,Ube,Hbe,Wbe,qbe,$be,cg,hg,dg,Vbe,Ec=Vt(()=>{h();d();p();Hme=__STORYBOOK_ICONS__,{AccessibilityAltIcon:Wme,AccessibilityIcon:qme,AddIcon:ig,AdminIcon:$me,AlertAltIcon:Vme,AlertIcon:Gme,AlignLeftIcon:Yme,AlignRightIcon:Xme,AppleIcon:Kme,ArrowBottomLeftIcon:Jme,ArrowBottomRightIcon:Qme,ArrowDownIcon:Zme,ArrowLeftIcon:e_e,ArrowRightIcon:t_e,ArrowSolidDownIcon:r_e,ArrowSolidLeftIcon:i_e,ArrowSolidRightIcon:s_e,ArrowSolidUpIcon:n_e,ArrowTopLeftIcon:o_e,ArrowTopRightIcon:a_e,ArrowUpIcon:l_e,AzureDevOpsIcon:u_e,BackIcon:c_e,BasketIcon:h_e,BatchAcceptIcon:d_e,BatchDenyIcon:p_e,BeakerIcon:f_e,BellIcon:g_e,BitbucketIcon:m_e,BoldIcon:__e,BookIcon:y_e,BookmarkHollowIcon:x_e,BookmarkIcon:b_e,BottomBarIcon:v_e,BottomBarToggleIcon:S_e,BoxIcon:w_e,BranchIcon:T_e,BrowserIcon:C_e,ButtonIcon:A_e,CPUIcon:E_e,CalendarIcon:I_e,CameraIcon:R_e,CategoryIcon:P_e,CertificateIcon:k_e,ChangedIcon:O_e,ChatIcon:L_e,CheckIcon:D_e,ChevronDownIcon:sg,ChevronLeftIcon:F_e,ChevronRightIcon:ng,ChevronSmallDownIcon:Ac,ChevronSmallLeftIcon:B_e,ChevronSmallRightIcon:M_e,ChevronSmallUpIcon:og,ChevronUpIcon:N_e,ChromaticIcon:z_e,ChromeIcon:j_e,CircleHollowIcon:U_e,CircleIcon:H_e,ClearIcon:W_e,CloseAltIcon:q_e,CloseIcon:$_e,CloudHollowIcon:V_e,CloudIcon:G_e,CogIcon:Y_e,CollapseIcon:X_e,CommandIcon:K_e,CommentAddIcon:J_e,CommentIcon:Q_e,CommentsIcon:Z_e,CommitIcon:eye,CompassIcon:tye,ComponentDrivenIcon:rye,ComponentIcon:iye,ContrastIcon:sye,ControlsIcon:nye,CopyIcon:oye,CreditIcon:aye,CrossIcon:lye,DashboardIcon:uye,DatabaseIcon:cye,DeleteIcon:hye,DiamondIcon:dye,DirectionIcon:pye,DiscordIcon:fye,DocChartIcon:gye,DocListIcon:mye,DocumentIcon:EI,DownloadIcon:_ye,DragIcon:yye,EditIcon:xye,EllipsisIcon:bye,EmailIcon:vye,ExpandAltIcon:Sye,ExpandIcon:wye,EyeCloseIcon:II,EyeIcon:RI,FaceHappyIcon:Tye,FaceNeutralIcon:Cye,FaceSadIcon:Aye,FacebookIcon:Eye,FailedIcon:Iye,FastForwardIcon:Rye,FigmaIcon:Pye,FilterIcon:kye,FlagIcon:Oye,FolderIcon:Lye,FormIcon:Dye,GDriveIcon:Fye,GithubIcon:Bye,GitlabIcon:Mye,GlobeIcon:Nye,GoogleIcon:zye,GraphBarIcon:jye,GraphLineIcon:Uye,GraphqlIcon:Hye,GridAltIcon:Wye,GridIcon:qye,GrowIcon:$ye,HeartHollowIcon:Vye,HeartIcon:Gye,HomeIcon:Yye,HourglassIcon:Xye,InfoIcon:Kye,ItalicIcon:Jye,JumpToIcon:Qye,KeyIcon:Zye,LightningIcon:exe,LightningOffIcon:txe,LinkBrokenIcon:rxe,LinkIcon:ag,LinkedinIcon:ixe,LinuxIcon:sxe,ListOrderedIcon:nxe,ListUnorderedIcon:oxe,LocationIcon:axe,LockIcon:lxe,MarkdownIcon:uxe,MarkupIcon:lg,MediumIcon:cxe,MemoryIcon:hxe,MenuIcon:dxe,MergeIcon:pxe,MirrorIcon:fxe,MobileIcon:gxe,MoonIcon:mxe,NutIcon:_xe,OutboxIcon:yxe,OutlineIcon:xxe,PaintBrushIcon:bxe,PaperClipIcon:vxe,ParagraphIcon:Sxe,PassedIcon:wxe,PhoneIcon:Txe,PhotoDragIcon:Cxe,PhotoIcon:Axe,PinAltIcon:Exe,PinIcon:Ixe,PlayBackIcon:Rxe,PlayIcon:Pxe,PlayNextIcon:kxe,PlusIcon:Oxe,PointerDefaultIcon:Lxe,PointerHandIcon:Dxe,PowerIcon:Fxe,PrintIcon:Bxe,ProceedIcon:Mxe,ProfileIcon:Nxe,PullRequestIcon:zxe,QuestionIcon:jxe,RSSIcon:Uxe,RedirectIcon:Hxe,ReduxIcon:Wxe,RefreshIcon:qxe,ReplyIcon:$xe,RepoIcon:Vxe,RequestChangeIcon:Gxe,RewindIcon:Yxe,RulerIcon:Xxe,SearchIcon:Kxe,ShareAltIcon:Jxe,ShareIcon:Qxe,ShieldIcon:Zxe,SideBySideIcon:ebe,SidebarAltIcon:tbe,SidebarAltToggleIcon:rbe,SidebarIcon:ibe,SidebarToggleIcon:sbe,SpeakerIcon:nbe,StackedIcon:obe,StarHollowIcon:abe,StarIcon:lbe,StatusFailIcon:ube,StatusPassIcon:cbe,StatusWarnIcon:hbe,StickerIcon:dbe,StopAltIcon:pbe,StopIcon:fbe,StorybookIcon:gbe,StructureIcon:mbe,SubtractIcon:ug,SunIcon:_be,SupportIcon:ybe,SwitchAltIcon:xbe,SyncIcon:bbe,TabletIcon:vbe,ThumbsUpIcon:Sbe,TimeIcon:wbe,TimerIcon:Tbe,TransferIcon:Cbe,TrashIcon:Abe,TwitterIcon:Ebe,TypeIcon:Ibe,UbuntuIcon:Rbe,UndoIcon:PI,UnfoldIcon:Pbe,UnlockIcon:kbe,UnpinIcon:Obe,UploadIcon:Lbe,UserAddIcon:Dbe,UserAltIcon:Fbe,UserIcon:Bbe,UsersIcon:Mbe,VSCodeIcon:Nbe,VerifiedIcon:zbe,VideoIcon:kI,WandIcon:jbe,WatchIcon:Ube,WindowsIcon:Hbe,WrenchIcon:Wbe,XIcon:qbe,YoutubeIcon:$be,ZoomIcon:cg,ZoomOutIcon:hg,ZoomResetIcon:dg,iconList:Vbe}=__STORYBOOK_ICONS__});var Pc=H((a0e,vg)=>{h();d();p();function $I(r,e){for(var t=-1,i=r==null?0:r.length,s=Array(i);++t{h();d();p();function VI(){this.__data__=[],this.size=0}Sg.exports=VI});var aa=H((g0e,Tg)=>{h();d();p();function GI(r,e){return r===e||r!==r&&e!==e}Tg.exports=GI});var Xs=H((x0e,Cg)=>{h();d();p();var YI=aa();function XI(r,e){for(var t=r.length;t--;)if(YI(r[t][0],e))return t;return-1}Cg.exports=XI});var Eg=H((w0e,Ag)=>{h();d();p();var KI=Xs(),JI=Array.prototype,QI=JI.splice;function ZI(r){var e=this.__data__,t=KI(e,r);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():QI.call(e,t,1),--this.size,!0}Ag.exports=ZI});var Rg=H((E0e,Ig)=>{h();d();p();var eR=Xs();function tR(r){var e=this.__data__,t=eR(e,r);return t<0?void 0:e[t][1]}Ig.exports=tR});var kg=H((k0e,Pg)=>{h();d();p();var rR=Xs();function iR(r){return rR(this.__data__,r)>-1}Pg.exports=iR});var Lg=H((F0e,Og)=>{h();d();p();var sR=Xs();function nR(r,e){var t=this.__data__,i=sR(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}Og.exports=nR});var Ks=H((z0e,Dg)=>{h();d();p();var oR=wg(),aR=Eg(),lR=Rg(),uR=kg(),cR=Lg();function Pi(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var hR=Ks();function dR(){this.__data__=new hR,this.size=0}Fg.exports=dR});var Ng=H((G0e,Mg)=>{h();d();p();function pR(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Mg.exports=pR});var jg=H((J0e,zg)=>{h();d();p();function fR(r){return this.__data__.get(r)}zg.exports=fR});var Hg=H((tve,Ug)=>{h();d();p();function gR(r){return this.__data__.has(r)}Ug.exports=gR});var kc=H((nve,Wg)=>{h();d();p();var mR=typeof window=="object"&&window&&window.Object===Object&&window;Wg.exports=mR});var Mt=H((uve,qg)=>{h();d();p();var _R=kc(),yR=typeof self=="object"&&self&&self.Object===Object&&self,xR=_R||yR||Function("return this")();qg.exports=xR});var ki=H((pve,$g)=>{h();d();p();var bR=Mt(),vR=bR.Symbol;$g.exports=vR});var Xg=H((_ve,Yg)=>{h();d();p();var Vg=ki(),Gg=Object.prototype,SR=Gg.hasOwnProperty,wR=Gg.toString,Js=Vg?Vg.toStringTag:void 0;function TR(r){var e=SR.call(r,Js),t=r[Js];try{r[Js]=void 0;var i=!0}catch{}var s=wR.call(r);return i&&(e?r[Js]=t:delete r[Js]),s}Yg.exports=TR});var Jg=H((vve,Kg)=>{h();d();p();var CR=Object.prototype,AR=CR.toString;function ER(r){return AR.call(r)}Kg.exports=ER});var Oi=H((Cve,em)=>{h();d();p();var Qg=ki(),IR=Xg(),RR=Jg(),PR="[object Null]",kR="[object Undefined]",Zg=Qg?Qg.toStringTag:void 0;function OR(r){return r==null?r===void 0?kR:PR:Zg&&Zg in Object(r)?IR(r):RR(r)}em.exports=OR});var Jt=H((Rve,tm)=>{h();d();p();function LR(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}tm.exports=LR});var Oc=H((Lve,rm)=>{h();d();p();var DR=Oi(),FR=Jt(),BR="[object AsyncFunction]",MR="[object Function]",NR="[object GeneratorFunction]",zR="[object Proxy]";function jR(r){if(!FR(r))return!1;var e=DR(r);return e==MR||e==NR||e==BR||e==zR}rm.exports=jR});var sm=H((Mve,im)=>{h();d();p();var UR=Mt(),HR=UR["__core-js_shared__"];im.exports=HR});var am=H((Uve,om)=>{h();d();p();var Lc=sm(),nm=function(){var r=/[^.]+$/.exec(Lc&&Lc.keys&&Lc.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function WR(r){return!!nm&&nm in r}om.exports=WR});var Dc=H(($ve,lm)=>{h();d();p();var qR=Function.prototype,$R=qR.toString;function VR(r){if(r!=null){try{return $R.call(r)}catch{}try{return r+""}catch{}}return""}lm.exports=VR});var cm=H((Xve,um)=>{h();d();p();var GR=Oc(),YR=am(),XR=Jt(),KR=Dc(),JR=/[\\^$.*+?()[\]{}|]/g,QR=/^\[object .+?Constructor\]$/,ZR=Function.prototype,eP=Object.prototype,tP=ZR.toString,rP=eP.hasOwnProperty,iP=RegExp("^"+tP.call(rP).replace(JR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sP(r){if(!XR(r)||YR(r))return!1;var e=GR(r)?iP:QR;return e.test(KR(r))}um.exports=sP});var dm=H((Zve,hm)=>{h();d();p();function nP(r,e){return r?.[e]}hm.exports=nP});var Dr=H((iSe,pm)=>{h();d();p();var oP=cm(),aP=dm();function lP(r,e){var t=aP(r,e);return oP(t)?t:void 0}pm.exports=lP});var la=H((aSe,fm)=>{h();d();p();var uP=Dr(),cP=Mt(),hP=uP(cP,"Map");fm.exports=hP});var Qs=H((hSe,gm)=>{h();d();p();var dP=Dr(),pP=dP(Object,"create");gm.exports=pP});var ym=H((gSe,_m)=>{h();d();p();var mm=Qs();function fP(){this.__data__=mm?mm(null):{},this.size=0}_m.exports=fP});var bm=H((xSe,xm)=>{h();d();p();function gP(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}xm.exports=gP});var Sm=H((wSe,vm)=>{h();d();p();var mP=Qs(),_P="__lodash_hash_undefined__",yP=Object.prototype,xP=yP.hasOwnProperty;function bP(r){var e=this.__data__;if(mP){var t=e[r];return t===_P?void 0:t}return xP.call(e,r)?e[r]:void 0}vm.exports=bP});var Tm=H((ESe,wm)=>{h();d();p();var vP=Qs(),SP=Object.prototype,wP=SP.hasOwnProperty;function TP(r){var e=this.__data__;return vP?e[r]!==void 0:wP.call(e,r)}wm.exports=TP});var Am=H((kSe,Cm)=>{h();d();p();var CP=Qs(),AP="__lodash_hash_undefined__";function EP(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=CP&&e===void 0?AP:e,this}Cm.exports=EP});var Im=H((FSe,Em)=>{h();d();p();var IP=ym(),RP=bm(),PP=Sm(),kP=Tm(),OP=Am();function Li(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var Rm=Im(),LP=Ks(),DP=la();function FP(){this.size=0,this.__data__={hash:new Rm,map:new(DP||LP),string:new Rm}}Pm.exports=FP});var Lm=H((WSe,Om)=>{h();d();p();function BP(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Om.exports=BP});var Zs=H((GSe,Dm)=>{h();d();p();var MP=Lm();function NP(r,e){var t=r.__data__;return MP(e)?t[typeof e=="string"?"string":"hash"]:t.map}Dm.exports=NP});var Bm=H((JSe,Fm)=>{h();d();p();var zP=Zs();function jP(r){var e=zP(this,r).delete(r);return this.size-=e?1:0,e}Fm.exports=jP});var Nm=H((twe,Mm)=>{h();d();p();var UP=Zs();function HP(r){return UP(this,r).get(r)}Mm.exports=HP});var jm=H((nwe,zm)=>{h();d();p();var WP=Zs();function qP(r){return WP(this,r).has(r)}zm.exports=qP});var Hm=H((uwe,Um)=>{h();d();p();var $P=Zs();function VP(r,e){var t=$P(this,r),i=t.size;return t.set(r,e),this.size+=t.size==i?0:1,this}Um.exports=VP});var ua=H((pwe,Wm)=>{h();d();p();var GP=km(),YP=Bm(),XP=Nm(),KP=jm(),JP=Hm();function Di(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var QP=Ks(),ZP=la(),ek=ua(),tk=200;function rk(r,e){var t=this.__data__;if(t instanceof QP){var i=t.__data__;if(!ZP||i.length{h();d();p();var ik=Ks(),sk=Bg(),nk=Ng(),ok=jg(),ak=Hg(),lk=$m();function Fi(r){var e=this.__data__=new ik(r);this.size=e.size}Fi.prototype.clear=sk;Fi.prototype.delete=nk;Fi.prototype.get=ok;Fi.prototype.has=ak;Fi.prototype.set=lk;Vm.exports=Fi});var Ym=H((Cwe,Gm)=>{h();d();p();var uk="__lodash_hash_undefined__";function ck(r){return this.__data__.set(r,uk),this}Gm.exports=ck});var Km=H((Rwe,Xm)=>{h();d();p();function hk(r){return this.__data__.has(r)}Xm.exports=hk});var Fc=H((Lwe,Jm)=>{h();d();p();var dk=ua(),pk=Ym(),fk=Km();function ha(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new dk;++e{h();d();p();function gk(r,e){for(var t=-1,i=r==null?0:r.length;++t{h();d();p();function mk(r,e){return r.has(e)}e_.exports=mk});var Mc=H(($we,t_)=>{h();d();p();var _k=Fc(),yk=Zm(),xk=Bc(),bk=1,vk=2;function Sk(r,e,t,i,s,n){var o=t&bk,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var u=n.get(r),c=n.get(e);if(u&&c)return u==e&&c==r;var g=-1,m=!0,y=t&vk?new _k:void 0;for(n.set(r,e),n.set(e,r);++g{h();d();p();var wk=Mt(),Tk=wk.Uint8Array;r_.exports=Tk});var s_=H((Zwe,i_)=>{h();d();p();function Ck(r){var e=-1,t=Array(r.size);return r.forEach(function(i,s){t[++e]=[s,i]}),t}i_.exports=Ck});var da=H((iTe,n_)=>{h();d();p();function Ak(r){var e=-1,t=Array(r.size);return r.forEach(function(i){t[++e]=i}),t}n_.exports=Ak});var c_=H((aTe,u_)=>{h();d();p();var o_=ki(),a_=Nc(),Ek=aa(),Ik=Mc(),Rk=s_(),Pk=da(),kk=1,Ok=2,Lk="[object Boolean]",Dk="[object Date]",Fk="[object Error]",Bk="[object Map]",Mk="[object Number]",Nk="[object RegExp]",zk="[object Set]",jk="[object String]",Uk="[object Symbol]",Hk="[object ArrayBuffer]",Wk="[object DataView]",l_=o_?o_.prototype:void 0,zc=l_?l_.valueOf:void 0;function qk(r,e,t,i,s,n,o){switch(t){case Wk:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case Hk:return!(r.byteLength!=e.byteLength||!n(new a_(r),new a_(e)));case Lk:case Dk:case Mk:return Ek(+r,+e);case Fk:return r.name==e.name&&r.message==e.message;case Nk:case jk:return r==e+"";case Bk:var a=Rk;case zk:var l=i&kk;if(a||(a=Pk),r.size!=e.size&&!l)return!1;var u=o.get(r);if(u)return u==e;i|=Ok,o.set(r,e);var c=Ik(a(r),a(e),i,s,n,o);return o.delete(r),c;case Uk:if(zc)return zc.call(r)==zc.call(e)}return!1}u_.exports=qk});var jc=H((hTe,h_)=>{h();d();p();function $k(r,e){for(var t=-1,i=e.length,s=r.length;++t{h();d();p();var Vk=Array.isArray;d_.exports=Vk});var Uc=H((xTe,p_)=>{h();d();p();var Gk=jc(),Yk=Qt();function Xk(r,e,t){var i=e(r);return Yk(r)?i:Gk(i,t(r))}p_.exports=Xk});var g_=H((wTe,f_)=>{h();d();p();function Kk(r,e){for(var t=-1,i=r==null?0:r.length,s=0,n=[];++t{h();d();p();function Jk(){return[]}m_.exports=Jk});var pa=H((kTe,y_)=>{h();d();p();var Qk=g_(),Zk=Hc(),eO=Object.prototype,tO=eO.propertyIsEnumerable,__=Object.getOwnPropertySymbols,rO=__?function(r){return r==null?[]:(r=Object(r),Qk(__(r),function(e){return tO.call(r,e)}))}:Zk;y_.exports=rO});var b_=H((FTe,x_)=>{h();d();p();function iO(r,e){for(var t=-1,i=Array(r);++t{h();d();p();function sO(r){return r!=null&&typeof r=="object"}v_.exports=sO});var w_=H((WTe,S_)=>{h();d();p();var nO=Oi(),oO=Fr(),aO="[object Arguments]";function lO(r){return oO(r)&&nO(r)==aO}S_.exports=lO});var Wc=H((GTe,A_)=>{h();d();p();var T_=w_(),uO=Fr(),C_=Object.prototype,cO=C_.hasOwnProperty,hO=C_.propertyIsEnumerable,dO=T_(function(){return arguments}())?T_:function(r){return uO(r)&&cO.call(r,"callee")&&!hO.call(r,"callee")};A_.exports=dO});var I_=H((JTe,E_)=>{h();d();p();function pO(){return!1}E_.exports=pO});var fa=H((en,Bi)=>{h();d();p();var fO=Mt(),gO=I_(),k_=typeof en=="object"&&en&&!en.nodeType&&en,R_=k_&&typeof Bi=="object"&&Bi&&!Bi.nodeType&&Bi,mO=R_&&R_.exports===k_,P_=mO?fO.Buffer:void 0,_O=P_?P_.isBuffer:void 0,yO=_O||gO;Bi.exports=yO});var ga=H((sCe,O_)=>{h();d();p();var xO=9007199254740991,bO=/^(?:0|[1-9]\d*)$/;function vO(r,e){var t=typeof r;return e=e??xO,!!e&&(t=="number"||t!="symbol"&&bO.test(r))&&r>-1&&r%1==0&&r{h();d();p();var SO=9007199254740991;function wO(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=SO}L_.exports=wO});var F_=H((dCe,D_)=>{h();d();p();var TO=Oi(),CO=ma(),AO=Fr(),EO="[object Arguments]",IO="[object Array]",RO="[object Boolean]",PO="[object Date]",kO="[object Error]",OO="[object Function]",LO="[object Map]",DO="[object Number]",FO="[object Object]",BO="[object RegExp]",MO="[object Set]",NO="[object String]",zO="[object WeakMap]",jO="[object ArrayBuffer]",UO="[object DataView]",HO="[object Float32Array]",WO="[object Float64Array]",qO="[object Int8Array]",$O="[object Int16Array]",VO="[object Int32Array]",GO="[object Uint8Array]",YO="[object Uint8ClampedArray]",XO="[object Uint16Array]",KO="[object Uint32Array]",Be={};Be[HO]=Be[WO]=Be[qO]=Be[$O]=Be[VO]=Be[GO]=Be[YO]=Be[XO]=Be[KO]=!0;Be[EO]=Be[IO]=Be[jO]=Be[RO]=Be[UO]=Be[PO]=Be[kO]=Be[OO]=Be[LO]=Be[DO]=Be[FO]=Be[BO]=Be[MO]=Be[NO]=Be[zO]=!1;function JO(r){return AO(r)&&CO(r.length)&&!!Be[TO(r)]}D_.exports=JO});var _a=H((mCe,B_)=>{h();d();p();function QO(r){return function(e){return r(e)}}B_.exports=QO});var ya=H((tn,Mi)=>{h();d();p();var ZO=kc(),M_=typeof tn=="object"&&tn&&!tn.nodeType&&tn,rn=M_&&typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,eL=rn&&rn.exports===M_,qc=eL&&ZO.process,tL=function(){try{var r=rn&&rn.require&&rn.require("util").types;return r||qc&&qc.binding&&qc.binding("util")}catch{}}();Mi.exports=tL});var $c=H((wCe,j_)=>{h();d();p();var rL=F_(),iL=_a(),N_=ya(),z_=N_&&N_.isTypedArray,sL=z_?iL(z_):rL;j_.exports=sL});var Vc=H((ECe,U_)=>{h();d();p();var nL=b_(),oL=Wc(),aL=Qt(),lL=fa(),uL=ga(),cL=$c(),hL=Object.prototype,dL=hL.hasOwnProperty;function pL(r,e){var t=aL(r),i=!t&&oL(r),s=!t&&!i&&lL(r),n=!t&&!i&&!s&&cL(r),o=t||i||s||n,a=o?nL(r.length,String):[],l=a.length;for(var u in r)(e||dL.call(r,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||uL(u,l)))&&a.push(u);return a}U_.exports=pL});var xa=H((kCe,H_)=>{h();d();p();var fL=Object.prototype;function gL(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||fL;return r===t}H_.exports=gL});var Gc=H((FCe,W_)=>{h();d();p();function mL(r,e){return function(t){return r(e(t))}}W_.exports=mL});var $_=H((zCe,q_)=>{h();d();p();var _L=Gc(),yL=_L(Object.keys,Object);q_.exports=yL});var G_=H((WCe,V_)=>{h();d();p();var xL=xa(),bL=$_(),vL=Object.prototype,SL=vL.hasOwnProperty;function wL(r){if(!xL(r))return bL(r);var e=[];for(var t in Object(r))SL.call(r,t)&&t!="constructor"&&e.push(t);return e}V_.exports=wL});var Yc=H((GCe,Y_)=>{h();d();p();var TL=Oc(),CL=ma();function AL(r){return r!=null&&CL(r.length)&&!TL(r)}Y_.exports=AL});var sn=H((JCe,X_)=>{h();d();p();var EL=Vc(),IL=G_(),RL=Yc();function PL(r){return RL(r)?EL(r):IL(r)}X_.exports=PL});var Xc=H((t1e,K_)=>{h();d();p();var kL=Uc(),OL=pa(),LL=sn();function DL(r){return kL(r,LL,OL)}K_.exports=DL});var Z_=H((n1e,Q_)=>{h();d();p();var J_=Xc(),FL=1,BL=Object.prototype,ML=BL.hasOwnProperty;function NL(r,e,t,i,s,n){var o=t&FL,a=J_(r),l=a.length,u=J_(e),c=u.length;if(l!=c&&!o)return!1;for(var g=l;g--;){var m=a[g];if(!(o?m in e:ML.call(e,m)))return!1}var y=n.get(r),b=n.get(e);if(y&&b)return y==e&&b==r;var C=!0;n.set(r,e),n.set(e,r);for(var A=o;++g{h();d();p();var zL=Dr(),jL=Mt(),UL=zL(jL,"DataView");ey.exports=UL});var iy=H((p1e,ry)=>{h();d();p();var HL=Dr(),WL=Mt(),qL=HL(WL,"Promise");ry.exports=qL});var Kc=H((_1e,sy)=>{h();d();p();var $L=Dr(),VL=Mt(),GL=$L(VL,"Set");sy.exports=GL});var oy=H((v1e,ny)=>{h();d();p();var YL=Dr(),XL=Mt(),KL=YL(XL,"WeakMap");ny.exports=KL});var nn=H((C1e,py)=>{h();d();p();var Jc=ty(),Qc=la(),Zc=iy(),eh=Kc(),th=oy(),dy=Oi(),Ni=Dc(),ay="[object Map]",JL="[object Object]",ly="[object Promise]",uy="[object Set]",cy="[object WeakMap]",hy="[object DataView]",QL=Ni(Jc),ZL=Ni(Qc),eD=Ni(Zc),tD=Ni(eh),rD=Ni(th),Qr=dy;(Jc&&Qr(new Jc(new ArrayBuffer(1)))!=hy||Qc&&Qr(new Qc)!=ay||Zc&&Qr(Zc.resolve())!=ly||eh&&Qr(new eh)!=uy||th&&Qr(new th)!=cy)&&(Qr=function(r){var e=dy(r),t=e==JL?r.constructor:void 0,i=t?Ni(t):"";if(i)switch(i){case QL:return hy;case ZL:return ay;case eD:return ly;case tD:return uy;case rD:return cy}return e});py.exports=Qr});var vy=H((R1e,by)=>{h();d();p();var rh=ca(),iD=Mc(),sD=c_(),nD=Z_(),fy=nn(),gy=Qt(),my=fa(),oD=$c(),aD=1,_y="[object Arguments]",yy="[object Array]",ba="[object Object]",lD=Object.prototype,xy=lD.hasOwnProperty;function uD(r,e,t,i,s,n){var o=gy(r),a=gy(e),l=o?yy:fy(r),u=a?yy:fy(e);l=l==_y?ba:l,u=u==_y?ba:u;var c=l==ba,g=u==ba,m=l==u;if(m&&my(r)){if(!my(e))return!1;o=!0,c=!1}if(m&&!c)return n||(n=new rh),o||oD(r)?iD(r,e,t,i,s,n):sD(r,e,l,t,i,s,n);if(!(t&aD)){var y=c&&xy.call(r,"__wrapped__"),b=g&&xy.call(e,"__wrapped__");if(y||b){var C=y?r.value():r,A=b?e.value():e;return n||(n=new rh),s(C,A,t,i,n)}}return m?(n||(n=new rh),nD(r,e,t,i,s,n)):!1}by.exports=uD});var ih=H((L1e,Ty)=>{h();d();p();var cD=vy(),Sy=Fr();function wy(r,e,t,i,s){return r===e?!0:r==null||e==null||!Sy(r)&&!Sy(e)?r!==r&&e!==e:cD(r,e,t,i,wy,s)}Ty.exports=wy});var Ay=H((M1e,Cy)=>{h();d();p();var hD=ca(),dD=ih(),pD=1,fD=2;function gD(r,e,t,i){var s=t.length,n=s,o=!i;if(r==null)return!n;for(r=Object(r);s--;){var a=t[s];if(o&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++s{h();d();p();var mD=Jt();function _D(r){return r===r&&!mD(r)}Ey.exports=_D});var Ry=H(($1e,Iy)=>{h();d();p();var yD=sh(),xD=sn();function bD(r){for(var e=xD(r),t=e.length;t--;){var i=e[t],s=r[i];e[t]=[i,s,yD(s)]}return e}Iy.exports=bD});var nh=H((X1e,Py)=>{h();d();p();function vD(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}Py.exports=vD});var Oy=H((Z1e,ky)=>{h();d();p();var SD=Ay(),wD=Ry(),TD=nh();function CD(r){var e=wD(r);return e.length==1&&e[0][2]?TD(e[0][0],e[0][1]):function(t){return t===r||SD(t,r,e)}}ky.exports=CD});var on=H((i2e,Ly)=>{h();d();p();var AD=Oi(),ED=Fr(),ID="[object Symbol]";function RD(r){return typeof r=="symbol"||ED(r)&&AD(r)==ID}Ly.exports=RD});var va=H((a2e,Dy)=>{h();d();p();var PD=Qt(),kD=on(),OD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,LD=/^\w*$/;function DD(r,e){if(PD(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||kD(r)?!0:LD.test(r)||!OD.test(r)||e!=null&&r in Object(e)}Dy.exports=DD});var My=H((h2e,By)=>{h();d();p();var Fy=ua(),FD="Expected a function";function oh(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(FD);var t=function(){var i=arguments,s=e?e.apply(this,i):i[0],n=t.cache;if(n.has(s))return n.get(s);var o=r.apply(this,i);return t.cache=n.set(s,o)||n,o};return t.cache=new(oh.Cache||Fy),t}oh.Cache=Fy;By.exports=oh});var zy=H((g2e,Ny)=>{h();d();p();var BD=My(),MD=500;function ND(r){var e=BD(r,function(i){return t.size===MD&&t.clear(),i}),t=e.cache;return e}Ny.exports=ND});var Uy=H((x2e,jy)=>{h();d();p();var zD=zy(),jD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UD=/\\(\\)?/g,HD=zD(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(jD,function(t,i,s,n){e.push(s?n.replace(UD,"$1"):i||t)}),e});jy.exports=HD});var Gy=H((w2e,Vy)=>{h();d();p();var Hy=ki(),WD=Pc(),qD=Qt(),$D=on(),VD=1/0,Wy=Hy?Hy.prototype:void 0,qy=Wy?Wy.toString:void 0;function $y(r){if(typeof r=="string")return r;if(qD(r))return WD(r,$y)+"";if($D(r))return qy?qy.call(r):"";var e=r+"";return e=="0"&&1/r==-VD?"-0":e}Vy.exports=$y});var Xy=H((E2e,Yy)=>{h();d();p();var GD=Gy();function YD(r){return r==null?"":GD(r)}Yy.exports=YD});var an=H((k2e,Ky)=>{h();d();p();var XD=Qt(),KD=va(),JD=Uy(),QD=Xy();function ZD(r,e){return XD(r)?r:KD(r,e)?[r]:JD(QD(r))}Ky.exports=ZD});var zi=H((F2e,Jy)=>{h();d();p();var eF=on(),tF=1/0;function rF(r){if(typeof r=="string"||eF(r))return r;var e=r+"";return e=="0"&&1/r==-tF?"-0":e}Jy.exports=rF});var Sa=H((z2e,Qy)=>{h();d();p();var iF=an(),sF=zi();function nF(r,e){e=iF(e,r);for(var t=0,i=e.length;r!=null&&t{h();d();p();var oF=Sa();function aF(r,e,t){var i=r==null?void 0:oF(r,e);return i===void 0?t:i}Zy.exports=aF});var rx=H((G2e,tx)=>{h();d();p();function lF(r,e){return r!=null&&e in Object(r)}tx.exports=lF});var sx=H((J2e,ix)=>{h();d();p();var uF=an(),cF=Wc(),hF=Qt(),dF=ga(),pF=ma(),fF=zi();function gF(r,e,t){e=uF(e,r);for(var i=-1,s=e.length,n=!1;++i{h();d();p();var mF=rx(),_F=sx();function yF(r,e){return r!=null&&_F(r,e,mF)}nx.exports=yF});var lx=H((nAe,ax)=>{h();d();p();var xF=ih(),bF=ex(),vF=ox(),SF=va(),wF=sh(),TF=nh(),CF=zi(),AF=1,EF=2;function IF(r,e){return SF(r)&&wF(e)?TF(CF(r),e):function(t){var i=bF(t,r);return i===void 0&&i===e?vF(t,r):xF(e,i,AF|EF)}}ax.exports=IF});var cx=H((uAe,ux)=>{h();d();p();function RF(r){return r}ux.exports=RF});var dx=H((pAe,hx)=>{h();d();p();function PF(r){return function(e){return e?.[r]}}hx.exports=PF});var fx=H((_Ae,px)=>{h();d();p();var kF=Sa();function OF(r){return function(e){return kF(e,r)}}px.exports=OF});var mx=H((vAe,gx)=>{h();d();p();var LF=dx(),DF=fx(),FF=va(),BF=zi();function MF(r){return FF(r)?LF(BF(r)):DF(r)}gx.exports=MF});var yx=H((CAe,_x)=>{h();d();p();var NF=Oy(),zF=lx(),jF=cx(),UF=Qt(),HF=mx();function WF(r){return typeof r=="function"?r:r==null?jF:typeof r=="object"?UF(r)?zF(r[0],r[1]):NF(r):HF(r)}_x.exports=WF});var bx=H((RAe,xx)=>{h();d();p();var qF=Dr(),$F=function(){try{var r=qF(Object,"defineProperty");return r({},"",{}),r}catch{}}();xx.exports=$F});var ah=H((LAe,Sx)=>{h();d();p();var vx=bx();function VF(r,e,t){e=="__proto__"&&vx?vx(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Sx.exports=VF});var wa=H((MAe,wx)=>{h();d();p();var GF=ah(),YF=aa(),XF=Object.prototype,KF=XF.hasOwnProperty;function JF(r,e,t){var i=r[e];(!(KF.call(r,e)&&YF(i,t))||t===void 0&&!(e in r))&&GF(r,e,t)}wx.exports=JF});var Ax=H((UAe,Cx)=>{h();d();p();var QF=wa(),ZF=an(),eB=ga(),Tx=Jt(),tB=zi();function rB(r,e,t,i){if(!Tx(r))return r;e=ZF(e,r);for(var s=-1,n=e.length,o=n-1,a=r;a!=null&&++s{h();d();p();var iB=Sa(),sB=Ax(),nB=an();function oB(r,e,t){for(var i=-1,s=e.length,n={};++i{h();d();p();var aB=Gc(),lB=aB(Object.getPrototypeOf,Object);Rx.exports=lB});var uh=H((ZAe,Px)=>{h();d();p();var uB=jc(),cB=lh(),hB=pa(),dB=Hc(),pB=Object.getOwnPropertySymbols,fB=pB?function(r){for(var e=[];r;)uB(e,hB(r)),r=cB(r);return e}:dB;Px.exports=fB});var Ox=H((iEe,kx)=>{h();d();p();function gB(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}kx.exports=gB});var Dx=H((aEe,Lx)=>{h();d();p();var mB=Jt(),_B=xa(),yB=Ox(),xB=Object.prototype,bB=xB.hasOwnProperty;function vB(r){if(!mB(r))return yB(r);var e=_B(r),t=[];for(var i in r)i=="constructor"&&(e||!bB.call(r,i))||t.push(i);return t}Lx.exports=vB});var Ta=H((hEe,Fx)=>{h();d();p();var SB=Vc(),wB=Dx(),TB=Yc();function CB(r){return TB(r)?SB(r,!0):wB(r)}Fx.exports=CB});var ch=H((gEe,Bx)=>{h();d();p();var AB=Uc(),EB=uh(),IB=Ta();function RB(r){return AB(r,IB,EB)}Bx.exports=RB});var Nx=H((xEe,Mx)=>{h();d();p();var PB=Pc(),kB=yx(),OB=Ix(),LB=ch();function DB(r,e){if(r==null)return{};var t=PB(LB(r),function(i){return[i]});return e=kB(e),OB(r,t,function(i,s){return e(i,s[0])})}Mx.exports=DB});var Gx=H((BEe,Vx)=>{h();d();p();function KB(r,e){for(var t=-1,i=r==null?0:r.length;++t{h();d();p();var JB=wa(),QB=ah();function ZB(r,e,t,i){var s=!t;t||(t={});for(var n=-1,o=e.length;++n{h();d();p();var eM=ln(),tM=sn();function rM(r,e){return r&&eM(e,tM(e),r)}Xx.exports=rM});var Qx=H((YEe,Jx)=>{h();d();p();var iM=ln(),sM=Ta();function nM(r,e){return r&&iM(e,sM(e),r)}Jx.exports=nM});var ib=H((un,ji)=>{h();d();p();var oM=Mt(),rb=typeof un=="object"&&un&&!un.nodeType&&un,Zx=rb&&typeof ji=="object"&&ji&&!ji.nodeType&&ji,aM=Zx&&Zx.exports===rb,eb=aM?oM.Buffer:void 0,tb=eb?eb.allocUnsafe:void 0;function lM(r,e){if(e)return r.slice();var t=r.length,i=tb?tb(t):new r.constructor(t);return r.copy(i),i}ji.exports=lM});var nb=H((tIe,sb)=>{h();d();p();function uM(r,e){var t=-1,i=r.length;for(e||(e=Array(i));++t{h();d();p();var cM=ln(),hM=pa();function dM(r,e){return cM(r,hM(r),e)}ob.exports=dM});var ub=H((uIe,lb)=>{h();d();p();var pM=ln(),fM=uh();function gM(r,e){return pM(r,fM(r),e)}lb.exports=gM});var hb=H((pIe,cb)=>{h();d();p();var mM=Object.prototype,_M=mM.hasOwnProperty;function yM(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&_M.call(r,"index")&&(t.index=r.index,t.input=r.input),t}cb.exports=yM});var Aa=H((_Ie,pb)=>{h();d();p();var db=Nc();function xM(r){var e=new r.constructor(r.byteLength);return new db(e).set(new db(r)),e}pb.exports=xM});var gb=H((vIe,fb)=>{h();d();p();var bM=Aa();function vM(r,e){var t=e?bM(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}fb.exports=vM});var _b=H((CIe,mb)=>{h();d();p();var SM=/\w*$/;function wM(r){var e=new r.constructor(r.source,SM.exec(r));return e.lastIndex=r.lastIndex,e}mb.exports=wM});var Sb=H((RIe,vb)=>{h();d();p();var yb=ki(),xb=yb?yb.prototype:void 0,bb=xb?xb.valueOf:void 0;function TM(r){return bb?Object(bb.call(r)):{}}vb.exports=TM});var Tb=H((LIe,wb)=>{h();d();p();var CM=Aa();function AM(r,e){var t=e?CM(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}wb.exports=AM});var Ab=H((MIe,Cb)=>{h();d();p();var EM=Aa(),IM=gb(),RM=_b(),PM=Sb(),kM=Tb(),OM="[object Boolean]",LM="[object Date]",DM="[object Map]",FM="[object Number]",BM="[object RegExp]",MM="[object Set]",NM="[object String]",zM="[object Symbol]",jM="[object ArrayBuffer]",UM="[object DataView]",HM="[object Float32Array]",WM="[object Float64Array]",qM="[object Int8Array]",$M="[object Int16Array]",VM="[object Int32Array]",GM="[object Uint8Array]",YM="[object Uint8ClampedArray]",XM="[object Uint16Array]",KM="[object Uint32Array]";function JM(r,e,t){var i=r.constructor;switch(e){case jM:return EM(r);case OM:case LM:return new i(+r);case UM:return IM(r,t);case HM:case WM:case qM:case $M:case VM:case GM:case YM:case XM:case KM:return kM(r,t);case DM:return new i;case FM:case NM:return new i(r);case BM:return RM(r);case MM:return new i;case zM:return PM(r)}}Cb.exports=JM});var Rb=H((UIe,Ib)=>{h();d();p();var QM=Jt(),Eb=Object.create,ZM=function(){function r(){}return function(e){if(!QM(e))return{};if(Eb)return Eb(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Ib.exports=ZM});var kb=H(($Ie,Pb)=>{h();d();p();var e5=Rb(),t5=lh(),r5=xa();function i5(r){return typeof r.constructor=="function"&&!r5(r)?e5(t5(r)):{}}Pb.exports=i5});var Lb=H((XIe,Ob)=>{h();d();p();var s5=nn(),n5=Fr(),o5="[object Map]";function a5(r){return n5(r)&&s5(r)==o5}Ob.exports=a5});var Mb=H((ZIe,Bb)=>{h();d();p();var l5=Lb(),u5=_a(),Db=ya(),Fb=Db&&Db.isMap,c5=Fb?u5(Fb):l5;Bb.exports=c5});var zb=H((iRe,Nb)=>{h();d();p();var h5=nn(),d5=Fr(),p5="[object Set]";function f5(r){return d5(r)&&h5(r)==p5}Nb.exports=f5});var Wb=H((aRe,Hb)=>{h();d();p();var g5=zb(),m5=_a(),jb=ya(),Ub=jb&&jb.isSet,_5=Ub?m5(Ub):g5;Hb.exports=_5});var Yb=H((hRe,Gb)=>{h();d();p();var y5=ca(),x5=Gx(),b5=wa(),v5=Kx(),S5=Qx(),w5=ib(),T5=nb(),C5=ab(),A5=ub(),E5=Xc(),I5=ch(),R5=nn(),P5=hb(),k5=Ab(),O5=kb(),L5=Qt(),D5=fa(),F5=Mb(),B5=Jt(),M5=Wb(),N5=sn(),z5=Ta(),j5=1,U5=2,H5=4,qb="[object Arguments]",W5="[object Array]",q5="[object Boolean]",$5="[object Date]",V5="[object Error]",$b="[object Function]",G5="[object GeneratorFunction]",Y5="[object Map]",X5="[object Number]",Vb="[object Object]",K5="[object RegExp]",J5="[object Set]",Q5="[object String]",Z5="[object Symbol]",eN="[object WeakMap]",tN="[object ArrayBuffer]",rN="[object DataView]",iN="[object Float32Array]",sN="[object Float64Array]",nN="[object Int8Array]",oN="[object Int16Array]",aN="[object Int32Array]",lN="[object Uint8Array]",uN="[object Uint8ClampedArray]",cN="[object Uint16Array]",hN="[object Uint32Array]",Le={};Le[qb]=Le[W5]=Le[tN]=Le[rN]=Le[q5]=Le[$5]=Le[iN]=Le[sN]=Le[nN]=Le[oN]=Le[aN]=Le[Y5]=Le[X5]=Le[Vb]=Le[K5]=Le[J5]=Le[Q5]=Le[Z5]=Le[lN]=Le[uN]=Le[cN]=Le[hN]=!0;Le[V5]=Le[$b]=Le[eN]=!1;function Ea(r,e,t,i,s,n){var o,a=e&j5,l=e&U5,u=e&H5;if(t&&(o=s?t(r,i,s,n):t(r)),o!==void 0)return o;if(!B5(r))return r;var c=L5(r);if(c){if(o=P5(r),!a)return T5(r,o)}else{var g=R5(r),m=g==$b||g==G5;if(D5(r))return w5(r,a);if(g==Vb||g==qb||m&&!s){if(o=l||m?{}:O5(r),!a)return l?A5(r,S5(o,r)):C5(r,v5(o,r))}else{if(!Le[g])return s?r:{};o=k5(r,g,a)}}n||(n=new y5);var y=n.get(r);if(y)return y;n.set(r,o),M5(r)?r.forEach(function(A){o.add(Ea(A,e,t,A,r,n))}):F5(r)&&r.forEach(function(A,T){o.set(T,Ea(A,e,t,T,r,n))});var b=u?l?I5:E5:l?z5:N5,C=c?void 0:b(r);return x5(C||r,function(A,T){C&&(T=A,A=r[T]),b5(o,T,Ea(A,e,t,T,r,n))}),o}Gb.exports=Ea});var Kb=H((gRe,Xb)=>{h();d();p();var dN=Yb(),pN=1,fN=4;function gN(r){return dN(r,pN|fN)}Xb.exports=gN});var Qb=H((xRe,Jb)=>{h();d();p();function mN(r,e,t,i){for(var s=r.length,n=t+(i?1:-1);i?n--:++n{h();d();p();function _N(r){return r!==r}Zb.exports=_N});var r0=H((ERe,t0)=>{h();d();p();function yN(r,e,t){for(var i=t-1,s=r.length;++i{h();d();p();var xN=Qb(),bN=e0(),vN=r0();function SN(r,e,t){return e===e?vN(r,e,t):xN(r,bN,t)}i0.exports=SN});var o0=H((FRe,n0)=>{h();d();p();var wN=s0();function TN(r,e){var t=r==null?0:r.length;return!!t&&wN(r,e,0)>-1}n0.exports=TN});var l0=H((zRe,a0)=>{h();d();p();function CN(r,e,t){for(var i=-1,s=r==null?0:r.length;++i{h();d();p();function AN(){}u0.exports=AN});var d0=H((GRe,h0)=>{h();d();p();var ph=Kc(),EN=c0(),IN=da(),RN=1/0,PN=ph&&1/IN(new ph([,-0]))[1]==RN?function(r){return new ph(r)}:EN;h0.exports=PN});var f0=H((JRe,p0)=>{h();d();p();var kN=Fc(),ON=o0(),LN=l0(),DN=Bc(),FN=d0(),BN=da(),MN=200;function NN(r,e,t){var i=-1,s=ON,n=r.length,o=!0,a=[],l=a;if(t)o=!1,s=LN;else if(n>=MN){var u=e?null:FN(r);if(u)return BN(u);o=!1,s=DN,l=new kN}else l=e?[]:a;e:for(;++i{h();d();p();var zN=f0();function jN(r){return r&&r.length?zN(r):[]}g0.exports=jN});var gh=H((_0,fh)=>{h();d();p();(function(r){if(typeof _0=="object"&&typeof fh<"u")fh.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window<"u"||typeof window<"u"?e=window:typeof self<"u"?e=self:e=this,e.memoizerific=r()}})(function(){var r,e,t;return function i(s,n,o){function a(c,g){if(!n[c]){if(!s[c]){var m=typeof Ft=="function"&&Ft;if(!g&&m)return m(c,!0);if(l)return l(c,!0);var y=new Error("Cannot find module '"+c+"'");throw y.code="MODULE_NOT_FOUND",y}var b=n[c]={exports:{}};s[c][0].call(b.exports,function(C){var A=s[c][1][C];return a(A||C)},b,b.exports,i,s,n,o)}return n[c].exports}for(var l=typeof Ft=="function"&&Ft,u=0;u=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(a,l){var u;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(u=this.indexOf(a),u>=0?(this.lastItem=this.list[u],this.list[u].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(a,l){var u;for(u=0;u0&&(P[R]={cacheItem:C,arg:arguments[R]},E?a(m,P):m.push(P),m.length>c&&l(m.shift())),b.wasMemoized=E,b.numArgs=R+1,T};return b.limit=c,b.wasMemoized=!1,b.cache=g,b.lru=m,b}};function a(c,g){var m=c.length,y=g.length,b,C,A;for(C=0;C=0&&(m=c[b],y=m.cacheItem.get(m.arg),!y||!y.size);b--)m.cacheItem.delete(m.arg)}function u(c,g){return c===g||c!==c&&g!==g}},{"map-or-similar":1}]},{},[3])(3)})});var iw=H((Xa,rw)=>{h();d();p();(function(r,e){typeof Xa=="object"&&typeof rw<"u"?e(Xa):typeof define=="function"&&define.amd?define(["exports"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.jtpp={}))})(Xa,function(r){"use strict";function e(_){return _.text!==void 0&&_.text!==""?`'${_.type}' with value '${_.text}'`:`'${_.type}'`}class t extends Error{constructor(I){super(`No parslet found for token: ${e(I)}`),this.token=I,Object.setPrototypeOf(this,t.prototype)}getToken(){return this.token}}class i extends Error{constructor(I){super(`The parsing ended early. The next token was: ${e(I)}`),this.token=I,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class s extends Error{constructor(I,L){let V=`Unexpected type: '${I.type}'.`;L!==void 0&&(V+=` Message: ${L}`),super(V),Object.setPrototypeOf(this,s.prototype)}}function n(_){return I=>I.startsWith(_)?{type:_,text:_}:null}function o(_){let I=0,L,V=_[0],Z=!1;if(V!=="'"&&V!=='"')return null;for(;I<_.length;){if(I++,L=_[I],!Z&&L===V){I++;break}Z=!Z&&L==="\\"}if(L!==V)throw new Error("Unterminated String");return _.slice(0,I)}let a=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),l=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function u(_){let I=_[0];if(!a.test(I))return null;let L=1;do{if(I=_[L],!l.test(I))break;L++}while(L<_.length);return _.slice(0,L)}let c=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function g(_){var I,L;return(L=(I=c.exec(_))===null||I===void 0?void 0:I[0])!==null&&L!==void 0?L:null}let m=_=>{let I=u(_);return I==null?null:{type:"Identifier",text:I}};function y(_){return I=>{if(!I.startsWith(_))return null;let L=I[_.length];return L!==void 0&&l.test(L)?null:{type:_,text:_}}}let b=_=>{let I=o(_);return I==null?null:{type:"StringValue",text:I}},C=_=>_.length>0?null:{type:"EOF",text:""},A=_=>{let I=g(_);return I===null?null:{type:"Number",text:I}},T=[C,n("=>"),n("("),n(")"),n("{"),n("}"),n("["),n("]"),n("|"),n("&"),n("<"),n(">"),n(","),n(";"),n("*"),n("?"),n("!"),n("="),n(":"),n("..."),n("."),n("#"),n("~"),n("/"),n("@"),y("undefined"),y("null"),y("function"),y("this"),y("new"),y("module"),y("event"),y("external"),y("typeof"),y("keyof"),y("readonly"),y("import"),y("is"),y("in"),y("asserts"),A,m,b],R=/^\s*\n\s*/;class P{static create(I){let L=this.read(I);I=L.text;let V=this.read(I);return I=V.text,new P(I,void 0,L.token,V.token)}constructor(I,L,V,Z){this.text="",this.text=I,this.previous=L,this.current=V,this.next=Z}static read(I,L=!1){L=L||R.test(I),I=I.trim();for(let V of T){let Z=V(I);if(Z!==null){let oe=Object.assign(Object.assign({},Z),{startOfLine:L});return I=I.slice(oe.text.length),{text:I,token:oe}}}throw new Error("Unexpected Token "+I)}advance(){let I=P.read(this.text);return new P(I.text,this.current,this.next,I.token)}}function E(_){if(_===void 0)throw new Error("Unexpected undefined");if(_.type==="JsdocTypeKeyValue"||_.type==="JsdocTypeParameterList"||_.type==="JsdocTypeProperty"||_.type==="JsdocTypeReadonlyProperty"||_.type==="JsdocTypeObjectField"||_.type==="JsdocTypeJsdocObjectField"||_.type==="JsdocTypeIndexSignature"||_.type==="JsdocTypeMappedType")throw new s(_);return _}function k(_){return _.type==="JsdocTypeKeyValue"?B(_):E(_)}function O(_){return _.type==="JsdocTypeName"?_:B(_)}function B(_){if(_.type!=="JsdocTypeKeyValue")throw new s(_);return _}function F(_){var I;if(_.type==="JsdocTypeVariadic"){if(((I=_.element)===null||I===void 0?void 0:I.type)==="JsdocTypeName")return _;throw new s(_)}if(_.type!=="JsdocTypeNumber"&&_.type!=="JsdocTypeName")throw new s(_);return _}function U(_){return _.type==="JsdocTypeIndexSignature"||_.type==="JsdocTypeMappedType"}var q;(function(_){_[_.ALL=0]="ALL",_[_.PARAMETER_LIST=1]="PARAMETER_LIST",_[_.OBJECT=2]="OBJECT",_[_.KEY_VALUE=3]="KEY_VALUE",_[_.INDEX_BRACKETS=4]="INDEX_BRACKETS",_[_.UNION=5]="UNION",_[_.INTERSECTION=6]="INTERSECTION",_[_.PREFIX=7]="PREFIX",_[_.INFIX=8]="INFIX",_[_.TUPLE=9]="TUPLE",_[_.SYMBOL=10]="SYMBOL",_[_.OPTIONAL=11]="OPTIONAL",_[_.NULLABLE=12]="NULLABLE",_[_.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",_[_.FUNCTION=14]="FUNCTION",_[_.ARROW=15]="ARROW",_[_.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",_[_.GENERIC=17]="GENERIC",_[_.NAME_PATH=18]="NAME_PATH",_[_.PARENTHESIS=19]="PARENTHESIS",_[_.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(q||(q={}));class ee{constructor(I,L,V){this.grammar=I,typeof L=="string"?this._lexer=P.create(L):this._lexer=L,this.baseParser=V}get lexer(){return this._lexer}parse(){let I=this.parseType(q.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return I}parseType(I){return E(this.parseIntermediateType(I))}parseIntermediateType(I){let L=this.tryParslets(null,I);if(L===null)throw new t(this.lexer.current);return this.parseInfixIntermediateType(L,I)}parseInfixIntermediateType(I,L){let V=this.tryParslets(I,L);for(;V!==null;)I=V,V=this.tryParslets(I,L);return I}tryParslets(I,L){for(let V of this.grammar){let Z=V(this,L,I);if(Z!==null)return Z}return null}consume(I){return Array.isArray(I)||(I=[I]),I.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(I){this._lexer=I.lexer}}function te(_){return _==="EOF"||_==="|"||_===","||_===")"||_===">"}let $=(_,I,L)=>{let V=_.lexer.current.type,Z=_.lexer.next.type;return L==null&&V==="?"&&!te(Z)||L!=null&&V==="?"?(_.consume("?"),L==null?{type:"JsdocTypeNullable",element:_.parseType(q.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(L),meta:{position:"suffix"}}):null};function D(_){let I=(L,V,Z)=>{let oe=L.lexer.current.type,ue=L.lexer.next.type;if(Z===null){if("parsePrefix"in _&&_.accept(oe,ue))return _.parsePrefix(L)}else if("parseInfix"in _&&_.precedence>V&&_.accept(oe,ue))return _.parseInfix(L,Z);return null};return Object.defineProperty(I,"name",{value:_.name}),I}let N=D({name:"optionalParslet",accept:_=>_==="=",precedence:q.OPTIONAL,parsePrefix:_=>(_.consume("="),{type:"JsdocTypeOptional",element:_.parseType(q.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(_,I)=>(_.consume("="),{type:"JsdocTypeOptional",element:E(I),meta:{position:"suffix"}})}),G=D({name:"numberParslet",accept:_=>_==="Number",parsePrefix:_=>{let I=parseFloat(_.lexer.current.text);return _.consume("Number"),{type:"JsdocTypeNumber",value:I}}}),Q=D({name:"parenthesisParslet",accept:_=>_==="(",parsePrefix:_=>{if(_.consume("("),_.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let I=_.parseIntermediateType(q.ALL);if(!_.consume(")"))throw new Error("Unterminated parenthesis");return I.type==="JsdocTypeParameterList"?I:I.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[I]}:{type:"JsdocTypeParenthesis",element:E(I)}}}),ne=D({name:"specialTypesParslet",accept:(_,I)=>_==="?"&&te(I)||_==="null"||_==="undefined"||_==="*",parsePrefix:_=>{if(_.consume("null"))return{type:"JsdocTypeNull"};if(_.consume("undefined"))return{type:"JsdocTypeUndefined"};if(_.consume("*"))return{type:"JsdocTypeAny"};if(_.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+_.lexer.current.text)}}),ie=D({name:"notNullableParslet",accept:_=>_==="!",precedence:q.NULLABLE,parsePrefix:_=>(_.consume("!"),{type:"JsdocTypeNotNullable",element:_.parseType(q.NULLABLE),meta:{position:"prefix"}}),parseInfix:(_,I)=>(_.consume("!"),{type:"JsdocTypeNotNullable",element:E(I),meta:{position:"suffix"}})});function re({allowTrailingComma:_}){return D({name:"parameterListParslet",accept:I=>I===",",precedence:q.PARAMETER_LIST,parseInfix:(I,L)=>{let V=[k(L)];I.consume(",");do try{let Z=I.parseIntermediateType(q.PARAMETER_LIST);V.push(k(Z))}catch(Z){if(_&&Z instanceof t)break;throw Z}while(I.consume(","));if(V.length>0&&V.slice(0,-1).some(Z=>Z.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:V}}})}let ae=D({name:"genericParslet",accept:(_,I)=>_==="<"||_==="."&&I==="<",precedence:q.GENERIC,parseInfix:(_,I)=>{let L=_.consume(".");_.consume("<");let V=[];do V.push(_.parseType(q.PARAMETER_LIST));while(_.consume(","));if(!_.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:E(I),elements:V,meta:{brackets:"angle",dot:L}}}}),ce=D({name:"unionParslet",accept:_=>_==="|",precedence:q.UNION,parseInfix:(_,I)=>{_.consume("|");let L=[];do L.push(_.parseType(q.UNION));while(_.consume("|"));return{type:"JsdocTypeUnion",elements:[E(I),...L]}}}),Se=[$,N,G,Q,ne,ie,re({allowTrailingComma:!0}),ae,ce,N];function we({allowSquareBracketsOnAnyType:_,allowJsdocNamePaths:I,pathGrammar:L}){return function(Z,oe,ue){if(ue==null||oe>=q.NAME_PATH)return null;let Te=Z.lexer.current.type,et=Z.lexer.next.type;if(!(Te==="."&&et!=="<"||Te==="["&&(_||ue.type==="JsdocTypeName")||I&&(Te==="~"||Te==="#")))return null;let Dt,Wn=!1;Z.consume(".")?Dt="property":Z.consume("[")?(Dt="property-brackets",Wn=!0):Z.consume("~")?Dt="inner":(Z.consume("#"),Dt="instance");let lp=L!==null?new ee(L,Z.lexer,Z):Z,tr=lp.parseIntermediateType(q.NAME_PATH);Z.acceptLexerState(lp);let cs;switch(tr.type){case"JsdocTypeName":cs={type:"JsdocTypeProperty",value:tr.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":cs={type:"JsdocTypeProperty",value:tr.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":cs={type:"JsdocTypeProperty",value:tr.value,meta:{quote:tr.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(tr.specialType==="event")cs=tr;else throw new s(tr,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new s(tr,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Wn&&!Z.consume("]")){let up=Z.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${up.type}' with text '${up.text}'`)}return{type:"JsdocTypeNamePath",left:E(ue),right:cs,pathType:Dt}}}function xe({allowedAdditionalTokens:_}){return D({name:"nameParslet",accept:I=>I==="Identifier"||I==="this"||I==="new"||_.includes(I),parsePrefix:I=>{let{type:L,text:V}=I.lexer.current;return I.consume(L),{type:"JsdocTypeName",value:V}}})}let Ie=D({name:"stringValueParslet",accept:_=>_==="StringValue",parsePrefix:_=>{let I=_.lexer.current.text;return _.consume("StringValue"),{type:"JsdocTypeStringValue",value:I.slice(1,-1),meta:{quote:I[0]==="'"?"single":"double"}}}});function De({pathGrammar:_,allowedTypes:I}){return D({name:"specialNamePathParslet",accept:L=>I.includes(L),parsePrefix:L=>{let V=L.lexer.current.type;if(L.consume(V),!L.consume(":"))return{type:"JsdocTypeName",value:V};let Z,oe=L.lexer.current;if(L.consume("StringValue"))Z={type:"JsdocTypeSpecialNamePath",value:oe.text.slice(1,-1),specialType:V,meta:{quote:oe.text[0]==="'"?"single":"double"}};else{let et="",Ve=["Identifier","@","/"];for(;Ve.some(Dt=>L.consume(Dt));)et+=oe.text,oe=L.lexer.current;Z={type:"JsdocTypeSpecialNamePath",value:et,specialType:V,meta:{quote:void 0}}}let ue=new ee(_,L.lexer,L),Te=ue.parseInfixIntermediateType(Z,q.ALL);return L.acceptLexerState(ue),E(Te)}})}let nt=[xe({allowedAdditionalTokens:["external","module"]}),Ie,G,we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],$e=[...nt,De({allowedTypes:["event"],pathGrammar:nt})];function Re(_){let I;if(_.type==="JsdocTypeParameterList")I=_.elements;else if(_.type==="JsdocTypeParenthesis")I=[_.element];else throw new s(_);return I.map(L=>k(L))}function ot(_){let I=Re(_);if(I.some(L=>L.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return I}function je({allowNamedParameters:_,allowNoReturnType:I,allowWithoutParenthesis:L,allowNewAsFunctionKeyword:V}){return D({name:"functionParslet",accept:(Z,oe)=>Z==="function"||V&&Z==="new"&&oe==="(",parsePrefix:Z=>{let oe=Z.consume("new");Z.consume("function");let ue=Z.lexer.current.type==="(";if(!ue){if(!L)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Te={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:oe,parenthesis:ue},et=Z.parseIntermediateType(q.FUNCTION);if(_===void 0)Te.parameters=ot(et);else{if(oe&&et.type==="JsdocTypeFunction"&&et.arrow)return Te=et,Te.constructor=!0,Te;Te.parameters=Re(et);for(let Ve of Te.parameters)if(Ve.type==="JsdocTypeKeyValue"&&!_.includes(Ve.key))throw new Error(`only allowed named parameters are ${_.join(", ")} but got ${Ve.type}`)}if(Z.consume(":"))Te.returnType=Z.parseType(q.PREFIX);else if(!I)throw new Error("function is missing return type");return Te}})}function at({allowPostfix:_,allowEnclosingBrackets:I}){return D({name:"variadicParslet",accept:L=>L==="...",precedence:q.PREFIX,parsePrefix:L=>{L.consume("...");let V=I&&L.consume("[");try{let Z=L.parseType(q.PREFIX);if(V&&!L.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(Z),meta:{position:"prefix",squareBrackets:V}}}catch(Z){if(Z instanceof t){if(V)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw Z}},parseInfix:_?(L,V)=>(L.consume("..."),{type:"JsdocTypeVariadic",element:E(V),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let jt=D({name:"symbolParslet",accept:_=>_==="(",precedence:q.SYMBOL,parseInfix:(_,I)=>{if(I.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");_.consume("(");let L={type:"JsdocTypeSymbol",value:I.value};if(!_.consume(")")){let V=_.parseIntermediateType(q.SYMBOL);if(L.element=F(V),!_.consume(")"))throw new Error("Symbol does not end after value")}return L}}),Ze=D({name:"arrayBracketsParslet",precedence:q.ARRAY_BRACKETS,accept:(_,I)=>_==="["&&I==="]",parseInfix:(_,I)=>(_.consume("["),_.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(I)],meta:{brackets:"square",dot:!1}})});function Ee({objectFieldGrammar:_,allowKeyTypes:I}){return D({name:"objectParslet",accept:L=>L==="{",parsePrefix:L=>{L.consume("{");let V={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!L.consume("}")){let Z,oe=new ee(_,L.lexer,L);for(;;){oe.acceptLexerState(L);let ue=oe.parseIntermediateType(q.OBJECT);L.acceptLexerState(oe),ue===void 0&&I&&(ue=L.parseIntermediateType(q.OBJECT));let Te=!1;if(ue.type==="JsdocTypeNullable"&&(Te=!0,ue=ue.element),ue.type==="JsdocTypeNumber"||ue.type==="JsdocTypeName"||ue.type==="JsdocTypeStringValue"){let Ve;ue.type==="JsdocTypeStringValue"&&(Ve=ue.meta.quote),V.elements.push({type:"JsdocTypeObjectField",key:ue.value.toString(),right:void 0,optional:Te,readonly:!1,meta:{quote:Ve}})}else if(ue.type==="JsdocTypeObjectField"||ue.type==="JsdocTypeJsdocObjectField")V.elements.push(ue);else throw new s(ue);if(L.lexer.current.startOfLine)Z="linebreak";else if(L.consume(","))Z="comma";else if(L.consume(";"))Z="semicolon";else break;if(L.lexer.current.type==="}")break}if(V.meta.separator=Z??"comma",!L.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return V}})}function ze({allowSquaredProperties:_,allowKeyTypes:I,allowReadonly:L,allowOptional:V}){return D({name:"objectFieldParslet",precedence:q.KEY_VALUE,accept:Z=>Z===":",parseInfix:(Z,oe)=>{var ue;let Te=!1,et=!1;V&&oe.type==="JsdocTypeNullable"&&(Te=!0,oe=oe.element),L&&oe.type==="JsdocTypeReadonlyProperty"&&(et=!0,oe=oe.element);let Ve=(ue=Z.baseParser)!==null&&ue!==void 0?ue:Z;if(Ve.acceptLexerState(Z),oe.type==="JsdocTypeNumber"||oe.type==="JsdocTypeName"||oe.type==="JsdocTypeStringValue"||U(oe)){if(U(oe)&&!_)throw new s(oe);Ve.consume(":");let Dt;oe.type==="JsdocTypeStringValue"&&(Dt=oe.meta.quote);let Wn=Ve.parseType(q.KEY_VALUE);return Z.acceptLexerState(Ve),{type:"JsdocTypeObjectField",key:U(oe)?oe:oe.value.toString(),right:Wn,optional:Te,readonly:et,meta:{quote:Dt}}}else{if(!I)throw new s(oe);Ve.consume(":");let Dt=Ve.parseType(q.KEY_VALUE);return Z.acceptLexerState(Ve),{type:"JsdocTypeJsdocObjectField",left:E(oe),right:Dt}}}})}function Zt({allowOptional:_,allowVariadic:I}){return D({name:"keyValueParslet",precedence:q.KEY_VALUE,accept:L=>L===":",parseInfix:(L,V)=>{let Z=!1,oe=!1;if(_&&V.type==="JsdocTypeNullable"&&(Z=!0,V=V.element),I&&V.type==="JsdocTypeVariadic"&&V.element!==void 0&&(oe=!0,V=V.element),V.type!=="JsdocTypeName")throw new s(V);L.consume(":");let ue=L.parseType(q.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:V.value,right:ue,optional:Z,variadic:oe}}})}let yr=[...Se,je({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ie,De({allowedTypes:["module","external","event"],pathGrammar:$e}),at({allowEnclosingBrackets:!0,allowPostfix:!0}),xe({allowedAdditionalTokens:["keyof"]}),jt,Ze,we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:$e})],li=[...yr,Ee({objectFieldGrammar:[xe({allowedAdditionalTokens:["module","in"]}),ze({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...yr],allowKeyTypes:!0}),Zt({allowOptional:!0,allowVariadic:!0})],ss=D({name:"typeOfParslet",accept:_=>_==="typeof",parsePrefix:_=>(_.consume("typeof"),{type:"JsdocTypeTypeof",element:E(_.parseType(q.KEY_OF_TYPE_OF))})}),Ln=[xe({allowedAdditionalTokens:["module","keyof","event","external","in"]}),$,N,Ie,G,ze({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Dn=[...Se,Ee({allowKeyTypes:!1,objectFieldGrammar:Ln}),xe({allowedAdditionalTokens:["event","external","in"]}),ss,je({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),at({allowEnclosingBrackets:!1,allowPostfix:!1}),xe({allowedAdditionalTokens:["keyof"]}),De({allowedTypes:["module"],pathGrammar:$e}),we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:$e}),Zt({allowOptional:!1,allowVariadic:!1}),jt],Fn=D({name:"assertsParslet",accept:_=>_==="asserts",parsePrefix:_=>{_.consume("asserts");let I=_.parseIntermediateType(q.SYMBOL);if(I.type!=="JsdocTypeName")throw new s(I,"A typescript asserts always has to have a name on the left side.");return _.consume("is"),{type:"JsdocTypeAsserts",left:I,right:E(_.parseIntermediateType(q.INFIX))}}});function Bn({allowQuestionMark:_}){return D({name:"tupleParslet",accept:I=>I==="[",parsePrefix:I=>{I.consume("[");let L={type:"JsdocTypeTuple",elements:[]};if(I.consume("]"))return L;let V=I.parseIntermediateType(q.ALL);if(V.type==="JsdocTypeParameterList"?V.elements[0].type==="JsdocTypeKeyValue"?L.elements=V.elements.map(B):L.elements=V.elements.map(E):V.type==="JsdocTypeKeyValue"?L.elements=[B(V)]:L.elements=[E(V)],!I.consume("]"))throw new Error("Unterminated '['");if(!_&&L.elements.some(Z=>Z.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return L}})}let ns=D({name:"keyOfParslet",accept:_=>_==="keyof",parsePrefix:_=>(_.consume("keyof"),{type:"JsdocTypeKeyof",element:E(_.parseType(q.KEY_OF_TYPE_OF))})}),Mn=D({name:"importParslet",accept:_=>_==="import",parsePrefix:_=>{if(_.consume("import"),!_.consume("("))throw new Error("Missing parenthesis after import keyword");let I=_.parseType(q.PREFIX);if(I.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!_.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:I}}}),xr=D({name:"readonlyPropertyParslet",accept:_=>_==="readonly",parsePrefix:_=>(_.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:_.parseType(q.KEY_VALUE)})}),ui=D({name:"arrowFunctionParslet",precedence:q.ARROW,accept:_=>_==="=>",parseInfix:(_,I)=>(_.consume("=>"),{type:"JsdocTypeFunction",parameters:Re(I).map(O),arrow:!0,constructor:!1,parenthesis:!0,returnType:_.parseType(q.OBJECT)})}),os=D({name:"intersectionParslet",accept:_=>_==="&",precedence:q.INTERSECTION,parseInfix:(_,I)=>{_.consume("&");let L=[];do L.push(_.parseType(q.INTERSECTION));while(_.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(I),...L]}}}),Nn=D({name:"predicateParslet",precedence:q.INFIX,accept:_=>_==="is",parseInfix:(_,I)=>{if(I.type!=="JsdocTypeName")throw new s(I,"A typescript predicate always has to have a name on the left side.");return _.consume("is"),{type:"JsdocTypePredicate",left:I,right:E(_.parseIntermediateType(q.INFIX))}}}),zn=D({name:"objectSquareBracketPropertyParslet",accept:_=>_==="[",parsePrefix:_=>{if(_.baseParser===void 0)throw new Error("Only allowed inside object grammar");_.consume("[");let I=_.lexer.current.text;_.consume("Identifier");let L;if(_.consume(":")){let V=_.baseParser;V.acceptLexerState(_),L={type:"JsdocTypeIndexSignature",key:I,right:V.parseType(q.INDEX_BRACKETS)},_.acceptLexerState(V)}else if(_.consume("in")){let V=_.baseParser;V.acceptLexerState(_),L={type:"JsdocTypeMappedType",key:I,right:V.parseType(q.ARRAY_BRACKETS)},_.acceptLexerState(V)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!_.consume("]"))throw new Error("Unterminated square brackets");return L}}),ci=[xr,xe({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),$,N,Ie,G,ze({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),zn],Wr=[...Se,Ee({allowKeyTypes:!1,objectFieldGrammar:ci}),ss,ns,Mn,Ie,je({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Bn({allowQuestionMark:!1}),at({allowEnclosingBrackets:!1,allowPostfix:!1}),Fn,xe({allowedAdditionalTokens:["event","external","in"]}),De({allowedTypes:["module"],pathGrammar:$e}),Ze,ui,we({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:$e}),os,Nn,Zt({allowVariadic:!0,allowOptional:!0})];function W(_,I){switch(I){case"closure":return new ee(Dn,_).parse();case"jsdoc":return new ee(li,_).parse();case"typescript":return new ee(Wr,_).parse()}}function Y(_,I=["typescript","closure","jsdoc"]){let L;for(let V of I)try{return W(_,V)}catch(Z){L=Z}throw L}function _e(_,I){let L=_[I.type];if(L===void 0)throw new Error(`In this set of transform rules exists no rule for type ${I.type}.`);return L(I,V=>_e(_,V))}function de(_){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Me(_){let I={params:[]};for(let L of _.parameters)L.type==="JsdocTypeKeyValue"?L.key==="this"?I.this=L.right:L.key==="new"?I.new=L.right:I.params.push(L):I.params.push(L);return I}function ge(_,I,L){return _==="prefix"?L+I:I+L}function lt(_,I){switch(I){case"double":return`"${_}"`;case"single":return`'${_}'`;case void 0:return _}}function Wt(){return{JsdocTypeParenthesis:(_,I)=>`(${_.element!==void 0?I(_.element):""})`,JsdocTypeKeyof:(_,I)=>`keyof ${I(_.element)}`,JsdocTypeFunction:(_,I)=>{if(_.arrow){if(_.returnType===void 0)throw new Error("Arrow function needs a return type.");let L=`(${_.parameters.map(I).join(", ")}) => ${I(_.returnType)}`;return _.constructor&&(L="new "+L),L}else{let L=_.constructor?"new":"function";return _.parenthesis&&(L+=`(${_.parameters.map(I).join(", ")})`,_.returnType!==void 0&&(L+=`: ${I(_.returnType)}`)),L}},JsdocTypeName:_=>_.value,JsdocTypeTuple:(_,I)=>`[${_.elements.map(I).join(", ")}]`,JsdocTypeVariadic:(_,I)=>_.meta.position===void 0?"...":ge(_.meta.position,I(_.element),"..."),JsdocTypeNamePath:(_,I)=>{let L=I(_.left),V=I(_.right);switch(_.pathType){case"inner":return`${L}~${V}`;case"instance":return`${L}#${V}`;case"property":return`${L}.${V}`;case"property-brackets":return`${L}[${V}]`}},JsdocTypeStringValue:_=>lt(_.value,_.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(_,I)=>{if(_.meta.brackets==="square"){let L=_.elements[0],V=I(L);return L.type==="JsdocTypeUnion"||L.type==="JsdocTypeIntersection"?`(${V})[]`:`${V}[]`}else return`${I(_.left)}${_.meta.dot?".":""}<${_.elements.map(I).join(", ")}>`},JsdocTypeImport:(_,I)=>`import(${I(_.element)})`,JsdocTypeObjectField:(_,I)=>{let L="";return _.readonly&&(L+="readonly "),typeof _.key=="string"?L+=lt(_.key,_.meta.quote):L+=I(_.key),_.optional&&(L+="?"),_.right===void 0?L:L+`: ${I(_.right)}`},JsdocTypeJsdocObjectField:(_,I)=>`${I(_.left)}: ${I(_.right)}`,JsdocTypeKeyValue:(_,I)=>{let L=_.key;return _.optional&&(L+="?"),_.variadic&&(L="..."+L),_.right===void 0?L:L+`: ${I(_.right)}`},JsdocTypeSpecialNamePath:_=>`${_.specialType}:${lt(_.value,_.meta.quote)}`,JsdocTypeNotNullable:(_,I)=>ge(_.meta.position,I(_.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(_,I)=>ge(_.meta.position,I(_.element),"?"),JsdocTypeNumber:_=>_.value.toString(),JsdocTypeObject:(_,I)=>`{${_.elements.map(I).join((_.meta.separator==="comma"?",":";")+" ")}}`,JsdocTypeOptional:(_,I)=>ge(_.meta.position,I(_.element),"="),JsdocTypeSymbol:(_,I)=>`${_.value}(${_.element!==void 0?I(_.element):""})`,JsdocTypeTypeof:(_,I)=>`typeof ${I(_.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(_,I)=>_.elements.map(I).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(_,I)=>_.elements.map(I).join(" & "),JsdocTypeProperty:_=>lt(_.value,_.meta.quote),JsdocTypePredicate:(_,I)=>`${I(_.left)} is ${I(_.right)}`,JsdocTypeIndexSignature:(_,I)=>`[${_.key}: ${I(_.right)}]`,JsdocTypeMappedType:(_,I)=>`[${_.key} in ${I(_.right)}]`,JsdocTypeAsserts:(_,I)=>`asserts ${I(_.left)} is ${I(_.right)}`}}let gt=Wt();function qt(_){return _e(gt,_)}let as=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function mt(_){let I={type:"NameExpression",name:_};return as.includes(_)&&(I.reservedWord=!0),I}let vt={JsdocTypeOptional:(_,I)=>{let L=I(_.element);return L.optional=!0,L},JsdocTypeNullable:(_,I)=>{let L=I(_.element);return L.nullable=!0,L},JsdocTypeNotNullable:(_,I)=>{let L=I(_.element);return L.nullable=!1,L},JsdocTypeVariadic:(_,I)=>{if(_.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let L=I(_.element);return L.repeatable=!0,L},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:_=>mt(lt(_.value,_.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(_,I)=>{let L=Me(_),V={type:"FunctionType",params:L.params.map(I)};return L.this!==void 0&&(V.this=I(L.this)),L.new!==void 0&&(V.new=I(L.new)),_.returnType!==void 0&&(V.result=I(_.returnType)),V},JsdocTypeGeneric:(_,I)=>({type:"TypeApplication",applications:_.elements.map(L=>I(L)),expression:I(_.left)}),JsdocTypeSpecialNamePath:_=>mt(_.specialType+":"+lt(_.value,_.meta.quote)),JsdocTypeName:_=>_.value!=="function"?mt(_.value):{type:"FunctionType",params:[]},JsdocTypeNumber:_=>mt(_.value.toString()),JsdocTypeObject:(_,I)=>{let L={type:"RecordType",fields:[]};for(let V of _.elements)V.type!=="JsdocTypeObjectField"&&V.type!=="JsdocTypeJsdocObjectField"?L.fields.push({type:"FieldType",key:I(V),value:void 0}):L.fields.push(I(V));return L},JsdocTypeObjectField:(_,I)=>{if(typeof _.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:mt(lt(_.key,_.meta.quote)),value:_.right===void 0?void 0:I(_.right)}},JsdocTypeJsdocObjectField:(_,I)=>({type:"FieldType",key:I(_.left),value:I(_.right)}),JsdocTypeUnion:(_,I)=>({type:"TypeUnion",elements:_.elements.map(L=>I(L))}),JsdocTypeKeyValue:(_,I)=>({type:"FieldType",key:mt(_.key),value:_.right===void 0?void 0:I(_.right)}),JsdocTypeNamePath:(_,I)=>{let L=I(_.left),V;_.right.type==="JsdocTypeSpecialNamePath"?V=I(_.right).name:V=lt(_.right.value,_.right.meta.quote);let Z=_.pathType==="inner"?"~":_.pathType==="instance"?"#":".";return mt(`${L.name}${Z}${V}`)},JsdocTypeSymbol:_=>{let I="",L=_.element,V=!1;return L?.type==="JsdocTypeVariadic"&&(L.meta.position==="prefix"?I="...":V=!0,L=L.element),L?.type==="JsdocTypeName"?I+=L.value:L?.type==="JsdocTypeNumber"&&(I+=L.value.toString()),V&&(I+="..."),mt(`${_.value}(${I})`)},JsdocTypeParenthesis:(_,I)=>I(E(_.element)),JsdocTypeMappedType:de,JsdocTypeIndexSignature:de,JsdocTypeImport:de,JsdocTypeKeyof:de,JsdocTypeTuple:de,JsdocTypeTypeof:de,JsdocTypeIntersection:de,JsdocTypeProperty:de,JsdocTypePredicate:de,JsdocTypeAsserts:de};function jn(_){return _e(vt,_)}function $t(_){switch(_){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Un(_){switch(_){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function er(_,I){return I.length===2?{type:_,left:I[0],right:I[1]}:{type:_,left:I[0],right:er(_,I.slice(1))}}let ls={JsdocTypeOptional:(_,I)=>({type:"OPTIONAL",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(_,I)=>({type:"NULLABLE",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(_,I)=>({type:"NOT_NULLABLE",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(_,I)=>{let L={type:"VARIADIC",meta:{syntax:_.meta.position==="prefix"?"PREFIX_DOTS":_.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return _.element!==void 0&&(L.value=I(_.element)),L},JsdocTypeName:_=>({type:"NAME",name:_.value}),JsdocTypeTypeof:(_,I)=>({type:"TYPE_QUERY",name:I(_.element)}),JsdocTypeTuple:(_,I)=>({type:"TUPLE",entries:_.elements.map(I)}),JsdocTypeKeyof:(_,I)=>({type:"KEY_QUERY",value:I(_.element)}),JsdocTypeImport:_=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:$t(_.element.meta.quote),string:_.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(_,I)=>{let L=Me(_),V={type:_.arrow?"ARROW":"FUNCTION",params:L.params.map(Z=>{if(Z.type==="JsdocTypeKeyValue"){if(Z.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:Z.key,typeName:I(Z.right)}}else return I(Z)}),new:null,returns:null};return L.this!==void 0?V.this=I(L.this):_.arrow||(V.this=null),L.new!==void 0&&(V.new=I(L.new)),_.returnType!==void 0&&(V.returns=I(_.returnType)),V},JsdocTypeGeneric:(_,I)=>{let L={type:"GENERIC",subject:I(_.left),objects:_.elements.map(I),meta:{syntax:_.meta.brackets==="square"?"SQUARE_BRACKET":_.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return _.meta.brackets==="square"&&_.elements[0].type==="JsdocTypeFunction"&&!_.elements[0].parenthesis&&(L.objects[0]={type:"NAME",name:"function"}),L},JsdocTypeObjectField:(_,I)=>{if(typeof _.key!="string")throw new Error("Index signatures and mapped types are not supported");if(_.right===void 0)return{type:"RECORD_ENTRY",key:_.key,quoteStyle:$t(_.meta.quote),value:null,readonly:!1};let L=I(_.right);return _.optional&&(L={type:"OPTIONAL",value:L,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:_.key.toString(),quoteStyle:$t(_.meta.quote),value:L,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(_,I)=>{if(_.right===void 0)return{type:"RECORD_ENTRY",key:_.key,quoteStyle:"none",value:null,readonly:!1};let L=I(_.right);return _.optional&&(L={type:"OPTIONAL",value:L,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:_.key,quoteStyle:"none",value:L,readonly:!1}},JsdocTypeObject:(_,I)=>{let L=[];for(let V of _.elements)(V.type==="JsdocTypeObjectField"||V.type==="JsdocTypeJsdocObjectField")&&L.push(I(V));return{type:"RECORD",entries:L}},JsdocTypeSpecialNamePath:_=>{if(_.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${_.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:$t(_.meta.quote),path:_.value}}},JsdocTypeNamePath:(_,I)=>{let L=!1,V,Z;_.right.type==="JsdocTypeSpecialNamePath"&&_.right.specialType==="event"?(L=!0,V=_.right.value,Z=$t(_.right.meta.quote)):(V=_.right.value,Z=$t(_.right.meta.quote));let oe={type:Un(_.pathType),owner:I(_.left),name:V,quoteStyle:Z,hasEventPrefix:L};if(oe.owner.type==="MODULE"){let ue=oe.owner;return oe.owner=oe.owner.value,ue.value=oe,ue}else return oe},JsdocTypeUnion:(_,I)=>er("UNION",_.elements.map(I)),JsdocTypeParenthesis:(_,I)=>({type:"PARENTHESIS",value:I(E(_.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:_=>({type:"STRING_VALUE",quoteStyle:$t(_.meta.quote),string:_.value}),JsdocTypeIntersection:(_,I)=>er("INTERSECTION",_.elements.map(I)),JsdocTypeNumber:_=>({type:"NUMBER_VALUE",number:_.value.toString()}),JsdocTypeSymbol:de,JsdocTypeProperty:de,JsdocTypePredicate:de,JsdocTypeMappedType:de,JsdocTypeIndexSignature:de,JsdocTypeAsserts:de};function hi(_){return _e(ls,_)}function us(){return{JsdocTypeIntersection:(_,I)=>({type:"JsdocTypeIntersection",elements:_.elements.map(I)}),JsdocTypeGeneric:(_,I)=>({type:"JsdocTypeGeneric",left:I(_.left),elements:_.elements.map(I),meta:{dot:_.meta.dot,brackets:_.meta.brackets}}),JsdocTypeNullable:_=>_,JsdocTypeUnion:(_,I)=>({type:"JsdocTypeUnion",elements:_.elements.map(I)}),JsdocTypeUnknown:_=>_,JsdocTypeUndefined:_=>_,JsdocTypeTypeof:(_,I)=>({type:"JsdocTypeTypeof",element:I(_.element)}),JsdocTypeSymbol:(_,I)=>{let L={type:"JsdocTypeSymbol",value:_.value};return _.element!==void 0&&(L.element=I(_.element)),L},JsdocTypeOptional:(_,I)=>({type:"JsdocTypeOptional",element:I(_.element),meta:{position:_.meta.position}}),JsdocTypeObject:(_,I)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:_.elements.map(I)}),JsdocTypeNumber:_=>_,JsdocTypeNull:_=>_,JsdocTypeNotNullable:(_,I)=>({type:"JsdocTypeNotNullable",element:I(_.element),meta:{position:_.meta.position}}),JsdocTypeSpecialNamePath:_=>_,JsdocTypeObjectField:(_,I)=>({type:"JsdocTypeObjectField",key:_.key,right:_.right===void 0?void 0:I(_.right),optional:_.optional,readonly:_.readonly,meta:_.meta}),JsdocTypeJsdocObjectField:(_,I)=>({type:"JsdocTypeJsdocObjectField",left:I(_.left),right:I(_.right)}),JsdocTypeKeyValue:(_,I)=>({type:"JsdocTypeKeyValue",key:_.key,right:_.right===void 0?void 0:I(_.right),optional:_.optional,variadic:_.variadic}),JsdocTypeImport:(_,I)=>({type:"JsdocTypeImport",element:I(_.element)}),JsdocTypeAny:_=>_,JsdocTypeStringValue:_=>_,JsdocTypeNamePath:_=>_,JsdocTypeVariadic:(_,I)=>{let L={type:"JsdocTypeVariadic",meta:{position:_.meta.position,squareBrackets:_.meta.squareBrackets}};return _.element!==void 0&&(L.element=I(_.element)),L},JsdocTypeTuple:(_,I)=>({type:"JsdocTypeTuple",elements:_.elements.map(I)}),JsdocTypeName:_=>_,JsdocTypeFunction:(_,I)=>{let L={type:"JsdocTypeFunction",arrow:_.arrow,parameters:_.parameters.map(I),constructor:_.constructor,parenthesis:_.parenthesis};return _.returnType!==void 0&&(L.returnType=I(_.returnType)),L},JsdocTypeKeyof:(_,I)=>({type:"JsdocTypeKeyof",element:I(_.element)}),JsdocTypeParenthesis:(_,I)=>({type:"JsdocTypeParenthesis",element:I(_.element)}),JsdocTypeProperty:_=>_,JsdocTypePredicate:(_,I)=>({type:"JsdocTypePredicate",left:I(_.left),right:I(_.right)}),JsdocTypeIndexSignature:(_,I)=>({type:"JsdocTypeIndexSignature",key:_.key,right:I(_.right)}),JsdocTypeMappedType:(_,I)=>({type:"JsdocTypeMappedType",key:_.key,right:I(_.right)}),JsdocTypeAsserts:(_,I)=>({type:"JsdocTypeAsserts",left:I(_.left),right:I(_.right)})}}let di={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function pi(_,I,L,V,Z){V?.(_,I,L);let oe=di[_.type];for(let ue of oe){let Te=_[ue];if(Te!==void 0)if(Array.isArray(Te))for(let et of Te)pi(et,_,ue,V,Z);else pi(Te,_,ue,V,Z)}Z?.(_,I,L)}function Hn(_,I,L){pi(_,void 0,void 0,I,L)}r.catharsisTransform=jn,r.identityTransformRules=us,r.jtpTransform=hi,r.parse=W,r.stringify=qt,r.stringifyRules=Wt,r.transform=_e,r.traverse=Hn,r.tryParse=Y,r.visitorKeys=di})});var BT=H((SLe,FT)=>{"use strict";h();d();p();FT.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var jd=H((ALe,NT)=>{h();d();p();var Pn=BT(),MT={};for(let r of Object.keys(Pn))MT[Pn[r]]=r;var se={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};NT.exports=se;for(let r of Object.keys(se)){if(!("channels"in se[r]))throw new Error("missing channels property: "+r);if(!("labels"in se[r]))throw new Error("missing channel labels property: "+r);if(se[r].labels.length!==se[r].channels)throw new Error("channel and label counts mismatch: "+r);let{channels:e,labels:t}=se[r];delete se[r].channels,delete se[r].labels,Object.defineProperty(se[r],"channels",{value:e}),Object.defineProperty(se[r],"labels",{value:t})}se.rgb.hsl=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.min(e,t,i),n=Math.max(e,t,i),o=n-s,a,l;n===s?a=0:e===n?a=(t-i)/o:t===n?a=2+(i-e)/o:i===n&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(s+n)/2;return n===s?l=0:u<=.5?l=o/(n+s):l=o/(2-n-s),[a,l*100,u*100]};se.rgb.hsv=function(r){let e,t,i,s,n,o=r[0]/255,a=r[1]/255,l=r[2]/255,u=Math.max(o,a,l),c=u-Math.min(o,a,l),g=function(m){return(u-m)/6/c+1/2};return c===0?(s=0,n=0):(n=c/u,e=g(o),t=g(a),i=g(l),o===u?s=i-t:a===u?s=1/3+e-i:l===u&&(s=2/3+t-e),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,u*100]};se.rgb.hwb=function(r){let e=r[0],t=r[1],i=r[2],s=se.rgb.hsl(r)[0],n=1/255*Math.min(e,Math.min(t,i));return i=1-1/255*Math.max(e,Math.max(t,i)),[s,n*100,i*100]};se.rgb.cmyk=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.min(1-e,1-t,1-i),n=(1-e-s)/(1-s)||0,o=(1-t-s)/(1-s)||0,a=(1-i-s)/(1-s)||0;return[n*100,o*100,a*100,s*100]};function Aq(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2+(r[2]-e[2])**2}se.rgb.keyword=function(r){let e=MT[r];if(e)return e;let t=1/0,i;for(let s of Object.keys(Pn)){let n=Pn[s],o=Aq(r,n);o.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let s=e*.4124+t*.3576+i*.1805,n=e*.2126+t*.7152+i*.0722,o=e*.0193+t*.1192+i*.9505;return[s*100,n*100,o*100]};se.rgb.lab=function(r){let e=se.rgb.xyz(r),t=e[0],i=e[1],s=e[2];t/=95.047,i/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let n=116*i-16,o=500*(t-i),a=200*(i-s);return[n,o,a]};se.hsl.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,s,n,o;if(t===0)return o=i*255,[o,o,o];i<.5?s=i*(1+t):s=i+t-i*t;let a=2*i-s,l=[0,0,0];for(let u=0;u<3;u++)n=e+1/3*-(u-1),n<0&&n++,n>1&&n--,6*n<1?o=a+(s-a)*6*n:2*n<1?o=s:3*n<2?o=a+(s-a)*(2/3-n)*6:o=a,l[u]=o*255;return l};se.hsl.hsv=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,s=t,n=Math.max(i,.01);i*=2,t*=i<=1?i:2-i,s*=n<=1?n:2-n;let o=(i+t)/2,a=i===0?2*s/(n+s):2*t/(i+t);return[e,a*100,o*100]};se.hsv.rgb=function(r){let e=r[0]/60,t=r[1]/100,i=r[2]/100,s=Math.floor(e)%6,n=e-Math.floor(e),o=255*i*(1-t),a=255*i*(1-t*n),l=255*i*(1-t*(1-n));switch(i*=255,s){case 0:return[i,l,o];case 1:return[a,i,o];case 2:return[o,i,l];case 3:return[o,a,i];case 4:return[l,o,i];case 5:return[i,o,a]}};se.hsv.hsl=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,s=Math.max(i,.01),n,o;o=(2-t)*i;let a=(2-t)*s;return n=t*s,n/=a<=1?a:2-a,n=n||0,o/=2,[e,n*100,o*100]};se.hwb.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,s=t+i,n;s>1&&(t/=s,i/=s);let o=Math.floor(6*e),a=1-i;n=6*e-o,o&1&&(n=1-n);let l=t+n*(a-t),u,c,g;switch(o){default:case 6:case 0:u=a,c=l,g=t;break;case 1:u=l,c=a,g=t;break;case 2:u=t,c=a,g=l;break;case 3:u=t,c=l,g=a;break;case 4:u=l,c=t,g=a;break;case 5:u=a,c=t,g=l;break}return[u*255,c*255,g*255]};se.cmyk.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,s=r[3]/100,n=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,i*(1-s)+s);return[n*255,o*255,a*255]};se.xyz.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,s,n,o;return s=e*3.2406+t*-1.5372+i*-.4986,n=e*-.9689+t*1.8758+i*.0415,o=e*.0557+t*-.204+i*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),[s*255,n*255,o*255]};se.xyz.lab=function(r){let e=r[0],t=r[1],i=r[2];e/=95.047,t/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*t-16,n=500*(e-t),o=200*(t-i);return[s,n,o]};se.lab.xyz=function(r){let e=r[0],t=r[1],i=r[2],s,n,o;n=(e+16)/116,s=t/500+n,o=n-i/200;let a=n**3,l=s**3,u=o**3;return n=a>.008856?a:(n-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,s*=95.047,n*=100,o*=108.883,[s,n,o]};se.lab.lch=function(r){let e=r[0],t=r[1],i=r[2],s;s=Math.atan2(i,t)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(t*t+i*i);return[e,o,s]};se.lch.lab=function(r){let e=r[0],t=r[1],s=r[2]/360*2*Math.PI,n=t*Math.cos(s),o=t*Math.sin(s);return[e,n,o]};se.rgb.ansi16=function(r,e=null){let[t,i,s]=r,n=e===null?se.rgb.hsv(r)[2]:e;if(n=Math.round(n/50),n===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(i/255)<<1|Math.round(t/255));return n===2&&(o+=60),o};se.hsv.ansi16=function(r){return se.rgb.ansi16(se.hsv.rgb(r),r[2])};se.rgb.ansi256=function(r){let e=r[0],t=r[1],i=r[2];return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)};se.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(r>50)+1)*.5,i=(e&1)*t*255,s=(e>>1&1)*t*255,n=(e>>2&1)*t*255;return[i,s,n]};se.ansi256.rgb=function(r){if(r>=232){let n=(r-232)*10+8;return[n,n,n]}r-=16;let e,t=Math.floor(r/36)/5*255,i=Math.floor((e=r%36)/6)/5*255,s=e%6/5*255;return[t,i,s]};se.rgb.hex=function(r){let t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};se.hex.rgb=function(r){let e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let i=parseInt(t,16),s=i>>16&255,n=i>>8&255,o=i&255;return[s,n,o]};se.rgb.hcg=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.max(Math.max(e,t),i),n=Math.min(Math.min(e,t),i),o=s-n,a,l;return o<1?a=n/(1-o):a=0,o<=0?l=0:s===e?l=(t-i)/o%6:s===t?l=2+(i-e)/o:l=4+(e-t)/o,l/=6,l%=1,[l*360,o*100,a*100]};se.hsl.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=t<.5?2*e*t:2*e*(1-t),s=0;return i<1&&(s=(t-.5*i)/(1-i)),[r[0],i*100,s*100]};se.hsv.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=e*t,s=0;return i<1&&(s=(t-i)/(1-i)),[r[0],i*100,s*100]};se.hcg.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100;if(t===0)return[i*255,i*255,i*255];let s=[0,0,0],n=e%1*6,o=n%1,a=1-o,l=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return l=(1-t)*i,[(t*s[0]+l)*255,(t*s[1]+l)*255,(t*s[2]+l)*255]};se.hcg.hsv=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e),s=0;return i>0&&(s=e/i),[r[0],s*100,i*100]};se.hcg.hsl=function(r){let e=r[1]/100,i=r[2]/100*(1-e)+.5*e,s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[r[0],s*100,i*100]};se.hcg.hwb=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e);return[r[0],(i-e)*100,(1-i)*100]};se.hwb.hcg=function(r){let e=r[1]/100,i=1-r[2]/100,s=i-e,n=0;return s<1&&(n=(i-s)/(1-s)),[r[0],s*100,n*100]};se.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};se.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};se.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};se.gray.hsl=function(r){return[0,0,r[0]]};se.gray.hsv=se.gray.hsl;se.gray.hwb=function(r){return[0,100,r[0]]};se.gray.cmyk=function(r){return[0,0,0,r[0]]};se.gray.lab=function(r){return[r[0],0,0]};se.gray.hex=function(r){let e=Math.round(r[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i};se.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}});var jT=H((PLe,zT)=>{h();d();p();var al=jd();function Eq(){let r={},e=Object.keys(al);for(let t=e.length,i=0;i{h();d();p();var Ud=jd(),kq=jT(),es={},Oq=Object.keys(Ud);function Lq(r){let e=function(...t){let i=t[0];return i==null?i:(i.length>1&&(t=i),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function Dq(r){let e=function(...t){let i=t[0];if(i==null)return i;i.length>1&&(t=i);let s=r(t);if(typeof s=="object")for(let n=s.length,o=0;o{es[r]={},Object.defineProperty(es[r],"channels",{value:Ud[r].channels}),Object.defineProperty(es[r],"labels",{value:Ud[r].labels});let e=kq(r);Object.keys(e).forEach(i=>{let s=e[i];es[r][i]=Dq(s),es[r][i].raw=Lq(s)})});UT.exports=es});var qT=H((NLe,WT)=>{h();d();p();var Fq=Mt(),Bq=function(){return Fq.Date.now()};WT.exports=Bq});var VT=H((HLe,$T)=>{h();d();p();var Mq=/\s/;function Nq(r){for(var e=r.length;e--&&Mq.test(r.charAt(e)););return e}$T.exports=Nq});var YT=H((VLe,GT)=>{h();d();p();var zq=VT(),jq=/^\s+/;function Uq(r){return r&&r.slice(0,zq(r)+1).replace(jq,"")}GT.exports=Uq});var QT=H((KLe,JT)=>{h();d();p();var Hq=YT(),XT=Jt(),Wq=on(),KT=NaN,qq=/^[-+]0x[0-9a-f]+$/i,$q=/^0b[01]+$/i,Vq=/^0o[0-7]+$/i,Gq=parseInt;function Yq(r){if(typeof r=="number")return r;if(Wq(r))return KT;if(XT(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=XT(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=Hq(r);var t=$q.test(r);return t||Vq.test(r)?Gq(r.slice(2),t?2:8):qq.test(r)?KT:+r}JT.exports=Yq});var tC=H((eDe,eC)=>{h();d();p();var Xq=Jt(),Hd=qT(),ZT=QT(),Kq="Expected a function",Jq=Math.max,Qq=Math.min;function Zq(r,e,t){var i,s,n,o,a,l,u=0,c=!1,g=!1,m=!0;if(typeof r!="function")throw new TypeError(Kq);e=ZT(e)||0,Xq(t)&&(c=!!t.leading,g="maxWait"in t,n=g?Jq(ZT(t.maxWait)||0,e):n,m="trailing"in t?!!t.trailing:m);function y(O){var B=i,F=s;return i=s=void 0,u=O,o=r.apply(F,B),o}function b(O){return u=O,a=setTimeout(T,e),c?y(O):o}function C(O){var B=O-l,F=O-u,U=e-B;return g?Qq(U,n-F):U}function A(O){var B=O-l,F=O-u;return l===void 0||B>=e||B<0||g&&F>=n}function T(){var O=Hd();if(A(O))return R(O);a=setTimeout(T,C(O))}function R(O){return a=void 0,m&&i?y(O):(i=s=void 0,o)}function P(){a!==void 0&&clearTimeout(a),u=0,i=l=s=a=void 0}function E(){return a===void 0?o:R(Hd())}function k(){var O=Hd(),B=A(O);if(i=arguments,s=this,l=O,B){if(a===void 0)return b(l);if(g)return clearTimeout(a),a=setTimeout(T,e),y(l)}return a===void 0&&(a=setTimeout(T,e)),o}return k.cancel=P,k.flush=E,k}eC.exports=Zq});function oi(){return(oi=Object.assign||function(r){for(var e=1;e=0||(s[t]=r[t]);return s}function Wd(r){var e=Bt(r),t=Bt(function(i){e.current&&e.current(i)});return e.current=r,t.current}function dC(r,e,t){var i=Wd(t),s=Fe(function(){return r.toHsva(e)}),n=s[0],o=s[1],a=Bt({color:e,hsva:n});He(function(){if(!r.equal(e,a.current.color)){var u=r.toHsva(e);a.current={hsva:u,color:e},o(u)}},[e,r]),He(function(){var u;cC(n,a.current.hsva)||r.equal(u=r.fromHsva(n),a.current.color)||(a.current={hsva:n,color:u},i(u))},[n,r,i]);var l=ut(function(u){o(function(c){return Object.assign({},c,u)})},[]);return[n,l]}var ts,kn,qd,rC,iC,Yd,On,Xd,st,e8,t8,$d,r8,i8,s8,n8,nC,Vd,ul,oC,o8,ll,a8,aC,lC,uC,cC,hC,l8,u8,c8,h8,sC,pC,d8,p8,fC,f8,gC,g8,mC,m8,_C,yC=Vt(()=>{h();d();p();Ge();ts=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r0:A.buttons>0)&&s.current?n(rC(s.current,A,a.current)):C(!1)},b=function(){return C(!1)};function C(A){var T=l.current,R=qd(s.current),P=A?R.addEventListener:R.removeEventListener;P(T?"touchmove":"mousemove",y),P(T?"touchend":"mouseup",b)}return[function(A){var T=A.nativeEvent,R=s.current;if(R&&(iC(T),!function(E,k){return k&&!kn(E)}(T,l.current)&&R)){if(kn(T)){l.current=!0;var P=T.changedTouches||[];P.length&&(a.current=P[0].identifier)}R.focus(),n(rC(R,T,a.current)),C(!0)}},function(A){var T=A.which||A.keyCode;T<37||T>40||(A.preventDefault(),o({left:T===39?.05:T===37?-.05:0,top:T===40?.05:T===38?-.05:0}))},C]},[o,n]),c=u[0],g=u[1],m=u[2];return He(function(){return m},[m]),z.createElement("div",oi({},i,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:s,onKeyDown:g,tabIndex:0,role:"slider"}))}),On=function(r){return r.filter(Boolean).join(" ")},Xd=function(r){var e=r.color,t=r.left,i=r.top,s=i===void 0?.5:i,n=On(["react-colorful__pointer",r.className]);return z.createElement("div",{className:n,style:{top:100*s+"%",left:100*t+"%"}},z.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},st=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t},e8={grad:.9,turn:360,rad:360/(2*Math.PI)},t8=function(r){return aC($d(r))},$d=function(r){return r[0]==="#"&&(r=r.substring(1)),r.length<6?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?st(parseInt(r[3]+r[3],16)/255,2):1}:{r:parseInt(r.substring(0,2),16),g:parseInt(r.substring(2,4),16),b:parseInt(r.substring(4,6),16),a:r.length===8?st(parseInt(r.substring(6,8),16)/255,2):1}},r8=function(r,e){return e===void 0&&(e="deg"),Number(r)*(e8[e]||1)},i8=function(r){var e=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?s8({h:r8(e[1],e[2]),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)}):{h:0,s:0,v:0,a:1}},s8=function(r){var e=r.s,t=r.l;return{h:r.h,s:(e*=(t<50?t:100-t)/100)>0?2*e/(t+e)*100:0,v:t+e,a:r.a}},n8=function(r){return a8(oC(r))},nC=function(r){var e=r.s,t=r.v,i=r.a,s=(200-e)*t/100;return{h:st(r.h),s:st(s>0&&s<200?e*t/100/(s<=100?s:200-s)*100:0),l:st(s/2),a:st(i,2)}},Vd=function(r){var e=nC(r);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},ul=function(r){var e=nC(r);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},oC=function(r){var e=r.h,t=r.s,i=r.v,s=r.a;e=e/360*6,t/=100,i/=100;var n=Math.floor(e),o=i*(1-t),a=i*(1-(e-n)*t),l=i*(1-(1-e+n)*t),u=n%6;return{r:st(255*[i,a,o,o,l,i][u]),g:st(255*[l,i,i,a,o,o][u]),b:st(255*[o,o,l,i,i,a][u]),a:st(s,2)}},o8=function(r){var e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?aC({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}},ll=function(r){var e=r.toString(16);return e.length<2?"0"+e:e},a8=function(r){var e=r.r,t=r.g,i=r.b,s=r.a,n=s<1?ll(st(255*s)):"";return"#"+ll(e)+ll(t)+ll(i)+n},aC=function(r){var e=r.r,t=r.g,i=r.b,s=r.a,n=Math.max(e,t,i),o=n-Math.min(e,t,i),a=o?n===e?(t-i)/o:n===t?2+(i-e)/o:4+(e-t)/o:0;return{h:st(60*(a<0?a+6:a)),s:st(n?o/n*100:0),v:st(n/255*100),a:s}},lC=z.memo(function(r){var e=r.hue,t=r.onChange,i=On(["react-colorful__hue",r.className]);return z.createElement("div",{className:i},z.createElement(Yd,{onMove:function(s){t({h:360*s.left})},onKey:function(s){t({h:ts(e+360*s.left,0,360)})},"aria-label":"Hue","aria-valuenow":st(e),"aria-valuemax":"360","aria-valuemin":"0"},z.createElement(Xd,{className:"react-colorful__hue-pointer",left:e/360,color:Vd({h:e,s:100,v:100,a:1})})))}),uC=z.memo(function(r){var e=r.hsva,t=r.onChange,i={backgroundColor:Vd({h:e.h,s:100,v:100,a:1})};return z.createElement("div",{className:"react-colorful__saturation",style:i},z.createElement(Yd,{onMove:function(s){t({s:100*s.left,v:100-100*s.top})},onKey:function(s){t({s:ts(e.s+100*s.left,0,100),v:ts(e.v-100*s.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+st(e.s)+"%, Brightness "+st(e.v)+"%"},z.createElement(Xd,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Vd(e)})))}),cC=function(r,e){if(r===e)return!0;for(var t in r)if(r[t]!==e[t])return!1;return!0},hC=function(r,e){return r.replace(/\s/g,"")===e.replace(/\s/g,"")},l8=function(r,e){return r.toLowerCase()===e.toLowerCase()||cC($d(r),$d(e))};c8=typeof window<"u"?Il:He,h8=function(){return u8||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},sC=new Map,pC=function(r){c8(function(){var e=r.current?r.current.ownerDocument:document;if(e!==void 0&&!sC.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,sC.set(e,t);var i=h8();i&&t.setAttribute("nonce",i),e.head.appendChild(t)}},[])},d8=function(r){var e=r.className,t=r.colorModel,i=r.color,s=i===void 0?t.defaultColor:i,n=r.onChange,o=Gd(r,["className","colorModel","color","onChange"]),a=Bt(null);pC(a);var l=dC(t,s,n),u=l[0],c=l[1],g=On(["react-colorful",e]);return z.createElement("div",oi({},o,{ref:a,className:g}),z.createElement(uC,{hsva:u,onChange:c}),z.createElement(lC,{hue:u.h,onChange:c,className:"react-colorful__last-control"}))},p8={defaultColor:"000",toHsva:t8,fromHsva:function(r){return n8({h:r.h,s:r.s,v:r.v,a:1})},equal:l8},fC=function(r){return z.createElement(d8,oi({},r,{colorModel:p8}))},f8=function(r){var e=r.className,t=r.hsva,i=r.onChange,s={backgroundImage:"linear-gradient(90deg, "+ul(Object.assign({},t,{a:0}))+", "+ul(Object.assign({},t,{a:1}))+")"},n=On(["react-colorful__alpha",e]),o=st(100*t.a);return z.createElement("div",{className:n},z.createElement("div",{className:"react-colorful__alpha-gradient",style:s}),z.createElement(Yd,{onMove:function(a){i({a:a.left})},onKey:function(a){i({a:ts(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},z.createElement(Xd,{className:"react-colorful__alpha-pointer",left:t.a,color:ul(t)})))},gC=function(r){var e=r.className,t=r.colorModel,i=r.color,s=i===void 0?t.defaultColor:i,n=r.onChange,o=Gd(r,["className","colorModel","color","onChange"]),a=Bt(null);pC(a);var l=dC(t,s,n),u=l[0],c=l[1],g=On(["react-colorful",e]);return z.createElement("div",oi({},o,{ref:a,className:g}),z.createElement(uC,{hsva:u,onChange:c}),z.createElement(lC,{hue:u.h,onChange:c}),z.createElement(f8,{hsva:u,onChange:c,className:"react-colorful__last-control"}))},g8={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:i8,fromHsva:ul,equal:hC},mC=function(r){return z.createElement(gC,oi({},r,{colorModel:g8}))},m8={defaultColor:"rgba(0, 0, 0, 1)",toHsva:o8,fromHsva:function(r){var e=oC(r);return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},equal:hC},_C=function(r){return z.createElement(gC,oi({},r,{colorModel:m8}))}});var TC={};rr(TC,{ColorControl:()=>wC,default:()=>D8});var Lt,vC,_8,y8,x8,b8,v8,S8,w8,xC,T8,C8,SC,cl,A8,E8,I8,Kd,R8,P8,hl,bC,rs,k8,O8,dl,L8,wC,D8,CC=Vt(()=>{h();d();p();uc();Ge();ta();xc();Ec();Lt=ye(HT(),1),vC=ye(tC(),1);yC();_8=J.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),y8=J(ea)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),x8=J.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),b8=J(fc)(({theme:r})=>({fontFamily:r.typography.fonts.base})),v8=J.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),S8=J.div(({theme:r,active:e})=>({width:16,height:16,boxShadow:e?`${r.appBorderColor} 0 0 0 1px inset, ${r.textMutedColor}50 0 0 0 4px`:`${r.appBorderColor} 0 0 0 1px inset`,borderRadius:r.appBorderRadius})),w8=`url('data:image/svg+xml;charset=utf-8,')`,xC=({value:r,style:e,...t})=>{let i=`linear-gradient(${r}, ${r}), ${w8}, linear-gradient(#fff, #fff)`;return z.createElement(S8,{...t,style:{...e,backgroundImage:i}})},T8=J(Rr.Input)(({theme:r,readOnly:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:r.typography.fonts.base})),C8=J(lg)(({theme:r})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:r.input.color})),SC=(r=>(r.RGB="rgb",r.HSL="hsl",r.HEX="hex",r))(SC||{}),cl=Object.values(SC),A8=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,E8=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,I8=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Kd=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,R8=/^\s*#?([0-9a-f]{3})\s*$/i,P8={hex:fC,rgb:_C,hsl:mC},hl={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},bC=r=>{let e=r?.match(A8);if(!e)return[0,0,0,1];let[,t,i,s,n=1]=e;return[t,i,s,n].map(Number)},rs=r=>{if(!r)return;let e=!0;if(E8.test(r)){let[o,a,l,u]=bC(r),[c,g,m]=Lt.default.rgb.hsl([o,a,l])||[0,0,0];return{valid:e,value:r,keyword:Lt.default.rgb.keyword([o,a,l]),colorSpace:"rgb",rgb:r,hsl:`hsla(${c}, ${g}%, ${m}%, ${u})`,hex:`#${Lt.default.rgb.hex([o,a,l]).toLowerCase()}`}}if(I8.test(r)){let[o,a,l,u]=bC(r),[c,g,m]=Lt.default.hsl.rgb([o,a,l])||[0,0,0];return{valid:e,value:r,keyword:Lt.default.hsl.keyword([o,a,l]),colorSpace:"hsl",rgb:`rgba(${c}, ${g}, ${m}, ${u})`,hsl:r,hex:`#${Lt.default.hsl.hex([o,a,l]).toLowerCase()}`}}let t=r.replace("#",""),i=Lt.default.keyword.rgb(t)||Lt.default.hex.rgb(t),s=Lt.default.rgb.hsl(i),n=r;if(/[^#a-f0-9]/i.test(r)?n=t:Kd.test(r)&&(n=`#${t}`),n.startsWith("#"))e=Kd.test(n);else try{Lt.default.keyword.hex(n)}catch{e=!1}return{valid:e,value:n,keyword:Lt.default.rgb.keyword(i),colorSpace:"hex",rgb:`rgba(${i[0]}, ${i[1]}, ${i[2]}, 1)`,hsl:`hsla(${s[0]}, ${s[1]}%, ${s[2]}%, 1)`,hex:n}},k8=(r,e,t)=>{if(!r||!e?.valid)return hl[t];if(t!=="hex")return e?.[t]||hl[t];if(!e.hex.startsWith("#"))try{return`#${Lt.default.keyword.hex(e.hex)}`}catch{return hl.hex}let i=e.hex.match(R8);if(!i)return Kd.test(e.hex)?e.hex:hl.hex;let[s,n,o]=i[1].split("");return`#${s}${s}${n}${n}${o}${o}`},O8=(r,e)=>{let[t,i]=Fe(r||""),[s,n]=Fe(()=>rs(t)),[o,a]=Fe(s?.colorSpace||"hex");He(()=>{let g=r||"",m=rs(g);i(g),n(m),a(m?.colorSpace||"hex")},[r]);let l=vr(()=>k8(t,s,o).toLowerCase(),[t,s,o]),u=ut(g=>{let m=rs(g),y=m?.value||g||"";i(y),y===""&&(n(void 0),e(void 0)),m&&(n(m),a(m.colorSpace),e(m.value))},[e]),c=ut(()=>{let g=cl.indexOf(o)+1;g>=cl.length&&(g=0),a(cl[g]);let m=s?.[cl[g]]||"";i(m),e(m)},[s,o,e]);return{value:t,realValue:l,updateValue:u,color:s,colorSpace:o,cycleColorSpace:c}},dl=r=>r.replace(/\s*/,"").toLowerCase(),L8=(r,e,t)=>{let[i,s]=Fe(e?.valid?[e]:[]);He(()=>{e===void 0&&s([])},[e]);let n=vr(()=>(r||[]).map(a=>typeof a=="string"?rs(a):a.title?{...rs(a.color),keyword:a.title}:rs(a.color)).concat(i).filter(Boolean).slice(-27),[r,i]),o=ut(a=>{a?.valid&&(n.some(l=>dl(l[t])===dl(a[t]))||s(l=>l.concat(a)))},[t,n]);return{presets:n,addPreset:o}},wC=({name:r,value:e,onChange:t,onFocus:i,onBlur:s,presetColors:n,startOpen:o=!1,argType:a})=>{let l=ut((0,vC.default)(t,200),[t]),{value:u,realValue:c,updateValue:g,color:m,colorSpace:y,cycleColorSpace:b}=O8(e,l),{presets:C,addPreset:A}=L8(n,m,y),T=P8[y],R=!!a?.table?.readonly;return z.createElement(_8,{"aria-readonly":R},z.createElement(y8,{startOpen:o,trigger:R?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>A(m),tooltip:z.createElement(x8,null,z.createElement(T,{color:c==="transparent"?"#000000":c,onChange:g,onFocus:i,onBlur:s}),C.length>0&&z.createElement(v8,null,C.map((P,E)=>z.createElement(ea,{key:`${P.value}-${E}`,hasChrome:!1,tooltip:z.createElement(b8,{note:P.keyword||P.value})},z.createElement(xC,{value:P[y],active:m&&dl(P[y])===dl(m[y]),onClick:()=>g(P.value)})))))},z.createElement(xC,{value:c,style:{margin:4}})),z.createElement(T8,{id:Kt(r),value:u,onChange:P=>g(P.target.value),onFocus:P=>P.target.select(),readOnly:R,placeholder:"Choose color..."}),u?z.createElement(C8,{onClick:b}):null)},D8=wC});h();d();p();h();d();p();h();d();p();var f$=__STORYBOOK_API__,{ActiveTabs:g$,Consumer:m$,ManagerContext:_$,Provider:y$,RequestResponseError:x$,addons:Gt,combineParameters:b$,controlOrMetaKey:v$,controlOrMetaSymbol:S$,eventMatchesShortcut:w$,eventToShortcut:T$,experimental_requestResponse:C$,isMacLike:A$,isShortcutTaken:E$,keyToSymbol:I$,merge:R$,mockChannel:P$,optionOrAltSymbol:k$,shortcutMatchesShortcut:O$,shortcutToHumanString:L$,types:br,useAddonState:D$,useArgTypes:F$,useArgs:B$,useChannel:M$,useGlobalTypes:N$,useGlobals:_t,useParameter:z$,useSharedState:j$,useStoryPrepared:U$,useStorybookApi:$n,useStorybookState:H$}=__STORYBOOK_API__;h();d();p();h();d();p();var G$=__STORYBOOK_THEMING_CREATE__,{create:hp,themes:dp}=__STORYBOOK_THEMING_CREATE__;var pp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdQAAABiCAYAAADpwyKwAAAMZGlDQ1BJQ0MgUHJvZmlsZQAASImVlwdYU8kWgOeWVBJaIAJSQm+iSA0gJYQWQUCqICohCSSUGBOCiB1dVsG1iyiWFV0VcdHVFZC1IOJiWxR7XyyoKOtiwYbKm5CArr7yvfm+ufPnzJkz55zM3DsDgE4HXybLRXUByJPmy+PCg1kTUlJZpAeACAhAF/gCjC9QyDixsVEAlsH2n+X1FYCo2osuKlvf9v/Xoi8UKQQAIGmQM4QKQR7kJgDwYoFMng8AMQTKrafny1Qshmwghw5CnqXiLDUvV3GGmrcN6CTEcSE3AECm8fnyLAC0W6CcVSDIgna0H0B2lQolUgB0DCAHCMR8IeQEyCPy8qaqeB5kB6gvg7wTMjvjC5tZ/7CfMWSfz88aYnVcA4UcIlHIcvkz/s/U/O+Sl6scnMMOVppYHhGnih/m8FrO1EgV0yB3SzOiY1S5hvxWIlTnHQCUKlZGJKr1UVOBggvzB5iQXYX8kEjIppDDpLnRURp5RqYkjAcZrha0UJLPS9CMXSRShMZrbG6QT42LGeRMOZejGVvLlw/Mq9JvUeYkcjT2r4lFvEH7r4rECcmQqQBg1AJJUjRkbcgGipz4SLUOZlUk5kYP6siVcSr/bSCzRdLwYLV9LC1THhan0ZflKQbjxUrEEl60hivyxQkR6vxguwT8Af+NINeJpJzEQTsixYSowViEopBQdexYm0iaqIkXuyPLD47TjO2R5cZq9HGyKDdcJbeCbKIoiNeMxcfkw8Wpto9HyfJjE9R+4unZ/LGxan/wAhAFuCAEsIAS1gwwFWQDSVt3fTf8p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ih+kNFygQBQUAQEAQEgTAREEINEzCpLggIAoKAICAI+ENACNUfKlImCAgCgoAgIAiEiYAQapiASXVBQBAQBAQBQcAfAkKo/lCRMkFAEBAEBAFBIEwEhFDDBEyqCwKCgCAgCAgC/hAQQvWHipQJAoKAICAICAJhIvD/Jvuro6vjJZoAAAAASUVORK5CYII=";var fp="2.25.0";var gp=hp({...dp.dark,base:"dark",brandTitle:`Lightning UI Components v${fp}`,brandUrl:"https://github.com/rdkcentral/Lightning-UI-Components",brandImage:pp});h();d();p();var Et="lui-addons",Vn=`${Et}/downloadbutton`,Gn=`${Et}/announcetoggle`,Yn=`${Et}/gridoverlaypanel`,mp=`${Et}/themepanel`,_p=`${Et}/componentstylespanel`,Xn=`${Et}/stagecolortoggle`,Kn=`${Et}/themepicker`;h();d();p();h();d();p();Ge();h();d();p();var pV=__STORYBOOK_COMPONENTS__,{A:fV,ActionBar:gV,AddonPanel:xp,Badge:mV,Bar:_V,Blockquote:yV,Button:xV,ClipboardCode:bV,Code:vV,DL:SV,Div:wV,DocumentWrapper:TV,EmptyTabContent:CV,ErrorFormatter:AV,FlexBar:EV,Form:IV,H1:RV,H2:PV,H3:kV,H4:OV,H5:LV,H6:DV,HR:FV,IconButton:Sr,IconButtonSkeleton:BV,Icons:wr,Img:MV,LI:NV,Link:zV,ListItem:jV,Loader:UV,Modal:HV,OL:WV,P:qV,Placeholder:$V,Pre:VV,ResetWrapper:GV,ScrollArea:YV,Separator:XV,Spaced:KV,Span:JV,StorybookIcon:QV,StorybookLogo:ZV,Symbols:eG,SyntaxHighlighter:tG,TT:rG,TabBar:iG,TabButton:bp,TabWrapper:sG,Table:nG,Tabs:oG,TabsState:aG,TooltipLinkList:vp,TooltipMessage:lG,TooltipNote:uG,UL:cG,WithTooltip:Sp,WithTooltipPure:hG,Zoom:dG,codeCommon:pG,components:fG,createCopyToClipboardFunction:gG,getStoryHref:mG,icons:_G,interleaveSeparators:yG,nameSpaceClassNames:xG,resetComponents:bG,withReset:vG}=__STORYBOOK_COMPONENTS__;var Pl=ye(Ce()),kl=hs(function(){let[{announce:e},t]=_t(),i=$n(),s=[!0,"true"].includes(e),n=ut(()=>{t({announce:!s})},[s]);return He(()=>{i.setAddonShortcut(Et,{label:"Announce Toggle [0]",actionName:"Announce",action:n})},[n,i]),(0,Pl.jsx)(Sr,{active:s,title:"Toggle a11y announcing (voice guidance) of components",onClick:n,children:(0,Pl.jsx)(wr,{icon:"speaker"})},Gn)});h();d();p();Ge();var Ol=ye(Ce()),Ll=hs(function(){let[{stageColor:e},t]=_t(),i=$n(),s=[!0,"true"].includes(e),n=ut(()=>{t({stageColor:!s})},[s]);return He(()=>{i.setAddonShortcut(Et,{label:"Stage Color Toggle",actionName:"stage color",showInMenu:!1,action:n})},[n,i]),(0,Ol.jsx)(Sr,{active:s,title:"Switch stage color",onClick:n,children:(0,Ol.jsx)(wr,{icon:"paintbrush"})},Xn)});h();d();p();Ge();h();d();p();h();d();p();h();d();p();h();d();p();var fe=class r{static mergeNumbers(e,t,i){return e*i+t*(1-i)}static rgb(e,t,i){return(e<<16)+(t<<8)+i+255*16777216}static rgba(e,t,i,s){return(e<<16)+(t<<8)+i+(s*255|0)*16777216}static getRgbString(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256;return"rgb("+t+","+i+","+s+")"}static getRgbaString(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=(e/16777216|0)/255;return"rgba("+t+","+i+","+s+","+n.toFixed(4)+")"}static getRgbaStringFromArray(e){let t=Math.floor(e[0]*255),i=Math.floor(e[1]*255),s=Math.floor(e[2]*255),n=Math.floor(e[3]*255)/255;return"rgba("+t+","+i+","+s+","+n.toFixed(4)+")"}static getRgbaComponentsNormalized(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=e/16777216|0;return[t/255,i/255,s/255,n/255]}static getRgbComponentsNormalized(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256;return[t/255,i/255,s/255]}static getRgbaComponents(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=e/16777216|0;return[t,i,s,n]}static getArgbNumber(e){e[0]=Math.max(0,Math.min(255,e[0])),e[1]=Math.max(0,Math.min(255,e[1])),e[2]=Math.max(0,Math.min(255,e[2])),e[3]=Math.max(0,Math.min(255,e[3]));let t=((e[3]|0)<<24)+((e[0]|0)<<16)+((e[1]|0)<<8)+(e[2]|0);return t<0&&(t=4294967295+t+1),t}static mergeColors(e,t,i){let s=(e/65536|0)%256,n=(e/256|0)%256,o=e%256,a=e/16777216|0,l=(t/65536|0)%256,u=(t/256|0)%256,c=t%256,g=t/16777216|0,m=s*i+l*(1-i),y=n*i+u*(1-i),b=o*i+c*(1-i),C=a*i+g*(1-i);return Math.round(C)*16777216+Math.round(m)*65536+Math.round(y)*256+Math.round(b)}static mergeMultiColors(e,t){let i=0,s=0,n=0,o=0,a=0,l=e.length;for(let u=0;u>16&255)*i/255&255)+((e&65280)*i/255&65280)+(((e&255)<<16)*i/255&16711680)+(i<<24)}static rad(e){return e*(Math.PI/180)}static getTimingBezier(e,t,i,s){let n=3*e,o=3*(i-e)-n,a=1-n-o,l=3*t,u=3*(s-t)-l,c=1-l-u;return function(g){if(g>=1)return 1;if(g<=0)return 0;let m=.5,y,b,C;for(let R=0;R<20;R++){if(y=m*(m*(m*a+o)+n),C=g-y,C>-1e-8&&C<1e-8)return m*(m*(m*c+u)+l);if(b=m*(m*(3*a)+2*o)+n,b>1e-10&&b<1e-10)break;m+=C/b}let A=0,T=1;for(let R=0;R<20;R++){if(m=.5*(A+T),y=m*(m*(m*a+o)+n),C=g-y,C>-1e-8&&C<1e-8)return m*(m*(m*c+u)+l);C<0?T=m:A=m}}}static getTimingFunction(e){switch(e){case"linear":return function(i){return i};case"ease":return r.getTimingBezier(.25,.1,.25,1);case"ease-in":return r.getTimingBezier(.42,0,1,1);case"ease-out":return r.getTimingBezier(0,0,.58,1);case"ease-in-out":return r.getTimingBezier(.42,0,.58,1);case"step-start":return function(){return 1};case"step-end":return function(i){return i===1?1:0};default:let t="cubic-bezier(";if(e&&e.indexOf(t)===0){let i=e.substr(t.length,e.length-t.length-1).split(",");if(i.length!==4)return console.warn("[Lightning] Unknown timing function: "+e),function(l){return l};let s=parseFloat(i[0]),n=parseFloat(i[1]),o=parseFloat(i[2]),a=parseFloat(i[3]);return isNaN(s)||isNaN(n)||isNaN(o)||isNaN(a)?(console.warn("[Lightning] Unknown timing function: "+e),function(l){return l}):r.getTimingBezier(s,n,o,a)}else return console.warn("[Lightning] Unknown timing function: "+e),function(i){return i}}}},K=class{static isFunction(e){return typeof e=="function"}static isNumber(e){return typeof e=="number"}static isInteger(e){return typeof e=="number"&&e%1===0}static isBoolean(e){return e===!0||e===!1}static isString(e){return typeof e=="string"}static clone(e){return K.isObjectLiteral(e)||Array.isArray(e)?K.getDeepClone(e):e}static cloneObjShallow(e){let t=Object.keys(e),i={};for(let s=0;s=65&&e<=90}};K.isWeb=typeof window<"u"&&typeof sparkscene>"u";K.isWPE=K.isWeb&&navigator.userAgent.indexOf("WPE")!==-1;K.isSpark=typeof sparkscene<"u";K.isNode=typeof window>"u"||K.isSpark;K.isPS4=K.isWeb&&navigator.userAgent.indexOf("PlayStation 4")!==-1;K.isZiggo=K.isWeb&&(navigator.userAgent.indexOf("EOSSTB")!==-1||navigator.userAgent.indexOf("HZNSTB")!==-1);var dt=class r{static defaultSetter(e,t,i){e[t]=i}static patchObject(e,t){if(!K.isObjectLiteral(t))console.error("[Lightning] Settings must be object literal");else{let i=Object.keys(t);for(let s=0,n=i.length;s0&&(a=t/n.length);let l=i;for(let u=0,c=n.length;u0&&(i=Math.max(i,s)),i}static getPlainAxisMinSize(e,t){return e.isFlexEnabled()?e._flex._layout.getAxisMinSize(t):e.flexItem.shrink!==0?0:this.getRelAxisSize(e,t)}static resizeAxis(e,t,i){e.isFlexEnabled()?e._flex._horizontal===t?e._flex._layout.resizeMainAxis(i):e._flex._layout.resizeCrossAxis(i):this.setAxisLayoutSize(e,t,i)}static getPaddingOffset(e,t){if(e.isFlexEnabled()){let i=e._flex;return t?i.paddingLeft:i.paddingTop}else return 0}static getTotalPadding(e,t){if(e.isFlexEnabled()){let i=e._flex;return t?i.paddingRight+i.paddingLeft:i.paddingTop+i.paddingBottom}else return 0}static getMarginOffset(e,t){let i=e.flexItem;return i?t?i.marginLeft:i.marginTop:0}static getTotalMargin(e,t){let i=e.flexItem;return i?t?i.marginRight+i.marginLeft:i.marginTop+i.marginBottom:0}},Fl=class{constructor(e){this._line=e,this._amountRemaining=0,this._shrunkSize=0}shrink(e){this._shrunkSize=0,this._amountRemaining=e;let t=this._getTotalShrinkAmount();if(t){let i=this._line.items;do{let s=this._amountRemaining/t;for(let n=this._line.startIndex;n<=this._line.endIndex;n++){let a=i[n].flexItem,l=a.shrink;if(l>0){let c=l*s,g=a._getMainAxisMinSize(),m=a._getMainAxisLayoutSize();if(m>g){let y=m-g;c>=y&&(c=y,t-=l);let C=m-c;if(a._resizeMainAxis(C),this._shrunkSize+=c,this._amountRemaining-=c,Math.abs(this._amountRemaining)<1e-5)return}}}}while(t&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalShrinkAmount(){let e=0,t=this._line.items;for(let i=this._line.startIndex;i<=this._line.endIndex;i++){let n=t[i].flexItem;if(n.shrink){let o=n._getMainAxisMinSize();n._getMainAxisLayoutSize()>o&&(e+=n.shrink)}}return e}getShrunkSize(){return this._shrunkSize}},Bl=class{constructor(e){this._line=e,this._amountRemaining=0,this._grownSize=0}grow(e){this._grownSize=0,this._amountRemaining=e;let t=this._getTotalGrowAmount();if(t){let i=this._line.items;do{let s=this._amountRemaining/t;for(let n=this._line.startIndex;n<=this._line.endIndex;n++){let a=i[n].flexItem,l=a.grow;if(l>0){let c=l*s,g=a._getMainAxisMaxSizeSetting(),m=a._getMainAxisLayoutSize();if(g>0)if(m>=g)c=0;else{let y=g-m;c>=y&&(c=y,t-=l)}if(c>0){let y=m+c;if(a._resizeMainAxis(y),this._grownSize+=c,this._amountRemaining-=c,Math.abs(this._amountRemaining)<1e-5)return}}}}while(t&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalGrowAmount(){let e=0,t=this._line.items;for(let i=this._line.startIndex;i<=this._line.endIndex;i++){let n=t[i].flexItem;if(n.grow){let o=n._getMainAxisMaxSizeSetting(),a=n._getMainAxisLayoutSize();(o===0||a0&&(i=Math.max(i,s));let n=e._getCrossAxisMaxSizeSetting();n>0&&(i=Math.min(i,n)),e._resizeCrossAxis(i),e._getMainAxisLayoutSize()!==t&&(this._recursiveResizeOccured=!0)}_preventStretch(e){let t=e._hasFixedCrossAxisSize(),i=e.alignSelf==="stretch";return t&&!i}},zl=class{constructor(e,t,i,s){this._layout=e,this.items=e.items,this.startIndex=t,this.endIndex=i,this._availableSpace=s}performLayout(){this._setItemSizes(),this.setItemPositions(),this._calcLayoutInfo()}_setItemSizes(){this._availableSpace>0?this._growItemSizes(this._availableSpace):this._availableSpace<0&&this._shrinkItemSizes(-this._availableSpace)}_growItemSizes(e){let t=new Bl(this);t.grow(e),this._availableSpace-=t.getGrownSize()}_shrinkItemSizes(e){let t=new Fl(this);t.shrink(e),this._availableSpace+=t.getShrunkSize()}setItemPositions(){new Ml(this).position()}createItemAligner(){return new Nl(this)}_calcLayoutInfo(){this._calcCrossAxisMaxLayoutSize()}getMainAxisMinSize(){let e=0;for(let t=this.startIndex;t<=this.endIndex;t++){let i=this.items[t];e+=i.flexItem._getMainAxisMinSizeWithPaddingAndMargin()}return e}get numberOfItems(){return this.endIndex-this.startIndex+1}get crossAxisLayoutSize(){let e=this._layout.isCrossAxisFitToContents()&&!this._layout.resizingCrossAxis;return this._layout.isWrapping()||e?this._crossAxisMaxLayoutSize:this._layout.crossAxisSize}_calcCrossAxisMaxLayoutSize(){this._crossAxisMaxLayoutSize=this._getCrossAxisMaxLayoutSize()}_getCrossAxisMaxLayoutSize(){let e=0;for(let t=this.startIndex;t<=this.endIndex;t++){let i=this.items[t];e=Math.max(e,i.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin())}return e}},jl=class{constructor(e){this._layout=e,this._mainAxisMinSize=-1,this._crossAxisMinSize=-1,this._mainAxisContentSize=0}get lines(){return this._lines}get mainAxisMinSize(){return this._mainAxisMinSize===-1&&(this._mainAxisMinSize=this._getMainAxisMinSize()),this._mainAxisMinSize}get crossAxisMinSize(){return this._crossAxisMinSize===-1&&(this._crossAxisMinSize=this._getCrossAxisMinSize()),this._crossAxisMinSize}get mainAxisContentSize(){return this._mainAxisContentSize}layoutLines(){this._setup();let e=this._layout.items,t=this._layout.isWrapping(),i=0,s,n=e.length;for(s=0;si&&this._curMainAxisPos+a>this._mainAxisSize&&(this._layoutLine(i,s-1),this._curMainAxisPos=0,i=s),this._addToMainAxisPos(a)}ithis._maxMainAxisPos&&(this._maxMainAxisPos=this._curMainAxisPos)}_layoutLine(e,t){let i=this._getAvailableMainAxisLayoutSpace(),s=new zl(this._layout,e,t,i);s.performLayout(),this._lines.push(s),(this._mainAxisContentSize===0||this._curMainAxisPos>this._mainAxisContentSize)&&(this._mainAxisContentSize=this._curMainAxisPos)}_getAvailableMainAxisLayoutSpace(){return!this._layout.resizingMainAxis&&this._layout.isMainAxisFitToContents()?0:this._mainAxisSize-this._curMainAxisPos}_getCrossAxisMinSize(){let e=0,t=this._layout.items;for(let i=0,s=t.length;i0?this.performResizeMainAxis(e):this._checkValidCacheMainAxisResize()?(this.mainAxisSize=e,this._fitCrossAxisSizeToContents()):(this.item.enableLocalRecalcFlag(),this.performResizeMainAxis(e)))}_checkValidCacheMainAxisResize(e){return e===this.targetMainAxisSize||!this.isCrossAxisFitToContents()}performResizeMainAxis(e){let t=e0?this.performResizeCrossAxis(e):this.crossAxisSize=e)}performResizeCrossAxis(e){this.crossAxisSize=e,this._resizingCrossAxis=!0,this._layoutCrossAxis(),this._resizingCrossAxis=!1}get targetMainAxisSize(){return this._horizontal?this.item.target.w:this.item.target.h}get targetCrossAxisSize(){return this._horizontal?this.item.target.h:this.item.target.w}getParentFlexContainer(){return this.item.isFlexItemEnabled()?this.item.flexItem.ctr:null}_getHorizontalPadding(){return pe.getTotalPadding(this.item,!0)}_getVerticalPadding(){return pe.getTotalPadding(this.item,!1)}_getHorizontalPaddingOffset(){return pe.getPaddingOffset(this.item,!0)}_getVerticalPaddingOffset(){return pe.getPaddingOffset(this.item,!1)}_getMainAxisBasis(){return pe.getRelAxisSize(this.item,this._horizontal)}_getCrossAxisBasis(){return pe.getRelAxisSize(this.item,!this._horizontal)}get _horizontal(){return this._flexContainer._horizontal}get _reverse(){return this._flexContainer._reverse}get item(){return this._flexContainer.item}get items(){return this.item.items}get resizingMainAxis(){return this._resizingMainAxis}get resizingCrossAxis(){return this._resizingCrossAxis}get numberOfItems(){return this.items.length}get mainAxisSize(){return pe.getAxisLayoutSize(this.item,this._horizontal)}get crossAxisSize(){return pe.getAxisLayoutSize(this.item,!this._horizontal)}set mainAxisSize(e){pe.setAxisLayoutSize(this.item,this._horizontal,e)}set crossAxisSize(e){pe.setAxisLayoutSize(this.item,!this._horizontal,e)}},Tr=class r{constructor(e){this._item=e,this._layout=new Hl(this),this._horizontal=!0,this._reverse=!1,this._wrap=!1,this._alignItems="stretch",this._justifyContent="flex-start",this._alignContent="flex-start",this._paddingLeft=0,this._paddingTop=0,this._paddingRight=0,this._paddingBottom=0}get item(){return this._item}_changedDimensions(){this._item.changedDimensions()}_changedContents(){this._item.changedContents()}get direction(){return(this._horizontal?"row":"column")+(this._reverse?"-reverse":"")}set direction(e){this.direction!==e&&(this._horizontal=e==="row"||e==="row-reverse",this._reverse=e==="row-reverse"||e==="column-reverse",this._changedContents())}set wrap(e){this._wrap=e,this._changedContents()}get wrap(){return this._wrap}get alignItems(){return this._alignItems}set alignItems(e){if(this._alignItems!==e){if(r.ALIGN_ITEMS.indexOf(e)===-1)throw new Error("Unknown alignItems, options: "+r.ALIGN_ITEMS.join(","));this._alignItems=e,this._changedContents()}}get alignContent(){return this._alignContent}set alignContent(e){if(this._alignContent!==e){if(r.ALIGN_CONTENT.indexOf(e)===-1)throw new Error("Unknown alignContent, options: "+r.ALIGN_CONTENT.join(","));this._alignContent=e,this._changedContents()}}get justifyContent(){return this._justifyContent}set justifyContent(e){if(this._justifyContent!==e){if(r.JUSTIFY_CONTENT.indexOf(e)===-1)throw new Error("Unknown justifyContent, options: "+r.JUSTIFY_CONTENT.join(","));this._justifyContent=e,this._changedContents()}}set padding(e){this.paddingLeft=e,this.paddingTop=e,this.paddingRight=e,this.paddingBottom=e}get padding(){return this.paddingLeft}set paddingLeft(e){this._paddingLeft=e,this._changedDimensions()}get paddingLeft(){return this._paddingLeft}set paddingTop(e){this._paddingTop=e,this._changedDimensions()}get paddingTop(){return this._paddingTop}set paddingRight(e){this._paddingRight=e,this._changedDimensions()}get paddingRight(){return this._paddingRight}set paddingBottom(e){this._paddingBottom=e,this._changedDimensions()}get paddingBottom(){return this._paddingBottom}patch(e){dt.patchObject(this,e)}};Tr.ALIGN_ITEMS=["flex-start","flex-end","center","stretch"];Tr.ALIGN_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly","stretch"];Tr.JUSTIFY_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly"];var Zn=class r{constructor(e){this._ctr=null,this._item=e,this._grow=0,this._shrink=r.SHRINK_AUTO,this._alignSelf=void 0,this._minWidth=0,this._minHeight=0,this._maxWidth=0,this._maxHeight=0,this._marginLeft=0,this._marginTop=0,this._marginRight=0,this._marginBottom=0}get item(){return this._item}get grow(){return this._grow}set grow(e){this._grow!==e&&(this._grow=parseInt(e)||0,this._changed())}get shrink(){return this._shrink===r.SHRINK_AUTO?this._getDefaultShrink():this._shrink}_getDefaultShrink(){return this.item.isFlexEnabled()?1:0}set shrink(e){this._shrink!==e&&(this._shrink=parseInt(e)||0,this._changed())}get alignSelf(){return this._alignSelf}set alignSelf(e){if(this._alignSelf!==e){if(e===void 0)this._alignSelf=void 0;else{if(Tr.ALIGN_ITEMS.indexOf(e)===-1)throw new Error("Unknown alignSelf, options: "+Tr.ALIGN_ITEMS.join(","));this._alignSelf=e}this._changed()}}get minWidth(){return this._minWidth}set minWidth(e){this._minWidth=Math.max(0,e),this._item.changedDimensions(!0,!1)}get minHeight(){return this._minHeight}set minHeight(e){this._minHeight=Math.max(0,e),this._item.changedDimensions(!1,!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth=Math.max(0,e),this._item.changedDimensions(!0,!1)}get maxHeight(){return this._maxHeight}set maxHeight(e){this._maxHeight=Math.max(0,e),this._item.changedDimensions(!1,!0)}set margin(e){this.marginLeft=e,this.marginTop=e,this.marginRight=e,this.marginBottom=e}get margin(){return this.marginLeft}set marginLeft(e){this._marginLeft=e,this._changed()}get marginLeft(){return this._marginLeft}set marginTop(e){this._marginTop=e,this._changed()}get marginTop(){return this._marginTop}set marginRight(e){this._marginRight=e,this._changed()}get marginRight(){return this._marginRight}set marginBottom(e){this._marginBottom=e,this._changed()}get marginBottom(){return this._marginBottom}_changed(){this.ctr&&this.ctr._changedContents()}set ctr(e){this._ctr=e}get ctr(){return this._ctr}patch(e){dt.patchObject(this,e)}_resetLayoutSize(){this._resetHorizontalAxisLayoutSize(),this._resetVerticalAxisLayoutSize()}_resetCrossAxisLayoutSize(){this.ctr._horizontal?this._resetVerticalAxisLayoutSize():this._resetHorizontalAxisLayoutSize()}_resetHorizontalAxisLayoutSize(){let e=pe.getRelAxisSize(this.item,!0);this._minWidth&&(e=Math.max(this._minWidth,e)),this._maxWidth&&(e=Math.min(this._maxWidth,e)),pe.setAxisLayoutSize(this.item,!0,e)}_resetVerticalAxisLayoutSize(){let e=pe.getRelAxisSize(this.item,!1);this._minHeight&&(e=Math.max(this._minHeight,e)),this._maxHeight&&(e=Math.min(this._maxHeight,e)),pe.setAxisLayoutSize(this.item,!1,e)}_getCrossAxisMinSizeSetting(){return this._getMinSizeSetting(!this.ctr._horizontal)}_getCrossAxisMaxSizeSetting(){return this._getMaxSizeSetting(!this.ctr._horizontal)}_getMainAxisMaxSizeSetting(){return this._getMaxSizeSetting(this.ctr._horizontal)}_getMinSizeSetting(e){return e?this._minWidth:this._minHeight}_getMaxSizeSetting(e){return e?this._maxWidth:this._maxHeight}_getMainAxisMinSize(){return pe.getAxisMinSize(this.item,this.ctr._horizontal)}_getCrossAxisMinSize(){return pe.getAxisMinSize(this.item,!this.ctr._horizontal)}_getMainAxisLayoutSize(){return pe.getAxisLayoutSize(this.item,this.ctr._horizontal)}_getMainAxisLayoutPos(){return pe.getAxisLayoutPos(this.item,this.ctr._horizontal)}_setMainAxisLayoutPos(e){return pe.setAxisLayoutPos(this.item,this.ctr._horizontal,e)}_setCrossAxisLayoutPos(e){return pe.setAxisLayoutPos(this.item,!this.ctr._horizontal,e)}_getCrossAxisLayoutSize(){return pe.getAxisLayoutSize(this.item,!this.ctr._horizontal)}_resizeCrossAxis(e){return pe.resizeAxis(this.item,!this.ctr._horizontal,e)}_resizeMainAxis(e){return pe.resizeAxis(this.item,this.ctr._horizontal,e)}_getMainAxisPadding(){return pe.getTotalPadding(this.item,this.ctr._horizontal)}_getCrossAxisPadding(){return pe.getTotalPadding(this.item,!this.ctr._horizontal)}_getMainAxisMargin(){return pe.getTotalMargin(this.item,this.ctr._horizontal)}_getCrossAxisMargin(){return pe.getTotalMargin(this.item,!this.ctr._horizontal)}_getHorizontalMarginOffset(){return pe.getMarginOffset(this.item,!0)}_getVerticalMarginOffset(){return pe.getMarginOffset(this.item,!1)}_getMainAxisMinSizeWithPaddingAndMargin(){return this._getMainAxisMinSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisMinSizeWithPaddingAndMargin(){return this._getCrossAxisMinSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_getMainAxisLayoutSizeWithPaddingAndMargin(){return this._getMainAxisLayoutSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisLayoutSizeWithPaddingAndMargin(){return this._getCrossAxisLayoutSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_hasFixedCrossAxisSize(){return!pe.isZeroAxisSize(this.item,!this.ctr._horizontal)}_hasRelCrossAxisSize(){return!!(this.ctr._horizontal?this.item.funcH:this.item.funcW)}};Zn.SHRINK_AUTO=-1;var Wl=class{constructor(e){this._target=e,this._recalc=0,this._enabled=!1,this.x=0,this.y=0,this.w=0,this.h=0,this._originalX=0,this._originalY=0,this._originalWidth=0,this._originalHeight=0,this._flex=null,this._flexItem=null,this._flexItemDisabled=!1,this._items=null}get flexLayout(){return this.flex?this.flex._layout:null}layoutFlexTree(){this.isFlexEnabled()&&this.isChanged()&&this.flexLayout.layoutTree()}get target(){return this._target}get flex(){return this._flex}set flex(e){e?(this.isFlexEnabled()||this._enableFlex(),this._flex.patch(e)):this.isFlexEnabled()&&this._disableFlex()}get flexItem(){return this._flexItemDisabled?!1:(this._ensureFlexItem(),this._flexItem)}set flexItem(e){if(e===!1){if(!this._flexItemDisabled){let t=this.flexParent;this._flexItemDisabled=!0,this._checkEnabled(),t&&(t._clearFlexItemsCache(),t.changedContents())}}else if(this._ensureFlexItem(),this._flexItem.patch(e),this._flexItemDisabled){this._flexItemDisabled=!1,this._checkEnabled();let t=this.flexParent;t&&(t._clearFlexItemsCache(),t.changedContents())}}_enableFlex(){this._flex=new Tr(this),this._checkEnabled(),this.changedDimensions(),this._enableChildrenAsFlexItems()}_disableFlex(){this.changedDimensions(),this._flex=null,this._checkEnabled(),this._disableChildrenAsFlexItems()}_enableChildrenAsFlexItems(){let e=this._target._children;if(e)for(let t=0,i=e.length;t0}_updateRecalc(e=!1,t=!1){if(this.isFlexEnabled()){let n=this._flex._layout;e=e||n.isAxisFitToContents(!0),t=t||n.isAxisFitToContents(!1)}let i=1+(e?2:0)+(t?4:0),s=this.getNewRecalcFlags(i);this._recalc|=i,s>1?this.flexParent?this.flexParent._updateRecalcBottomUp(i):this._target.triggerLayout():this._target.triggerLayout()}getNewRecalcFlags(e){return 7-this._recalc&e}_updateRecalcBottomUp(e){let t=this._getRecalcFromChangedChildRecalc(e),i=this.getNewRecalcFlags(t);if(this._recalc|=t,i>1){let s=this.flexParent;s?s._updateRecalcBottomUp(t):this._target.triggerLayout()}else this._target.triggerLayout()}_getRecalcFromChangedChildRecalc(e){let t=this._flex._layout,i=t._horizontal?1:2,s=t._horizontal?2:1;e&s||e&i&&t.isWrapping()&&t.isCrossAxisFitToContents()&&(e+=s);let o=t.isAxisFitToContents(!0),a=t.isAxisFitToContents(!1);t.shrunk&&(t._horizontal?o=!0:a=!0);let l=1+(o?2:0)+(a?4:0);return e&l}get recalc(){return this._recalc}clearRecalcFlag(){this._recalc=0}enableLocalRecalcFlag(){this._recalc=1}get originalX(){return this._originalX}setOriginalXWithoutUpdatingLayout(e){this._originalX=e}get originalY(){return this._originalY}setOriginalYWithoutUpdatingLayout(e){this._originalY=e}get originalWidth(){return this._originalWidth}set originalWidth(e){this._originalWidth!==e&&(this._originalWidth=e,this.changedDimensions(!0,!1))}get originalHeight(){return this._originalHeight}set originalHeight(e){this._originalHeight!==e&&(this._originalHeight=e,this.changedDimensions(!1,!0))}get funcX(){return this._target.funcX}get funcY(){return this._target.funcY}get funcW(){return this._target.funcW}get funcH(){return this._target.funcH}},mi=class r{constructor(e,t=null){this.id=r.id++,this.manager=e,this.stage=e.stage,this.textures=new Set,this._activeTextureCount=0,this.loader=t,this.lookupId=null,this._cancelCb=null,this.loadingSince=0,this.w=0,this.h=0,this._nativeTexture=null,this.permanent=!1,this.renderInfo=null,this._isResultTexture=!this.loader,this._loadError=null,this._imageRef=null,this._hasAlpha=!1}get hasAlpha(){return this._hasAlpha}get loadError(){return this._loadError}addTexture(e){this.textures.has(e)||this.textures.add(e)}removeTexture(e){this.textures.delete(e)}incActiveTextureCount(){this._activeTextureCount++,this._activeTextureCount===1&&this.becomesUsed()}decActiveTextureCount(){this._activeTextureCount--,this._activeTextureCount===0&&this.becomesUnused()}get isResultTexture(){return this._isResultTexture}set isResultTexture(e){this._isResultTexture=e}forEachEnabledElement(e){this.textures.forEach(t=>{t.elements.forEach(e)})}hasEnabledElements(){return this.textures.size>0}forEachActiveElement(e){this.textures.forEach(t=>{t.elements.forEach(i=>{i.active&&e(i)})})}getRenderWidth(){return this.w}getRenderHeight(){return this.h}allowCleanup(){return!this.permanent&&!this.isUsed()}becomesUsed(){this.load()}becomesUnused(){this.cancel()}cancel(){this.isLoading()&&(this._cancelCb&&(this._cancelCb(this),this._cancelCb=null),this.loadingSince=0)}isLoaded(){return!!this._nativeTexture}isLoading(){return this.loadingSince>0}isError(){return!!this._loadError}reload(){this.free(),this.isUsed()&&this.load()}load(e=!1){this.isResultTexture||!this._nativeTexture&&!this.isLoading()&&(this.loadingSince=new Date().getTime(),this._cancelCb=this.loader((t,i)=>{if(this.isLoading()){if(this._cancelCb=null,this.manager.stage.destroyed)return;if(t)this.onError(t);else if(i&&i.source)if(!this.stage.isUpdatingFrame()&&!e&&i.throttle!==!1){let s=this.stage.textureThrottler;this._cancelCb=s.genericCancelCb,s.add(this,i)}else this.processLoadedSource(i)}},this))}processLoadedSource(e){this.loadingSince=0,this.setSource(e)}setSource(e){let t=e.source;this._hasAlpha=e&&e.hasAlpha||!1,this.w=t.width||e&&e.w||0,this.h=t.height||e&&e.h||0,e&&e.renderInfo&&(this.renderInfo=e.renderInfo),this.permanent=!!e.permanent,e&&e.imageRef&&(this._imageRef=e.imageRef),e&&e.flipTextureY?this._flipTextureY=e.flipTextureY:this._flipTextureY=!1,this._isNativeTexture(t)?(this._nativeTexture=t,this.w=this.w||t.w,this.h=this.h||t.h,this.permanent=e.hasOwnProperty("permanent")?e.permanent:!0):this.manager.uploadTextureSource(this,e),this._loadError=null,this.onLoad()}isUsed(){return this._activeTextureCount>0}onLoad(){this.isUsed()&&this.textures.forEach(e=>{e.onLoad()})}forceRenderUpdate(){this._nativeTexture&&(this._nativeTexture.update=this.stage.frameCounter),this.forEachActiveElement(function(e){e.forceRenderUpdate()})}forceUpdateRenderCoords(){this.forEachActiveElement(function(e){e._updateTextureCoords()})}get nativeTexture(){return this._nativeTexture}clearNativeTexture(){this._nativeTexture=null,this._imageRef=null}replaceNativeTexture(e,t,i){let s=this._nativeTexture;this._nativeTexture=e,this.w=t,this.h=i,!s&&this._nativeTexture&&this.forEachActiveElement(n=>n.onTextureSourceLoaded()),this._nativeTexture||this.forEachActiveElement(n=>n._setDisplayedTexture(null)),this.forEachEnabledElement(n=>n._updateDimensions())}onError(e){this._loadError=e,this.loadingSince=0,console.error("[Lightning] texture load error",e,this.lookupId),this.forEachActiveElement(t=>t.onTextureSourceLoadError(e))}free(){this.isLoaded()&&this.manager.freeTextureSource(this)}_isNativeTexture(e){return K.isNode?e.constructor.name==="WebGLTexture":"WebGLTexture"in window?e instanceof WebGLTexture:!1}};mi.prototype.isTextureSource=!0;mi.id=1;var eo=class{constructor(e){this._element=e.element,this._core=e,this.ctx=this._core.ctx,this._enabled=!1,this.lazy=!1,this._colorize=!1,this._renderTexture=null,this._renderTextureReused=!1,this._resultTextureSource=null,this._renderOffscreen=!1,this.empty=!1}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._core.updateRenderToTextureEnabled()}get renderOffscreen(){return this._renderOffscreen}set renderOffscreen(e){this._renderOffscreen=e,this._core.setHasRenderUpdates(1),this._core._setRecalc(6)}get colorize(){return this._colorize}set colorize(e){this._colorize!==e&&(this._colorize=e,this._core.setHasRenderUpdates(1))}_getTextureSource(){return this._resultTextureSource||(this._resultTextureSource=new mi(this._element.stage.textureManager),this.updateResultTexture()),this._resultTextureSource}hasResultTexture(){return!!this._resultTextureSource}resultTextureInUse(){return this._resultTextureSource&&this._resultTextureSource.hasEnabledElements()}updateResultTexture(){let e=this.getResultTexture();if(this._resultTextureSource){if(this._resultTextureSource.nativeTexture!==e){let t=e?e.w:0,i=e?e.h:0;this._resultTextureSource.replaceNativeTexture(e,t,i)}this._resultTextureSource.forEachEnabledElement(t=>{t._updateDimensions(),t.core.setHasRenderUpdates(3)})}}mustRenderToTexture(){return this._enabled&&!this.lazy?!0:!!(this._enabled&&this.lazy&&this._core._hasRenderUpdates<3)}deactivate(){this.release()}get renderTextureReused(){return this._renderTextureReused}release(){this.releaseRenderTexture()}releaseRenderTexture(){this._renderTexture&&(this._renderTextureReused||this.ctx.releaseRenderTexture(this._renderTexture),this._renderTexture=null,this._renderTextureReused=!1,this.updateResultTexture())}reuseTextureAsRenderTexture(e){this._renderTexture!==e&&(this.releaseRenderTexture(),this._renderTexture=e,this._renderTextureReused=!0)}hasRenderTexture(){return!!this._renderTexture}getRenderTexture(){return this._renderTexture||(this._renderTexture=this.ctx.allocateRenderTexture(this._core._w,this._core._h),this._renderTextureReused=!1),this._renderTexture}getResultTexture(){return this._renderTexture}},ds=class r{constructor(e){this._element=e,this.ctx=e.stage.ctx,this._recalc=0,this._parent=null,this._onUpdate=null,this._pRecalc=0,this._worldContext=new sr,this._hasUpdates=!1,this._localAlpha=1,this._onAfterCalcs=null,this._onAfterUpdate=null,this._localPx=0,this._localPy=0,this._localTa=1,this._localTb=0,this._localTc=0,this._localTd=1,this._isComplex=!1,this._dimsUnknown=!1,this._clipping=!1,this._zSort=!1,this._outOfBounds=0,this._displayedTextureSource=null,this._zContextUsage=0,this._children=null,this._hasRenderUpdates=0,this._zIndexedChildren=null,this._renderContext=this._worldContext,this.renderState=this.ctx.renderState,this._scissor=null,this._shaderOwner=null,this._updateTreeOrder=0,this._colorUl=this._colorUr=this._colorBl=this._colorBr=4294967295,this._x=0,this._y=0,this._w=0,this._h=0,this._optFlags=0,this._funcX=null,this._funcY=null,this._funcW=null,this._funcH=null,this._scaleX=1,this._scaleY=1,this._pivotX=.5,this._pivotY=.5,this._mountX=0,this._mountY=0,this._rotation=0,this._alpha=1,this._visible=!0,this._ulx=0,this._uly=0,this._brx=1,this._bry=1,this._zIndex=0,this._forceZIndexContext=!1,this._zParent=null,this._isRoot=!1,this._zIndexResort=!1,this._shader=null,this._renderToTextureEnabled=!1,this._texturizer=null,this._useRenderToTexture=!1,this._boundsMargin=null,this._recBoundsMargin=null,this._withinBoundsMargin=!1,this._viewport=null,this._clipbox=!0,this.render=this._renderSimple,this._layout=null}get offsetX(){return this._funcX?this._funcX:this.hasFlexLayout()?this._layout.originalX:this._x}set offsetX(e){K.isFunction(e)?this.funcX=e:(this._disableFuncX(),this.hasFlexLayout()?(this.x+=e-this._layout.originalX,this._layout.setOriginalXWithoutUpdatingLayout(e)):this.x=e)}get x(){return this._x}set x(e){e!==this._x&&(this._updateLocalTranslateDelta(e-this._x,0),this._x=e)}get funcX(){return this._optFlags&1?this._funcX:null}set funcX(e){this._funcX!==e&&(this._optFlags|=1,this._funcX=e,this.hasFlexLayout()?(this._layout.setOriginalXWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._x=0,this._triggerRecalcTranslate()))}_disableFuncX(){this._optFlags=this._optFlags&65534,this._funcX=null}get offsetY(){return this._funcY?this._funcY:this.hasFlexLayout()?this._layout.originalY:this._y}set offsetY(e){K.isFunction(e)?this.funcY=e:(this._disableFuncY(),this.hasFlexLayout()?(this.y+=e-this._layout.originalY,this._layout.setOriginalYWithoutUpdatingLayout(e)):this.y=e)}get y(){return this._y}set y(e){e!==this._y&&(this._updateLocalTranslateDelta(0,e-this._y),this._y=e)}get funcY(){return this._optFlags&2?this._funcY:null}set funcY(e){this._funcY!==e&&(this._optFlags|=2,this._funcY=e,this.hasFlexLayout()?(this._layout.setOriginalYWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._y=0,this._triggerRecalcTranslate()))}_disableFuncY(){this._optFlags=this._optFlags&65533,this._funcY=null}get funcW(){return this._optFlags&4?this._funcW:null}set funcW(e){this._funcW!==e&&(this._optFlags|=4,this._funcW=e,this.hasFlexLayout()?(this._layout._originalWidth=0,this.layout.changedDimensions(!0,!1)):(this._w=0,this._triggerRecalcTranslate()))}disableFuncW(){this._optFlags=this._optFlags&65531,this._funcW=null}get funcH(){return this._optFlags&8?this._funcH:null}set funcH(e){this._funcH!==e&&(this._optFlags|=8,this._funcH=e,this.hasFlexLayout()?(this._layout._originalHeight=0,this.layout.changedDimensions(!1,!0)):(this._h=0,this._triggerRecalcTranslate()))}disableFuncH(){this._optFlags=this._optFlags&65527,this._funcH=null}get w(){return this._w}getRenderWidth(){return this.hasFlexLayout()?this._layout.originalWidth:this._w}get h(){return this._h}getRenderHeight(){return this.hasFlexLayout()?this._layout.originalHeight:this._h}get scaleX(){return this._scaleX}set scaleX(e){this._scaleX!==e&&(this._scaleX=e,this._updateLocalTransform())}get scaleY(){return this._scaleY}set scaleY(e){this._scaleY!==e&&(this._scaleY=e,this._updateLocalTransform())}get scale(){return this.scaleX}set scale(e){(this._scaleX!==e||this._scaleY!==e)&&(this._scaleX=e,this._scaleY=e,this._updateLocalTransform())}get pivotX(){return this._pivotX}set pivotX(e){this._pivotX!==e&&(this._pivotX=e,this._updateLocalTranslate())}get pivotY(){return this._pivotY}set pivotY(e){this._pivotY!==e&&(this._pivotY=e,this._updateLocalTranslate())}get pivot(){return this._pivotX}set pivot(e){(this._pivotX!==e||this._pivotY!==e)&&(this._pivotX=e,this._pivotY=e,this._updateLocalTranslate())}get mountX(){return this._mountX}set mountX(e){this._mountX!==e&&(this._mountX=e,this._updateLocalTranslate())}get mountY(){return this._mountY}set mountY(e){this._mountY!==e&&(this._mountY=e,this._updateLocalTranslate())}get mount(){return this._mountX}set mount(e){(this._mountX!==e||this._mountY!==e)&&(this._mountX=e,this._mountY=e,this._updateLocalTranslate())}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._updateLocalTransform())}get alpha(){return this._alpha}set alpha(e){if(e=e>1?1:e<1e-14?0:e,this._alpha!==e){let t=this._alpha;this._alpha=e,this._updateLocalAlpha(),t===0!=(e===0)&&this._element._updateEnabledFlag()}}get visible(){return this._visible}set visible(e){this._visible!==e&&(this._visible=e,this._updateLocalAlpha(),this._element._updateEnabledFlag(),this.hasFlexLayout()&&this.layout.setVisible(e))}_updateLocalTransform(){if(this._rotation!==0&&this._rotation%(2*Math.PI)){let e=Math.sin(this._rotation),t=Math.cos(this._rotation);this._setLocalTransform(t*this._scaleX,-e*this._scaleY,e*this._scaleX,t*this._scaleY)}else this._setLocalTransform(this._scaleX,0,0,this._scaleY);this._updateLocalTranslate()}_updateLocalTranslate(){this._recalcLocalTranslate(),this._triggerRecalcTranslate()}_recalcLocalTranslate(){let e=this._pivotX*this._w,t=this._pivotY*this._h,i=this._x-(e*this._localTa+t*this._localTb)+e,s=this._y-(e*this._localTc+t*this._localTd)+t;i-=this._mountX*this._w,s-=this._mountY*this._h,this._localPx=i,this._localPy=s}_updateLocalTranslateDelta(e,t){this._addLocalTranslate(e,t)}_updateLocalAlpha(){this._setLocalAlpha(this._visible?this._alpha:0)}setHasRenderUpdates(e){if(this._worldContext.alpha){let t=this;for(t._hasRenderUpdates=Math.max(e,t._hasRenderUpdates);(t=t._parent)&&t._hasRenderUpdates!==3;)t._hasRenderUpdates=3}}_setRecalc(e){this._recalc|=e,this._setHasUpdates(),this._parent&&this._parent.setHasRenderUpdates(3)}_setHasUpdates(){let e=this;for(;e&&!e._hasUpdates;)e._hasUpdates=!0,e=e._parent}getParent(){return this._parent}setParent(e){if(e!==this._parent){let t=this.isZContext(),i=this._parent;if(this._parent=e,(this._layout||e&&e.isFlexContainer())&&this.layout.setParent(i,e),i&&i.setHasRenderUpdates(3),this._setRecalc(7),this._parent&&this._parent._setHasUpdates(),this._zIndex===0?this.setZParent(e):this.setZParent(e?e.findZContext():null),t!==this.isZContext()&&(this.isZContext()?this.enableZContext(i.findZContext()):this.disableZContext()),this._zIndexResort=!0,this._zParent&&this._zParent.enableZSort(),!this._shader){let s=e&&!e._renderToTextureEnabled?e._shaderOwner:null;s!==this._shaderOwner&&(this.setHasRenderUpdates(1),this._setShaderOwnerRecursive(s))}}}enableZSort(e=!1){!this._zSort&&this._zContextUsage>0&&(this._zSort=!0,e&&this.ctx.forceZSort(this))}addChildAt(e,t){this._children||(this._children=[]),this._children.splice(e,0,t),t.setParent(this)}setChildAt(e,t){this._children||(this._children=[]),this._children[e].setParent(null),this._children[e]=t,t.setParent(this)}removeChildAt(e){let t=this._children[e];this._children.splice(e,1),t.setParent(null)}removeChildren(){if(this._children){for(let e=0,t=this._children.length;e0;this._zIndex!==0&&e.incZContextUsage(),e._zContextUsage>0&&(!t&&this._parent===e||e._zIndexedChildren.push(this),e.enableZSort())}this._zParent=e,this._zIndexResort=!0}}incZContextUsage(){if(this._zContextUsage++,this._zContextUsage===1&&(this._zIndexedChildren||(this._zIndexedChildren=[]),this._children)){for(let e=0,t=this._children.length;e0&&this._getZIndexedDescs().forEach(i=>{this.isAncestorOf(i)&&i._zIndex!==0&&i.setZParent(this)})}_getZIndexedDescs(){let e=[];if(this._children)for(let t=0,i=this._children.length;t0){let e=this._parent.findZContext();this._zSort&&this.sortZIndexedChildren(),this._zIndexedChildren.slice().forEach(function(t){t._zIndex!==0&&t.setZParent(e)})}}get colorUl(){return this._colorUl}set colorUl(e){this._colorUl!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUl=e)}get colorUr(){return this._colorUr}set colorUr(e){this._colorUr!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUr=e)}get colorBl(){return this._colorBl}set colorBl(e){this._colorBl!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBl=e)}get colorBr(){return this._colorBr}set colorBr(e){this._colorBr!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBr=e)}set onUpdate(e){this._onUpdate=e,this._setRecalc(7)}set onAfterUpdate(e){this._onAfterUpdate=e,this._setRecalc(7)}set onAfterCalcs(e){this._onAfterCalcs=e,this._setRecalc(7)}get shader(){return this._shader}set shader(e){this.setHasRenderUpdates(1);let t=this._shader;if(this._shader=e,!e&&t){let i=this._parent&&!this._parent._renderToTextureEnabled?this._parent._shaderOwner:null;this._setShaderOwnerRecursive(i)}else e&&this._setShaderOwnerRecursive(this)}get activeShader(){return this._shaderOwner?this._shaderOwner.shader:this.renderState.defaultShader}get activeShaderOwner(){return this._shaderOwner}get clipping(){return this._clipping}set clipping(e){this._clipping!==e&&(this._clipping=e,this._setRecalc(3))}get clipbox(){return this._clipbox}set clipbox(e){this._clipbox=e}_setShaderOwnerRecursive(e){if(this._shaderOwner=e,this._children&&!this._renderToTextureEnabled)for(let t=0,i=this._children.length;t1e-14}get outOfBounds(){return this._outOfBounds}set boundsMargin(e){this._boundsMargin=e?e.slice():null,this._triggerRecalcTranslate()}get boundsMargin(){return this._boundsMargin}update(){this._recalc|=this._parent._pRecalc,this._layout&&this._layout.isEnabled()?this._recalc&256&&this._layout.layoutFlexTree():this._recalc&2&&this._optFlags&&this._applyRelativeDimFuncs(),this._onUpdate&&(this._hasUpdates=!0,this._onUpdate(this.element,this));let e=this._parent._worldContext,t=this._worldContext,i=e.alpha&&this._localAlpha;if(this._hasUpdates||this._recalc&&i||t.alpha&&!i){let s=this._recalc;s&1&&(!t.alpha&&i&&(this._hasRenderUpdates=3),t.alpha=e.alpha*this._localAlpha,t.alpha<1e-14&&(t.alpha=0)),s&6&&(t.px=e.px+this._localPx*e.ta,t.py=e.py+this._localPy*e.td,e.tb!==0&&(t.px+=this._localPy*e.tb),e.tc!==0&&(t.py+=this._localPx*e.tc)),s&4&&(t.ta=this._localTa*e.ta,t.tb=this._localTd*e.tb,t.tc=this._localTa*e.tc,t.td=this._localTd*e.td,this._isComplex&&(t.ta+=this._localTc*e.tb,t.tb+=this._localTb*e.ta,t.tc+=this._localTc*e.td,t.td+=this._localTb*e.tc));let n=this._parent._renderContext;if(this._parent._hasRenderContext()){let C=this._renderContext===this._worldContext;C&&(this._renderContext=new sr);let A=this._renderContext;(C||s&1)&&(A.alpha=n.alpha*this._localAlpha,A.alpha<1e-14&&(A.alpha=0)),(C||s&6)&&(A.px=n.px+this._localPx*n.ta,A.py=n.py+this._localPy*n.td,n.tb!==0&&(A.px+=this._localPy*n.tb),n.tc!==0&&(A.py+=this._localPx*n.tc)),C&&(s|=2),(C||s&4)&&(A.ta=this._localTa*n.ta,A.tb=this._localTd*n.tb,A.tc=this._localTa*n.tc,A.td=this._localTd*n.td,this._isComplex&&(A.ta+=this._localTc*n.tb,A.tb+=this._localTb*n.ta,A.tc+=this._localTc*n.td,A.td+=this._localTb*n.tc))}else this._renderContext=this._worldContext;this.ctx.updateTreeOrder===-1?this.ctx.updateTreeOrder=this._updateTreeOrder+1:this._updateTreeOrder=this.ctx.updateTreeOrder++;let o=this._renderToTextureEnabled&&this._texturizer.mustRenderToTexture();this._useRenderToTexture!==o&&(this._recalc|=6,s|=2,this._useRenderToTexture||this._texturizer.release()),this._useRenderToTexture=o;let a=this._renderContext,l=this._dimsUnknown?2048:this._w,u=this._dimsUnknown?2048:this._h,c,g,m,y,b=a.tb!==0||a.tc!==0||a.ta<0||a.td<0;if(b?(c=Math.min(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,m=Math.max(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,g=Math.min(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py,y=Math.max(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py):(c=a.px,m=a.px+a.ta*l,g=a.py,y=a.py+a.td*u),this._dimsUnknown&&(b||this._localTa<1||this._localTb<1)){let C=this._x*n.ta+this._y*n.tb+n.px,A=this._x*n.tc+this._y*n.td+n.py;Cm&&(m=C),A>y&&(y=A)}if(s&6||!this._scissor)if(this._clipping&&a.isSquare()){let C=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(C){let A=Math.max(C[0],c),T=Math.max(C[1],g);this._scissor=[A,T,Math.min(C[2]+C[0],m)-A,Math.min(C[3]+C[1],y)-T]}else this._scissor=[c,g,m-c,y-g]}else this._scissor=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(this._boundsMargin?this._recBoundsMargin=this._boundsMargin:this._recBoundsMargin=this._parent._recBoundsMargin,this._onAfterCalcs&&this._onAfterCalcs(this.element)&&(b?(c=Math.min(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,m=Math.max(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,g=Math.min(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py,y=Math.max(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py):(c=a.px,m=a.px+a.ta*l,g=a.py,y=a.py+a.td*u),this._dimsUnknown&&(b||this._localTa<1||this._localTb<1))){let C=this._x*n.ta+this._y*n.tb+n.px,A=this._x*n.tc+this._y*n.td+n.py;Cm&&(m=C),A>y&&(y=A)}if(this._parent._outOfBounds===2)this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin());else if(s&6){this._outOfBounds=0;let C=!0;if((!this._renderToTextureEnabled||!this._texturizer||!this._texturizer.renderOffscreen)&&(this._scissor&&(this._scissor[2]<=0||this._scissor[3]<=0)?this._outOfBounds=2:((this._scissor[0]>m||this._scissor[1]>y||c>this._scissor[0]+this._scissor[2]||g>this._scissor[1]+this._scissor[3])&&(this._outOfBounds=1),this._outOfBounds&&(this._clipping||this._useRenderToTexture||this._clipbox&&l&&u)&&(this._outOfBounds=2)),C=this._outOfBounds===0,C||(this._recBoundsMargin?C=!(mthis._scissor[0]+this._scissor[2]+this._recBoundsMargin[0]||g>this._scissor[1]+this._scissor[3]+this._recBoundsMargin[1]):C=!(mthis._scissor[0]+this._scissor[2]+100||g>this._scissor[1]+this._scissor[3]+100),C&&this._outOfBounds===2&&(this._outOfBounds=1))),this._withinBoundsMargin!==C)if(this._withinBoundsMargin=C,this._withinBoundsMargin){this._hasUpdates=!0;let A=this._recalc;if(this._recalc=0,this.element._enableWithinBoundsMargin(),this._recalc)return this.update();this._recalc=A}else this.element._disableWithinBoundsMargin()}if(this._useRenderToTexture&&(this._viewport?(this._viewport[2]=l,this._viewport[3]=u):this._viewport=[0,0,l,u]),this._pRecalc=this._recalc&135,this._recalc=0,this._hasUpdates=!1,this._outOfBounds<2){if(this._useRenderToTexture&&(this._worldContext.isIdentity()?this._renderContext=this._worldContext:this._renderContext=sr.IDENTITY),this._children)for(let C=0,A=this._children.length;C=this.ctx.updateTreeOrder?this.ctx.updateTreeOrder=-1:this.updateTreeOrder()}_applyRelativeDimFuncs(){if(this._optFlags&1){let t=this._funcX(this._parent.w);t!==this._x&&(this._localPx+=t-this._x,this._x=t)}if(this._optFlags&2){let t=this._funcY(this._parent.h);t!==this._y&&(this._localPy+=t-this._y,this._y=t)}let e=!1;if(this._optFlags&4){let t=this._funcW(this._parent.w);t!==this._w&&(this._w=t,e=!0)}if(this._optFlags&8){let t=this._funcH(this._parent.h);t!==this._h&&(this._h=t,e=!0)}e&&(this._recalcLocalTranslate(),this.element.onDimensionsChanged(this._w,this._h))}updateOutOfBounds(){if(this._outOfBounds!==2&&this._renderContext.alpha>0&&(this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin()),this._children))for(let e=0,t=this._children.length;e=3){if(this.ctx.renderToTextureCount++,t.setShader(t.defaultShader,this),n=t.renderTextureInfo,s={nativeTexture:null,offset:0,w:this._w,h:this._h,empty:!0,cleared:!1,ignore:!1,cache:!1},(this._texturizer.hasResultTexture()||!t.isCachingTexturizer&&e<3)&&(s.cache=!0,t.isCachingTexturizer=!0),this._texturizer.hasResultTexture()||this._texturizer.releaseRenderTexture(),t.setRenderTextureInfo(s),t.setScissor(null),this._displayedTextureSource){let o=this._renderContext;this._renderContext=sr.IDENTITY,this.renderState.addQuad(this),this._renderContext=o}}else i=!1}else this._outOfBounds===0&&this._displayedTextureSource&&(t.setShader(this.activeShader,this._shaderOwner),t.setScissor(this._scissor),this.renderState.addQuad(this));if(i&&this._children)if(this._zContextUsage)for(let o=0,a=this._zIndexedChildren.length;o0?s[l++]:i[a++];if((t===0||u[t-1]!==g)&&(u[t++]=g),a>=o){do{let m=s[l++];(t===0||u[t-1]!==m)&&(u[t++]=m)}while(l=n){do{let m=i[a++];(t===0||u[t-1]!==m)&&(u[t++]=m)}while(at&&i.splice(t)}}else i.length>t&&i.splice(t);this._zSort=!1}get localTa(){return this._localTa}get localTb(){return this._localTb}get localTc(){return this._localTc}get localTd(){return this._localTd}get element(){return this._element}get renderUpdates(){return this._hasRenderUpdates}get texturizer(){return this._texturizer||(this._texturizer=new eo(this)),this._texturizer}getCornerPoints(){let e=this._worldContext;return[e.px,e.py,e.px+this._w*e.ta,e.py+this._w*e.tc,e.px+this._w*e.ta+this._h*e.tb,e.py+this._w*e.tc+this._h*e.td,e.px+this._h*e.tb,e.py+this._h*e.td]}getRenderTextureCoords(e,t){let i=this._renderContext;return[i.px+i.ta*e+i.tb*t,i.py+i.tc*e+i.td*t]}getAbsoluteCoords(e,t){let i=this._renderContext;return[i.px+i.ta*e+i.tb*t,i.py+i.tc*e+i.td*t]}collectAtCoord(e,t,i){if(this._renderContext.alpha!==0){if(this.inBound(e,t)&&(this._scissor?this.inScissor()&&i.push(this):i.push(this)),this._children){let s=this._children.length;for(let n=0;ni[0]&&ei[1]&&t=e[0]&&t[0]<=e[0]+e[2]&&t[7]>=e[1]&&t[1]<=e[1]+e[3]}get layout(){return this._ensureLayout(),this._layout}get flex(){return this._layout?this._layout.flex:null}set flex(e){this.layout.flex=e}get flexItem(){return this._layout?this._layout.flexItem:null}set flexItem(e){this.layout.flexItem=e}isFlexItem(){return!!this._layout&&this._layout.isFlexItemEnabled()}isFlexContainer(){return!!this._layout&&this._layout.isFlexEnabled()}enableFlexLayout(){this._ensureLayout()}_ensureLayout(){this._layout||(this._layout=new Wl(this))}disableFlexLayout(){this._triggerRecalcTranslate()}hasFlexLayout(){return this._layout&&this._layout.isEnabled()}setLayout(e,t,i,s){this.x=e,this.y=t,this._updateDimensions(i,s)}triggerLayout(){this._setRecalc(256)}_triggerRecalcTranslate(){this._setRecalc(2)}},sr=class{constructor(){this.alpha=1,this.px=0,this.py=0,this.ta=1,this.tb=0,this.tc=0,this.td=1}isIdentity(){return this.alpha===1&&this.px===0&&this.py===0&&this.ta===1&&this.tb===0&&this.tc===0&&this.td===1}isSquare(){return this.tb===0&&this.tc===0}};sr.IDENTITY=new sr;ds.sortZIndexedChildren=function(r,e){return r._zIndex===e._zIndex?r._updateTreeOrder-e._updateTreeOrder:r._zIndex-e._zIndex};var ct=class r{constructor(){this._hasEventListeners=!1}on(e,t){this._hasEventListeners||(this._eventFunction={},this._eventListeners={},this._hasEventListeners=!0),this._eventFunction[e]?this._eventFunction[e]!==r.combiner?(this._eventListeners[e]=[this._eventFunction[e],t],this._eventFunction[e]=r.combiner):this._eventListeners[e].push(t):this._eventFunction[e]=t}once(e,t){let i=(s,n,o)=>{t(s,n,o),this.off(e,i)};i.__originalFunc=t,this.on(e,i)}has(e,t){if(this._hasEventListeners){let i=this._eventFunction[e];if(i){if(i===r.combiner){let s=this._eventListeners[e];for(let n of s)if(n===t||n.__originalFunc==t)return!0}else if(this._eventFunction[e]===t||this._eventFunction[e].__originalFunc===t)return!0}}return!1}off(e,t){if(this._hasEventListeners){let i=this._eventFunction[e];if(i)if(i===r.combiner){let s=this._eventListeners[e],n=s.indexOf(t);n>=0&&s.splice(n,1),n=s.map(o=>o.__originalFunc).indexOf(t),n>=0&&s.splice(n,1),s.length===1&&(this._eventFunction[e]=s[0],this._eventListeners[e]=void 0)}else(this._eventFunction[e]===t||this._eventFunction[e].__originalFunc===t)&&(this._eventFunction[e]=void 0)}}removeListener(e,t){this.off(e,t)}emit(e,t,i,s){if(this._hasEventListeners){let n=this._eventFunction[e];n&&(n===r.combiner?n(this,e,t,i,s):n(t,i,s))}}listenerCount(e){if(this._hasEventListeners){let t=this._eventFunction[e];if(t)return t===r.combiner?this._eventListeners[e].length:1}return 0}removeAllListeners(e){this._hasEventListeners&&(delete this._eventFunction[e],delete this._eventListeners[e])}};ct.combiner=function(r,e,t,i,s){let n=r._eventListeners[e];if(n)for(let o of[...n])o(t,i,s)};ct.addAsMixin=function(r){r.prototype.on=ct.prototype.on,r.prototype.once=ct.prototype.once,r.prototype.has=ct.prototype.has,r.prototype.off=ct.prototype.off,r.prototype.removeListener=ct.prototype.removeListener,r.prototype.emit=ct.prototype.emit,r.prototype.listenerCount=ct.prototype.listenerCount,r.prototype.removeAllListeners=ct.prototype.removeAllListeners};var qr=class{constructor(e){this._initialized=!1,this.ctx=e,this._elements=new Set}static create(e,t){let i;if(K.isObjectLiteral(t))t.type?i=e.renderer.createShader(e.ctx,t):i=this.shader,i&&dt.patchObject(i,t);else if(t===null)i=e.ctx.renderState.defaultShader;else if(t===void 0)i=null;else if(t.isShader)e.renderer.isValidShaderType(t.constructor)||(console.error("[Lightning] Invalid shader type"),t=null),i=t;else{console.error("[Lightning] Please specify a shader type.");return}return i}static getWebGL(){}static getC2d(){}addElement(e){this._elements.add(e)}removeElement(e){this._elements.delete(e),this._elements||this.cleanup()}redraw(){this._elements.forEach(e=>{e.setHasRenderUpdates(2)})}patch(e){dt.patchObject(this,e)}useDefault(){return!1}addEmpty(){return!1}cleanup(){}get isShader(){return!0}},Rt=class r{constructor(e){this.stage=e,this.manager=this.stage.textureManager,this.id=r.id++,this.elements=new Set,this._activeCount=0,this._source=null,this._resizeMode=null,this._x=0,this._y=0,this._w=0,this._h=0,this._precision=1,this.mw=0,this.mh=0,this.clipping=!1,this._mustUpdate=!0}get source(){return(this._mustUpdate||this.stage.hasUpdateSourceTexture(this))&&(this._performUpdateSource(!0),this.stage.removeUpdateSourceTexture(this)),this._source}addElement(e){this.elements.has(e)||(this.elements.add(e),this.elements.size===1&&this._source&&this._source.addTexture(this),e.active&&this.incActiveCount())}removeElement(e){this.elements.delete(e)&&(this.elements.size===0&&this._source&&this._source.removeTexture(this),e.active&&this.decActiveCount())}incActiveCount(){this.source&&this._checkForNewerReusableTextureSource(),this._activeCount++,this._activeCount===1&&this.becomesUsed()}decActiveCount(){this.source,this._activeCount--,this._activeCount||this.becomesUnused()}becomesUsed(){this.source&&this.source.incActiveTextureCount()}onLoad(){this._resizeMode&&this._applyResizeMode(),this.elements.forEach(e=>{e.active&&e.onTextureSourceLoaded()})}_checkForNewerReusableTextureSource(){let e=this.source;if(e.isLoaded())this._resizeMode&&this._applyResizeMode();else{let t=this._getReusableTextureSource();t&&t.isLoaded()&&t!==e&&this._replaceTextureSource(t)}}becomesUnused(){this.source&&this.source.decActiveTextureCount()}isUsed(){return this._activeCount>0}_getLookupId(){return null}_getSourceLoader(){throw new Error("Texture.generate must be implemented.")}get isValid(){return this._getIsValid()}_getIsValid(){return!0}_changed(){this.isUsed()?this._updateSource():this._mustUpdate=!0}_updateSource(){this.stage.addUpdateSourceTexture(this)}_performUpdateSource(e=!1){if(e||this.isUsed()){this._mustUpdate=!1;let t=this._getTextureSource();this._replaceTextureSource(t)}}_getTextureSource(){let e=null;if(this._getIsValid()){let t=this._getLookupId();e=this._getReusableTextureSource(t),e||(e=this.manager.getTextureSource(this._getSourceLoader(),t))}return e}_getReusableTextureSource(e=this._getLookupId()){return this._getIsValid()&&e?this.manager.getReusableTextureSource(e):null}_replaceTextureSource(e=null){let t=this._source;if(this._source=e,this.elements.size&&(t&&(this._activeCount&&t.decActiveTextureCount(),t.removeTexture(this),this.text&&!t.isUsed()&&this.manager.freeTextureSource(t)),e&&(e.addTexture(this),this._activeCount&&e.incActiveTextureCount())),this.isUsed())if(e)if(e.isLoaded())this._resizeMode&&this._applyResizeMode(),this.elements.forEach(i=>{i.active&&i._setDisplayedTexture(this)});else{let i=e.loadError;i&&this.elements.forEach(s=>{s.active&&s.onTextureSourceLoadError(i)})}else this.elements.forEach(i=>{i.active&&i._setDisplayedTexture(null)})}load(){this.source&&(this.isLoaded()||this.source.load(!0))}isLoaded(){return this._source&&this._source.isLoaded()}get loadError(){return this._source&&this._source.loadError}free(){this._source&&this._source.free()}set resizeMode({type:e="cover",w:t=0,h:i=0,clipX:s=.5,clipY:n=.5}){this._resizeMode={type:e,w:t,h:i,clipX:s,clipY:n},this.isLoaded()&&this._applyResizeMode()}get resizeMode(){return this._resizeMode}_clearResizeMode(){this._resizeMode=null}_applyResizeMode(){this._resizeMode.type==="cover"?this._applyResizeCover():this._resizeMode.type==="contain"&&this._applyResizeContain(),this._updatePrecision(),this._updateClipping()}_applyResizeCover(){let e=this._resizeMode.w/this._source.w,t=this._resizeMode.h/this._source.h,i=Math.max(e,t);if(i){if(this._precision=1/i,e&&e=65&&i<=90||i>=97&&i<=122||i==46)&&(e=this.stage.getOption("srcBasePath")+e)}return s=>this.stage.platform.loadSrcTexture({src:e,hasAlpha:t},s)}getNonDefaults(){let e=super.getNonDefaults();return this._src&&(e.src=this._src),e}};function to(r,e,t,i,s){let n=r;Array.isArray(n)||(n=[n]);let o=[];for(let a=0,l=n.length;an!="")}function ro(r,e,t=0){return t?e.split("").reduce((i,s)=>Ep(s)?i:i+r.measureText(s).width+t,0):r.measureText(e).width}function k1(r,e,t,i,s){let n=/ |\u200B/g,o=e.split(/\r?\n/g),a=[],l=[];for(let u=0;um?(C>0&&(c.push(g),g=""),g+=T,m=t-R-(C===0?s:0)):(m-=P,g+=A+T)}c.push(g),g="",a=a.concat(c),u{console.warn("[Lightning] Font load error",t,e)}).then(()=>{document.fonts.check(e,this._settings.text)||console.warn("[Lightning] Font not found",e)})}catch{console.warn("[Lightning] Can't check font loading for "+e)}}}draw(){let e=this._load();return e?e.then(()=>K.isSpark?this._stage.platform.drawText(this):this._draw()):K.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let e={},t=this.getPrecision(),i=this._settings.paddingLeft*t,s=this._settings.paddingRight*t,n=this._settings.fontSize*t,o=this._settings.offsetY===null?null:this._settings.offsetY*t,a=this._settings.lineHeight*t,l=this._settings.w*t,u=this._settings.h*t,c=this._settings.wordWrapWidth*t,g=this._settings.cutSx*t,m=this._settings.cutEx*t,y=this._settings.cutSy*t,b=this._settings.cutEy*t,C=(this._settings.letterSpacing||0)*t,A=this._settings.textIndent*t;this.setFontProperties();let T=l||this._stage.getOption("w"),R=T-i;if(R<10&&(T+=10-R,R=10),c||(c=R),this._settings.textOverflow&&!this._settings.wordWrap){let F;switch(this._settings.textOverflow){case"clip":F="";break;case"ellipsis":F=this._settings.maxLinesSuffix;break;default:F=this._settings.textOverflow}this._settings.text=this.wrapWord(this._settings.text,c-A,F)}let P;if(this._settings.wordWrap)P=this.wrapText(this._settings.text,c,C,A);else{P={l:this._settings.text.split(/(?:\r\n|\r|\n)/),n:[]};let F=P.l.length;for(let U=0;Uthis._settings.maxLines){let F=E.slice(0,this._settings.maxLines),U=null;if(this._settings.maxLinesSuffix){let D=this._settings.maxLinesSuffix?this.measureText(this._settings.maxLinesSuffix):0,N=this.wrapText(F[F.length-1],c-D,C,A);F[F.length-1]=N.l[0]+this._settings.maxLinesSuffix,U=[N.l.length>1?N.l[1]:""]}else U=[""];let q,ee=E.length,te=0,$=P.n.length;for(q=this._settings.maxLines;q{var XC=Object.create;var qn=Object.defineProperty;var KC=Object.getOwnPropertyDescriptor;var JC=Object.getOwnPropertyNames;var QC=Object.getPrototypeOf,ZC=Object.prototype.hasOwnProperty;var Ft=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var Vt=(r,e)=>()=>(r&&(e=r(r=0)),e);var H=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),rr=(r,e)=>{for(var t in e)qn(r,t,{get:e[t],enumerable:!0})},cp=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of JC(e))!ZC.call(r,s)&&s!==t&&qn(r,s,{get:()=>e[s],enumerable:!(i=KC(e,s))||i.enumerable});return r};var ye=(r,e,t)=>(t=r!=null?XC(QC(r)):{},cp(e||!r||!r.__esModule?qn(t,"default",{value:r,enumerable:!0}):t,r)),e1=r=>cp(qn({},"__esModule",{value:!0}),r);var h=Vt(()=>{});var d=Vt(()=>{});var p=Vt(()=>{});var Rl={};rr(Rl,{Children:()=>Tl,Component:()=>ir,Fragment:()=>s1,Profiler:()=>n1,PureComponent:()=>o1,StrictMode:()=>a1,Suspense:()=>Cl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>l1,cloneElement:()=>Ue,createContext:()=>fi,createElement:()=>yp,createFactory:()=>u1,createRef:()=>c1,default:()=>z,forwardRef:()=>h1,isValidElement:()=>d1,lazy:()=>Al,memo:()=>hs,startTransition:()=>p1,unstable_act:()=>f1,useCallback:()=>ut,useContext:()=>El,useDebugValue:()=>g1,useDeferredValue:()=>m1,useEffect:()=>He,useId:()=>_1,useImperativeHandle:()=>y1,useInsertionEffect:()=>x1,useLayoutEffect:()=>Il,useMemo:()=>vr,useReducer:()=>b1,useRef:()=>Bt,useState:()=>Fe,useSyncExternalStore:()=>v1,useTransition:()=>S1,version:()=>w1});var z,Tl,ir,s1,n1,o1,a1,Cl,l1,Ue,fi,yp,u1,c1,h1,d1,Al,hs,p1,f1,ut,El,g1,m1,He,_1,y1,x1,Il,vr,b1,Bt,Fe,v1,S1,w1,Ge=Vt(()=>{h();d();p();z=__REACT__,{Children:Tl,Component:ir,Fragment:s1,Profiler:n1,PureComponent:o1,StrictMode:a1,Suspense:Cl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:l1,cloneElement:Ue,createContext:fi,createElement:yp,createFactory:u1,createRef:c1,forwardRef:h1,isValidElement:d1,lazy:Al,memo:hs,startTransition:p1,unstable_act:f1,useCallback:ut,useContext:El,useDebugValue:g1,useDeferredValue:m1,useEffect:He,useId:_1,useImperativeHandle:y1,useInsertionEffect:x1,useLayoutEffect:Il,useMemo:vr,useReducer:b1,useRef:Bt,useState:Fe,useSyncExternalStore:v1,useTransition:S1,version:w1}=__REACT__});var Tp=H(Jn=>{"use strict";h();d();p();var T1=(Ge(),e1(Rl)),C1=Symbol.for("react.element"),A1=Symbol.for("react.fragment"),E1=Object.prototype.hasOwnProperty,I1=T1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R1={key:!0,ref:!0,__self:!0,__source:!0};function wp(r,e,t){var i,s={},n=null,o=null;t!==void 0&&(n=""+t),e.key!==void 0&&(n=""+e.key),e.ref!==void 0&&(o=e.ref);for(i in e)E1.call(e,i)&&!R1.hasOwnProperty(i)&&(s[i]=e[i]);if(r&&r.defaultProps)for(i in e=r.defaultProps,e)s[i]===void 0&&(s[i]=e[i]);return{$$typeof:C1,type:r,key:n,ref:o,props:s,_owner:I1.current}}Jn.Fragment=A1;Jn.jsx=wp;Jn.jsxs=wp});var Ce=H((PG,Cp)=>{"use strict";h();d();p();Cp.exports=Tp()});var Cf=H((ufe,Tf)=>{h();d();p();function oc(r,e,t){var i,s,n,o,a;e==null&&(e=100);function l(){var c=Date.now()-o;c=0?i=setTimeout(l,e-c):(i=null,t||(a=r.apply(n,s),n=s=null))}var u=function(){n=this,s=arguments,o=Date.now();var c=t&&!i;return i||(i=setTimeout(l,e)),c&&(a=r.apply(n,s),n=s=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=r.apply(n,s),n=s=null,clearTimeout(i),i=null)},u}oc.debounce=oc;Tf.exports=oc});var VA,Rf,GA,Pf,YA,XA,Xr,KA,kf,Kt,lc,uc=Vt(()=>{h();d();p();VA=Object.create,Rf=Object.defineProperty,GA=Object.getOwnPropertyDescriptor,Pf=Object.getOwnPropertyNames,YA=Object.getPrototypeOf,XA=Object.prototype.hasOwnProperty,Xr=(r,e)=>function(){return e||(0,r[Pf(r)[0]])((e={exports:{}}).exports,e),e.exports},KA=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Pf(e))!XA.call(r,s)&&s!==t&&Rf(r,s,{get:()=>e[s],enumerable:!(i=GA(e,s))||i.enumerable});return r},kf=(r,e,t)=>(t=r!=null?VA(YA(r)):{},KA(e||!r||!r.__esModule?Rf(t,"default",{value:r,enumerable:!0}):t,r)),Kt=r=>`control-${r.replace(/\s+/g,"-")}`,lc=r=>`set-${r.replace(/\s+/g,"-")}`});var Hf={};rr(Hf,{A:()=>QA,ActionBar:()=>cc,AddonPanel:()=>ZA,Badge:()=>eE,Bar:()=>tE,Blockquote:()=>rE,Button:()=>Zo,ClipboardCode:()=>iE,Code:()=>Of,DL:()=>sE,Div:()=>nE,DocumentWrapper:()=>oE,EmptyTabContent:()=>Lf,ErrorFormatter:()=>Df,FlexBar:()=>hc,Form:()=>Rr,H1:()=>aE,H2:()=>dc,H3:()=>Ff,H4:()=>lE,H5:()=>uE,H6:()=>cE,HR:()=>hE,IconButton:()=>Kr,IconButtonSkeleton:()=>dE,Icons:()=>pE,Img:()=>fE,LI:()=>gE,Link:()=>Bf,ListItem:()=>mE,Loader:()=>Mf,Modal:()=>_E,OL:()=>yE,P:()=>xE,Placeholder:()=>bE,Pre:()=>vE,ResetWrapper:()=>Nf,ScrollArea:()=>SE,Separator:()=>wE,Spaced:()=>TE,Span:()=>CE,StorybookIcon:()=>AE,StorybookLogo:()=>EE,Symbols:()=>IE,SyntaxHighlighter:()=>pc,TT:()=>RE,TabBar:()=>PE,TabButton:()=>kE,TabWrapper:()=>OE,Table:()=>LE,Tabs:()=>DE,TabsState:()=>zf,TooltipLinkList:()=>FE,TooltipMessage:()=>BE,TooltipNote:()=>fc,UL:()=>ME,WithTooltip:()=>ea,WithTooltipPure:()=>jf,Zoom:()=>gc,codeCommon:()=>Ai,components:()=>mc,createCopyToClipboardFunction:()=>NE,default:()=>JA,getStoryHref:()=>Uf,icons:()=>zE,interleaveSeparators:()=>jE,nameSpaceClassNames:()=>_c,resetComponents:()=>UE,withReset:()=>Ei});var JA,QA,cc,ZA,eE,tE,rE,Zo,iE,Of,sE,nE,oE,Lf,Df,hc,Rr,aE,dc,Ff,lE,uE,cE,hE,Kr,dE,pE,fE,gE,Bf,mE,Mf,_E,yE,xE,bE,vE,Nf,SE,wE,TE,CE,AE,EE,IE,pc,RE,PE,kE,OE,LE,DE,zf,FE,BE,fc,ME,ea,jf,gc,Ai,mc,NE,Uf,zE,jE,_c,UE,Ei,ta=Vt(()=>{h();d();p();JA=__STORYBOOK_COMPONENTS__,{A:QA,ActionBar:cc,AddonPanel:ZA,Badge:eE,Bar:tE,Blockquote:rE,Button:Zo,ClipboardCode:iE,Code:Of,DL:sE,Div:nE,DocumentWrapper:oE,EmptyTabContent:Lf,ErrorFormatter:Df,FlexBar:hc,Form:Rr,H1:aE,H2:dc,H3:Ff,H4:lE,H5:uE,H6:cE,HR:hE,IconButton:Kr,IconButtonSkeleton:dE,Icons:pE,Img:fE,LI:gE,Link:Bf,ListItem:mE,Loader:Mf,Modal:_E,OL:yE,P:xE,Placeholder:bE,Pre:vE,ResetWrapper:Nf,ScrollArea:SE,Separator:wE,Spaced:TE,Span:CE,StorybookIcon:AE,StorybookLogo:EE,Symbols:IE,SyntaxHighlighter:pc,TT:RE,TabBar:PE,TabButton:kE,TabWrapper:OE,Table:LE,Tabs:DE,TabsState:zf,TooltipLinkList:FE,TooltipMessage:BE,TooltipNote:fc,UL:ME,WithTooltip:ea,WithTooltipPure:jf,Zoom:gc,codeCommon:Ai,components:mc,createCopyToClipboardFunction:NE,getStoryHref:Uf,icons:zE,interleaveSeparators:jE,nameSpaceClassNames:_c,resetComponents:UE,withReset:Ei}=__STORYBOOK_COMPONENTS__});var ige,sge,nge,oge,Wf,age,lge,qf,uge,cge,hge,dge,pge,fge,HE,$f,gge,mge,_ge,yge,J,yc,xge,Vf,bge,xc=Vt(()=>{h();d();p();ige=__STORYBOOK_THEMING__,{CacheProvider:sge,ClassNames:nge,Global:oge,ThemeProvider:Wf,background:age,color:lge,convert:qf,create:uge,createCache:cge,createGlobal:hge,createReset:dge,css:pge,darken:fge,ensure:HE,ignoreSsrWarning:$f,isPropValid:gge,jsx:mge,keyframes:_ge,lighten:yge,styled:J,themes:yc,typography:xge,useTheme:Vf,withTheme:bge}=__STORYBOOK_THEMING__});var Hme,Wme,qme,ig,$me,Vme,Gme,Yme,Xme,Kme,Jme,Qme,Zme,e_e,t_e,r_e,i_e,s_e,n_e,o_e,a_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ArrowBottomRightIcon:Qme,ArrowDownIcon:Zme,ArrowLeftIcon:e_e,ArrowRightIcon:t_e,ArrowSolidDownIcon:r_e,ArrowSolidLeftIcon:i_e,ArrowSolidRightIcon:s_e,ArrowSolidUpIcon:n_e,ArrowTopLeftIcon:o_e,ArrowTopRightIcon:a_e,ArrowUpIcon:l_e,AzureDevOpsIcon:u_e,BackIcon:c_e,BasketIcon:h_e,BatchAcceptIcon:d_e,BatchDenyIcon:p_e,BeakerIcon:f_e,BellIcon:g_e,BitbucketIcon:m_e,BoldIcon:__e,BookIcon:y_e,BookmarkHollowIcon:x_e,BookmarkIcon:b_e,BottomBarIcon:v_e,BottomBarToggleIcon:S_e,BoxIcon:w_e,BranchIcon:T_e,BrowserIcon:C_e,ButtonIcon:A_e,CPUIcon:E_e,CalendarIcon:I_e,CameraIcon:R_e,CategoryIcon:P_e,CertificateIcon:k_e,ChangedIcon:O_e,ChatIcon:L_e,CheckIcon:D_e,ChevronDownIcon:sg,ChevronLeftIcon:F_e,ChevronRightIcon:ng,ChevronSmallDownIcon:Ac,ChevronSmallLeftIcon:B_e,ChevronSmallRightIcon:M_e,ChevronSmallUpIcon:og,ChevronUpIcon:N_e,ChromaticIcon:z_e,ChromeIcon:j_e,CircleHollowIcon:U_e,CircleIcon:H_e,ClearIcon:W_e,CloseAltIcon:q_e,CloseIcon:$_e,CloudHollowIcon:V_e,CloudIcon:G_e,CogIcon:Y_e,CollapseIcon:X_e,CommandIcon:K_e,CommentAddIcon:J_e,CommentIcon:Q_e,CommentsIcon:Z_e,CommitIcon:eye,CompassIcon:tye,ComponentDrivenIcon:rye,ComponentIcon:iye,ContrastIcon:sye,ControlsIcon:nye,CopyIcon:oye,CreditIcon:aye,CrossIcon:lye,DashboardIcon:uye,DatabaseIcon:cye,DeleteIcon:hye,DiamondIcon:dye,DirectionIcon:pye,DiscordIcon:fye,DocChartIcon:gye,DocListIcon:mye,DocumentIcon:EI,DownloadIcon:_ye,DragIcon:yye,EditIcon:xye,EllipsisIcon:bye,EmailIcon:vye,ExpandAltIcon:Sye,ExpandIcon:wye,EyeCloseIcon:II,EyeIcon:RI,FaceHappyIcon:Tye,FaceNeutralIcon:Cye,FaceSadIcon:Aye,FacebookIcon:Eye,FailedIcon:Iye,FastForwardIcon:Rye,FigmaIcon:Pye,FilterIcon:kye,FlagIcon:Oye,FolderIcon:Lye,FormIcon:Dye,GDriveIcon:Fye,GithubIcon:Bye,GitlabIcon:Mye,GlobeIcon:Nye,GoogleIcon:zye,GraphBarIcon:jye,GraphLineIcon:Uye,GraphqlIcon:Hye,GridAltIcon:Wye,GridIcon:qye,GrowIcon:$ye,HeartHollowIcon:Vye,HeartIcon:Gye,HomeIcon:Yye,HourglassIcon:Xye,InfoIcon:Kye,ItalicIcon:Jye,JumpToIcon:Qye,KeyIcon:Zye,LightningIcon:exe,LightningOffIcon:txe,LinkBrokenIcon:rxe,LinkIcon:ag,LinkedinIcon:ixe,LinuxIcon:sxe,ListOrderedIcon:nxe,ListUnorderedIcon:oxe,LocationIcon:axe,LockIcon:lxe,MarkdownIcon:uxe,MarkupIcon:lg,MediumIcon:cxe,MemoryIcon:hxe,MenuIcon:dxe,MergeIcon:pxe,MirrorIcon:fxe,MobileIcon:gxe,MoonIcon:mxe,NutIcon:_xe,OutboxIcon:yxe,OutlineIcon:xxe,PaintBrushIcon:bxe,PaperClipIcon:vxe,ParagraphIcon:Sxe,PassedIcon:wxe,PhoneIcon:Txe,PhotoDragIcon:Cxe,PhotoIcon:Axe,PinAltIcon:Exe,PinIcon:Ixe,PlayBackIcon:Rxe,PlayIcon:Pxe,PlayNextIcon:kxe,PlusIcon:Oxe,PointerDefaultIcon:Lxe,PointerHandIcon:Dxe,PowerIcon:Fxe,PrintIcon:Bxe,ProceedIcon:Mxe,ProfileIcon:Nxe,PullRequestIcon:zxe,QuestionIcon:jxe,RSSIcon:Uxe,RedirectIcon:Hxe,ReduxIcon:Wxe,RefreshIcon:qxe,ReplyIcon:$xe,RepoIcon:Vxe,RequestChangeIcon:Gxe,RewindIcon:Yxe,RulerIcon:Xxe,SearchIcon:Kxe,ShareAltIcon:Jxe,ShareIcon:Qxe,ShieldIcon:Zxe,SideBySideIcon:ebe,SidebarAltIcon:tbe,SidebarAltToggleIcon:rbe,SidebarIcon:ibe,SidebarToggleIcon:sbe,SpeakerIcon:nbe,StackedIcon:obe,StarHollowIcon:abe,StarIcon:lbe,StatusFailIcon:ube,StatusPassIcon:cbe,StatusWarnIcon:hbe,StickerIcon:dbe,StopAltIcon:pbe,StopIcon:fbe,StorybookIcon:gbe,StructureIcon:mbe,SubtractIcon:ug,SunIcon:_be,SupportIcon:ybe,SwitchAltIcon:xbe,SyncIcon:bbe,TabletIcon:vbe,ThumbsUpIcon:Sbe,TimeIcon:wbe,TimerIcon:Tbe,TransferIcon:Cbe,TrashIcon:Abe,TwitterIcon:Ebe,TypeIcon:Ibe,UbuntuIcon:Rbe,UndoIcon:PI,UnfoldIcon:Pbe,UnlockIcon:kbe,UnpinIcon:Obe,UploadIcon:Lbe,UserAddIcon:Dbe,UserAltIcon:Fbe,UserIcon:Bbe,UsersIcon:Mbe,VSCodeIcon:Nbe,VerifiedIcon:zbe,VideoIcon:kI,WandIcon:jbe,WatchIcon:Ube,WindowsIcon:Hbe,WrenchIcon:Wbe,XIcon:qbe,YoutubeIcon:$be,ZoomIcon:cg,ZoomOutIcon:hg,ZoomResetIcon:dg,iconList:Vbe}=__STORYBOOK_ICONS__});var Pc=H((a0e,vg)=>{h();d();p();function $I(r,e){for(var t=-1,i=r==null?0:r.length,s=Array(i);++t{h();d();p();function VI(){this.__data__=[],this.size=0}Sg.exports=VI});var aa=H((g0e,Tg)=>{h();d();p();function GI(r,e){return r===e||r!==r&&e!==e}Tg.exports=GI});var Xs=H((x0e,Cg)=>{h();d();p();var YI=aa();function XI(r,e){for(var t=r.length;t--;)if(YI(r[t][0],e))return t;return-1}Cg.exports=XI});var Eg=H((w0e,Ag)=>{h();d();p();var KI=Xs(),JI=Array.prototype,QI=JI.splice;function ZI(r){var e=this.__data__,t=KI(e,r);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():QI.call(e,t,1),--this.size,!0}Ag.exports=ZI});var Rg=H((E0e,Ig)=>{h();d();p();var eR=Xs();function tR(r){var e=this.__data__,t=eR(e,r);return t<0?void 0:e[t][1]}Ig.exports=tR});var kg=H((k0e,Pg)=>{h();d();p();var rR=Xs();function iR(r){return rR(this.__data__,r)>-1}Pg.exports=iR});var Lg=H((F0e,Og)=>{h();d();p();var sR=Xs();function nR(r,e){var t=this.__data__,i=sR(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}Og.exports=nR});var Ks=H((z0e,Dg)=>{h();d();p();var oR=wg(),aR=Eg(),lR=Rg(),uR=kg(),cR=Lg();function Pi(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var hR=Ks();function dR(){this.__data__=new hR,this.size=0}Fg.exports=dR});var Ng=H((G0e,Mg)=>{h();d();p();function pR(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Mg.exports=pR});var jg=H((J0e,zg)=>{h();d();p();function fR(r){return this.__data__.get(r)}zg.exports=fR});var Hg=H((tve,Ug)=>{h();d();p();function gR(r){return this.__data__.has(r)}Ug.exports=gR});var kc=H((nve,Wg)=>{h();d();p();var mR=typeof window=="object"&&window&&window.Object===Object&&window;Wg.exports=mR});var Mt=H((uve,qg)=>{h();d();p();var _R=kc(),yR=typeof self=="object"&&self&&self.Object===Object&&self,xR=_R||yR||Function("return this")();qg.exports=xR});var ki=H((pve,$g)=>{h();d();p();var bR=Mt(),vR=bR.Symbol;$g.exports=vR});var Xg=H((_ve,Yg)=>{h();d();p();var Vg=ki(),Gg=Object.prototype,SR=Gg.hasOwnProperty,wR=Gg.toString,Js=Vg?Vg.toStringTag:void 0;function TR(r){var e=SR.call(r,Js),t=r[Js];try{r[Js]=void 0;var i=!0}catch{}var s=wR.call(r);return i&&(e?r[Js]=t:delete r[Js]),s}Yg.exports=TR});var Jg=H((vve,Kg)=>{h();d();p();var CR=Object.prototype,AR=CR.toString;function ER(r){return AR.call(r)}Kg.exports=ER});var Oi=H((Cve,em)=>{h();d();p();var Qg=ki(),IR=Xg(),RR=Jg(),PR="[object Null]",kR="[object Undefined]",Zg=Qg?Qg.toStringTag:void 0;function OR(r){return r==null?r===void 0?kR:PR:Zg&&Zg in Object(r)?IR(r):RR(r)}em.exports=OR});var Jt=H((Rve,tm)=>{h();d();p();function LR(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}tm.exports=LR});var Oc=H((Lve,rm)=>{h();d();p();var DR=Oi(),FR=Jt(),BR="[object AsyncFunction]",MR="[object Function]",NR="[object GeneratorFunction]",zR="[object Proxy]";function jR(r){if(!FR(r))return!1;var e=DR(r);return e==MR||e==NR||e==BR||e==zR}rm.exports=jR});var sm=H((Mve,im)=>{h();d();p();var UR=Mt(),HR=UR["__core-js_shared__"];im.exports=HR});var am=H((Uve,om)=>{h();d();p();var Lc=sm(),nm=function(){var r=/[^.]+$/.exec(Lc&&Lc.keys&&Lc.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function WR(r){return!!nm&&nm in r}om.exports=WR});var Dc=H(($ve,lm)=>{h();d();p();var qR=Function.prototype,$R=qR.toString;function VR(r){if(r!=null){try{return $R.call(r)}catch{}try{return r+""}catch{}}return""}lm.exports=VR});var cm=H((Xve,um)=>{h();d();p();var GR=Oc(),YR=am(),XR=Jt(),KR=Dc(),JR=/[\\^$.*+?()[\]{}|]/g,QR=/^\[object .+?Constructor\]$/,ZR=Function.prototype,eP=Object.prototype,tP=ZR.toString,rP=eP.hasOwnProperty,iP=RegExp("^"+tP.call(rP).replace(JR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sP(r){if(!XR(r)||YR(r))return!1;var e=GR(r)?iP:QR;return e.test(KR(r))}um.exports=sP});var dm=H((Zve,hm)=>{h();d();p();function nP(r,e){return r?.[e]}hm.exports=nP});var Dr=H((iSe,pm)=>{h();d();p();var oP=cm(),aP=dm();function lP(r,e){var t=aP(r,e);return oP(t)?t:void 0}pm.exports=lP});var la=H((aSe,fm)=>{h();d();p();var uP=Dr(),cP=Mt(),hP=uP(cP,"Map");fm.exports=hP});var Qs=H((hSe,gm)=>{h();d();p();var dP=Dr(),pP=dP(Object,"create");gm.exports=pP});var ym=H((gSe,_m)=>{h();d();p();var mm=Qs();function fP(){this.__data__=mm?mm(null):{},this.size=0}_m.exports=fP});var bm=H((xSe,xm)=>{h();d();p();function gP(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}xm.exports=gP});var Sm=H((wSe,vm)=>{h();d();p();var mP=Qs(),_P="__lodash_hash_undefined__",yP=Object.prototype,xP=yP.hasOwnProperty;function bP(r){var e=this.__data__;if(mP){var t=e[r];return t===_P?void 0:t}return xP.call(e,r)?e[r]:void 0}vm.exports=bP});var Tm=H((ESe,wm)=>{h();d();p();var vP=Qs(),SP=Object.prototype,wP=SP.hasOwnProperty;function TP(r){var e=this.__data__;return vP?e[r]!==void 0:wP.call(e,r)}wm.exports=TP});var Am=H((kSe,Cm)=>{h();d();p();var CP=Qs(),AP="__lodash_hash_undefined__";function EP(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=CP&&e===void 0?AP:e,this}Cm.exports=EP});var Im=H((FSe,Em)=>{h();d();p();var IP=ym(),RP=bm(),PP=Sm(),kP=Tm(),OP=Am();function Li(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var Rm=Im(),LP=Ks(),DP=la();function FP(){this.size=0,this.__data__={hash:new Rm,map:new(DP||LP),string:new Rm}}Pm.exports=FP});var Lm=H((WSe,Om)=>{h();d();p();function BP(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Om.exports=BP});var Zs=H((GSe,Dm)=>{h();d();p();var MP=Lm();function NP(r,e){var t=r.__data__;return MP(e)?t[typeof e=="string"?"string":"hash"]:t.map}Dm.exports=NP});var Bm=H((JSe,Fm)=>{h();d();p();var zP=Zs();function jP(r){var e=zP(this,r).delete(r);return this.size-=e?1:0,e}Fm.exports=jP});var Nm=H((twe,Mm)=>{h();d();p();var UP=Zs();function HP(r){return UP(this,r).get(r)}Mm.exports=HP});var jm=H((nwe,zm)=>{h();d();p();var WP=Zs();function qP(r){return WP(this,r).has(r)}zm.exports=qP});var Hm=H((uwe,Um)=>{h();d();p();var $P=Zs();function VP(r,e){var t=$P(this,r),i=t.size;return t.set(r,e),this.size+=t.size==i?0:1,this}Um.exports=VP});var ua=H((pwe,Wm)=>{h();d();p();var GP=km(),YP=Bm(),XP=Nm(),KP=jm(),JP=Hm();function Di(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var QP=Ks(),ZP=la(),ek=ua(),tk=200;function rk(r,e){var t=this.__data__;if(t instanceof QP){var i=t.__data__;if(!ZP||i.length{h();d();p();var ik=Ks(),sk=Bg(),nk=Ng(),ok=jg(),ak=Hg(),lk=$m();function Fi(r){var e=this.__data__=new ik(r);this.size=e.size}Fi.prototype.clear=sk;Fi.prototype.delete=nk;Fi.prototype.get=ok;Fi.prototype.has=ak;Fi.prototype.set=lk;Vm.exports=Fi});var Ym=H((Cwe,Gm)=>{h();d();p();var uk="__lodash_hash_undefined__";function ck(r){return this.__data__.set(r,uk),this}Gm.exports=ck});var Km=H((Rwe,Xm)=>{h();d();p();function hk(r){return this.__data__.has(r)}Xm.exports=hk});var Fc=H((Lwe,Jm)=>{h();d();p();var dk=ua(),pk=Ym(),fk=Km();function ha(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new dk;++e{h();d();p();function gk(r,e){for(var t=-1,i=r==null?0:r.length;++t{h();d();p();function mk(r,e){return r.has(e)}e_.exports=mk});var Mc=H(($we,t_)=>{h();d();p();var _k=Fc(),yk=Zm(),xk=Bc(),bk=1,vk=2;function Sk(r,e,t,i,s,n){var o=t&bk,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var u=n.get(r),c=n.get(e);if(u&&c)return u==e&&c==r;var g=-1,m=!0,y=t&vk?new _k:void 0;for(n.set(r,e),n.set(e,r);++g{h();d();p();var wk=Mt(),Tk=wk.Uint8Array;r_.exports=Tk});var s_=H((Zwe,i_)=>{h();d();p();function Ck(r){var e=-1,t=Array(r.size);return r.forEach(function(i,s){t[++e]=[s,i]}),t}i_.exports=Ck});var da=H((iTe,n_)=>{h();d();p();function Ak(r){var e=-1,t=Array(r.size);return r.forEach(function(i){t[++e]=i}),t}n_.exports=Ak});var c_=H((aTe,u_)=>{h();d();p();var o_=ki(),a_=Nc(),Ek=aa(),Ik=Mc(),Rk=s_(),Pk=da(),kk=1,Ok=2,Lk="[object Boolean]",Dk="[object Date]",Fk="[object Error]",Bk="[object Map]",Mk="[object Number]",Nk="[object RegExp]",zk="[object Set]",jk="[object String]",Uk="[object Symbol]",Hk="[object ArrayBuffer]",Wk="[object DataView]",l_=o_?o_.prototype:void 0,zc=l_?l_.valueOf:void 0;function qk(r,e,t,i,s,n,o){switch(t){case Wk:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case Hk:return!(r.byteLength!=e.byteLength||!n(new a_(r),new a_(e)));case Lk:case Dk:case Mk:return Ek(+r,+e);case Fk:return r.name==e.name&&r.message==e.message;case Nk:case jk:return r==e+"";case Bk:var a=Rk;case zk:var l=i&kk;if(a||(a=Pk),r.size!=e.size&&!l)return!1;var u=o.get(r);if(u)return u==e;i|=Ok,o.set(r,e);var c=Ik(a(r),a(e),i,s,n,o);return o.delete(r),c;case Uk:if(zc)return zc.call(r)==zc.call(e)}return!1}u_.exports=qk});var jc=H((hTe,h_)=>{h();d();p();function $k(r,e){for(var t=-1,i=e.length,s=r.length;++t{h();d();p();var Vk=Array.isArray;d_.exports=Vk});var Uc=H((xTe,p_)=>{h();d();p();var Gk=jc(),Yk=Qt();function Xk(r,e,t){var i=e(r);return Yk(r)?i:Gk(i,t(r))}p_.exports=Xk});var g_=H((wTe,f_)=>{h();d();p();function Kk(r,e){for(var t=-1,i=r==null?0:r.length,s=0,n=[];++t{h();d();p();function Jk(){return[]}m_.exports=Jk});var pa=H((kTe,y_)=>{h();d();p();var Qk=g_(),Zk=Hc(),eO=Object.prototype,tO=eO.propertyIsEnumerable,__=Object.getOwnPropertySymbols,rO=__?function(r){return r==null?[]:(r=Object(r),Qk(__(r),function(e){return tO.call(r,e)}))}:Zk;y_.exports=rO});var b_=H((FTe,x_)=>{h();d();p();function iO(r,e){for(var t=-1,i=Array(r);++t{h();d();p();function sO(r){return r!=null&&typeof r=="object"}v_.exports=sO});var w_=H((WTe,S_)=>{h();d();p();var nO=Oi(),oO=Fr(),aO="[object Arguments]";function lO(r){return oO(r)&&nO(r)==aO}S_.exports=lO});var Wc=H((GTe,A_)=>{h();d();p();var T_=w_(),uO=Fr(),C_=Object.prototype,cO=C_.hasOwnProperty,hO=C_.propertyIsEnumerable,dO=T_(function(){return arguments}())?T_:function(r){return uO(r)&&cO.call(r,"callee")&&!hO.call(r,"callee")};A_.exports=dO});var I_=H((JTe,E_)=>{h();d();p();function pO(){return!1}E_.exports=pO});var fa=H((en,Bi)=>{h();d();p();var fO=Mt(),gO=I_(),k_=typeof en=="object"&&en&&!en.nodeType&&en,R_=k_&&typeof Bi=="object"&&Bi&&!Bi.nodeType&&Bi,mO=R_&&R_.exports===k_,P_=mO?fO.Buffer:void 0,_O=P_?P_.isBuffer:void 0,yO=_O||gO;Bi.exports=yO});var ga=H((sCe,O_)=>{h();d();p();var xO=9007199254740991,bO=/^(?:0|[1-9]\d*)$/;function vO(r,e){var t=typeof r;return e=e??xO,!!e&&(t=="number"||t!="symbol"&&bO.test(r))&&r>-1&&r%1==0&&r{h();d();p();var SO=9007199254740991;function wO(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=SO}L_.exports=wO});var F_=H((dCe,D_)=>{h();d();p();var TO=Oi(),CO=ma(),AO=Fr(),EO="[object Arguments]",IO="[object Array]",RO="[object Boolean]",PO="[object Date]",kO="[object Error]",OO="[object Function]",LO="[object Map]",DO="[object Number]",FO="[object Object]",BO="[object RegExp]",MO="[object Set]",NO="[object String]",zO="[object WeakMap]",jO="[object ArrayBuffer]",UO="[object DataView]",HO="[object Float32Array]",WO="[object Float64Array]",qO="[object Int8Array]",$O="[object Int16Array]",VO="[object Int32Array]",GO="[object Uint8Array]",YO="[object Uint8ClampedArray]",XO="[object Uint16Array]",KO="[object Uint32Array]",Be={};Be[HO]=Be[WO]=Be[qO]=Be[$O]=Be[VO]=Be[GO]=Be[YO]=Be[XO]=Be[KO]=!0;Be[EO]=Be[IO]=Be[jO]=Be[RO]=Be[UO]=Be[PO]=Be[kO]=Be[OO]=Be[LO]=Be[DO]=Be[FO]=Be[BO]=Be[MO]=Be[NO]=Be[zO]=!1;function JO(r){return AO(r)&&CO(r.length)&&!!Be[TO(r)]}D_.exports=JO});var _a=H((mCe,B_)=>{h();d();p();function QO(r){return function(e){return r(e)}}B_.exports=QO});var ya=H((tn,Mi)=>{h();d();p();var ZO=kc(),M_=typeof tn=="object"&&tn&&!tn.nodeType&&tn,rn=M_&&typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,eL=rn&&rn.exports===M_,qc=eL&&ZO.process,tL=function(){try{var r=rn&&rn.require&&rn.require("util").types;return r||qc&&qc.binding&&qc.binding("util")}catch{}}();Mi.exports=tL});var $c=H((wCe,j_)=>{h();d();p();var rL=F_(),iL=_a(),N_=ya(),z_=N_&&N_.isTypedArray,sL=z_?iL(z_):rL;j_.exports=sL});var Vc=H((ECe,U_)=>{h();d();p();var nL=b_(),oL=Wc(),aL=Qt(),lL=fa(),uL=ga(),cL=$c(),hL=Object.prototype,dL=hL.hasOwnProperty;function pL(r,e){var t=aL(r),i=!t&&oL(r),s=!t&&!i&&lL(r),n=!t&&!i&&!s&&cL(r),o=t||i||s||n,a=o?nL(r.length,String):[],l=a.length;for(var u in r)(e||dL.call(r,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||uL(u,l)))&&a.push(u);return a}U_.exports=pL});var xa=H((kCe,H_)=>{h();d();p();var fL=Object.prototype;function gL(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||fL;return r===t}H_.exports=gL});var Gc=H((FCe,W_)=>{h();d();p();function mL(r,e){return function(t){return r(e(t))}}W_.exports=mL});var $_=H((zCe,q_)=>{h();d();p();var _L=Gc(),yL=_L(Object.keys,Object);q_.exports=yL});var G_=H((WCe,V_)=>{h();d();p();var xL=xa(),bL=$_(),vL=Object.prototype,SL=vL.hasOwnProperty;function wL(r){if(!xL(r))return bL(r);var e=[];for(var t in Object(r))SL.call(r,t)&&t!="constructor"&&e.push(t);return e}V_.exports=wL});var Yc=H((GCe,Y_)=>{h();d();p();var TL=Oc(),CL=ma();function AL(r){return r!=null&&CL(r.length)&&!TL(r)}Y_.exports=AL});var sn=H((JCe,X_)=>{h();d();p();var EL=Vc(),IL=G_(),RL=Yc();function PL(r){return RL(r)?EL(r):IL(r)}X_.exports=PL});var Xc=H((t1e,K_)=>{h();d();p();var kL=Uc(),OL=pa(),LL=sn();function DL(r){return kL(r,LL,OL)}K_.exports=DL});var Z_=H((n1e,Q_)=>{h();d();p();var J_=Xc(),FL=1,BL=Object.prototype,ML=BL.hasOwnProperty;function NL(r,e,t,i,s,n){var o=t&FL,a=J_(r),l=a.length,u=J_(e),c=u.length;if(l!=c&&!o)return!1;for(var g=l;g--;){var m=a[g];if(!(o?m in e:ML.call(e,m)))return!1}var y=n.get(r),b=n.get(e);if(y&&b)return y==e&&b==r;var C=!0;n.set(r,e),n.set(e,r);for(var A=o;++g{h();d();p();var zL=Dr(),jL=Mt(),UL=zL(jL,"DataView");ey.exports=UL});var iy=H((p1e,ry)=>{h();d();p();var HL=Dr(),WL=Mt(),qL=HL(WL,"Promise");ry.exports=qL});var Kc=H((_1e,sy)=>{h();d();p();var $L=Dr(),VL=Mt(),GL=$L(VL,"Set");sy.exports=GL});var oy=H((v1e,ny)=>{h();d();p();var YL=Dr(),XL=Mt(),KL=YL(XL,"WeakMap");ny.exports=KL});var nn=H((C1e,py)=>{h();d();p();var Jc=ty(),Qc=la(),Zc=iy(),eh=Kc(),th=oy(),dy=Oi(),Ni=Dc(),ay="[object Map]",JL="[object Object]",ly="[object Promise]",uy="[object Set]",cy="[object WeakMap]",hy="[object DataView]",QL=Ni(Jc),ZL=Ni(Qc),eD=Ni(Zc),tD=Ni(eh),rD=Ni(th),Qr=dy;(Jc&&Qr(new Jc(new ArrayBuffer(1)))!=hy||Qc&&Qr(new Qc)!=ay||Zc&&Qr(Zc.resolve())!=ly||eh&&Qr(new eh)!=uy||th&&Qr(new th)!=cy)&&(Qr=function(r){var e=dy(r),t=e==JL?r.constructor:void 0,i=t?Ni(t):"";if(i)switch(i){case QL:return hy;case ZL:return ay;case eD:return ly;case tD:return uy;case rD:return cy}return e});py.exports=Qr});var vy=H((R1e,by)=>{h();d();p();var rh=ca(),iD=Mc(),sD=c_(),nD=Z_(),fy=nn(),gy=Qt(),my=fa(),oD=$c(),aD=1,_y="[object Arguments]",yy="[object Array]",ba="[object Object]",lD=Object.prototype,xy=lD.hasOwnProperty;function uD(r,e,t,i,s,n){var o=gy(r),a=gy(e),l=o?yy:fy(r),u=a?yy:fy(e);l=l==_y?ba:l,u=u==_y?ba:u;var c=l==ba,g=u==ba,m=l==u;if(m&&my(r)){if(!my(e))return!1;o=!0,c=!1}if(m&&!c)return n||(n=new rh),o||oD(r)?iD(r,e,t,i,s,n):sD(r,e,l,t,i,s,n);if(!(t&aD)){var y=c&&xy.call(r,"__wrapped__"),b=g&&xy.call(e,"__wrapped__");if(y||b){var C=y?r.value():r,A=b?e.value():e;return n||(n=new rh),s(C,A,t,i,n)}}return m?(n||(n=new rh),nD(r,e,t,i,s,n)):!1}by.exports=uD});var ih=H((L1e,Ty)=>{h();d();p();var cD=vy(),Sy=Fr();function wy(r,e,t,i,s){return r===e?!0:r==null||e==null||!Sy(r)&&!Sy(e)?r!==r&&e!==e:cD(r,e,t,i,wy,s)}Ty.exports=wy});var Ay=H((M1e,Cy)=>{h();d();p();var hD=ca(),dD=ih(),pD=1,fD=2;function gD(r,e,t,i){var s=t.length,n=s,o=!i;if(r==null)return!n;for(r=Object(r);s--;){var a=t[s];if(o&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++s{h();d();p();var mD=Jt();function _D(r){return r===r&&!mD(r)}Ey.exports=_D});var Ry=H(($1e,Iy)=>{h();d();p();var yD=sh(),xD=sn();function bD(r){for(var e=xD(r),t=e.length;t--;){var i=e[t],s=r[i];e[t]=[i,s,yD(s)]}return e}Iy.exports=bD});var nh=H((X1e,Py)=>{h();d();p();function vD(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}Py.exports=vD});var Oy=H((Z1e,ky)=>{h();d();p();var SD=Ay(),wD=Ry(),TD=nh();function CD(r){var e=wD(r);return e.length==1&&e[0][2]?TD(e[0][0],e[0][1]):function(t){return t===r||SD(t,r,e)}}ky.exports=CD});var on=H((i2e,Ly)=>{h();d();p();var AD=Oi(),ED=Fr(),ID="[object Symbol]";function RD(r){return typeof r=="symbol"||ED(r)&&AD(r)==ID}Ly.exports=RD});var va=H((a2e,Dy)=>{h();d();p();var PD=Qt(),kD=on(),OD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,LD=/^\w*$/;function DD(r,e){if(PD(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||kD(r)?!0:LD.test(r)||!OD.test(r)||e!=null&&r in Object(e)}Dy.exports=DD});var My=H((h2e,By)=>{h();d();p();var Fy=ua(),FD="Expected a function";function oh(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(FD);var t=function(){var i=arguments,s=e?e.apply(this,i):i[0],n=t.cache;if(n.has(s))return n.get(s);var o=r.apply(this,i);return t.cache=n.set(s,o)||n,o};return t.cache=new(oh.Cache||Fy),t}oh.Cache=Fy;By.exports=oh});var zy=H((g2e,Ny)=>{h();d();p();var BD=My(),MD=500;function ND(r){var e=BD(r,function(i){return t.size===MD&&t.clear(),i}),t=e.cache;return e}Ny.exports=ND});var Uy=H((x2e,jy)=>{h();d();p();var zD=zy(),jD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UD=/\\(\\)?/g,HD=zD(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(jD,function(t,i,s,n){e.push(s?n.replace(UD,"$1"):i||t)}),e});jy.exports=HD});var Gy=H((w2e,Vy)=>{h();d();p();var Hy=ki(),WD=Pc(),qD=Qt(),$D=on(),VD=1/0,Wy=Hy?Hy.prototype:void 0,qy=Wy?Wy.toString:void 0;function $y(r){if(typeof r=="string")return r;if(qD(r))return WD(r,$y)+"";if($D(r))return qy?qy.call(r):"";var e=r+"";return e=="0"&&1/r==-VD?"-0":e}Vy.exports=$y});var Xy=H((E2e,Yy)=>{h();d();p();var GD=Gy();function YD(r){return r==null?"":GD(r)}Yy.exports=YD});var an=H((k2e,Ky)=>{h();d();p();var XD=Qt(),KD=va(),JD=Uy(),QD=Xy();function ZD(r,e){return XD(r)?r:KD(r,e)?[r]:JD(QD(r))}Ky.exports=ZD});var zi=H((F2e,Jy)=>{h();d();p();var eF=on(),tF=1/0;function rF(r){if(typeof r=="string"||eF(r))return r;var e=r+"";return e=="0"&&1/r==-tF?"-0":e}Jy.exports=rF});var Sa=H((z2e,Qy)=>{h();d();p();var iF=an(),sF=zi();function nF(r,e){e=iF(e,r);for(var t=0,i=e.length;r!=null&&t{h();d();p();var oF=Sa();function aF(r,e,t){var i=r==null?void 0:oF(r,e);return i===void 0?t:i}Zy.exports=aF});var rx=H((G2e,tx)=>{h();d();p();function lF(r,e){return r!=null&&e in Object(r)}tx.exports=lF});var sx=H((J2e,ix)=>{h();d();p();var uF=an(),cF=Wc(),hF=Qt(),dF=ga(),pF=ma(),fF=zi();function gF(r,e,t){e=uF(e,r);for(var i=-1,s=e.length,n=!1;++i{h();d();p();var mF=rx(),_F=sx();function yF(r,e){return r!=null&&_F(r,e,mF)}nx.exports=yF});var lx=H((nAe,ax)=>{h();d();p();var xF=ih(),bF=ex(),vF=ox(),SF=va(),wF=sh(),TF=nh(),CF=zi(),AF=1,EF=2;function IF(r,e){return SF(r)&&wF(e)?TF(CF(r),e):function(t){var i=bF(t,r);return i===void 0&&i===e?vF(t,r):xF(e,i,AF|EF)}}ax.exports=IF});var cx=H((uAe,ux)=>{h();d();p();function RF(r){return r}ux.exports=RF});var dx=H((pAe,hx)=>{h();d();p();function PF(r){return function(e){return e?.[r]}}hx.exports=PF});var fx=H((_Ae,px)=>{h();d();p();var kF=Sa();function OF(r){return function(e){return kF(e,r)}}px.exports=OF});var mx=H((vAe,gx)=>{h();d();p();var LF=dx(),DF=fx(),FF=va(),BF=zi();function MF(r){return FF(r)?LF(BF(r)):DF(r)}gx.exports=MF});var yx=H((CAe,_x)=>{h();d();p();var NF=Oy(),zF=lx(),jF=cx(),UF=Qt(),HF=mx();function WF(r){return typeof r=="function"?r:r==null?jF:typeof r=="object"?UF(r)?zF(r[0],r[1]):NF(r):HF(r)}_x.exports=WF});var bx=H((RAe,xx)=>{h();d();p();var qF=Dr(),$F=function(){try{var r=qF(Object,"defineProperty");return r({},"",{}),r}catch{}}();xx.exports=$F});var ah=H((LAe,Sx)=>{h();d();p();var vx=bx();function VF(r,e,t){e=="__proto__"&&vx?vx(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Sx.exports=VF});var wa=H((MAe,wx)=>{h();d();p();var GF=ah(),YF=aa(),XF=Object.prototype,KF=XF.hasOwnProperty;function JF(r,e,t){var i=r[e];(!(KF.call(r,e)&&YF(i,t))||t===void 0&&!(e in r))&&GF(r,e,t)}wx.exports=JF});var Ax=H((UAe,Cx)=>{h();d();p();var QF=wa(),ZF=an(),eB=ga(),Tx=Jt(),tB=zi();function rB(r,e,t,i){if(!Tx(r))return r;e=ZF(e,r);for(var s=-1,n=e.length,o=n-1,a=r;a!=null&&++s{h();d();p();var iB=Sa(),sB=Ax(),nB=an();function oB(r,e,t){for(var i=-1,s=e.length,n={};++i{h();d();p();var aB=Gc(),lB=aB(Object.getPrototypeOf,Object);Rx.exports=lB});var uh=H((ZAe,Px)=>{h();d();p();var uB=jc(),cB=lh(),hB=pa(),dB=Hc(),pB=Object.getOwnPropertySymbols,fB=pB?function(r){for(var e=[];r;)uB(e,hB(r)),r=cB(r);return e}:dB;Px.exports=fB});var Ox=H((iEe,kx)=>{h();d();p();function gB(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}kx.exports=gB});var Dx=H((aEe,Lx)=>{h();d();p();var mB=Jt(),_B=xa(),yB=Ox(),xB=Object.prototype,bB=xB.hasOwnProperty;function vB(r){if(!mB(r))return yB(r);var e=_B(r),t=[];for(var i in r)i=="constructor"&&(e||!bB.call(r,i))||t.push(i);return t}Lx.exports=vB});var Ta=H((hEe,Fx)=>{h();d();p();var SB=Vc(),wB=Dx(),TB=Yc();function CB(r){return TB(r)?SB(r,!0):wB(r)}Fx.exports=CB});var ch=H((gEe,Bx)=>{h();d();p();var AB=Uc(),EB=uh(),IB=Ta();function RB(r){return AB(r,IB,EB)}Bx.exports=RB});var Nx=H((xEe,Mx)=>{h();d();p();var PB=Pc(),kB=yx(),OB=Ix(),LB=ch();function DB(r,e){if(r==null)return{};var t=PB(LB(r),function(i){return[i]});return e=kB(e),OB(r,t,function(i,s){return e(i,s[0])})}Mx.exports=DB});var Gx=H((BEe,Vx)=>{h();d();p();function KB(r,e){for(var t=-1,i=r==null?0:r.length;++t{h();d();p();var JB=wa(),QB=ah();function ZB(r,e,t,i){var s=!t;t||(t={});for(var n=-1,o=e.length;++n{h();d();p();var eM=ln(),tM=sn();function rM(r,e){return r&&eM(e,tM(e),r)}Xx.exports=rM});var Qx=H((YEe,Jx)=>{h();d();p();var iM=ln(),sM=Ta();function nM(r,e){return r&&iM(e,sM(e),r)}Jx.exports=nM});var ib=H((un,ji)=>{h();d();p();var oM=Mt(),rb=typeof un=="object"&&un&&!un.nodeType&&un,Zx=rb&&typeof ji=="object"&&ji&&!ji.nodeType&&ji,aM=Zx&&Zx.exports===rb,eb=aM?oM.Buffer:void 0,tb=eb?eb.allocUnsafe:void 0;function lM(r,e){if(e)return r.slice();var t=r.length,i=tb?tb(t):new r.constructor(t);return r.copy(i),i}ji.exports=lM});var nb=H((tIe,sb)=>{h();d();p();function uM(r,e){var t=-1,i=r.length;for(e||(e=Array(i));++t{h();d();p();var cM=ln(),hM=pa();function dM(r,e){return cM(r,hM(r),e)}ob.exports=dM});var ub=H((uIe,lb)=>{h();d();p();var pM=ln(),fM=uh();function gM(r,e){return pM(r,fM(r),e)}lb.exports=gM});var hb=H((pIe,cb)=>{h();d();p();var mM=Object.prototype,_M=mM.hasOwnProperty;function yM(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&_M.call(r,"index")&&(t.index=r.index,t.input=r.input),t}cb.exports=yM});var Aa=H((_Ie,pb)=>{h();d();p();var db=Nc();function xM(r){var e=new r.constructor(r.byteLength);return new db(e).set(new db(r)),e}pb.exports=xM});var gb=H((vIe,fb)=>{h();d();p();var bM=Aa();function vM(r,e){var t=e?bM(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}fb.exports=vM});var _b=H((CIe,mb)=>{h();d();p();var SM=/\w*$/;function wM(r){var e=new r.constructor(r.source,SM.exec(r));return e.lastIndex=r.lastIndex,e}mb.exports=wM});var Sb=H((RIe,vb)=>{h();d();p();var yb=ki(),xb=yb?yb.prototype:void 0,bb=xb?xb.valueOf:void 0;function TM(r){return bb?Object(bb.call(r)):{}}vb.exports=TM});var Tb=H((LIe,wb)=>{h();d();p();var CM=Aa();function AM(r,e){var t=e?CM(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}wb.exports=AM});var Ab=H((MIe,Cb)=>{h();d();p();var EM=Aa(),IM=gb(),RM=_b(),PM=Sb(),kM=Tb(),OM="[object Boolean]",LM="[object Date]",DM="[object Map]",FM="[object Number]",BM="[object RegExp]",MM="[object Set]",NM="[object String]",zM="[object Symbol]",jM="[object ArrayBuffer]",UM="[object DataView]",HM="[object Float32Array]",WM="[object Float64Array]",qM="[object Int8Array]",$M="[object Int16Array]",VM="[object Int32Array]",GM="[object Uint8Array]",YM="[object Uint8ClampedArray]",XM="[object Uint16Array]",KM="[object Uint32Array]";function JM(r,e,t){var i=r.constructor;switch(e){case jM:return EM(r);case OM:case LM:return new i(+r);case UM:return IM(r,t);case HM:case WM:case qM:case $M:case VM:case GM:case YM:case XM:case KM:return kM(r,t);case DM:return new i;case FM:case NM:return new i(r);case BM:return RM(r);case MM:return new i;case zM:return PM(r)}}Cb.exports=JM});var Rb=H((UIe,Ib)=>{h();d();p();var QM=Jt(),Eb=Object.create,ZM=function(){function r(){}return function(e){if(!QM(e))return{};if(Eb)return Eb(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Ib.exports=ZM});var kb=H(($Ie,Pb)=>{h();d();p();var e5=Rb(),t5=lh(),r5=xa();function i5(r){return typeof r.constructor=="function"&&!r5(r)?e5(t5(r)):{}}Pb.exports=i5});var Lb=H((XIe,Ob)=>{h();d();p();var s5=nn(),n5=Fr(),o5="[object Map]";function a5(r){return n5(r)&&s5(r)==o5}Ob.exports=a5});var Mb=H((ZIe,Bb)=>{h();d();p();var l5=Lb(),u5=_a(),Db=ya(),Fb=Db&&Db.isMap,c5=Fb?u5(Fb):l5;Bb.exports=c5});var zb=H((iRe,Nb)=>{h();d();p();var h5=nn(),d5=Fr(),p5="[object Set]";function f5(r){return d5(r)&&h5(r)==p5}Nb.exports=f5});var Wb=H((aRe,Hb)=>{h();d();p();var g5=zb(),m5=_a(),jb=ya(),Ub=jb&&jb.isSet,_5=Ub?m5(Ub):g5;Hb.exports=_5});var Yb=H((hRe,Gb)=>{h();d();p();var y5=ca(),x5=Gx(),b5=wa(),v5=Kx(),S5=Qx(),w5=ib(),T5=nb(),C5=ab(),A5=ub(),E5=Xc(),I5=ch(),R5=nn(),P5=hb(),k5=Ab(),O5=kb(),L5=Qt(),D5=fa(),F5=Mb(),B5=Jt(),M5=Wb(),N5=sn(),z5=Ta(),j5=1,U5=2,H5=4,qb="[object Arguments]",W5="[object Array]",q5="[object Boolean]",$5="[object Date]",V5="[object Error]",$b="[object Function]",G5="[object GeneratorFunction]",Y5="[object Map]",X5="[object Number]",Vb="[object Object]",K5="[object RegExp]",J5="[object Set]",Q5="[object String]",Z5="[object Symbol]",eN="[object WeakMap]",tN="[object ArrayBuffer]",rN="[object DataView]",iN="[object Float32Array]",sN="[object Float64Array]",nN="[object Int8Array]",oN="[object Int16Array]",aN="[object Int32Array]",lN="[object Uint8Array]",uN="[object Uint8ClampedArray]",cN="[object Uint16Array]",hN="[object Uint32Array]",Le={};Le[qb]=Le[W5]=Le[tN]=Le[rN]=Le[q5]=Le[$5]=Le[iN]=Le[sN]=Le[nN]=Le[oN]=Le[aN]=Le[Y5]=Le[X5]=Le[Vb]=Le[K5]=Le[J5]=Le[Q5]=Le[Z5]=Le[lN]=Le[uN]=Le[cN]=Le[hN]=!0;Le[V5]=Le[$b]=Le[eN]=!1;function Ea(r,e,t,i,s,n){var o,a=e&j5,l=e&U5,u=e&H5;if(t&&(o=s?t(r,i,s,n):t(r)),o!==void 0)return o;if(!B5(r))return r;var c=L5(r);if(c){if(o=P5(r),!a)return T5(r,o)}else{var g=R5(r),m=g==$b||g==G5;if(D5(r))return w5(r,a);if(g==Vb||g==qb||m&&!s){if(o=l||m?{}:O5(r),!a)return l?A5(r,S5(o,r)):C5(r,v5(o,r))}else{if(!Le[g])return s?r:{};o=k5(r,g,a)}}n||(n=new y5);var y=n.get(r);if(y)return y;n.set(r,o),M5(r)?r.forEach(function(A){o.add(Ea(A,e,t,A,r,n))}):F5(r)&&r.forEach(function(A,T){o.set(T,Ea(A,e,t,T,r,n))});var b=u?l?I5:E5:l?z5:N5,C=c?void 0:b(r);return x5(C||r,function(A,T){C&&(T=A,A=r[T]),b5(o,T,Ea(A,e,t,T,r,n))}),o}Gb.exports=Ea});var Kb=H((gRe,Xb)=>{h();d();p();var dN=Yb(),pN=1,fN=4;function gN(r){return dN(r,pN|fN)}Xb.exports=gN});var Qb=H((xRe,Jb)=>{h();d();p();function mN(r,e,t,i){for(var s=r.length,n=t+(i?1:-1);i?n--:++n{h();d();p();function _N(r){return r!==r}Zb.exports=_N});var r0=H((ERe,t0)=>{h();d();p();function yN(r,e,t){for(var i=t-1,s=r.length;++i{h();d();p();var xN=Qb(),bN=e0(),vN=r0();function SN(r,e,t){return e===e?vN(r,e,t):xN(r,bN,t)}i0.exports=SN});var o0=H((FRe,n0)=>{h();d();p();var wN=s0();function TN(r,e){var t=r==null?0:r.length;return!!t&&wN(r,e,0)>-1}n0.exports=TN});var l0=H((zRe,a0)=>{h();d();p();function CN(r,e,t){for(var i=-1,s=r==null?0:r.length;++i{h();d();p();function AN(){}u0.exports=AN});var d0=H((GRe,h0)=>{h();d();p();var ph=Kc(),EN=c0(),IN=da(),RN=1/0,PN=ph&&1/IN(new ph([,-0]))[1]==RN?function(r){return new ph(r)}:EN;h0.exports=PN});var f0=H((JRe,p0)=>{h();d();p();var kN=Fc(),ON=o0(),LN=l0(),DN=Bc(),FN=d0(),BN=da(),MN=200;function NN(r,e,t){var i=-1,s=ON,n=r.length,o=!0,a=[],l=a;if(t)o=!1,s=LN;else if(n>=MN){var u=e?null:FN(r);if(u)return BN(u);o=!1,s=DN,l=new kN}else l=e?[]:a;e:for(;++i{h();d();p();var zN=f0();function jN(r){return r&&r.length?zN(r):[]}g0.exports=jN});var gh=H((_0,fh)=>{h();d();p();(function(r){if(typeof _0=="object"&&typeof fh<"u")fh.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window<"u"||typeof window<"u"?e=window:typeof self<"u"?e=self:e=this,e.memoizerific=r()}})(function(){var r,e,t;return function i(s,n,o){function a(c,g){if(!n[c]){if(!s[c]){var m=typeof Ft=="function"&&Ft;if(!g&&m)return m(c,!0);if(l)return l(c,!0);var y=new Error("Cannot find module '"+c+"'");throw y.code="MODULE_NOT_FOUND",y}var b=n[c]={exports:{}};s[c][0].call(b.exports,function(C){var A=s[c][1][C];return a(A||C)},b,b.exports,i,s,n,o)}return n[c].exports}for(var l=typeof Ft=="function"&&Ft,u=0;u=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(a,l){var u;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(u=this.indexOf(a),u>=0?(this.lastItem=this.list[u],this.list[u].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(a,l){var u;for(u=0;u0&&(P[R]={cacheItem:C,arg:arguments[R]},E?a(m,P):m.push(P),m.length>c&&l(m.shift())),b.wasMemoized=E,b.numArgs=R+1,T};return b.limit=c,b.wasMemoized=!1,b.cache=g,b.lru=m,b}};function a(c,g){var m=c.length,y=g.length,b,C,A;for(C=0;C=0&&(m=c[b],y=m.cacheItem.get(m.arg),!y||!y.size);b--)m.cacheItem.delete(m.arg)}function u(c,g){return c===g||c!==c&&g!==g}},{"map-or-similar":1}]},{},[3])(3)})});var iw=H((Xa,rw)=>{h();d();p();(function(r,e){typeof Xa=="object"&&typeof rw<"u"?e(Xa):typeof define=="function"&&define.amd?define(["exports"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.jtpp={}))})(Xa,function(r){"use strict";function e(_){return _.text!==void 0&&_.text!==""?`'${_.type}' with value '${_.text}'`:`'${_.type}'`}class t extends Error{constructor(I){super(`No parslet found for token: ${e(I)}`),this.token=I,Object.setPrototypeOf(this,t.prototype)}getToken(){return this.token}}class i extends Error{constructor(I){super(`The parsing ended early. The next token was: ${e(I)}`),this.token=I,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class s extends Error{constructor(I,L){let V=`Unexpected type: '${I.type}'.`;L!==void 0&&(V+=` Message: ${L}`),super(V),Object.setPrototypeOf(this,s.prototype)}}function n(_){return I=>I.startsWith(_)?{type:_,text:_}:null}function o(_){let I=0,L,V=_[0],Z=!1;if(V!=="'"&&V!=='"')return null;for(;I<_.length;){if(I++,L=_[I],!Z&&L===V){I++;break}Z=!Z&&L==="\\"}if(L!==V)throw new Error("Unterminated String");return _.slice(0,I)}let a=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),l=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function u(_){let I=_[0];if(!a.test(I))return null;let L=1;do{if(I=_[L],!l.test(I))break;L++}while(L<_.length);return _.slice(0,L)}let c=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function g(_){var I,L;return(L=(I=c.exec(_))===null||I===void 0?void 0:I[0])!==null&&L!==void 0?L:null}let m=_=>{let I=u(_);return I==null?null:{type:"Identifier",text:I}};function y(_){return I=>{if(!I.startsWith(_))return null;let L=I[_.length];return L!==void 0&&l.test(L)?null:{type:_,text:_}}}let b=_=>{let I=o(_);return I==null?null:{type:"StringValue",text:I}},C=_=>_.length>0?null:{type:"EOF",text:""},A=_=>{let I=g(_);return I===null?null:{type:"Number",text:I}},T=[C,n("=>"),n("("),n(")"),n("{"),n("}"),n("["),n("]"),n("|"),n("&"),n("<"),n(">"),n(","),n(";"),n("*"),n("?"),n("!"),n("="),n(":"),n("..."),n("."),n("#"),n("~"),n("/"),n("@"),y("undefined"),y("null"),y("function"),y("this"),y("new"),y("module"),y("event"),y("external"),y("typeof"),y("keyof"),y("readonly"),y("import"),y("is"),y("in"),y("asserts"),A,m,b],R=/^\s*\n\s*/;class P{static create(I){let L=this.read(I);I=L.text;let V=this.read(I);return I=V.text,new P(I,void 0,L.token,V.token)}constructor(I,L,V,Z){this.text="",this.text=I,this.previous=L,this.current=V,this.next=Z}static read(I,L=!1){L=L||R.test(I),I=I.trim();for(let V of T){let Z=V(I);if(Z!==null){let oe=Object.assign(Object.assign({},Z),{startOfLine:L});return I=I.slice(oe.text.length),{text:I,token:oe}}}throw new Error("Unexpected Token "+I)}advance(){let I=P.read(this.text);return new P(I.text,this.current,this.next,I.token)}}function E(_){if(_===void 0)throw new Error("Unexpected undefined");if(_.type==="JsdocTypeKeyValue"||_.type==="JsdocTypeParameterList"||_.type==="JsdocTypeProperty"||_.type==="JsdocTypeReadonlyProperty"||_.type==="JsdocTypeObjectField"||_.type==="JsdocTypeJsdocObjectField"||_.type==="JsdocTypeIndexSignature"||_.type==="JsdocTypeMappedType")throw new s(_);return _}function k(_){return _.type==="JsdocTypeKeyValue"?B(_):E(_)}function O(_){return _.type==="JsdocTypeName"?_:B(_)}function B(_){if(_.type!=="JsdocTypeKeyValue")throw new s(_);return _}function F(_){var I;if(_.type==="JsdocTypeVariadic"){if(((I=_.element)===null||I===void 0?void 0:I.type)==="JsdocTypeName")return _;throw new s(_)}if(_.type!=="JsdocTypeNumber"&&_.type!=="JsdocTypeName")throw new s(_);return _}function U(_){return _.type==="JsdocTypeIndexSignature"||_.type==="JsdocTypeMappedType"}var q;(function(_){_[_.ALL=0]="ALL",_[_.PARAMETER_LIST=1]="PARAMETER_LIST",_[_.OBJECT=2]="OBJECT",_[_.KEY_VALUE=3]="KEY_VALUE",_[_.INDEX_BRACKETS=4]="INDEX_BRACKETS",_[_.UNION=5]="UNION",_[_.INTERSECTION=6]="INTERSECTION",_[_.PREFIX=7]="PREFIX",_[_.INFIX=8]="INFIX",_[_.TUPLE=9]="TUPLE",_[_.SYMBOL=10]="SYMBOL",_[_.OPTIONAL=11]="OPTIONAL",_[_.NULLABLE=12]="NULLABLE",_[_.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",_[_.FUNCTION=14]="FUNCTION",_[_.ARROW=15]="ARROW",_[_.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",_[_.GENERIC=17]="GENERIC",_[_.NAME_PATH=18]="NAME_PATH",_[_.PARENTHESIS=19]="PARENTHESIS",_[_.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(q||(q={}));class ee{constructor(I,L,V){this.grammar=I,typeof L=="string"?this._lexer=P.create(L):this._lexer=L,this.baseParser=V}get lexer(){return this._lexer}parse(){let I=this.parseType(q.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return I}parseType(I){return E(this.parseIntermediateType(I))}parseIntermediateType(I){let L=this.tryParslets(null,I);if(L===null)throw new t(this.lexer.current);return this.parseInfixIntermediateType(L,I)}parseInfixIntermediateType(I,L){let V=this.tryParslets(I,L);for(;V!==null;)I=V,V=this.tryParslets(I,L);return I}tryParslets(I,L){for(let V of this.grammar){let Z=V(this,L,I);if(Z!==null)return Z}return null}consume(I){return Array.isArray(I)||(I=[I]),I.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(I){this._lexer=I.lexer}}function te(_){return _==="EOF"||_==="|"||_===","||_===")"||_===">"}let $=(_,I,L)=>{let V=_.lexer.current.type,Z=_.lexer.next.type;return L==null&&V==="?"&&!te(Z)||L!=null&&V==="?"?(_.consume("?"),L==null?{type:"JsdocTypeNullable",element:_.parseType(q.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(L),meta:{position:"suffix"}}):null};function D(_){let I=(L,V,Z)=>{let oe=L.lexer.current.type,ue=L.lexer.next.type;if(Z===null){if("parsePrefix"in _&&_.accept(oe,ue))return _.parsePrefix(L)}else if("parseInfix"in _&&_.precedence>V&&_.accept(oe,ue))return _.parseInfix(L,Z);return null};return Object.defineProperty(I,"name",{value:_.name}),I}let N=D({name:"optionalParslet",accept:_=>_==="=",precedence:q.OPTIONAL,parsePrefix:_=>(_.consume("="),{type:"JsdocTypeOptional",element:_.parseType(q.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(_,I)=>(_.consume("="),{type:"JsdocTypeOptional",element:E(I),meta:{position:"suffix"}})}),G=D({name:"numberParslet",accept:_=>_==="Number",parsePrefix:_=>{let I=parseFloat(_.lexer.current.text);return _.consume("Number"),{type:"JsdocTypeNumber",value:I}}}),Q=D({name:"parenthesisParslet",accept:_=>_==="(",parsePrefix:_=>{if(_.consume("("),_.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let I=_.parseIntermediateType(q.ALL);if(!_.consume(")"))throw new Error("Unterminated parenthesis");return I.type==="JsdocTypeParameterList"?I:I.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[I]}:{type:"JsdocTypeParenthesis",element:E(I)}}}),ne=D({name:"specialTypesParslet",accept:(_,I)=>_==="?"&&te(I)||_==="null"||_==="undefined"||_==="*",parsePrefix:_=>{if(_.consume("null"))return{type:"JsdocTypeNull"};if(_.consume("undefined"))return{type:"JsdocTypeUndefined"};if(_.consume("*"))return{type:"JsdocTypeAny"};if(_.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+_.lexer.current.text)}}),ie=D({name:"notNullableParslet",accept:_=>_==="!",precedence:q.NULLABLE,parsePrefix:_=>(_.consume("!"),{type:"JsdocTypeNotNullable",element:_.parseType(q.NULLABLE),meta:{position:"prefix"}}),parseInfix:(_,I)=>(_.consume("!"),{type:"JsdocTypeNotNullable",element:E(I),meta:{position:"suffix"}})});function re({allowTrailingComma:_}){return D({name:"parameterListParslet",accept:I=>I===",",precedence:q.PARAMETER_LIST,parseInfix:(I,L)=>{let V=[k(L)];I.consume(",");do try{let Z=I.parseIntermediateType(q.PARAMETER_LIST);V.push(k(Z))}catch(Z){if(_&&Z instanceof t)break;throw Z}while(I.consume(","));if(V.length>0&&V.slice(0,-1).some(Z=>Z.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:V}}})}let ae=D({name:"genericParslet",accept:(_,I)=>_==="<"||_==="."&&I==="<",precedence:q.GENERIC,parseInfix:(_,I)=>{let L=_.consume(".");_.consume("<");let V=[];do V.push(_.parseType(q.PARAMETER_LIST));while(_.consume(","));if(!_.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:E(I),elements:V,meta:{brackets:"angle",dot:L}}}}),ce=D({name:"unionParslet",accept:_=>_==="|",precedence:q.UNION,parseInfix:(_,I)=>{_.consume("|");let L=[];do L.push(_.parseType(q.UNION));while(_.consume("|"));return{type:"JsdocTypeUnion",elements:[E(I),...L]}}}),Se=[$,N,G,Q,ne,ie,re({allowTrailingComma:!0}),ae,ce,N];function we({allowSquareBracketsOnAnyType:_,allowJsdocNamePaths:I,pathGrammar:L}){return function(Z,oe,ue){if(ue==null||oe>=q.NAME_PATH)return null;let Te=Z.lexer.current.type,et=Z.lexer.next.type;if(!(Te==="."&&et!=="<"||Te==="["&&(_||ue.type==="JsdocTypeName")||I&&(Te==="~"||Te==="#")))return null;let Dt,Wn=!1;Z.consume(".")?Dt="property":Z.consume("[")?(Dt="property-brackets",Wn=!0):Z.consume("~")?Dt="inner":(Z.consume("#"),Dt="instance");let lp=L!==null?new ee(L,Z.lexer,Z):Z,tr=lp.parseIntermediateType(q.NAME_PATH);Z.acceptLexerState(lp);let cs;switch(tr.type){case"JsdocTypeName":cs={type:"JsdocTypeProperty",value:tr.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":cs={type:"JsdocTypeProperty",value:tr.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":cs={type:"JsdocTypeProperty",value:tr.value,meta:{quote:tr.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(tr.specialType==="event")cs=tr;else throw new s(tr,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new s(tr,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Wn&&!Z.consume("]")){let up=Z.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${up.type}' with text '${up.text}'`)}return{type:"JsdocTypeNamePath",left:E(ue),right:cs,pathType:Dt}}}function xe({allowedAdditionalTokens:_}){return D({name:"nameParslet",accept:I=>I==="Identifier"||I==="this"||I==="new"||_.includes(I),parsePrefix:I=>{let{type:L,text:V}=I.lexer.current;return I.consume(L),{type:"JsdocTypeName",value:V}}})}let Ie=D({name:"stringValueParslet",accept:_=>_==="StringValue",parsePrefix:_=>{let I=_.lexer.current.text;return _.consume("StringValue"),{type:"JsdocTypeStringValue",value:I.slice(1,-1),meta:{quote:I[0]==="'"?"single":"double"}}}});function De({pathGrammar:_,allowedTypes:I}){return D({name:"specialNamePathParslet",accept:L=>I.includes(L),parsePrefix:L=>{let V=L.lexer.current.type;if(L.consume(V),!L.consume(":"))return{type:"JsdocTypeName",value:V};let Z,oe=L.lexer.current;if(L.consume("StringValue"))Z={type:"JsdocTypeSpecialNamePath",value:oe.text.slice(1,-1),specialType:V,meta:{quote:oe.text[0]==="'"?"single":"double"}};else{let et="",Ve=["Identifier","@","/"];for(;Ve.some(Dt=>L.consume(Dt));)et+=oe.text,oe=L.lexer.current;Z={type:"JsdocTypeSpecialNamePath",value:et,specialType:V,meta:{quote:void 0}}}let ue=new ee(_,L.lexer,L),Te=ue.parseInfixIntermediateType(Z,q.ALL);return L.acceptLexerState(ue),E(Te)}})}let nt=[xe({allowedAdditionalTokens:["external","module"]}),Ie,G,we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],$e=[...nt,De({allowedTypes:["event"],pathGrammar:nt})];function Re(_){let I;if(_.type==="JsdocTypeParameterList")I=_.elements;else if(_.type==="JsdocTypeParenthesis")I=[_.element];else throw new s(_);return I.map(L=>k(L))}function ot(_){let I=Re(_);if(I.some(L=>L.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return I}function je({allowNamedParameters:_,allowNoReturnType:I,allowWithoutParenthesis:L,allowNewAsFunctionKeyword:V}){return D({name:"functionParslet",accept:(Z,oe)=>Z==="function"||V&&Z==="new"&&oe==="(",parsePrefix:Z=>{let oe=Z.consume("new");Z.consume("function");let ue=Z.lexer.current.type==="(";if(!ue){if(!L)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Te={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:oe,parenthesis:ue},et=Z.parseIntermediateType(q.FUNCTION);if(_===void 0)Te.parameters=ot(et);else{if(oe&&et.type==="JsdocTypeFunction"&&et.arrow)return Te=et,Te.constructor=!0,Te;Te.parameters=Re(et);for(let Ve of Te.parameters)if(Ve.type==="JsdocTypeKeyValue"&&!_.includes(Ve.key))throw new Error(`only allowed named parameters are ${_.join(", ")} but got ${Ve.type}`)}if(Z.consume(":"))Te.returnType=Z.parseType(q.PREFIX);else if(!I)throw new Error("function is missing return type");return Te}})}function at({allowPostfix:_,allowEnclosingBrackets:I}){return D({name:"variadicParslet",accept:L=>L==="...",precedence:q.PREFIX,parsePrefix:L=>{L.consume("...");let V=I&&L.consume("[");try{let Z=L.parseType(q.PREFIX);if(V&&!L.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(Z),meta:{position:"prefix",squareBrackets:V}}}catch(Z){if(Z instanceof t){if(V)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw Z}},parseInfix:_?(L,V)=>(L.consume("..."),{type:"JsdocTypeVariadic",element:E(V),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let jt=D({name:"symbolParslet",accept:_=>_==="(",precedence:q.SYMBOL,parseInfix:(_,I)=>{if(I.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");_.consume("(");let L={type:"JsdocTypeSymbol",value:I.value};if(!_.consume(")")){let V=_.parseIntermediateType(q.SYMBOL);if(L.element=F(V),!_.consume(")"))throw new Error("Symbol does not end after value")}return L}}),Ze=D({name:"arrayBracketsParslet",precedence:q.ARRAY_BRACKETS,accept:(_,I)=>_==="["&&I==="]",parseInfix:(_,I)=>(_.consume("["),_.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(I)],meta:{brackets:"square",dot:!1}})});function Ee({objectFieldGrammar:_,allowKeyTypes:I}){return D({name:"objectParslet",accept:L=>L==="{",parsePrefix:L=>{L.consume("{");let V={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!L.consume("}")){let Z,oe=new ee(_,L.lexer,L);for(;;){oe.acceptLexerState(L);let ue=oe.parseIntermediateType(q.OBJECT);L.acceptLexerState(oe),ue===void 0&&I&&(ue=L.parseIntermediateType(q.OBJECT));let Te=!1;if(ue.type==="JsdocTypeNullable"&&(Te=!0,ue=ue.element),ue.type==="JsdocTypeNumber"||ue.type==="JsdocTypeName"||ue.type==="JsdocTypeStringValue"){let Ve;ue.type==="JsdocTypeStringValue"&&(Ve=ue.meta.quote),V.elements.push({type:"JsdocTypeObjectField",key:ue.value.toString(),right:void 0,optional:Te,readonly:!1,meta:{quote:Ve}})}else if(ue.type==="JsdocTypeObjectField"||ue.type==="JsdocTypeJsdocObjectField")V.elements.push(ue);else throw new s(ue);if(L.lexer.current.startOfLine)Z="linebreak";else if(L.consume(","))Z="comma";else if(L.consume(";"))Z="semicolon";else break;if(L.lexer.current.type==="}")break}if(V.meta.separator=Z??"comma",!L.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return V}})}function ze({allowSquaredProperties:_,allowKeyTypes:I,allowReadonly:L,allowOptional:V}){return D({name:"objectFieldParslet",precedence:q.KEY_VALUE,accept:Z=>Z===":",parseInfix:(Z,oe)=>{var ue;let Te=!1,et=!1;V&&oe.type==="JsdocTypeNullable"&&(Te=!0,oe=oe.element),L&&oe.type==="JsdocTypeReadonlyProperty"&&(et=!0,oe=oe.element);let Ve=(ue=Z.baseParser)!==null&&ue!==void 0?ue:Z;if(Ve.acceptLexerState(Z),oe.type==="JsdocTypeNumber"||oe.type==="JsdocTypeName"||oe.type==="JsdocTypeStringValue"||U(oe)){if(U(oe)&&!_)throw new s(oe);Ve.consume(":");let Dt;oe.type==="JsdocTypeStringValue"&&(Dt=oe.meta.quote);let Wn=Ve.parseType(q.KEY_VALUE);return Z.acceptLexerState(Ve),{type:"JsdocTypeObjectField",key:U(oe)?oe:oe.value.toString(),right:Wn,optional:Te,readonly:et,meta:{quote:Dt}}}else{if(!I)throw new s(oe);Ve.consume(":");let Dt=Ve.parseType(q.KEY_VALUE);return Z.acceptLexerState(Ve),{type:"JsdocTypeJsdocObjectField",left:E(oe),right:Dt}}}})}function Zt({allowOptional:_,allowVariadic:I}){return D({name:"keyValueParslet",precedence:q.KEY_VALUE,accept:L=>L===":",parseInfix:(L,V)=>{let Z=!1,oe=!1;if(_&&V.type==="JsdocTypeNullable"&&(Z=!0,V=V.element),I&&V.type==="JsdocTypeVariadic"&&V.element!==void 0&&(oe=!0,V=V.element),V.type!=="JsdocTypeName")throw new s(V);L.consume(":");let ue=L.parseType(q.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:V.value,right:ue,optional:Z,variadic:oe}}})}let yr=[...Se,je({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ie,De({allowedTypes:["module","external","event"],pathGrammar:$e}),at({allowEnclosingBrackets:!0,allowPostfix:!0}),xe({allowedAdditionalTokens:["keyof"]}),jt,Ze,we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:$e})],li=[...yr,Ee({objectFieldGrammar:[xe({allowedAdditionalTokens:["module","in"]}),ze({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...yr],allowKeyTypes:!0}),Zt({allowOptional:!0,allowVariadic:!0})],ss=D({name:"typeOfParslet",accept:_=>_==="typeof",parsePrefix:_=>(_.consume("typeof"),{type:"JsdocTypeTypeof",element:E(_.parseType(q.KEY_OF_TYPE_OF))})}),Ln=[xe({allowedAdditionalTokens:["module","keyof","event","external","in"]}),$,N,Ie,G,ze({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Dn=[...Se,Ee({allowKeyTypes:!1,objectFieldGrammar:Ln}),xe({allowedAdditionalTokens:["event","external","in"]}),ss,je({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),at({allowEnclosingBrackets:!1,allowPostfix:!1}),xe({allowedAdditionalTokens:["keyof"]}),De({allowedTypes:["module"],pathGrammar:$e}),we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:$e}),Zt({allowOptional:!1,allowVariadic:!1}),jt],Fn=D({name:"assertsParslet",accept:_=>_==="asserts",parsePrefix:_=>{_.consume("asserts");let I=_.parseIntermediateType(q.SYMBOL);if(I.type!=="JsdocTypeName")throw new s(I,"A typescript asserts always has to have a name on the left side.");return _.consume("is"),{type:"JsdocTypeAsserts",left:I,right:E(_.parseIntermediateType(q.INFIX))}}});function Bn({allowQuestionMark:_}){return D({name:"tupleParslet",accept:I=>I==="[",parsePrefix:I=>{I.consume("[");let L={type:"JsdocTypeTuple",elements:[]};if(I.consume("]"))return L;let V=I.parseIntermediateType(q.ALL);if(V.type==="JsdocTypeParameterList"?V.elements[0].type==="JsdocTypeKeyValue"?L.elements=V.elements.map(B):L.elements=V.elements.map(E):V.type==="JsdocTypeKeyValue"?L.elements=[B(V)]:L.elements=[E(V)],!I.consume("]"))throw new Error("Unterminated '['");if(!_&&L.elements.some(Z=>Z.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return L}})}let ns=D({name:"keyOfParslet",accept:_=>_==="keyof",parsePrefix:_=>(_.consume("keyof"),{type:"JsdocTypeKeyof",element:E(_.parseType(q.KEY_OF_TYPE_OF))})}),Mn=D({name:"importParslet",accept:_=>_==="import",parsePrefix:_=>{if(_.consume("import"),!_.consume("("))throw new Error("Missing parenthesis after import keyword");let I=_.parseType(q.PREFIX);if(I.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!_.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:I}}}),xr=D({name:"readonlyPropertyParslet",accept:_=>_==="readonly",parsePrefix:_=>(_.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:_.parseType(q.KEY_VALUE)})}),ui=D({name:"arrowFunctionParslet",precedence:q.ARROW,accept:_=>_==="=>",parseInfix:(_,I)=>(_.consume("=>"),{type:"JsdocTypeFunction",parameters:Re(I).map(O),arrow:!0,constructor:!1,parenthesis:!0,returnType:_.parseType(q.OBJECT)})}),os=D({name:"intersectionParslet",accept:_=>_==="&",precedence:q.INTERSECTION,parseInfix:(_,I)=>{_.consume("&");let L=[];do L.push(_.parseType(q.INTERSECTION));while(_.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(I),...L]}}}),Nn=D({name:"predicateParslet",precedence:q.INFIX,accept:_=>_==="is",parseInfix:(_,I)=>{if(I.type!=="JsdocTypeName")throw new s(I,"A typescript predicate always has to have a name on the left side.");return _.consume("is"),{type:"JsdocTypePredicate",left:I,right:E(_.parseIntermediateType(q.INFIX))}}}),zn=D({name:"objectSquareBracketPropertyParslet",accept:_=>_==="[",parsePrefix:_=>{if(_.baseParser===void 0)throw new Error("Only allowed inside object grammar");_.consume("[");let I=_.lexer.current.text;_.consume("Identifier");let L;if(_.consume(":")){let V=_.baseParser;V.acceptLexerState(_),L={type:"JsdocTypeIndexSignature",key:I,right:V.parseType(q.INDEX_BRACKETS)},_.acceptLexerState(V)}else if(_.consume("in")){let V=_.baseParser;V.acceptLexerState(_),L={type:"JsdocTypeMappedType",key:I,right:V.parseType(q.ARRAY_BRACKETS)},_.acceptLexerState(V)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!_.consume("]"))throw new Error("Unterminated square brackets");return L}}),ci=[xr,xe({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),$,N,Ie,G,ze({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),zn],Wr=[...Se,Ee({allowKeyTypes:!1,objectFieldGrammar:ci}),ss,ns,Mn,Ie,je({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Bn({allowQuestionMark:!1}),at({allowEnclosingBrackets:!1,allowPostfix:!1}),Fn,xe({allowedAdditionalTokens:["event","external","in"]}),De({allowedTypes:["module"],pathGrammar:$e}),Ze,ui,we({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:$e}),os,Nn,Zt({allowVariadic:!0,allowOptional:!0})];function W(_,I){switch(I){case"closure":return new ee(Dn,_).parse();case"jsdoc":return new ee(li,_).parse();case"typescript":return new ee(Wr,_).parse()}}function Y(_,I=["typescript","closure","jsdoc"]){let L;for(let V of I)try{return W(_,V)}catch(Z){L=Z}throw L}function _e(_,I){let L=_[I.type];if(L===void 0)throw new Error(`In this set of transform rules exists no rule for type ${I.type}.`);return L(I,V=>_e(_,V))}function de(_){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Me(_){let I={params:[]};for(let L of _.parameters)L.type==="JsdocTypeKeyValue"?L.key==="this"?I.this=L.right:L.key==="new"?I.new=L.right:I.params.push(L):I.params.push(L);return I}function ge(_,I,L){return _==="prefix"?L+I:I+L}function lt(_,I){switch(I){case"double":return`"${_}"`;case"single":return`'${_}'`;case void 0:return _}}function Wt(){return{JsdocTypeParenthesis:(_,I)=>`(${_.element!==void 0?I(_.element):""})`,JsdocTypeKeyof:(_,I)=>`keyof ${I(_.element)}`,JsdocTypeFunction:(_,I)=>{if(_.arrow){if(_.returnType===void 0)throw new Error("Arrow function needs a return type.");let L=`(${_.parameters.map(I).join(", ")}) => ${I(_.returnType)}`;return _.constructor&&(L="new "+L),L}else{let L=_.constructor?"new":"function";return _.parenthesis&&(L+=`(${_.parameters.map(I).join(", ")})`,_.returnType!==void 0&&(L+=`: ${I(_.returnType)}`)),L}},JsdocTypeName:_=>_.value,JsdocTypeTuple:(_,I)=>`[${_.elements.map(I).join(", ")}]`,JsdocTypeVariadic:(_,I)=>_.meta.position===void 0?"...":ge(_.meta.position,I(_.element),"..."),JsdocTypeNamePath:(_,I)=>{let L=I(_.left),V=I(_.right);switch(_.pathType){case"inner":return`${L}~${V}`;case"instance":return`${L}#${V}`;case"property":return`${L}.${V}`;case"property-brackets":return`${L}[${V}]`}},JsdocTypeStringValue:_=>lt(_.value,_.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(_,I)=>{if(_.meta.brackets==="square"){let L=_.elements[0],V=I(L);return L.type==="JsdocTypeUnion"||L.type==="JsdocTypeIntersection"?`(${V})[]`:`${V}[]`}else return`${I(_.left)}${_.meta.dot?".":""}<${_.elements.map(I).join(", ")}>`},JsdocTypeImport:(_,I)=>`import(${I(_.element)})`,JsdocTypeObjectField:(_,I)=>{let L="";return _.readonly&&(L+="readonly "),typeof _.key=="string"?L+=lt(_.key,_.meta.quote):L+=I(_.key),_.optional&&(L+="?"),_.right===void 0?L:L+`: ${I(_.right)}`},JsdocTypeJsdocObjectField:(_,I)=>`${I(_.left)}: ${I(_.right)}`,JsdocTypeKeyValue:(_,I)=>{let L=_.key;return _.optional&&(L+="?"),_.variadic&&(L="..."+L),_.right===void 0?L:L+`: ${I(_.right)}`},JsdocTypeSpecialNamePath:_=>`${_.specialType}:${lt(_.value,_.meta.quote)}`,JsdocTypeNotNullable:(_,I)=>ge(_.meta.position,I(_.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(_,I)=>ge(_.meta.position,I(_.element),"?"),JsdocTypeNumber:_=>_.value.toString(),JsdocTypeObject:(_,I)=>`{${_.elements.map(I).join((_.meta.separator==="comma"?",":";")+" ")}}`,JsdocTypeOptional:(_,I)=>ge(_.meta.position,I(_.element),"="),JsdocTypeSymbol:(_,I)=>`${_.value}(${_.element!==void 0?I(_.element):""})`,JsdocTypeTypeof:(_,I)=>`typeof ${I(_.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(_,I)=>_.elements.map(I).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(_,I)=>_.elements.map(I).join(" & "),JsdocTypeProperty:_=>lt(_.value,_.meta.quote),JsdocTypePredicate:(_,I)=>`${I(_.left)} is ${I(_.right)}`,JsdocTypeIndexSignature:(_,I)=>`[${_.key}: ${I(_.right)}]`,JsdocTypeMappedType:(_,I)=>`[${_.key} in ${I(_.right)}]`,JsdocTypeAsserts:(_,I)=>`asserts ${I(_.left)} is ${I(_.right)}`}}let gt=Wt();function qt(_){return _e(gt,_)}let as=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function mt(_){let I={type:"NameExpression",name:_};return as.includes(_)&&(I.reservedWord=!0),I}let vt={JsdocTypeOptional:(_,I)=>{let L=I(_.element);return L.optional=!0,L},JsdocTypeNullable:(_,I)=>{let L=I(_.element);return L.nullable=!0,L},JsdocTypeNotNullable:(_,I)=>{let L=I(_.element);return L.nullable=!1,L},JsdocTypeVariadic:(_,I)=>{if(_.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let L=I(_.element);return L.repeatable=!0,L},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:_=>mt(lt(_.value,_.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(_,I)=>{let L=Me(_),V={type:"FunctionType",params:L.params.map(I)};return L.this!==void 0&&(V.this=I(L.this)),L.new!==void 0&&(V.new=I(L.new)),_.returnType!==void 0&&(V.result=I(_.returnType)),V},JsdocTypeGeneric:(_,I)=>({type:"TypeApplication",applications:_.elements.map(L=>I(L)),expression:I(_.left)}),JsdocTypeSpecialNamePath:_=>mt(_.specialType+":"+lt(_.value,_.meta.quote)),JsdocTypeName:_=>_.value!=="function"?mt(_.value):{type:"FunctionType",params:[]},JsdocTypeNumber:_=>mt(_.value.toString()),JsdocTypeObject:(_,I)=>{let L={type:"RecordType",fields:[]};for(let V of _.elements)V.type!=="JsdocTypeObjectField"&&V.type!=="JsdocTypeJsdocObjectField"?L.fields.push({type:"FieldType",key:I(V),value:void 0}):L.fields.push(I(V));return L},JsdocTypeObjectField:(_,I)=>{if(typeof _.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:mt(lt(_.key,_.meta.quote)),value:_.right===void 0?void 0:I(_.right)}},JsdocTypeJsdocObjectField:(_,I)=>({type:"FieldType",key:I(_.left),value:I(_.right)}),JsdocTypeUnion:(_,I)=>({type:"TypeUnion",elements:_.elements.map(L=>I(L))}),JsdocTypeKeyValue:(_,I)=>({type:"FieldType",key:mt(_.key),value:_.right===void 0?void 0:I(_.right)}),JsdocTypeNamePath:(_,I)=>{let L=I(_.left),V;_.right.type==="JsdocTypeSpecialNamePath"?V=I(_.right).name:V=lt(_.right.value,_.right.meta.quote);let Z=_.pathType==="inner"?"~":_.pathType==="instance"?"#":".";return mt(`${L.name}${Z}${V}`)},JsdocTypeSymbol:_=>{let I="",L=_.element,V=!1;return L?.type==="JsdocTypeVariadic"&&(L.meta.position==="prefix"?I="...":V=!0,L=L.element),L?.type==="JsdocTypeName"?I+=L.value:L?.type==="JsdocTypeNumber"&&(I+=L.value.toString()),V&&(I+="..."),mt(`${_.value}(${I})`)},JsdocTypeParenthesis:(_,I)=>I(E(_.element)),JsdocTypeMappedType:de,JsdocTypeIndexSignature:de,JsdocTypeImport:de,JsdocTypeKeyof:de,JsdocTypeTuple:de,JsdocTypeTypeof:de,JsdocTypeIntersection:de,JsdocTypeProperty:de,JsdocTypePredicate:de,JsdocTypeAsserts:de};function jn(_){return _e(vt,_)}function $t(_){switch(_){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Un(_){switch(_){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function er(_,I){return I.length===2?{type:_,left:I[0],right:I[1]}:{type:_,left:I[0],right:er(_,I.slice(1))}}let ls={JsdocTypeOptional:(_,I)=>({type:"OPTIONAL",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(_,I)=>({type:"NULLABLE",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(_,I)=>({type:"NOT_NULLABLE",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(_,I)=>{let L={type:"VARIADIC",meta:{syntax:_.meta.position==="prefix"?"PREFIX_DOTS":_.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return _.element!==void 0&&(L.value=I(_.element)),L},JsdocTypeName:_=>({type:"NAME",name:_.value}),JsdocTypeTypeof:(_,I)=>({type:"TYPE_QUERY",name:I(_.element)}),JsdocTypeTuple:(_,I)=>({type:"TUPLE",entries:_.elements.map(I)}),JsdocTypeKeyof:(_,I)=>({type:"KEY_QUERY",value:I(_.element)}),JsdocTypeImport:_=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:$t(_.element.meta.quote),string:_.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(_,I)=>{let L=Me(_),V={type:_.arrow?"ARROW":"FUNCTION",params:L.params.map(Z=>{if(Z.type==="JsdocTypeKeyValue"){if(Z.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:Z.key,typeName:I(Z.right)}}else return I(Z)}),new:null,returns:null};return L.this!==void 0?V.this=I(L.this):_.arrow||(V.this=null),L.new!==void 0&&(V.new=I(L.new)),_.returnType!==void 0&&(V.returns=I(_.returnType)),V},JsdocTypeGeneric:(_,I)=>{let L={type:"GENERIC",subject:I(_.left),objects:_.elements.map(I),meta:{syntax:_.meta.brackets==="square"?"SQUARE_BRACKET":_.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return _.meta.brackets==="square"&&_.elements[0].type==="JsdocTypeFunction"&&!_.elements[0].parenthesis&&(L.objects[0]={type:"NAME",name:"function"}),L},JsdocTypeObjectField:(_,I)=>{if(typeof _.key!="string")throw new Error("Index signatures and mapped types are not supported");if(_.right===void 0)return{type:"RECORD_ENTRY",key:_.key,quoteStyle:$t(_.meta.quote),value:null,readonly:!1};let L=I(_.right);return _.optional&&(L={type:"OPTIONAL",value:L,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:_.key.toString(),quoteStyle:$t(_.meta.quote),value:L,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(_,I)=>{if(_.right===void 0)return{type:"RECORD_ENTRY",key:_.key,quoteStyle:"none",value:null,readonly:!1};let L=I(_.right);return _.optional&&(L={type:"OPTIONAL",value:L,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:_.key,quoteStyle:"none",value:L,readonly:!1}},JsdocTypeObject:(_,I)=>{let L=[];for(let V of _.elements)(V.type==="JsdocTypeObjectField"||V.type==="JsdocTypeJsdocObjectField")&&L.push(I(V));return{type:"RECORD",entries:L}},JsdocTypeSpecialNamePath:_=>{if(_.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${_.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:$t(_.meta.quote),path:_.value}}},JsdocTypeNamePath:(_,I)=>{let L=!1,V,Z;_.right.type==="JsdocTypeSpecialNamePath"&&_.right.specialType==="event"?(L=!0,V=_.right.value,Z=$t(_.right.meta.quote)):(V=_.right.value,Z=$t(_.right.meta.quote));let oe={type:Un(_.pathType),owner:I(_.left),name:V,quoteStyle:Z,hasEventPrefix:L};if(oe.owner.type==="MODULE"){let ue=oe.owner;return oe.owner=oe.owner.value,ue.value=oe,ue}else return oe},JsdocTypeUnion:(_,I)=>er("UNION",_.elements.map(I)),JsdocTypeParenthesis:(_,I)=>({type:"PARENTHESIS",value:I(E(_.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:_=>({type:"STRING_VALUE",quoteStyle:$t(_.meta.quote),string:_.value}),JsdocTypeIntersection:(_,I)=>er("INTERSECTION",_.elements.map(I)),JsdocTypeNumber:_=>({type:"NUMBER_VALUE",number:_.value.toString()}),JsdocTypeSymbol:de,JsdocTypeProperty:de,JsdocTypePredicate:de,JsdocTypeMappedType:de,JsdocTypeIndexSignature:de,JsdocTypeAsserts:de};function hi(_){return _e(ls,_)}function us(){return{JsdocTypeIntersection:(_,I)=>({type:"JsdocTypeIntersection",elements:_.elements.map(I)}),JsdocTypeGeneric:(_,I)=>({type:"JsdocTypeGeneric",left:I(_.left),elements:_.elements.map(I),meta:{dot:_.meta.dot,brackets:_.meta.brackets}}),JsdocTypeNullable:_=>_,JsdocTypeUnion:(_,I)=>({type:"JsdocTypeUnion",elements:_.elements.map(I)}),JsdocTypeUnknown:_=>_,JsdocTypeUndefined:_=>_,JsdocTypeTypeof:(_,I)=>({type:"JsdocTypeTypeof",element:I(_.element)}),JsdocTypeSymbol:(_,I)=>{let L={type:"JsdocTypeSymbol",value:_.value};return _.element!==void 0&&(L.element=I(_.element)),L},JsdocTypeOptional:(_,I)=>({type:"JsdocTypeOptional",element:I(_.element),meta:{position:_.meta.position}}),JsdocTypeObject:(_,I)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:_.elements.map(I)}),JsdocTypeNumber:_=>_,JsdocTypeNull:_=>_,JsdocTypeNotNullable:(_,I)=>({type:"JsdocTypeNotNullable",element:I(_.element),meta:{position:_.meta.position}}),JsdocTypeSpecialNamePath:_=>_,JsdocTypeObjectField:(_,I)=>({type:"JsdocTypeObjectField",key:_.key,right:_.right===void 0?void 0:I(_.right),optional:_.optional,readonly:_.readonly,meta:_.meta}),JsdocTypeJsdocObjectField:(_,I)=>({type:"JsdocTypeJsdocObjectField",left:I(_.left),right:I(_.right)}),JsdocTypeKeyValue:(_,I)=>({type:"JsdocTypeKeyValue",key:_.key,right:_.right===void 0?void 0:I(_.right),optional:_.optional,variadic:_.variadic}),JsdocTypeImport:(_,I)=>({type:"JsdocTypeImport",element:I(_.element)}),JsdocTypeAny:_=>_,JsdocTypeStringValue:_=>_,JsdocTypeNamePath:_=>_,JsdocTypeVariadic:(_,I)=>{let L={type:"JsdocTypeVariadic",meta:{position:_.meta.position,squareBrackets:_.meta.squareBrackets}};return _.element!==void 0&&(L.element=I(_.element)),L},JsdocTypeTuple:(_,I)=>({type:"JsdocTypeTuple",elements:_.elements.map(I)}),JsdocTypeName:_=>_,JsdocTypeFunction:(_,I)=>{let L={type:"JsdocTypeFunction",arrow:_.arrow,parameters:_.parameters.map(I),constructor:_.constructor,parenthesis:_.parenthesis};return _.returnType!==void 0&&(L.returnType=I(_.returnType)),L},JsdocTypeKeyof:(_,I)=>({type:"JsdocTypeKeyof",element:I(_.element)}),JsdocTypeParenthesis:(_,I)=>({type:"JsdocTypeParenthesis",element:I(_.element)}),JsdocTypeProperty:_=>_,JsdocTypePredicate:(_,I)=>({type:"JsdocTypePredicate",left:I(_.left),right:I(_.right)}),JsdocTypeIndexSignature:(_,I)=>({type:"JsdocTypeIndexSignature",key:_.key,right:I(_.right)}),JsdocTypeMappedType:(_,I)=>({type:"JsdocTypeMappedType",key:_.key,right:I(_.right)}),JsdocTypeAsserts:(_,I)=>({type:"JsdocTypeAsserts",left:I(_.left),right:I(_.right)})}}let di={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function pi(_,I,L,V,Z){V?.(_,I,L);let oe=di[_.type];for(let ue of oe){let Te=_[ue];if(Te!==void 0)if(Array.isArray(Te))for(let et of Te)pi(et,_,ue,V,Z);else pi(Te,_,ue,V,Z)}Z?.(_,I,L)}function Hn(_,I,L){pi(_,void 0,void 0,I,L)}r.catharsisTransform=jn,r.identityTransformRules=us,r.jtpTransform=hi,r.parse=W,r.stringify=qt,r.stringifyRules=Wt,r.transform=_e,r.traverse=Hn,r.tryParse=Y,r.visitorKeys=di})});var BT=H((SLe,FT)=>{"use strict";h();d();p();FT.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var jd=H((ALe,NT)=>{h();d();p();var Pn=BT(),MT={};for(let r of Object.keys(Pn))MT[Pn[r]]=r;var se={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};NT.exports=se;for(let r of Object.keys(se)){if(!("channels"in se[r]))throw new Error("missing channels property: "+r);if(!("labels"in se[r]))throw new Error("missing channel labels property: "+r);if(se[r].labels.length!==se[r].channels)throw new Error("channel and label counts mismatch: "+r);let{channels:e,labels:t}=se[r];delete se[r].channels,delete se[r].labels,Object.defineProperty(se[r],"channels",{value:e}),Object.defineProperty(se[r],"labels",{value:t})}se.rgb.hsl=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.min(e,t,i),n=Math.max(e,t,i),o=n-s,a,l;n===s?a=0:e===n?a=(t-i)/o:t===n?a=2+(i-e)/o:i===n&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(s+n)/2;return n===s?l=0:u<=.5?l=o/(n+s):l=o/(2-n-s),[a,l*100,u*100]};se.rgb.hsv=function(r){let e,t,i,s,n,o=r[0]/255,a=r[1]/255,l=r[2]/255,u=Math.max(o,a,l),c=u-Math.min(o,a,l),g=function(m){return(u-m)/6/c+1/2};return c===0?(s=0,n=0):(n=c/u,e=g(o),t=g(a),i=g(l),o===u?s=i-t:a===u?s=1/3+e-i:l===u&&(s=2/3+t-e),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,u*100]};se.rgb.hwb=function(r){let e=r[0],t=r[1],i=r[2],s=se.rgb.hsl(r)[0],n=1/255*Math.min(e,Math.min(t,i));return i=1-1/255*Math.max(e,Math.max(t,i)),[s,n*100,i*100]};se.rgb.cmyk=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.min(1-e,1-t,1-i),n=(1-e-s)/(1-s)||0,o=(1-t-s)/(1-s)||0,a=(1-i-s)/(1-s)||0;return[n*100,o*100,a*100,s*100]};function Aq(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2+(r[2]-e[2])**2}se.rgb.keyword=function(r){let e=MT[r];if(e)return e;let t=1/0,i;for(let s of Object.keys(Pn)){let n=Pn[s],o=Aq(r,n);o.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let s=e*.4124+t*.3576+i*.1805,n=e*.2126+t*.7152+i*.0722,o=e*.0193+t*.1192+i*.9505;return[s*100,n*100,o*100]};se.rgb.lab=function(r){let e=se.rgb.xyz(r),t=e[0],i=e[1],s=e[2];t/=95.047,i/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let n=116*i-16,o=500*(t-i),a=200*(i-s);return[n,o,a]};se.hsl.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,s,n,o;if(t===0)return o=i*255,[o,o,o];i<.5?s=i*(1+t):s=i+t-i*t;let a=2*i-s,l=[0,0,0];for(let u=0;u<3;u++)n=e+1/3*-(u-1),n<0&&n++,n>1&&n--,6*n<1?o=a+(s-a)*6*n:2*n<1?o=s:3*n<2?o=a+(s-a)*(2/3-n)*6:o=a,l[u]=o*255;return l};se.hsl.hsv=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,s=t,n=Math.max(i,.01);i*=2,t*=i<=1?i:2-i,s*=n<=1?n:2-n;let o=(i+t)/2,a=i===0?2*s/(n+s):2*t/(i+t);return[e,a*100,o*100]};se.hsv.rgb=function(r){let e=r[0]/60,t=r[1]/100,i=r[2]/100,s=Math.floor(e)%6,n=e-Math.floor(e),o=255*i*(1-t),a=255*i*(1-t*n),l=255*i*(1-t*(1-n));switch(i*=255,s){case 0:return[i,l,o];case 1:return[a,i,o];case 2:return[o,i,l];case 3:return[o,a,i];case 4:return[l,o,i];case 5:return[i,o,a]}};se.hsv.hsl=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,s=Math.max(i,.01),n,o;o=(2-t)*i;let a=(2-t)*s;return n=t*s,n/=a<=1?a:2-a,n=n||0,o/=2,[e,n*100,o*100]};se.hwb.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,s=t+i,n;s>1&&(t/=s,i/=s);let o=Math.floor(6*e),a=1-i;n=6*e-o,o&1&&(n=1-n);let l=t+n*(a-t),u,c,g;switch(o){default:case 6:case 0:u=a,c=l,g=t;break;case 1:u=l,c=a,g=t;break;case 2:u=t,c=a,g=l;break;case 3:u=t,c=l,g=a;break;case 4:u=l,c=t,g=a;break;case 5:u=a,c=t,g=l;break}return[u*255,c*255,g*255]};se.cmyk.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,s=r[3]/100,n=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,i*(1-s)+s);return[n*255,o*255,a*255]};se.xyz.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,s,n,o;return s=e*3.2406+t*-1.5372+i*-.4986,n=e*-.9689+t*1.8758+i*.0415,o=e*.0557+t*-.204+i*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),[s*255,n*255,o*255]};se.xyz.lab=function(r){let e=r[0],t=r[1],i=r[2];e/=95.047,t/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*t-16,n=500*(e-t),o=200*(t-i);return[s,n,o]};se.lab.xyz=function(r){let e=r[0],t=r[1],i=r[2],s,n,o;n=(e+16)/116,s=t/500+n,o=n-i/200;let a=n**3,l=s**3,u=o**3;return n=a>.008856?a:(n-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,s*=95.047,n*=100,o*=108.883,[s,n,o]};se.lab.lch=function(r){let e=r[0],t=r[1],i=r[2],s;s=Math.atan2(i,t)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(t*t+i*i);return[e,o,s]};se.lch.lab=function(r){let e=r[0],t=r[1],s=r[2]/360*2*Math.PI,n=t*Math.cos(s),o=t*Math.sin(s);return[e,n,o]};se.rgb.ansi16=function(r,e=null){let[t,i,s]=r,n=e===null?se.rgb.hsv(r)[2]:e;if(n=Math.round(n/50),n===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(i/255)<<1|Math.round(t/255));return n===2&&(o+=60),o};se.hsv.ansi16=function(r){return se.rgb.ansi16(se.hsv.rgb(r),r[2])};se.rgb.ansi256=function(r){let e=r[0],t=r[1],i=r[2];return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)};se.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(r>50)+1)*.5,i=(e&1)*t*255,s=(e>>1&1)*t*255,n=(e>>2&1)*t*255;return[i,s,n]};se.ansi256.rgb=function(r){if(r>=232){let n=(r-232)*10+8;return[n,n,n]}r-=16;let e,t=Math.floor(r/36)/5*255,i=Math.floor((e=r%36)/6)/5*255,s=e%6/5*255;return[t,i,s]};se.rgb.hex=function(r){let t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};se.hex.rgb=function(r){let e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let i=parseInt(t,16),s=i>>16&255,n=i>>8&255,o=i&255;return[s,n,o]};se.rgb.hcg=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.max(Math.max(e,t),i),n=Math.min(Math.min(e,t),i),o=s-n,a,l;return o<1?a=n/(1-o):a=0,o<=0?l=0:s===e?l=(t-i)/o%6:s===t?l=2+(i-e)/o:l=4+(e-t)/o,l/=6,l%=1,[l*360,o*100,a*100]};se.hsl.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=t<.5?2*e*t:2*e*(1-t),s=0;return i<1&&(s=(t-.5*i)/(1-i)),[r[0],i*100,s*100]};se.hsv.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=e*t,s=0;return i<1&&(s=(t-i)/(1-i)),[r[0],i*100,s*100]};se.hcg.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100;if(t===0)return[i*255,i*255,i*255];let s=[0,0,0],n=e%1*6,o=n%1,a=1-o,l=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return l=(1-t)*i,[(t*s[0]+l)*255,(t*s[1]+l)*255,(t*s[2]+l)*255]};se.hcg.hsv=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e),s=0;return i>0&&(s=e/i),[r[0],s*100,i*100]};se.hcg.hsl=function(r){let e=r[1]/100,i=r[2]/100*(1-e)+.5*e,s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[r[0],s*100,i*100]};se.hcg.hwb=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e);return[r[0],(i-e)*100,(1-i)*100]};se.hwb.hcg=function(r){let e=r[1]/100,i=1-r[2]/100,s=i-e,n=0;return s<1&&(n=(i-s)/(1-s)),[r[0],s*100,n*100]};se.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};se.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};se.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};se.gray.hsl=function(r){return[0,0,r[0]]};se.gray.hsv=se.gray.hsl;se.gray.hwb=function(r){return[0,100,r[0]]};se.gray.cmyk=function(r){return[0,0,0,r[0]]};se.gray.lab=function(r){return[r[0],0,0]};se.gray.hex=function(r){let e=Math.round(r[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i};se.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}});var jT=H((PLe,zT)=>{h();d();p();var al=jd();function Eq(){let r={},e=Object.keys(al);for(let t=e.length,i=0;i{h();d();p();var Ud=jd(),kq=jT(),es={},Oq=Object.keys(Ud);function Lq(r){let e=function(...t){let i=t[0];return i==null?i:(i.length>1&&(t=i),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function Dq(r){let e=function(...t){let i=t[0];if(i==null)return i;i.length>1&&(t=i);let s=r(t);if(typeof s=="object")for(let n=s.length,o=0;o{es[r]={},Object.defineProperty(es[r],"channels",{value:Ud[r].channels}),Object.defineProperty(es[r],"labels",{value:Ud[r].labels});let e=kq(r);Object.keys(e).forEach(i=>{let s=e[i];es[r][i]=Dq(s),es[r][i].raw=Lq(s)})});UT.exports=es});var qT=H((NLe,WT)=>{h();d();p();var Fq=Mt(),Bq=function(){return Fq.Date.now()};WT.exports=Bq});var VT=H((HLe,$T)=>{h();d();p();var Mq=/\s/;function Nq(r){for(var e=r.length;e--&&Mq.test(r.charAt(e)););return e}$T.exports=Nq});var YT=H((VLe,GT)=>{h();d();p();var zq=VT(),jq=/^\s+/;function Uq(r){return r&&r.slice(0,zq(r)+1).replace(jq,"")}GT.exports=Uq});var QT=H((KLe,JT)=>{h();d();p();var Hq=YT(),XT=Jt(),Wq=on(),KT=NaN,qq=/^[-+]0x[0-9a-f]+$/i,$q=/^0b[01]+$/i,Vq=/^0o[0-7]+$/i,Gq=parseInt;function Yq(r){if(typeof r=="number")return r;if(Wq(r))return KT;if(XT(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=XT(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=Hq(r);var t=$q.test(r);return t||Vq.test(r)?Gq(r.slice(2),t?2:8):qq.test(r)?KT:+r}JT.exports=Yq});var tC=H((eDe,eC)=>{h();d();p();var Xq=Jt(),Hd=qT(),ZT=QT(),Kq="Expected a function",Jq=Math.max,Qq=Math.min;function Zq(r,e,t){var i,s,n,o,a,l,u=0,c=!1,g=!1,m=!0;if(typeof r!="function")throw new TypeError(Kq);e=ZT(e)||0,Xq(t)&&(c=!!t.leading,g="maxWait"in t,n=g?Jq(ZT(t.maxWait)||0,e):n,m="trailing"in t?!!t.trailing:m);function y(O){var B=i,F=s;return i=s=void 0,u=O,o=r.apply(F,B),o}function b(O){return u=O,a=setTimeout(T,e),c?y(O):o}function C(O){var B=O-l,F=O-u,U=e-B;return g?Qq(U,n-F):U}function A(O){var B=O-l,F=O-u;return l===void 0||B>=e||B<0||g&&F>=n}function T(){var O=Hd();if(A(O))return R(O);a=setTimeout(T,C(O))}function R(O){return a=void 0,m&&i?y(O):(i=s=void 0,o)}function P(){a!==void 0&&clearTimeout(a),u=0,i=l=s=a=void 0}function E(){return a===void 0?o:R(Hd())}function k(){var O=Hd(),B=A(O);if(i=arguments,s=this,l=O,B){if(a===void 0)return b(l);if(g)return clearTimeout(a),a=setTimeout(T,e),y(l)}return a===void 0&&(a=setTimeout(T,e)),o}return k.cancel=P,k.flush=E,k}eC.exports=Zq});function oi(){return(oi=Object.assign||function(r){for(var e=1;e=0||(s[t]=r[t]);return s}function Wd(r){var e=Bt(r),t=Bt(function(i){e.current&&e.current(i)});return e.current=r,t.current}function dC(r,e,t){var i=Wd(t),s=Fe(function(){return r.toHsva(e)}),n=s[0],o=s[1],a=Bt({color:e,hsva:n});He(function(){if(!r.equal(e,a.current.color)){var u=r.toHsva(e);a.current={hsva:u,color:e},o(u)}},[e,r]),He(function(){var u;cC(n,a.current.hsva)||r.equal(u=r.fromHsva(n),a.current.color)||(a.current={hsva:n,color:u},i(u))},[n,r,i]);var l=ut(function(u){o(function(c){return Object.assign({},c,u)})},[]);return[n,l]}var ts,kn,qd,rC,iC,Yd,On,Xd,st,e8,t8,$d,r8,i8,s8,n8,nC,Vd,ul,oC,o8,ll,a8,aC,lC,uC,cC,hC,l8,u8,c8,h8,sC,pC,d8,p8,fC,f8,gC,g8,mC,m8,_C,yC=Vt(()=>{h();d();p();Ge();ts=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r0:A.buttons>0)&&s.current?n(rC(s.current,A,a.current)):C(!1)},b=function(){return C(!1)};function C(A){var T=l.current,R=qd(s.current),P=A?R.addEventListener:R.removeEventListener;P(T?"touchmove":"mousemove",y),P(T?"touchend":"mouseup",b)}return[function(A){var T=A.nativeEvent,R=s.current;if(R&&(iC(T),!function(E,k){return k&&!kn(E)}(T,l.current)&&R)){if(kn(T)){l.current=!0;var P=T.changedTouches||[];P.length&&(a.current=P[0].identifier)}R.focus(),n(rC(R,T,a.current)),C(!0)}},function(A){var T=A.which||A.keyCode;T<37||T>40||(A.preventDefault(),o({left:T===39?.05:T===37?-.05:0,top:T===40?.05:T===38?-.05:0}))},C]},[o,n]),c=u[0],g=u[1],m=u[2];return He(function(){return m},[m]),z.createElement("div",oi({},i,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:s,onKeyDown:g,tabIndex:0,role:"slider"}))}),On=function(r){return r.filter(Boolean).join(" ")},Xd=function(r){var e=r.color,t=r.left,i=r.top,s=i===void 0?.5:i,n=On(["react-colorful__pointer",r.className]);return z.createElement("div",{className:n,style:{top:100*s+"%",left:100*t+"%"}},z.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},st=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t},e8={grad:.9,turn:360,rad:360/(2*Math.PI)},t8=function(r){return aC($d(r))},$d=function(r){return r[0]==="#"&&(r=r.substring(1)),r.length<6?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?st(parseInt(r[3]+r[3],16)/255,2):1}:{r:parseInt(r.substring(0,2),16),g:parseInt(r.substring(2,4),16),b:parseInt(r.substring(4,6),16),a:r.length===8?st(parseInt(r.substring(6,8),16)/255,2):1}},r8=function(r,e){return e===void 0&&(e="deg"),Number(r)*(e8[e]||1)},i8=function(r){var e=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?s8({h:r8(e[1],e[2]),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)}):{h:0,s:0,v:0,a:1}},s8=function(r){var e=r.s,t=r.l;return{h:r.h,s:(e*=(t<50?t:100-t)/100)>0?2*e/(t+e)*100:0,v:t+e,a:r.a}},n8=function(r){return a8(oC(r))},nC=function(r){var e=r.s,t=r.v,i=r.a,s=(200-e)*t/100;return{h:st(r.h),s:st(s>0&&s<200?e*t/100/(s<=100?s:200-s)*100:0),l:st(s/2),a:st(i,2)}},Vd=function(r){var e=nC(r);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},ul=function(r){var e=nC(r);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},oC=function(r){var e=r.h,t=r.s,i=r.v,s=r.a;e=e/360*6,t/=100,i/=100;var n=Math.floor(e),o=i*(1-t),a=i*(1-(e-n)*t),l=i*(1-(1-e+n)*t),u=n%6;return{r:st(255*[i,a,o,o,l,i][u]),g:st(255*[l,i,i,a,o,o][u]),b:st(255*[o,o,l,i,i,a][u]),a:st(s,2)}},o8=function(r){var e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?aC({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}},ll=function(r){var e=r.toString(16);return e.length<2?"0"+e:e},a8=function(r){var e=r.r,t=r.g,i=r.b,s=r.a,n=s<1?ll(st(255*s)):"";return"#"+ll(e)+ll(t)+ll(i)+n},aC=function(r){var e=r.r,t=r.g,i=r.b,s=r.a,n=Math.max(e,t,i),o=n-Math.min(e,t,i),a=o?n===e?(t-i)/o:n===t?2+(i-e)/o:4+(e-t)/o:0;return{h:st(60*(a<0?a+6:a)),s:st(n?o/n*100:0),v:st(n/255*100),a:s}},lC=z.memo(function(r){var e=r.hue,t=r.onChange,i=On(["react-colorful__hue",r.className]);return z.createElement("div",{className:i},z.createElement(Yd,{onMove:function(s){t({h:360*s.left})},onKey:function(s){t({h:ts(e+360*s.left,0,360)})},"aria-label":"Hue","aria-valuenow":st(e),"aria-valuemax":"360","aria-valuemin":"0"},z.createElement(Xd,{className:"react-colorful__hue-pointer",left:e/360,color:Vd({h:e,s:100,v:100,a:1})})))}),uC=z.memo(function(r){var e=r.hsva,t=r.onChange,i={backgroundColor:Vd({h:e.h,s:100,v:100,a:1})};return z.createElement("div",{className:"react-colorful__saturation",style:i},z.createElement(Yd,{onMove:function(s){t({s:100*s.left,v:100-100*s.top})},onKey:function(s){t({s:ts(e.s+100*s.left,0,100),v:ts(e.v-100*s.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+st(e.s)+"%, Brightness "+st(e.v)+"%"},z.createElement(Xd,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Vd(e)})))}),cC=function(r,e){if(r===e)return!0;for(var t in r)if(r[t]!==e[t])return!1;return!0},hC=function(r,e){return r.replace(/\s/g,"")===e.replace(/\s/g,"")},l8=function(r,e){return r.toLowerCase()===e.toLowerCase()||cC($d(r),$d(e))};c8=typeof window<"u"?Il:He,h8=function(){return u8||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},sC=new Map,pC=function(r){c8(function(){var e=r.current?r.current.ownerDocument:document;if(e!==void 0&&!sC.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,sC.set(e,t);var i=h8();i&&t.setAttribute("nonce",i),e.head.appendChild(t)}},[])},d8=function(r){var e=r.className,t=r.colorModel,i=r.color,s=i===void 0?t.defaultColor:i,n=r.onChange,o=Gd(r,["className","colorModel","color","onChange"]),a=Bt(null);pC(a);var l=dC(t,s,n),u=l[0],c=l[1],g=On(["react-colorful",e]);return z.createElement("div",oi({},o,{ref:a,className:g}),z.createElement(uC,{hsva:u,onChange:c}),z.createElement(lC,{hue:u.h,onChange:c,className:"react-colorful__last-control"}))},p8={defaultColor:"000",toHsva:t8,fromHsva:function(r){return n8({h:r.h,s:r.s,v:r.v,a:1})},equal:l8},fC=function(r){return z.createElement(d8,oi({},r,{colorModel:p8}))},f8=function(r){var e=r.className,t=r.hsva,i=r.onChange,s={backgroundImage:"linear-gradient(90deg, "+ul(Object.assign({},t,{a:0}))+", "+ul(Object.assign({},t,{a:1}))+")"},n=On(["react-colorful__alpha",e]),o=st(100*t.a);return z.createElement("div",{className:n},z.createElement("div",{className:"react-colorful__alpha-gradient",style:s}),z.createElement(Yd,{onMove:function(a){i({a:a.left})},onKey:function(a){i({a:ts(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},z.createElement(Xd,{className:"react-colorful__alpha-pointer",left:t.a,color:ul(t)})))},gC=function(r){var e=r.className,t=r.colorModel,i=r.color,s=i===void 0?t.defaultColor:i,n=r.onChange,o=Gd(r,["className","colorModel","color","onChange"]),a=Bt(null);pC(a);var l=dC(t,s,n),u=l[0],c=l[1],g=On(["react-colorful",e]);return z.createElement("div",oi({},o,{ref:a,className:g}),z.createElement(uC,{hsva:u,onChange:c}),z.createElement(lC,{hue:u.h,onChange:c}),z.createElement(f8,{hsva:u,onChange:c,className:"react-colorful__last-control"}))},g8={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:i8,fromHsva:ul,equal:hC},mC=function(r){return z.createElement(gC,oi({},r,{colorModel:g8}))},m8={defaultColor:"rgba(0, 0, 0, 1)",toHsva:o8,fromHsva:function(r){var e=oC(r);return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},equal:hC},_C=function(r){return z.createElement(gC,oi({},r,{colorModel:m8}))}});var TC={};rr(TC,{ColorControl:()=>wC,default:()=>D8});var Lt,vC,_8,y8,x8,b8,v8,S8,w8,xC,T8,C8,SC,cl,A8,E8,I8,Kd,R8,P8,hl,bC,rs,k8,O8,dl,L8,wC,D8,CC=Vt(()=>{h();d();p();uc();Ge();ta();xc();Ec();Lt=ye(HT(),1),vC=ye(tC(),1);yC();_8=J.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),y8=J(ea)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),x8=J.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),b8=J(fc)(({theme:r})=>({fontFamily:r.typography.fonts.base})),v8=J.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),S8=J.div(({theme:r,active:e})=>({width:16,height:16,boxShadow:e?`${r.appBorderColor} 0 0 0 1px inset, ${r.textMutedColor}50 0 0 0 4px`:`${r.appBorderColor} 0 0 0 1px inset`,borderRadius:r.appBorderRadius})),w8=`url('data:image/svg+xml;charset=utf-8,')`,xC=({value:r,style:e,...t})=>{let i=`linear-gradient(${r}, ${r}), ${w8}, linear-gradient(#fff, #fff)`;return z.createElement(S8,{...t,style:{...e,backgroundImage:i}})},T8=J(Rr.Input)(({theme:r,readOnly:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:r.typography.fonts.base})),C8=J(lg)(({theme:r})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:r.input.color})),SC=(r=>(r.RGB="rgb",r.HSL="hsl",r.HEX="hex",r))(SC||{}),cl=Object.values(SC),A8=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,E8=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,I8=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Kd=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,R8=/^\s*#?([0-9a-f]{3})\s*$/i,P8={hex:fC,rgb:_C,hsl:mC},hl={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},bC=r=>{let e=r?.match(A8);if(!e)return[0,0,0,1];let[,t,i,s,n=1]=e;return[t,i,s,n].map(Number)},rs=r=>{if(!r)return;let e=!0;if(E8.test(r)){let[o,a,l,u]=bC(r),[c,g,m]=Lt.default.rgb.hsl([o,a,l])||[0,0,0];return{valid:e,value:r,keyword:Lt.default.rgb.keyword([o,a,l]),colorSpace:"rgb",rgb:r,hsl:`hsla(${c}, ${g}%, ${m}%, ${u})`,hex:`#${Lt.default.rgb.hex([o,a,l]).toLowerCase()}`}}if(I8.test(r)){let[o,a,l,u]=bC(r),[c,g,m]=Lt.default.hsl.rgb([o,a,l])||[0,0,0];return{valid:e,value:r,keyword:Lt.default.hsl.keyword([o,a,l]),colorSpace:"hsl",rgb:`rgba(${c}, ${g}, ${m}, ${u})`,hsl:r,hex:`#${Lt.default.hsl.hex([o,a,l]).toLowerCase()}`}}let t=r.replace("#",""),i=Lt.default.keyword.rgb(t)||Lt.default.hex.rgb(t),s=Lt.default.rgb.hsl(i),n=r;if(/[^#a-f0-9]/i.test(r)?n=t:Kd.test(r)&&(n=`#${t}`),n.startsWith("#"))e=Kd.test(n);else try{Lt.default.keyword.hex(n)}catch{e=!1}return{valid:e,value:n,keyword:Lt.default.rgb.keyword(i),colorSpace:"hex",rgb:`rgba(${i[0]}, ${i[1]}, ${i[2]}, 1)`,hsl:`hsla(${s[0]}, ${s[1]}%, ${s[2]}%, 1)`,hex:n}},k8=(r,e,t)=>{if(!r||!e?.valid)return hl[t];if(t!=="hex")return e?.[t]||hl[t];if(!e.hex.startsWith("#"))try{return`#${Lt.default.keyword.hex(e.hex)}`}catch{return hl.hex}let i=e.hex.match(R8);if(!i)return Kd.test(e.hex)?e.hex:hl.hex;let[s,n,o]=i[1].split("");return`#${s}${s}${n}${n}${o}${o}`},O8=(r,e)=>{let[t,i]=Fe(r||""),[s,n]=Fe(()=>rs(t)),[o,a]=Fe(s?.colorSpace||"hex");He(()=>{let g=r||"",m=rs(g);i(g),n(m),a(m?.colorSpace||"hex")},[r]);let l=vr(()=>k8(t,s,o).toLowerCase(),[t,s,o]),u=ut(g=>{let m=rs(g),y=m?.value||g||"";i(y),y===""&&(n(void 0),e(void 0)),m&&(n(m),a(m.colorSpace),e(m.value))},[e]),c=ut(()=>{let g=cl.indexOf(o)+1;g>=cl.length&&(g=0),a(cl[g]);let m=s?.[cl[g]]||"";i(m),e(m)},[s,o,e]);return{value:t,realValue:l,updateValue:u,color:s,colorSpace:o,cycleColorSpace:c}},dl=r=>r.replace(/\s*/,"").toLowerCase(),L8=(r,e,t)=>{let[i,s]=Fe(e?.valid?[e]:[]);He(()=>{e===void 0&&s([])},[e]);let n=vr(()=>(r||[]).map(a=>typeof a=="string"?rs(a):a.title?{...rs(a.color),keyword:a.title}:rs(a.color)).concat(i).filter(Boolean).slice(-27),[r,i]),o=ut(a=>{a?.valid&&(n.some(l=>dl(l[t])===dl(a[t]))||s(l=>l.concat(a)))},[t,n]);return{presets:n,addPreset:o}},wC=({name:r,value:e,onChange:t,onFocus:i,onBlur:s,presetColors:n,startOpen:o=!1,argType:a})=>{let l=ut((0,vC.default)(t,200),[t]),{value:u,realValue:c,updateValue:g,color:m,colorSpace:y,cycleColorSpace:b}=O8(e,l),{presets:C,addPreset:A}=L8(n,m,y),T=P8[y],R=!!a?.table?.readonly;return z.createElement(_8,{"aria-readonly":R},z.createElement(y8,{startOpen:o,trigger:R?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>A(m),tooltip:z.createElement(x8,null,z.createElement(T,{color:c==="transparent"?"#000000":c,onChange:g,onFocus:i,onBlur:s}),C.length>0&&z.createElement(v8,null,C.map((P,E)=>z.createElement(ea,{key:`${P.value}-${E}`,hasChrome:!1,tooltip:z.createElement(b8,{note:P.keyword||P.value})},z.createElement(xC,{value:P[y],active:m&&dl(P[y])===dl(m[y]),onClick:()=>g(P.value)})))))},z.createElement(xC,{value:c,style:{margin:4}})),z.createElement(T8,{id:Kt(r),value:u,onChange:P=>g(P.target.value),onFocus:P=>P.target.select(),readOnly:R,placeholder:"Choose color..."}),u?z.createElement(C8,{onClick:b}):null)},D8=wC});h();d();p();h();d();p();h();d();p();var f$=__STORYBOOK_API__,{ActiveTabs:g$,Consumer:m$,ManagerContext:_$,Provider:y$,RequestResponseError:x$,addons:Gt,combineParameters:b$,controlOrMetaKey:v$,controlOrMetaSymbol:S$,eventMatchesShortcut:w$,eventToShortcut:T$,experimental_requestResponse:C$,isMacLike:A$,isShortcutTaken:E$,keyToSymbol:I$,merge:R$,mockChannel:P$,optionOrAltSymbol:k$,shortcutMatchesShortcut:O$,shortcutToHumanString:L$,types:br,useAddonState:D$,useArgTypes:F$,useArgs:B$,useChannel:M$,useGlobalTypes:N$,useGlobals:_t,useParameter:z$,useSharedState:j$,useStoryPrepared:U$,useStorybookApi:$n,useStorybookState:H$}=__STORYBOOK_API__;h();d();p();h();d();p();var G$=__STORYBOOK_THEMING_CREATE__,{create:hp,themes:dp}=__STORYBOOK_THEMING_CREATE__;var pp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdQAAABiCAYAAADpwyKwAAAMZGlDQ1BJQ0MgUHJvZmlsZQAASImVlwdYU8kWgOe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2xIEBAFBQBDIBQhERqgMjFb5xrJ0irWoVpSkGLqjTlEqVSSOnZAO0aFjGedJlElV/Ti4kkpFMs0FY0tuURAQBASBXIVAZITKBMp/FqmCUFn/q39YvGVqUfpqx3Haf5TJFCTKUilUugglCEKFjdQMKShrTXPVeJObFQQEAUHgkkUgKkLF8hklqXJGBXfgnYIcJQnrTDOZRS3yBIFa/9nIlGEVJ6RLdmzJjQkCgoAgkKsQiIxQAZFDSgWxgmD5z0qcAVmqfy4BqSJKj9ryvhCpDyfZCAKCgCAgCFwSCEREqLhzTZ5Zt/yrMjajMmlyPZCoJlW9FTXvJTF25CYEAUFAEBAEDASiIlS0A/7U/1pq1WKqTaBcx85DUsWJkgQBQUAQEAQEgUsIgYgJFRhoadQQShU0el8Tp9oKkV5Cw0ZuRRAQBAQBQcCJQFSEqhtTBKpZVBc6tpBQJQkCgoAgIAgIApcqAp4QqgmOllqFQE1UJC8ICAKCgCBwqSPgOaFe6oDJ/QkCgoAgIAgIAv4QEEL1h4qUCQKCgCAgCAgCYSIghBomYFJdEBAEBAFBQBDwh4AQqj9UpEwQEAQEAUFAEAgTASHUMAGT6oKAICAICAKCgD8EhFD9oSJlgoAgIAgIAoJAmAgIoYYJmFQXBAQBQUAQEAT8ISCE6g8VKRMEBAFBQBAQBMJEQAg1TMCkuiAgCAgCgoAg4A8BIVR/qEiZICAICAKCgCAQJgJCqGECJtUFAUFAEBAEBAF/CAih+kNFygQBQUAQEAQEgTAREEINEzCpLggIAoKAICAI+ENACNUfKlImCAgCgoAgIAiEiYAQapiASXVBQBAQBAQBQcAfAkKo/lCRMkFAEBAEBAFBIEwEhFDDBEyqCwKCgCAgCAgC/hAQQvWHipQJAoKAICAICAJhIvD/Jvuro6vjJZoAAAAASUVORK5CYII=";var fp="2.25.1";var gp=hp({...dp.dark,base:"dark",brandTitle:`Lightning UI Components v${fp}`,brandUrl:"https://github.com/rdkcentral/Lightning-UI-Components",brandImage:pp});h();d();p();var Et="lui-addons",Vn=`${Et}/downloadbutton`,Gn=`${Et}/announcetoggle`,Yn=`${Et}/gridoverlaypanel`,mp=`${Et}/themepanel`,_p=`${Et}/componentstylespanel`,Xn=`${Et}/stagecolortoggle`,Kn=`${Et}/themepicker`;h();d();p();h();d();p();Ge();h();d();p();var pV=__STORYBOOK_COMPONENTS__,{A:fV,ActionBar:gV,AddonPanel:xp,Badge:mV,Bar:_V,Blockquote:yV,Button:xV,ClipboardCode:bV,Code:vV,DL:SV,Div:wV,DocumentWrapper:TV,EmptyTabContent:CV,ErrorFormatter:AV,FlexBar:EV,Form:IV,H1:RV,H2:PV,H3:kV,H4:OV,H5:LV,H6:DV,HR:FV,IconButton:Sr,IconButtonSkeleton:BV,Icons:wr,Img:MV,LI:NV,Link:zV,ListItem:jV,Loader:UV,Modal:HV,OL:WV,P:qV,Placeholder:$V,Pre:VV,ResetWrapper:GV,ScrollArea:YV,Separator:XV,Spaced:KV,Span:JV,StorybookIcon:QV,StorybookLogo:ZV,Symbols:eG,SyntaxHighlighter:tG,TT:rG,TabBar:iG,TabButton:bp,TabWrapper:sG,Table:nG,Tabs:oG,TabsState:aG,TooltipLinkList:vp,TooltipMessage:lG,TooltipNote:uG,UL:cG,WithTooltip:Sp,WithTooltipPure:hG,Zoom:dG,codeCommon:pG,components:fG,createCopyToClipboardFunction:gG,getStoryHref:mG,icons:_G,interleaveSeparators:yG,nameSpaceClassNames:xG,resetComponents:bG,withReset:vG}=__STORYBOOK_COMPONENTS__;var Pl=ye(Ce()),kl=hs(function(){let[{announce:e},t]=_t(),i=$n(),s=[!0,"true"].includes(e),n=ut(()=>{t({announce:!s})},[s]);return He(()=>{i.setAddonShortcut(Et,{label:"Announce Toggle [0]",actionName:"Announce",action:n})},[n,i]),(0,Pl.jsx)(Sr,{active:s,title:"Toggle a11y announcing (voice guidance) of components",onClick:n,children:(0,Pl.jsx)(wr,{icon:"speaker"})},Gn)});h();d();p();Ge();var Ol=ye(Ce()),Ll=hs(function(){let[{stageColor:e},t]=_t(),i=$n(),s=[!0,"true"].includes(e),n=ut(()=>{t({stageColor:!s})},[s]);return He(()=>{i.setAddonShortcut(Et,{label:"Stage Color Toggle",actionName:"stage color",showInMenu:!1,action:n})},[n,i]),(0,Ol.jsx)(Sr,{active:s,title:"Switch stage color",onClick:n,children:(0,Ol.jsx)(wr,{icon:"paintbrush"})},Xn)});h();d();p();Ge();h();d();p();h();d();p();h();d();p();h();d();p();var fe=class r{static mergeNumbers(e,t,i){return e*i+t*(1-i)}static rgb(e,t,i){return(e<<16)+(t<<8)+i+255*16777216}static rgba(e,t,i,s){return(e<<16)+(t<<8)+i+(s*255|0)*16777216}static getRgbString(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256;return"rgb("+t+","+i+","+s+")"}static getRgbaString(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=(e/16777216|0)/255;return"rgba("+t+","+i+","+s+","+n.toFixed(4)+")"}static getRgbaStringFromArray(e){let t=Math.floor(e[0]*255),i=Math.floor(e[1]*255),s=Math.floor(e[2]*255),n=Math.floor(e[3]*255)/255;return"rgba("+t+","+i+","+s+","+n.toFixed(4)+")"}static getRgbaComponentsNormalized(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=e/16777216|0;return[t/255,i/255,s/255,n/255]}static getRgbComponentsNormalized(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256;return[t/255,i/255,s/255]}static getRgbaComponents(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=e/16777216|0;return[t,i,s,n]}static getArgbNumber(e){e[0]=Math.max(0,Math.min(255,e[0])),e[1]=Math.max(0,Math.min(255,e[1])),e[2]=Math.max(0,Math.min(255,e[2])),e[3]=Math.max(0,Math.min(255,e[3]));let t=((e[3]|0)<<24)+((e[0]|0)<<16)+((e[1]|0)<<8)+(e[2]|0);return t<0&&(t=4294967295+t+1),t}static mergeColors(e,t,i){let s=(e/65536|0)%256,n=(e/256|0)%256,o=e%256,a=e/16777216|0,l=(t/65536|0)%256,u=(t/256|0)%256,c=t%256,g=t/16777216|0,m=s*i+l*(1-i),y=n*i+u*(1-i),b=o*i+c*(1-i),C=a*i+g*(1-i);return Math.round(C)*16777216+Math.round(m)*65536+Math.round(y)*256+Math.round(b)}static mergeMultiColors(e,t){let i=0,s=0,n=0,o=0,a=0,l=e.length;for(let u=0;u>16&255)*i/255&255)+((e&65280)*i/255&65280)+(((e&255)<<16)*i/255&16711680)+(i<<24)}static rad(e){return e*(Math.PI/180)}static getTimingBezier(e,t,i,s){let n=3*e,o=3*(i-e)-n,a=1-n-o,l=3*t,u=3*(s-t)-l,c=1-l-u;return function(g){if(g>=1)return 1;if(g<=0)return 0;let m=.5,y,b,C;for(let R=0;R<20;R++){if(y=m*(m*(m*a+o)+n),C=g-y,C>-1e-8&&C<1e-8)return m*(m*(m*c+u)+l);if(b=m*(m*(3*a)+2*o)+n,b>1e-10&&b<1e-10)break;m+=C/b}let A=0,T=1;for(let R=0;R<20;R++){if(m=.5*(A+T),y=m*(m*(m*a+o)+n),C=g-y,C>-1e-8&&C<1e-8)return m*(m*(m*c+u)+l);C<0?T=m:A=m}}}static getTimingFunction(e){switch(e){case"linear":return function(i){return i};case"ease":return r.getTimingBezier(.25,.1,.25,1);case"ease-in":return r.getTimingBezier(.42,0,1,1);case"ease-out":return r.getTimingBezier(0,0,.58,1);case"ease-in-out":return r.getTimingBezier(.42,0,.58,1);case"step-start":return function(){return 1};case"step-end":return function(i){return i===1?1:0};default:let t="cubic-bezier(";if(e&&e.indexOf(t)===0){let i=e.substr(t.length,e.length-t.length-1).split(",");if(i.length!==4)return console.warn("[Lightning] Unknown timing function: "+e),function(l){return l};let s=parseFloat(i[0]),n=parseFloat(i[1]),o=parseFloat(i[2]),a=parseFloat(i[3]);return isNaN(s)||isNaN(n)||isNaN(o)||isNaN(a)?(console.warn("[Lightning] Unknown timing function: "+e),function(l){return l}):r.getTimingBezier(s,n,o,a)}else return console.warn("[Lightning] Unknown timing function: "+e),function(i){return i}}}},K=class{static isFunction(e){return typeof e=="function"}static isNumber(e){return typeof e=="number"}static isInteger(e){return typeof e=="number"&&e%1===0}static isBoolean(e){return e===!0||e===!1}static isString(e){return typeof e=="string"}static clone(e){return K.isObjectLiteral(e)||Array.isArray(e)?K.getDeepClone(e):e}static cloneObjShallow(e){let t=Object.keys(e),i={};for(let s=0;s=65&&e<=90}};K.isWeb=typeof window<"u"&&typeof sparkscene>"u";K.isWPE=K.isWeb&&navigator.userAgent.indexOf("WPE")!==-1;K.isSpark=typeof sparkscene<"u";K.isNode=typeof window>"u"||K.isSpark;K.isPS4=K.isWeb&&navigator.userAgent.indexOf("PlayStation 4")!==-1;K.isZiggo=K.isWeb&&(navigator.userAgent.indexOf("EOSSTB")!==-1||navigator.userAgent.indexOf("HZNSTB")!==-1);var dt=class r{static defaultSetter(e,t,i){e[t]=i}static patchObject(e,t){if(!K.isObjectLiteral(t))console.error("[Lightning] Settings must be object literal");else{let i=Object.keys(t);for(let s=0,n=i.length;s0&&(a=t/n.length);let l=i;for(let u=0,c=n.length;u0&&(i=Math.max(i,s)),i}static getPlainAxisMinSize(e,t){return e.isFlexEnabled()?e._flex._layout.getAxisMinSize(t):e.flexItem.shrink!==0?0:this.getRelAxisSize(e,t)}static resizeAxis(e,t,i){e.isFlexEnabled()?e._flex._horizontal===t?e._flex._layout.resizeMainAxis(i):e._flex._layout.resizeCrossAxis(i):this.setAxisLayoutSize(e,t,i)}static getPaddingOffset(e,t){if(e.isFlexEnabled()){let i=e._flex;return t?i.paddingLeft:i.paddingTop}else return 0}static getTotalPadding(e,t){if(e.isFlexEnabled()){let i=e._flex;return t?i.paddingRight+i.paddingLeft:i.paddingTop+i.paddingBottom}else return 0}static getMarginOffset(e,t){let i=e.flexItem;return i?t?i.marginLeft:i.marginTop:0}static getTotalMargin(e,t){let i=e.flexItem;return i?t?i.marginRight+i.marginLeft:i.marginTop+i.marginBottom:0}},Fl=class{constructor(e){this._line=e,this._amountRemaining=0,this._shrunkSize=0}shrink(e){this._shrunkSize=0,this._amountRemaining=e;let t=this._getTotalShrinkAmount();if(t){let i=this._line.items;do{let s=this._amountRemaining/t;for(let n=this._line.startIndex;n<=this._line.endIndex;n++){let a=i[n].flexItem,l=a.shrink;if(l>0){let c=l*s,g=a._getMainAxisMinSize(),m=a._getMainAxisLayoutSize();if(m>g){let y=m-g;c>=y&&(c=y,t-=l);let C=m-c;if(a._resizeMainAxis(C),this._shrunkSize+=c,this._amountRemaining-=c,Math.abs(this._amountRemaining)<1e-5)return}}}}while(t&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalShrinkAmount(){let e=0,t=this._line.items;for(let i=this._line.startIndex;i<=this._line.endIndex;i++){let n=t[i].flexItem;if(n.shrink){let o=n._getMainAxisMinSize();n._getMainAxisLayoutSize()>o&&(e+=n.shrink)}}return e}getShrunkSize(){return this._shrunkSize}},Bl=class{constructor(e){this._line=e,this._amountRemaining=0,this._grownSize=0}grow(e){this._grownSize=0,this._amountRemaining=e;let t=this._getTotalGrowAmount();if(t){let i=this._line.items;do{let s=this._amountRemaining/t;for(let n=this._line.startIndex;n<=this._line.endIndex;n++){let a=i[n].flexItem,l=a.grow;if(l>0){let c=l*s,g=a._getMainAxisMaxSizeSetting(),m=a._getMainAxisLayoutSize();if(g>0)if(m>=g)c=0;else{let y=g-m;c>=y&&(c=y,t-=l)}if(c>0){let y=m+c;if(a._resizeMainAxis(y),this._grownSize+=c,this._amountRemaining-=c,Math.abs(this._amountRemaining)<1e-5)return}}}}while(t&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalGrowAmount(){let e=0,t=this._line.items;for(let i=this._line.startIndex;i<=this._line.endIndex;i++){let n=t[i].flexItem;if(n.grow){let o=n._getMainAxisMaxSizeSetting(),a=n._getMainAxisLayoutSize();(o===0||a0&&(i=Math.max(i,s));let n=e._getCrossAxisMaxSizeSetting();n>0&&(i=Math.min(i,n)),e._resizeCrossAxis(i),e._getMainAxisLayoutSize()!==t&&(this._recursiveResizeOccured=!0)}_preventStretch(e){let t=e._hasFixedCrossAxisSize(),i=e.alignSelf==="stretch";return t&&!i}},zl=class{constructor(e,t,i,s){this._layout=e,this.items=e.items,this.startIndex=t,this.endIndex=i,this._availableSpace=s}performLayout(){this._setItemSizes(),this.setItemPositions(),this._calcLayoutInfo()}_setItemSizes(){this._availableSpace>0?this._growItemSizes(this._availableSpace):this._availableSpace<0&&this._shrinkItemSizes(-this._availableSpace)}_growItemSizes(e){let t=new Bl(this);t.grow(e),this._availableSpace-=t.getGrownSize()}_shrinkItemSizes(e){let t=new Fl(this);t.shrink(e),this._availableSpace+=t.getShrunkSize()}setItemPositions(){new Ml(this).position()}createItemAligner(){return new Nl(this)}_calcLayoutInfo(){this._calcCrossAxisMaxLayoutSize()}getMainAxisMinSize(){let e=0;for(let t=this.startIndex;t<=this.endIndex;t++){let i=this.items[t];e+=i.flexItem._getMainAxisMinSizeWithPaddingAndMargin()}return e}get numberOfItems(){return this.endIndex-this.startIndex+1}get crossAxisLayoutSize(){let e=this._layout.isCrossAxisFitToContents()&&!this._layout.resizingCrossAxis;return this._layout.isWrapping()||e?this._crossAxisMaxLayoutSize:this._layout.crossAxisSize}_calcCrossAxisMaxLayoutSize(){this._crossAxisMaxLayoutSize=this._getCrossAxisMaxLayoutSize()}_getCrossAxisMaxLayoutSize(){let e=0;for(let t=this.startIndex;t<=this.endIndex;t++){let i=this.items[t];e=Math.max(e,i.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin())}return e}},jl=class{constructor(e){this._layout=e,this._mainAxisMinSize=-1,this._crossAxisMinSize=-1,this._mainAxisContentSize=0}get lines(){return this._lines}get mainAxisMinSize(){return this._mainAxisMinSize===-1&&(this._mainAxisMinSize=this._getMainAxisMinSize()),this._mainAxisMinSize}get crossAxisMinSize(){return this._crossAxisMinSize===-1&&(this._crossAxisMinSize=this._getCrossAxisMinSize()),this._crossAxisMinSize}get mainAxisContentSize(){return this._mainAxisContentSize}layoutLines(){this._setup();let e=this._layout.items,t=this._layout.isWrapping(),i=0,s,n=e.length;for(s=0;si&&this._curMainAxisPos+a>this._mainAxisSize&&(this._layoutLine(i,s-1),this._curMainAxisPos=0,i=s),this._addToMainAxisPos(a)}ithis._maxMainAxisPos&&(this._maxMainAxisPos=this._curMainAxisPos)}_layoutLine(e,t){let i=this._getAvailableMainAxisLayoutSpace(),s=new zl(this._layout,e,t,i);s.performLayout(),this._lines.push(s),(this._mainAxisContentSize===0||this._curMainAxisPos>this._mainAxisContentSize)&&(this._mainAxisContentSize=this._curMainAxisPos)}_getAvailableMainAxisLayoutSpace(){return!this._layout.resizingMainAxis&&this._layout.isMainAxisFitToContents()?0:this._mainAxisSize-this._curMainAxisPos}_getCrossAxisMinSize(){let e=0,t=this._layout.items;for(let i=0,s=t.length;i0?this.performResizeMainAxis(e):this._checkValidCacheMainAxisResize()?(this.mainAxisSize=e,this._fitCrossAxisSizeToContents()):(this.item.enableLocalRecalcFlag(),this.performResizeMainAxis(e)))}_checkValidCacheMainAxisResize(e){return e===this.targetMainAxisSize||!this.isCrossAxisFitToContents()}performResizeMainAxis(e){let t=e0?this.performResizeCrossAxis(e):this.crossAxisSize=e)}performResizeCrossAxis(e){this.crossAxisSize=e,this._resizingCrossAxis=!0,this._layoutCrossAxis(),this._resizingCrossAxis=!1}get targetMainAxisSize(){return this._horizontal?this.item.target.w:this.item.target.h}get targetCrossAxisSize(){return this._horizontal?this.item.target.h:this.item.target.w}getParentFlexContainer(){return this.item.isFlexItemEnabled()?this.item.flexItem.ctr:null}_getHorizontalPadding(){return pe.getTotalPadding(this.item,!0)}_getVerticalPadding(){return pe.getTotalPadding(this.item,!1)}_getHorizontalPaddingOffset(){return pe.getPaddingOffset(this.item,!0)}_getVerticalPaddingOffset(){return pe.getPaddingOffset(this.item,!1)}_getMainAxisBasis(){return pe.getRelAxisSize(this.item,this._horizontal)}_getCrossAxisBasis(){return pe.getRelAxisSize(this.item,!this._horizontal)}get _horizontal(){return this._flexContainer._horizontal}get _reverse(){return this._flexContainer._reverse}get item(){return this._flexContainer.item}get items(){return this.item.items}get resizingMainAxis(){return this._resizingMainAxis}get resizingCrossAxis(){return this._resizingCrossAxis}get numberOfItems(){return this.items.length}get mainAxisSize(){return pe.getAxisLayoutSize(this.item,this._horizontal)}get crossAxisSize(){return pe.getAxisLayoutSize(this.item,!this._horizontal)}set mainAxisSize(e){pe.setAxisLayoutSize(this.item,this._horizontal,e)}set crossAxisSize(e){pe.setAxisLayoutSize(this.item,!this._horizontal,e)}},Tr=class r{constructor(e){this._item=e,this._layout=new Hl(this),this._horizontal=!0,this._reverse=!1,this._wrap=!1,this._alignItems="stretch",this._justifyContent="flex-start",this._alignContent="flex-start",this._paddingLeft=0,this._paddingTop=0,this._paddingRight=0,this._paddingBottom=0}get item(){return this._item}_changedDimensions(){this._item.changedDimensions()}_changedContents(){this._item.changedContents()}get direction(){return(this._horizontal?"row":"column")+(this._reverse?"-reverse":"")}set direction(e){this.direction!==e&&(this._horizontal=e==="row"||e==="row-reverse",this._reverse=e==="row-reverse"||e==="column-reverse",this._changedContents())}set wrap(e){this._wrap=e,this._changedContents()}get wrap(){return this._wrap}get alignItems(){return this._alignItems}set alignItems(e){if(this._alignItems!==e){if(r.ALIGN_ITEMS.indexOf(e)===-1)throw new Error("Unknown alignItems, options: "+r.ALIGN_ITEMS.join(","));this._alignItems=e,this._changedContents()}}get alignContent(){return this._alignContent}set alignContent(e){if(this._alignContent!==e){if(r.ALIGN_CONTENT.indexOf(e)===-1)throw new Error("Unknown alignContent, options: "+r.ALIGN_CONTENT.join(","));this._alignContent=e,this._changedContents()}}get justifyContent(){return this._justifyContent}set justifyContent(e){if(this._justifyContent!==e){if(r.JUSTIFY_CONTENT.indexOf(e)===-1)throw new Error("Unknown justifyContent, options: "+r.JUSTIFY_CONTENT.join(","));this._justifyContent=e,this._changedContents()}}set padding(e){this.paddingLeft=e,this.paddingTop=e,this.paddingRight=e,this.paddingBottom=e}get padding(){return this.paddingLeft}set paddingLeft(e){this._paddingLeft=e,this._changedDimensions()}get paddingLeft(){return this._paddingLeft}set paddingTop(e){this._paddingTop=e,this._changedDimensions()}get paddingTop(){return this._paddingTop}set paddingRight(e){this._paddingRight=e,this._changedDimensions()}get paddingRight(){return this._paddingRight}set paddingBottom(e){this._paddingBottom=e,this._changedDimensions()}get paddingBottom(){return this._paddingBottom}patch(e){dt.patchObject(this,e)}};Tr.ALIGN_ITEMS=["flex-start","flex-end","center","stretch"];Tr.ALIGN_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly","stretch"];Tr.JUSTIFY_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly"];var Zn=class r{constructor(e){this._ctr=null,this._item=e,this._grow=0,this._shrink=r.SHRINK_AUTO,this._alignSelf=void 0,this._minWidth=0,this._minHeight=0,this._maxWidth=0,this._maxHeight=0,this._marginLeft=0,this._marginTop=0,this._marginRight=0,this._marginBottom=0}get item(){return this._item}get grow(){return this._grow}set grow(e){this._grow!==e&&(this._grow=parseInt(e)||0,this._changed())}get shrink(){return this._shrink===r.SHRINK_AUTO?this._getDefaultShrink():this._shrink}_getDefaultShrink(){return this.item.isFlexEnabled()?1:0}set shrink(e){this._shrink!==e&&(this._shrink=parseInt(e)||0,this._changed())}get alignSelf(){return this._alignSelf}set alignSelf(e){if(this._alignSelf!==e){if(e===void 0)this._alignSelf=void 0;else{if(Tr.ALIGN_ITEMS.indexOf(e)===-1)throw new Error("Unknown alignSelf, options: "+Tr.ALIGN_ITEMS.join(","));this._alignSelf=e}this._changed()}}get minWidth(){return this._minWidth}set minWidth(e){this._minWidth=Math.max(0,e),this._item.changedDimensions(!0,!1)}get minHeight(){return this._minHeight}set minHeight(e){this._minHeight=Math.max(0,e),this._item.changedDimensions(!1,!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth=Math.max(0,e),this._item.changedDimensions(!0,!1)}get maxHeight(){return this._maxHeight}set maxHeight(e){this._maxHeight=Math.max(0,e),this._item.changedDimensions(!1,!0)}set margin(e){this.marginLeft=e,this.marginTop=e,this.marginRight=e,this.marginBottom=e}get margin(){return this.marginLeft}set marginLeft(e){this._marginLeft=e,this._changed()}get marginLeft(){return this._marginLeft}set marginTop(e){this._marginTop=e,this._changed()}get marginTop(){return this._marginTop}set marginRight(e){this._marginRight=e,this._changed()}get marginRight(){return this._marginRight}set marginBottom(e){this._marginBottom=e,this._changed()}get marginBottom(){return this._marginBottom}_changed(){this.ctr&&this.ctr._changedContents()}set ctr(e){this._ctr=e}get ctr(){return this._ctr}patch(e){dt.patchObject(this,e)}_resetLayoutSize(){this._resetHorizontalAxisLayoutSize(),this._resetVerticalAxisLayoutSize()}_resetCrossAxisLayoutSize(){this.ctr._horizontal?this._resetVerticalAxisLayoutSize():this._resetHorizontalAxisLayoutSize()}_resetHorizontalAxisLayoutSize(){let e=pe.getRelAxisSize(this.item,!0);this._minWidth&&(e=Math.max(this._minWidth,e)),this._maxWidth&&(e=Math.min(this._maxWidth,e)),pe.setAxisLayoutSize(this.item,!0,e)}_resetVerticalAxisLayoutSize(){let e=pe.getRelAxisSize(this.item,!1);this._minHeight&&(e=Math.max(this._minHeight,e)),this._maxHeight&&(e=Math.min(this._maxHeight,e)),pe.setAxisLayoutSize(this.item,!1,e)}_getCrossAxisMinSizeSetting(){return this._getMinSizeSetting(!this.ctr._horizontal)}_getCrossAxisMaxSizeSetting(){return this._getMaxSizeSetting(!this.ctr._horizontal)}_getMainAxisMaxSizeSetting(){return this._getMaxSizeSetting(this.ctr._horizontal)}_getMinSizeSetting(e){return e?this._minWidth:this._minHeight}_getMaxSizeSetting(e){return e?this._maxWidth:this._maxHeight}_getMainAxisMinSize(){return pe.getAxisMinSize(this.item,this.ctr._horizontal)}_getCrossAxisMinSize(){return pe.getAxisMinSize(this.item,!this.ctr._horizontal)}_getMainAxisLayoutSize(){return pe.getAxisLayoutSize(this.item,this.ctr._horizontal)}_getMainAxisLayoutPos(){return pe.getAxisLayoutPos(this.item,this.ctr._horizontal)}_setMainAxisLayoutPos(e){return pe.setAxisLayoutPos(this.item,this.ctr._horizontal,e)}_setCrossAxisLayoutPos(e){return pe.setAxisLayoutPos(this.item,!this.ctr._horizontal,e)}_getCrossAxisLayoutSize(){return pe.getAxisLayoutSize(this.item,!this.ctr._horizontal)}_resizeCrossAxis(e){return pe.resizeAxis(this.item,!this.ctr._horizontal,e)}_resizeMainAxis(e){return pe.resizeAxis(this.item,this.ctr._horizontal,e)}_getMainAxisPadding(){return pe.getTotalPadding(this.item,this.ctr._horizontal)}_getCrossAxisPadding(){return pe.getTotalPadding(this.item,!this.ctr._horizontal)}_getMainAxisMargin(){return pe.getTotalMargin(this.item,this.ctr._horizontal)}_getCrossAxisMargin(){return pe.getTotalMargin(this.item,!this.ctr._horizontal)}_getHorizontalMarginOffset(){return pe.getMarginOffset(this.item,!0)}_getVerticalMarginOffset(){return pe.getMarginOffset(this.item,!1)}_getMainAxisMinSizeWithPaddingAndMargin(){return this._getMainAxisMinSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisMinSizeWithPaddingAndMargin(){return this._getCrossAxisMinSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_getMainAxisLayoutSizeWithPaddingAndMargin(){return this._getMainAxisLayoutSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisLayoutSizeWithPaddingAndMargin(){return this._getCrossAxisLayoutSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_hasFixedCrossAxisSize(){return!pe.isZeroAxisSize(this.item,!this.ctr._horizontal)}_hasRelCrossAxisSize(){return!!(this.ctr._horizontal?this.item.funcH:this.item.funcW)}};Zn.SHRINK_AUTO=-1;var Wl=class{constructor(e){this._target=e,this._recalc=0,this._enabled=!1,this.x=0,this.y=0,this.w=0,this.h=0,this._originalX=0,this._originalY=0,this._originalWidth=0,this._originalHeight=0,this._flex=null,this._flexItem=null,this._flexItemDisabled=!1,this._items=null}get flexLayout(){return this.flex?this.flex._layout:null}layoutFlexTree(){this.isFlexEnabled()&&this.isChanged()&&this.flexLayout.layoutTree()}get target(){return this._target}get flex(){return this._flex}set flex(e){e?(this.isFlexEnabled()||this._enableFlex(),this._flex.patch(e)):this.isFlexEnabled()&&this._disableFlex()}get flexItem(){return this._flexItemDisabled?!1:(this._ensureFlexItem(),this._flexItem)}set flexItem(e){if(e===!1){if(!this._flexItemDisabled){let t=this.flexParent;this._flexItemDisabled=!0,this._checkEnabled(),t&&(t._clearFlexItemsCache(),t.changedContents())}}else if(this._ensureFlexItem(),this._flexItem.patch(e),this._flexItemDisabled){this._flexItemDisabled=!1,this._checkEnabled();let t=this.flexParent;t&&(t._clearFlexItemsCache(),t.changedContents())}}_enableFlex(){this._flex=new Tr(this),this._checkEnabled(),this.changedDimensions(),this._enableChildrenAsFlexItems()}_disableFlex(){this.changedDimensions(),this._flex=null,this._checkEnabled(),this._disableChildrenAsFlexItems()}_enableChildrenAsFlexItems(){let e=this._target._children;if(e)for(let t=0,i=e.length;t0}_updateRecalc(e=!1,t=!1){if(this.isFlexEnabled()){let n=this._flex._layout;e=e||n.isAxisFitToContents(!0),t=t||n.isAxisFitToContents(!1)}let i=1+(e?2:0)+(t?4:0),s=this.getNewRecalcFlags(i);this._recalc|=i,s>1?this.flexParent?this.flexParent._updateRecalcBottomUp(i):this._target.triggerLayout():this._target.triggerLayout()}getNewRecalcFlags(e){return 7-this._recalc&e}_updateRecalcBottomUp(e){let t=this._getRecalcFromChangedChildRecalc(e),i=this.getNewRecalcFlags(t);if(this._recalc|=t,i>1){let s=this.flexParent;s?s._updateRecalcBottomUp(t):this._target.triggerLayout()}else this._target.triggerLayout()}_getRecalcFromChangedChildRecalc(e){let t=this._flex._layout,i=t._horizontal?1:2,s=t._horizontal?2:1;e&s||e&i&&t.isWrapping()&&t.isCrossAxisFitToContents()&&(e+=s);let o=t.isAxisFitToContents(!0),a=t.isAxisFitToContents(!1);t.shrunk&&(t._horizontal?o=!0:a=!0);let l=1+(o?2:0)+(a?4:0);return e&l}get recalc(){return this._recalc}clearRecalcFlag(){this._recalc=0}enableLocalRecalcFlag(){this._recalc=1}get originalX(){return this._originalX}setOriginalXWithoutUpdatingLayout(e){this._originalX=e}get originalY(){return this._originalY}setOriginalYWithoutUpdatingLayout(e){this._originalY=e}get originalWidth(){return this._originalWidth}set originalWidth(e){this._originalWidth!==e&&(this._originalWidth=e,this.changedDimensions(!0,!1))}get originalHeight(){return this._originalHeight}set originalHeight(e){this._originalHeight!==e&&(this._originalHeight=e,this.changedDimensions(!1,!0))}get funcX(){return this._target.funcX}get funcY(){return this._target.funcY}get funcW(){return this._target.funcW}get funcH(){return this._target.funcH}},mi=class r{constructor(e,t=null){this.id=r.id++,this.manager=e,this.stage=e.stage,this.textures=new Set,this._activeTextureCount=0,this.loader=t,this.lookupId=null,this._cancelCb=null,this.loadingSince=0,this.w=0,this.h=0,this._nativeTexture=null,this.permanent=!1,this.renderInfo=null,this._isResultTexture=!this.loader,this._loadError=null,this._imageRef=null,this._hasAlpha=!1}get hasAlpha(){return this._hasAlpha}get loadError(){return this._loadError}addTexture(e){this.textures.has(e)||this.textures.add(e)}removeTexture(e){this.textures.delete(e)}incActiveTextureCount(){this._activeTextureCount++,this._activeTextureCount===1&&this.becomesUsed()}decActiveTextureCount(){this._activeTextureCount--,this._activeTextureCount===0&&this.becomesUnused()}get isResultTexture(){return this._isResultTexture}set isResultTexture(e){this._isResultTexture=e}forEachEnabledElement(e){this.textures.forEach(t=>{t.elements.forEach(e)})}hasEnabledElements(){return this.textures.size>0}forEachActiveElement(e){this.textures.forEach(t=>{t.elements.forEach(i=>{i.active&&e(i)})})}getRenderWidth(){return this.w}getRenderHeight(){return this.h}allowCleanup(){return!this.permanent&&!this.isUsed()}becomesUsed(){this.load()}becomesUnused(){this.cancel()}cancel(){this.isLoading()&&(this._cancelCb&&(this._cancelCb(this),this._cancelCb=null),this.loadingSince=0)}isLoaded(){return!!this._nativeTexture}isLoading(){return this.loadingSince>0}isError(){return!!this._loadError}reload(){this.free(),this.isUsed()&&this.load()}load(e=!1){this.isResultTexture||!this._nativeTexture&&!this.isLoading()&&(this.loadingSince=new Date().getTime(),this._cancelCb=this.loader((t,i)=>{if(this.isLoading()){if(this._cancelCb=null,this.manager.stage.destroyed)return;if(t)this.onError(t);else if(i&&i.source)if(!this.stage.isUpdatingFrame()&&!e&&i.throttle!==!1){let s=this.stage.textureThrottler;this._cancelCb=s.genericCancelCb,s.add(this,i)}else this.processLoadedSource(i)}},this))}processLoadedSource(e){this.loadingSince=0,this.setSource(e)}setSource(e){let t=e.source;this._hasAlpha=e&&e.hasAlpha||!1,this.w=t.width||e&&e.w||0,this.h=t.height||e&&e.h||0,e&&e.renderInfo&&(this.renderInfo=e.renderInfo),this.permanent=!!e.permanent,e&&e.imageRef&&(this._imageRef=e.imageRef),e&&e.flipTextureY?this._flipTextureY=e.flipTextureY:this._flipTextureY=!1,this._isNativeTexture(t)?(this._nativeTexture=t,this.w=this.w||t.w,this.h=this.h||t.h,this.permanent=e.hasOwnProperty("permanent")?e.permanent:!0):this.manager.uploadTextureSource(this,e),this._loadError=null,this.onLoad()}isUsed(){return this._activeTextureCount>0}onLoad(){this.isUsed()&&this.textures.forEach(e=>{e.onLoad()})}forceRenderUpdate(){this._nativeTexture&&(this._nativeTexture.update=this.stage.frameCounter),this.forEachActiveElement(function(e){e.forceRenderUpdate()})}forceUpdateRenderCoords(){this.forEachActiveElement(function(e){e._updateTextureCoords()})}get nativeTexture(){return this._nativeTexture}clearNativeTexture(){this._nativeTexture=null,this._imageRef=null}replaceNativeTexture(e,t,i){let s=this._nativeTexture;this._nativeTexture=e,this.w=t,this.h=i,!s&&this._nativeTexture&&this.forEachActiveElement(n=>n.onTextureSourceLoaded()),this._nativeTexture||this.forEachActiveElement(n=>n._setDisplayedTexture(null)),this.forEachEnabledElement(n=>n._updateDimensions())}onError(e){this._loadError=e,this.loadingSince=0,console.error("[Lightning] texture load error",e,this.lookupId),this.forEachActiveElement(t=>t.onTextureSourceLoadError(e))}free(){this.isLoaded()&&this.manager.freeTextureSource(this)}_isNativeTexture(e){return K.isNode?e.constructor.name==="WebGLTexture":"WebGLTexture"in window?e instanceof WebGLTexture:!1}};mi.prototype.isTextureSource=!0;mi.id=1;var eo=class{constructor(e){this._element=e.element,this._core=e,this.ctx=this._core.ctx,this._enabled=!1,this.lazy=!1,this._colorize=!1,this._renderTexture=null,this._renderTextureReused=!1,this._resultTextureSource=null,this._renderOffscreen=!1,this.empty=!1}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._core.updateRenderToTextureEnabled()}get renderOffscreen(){return this._renderOffscreen}set renderOffscreen(e){this._renderOffscreen=e,this._core.setHasRenderUpdates(1),this._core._setRecalc(6)}get colorize(){return this._colorize}set colorize(e){this._colorize!==e&&(this._colorize=e,this._core.setHasRenderUpdates(1))}_getTextureSource(){return this._resultTextureSource||(this._resultTextureSource=new mi(this._element.stage.textureManager),this.updateResultTexture()),this._resultTextureSource}hasResultTexture(){return!!this._resultTextureSource}resultTextureInUse(){return this._resultTextureSource&&this._resultTextureSource.hasEnabledElements()}updateResultTexture(){let e=this.getResultTexture();if(this._resultTextureSource){if(this._resultTextureSource.nativeTexture!==e){let t=e?e.w:0,i=e?e.h:0;this._resultTextureSource.replaceNativeTexture(e,t,i)}this._resultTextureSource.forEachEnabledElement(t=>{t._updateDimensions(),t.core.setHasRenderUpdates(3)})}}mustRenderToTexture(){return this._enabled&&!this.lazy?!0:!!(this._enabled&&this.lazy&&this._core._hasRenderUpdates<3)}deactivate(){this.release()}get renderTextureReused(){return this._renderTextureReused}release(){this.releaseRenderTexture()}releaseRenderTexture(){this._renderTexture&&(this._renderTextureReused||this.ctx.releaseRenderTexture(this._renderTexture),this._renderTexture=null,this._renderTextureReused=!1,this.updateResultTexture())}reuseTextureAsRenderTexture(e){this._renderTexture!==e&&(this.releaseRenderTexture(),this._renderTexture=e,this._renderTextureReused=!0)}hasRenderTexture(){return!!this._renderTexture}getRenderTexture(){return this._renderTexture||(this._renderTexture=this.ctx.allocateRenderTexture(this._core._w,this._core._h),this._renderTextureReused=!1),this._renderTexture}getResultTexture(){return this._renderTexture}},ds=class r{constructor(e){this._element=e,this.ctx=e.stage.ctx,this._recalc=0,this._parent=null,this._onUpdate=null,this._pRecalc=0,this._worldContext=new sr,this._hasUpdates=!1,this._localAlpha=1,this._onAfterCalcs=null,this._onAfterUpdate=null,this._localPx=0,this._localPy=0,this._localTa=1,this._localTb=0,this._localTc=0,this._localTd=1,this._isComplex=!1,this._dimsUnknown=!1,this._clipping=!1,this._zSort=!1,this._outOfBounds=0,this._displayedTextureSource=null,this._zContextUsage=0,this._children=null,this._hasRenderUpdates=0,this._zIndexedChildren=null,this._renderContext=this._worldContext,this.renderState=this.ctx.renderState,this._scissor=null,this._shaderOwner=null,this._updateTreeOrder=0,this._colorUl=this._colorUr=this._colorBl=this._colorBr=4294967295,this._x=0,this._y=0,this._w=0,this._h=0,this._optFlags=0,this._funcX=null,this._funcY=null,this._funcW=null,this._funcH=null,this._scaleX=1,this._scaleY=1,this._pivotX=.5,this._pivotY=.5,this._mountX=0,this._mountY=0,this._rotation=0,this._alpha=1,this._visible=!0,this._ulx=0,this._uly=0,this._brx=1,this._bry=1,this._zIndex=0,this._forceZIndexContext=!1,this._zParent=null,this._isRoot=!1,this._zIndexResort=!1,this._shader=null,this._renderToTextureEnabled=!1,this._texturizer=null,this._useRenderToTexture=!1,this._boundsMargin=null,this._recBoundsMargin=null,this._withinBoundsMargin=!1,this._viewport=null,this._clipbox=!0,this.render=this._renderSimple,this._layout=null}get offsetX(){return this._funcX?this._funcX:this.hasFlexLayout()?this._layout.originalX:this._x}set offsetX(e){K.isFunction(e)?this.funcX=e:(this._disableFuncX(),this.hasFlexLayout()?(this.x+=e-this._layout.originalX,this._layout.setOriginalXWithoutUpdatingLayout(e)):this.x=e)}get x(){return this._x}set x(e){e!==this._x&&(this._updateLocalTranslateDelta(e-this._x,0),this._x=e)}get funcX(){return this._optFlags&1?this._funcX:null}set funcX(e){this._funcX!==e&&(this._optFlags|=1,this._funcX=e,this.hasFlexLayout()?(this._layout.setOriginalXWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._x=0,this._triggerRecalcTranslate()))}_disableFuncX(){this._optFlags=this._optFlags&65534,this._funcX=null}get offsetY(){return this._funcY?this._funcY:this.hasFlexLayout()?this._layout.originalY:this._y}set offsetY(e){K.isFunction(e)?this.funcY=e:(this._disableFuncY(),this.hasFlexLayout()?(this.y+=e-this._layout.originalY,this._layout.setOriginalYWithoutUpdatingLayout(e)):this.y=e)}get y(){return this._y}set y(e){e!==this._y&&(this._updateLocalTranslateDelta(0,e-this._y),this._y=e)}get funcY(){return this._optFlags&2?this._funcY:null}set funcY(e){this._funcY!==e&&(this._optFlags|=2,this._funcY=e,this.hasFlexLayout()?(this._layout.setOriginalYWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._y=0,this._triggerRecalcTranslate()))}_disableFuncY(){this._optFlags=this._optFlags&65533,this._funcY=null}get funcW(){return this._optFlags&4?this._funcW:null}set funcW(e){this._funcW!==e&&(this._optFlags|=4,this._funcW=e,this.hasFlexLayout()?(this._layout._originalWidth=0,this.layout.changedDimensions(!0,!1)):(this._w=0,this._triggerRecalcTranslate()))}disableFuncW(){this._optFlags=this._optFlags&65531,this._funcW=null}get funcH(){return this._optFlags&8?this._funcH:null}set funcH(e){this._funcH!==e&&(this._optFlags|=8,this._funcH=e,this.hasFlexLayout()?(this._layout._originalHeight=0,this.layout.changedDimensions(!1,!0)):(this._h=0,this._triggerRecalcTranslate()))}disableFuncH(){this._optFlags=this._optFlags&65527,this._funcH=null}get w(){return this._w}getRenderWidth(){return this.hasFlexLayout()?this._layout.originalWidth:this._w}get h(){return this._h}getRenderHeight(){return this.hasFlexLayout()?this._layout.originalHeight:this._h}get scaleX(){return this._scaleX}set scaleX(e){this._scaleX!==e&&(this._scaleX=e,this._updateLocalTransform())}get scaleY(){return this._scaleY}set scaleY(e){this._scaleY!==e&&(this._scaleY=e,this._updateLocalTransform())}get scale(){return this.scaleX}set scale(e){(this._scaleX!==e||this._scaleY!==e)&&(this._scaleX=e,this._scaleY=e,this._updateLocalTransform())}get pivotX(){return this._pivotX}set pivotX(e){this._pivotX!==e&&(this._pivotX=e,this._updateLocalTranslate())}get pivotY(){return this._pivotY}set pivotY(e){this._pivotY!==e&&(this._pivotY=e,this._updateLocalTranslate())}get pivot(){return this._pivotX}set pivot(e){(this._pivotX!==e||this._pivotY!==e)&&(this._pivotX=e,this._pivotY=e,this._updateLocalTranslate())}get mountX(){return this._mountX}set mountX(e){this._mountX!==e&&(this._mountX=e,this._updateLocalTranslate())}get mountY(){return this._mountY}set mountY(e){this._mountY!==e&&(this._mountY=e,this._updateLocalTranslate())}get mount(){return this._mountX}set mount(e){(this._mountX!==e||this._mountY!==e)&&(this._mountX=e,this._mountY=e,this._updateLocalTranslate())}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._updateLocalTransform())}get alpha(){return this._alpha}set alpha(e){if(e=e>1?1:e<1e-14?0:e,this._alpha!==e){let t=this._alpha;this._alpha=e,this._updateLocalAlpha(),t===0!=(e===0)&&this._element._updateEnabledFlag()}}get visible(){return this._visible}set visible(e){this._visible!==e&&(this._visible=e,this._updateLocalAlpha(),this._element._updateEnabledFlag(),this.hasFlexLayout()&&this.layout.setVisible(e))}_updateLocalTransform(){if(this._rotation!==0&&this._rotation%(2*Math.PI)){let e=Math.sin(this._rotation),t=Math.cos(this._rotation);this._setLocalTransform(t*this._scaleX,-e*this._scaleY,e*this._scaleX,t*this._scaleY)}else this._setLocalTransform(this._scaleX,0,0,this._scaleY);this._updateLocalTranslate()}_updateLocalTranslate(){this._recalcLocalTranslate(),this._triggerRecalcTranslate()}_recalcLocalTranslate(){let e=this._pivotX*this._w,t=this._pivotY*this._h,i=this._x-(e*this._localTa+t*this._localTb)+e,s=this._y-(e*this._localTc+t*this._localTd)+t;i-=this._mountX*this._w,s-=this._mountY*this._h,this._localPx=i,this._localPy=s}_updateLocalTranslateDelta(e,t){this._addLocalTranslate(e,t)}_updateLocalAlpha(){this._setLocalAlpha(this._visible?this._alpha:0)}setHasRenderUpdates(e){if(this._worldContext.alpha){let t=this;for(t._hasRenderUpdates=Math.max(e,t._hasRenderUpdates);(t=t._parent)&&t._hasRenderUpdates!==3;)t._hasRenderUpdates=3}}_setRecalc(e){this._recalc|=e,this._setHasUpdates(),this._parent&&this._parent.setHasRenderUpdates(3)}_setHasUpdates(){let e=this;for(;e&&!e._hasUpdates;)e._hasUpdates=!0,e=e._parent}getParent(){return this._parent}setParent(e){if(e!==this._parent){let t=this.isZContext(),i=this._parent;if(this._parent=e,(this._layout||e&&e.isFlexContainer())&&this.layout.setParent(i,e),i&&i.setHasRenderUpdates(3),this._setRecalc(7),this._parent&&this._parent._setHasUpdates(),this._zIndex===0?this.setZParent(e):this.setZParent(e?e.findZContext():null),t!==this.isZContext()&&(this.isZContext()?this.enableZContext(i.findZContext()):this.disableZContext()),this._zIndexResort=!0,this._zParent&&this._zParent.enableZSort(),!this._shader){let s=e&&!e._renderToTextureEnabled?e._shaderOwner:null;s!==this._shaderOwner&&(this.setHasRenderUpdates(1),this._setShaderOwnerRecursive(s))}}}enableZSort(e=!1){!this._zSort&&this._zContextUsage>0&&(this._zSort=!0,e&&this.ctx.forceZSort(this))}addChildAt(e,t){this._children||(this._children=[]),this._children.splice(e,0,t),t.setParent(this)}setChildAt(e,t){this._children||(this._children=[]),this._children[e].setParent(null),this._children[e]=t,t.setParent(this)}removeChildAt(e){let t=this._children[e];this._children.splice(e,1),t.setParent(null)}removeChildren(){if(this._children){for(let e=0,t=this._children.length;e0;this._zIndex!==0&&e.incZContextUsage(),e._zContextUsage>0&&(!t&&this._parent===e||e._zIndexedChildren.push(this),e.enableZSort())}this._zParent=e,this._zIndexResort=!0}}incZContextUsage(){if(this._zContextUsage++,this._zContextUsage===1&&(this._zIndexedChildren||(this._zIndexedChildren=[]),this._children)){for(let e=0,t=this._children.length;e0&&this._getZIndexedDescs().forEach(i=>{this.isAncestorOf(i)&&i._zIndex!==0&&i.setZParent(this)})}_getZIndexedDescs(){let e=[];if(this._children)for(let t=0,i=this._children.length;t0){let e=this._parent.findZContext();this._zSort&&this.sortZIndexedChildren(),this._zIndexedChildren.slice().forEach(function(t){t._zIndex!==0&&t.setZParent(e)})}}get colorUl(){return this._colorUl}set colorUl(e){this._colorUl!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUl=e)}get colorUr(){return this._colorUr}set colorUr(e){this._colorUr!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUr=e)}get colorBl(){return this._colorBl}set colorBl(e){this._colorBl!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBl=e)}get colorBr(){return this._colorBr}set colorBr(e){this._colorBr!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBr=e)}set onUpdate(e){this._onUpdate=e,this._setRecalc(7)}set onAfterUpdate(e){this._onAfterUpdate=e,this._setRecalc(7)}set onAfterCalcs(e){this._onAfterCalcs=e,this._setRecalc(7)}get shader(){return this._shader}set shader(e){this.setHasRenderUpdates(1);let t=this._shader;if(this._shader=e,!e&&t){let i=this._parent&&!this._parent._renderToTextureEnabled?this._parent._shaderOwner:null;this._setShaderOwnerRecursive(i)}else e&&this._setShaderOwnerRecursive(this)}get activeShader(){return this._shaderOwner?this._shaderOwner.shader:this.renderState.defaultShader}get activeShaderOwner(){return this._shaderOwner}get clipping(){return this._clipping}set clipping(e){this._clipping!==e&&(this._clipping=e,this._setRecalc(3))}get clipbox(){return this._clipbox}set clipbox(e){this._clipbox=e}_setShaderOwnerRecursive(e){if(this._shaderOwner=e,this._children&&!this._renderToTextureEnabled)for(let t=0,i=this._children.length;t1e-14}get outOfBounds(){return this._outOfBounds}set boundsMargin(e){this._boundsMargin=e?e.slice():null,this._triggerRecalcTranslate()}get boundsMargin(){return this._boundsMargin}update(){this._recalc|=this._parent._pRecalc,this._layout&&this._layout.isEnabled()?this._recalc&256&&this._layout.layoutFlexTree():this._recalc&2&&this._optFlags&&this._applyRelativeDimFuncs(),this._onUpdate&&(this._hasUpdates=!0,this._onUpdate(this.element,this));let e=this._parent._worldContext,t=this._worldContext,i=e.alpha&&this._localAlpha;if(this._hasUpdates||this._recalc&&i||t.alpha&&!i){let s=this._recalc;s&1&&(!t.alpha&&i&&(this._hasRenderUpdates=3),t.alpha=e.alpha*this._localAlpha,t.alpha<1e-14&&(t.alpha=0)),s&6&&(t.px=e.px+this._localPx*e.ta,t.py=e.py+this._localPy*e.td,e.tb!==0&&(t.px+=this._localPy*e.tb),e.tc!==0&&(t.py+=this._localPx*e.tc)),s&4&&(t.ta=this._localTa*e.ta,t.tb=this._localTd*e.tb,t.tc=this._localTa*e.tc,t.td=this._localTd*e.td,this._isComplex&&(t.ta+=this._localTc*e.tb,t.tb+=this._localTb*e.ta,t.tc+=this._localTc*e.td,t.td+=this._localTb*e.tc));let n=this._parent._renderContext;if(this._parent._hasRenderContext()){let C=this._renderContext===this._worldContext;C&&(this._renderContext=new sr);let A=this._renderContext;(C||s&1)&&(A.alpha=n.alpha*this._localAlpha,A.alpha<1e-14&&(A.alpha=0)),(C||s&6)&&(A.px=n.px+this._localPx*n.ta,A.py=n.py+this._localPy*n.td,n.tb!==0&&(A.px+=this._localPy*n.tb),n.tc!==0&&(A.py+=this._localPx*n.tc)),C&&(s|=2),(C||s&4)&&(A.ta=this._localTa*n.ta,A.tb=this._localTd*n.tb,A.tc=this._localTa*n.tc,A.td=this._localTd*n.td,this._isComplex&&(A.ta+=this._localTc*n.tb,A.tb+=this._localTb*n.ta,A.tc+=this._localTc*n.td,A.td+=this._localTb*n.tc))}else this._renderContext=this._worldContext;this.ctx.updateTreeOrder===-1?this.ctx.updateTreeOrder=this._updateTreeOrder+1:this._updateTreeOrder=this.ctx.updateTreeOrder++;let o=this._renderToTextureEnabled&&this._texturizer.mustRenderToTexture();this._useRenderToTexture!==o&&(this._recalc|=6,s|=2,this._useRenderToTexture||this._texturizer.release()),this._useRenderToTexture=o;let a=this._renderContext,l=this._dimsUnknown?2048:this._w,u=this._dimsUnknown?2048:this._h,c,g,m,y,b=a.tb!==0||a.tc!==0||a.ta<0||a.td<0;if(b?(c=Math.min(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,m=Math.max(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,g=Math.min(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py,y=Math.max(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py):(c=a.px,m=a.px+a.ta*l,g=a.py,y=a.py+a.td*u),this._dimsUnknown&&(b||this._localTa<1||this._localTb<1)){let C=this._x*n.ta+this._y*n.tb+n.px,A=this._x*n.tc+this._y*n.td+n.py;Cm&&(m=C),A>y&&(y=A)}if(s&6||!this._scissor)if(this._clipping&&a.isSquare()){let C=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(C){let A=Math.max(C[0],c),T=Math.max(C[1],g);this._scissor=[A,T,Math.min(C[2]+C[0],m)-A,Math.min(C[3]+C[1],y)-T]}else this._scissor=[c,g,m-c,y-g]}else this._scissor=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(this._boundsMargin?this._recBoundsMargin=this._boundsMargin:this._recBoundsMargin=this._parent._recBoundsMargin,this._onAfterCalcs&&this._onAfterCalcs(this.element)&&(b?(c=Math.min(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,m=Math.max(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,g=Math.min(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py,y=Math.max(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py):(c=a.px,m=a.px+a.ta*l,g=a.py,y=a.py+a.td*u),this._dimsUnknown&&(b||this._localTa<1||this._localTb<1))){let C=this._x*n.ta+this._y*n.tb+n.px,A=this._x*n.tc+this._y*n.td+n.py;Cm&&(m=C),A>y&&(y=A)}if(this._parent._outOfBounds===2)this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin());else if(s&6){this._outOfBounds=0;let C=!0;if((!this._renderToTextureEnabled||!this._texturizer||!this._texturizer.renderOffscreen)&&(this._scissor&&(this._scissor[2]<=0||this._scissor[3]<=0)?this._outOfBounds=2:((this._scissor[0]>m||this._scissor[1]>y||c>this._scissor[0]+this._scissor[2]||g>this._scissor[1]+this._scissor[3])&&(this._outOfBounds=1),this._outOfBounds&&(this._clipping||this._useRenderToTexture||this._clipbox&&l&&u)&&(this._outOfBounds=2)),C=this._outOfBounds===0,C||(this._recBoundsMargin?C=!(mthis._scissor[0]+this._scissor[2]+this._recBoundsMargin[0]||g>this._scissor[1]+this._scissor[3]+this._recBoundsMargin[1]):C=!(mthis._scissor[0]+this._scissor[2]+100||g>this._scissor[1]+this._scissor[3]+100),C&&this._outOfBounds===2&&(this._outOfBounds=1))),this._withinBoundsMargin!==C)if(this._withinBoundsMargin=C,this._withinBoundsMargin){this._hasUpdates=!0;let A=this._recalc;if(this._recalc=0,this.element._enableWithinBoundsMargin(),this._recalc)return this.update();this._recalc=A}else this.element._disableWithinBoundsMargin()}if(this._useRenderToTexture&&(this._viewport?(this._viewport[2]=l,this._viewport[3]=u):this._viewport=[0,0,l,u]),this._pRecalc=this._recalc&135,this._recalc=0,this._hasUpdates=!1,this._outOfBounds<2){if(this._useRenderToTexture&&(this._worldContext.isIdentity()?this._renderContext=this._worldContext:this._renderContext=sr.IDENTITY),this._children)for(let C=0,A=this._children.length;C=this.ctx.updateTreeOrder?this.ctx.updateTreeOrder=-1:this.updateTreeOrder()}_applyRelativeDimFuncs(){if(this._optFlags&1){let t=this._funcX(this._parent.w);t!==this._x&&(this._localPx+=t-this._x,this._x=t)}if(this._optFlags&2){let t=this._funcY(this._parent.h);t!==this._y&&(this._localPy+=t-this._y,this._y=t)}let e=!1;if(this._optFlags&4){let t=this._funcW(this._parent.w);t!==this._w&&(this._w=t,e=!0)}if(this._optFlags&8){let t=this._funcH(this._parent.h);t!==this._h&&(this._h=t,e=!0)}e&&(this._recalcLocalTranslate(),this.element.onDimensionsChanged(this._w,this._h))}updateOutOfBounds(){if(this._outOfBounds!==2&&this._renderContext.alpha>0&&(this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin()),this._children))for(let e=0,t=this._children.length;e=3){if(this.ctx.renderToTextureCount++,t.setShader(t.defaultShader,this),n=t.renderTextureInfo,s={nativeTexture:null,offset:0,w:this._w,h:this._h,empty:!0,cleared:!1,ignore:!1,cache:!1},(this._texturizer.hasResultTexture()||!t.isCachingTexturizer&&e<3)&&(s.cache=!0,t.isCachingTexturizer=!0),this._texturizer.hasResultTexture()||this._texturizer.releaseRenderTexture(),t.setRenderTextureInfo(s),t.setScissor(null),this._displayedTextureSource){let o=this._renderContext;this._renderContext=sr.IDENTITY,this.renderState.addQuad(this),this._renderContext=o}}else i=!1}else this._outOfBounds===0&&this._displayedTextureSource&&(t.setShader(this.activeShader,this._shaderOwner),t.setScissor(this._scissor),this.renderState.addQuad(this));if(i&&this._children)if(this._zContextUsage)for(let o=0,a=this._zIndexedChildren.length;o0?s[l++]:i[a++];if((t===0||u[t-1]!==g)&&(u[t++]=g),a>=o){do{let m=s[l++];(t===0||u[t-1]!==m)&&(u[t++]=m)}while(l=n){do{let m=i[a++];(t===0||u[t-1]!==m)&&(u[t++]=m)}while(at&&i.splice(t)}}else i.length>t&&i.splice(t);this._zSort=!1}get localTa(){return this._localTa}get localTb(){return this._localTb}get localTc(){return this._localTc}get localTd(){return this._localTd}get element(){return this._element}get renderUpdates(){return this._hasRenderUpdates}get texturizer(){return this._texturizer||(this._texturizer=new eo(this)),this._texturizer}getCornerPoints(){let e=this._worldContext;return[e.px,e.py,e.px+this._w*e.ta,e.py+this._w*e.tc,e.px+this._w*e.ta+this._h*e.tb,e.py+this._w*e.tc+this._h*e.td,e.px+this._h*e.tb,e.py+this._h*e.td]}getRenderTextureCoords(e,t){let i=this._renderContext;return[i.px+i.ta*e+i.tb*t,i.py+i.tc*e+i.td*t]}getAbsoluteCoords(e,t){let i=this._renderContext;return[i.px+i.ta*e+i.tb*t,i.py+i.tc*e+i.td*t]}collectAtCoord(e,t,i){if(this._renderContext.alpha!==0){if(this.inBound(e,t)&&(this._scissor?this.inScissor()&&i.push(this):i.push(this)),this._children){let s=this._children.length;for(let n=0;ni[0]&&ei[1]&&t=e[0]&&t[0]<=e[0]+e[2]&&t[7]>=e[1]&&t[1]<=e[1]+e[3]}get layout(){return this._ensureLayout(),this._layout}get flex(){return this._layout?this._layout.flex:null}set flex(e){this.layout.flex=e}get flexItem(){return this._layout?this._layout.flexItem:null}set flexItem(e){this.layout.flexItem=e}isFlexItem(){return!!this._layout&&this._layout.isFlexItemEnabled()}isFlexContainer(){return!!this._layout&&this._layout.isFlexEnabled()}enableFlexLayout(){this._ensureLayout()}_ensureLayout(){this._layout||(this._layout=new Wl(this))}disableFlexLayout(){this._triggerRecalcTranslate()}hasFlexLayout(){return this._layout&&this._layout.isEnabled()}setLayout(e,t,i,s){this.x=e,this.y=t,this._updateDimensions(i,s)}triggerLayout(){this._setRecalc(256)}_triggerRecalcTranslate(){this._setRecalc(2)}},sr=class{constructor(){this.alpha=1,this.px=0,this.py=0,this.ta=1,this.tb=0,this.tc=0,this.td=1}isIdentity(){return this.alpha===1&&this.px===0&&this.py===0&&this.ta===1&&this.tb===0&&this.tc===0&&this.td===1}isSquare(){return this.tb===0&&this.tc===0}};sr.IDENTITY=new sr;ds.sortZIndexedChildren=function(r,e){return r._zIndex===e._zIndex?r._updateTreeOrder-e._updateTreeOrder:r._zIndex-e._zIndex};var ct=class r{constructor(){this._hasEventListeners=!1}on(e,t){this._hasEventListeners||(this._eventFunction={},this._eventListeners={},this._hasEventListeners=!0),this._eventFunction[e]?this._eventFunction[e]!==r.combiner?(this._eventListeners[e]=[this._eventFunction[e],t],this._eventFunction[e]=r.combiner):this._eventListeners[e].push(t):this._eventFunction[e]=t}once(e,t){let i=(s,n,o)=>{t(s,n,o),this.off(e,i)};i.__originalFunc=t,this.on(e,i)}has(e,t){if(this._hasEventListeners){let i=this._eventFunction[e];if(i){if(i===r.combiner){let s=this._eventListeners[e];for(let n of s)if(n===t||n.__originalFunc==t)return!0}else if(this._eventFunction[e]===t||this._eventFunction[e].__originalFunc===t)return!0}}return!1}off(e,t){if(this._hasEventListeners){let i=this._eventFunction[e];if(i)if(i===r.combiner){let s=this._eventListeners[e],n=s.indexOf(t);n>=0&&s.splice(n,1),n=s.map(o=>o.__originalFunc).indexOf(t),n>=0&&s.splice(n,1),s.length===1&&(this._eventFunction[e]=s[0],this._eventListeners[e]=void 0)}else(this._eventFunction[e]===t||this._eventFunction[e].__originalFunc===t)&&(this._eventFunction[e]=void 0)}}removeListener(e,t){this.off(e,t)}emit(e,t,i,s){if(this._hasEventListeners){let n=this._eventFunction[e];n&&(n===r.combiner?n(this,e,t,i,s):n(t,i,s))}}listenerCount(e){if(this._hasEventListeners){let t=this._eventFunction[e];if(t)return t===r.combiner?this._eventListeners[e].length:1}return 0}removeAllListeners(e){this._hasEventListeners&&(delete this._eventFunction[e],delete this._eventListeners[e])}};ct.combiner=function(r,e,t,i,s){let n=r._eventListeners[e];if(n)for(let o of[...n])o(t,i,s)};ct.addAsMixin=function(r){r.prototype.on=ct.prototype.on,r.prototype.once=ct.prototype.once,r.prototype.has=ct.prototype.has,r.prototype.off=ct.prototype.off,r.prototype.removeListener=ct.prototype.removeListener,r.prototype.emit=ct.prototype.emit,r.prototype.listenerCount=ct.prototype.listenerCount,r.prototype.removeAllListeners=ct.prototype.removeAllListeners};var qr=class{constructor(e){this._initialized=!1,this.ctx=e,this._elements=new Set}static create(e,t){let i;if(K.isObjectLiteral(t))t.type?i=e.renderer.createShader(e.ctx,t):i=this.shader,i&&dt.patchObject(i,t);else if(t===null)i=e.ctx.renderState.defaultShader;else if(t===void 0)i=null;else if(t.isShader)e.renderer.isValidShaderType(t.constructor)||(console.error("[Lightning] Invalid shader type"),t=null),i=t;else{console.error("[Lightning] Please specify a shader type.");return}return i}static getWebGL(){}static getC2d(){}addElement(e){this._elements.add(e)}removeElement(e){this._elements.delete(e),this._elements||this.cleanup()}redraw(){this._elements.forEach(e=>{e.setHasRenderUpdates(2)})}patch(e){dt.patchObject(this,e)}useDefault(){return!1}addEmpty(){return!1}cleanup(){}get isShader(){return!0}},Rt=class r{constructor(e){this.stage=e,this.manager=this.stage.textureManager,this.id=r.id++,this.elements=new Set,this._activeCount=0,this._source=null,this._resizeMode=null,this._x=0,this._y=0,this._w=0,this._h=0,this._precision=1,this.mw=0,this.mh=0,this.clipping=!1,this._mustUpdate=!0}get source(){return(this._mustUpdate||this.stage.hasUpdateSourceTexture(this))&&(this._performUpdateSource(!0),this.stage.removeUpdateSourceTexture(this)),this._source}addElement(e){this.elements.has(e)||(this.elements.add(e),this.elements.size===1&&this._source&&this._source.addTexture(this),e.active&&this.incActiveCount())}removeElement(e){this.elements.delete(e)&&(this.elements.size===0&&this._source&&this._source.removeTexture(this),e.active&&this.decActiveCount())}incActiveCount(){this.source&&this._checkForNewerReusableTextureSource(),this._activeCount++,this._activeCount===1&&this.becomesUsed()}decActiveCount(){this.source,this._activeCount--,this._activeCount||this.becomesUnused()}becomesUsed(){this.source&&this.source.incActiveTextureCount()}onLoad(){this._resizeMode&&this._applyResizeMode(),this.elements.forEach(e=>{e.active&&e.onTextureSourceLoaded()})}_checkForNewerReusableTextureSource(){let e=this.source;if(e.isLoaded())this._resizeMode&&this._applyResizeMode();else{let t=this._getReusableTextureSource();t&&t.isLoaded()&&t!==e&&this._replaceTextureSource(t)}}becomesUnused(){this.source&&this.source.decActiveTextureCount()}isUsed(){return this._activeCount>0}_getLookupId(){return null}_getSourceLoader(){throw new Error("Texture.generate must be implemented.")}get isValid(){return this._getIsValid()}_getIsValid(){return!0}_changed(){this.isUsed()?this._updateSource():this._mustUpdate=!0}_updateSource(){this.stage.addUpdateSourceTexture(this)}_performUpdateSource(e=!1){if(e||this.isUsed()){this._mustUpdate=!1;let t=this._getTextureSource();this._replaceTextureSource(t)}}_getTextureSource(){let e=null;if(this._getIsValid()){let t=this._getLookupId();e=this._getReusableTextureSource(t),e||(e=this.manager.getTextureSource(this._getSourceLoader(),t))}return e}_getReusableTextureSource(e=this._getLookupId()){return this._getIsValid()&&e?this.manager.getReusableTextureSource(e):null}_replaceTextureSource(e=null){let t=this._source;if(this._source=e,this.elements.size&&(t&&(this._activeCount&&t.decActiveTextureCount(),t.removeTexture(this),this.text&&!t.isUsed()&&this.manager.freeTextureSource(t)),e&&(e.addTexture(this),this._activeCount&&e.incActiveTextureCount())),this.isUsed())if(e)if(e.isLoaded())this._resizeMode&&this._applyResizeMode(),this.elements.forEach(i=>{i.active&&i._setDisplayedTexture(this)});else{let i=e.loadError;i&&this.elements.forEach(s=>{s.active&&s.onTextureSourceLoadError(i)})}else this.elements.forEach(i=>{i.active&&i._setDisplayedTexture(null)})}load(){this.source&&(this.isLoaded()||this.source.load(!0))}isLoaded(){return this._source&&this._source.isLoaded()}get loadError(){return this._source&&this._source.loadError}free(){this._source&&this._source.free()}set resizeMode({type:e="cover",w:t=0,h:i=0,clipX:s=.5,clipY:n=.5}){this._resizeMode={type:e,w:t,h:i,clipX:s,clipY:n},this.isLoaded()&&this._applyResizeMode()}get resizeMode(){return this._resizeMode}_clearResizeMode(){this._resizeMode=null}_applyResizeMode(){this._resizeMode.type==="cover"?this._applyResizeCover():this._resizeMode.type==="contain"&&this._applyResizeContain(),this._updatePrecision(),this._updateClipping()}_applyResizeCover(){let e=this._resizeMode.w/this._source.w,t=this._resizeMode.h/this._source.h,i=Math.max(e,t);if(i){if(this._precision=1/i,e&&e=65&&i<=90||i>=97&&i<=122||i==46)&&(e=this.stage.getOption("srcBasePath")+e)}return s=>this.stage.platform.loadSrcTexture({src:e,hasAlpha:t},s)}getNonDefaults(){let e=super.getNonDefaults();return this._src&&(e.src=this._src),e}};function to(r,e,t,i,s){let n=r;Array.isArray(n)||(n=[n]);let o=[];for(let a=0,l=n.length;an!="")}function ro(r,e,t=0){return t?e.split("").reduce((i,s)=>Ep(s)?i:i+r.measureText(s).width+t,0):r.measureText(e).width}function k1(r,e,t,i,s){let n=/ |\u200B/g,o=e.split(/\r?\n/g),a=[],l=[];for(let u=0;um?(C>0&&(c.push(g),g=""),g+=T,m=t-R-(C===0?s:0)):(m-=P,g+=A+T)}c.push(g),g="",a=a.concat(c),u{console.warn("[Lightning] Font load error",t,e)}).then(()=>{document.fonts.check(e,this._settings.text)||console.warn("[Lightning] Font not found",e)})}catch{console.warn("[Lightning] Can't check font loading for "+e)}}}draw(){let e=this._load();return e?e.then(()=>K.isSpark?this._stage.platform.drawText(this):this._draw()):K.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let e={},t=this.getPrecision(),i=this._settings.paddingLeft*t,s=this._settings.paddingRight*t,n=this._settings.fontSize*t,o=this._settings.offsetY===null?null:this._settings.offsetY*t,a=this._settings.lineHeight*t,l=this._settings.w*t,u=this._settings.h*t,c=this._settings.wordWrapWidth*t,g=this._settings.cutSx*t,m=this._settings.cutEx*t,y=this._settings.cutSy*t,b=this._settings.cutEy*t,C=(this._settings.letterSpacing||0)*t,A=this._settings.textIndent*t;this.setFontProperties();let T=l||this._stage.getOption("w"),R=T-i;if(R<10&&(T+=10-R,R=10),c||(c=R),this._settings.textOverflow&&!this._settings.wordWrap){let F;switch(this._settings.textOverflow){case"clip":F="";break;case"ellipsis":F=this._settings.maxLinesSuffix;break;default:F=this._settings.textOverflow}this._settings.text=this.wrapWord(this._settings.text,c-A,F)}let P;if(this._settings.wordWrap)P=this.wrapText(this._settings.text,c,C,A);else{P={l:this._settings.text.split(/(?:\r\n|\r|\n)/),n:[]};let F=P.l.length;for(let U=0;Uthis._settings.maxLines){let F=E.slice(0,this._settings.maxLines),U=null;if(this._settings.maxLinesSuffix){let D=this._settings.maxLinesSuffix?this.measureText(this._settings.maxLinesSuffix):0,N=this.wrapText(F[F.length-1],c-D,C,A);F[F.length-1]=N.l[0]+this._settings.maxLinesSuffix,U=[N.l.length>1?N.l[1]:""]}else U=[""];let q,ee=E.length,te=0,$=P.n.length;for(q=this._settings.maxLines;q=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(e.cutSx||e.cutSy)&&this._context.translate(-e.cutSx,-e.cutSy);let i,s,n=[];for(let a=0,l=e.lines.length;at)for(;a>0&&(l=this.measureText(e.substring(0,a))+s,l>t);)a-=1;else for(;a=s?i:"")}wrapText(e,t,i,s=0){return k1(this._context,e,t,i,s)}measureText(e,t=0){return ro(this._context,e,t)}},so=class{constructor(e,t,i){this._stage=e,this._canvas=t,this._context=this._canvas.getContext("2d"),this._settings=i}getPrecision(){return this._settings.precision}setFontProperties(){let e=to(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));return this._context.font=e,this._context.textBaseline=this._settings.textBaseline,e}_load(){if(K.isWeb&&document.fonts){let e=to(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));try{if(!document.fonts.check(e,this._settings.text))return document.fonts.load(e,this._settings.text).catch(t=>{console.warn("Font load error",t,e)}).then(()=>{document.fonts.check(e,this._settings.text)||console.warn("Font not found",e)})}catch{console.warn("Can't check font loading for "+e)}}}draw(){let e=this._load();return e?e.then(()=>K.isSpark?this._stage.platform.drawText(this):this._draw()):K.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let e={},t=this.getPrecision(),i=this._settings.paddingLeft*t,s=this._settings.paddingRight*t,n=this._settings.fontSize*t,o=this._settings.lineHeight*t||n,a=this._settings.w!=0?this._settings.w*t:this._stage.getOption("w"),l=this._settings.wordWrapWidth*t,u=this._settings.cutSx*t,c=this._settings.cutEx*t,g=this._settings.cutSy*t,m=this._settings.cutEy*t,y=this._settings.letterSpacing||0;e.baseFont=this.setFontProperties(),e.w=a,e.width=a,e.text=this._settings.text,e.precision=t,e.fontSize=n,e.fontBaselineRatio=this._settings.fontBaselineRatio,e.lineHeight=o,e.letterSpacing=y,e.textAlign=this._settings.textAlign,e.textColor=this._settings.textColor,e.verticalAlign=this._settings.verticalAlign,e.highlight=this._settings.highlight,e.highlightColor=this._settings.highlightColor,e.highlightHeight=this._settings.highlightHeight,e.highlightPaddingLeft=this._settings.highlightPaddingLeft,e.highlightPaddingRight=this._settings.highlightPaddingRight,e.highlightOffset=this._settings.highlightOffset,e.paddingLeft=this._settings.paddingLeft,e.paddingRight=this._settings.paddingRight,e.maxLines=this._settings.maxLines,e.maxLinesSuffix=this._settings.maxLinesSuffix,e.textOverflow=this._settings.textOverflow,e.wordWrap=this._settings.wordWrap,e.wordWrapWidth=l,e.shadow=this._settings.shadow,e.shadowColor=this._settings.shadowColor,e.shadowOffsetX=this._settings.shadowOffsetX,e.shadowOffsetY=this._settings.shadowOffsetY,e.shadowBlur=this._settings.shadowBlur,e.cutSx=u,e.cutEx=c,e.cutSy=g,e.cutEy=m,e.textIndent=this._settings.textIndent*t,e.wordBreak=this._settings.wordBreak;let b=e.text,C=e.wordWrap&&e.wordWrapWidth||e.width;if(e.textOverflow&&!e.wordWrap){let E;switch(this._settings.textOverflow){case"clip":E="";break;case"ellipsis":E=this._settings.maxLinesSuffix;break;default:E=this._settings.textOverflow}b=this.wrapWord(b,l||e.w,E)}b=this.tokenize(b),b=this.parse(b),b=this.measure(b,y,e.baseFont),e.textIndent&&(b=this.indent(b,e.textIndent)),e.wordBreak&&(b=b.reduce((E,k)=>E.concat(this.wordBreak(k,C,e.baseFont)),[]),this.resetFontStyle());let A=i,T=0;for(let E of b)(e.wordWrap&&A+E.width>C||E.text==` `)&&(A=i,T+=1),E.lineNo=T,E.text!=` `&&(E.x=A,A+=E.width);e.lineNum=T+1,this._settings.h?e.h=this._settings.h:e.maxLines&&e.maxLines