From 08d4bbfbf9bee121faf13335e5072b366ed33408 Mon Sep 17 00:00:00 2001 From: landaiqing Date: Tue, 4 Mar 2025 01:29:29 +0800 Subject: [PATCH] :sparkles: add image editing features --- components.d.ts | 7 +- package.json | 5 +- src/api/storage/index.ts | 55 + src/assets/images/confidential.png | Bin 0 -> 13092 bytes src/assets/images/top-secret.png | Bin 0 -> 15114 bytes .../ImageEditor/filerobot-image-editor.min.js | 43528 ++++++++++++++++ src/assets/styles/theme.scss | 4 + src/assets/svgs/stop.svg | 1 + .../FilerobotImageEditor.vue | 74 + .../FilerobotImageEditor/lang/en.ts | 96 + .../FilerobotImageEditor/lang/fr.ts | 96 + .../FilerobotImageEditor/lang/zh.ts | 95 + src/components/ImageEditor/ImageEditor.vue | 245 - src/components/ImageToolbar/ImageToolbar.vue | 291 +- .../ImageWaterfallList/ImageWaterfallList.vue | 224 +- src/layout/default/Header/Search.vue | 16 +- src/router/modules/main_router.ts | 9 + src/store/modules/imageStore.ts | 2 + src/store/modules/searchStore.ts | 4 + src/types/imageEditorConfig.ts | 329 + src/utils/imageUtils/downloadImagesAsZip.ts | 65 + src/utils/imageUtils/urlToBase64.ts | 29 + src/utils/imageUtils/urlToBlob.ts | 13 + .../Album/PeopleAlbum/PeopleAlbumList.vue | 1 + src/views/Album/Phoalbum/AlbumCard.vue | 25 +- src/views/Album/Phoalbum/PhoalbumList.vue | 26 +- .../Photograph/SearchResult/SearchResult.vue | 85 + src/views/RecyclingBin/RecyclingBin.vue | 4 + src/vite-env.d.ts | 12 + 29 files changed, 45044 insertions(+), 297 deletions(-) create mode 100644 src/assets/images/confidential.png create mode 100644 src/assets/images/top-secret.png create mode 100644 src/assets/lib/ImageEditor/filerobot-image-editor.min.js create mode 100644 src/assets/svgs/stop.svg create mode 100644 src/components/FilerobotImageEditor/FilerobotImageEditor.vue create mode 100644 src/components/FilerobotImageEditor/lang/en.ts create mode 100644 src/components/FilerobotImageEditor/lang/fr.ts create mode 100644 src/components/FilerobotImageEditor/lang/zh.ts delete mode 100644 src/components/ImageEditor/ImageEditor.vue create mode 100644 src/types/imageEditorConfig.ts create mode 100644 src/utils/imageUtils/downloadImagesAsZip.ts create mode 100644 src/utils/imageUtils/urlToBase64.ts create mode 100644 src/utils/imageUtils/urlToBlob.ts create mode 100644 src/views/Photograph/SearchResult/SearchResult.vue diff --git a/components.d.ts b/components.d.ts index 88bba35..18db858 100644 --- a/components.d.ts +++ b/components.d.ts @@ -71,7 +71,6 @@ declare module 'vue' { BgColorsOutlined: typeof import('@ant-design/icons-vue')['BgColorsOutlined'] BlockOutlined: typeof import('@ant-design/icons-vue')['BlockOutlined'] BoxDog: typeof import('./src/components/BoxDog/BoxDog.vue')['default'] - CanvasEditor: typeof import('./src/components/ImageEditor/CanvasEditor.vue')['default'] Card3D: typeof import('./src/components/Card3D/Card3D.vue')['default'] CheckCard: typeof import('./src/components/CheckCard/CheckCard.vue')['default'] CheckCircleOutlined: typeof import('@ant-design/icons-vue')['CheckCircleOutlined'] @@ -95,10 +94,10 @@ declare module 'vue' { EyeInvisibleOutlined: typeof import('@ant-design/icons-vue')['EyeInvisibleOutlined'] EyeOutlined: typeof import('@ant-design/icons-vue')['EyeOutlined'] FileImageOutlined: typeof import('@ant-design/icons-vue')['FileImageOutlined'] + FilerobotImageEditor: typeof import('./src/components/FilerobotImageEditor/FilerobotImageEditor.vue')['default'] Folder: typeof import('./src/components/Folder/Folder.vue')['default'] ForgetPage: typeof import('./src/views/Forget/ForgetPage.vue')['default'] GradientText: typeof import('./src/components/MyUI/GradientText/GradientText.vue')['default'] - ImageEditor: typeof import('./src/components/ImageEditor/ImageEditor.vue')['default'] ImageShare: typeof import('./src/views/Share/ImageShare/ImageShare.vue')['default'] ImageToolbar: typeof import('./src/components/ImageToolbar/ImageToolbar.vue')['default'] ImageUpload: typeof import('./src/components/ImageUpload/ImageUpload.vue')['default'] @@ -107,7 +106,6 @@ declare module 'vue' { LeftOutlined: typeof import('@ant-design/icons-vue')['LeftOutlined'] LinkOutlined: typeof import('@ant-design/icons-vue')['LinkOutlined'] LoadingGraphic: typeof import('./src/components/LoadingGraphic/LoadingGraphic.vue')['default'] - LoadingOutlined: typeof import('@ant-design/icons-vue')['LoadingOutlined'] LocationAlbumDetail: typeof import('./src/views/Album/LocationAlbum/LocationAlbumDetail.vue')['default'] LocationAlbumIndex: typeof import('./src/views/Album/LocationAlbum/LocationAlbumIndex.vue')['default'] LocationAlbumList: typeof import('./src/views/Album/LocationAlbum/LocationAlbumList.vue')['default'] @@ -145,8 +143,8 @@ declare module 'vue' { RouterView: typeof import('vue-router')['RouterView'] SafetyOutlined: typeof import('@ant-design/icons-vue')['SafetyOutlined'] SearchOutlined: typeof import('@ant-design/icons-vue')['SearchOutlined'] + SearchResult: typeof import('./src/views/Photograph/SearchResult/SearchResult.vue')['default'] SendOutlined: typeof import('@ant-design/icons-vue')['SendOutlined'] - ShareAltOutlined: typeof import('@ant-design/icons-vue')['ShareAltOutlined'] SharePhoneUpload: typeof import('./src/views/Phone/SharePhoneUpload/SharePhoneUpload.vue')['default'] ShareSidebar: typeof import('./src/views/Share/ShareViewList/ShareSidebar.vue')['default'] ShareUpload: typeof import('./src/views/Share/ImageShare/ShareUpload.vue')['default'] @@ -157,7 +155,6 @@ declare module 'vue' { ThingAlbumDetail: typeof import('./src/views/Album/ThingAlbum/ThingAlbumDetail.vue')['default'] ThingAlbumIndex: typeof import('./src/views/Album/ThingAlbum/ThingAlbumIndex.vue')['default'] ThingAlbumList: typeof import('./src/views/Album/ThingAlbum/ThingAlbumList.vue')['default'] - ToolPanel: typeof import('./src/components/ImageEditor/ToolPanel.vue')['default'] Tooltip: typeof import('./src/components/MyUI/Tooltip/Tooltip.vue')['default'] UploadImage: typeof import('./src/views/Upscale/UploadImage.vue')['default'] UploadSetting: typeof import('./src/components/ImageUpload/UploadSetting.vue')['default'] diff --git a/package.json b/package.json index 98cf62a..800b8bb 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@tensorflow/tfjs-core": "^4.22.0", "@types/animejs": "^3.1.13", "@types/crypto-js": "^4.2.2", - "@types/fabric": "^5.3.10", + "@types/file-saver": "^2.0.7", "@types/json-stringify-safe": "^5.0.3", "@types/node": "^22.13.5", "@types/nprogress": "^0.2.3", @@ -47,11 +47,12 @@ "echarts": "^5.6.0", "eslint": "9.21.0", "exifr": "^7.1.3", - "fabric": "^6.6.1", + "file-saver": "^2.0.5", "go-captcha-vue": "^2.0.6", "gsap": "^3.12.7", "jsencrypt": "^3.3.2", "json-stringify-safe": "^5.0.1", + "jszip": "^3.10.1", "less": "^4.2.2", "localforage": "^1.10.0", "moment": "^2.30.1", diff --git a/src/api/storage/index.ts b/src/api/storage/index.ts index 500696b..278d673 100644 --- a/src/api/storage/index.ts +++ b/src/api/storage/index.ts @@ -454,3 +454,58 @@ export const imageSearchApi = (data: any) => { name: "image-search", }); }; +/** + * 搜索相册 + * @param keyword + */ +export const albumSearchApi = (keyword: string) => { + return service.Post('/api/auth/storage/album/search', { + keyword: keyword, + }, { + meta: { + ignoreToken: false, + signature: false, + }, + name: "album-search", + }); +}; +/** + * 批量添加照片到相册 + * @param ids + * @param album_id + * @param provider + * @param bucket + */ +export const imageToAlbumApi = (ids: number[], album_id: number, provider: string, bucket: string) => { + return service.Post('/api/auth/storage/album/add/image', { + ids: ids, + album_id: album_id, + provider: provider, + bucket: bucket, + }, { + meta: { + ignoreToken: false, + signature: false, + }, + name: "add-image-to-album", + }); +}; +/** + * 下载相册图片 + * @param id + * @param provider + * @param bucket + */ +export const downloadAlbumImagesApi = (id: number, provider: string, bucket: string) => { + return service.Post('/api/auth/storage/album/download', { + id: id, + provider: provider, + bucket: bucket, + }, { + meta: { + ignoreToken: false, + signature: false, + }, + name: "download-album-images", + }); +}; diff --git a/src/assets/images/confidential.png b/src/assets/images/confidential.png new file mode 100644 index 0000000000000000000000000000000000000000..21c25da1294711df646a412a2bb6194238bc1d28 GIT binary patch literal 13092 zcmd6O`9IX(7k?!wWhW%OqY@))mW-t=QHi%KLyX-FQ4(e_%q07sCzRIi>)*8quwSozR!OSma9c}mz-Tc&{2T7qhPf5Q*R!9v z8{1>-wjoeaVDjLqwsh+l^DvED_w1GM|4$$D<_BuCsAKVh6-NG9s%OR-qQ4%?s{Kyq zGqRbNx!6o5p4Z0m7O1%)io?ry#BhoW}&0Tl+V8 zkJjjan#Glba*sKw`uH}4>jg%)9rZL9W}kEs0RGeG>)U#lee!wOdpvla=`N&zIPPn_ z*{0cg<|gw~e~Vpr?bEJF7cqb~oGOnoojG^8Cs{pQx=eI4u*>A*Nnbvo1udr2CutSA z+4KJAb&RiguG=LAQ-II>TE*Ntb6{4%UbuQlY@+AS7z}ZsIs8iHSem9weLI+P4P!~S z7e&Kdxe$GtGKV$W|9Ul-(%DA1XUxtp1|jf4RILusg$L*&#_JQub1HoaI(8*AWB=ke&obP*&X7o9Lg*5sFT`}Z{fxm)NdIOv1-YXu>4zB@a zJHvc6;a{zzwk9_l`2m@aLNgUHJRGS483`HcMxcYe!n`D7q~eYf8RlR0z6uMFw2P0w z>W+-%;4k|!YB-;_y2@W|yCTp>CxAzX#(tr>#v#CXIwcu3&evDO0%0WXWn3H zBqo;_>$;PvGaa&LP-!ERGaTdI$E5nVG-Wu{?PP`!s_$SLtm{^Xr(s*;;8CsK2nMi@ zTL!fUn{1car{`Ms?F6-?s_$pNMkt5KR0(};Dh;&665*zUz})o5bvg$$x&{p{!>{i)rQk*EaL(u z@pwNdY?N_r>7}L}l?ZhB3vg~56Lr<3MrV4-e*<{|X<$>(oYpJw`3R<5_Ui+;!+RPB z2~VoXr3vdxw*hO|y8a?9$|6l8Y6IkoHckGkBoa(yk5bJTIqrYlF7W~xwJCv@+g<)e ze!2)6J{Os7B1UMYA=InyTPctJo)rf4;KR33W|F~yGh)$>d)MNhY;w1r@PhXe73eQC zHJ#Pk8}#`?*&0ds#WSP>+eFD#XZ30=LbLcbSyQtBP?0Ki0ru#p+;W*xCzy%V*yyEL zkr8=#<9x$id4JPU&m7h;xD{ajEJ*Ta{WNl{dmR1(xy@m_8bYv+PzCdPy3d}!(k|k& z|IFxCFeJ4FiN<@WXT9=)@xs&hsx@4O>~q|JMdw7~K4%GS+Y8&Jt?*ZaQ`EVlRJ#W< z&opuC-g>d`(eve`10#tw3{_-)tO_M(?3v|49**axe$QpQ+{N*A+`4pr%vAKb5yu&U zXRvwgVM}*xL17Cu1e)6{J41@!ybu_06u~`Ta>0c;#buHHh*^0kgV+&VpSe2Mk=!C?wy;i2yF>G$LlJvR?1<3^Y5^$MVq9 znoXXVS@^q1uU3n$ zWI8gy8vR9I$c_7Z?GyOh}@90F3SI`r2*w($3mJMc!$rsRo+ZpPd)>`T4>6IG($Cmh`h;eE4bhXWjpcCH8@9obT=46oH1R2^l z@D3jpOW78=s2k0X>HfFj1xzA?gE{5kNSR#Yug<(rXQOx-NX2+15}P0k-em_Cu%*74 zs?P-Bzx%S`+!z-@RyI-jbg%)=%vj1XF*PTCWbZ18P;8>;b#SDw9gwIk+$$9~HXymS zf|uFf77^5?-#|#eXm%6qEt9Dq^2P!i{d3`h@0P#TIa+-&@XHlLM?ZFeZ&hMzw83rk z#RzVPK5++Jn*)EtosGwT;_v}Z&=ykvu3xZRDRvCdi21i8ewcho%kbt8ef`@LIXB=l zY`W1=J6(d>Ee;nf@cTIo^kcFxcyXS0w%2(V>i z>)CWQ1lvkf=5I$3;{Jr7mCc$mOmru~8lePdCgb+b-hrQNn(Qbk-uw*t!j<-@g{J+t z%kw*eKf(U5ouUB0CJ>wp2L>Q7pPsQtoCyxeX_g%=S`uz}7|tzzLC5he6mdDI!HYa9 z?LPKLzR~;D5C5HQ1}vcn&|MjzNIk^S0sUN`vl|Y+X~Lu1AdLRVgGlz5J3wBbmkio} zDpY>yC?BG;PUf7-T)A4^Si(2>S-QBJFTG<8|B!7)MK@ZlB}utePL4B*U_jo&gHiPw zC!akghX1`)f@@q;s2cfJb!y!_TLpC6YH-6icVNXjaOv!o=aJ%021}=Mzf54%%@)&haWgaX@ws`daxzVYm4e(2#{82O2xJuukO@YojcBg4omasRA7CQn?g$( z7s?%kBU8!XJg%PQoV8utKk&3>Bs!Hrazt$HAp*Z;uu>ZMM|q2L}- zXN{Y%sqyG<@BF@J$zJJS&g$F4eCondWa%sI*Xgxq8mvjbGNI@~enk}SdST^)UIdhz8V1`qJrqp(llETH=G_bQrkdS*-|Pj%4z!Cpc6rLpR!@b4P063 zdQLtlm8dkGX4P4IK)g3vGF?|?pWL4^hzHRt>@&)^_ab_JQUWvUsqcSj?;W#{O3`u9 zbZIb;px&T6{cRcGtkwBLpk2Wcj}m8_j0zo}XP{3~x_fbJx+2y7l}RjzF@C(c=NSRe z{;CB@mm2RHT0eiA)vb8^e9dZg7;(!Ry&Xd*3N z-P8%O;;FJI06Q{Sx-b6uY*~g!l&s-I8OeA0&B)$}LgK2Zz(@_%|uplr)@^9lFcb(4Cfs&W3f@uAwx)E-n6l4)Im8{axFX}L%j2` z)0#)yWCp?7Y02on_sAD5j3en4#otckB(lM>b!sMDp)kqSil&?v2;$ zNV-Z(4^TfSm7FwmNCg~sM$^f~TkYC@)wXFFrkyHbG)ZvbW{ty~{A+Y0qCBLkiS%>K z^}A|z?Xu(({64q>NDFzI@bgR1o9(=s0V7??!vi^9@?3{NEE`s9dE$^d;!dCLpbS~L zejjGpNbt%E4}{mT9OfaG7po*GKHmjF6@fZKzN;hDbcuA+|Jq(5Yq{rQYL+Mt=+pL^ zexky`Gdv+VuLFVYZ=%HoWJrI z#xrdAJ0Fp6Mqa4h8a?c$*4MeuH8q z9~TKHzW7Ua8MtX31>CvHRwuQtT+=M8M4uvI>8TSVBiH%J!2gdiw?i~oQu^rC=IrLCzWBTs#t^B8(X%wc8IKyG zjyNmRg&amq%g7s(9T>jIgPkUFUe8ch)oY@|m$0N58j{9Cc<(XNRZ^iYSsYw&>7{CP zR9olKv_~_GnP}GPiNHF9Qg-|NrzE5KTvwIKx`BaKQH9UOmR@!u>oJsdU7ZY*yY=?k zIB0IR_fuAJ{1W3=SJK*zGA&j{K!`}6Hv}>p z7;}hwDNJ_MPKR8}u@RRXyN5F2Arv|cOZN$`D|d=YG z@NZoy|H9MsLBQ)U7RDAm(P$*$4jxvkctS2iZ29P8GB;p_7cJxMz_z%DFmUe@kX?3E zgb|SvT;hW3qzSrTy6q=n^i5jt` zX(8Q*%EO!)@|{Y4Qf3#F-L`z7HB0=vb0J#A6s@qg5hLW7 z4;p@kP+hf5<{6}BYvg+HsXmv_K;)}BddV3h*nC}Rw7kg29?TZOCdQIu?_6S;Y1P77TQFK+^vbXMl{@eE z{;M*&9NsZ7%eE|{ZqByR?W$c6R(U?eZ+BgRDBzDb_$*qv^K&OiZ8ul?wWrK7PA(0M^0}T*q%rr<-=p3ACsv|6h(}Inum@M0(ks%y$H))i}-=q9{VjjPXx8 zbYIiVvUCp9kzp@gwn?ETmse!uGiDO^O#!n92Wdz~t?I2czqfebvX@M^Azaab|9*bc zDi8ns`IPy}Q*X&-$sOdcLMQFzvFcMU3A;DTO+=3qg1wJPMrPCNKa%3A9?H%>r3rfJ zLc+Qt?K%6GNiFXuxn0Kd3- zdth~OPP=3X>VspC%k}T^J2kQUZ5M+yXb=rkHojV`am0ezEZ}mw-rC4=)SvYHhU9j| zsfC2ygz~1oALcans=M{OLlLL~bqFc2^3uOo<6Hy}3#M%@K(nJ$)1im?8?Us>vSLQ| za@jo}caP@gt%hYM4cz|VKB=RoK6ZMu<5I`YquXElxEOBaD3j(|nGkSaTHO=WL^NrF z%o(4wIuYY&r#(|vi(#AiIDNK^><;r~JN)U#X7jwzm+or4bZqzhG=+8*Wgp!4mYJ7L zj9VCsMVw!3{qRSl(aRI6H0{qR3W-Lzv!1gZN2EI<8SBp(!jj)a3R~2rJE4F5u3bFb zqjV8@>~w}>)X#Fz1DCI0ni8W)sNV_ z|CxUDZhq+omCSy<_emVPQRii9=)yHeq6u3^pN#7u+9~s|f7?^`F|8reey~3?1R^*` zNF&m>pA@+Mc2E1)g)%H}Ho?V@nTf;h*^`f*Pj##zeKrTttf+k8egen>`XE#tY;}-b;A$4cyj6W59hM^s9UX3TI-%-l zjc2OU{*Ff|Z>>4D%355#s44+^Ir2(W2RvA&^ADZjC(9N41Nmnkspv2y=8Y0uwEV*2 zD>i<#Jk4$Ny&a;^-aHtve?%8>X>ip-=y zR-8ka>EKaftlbyA>YAsKD*vHO9BV++bNkcQT=_?^Mn|Z1K@nCU6}t)*>{JWfPxduQ6e_B#rlsN7-x$|#DJ>agt7CcpR?QQ! z>&yJ{-+&s2rgC;M%5^_nMm+VxgwS|a+^i=3Qu>Yaovo<;(R(kFydNwvEc0uX89>58 zlKeXcX`E@9+^xu3eI$i@Zer))!M2#S@;tqFuoz?e5S(GstPTn}-v3aUF#JVLr$W=2ZUL+^7jD zp`58s2AGQMtU3Gtyag1XUsc=-(&&>qF8=V*>Ln&tpU%QF8Angj^Gt)APnpTmi%XZG znBPG2FSWUyO8e4Q`^VT~QO3O^q>E#M48S$sUuwonCl}jU$L{NbhBBx04*UxP{J(BQ z9#{a?+ksn--r)S~jObjHPK?0o2Zj^1A&BX7`J z5SPusK`vit$K?K2mvQD8l~vBg>v`)iREL4HkSFlF6tVp%5b0{u21Y#&?xI2wrUI)&5S#i%W=38wG)3v3hy%ag;=8NDOw?%-ds&pP4dFpw%oXFIVT0dWc` zqwdq(eV51PGP?aPQ9giL_d)Z7f6$Z=72~W;h4NRjq!K^g3GHW055J)LQ~QrKU64F~ zU5}_Jwuyn?AD%o!ffa|(tWQs$mt5;k#N+lDN3qCux zWmv-(z-=r$TO3eCMPJ{*>8gEq_*5LHXZ$(moPNgQWG3Qg#fI+-8Ganr zCU(R$&}WQnk>4^? zriw@Pc|_SrsJk){&gYs|p==xb8fI~FLxJ_HL^Aw2QP&C!@{h}76enisof+dGiLN6I z8gRLx1`0q$Y6RRfxv^@p?D=#107m^#)wMvjge^G=Y$W}0!JR)Wt!8;N#s~Bxr3!@BF{SgG6vGzk`!qW=el`tE?c6i zcS)~`<$$9cZ%;v|4rJIw(4;#<*mi9^*d~7d?oXz{o`j;lKz7@r2PQ!b3@@qesRMHJ zTVl{%pPMSP@v%Z{?)5#HGz{;>Ps8OI<9C2M=dEf?TCSARYI9B?6?LzWT=D|r3W{ai z+RgS5oap|2W$i8{n04b*Wz}ydmH%XOvm0{G?lgk;Z5pvpn{Nv!jvi=*uXW&#=$DX} zR&+?lK-vHlEAP{>_JnJVPfARPkh!D2i!M4GA@GR^L_^~;;ljq3pekU~5o~(Owa}O} zS@GfTEp&-&*!Zs2CtQk>dWojC9M{-6$A~A-^1Zb?{HHvDGY_0sk@Nvxh#0b|onXTe zCuiK?@;g7P&#zmoDvTc3XKi%9LKI!dx!pM$L9?Q0vo0EDcarXf5O`>s7A?00D(a4w zDxBAEz3X2J4Ju{|ZdnJBviv_{?T3Gf0X`i#8&8NOUa&Y8VimpLQr5>MB1`DwZ z&qMmf_OTON78EP54U*!r?`KhWNq}7 z8zt1CHS~h%Gw_}eN&yGSSfSAT^gG5)qf$;6D6)^EWTFJX;i?jrDwX>ehdFl*iKPoN z)fr#TyX0q!W{OQL$NCr?-m{J}uA%Uku9IX*vD(XVFXUn}g*uvk?WPPOK6y8<4kS5` zCT(fEP?{uSBbvTsU=zPu*5V$Y*|Cd27lCTnsv%!kc0O?on>1AO#2i&wQ-h^)OvCqz z{8IZaGDyX%4&UTn?-)(>-Ovyj83L+!DPI}a?`hK=siEbZBT+7XqppLd{CfO&DmbjB z5)M*Gd?2hHIsJYpZ7jRyi(GsXf^;BL?S!bCZ}JXR$yi~p_J2UK{N(O^X6a1;kJsZ* z$K^-wh`@W>;%|suNuXA&&9%5I=3Ro%F1Wi0bS8H%aUZPwu6lh`WD+9dEGhIHa=N)CX0t9e2>izq@6xgzI?|3 zFA*@9bJn+FL=U9rE%sTR&`ypy=L1Mk}9Dt)t=_av2poxG=XLs9{6>c-33FLvl4eW z^UUJOl~`{>v8K3c_I;FM6yTR1)DI@c+(x+d$uYd!o~jPt51s~1jy~j~EfP_g;MiF& zpsb)W$!YhAl&8%ly~eZN^qBNWtH$jt2YX7 z<>r3~lQkr=tPWhF2Jy|Xicw^EcZ&3B;l6i+rAJ?2Hf0k0+i^_&^tMFm$@N*CCS#Db zT{Vw~zy`KGE<&kT#cnc!CW%?x;glc-Blf0%a&ccKext0rzI*$VedtK8!o@YiYh}4# zSe8PmJatjeqb_1p1zw+sK#^?AxVkM)t+TvMS+FaP;qZBo)N9vKhe}6Lq zG@f+OKHWssJP=UJ#m+Cpk|w}Ms>`{!FI&$A$f(ctj$*%Kgp^Qv3xrpANuX}sJ?2=B z`cG+DYBg-17)nVug|N&liS2YP%}1?>wUYj&CH-T&^HfN!V@kru^rJun5ri;;rTi$> zMI}$i6E02M0`4fqCU)00UTaJCuPRDb4i9Aq;@B7YS6p+dA60y}2e~du^37?<>7NJR z849J~3iRM4u|u%qR9_)zBcWQ?EzQ%ayutndvAlqj+gV@lBUuLM*ki-}on#@tr6hwO zrM^$U0I$QlmfPL+hi1{j*aerP-Xp(r+s3!?i`J0JF-m4ref=0?p5z2$C`>iP3*?G8 z@Di9PSidpg{wP(DNN!)*-&hP1Sj-#&72l2OnJMcB49Ha@f)Kmv?%W8UKQiJ;mJdT# za~oE$EORv`i}sj?SKM3W4v9~;s_lh!ZOA3BlO*CsUouG3_czKj=60gDcMr;RMNFf< z_4u(*Bn*fV{Vl#O)pItaMARnu%mz?7#AcRHK*;v2E`7h9{+?Q%U*~X#kIdwWED5-S zG$g}hFESH7sidnjN3XVW!hh)dt7j9<9id9u#a!!;hn~#mRz!g-=?&1C7Ttym;6L^Y zuV7I*7RUVJ`9r37n$9Tue`t(eh3X3wVrKfm5|tv^JZ0ZiSUPzLab91WHAAwr{{xp( zZA4Zfj?>E7uT&O)st#WWepSzOd!Ufm1veHb28Tw7*WTWw&e%0O-OrZ?g@4~7K& zrFJcW+gTI6CN2VDJfaEl`$HYymm7u{Y)~;$w}BsAsyTS%2#E@IBokR(VDyn!vCEvv zBU!?xiv|?{NAk8&?1$TjXVT3-0ylK$EU7A0^+O9|>|0yZ zwqCBQ=J)nCo(mPEiI+j^^jxpOH%ds@=Eh`1Ie)`N9J#eZ#i z4UV&cFiSnt(nULkS4=i)FjA%FpGwlRmo@*LN|CN=+v(WnpVN|Vhd8oLY4f7b(xW9R zlNJRm6v>?YRe|iCmH?xE!10mC=j>(b-XMz(O=EPNLN-eILi+Tn=;$RWb4t_e{g2!Z zp`tI)7wC?~Ed)mNh6HW-wnbgmK$wr^lPf(L6W1z58?m$Kr{8sQO81k|JfqEH5B$%rq`YvUA} za7tPuF%+J%jYe~f9t=Fuhlhs> zY`zLDJk7G1srEdw%G2^L5CORqRkL^+LccLrTn{R0hTelN*p_}9ncT!PnvBeF5|*k; z0mO4#RaCAvZB4Why+{%!KAo*FBTGScz!hqi2~Xok31~Bh(=V8jPoWHBgnU=23 zfR!~7M~(t|J{+>S=LVJDsDj&d?PL(9BaqqL^A61VZ&gW&;%@CRT)XV?x8s=E0IUL9 znWIP+$h_y~{Vk`uLlZf#?4F`HiOD_VyRyvRgys)<98Oan;(T^cAG>M7r+bykRd`6H z`@RkNh<#n5^n4iXWS467GpMuIPhg_=cLYsh{e?eMswK$pTU-cV+daQXt9RKd7|y`! z40~p#EAnFQ`776{T%bcCNdpV=M&wrD!NWy9$Kc;GkRYp}iXYBn8(5awRtrP^$31_F;$$H1a{X~*y-4R`N8F-$`FPpr&B_!Y6eU%^UUxFp zuFyfYUV>@FU=-G?HI;w*0t1?)3C0wp|MPDWJiwMHVQCp;NCc#xtX7&!dnsdPtZQQP;N}xVEvcX zdJ#`pQVrxof^mrgK08ZCcvR{b)#A%()p6vfLP5-hTn(?~VQw98sSXE-JCTVeUHaro zk!@6y_K6k3Am?!ao&5fGfzJ_I#Mc+3g>r~l@-~15>;r(0c;-LrZA)&=aaUTgfhzGs zU3I>S)2uE#c%;iWv}K5G#nOjtBb>ekd~HnB{|ns>4KYAL{pUg?!vmC$Sk~<%gsb+E zE!4_h694XSKjEoJOF%tUE53WoiA|jES=k?;V#6#NEn&QGIsC=-7uBql;a*U{*#H49 z{G*xf>%3pyDWWif@$$oR)q4JOtn0#fq#Pmi>-PY6c*lQHs>@Qnf4ddNj0;~b+4S&_ zpy?aqP9*5pX0XB8tq+?Ee>-@gmw9Sn^!*WqQDYD_%L6_#+DvxKrtcJYhNsy_N>#Ty zyhc(aY?&aZonvBb`s%iu1}n|Svbwt#a%)zrnfA&P0Ecy9rVzrL`Ev$$y%L}gu${C* zScM@~tJ?7ETf(k(iFFmj!mXg!1f6@@^U2ET>6t9SKwha8RB$PDZ6zQpOeM!LVnszhMwJO(@ztWSHQ%? z6M1SVqWX&PEo25^cXfXKAU&T-)r^bqbYGfunmN95(Ia(B58;h@=ra-AIv3=l2d-TN z)>*159iHag-naO?X(|&sVV4#|gS-ru=~Ek)j=VX_;8Z-y=*&5Z^SBajWYah$0V9*! z9bPH>|7iQ1ybj&EPnhuz(<=iq1K;RxO?tZ--Lq-{z~vb|qN_JL?Q!H+luAjOZ(3Qu zXf2XHy(jo(wRd>-O$ktIc75g`-RZQ663~r)Mslur7$wLfUvL&j;d7*yRQNc2h6amz z_!^i-u>gYH>vu;*`-h}mKm(vNpVLV3|I!@%5ALOnf}KeJBL)qQ7U!@>Jp)3H>KfHV zn0_4q{al=ywziM1>P=4@2N%sd#3Z4VpvOQBiOaPaCW@>2lcft_w@om=ZuF!N@~?y7 zW5nG7xkUo4-l-u2W}%X&Z+y$0Q8hfJGHW`nM4di&rQP-g62A5}P6$s_*%fy9WD}fC ze>AT{oq&ZQt@Z_AO(suAROh~559jvoaQHX-yj&|KyJ5Uuq3MC@KN7Vyzp!mVeNR!W z-n8GZ3L8NP4zwv{pV@Q^K)jwHyZG$zI<_ z;{Efft5?yPa`aq?TpV!V%N?v-YVbLwywhq4I%IWyqkw}pIs08AoI9y=x^1OnS-u}Q z2|&0zM6_&^adg}{N?Ki5sXW*@w{E*4K$xxyNKith)zFaMv$VKj^G4J)?E#sn#HN#! z%3t@bd#@bY@;vKzMa6GrZrTDsNNkr}^Qtq2EJ1gpJ(sm#jfB1IrP)~ZpWr7g11kSR`rSg@pD^g_%@Fj{r`VBN4k2~tIqeRi z0_*<2Lzip-Fyd>RX5f8u!nKB%cjGXv8hF1`YZ>I5x$CiED8Kg2kXys{;6*dhOM?L17PBLj`2@kg6Q^u z=XzJ1{ZD9eaMl?~&HdA)7mq8E(}V-^&BQ|oRZpu66-8%rNo2qF2bvoTDzLAY z0336B)V#cR{Vd3UdUDG`eOV^^mA}@_&Z&`cPuHb(ontgCH;H$t`R6;ImqJak1V_z; z1D8jpvA6qfQS>*nj#1jDNN<-mqa%$}{~_!bW<>HmZeC5SE;<=nV}3w<(?| z{_o}Mgnzr!8!^{x8Yq2B$k(O!taL_qis z5Gd6y&A?!u^vUy~0B17a^(B(8V(y|(PvO`Kn>*LWq2umg%EDJGt!JOSpC_DktXhq7(_HFeVFc!bE72G60&22#$-K!Ed$1Nf%&~3n4EDu@j}6 zs<$0WrfL^C1INXIY0e9&j??e#y0&%yq`1A9?I)4%)I)iiut#id#TO_50yMmqRm6)v zro#44{Bh0(?x#mdf4;#+1!w~vr#JVD2(V}2KFpCX^x{xe7Sms7Uv%wTCaX|DeP)HP3u zxL$rqc+((qNKEG8*#7{O3r8OvL*DsS2h~s9{>Nbt8+R#xCYao>x; zkZ4Yk#F4!I$c;pIY>8!h;W2=IXZ%fkWGROSlL#F`Uz;><(F7QsHFIQn$1*lMYcCKL z__?CyyzlY2`eBOtj7=5w2KaVgB!fL305OJhXU4azMkz-9V1Tm1z#{WQPmYpa3&#U? z8qUooq&Lci)FIVZe$YPJXcjtV?4zt2UVxcKe%rka;MOois=2mv?(-~PXQw&Q9;MJ5)T&9IHl#rHYXIiL4m@V(vqVtc(Fdp;kR_s9M5e8&EG z+kW*TqZXa>|i@ zSb}tVUb^++!9ZAk;T_7<*4rt96_sV0+MkPWJ+T~^Q)NLBl>cx3)G~{Ac(5E}t2r-q z)%#}6CdvUp$tk@XwZnfpaOOeKk?~0IVACz9dsAn&&;QX)Bwsa9?m$q2 z(|U~$!3C4hQ#|m!)x>OpDAvgnWu0A*HsJmjd{32O_PfsztW9u&p=02Y_K0~(xG*t^ zd1WY4R|Hl$GCo@{80+MKPGb^}?k|NR+P3yp{YaZSG%(UZyxq3B@{+~$Mz9vYs>qNC zy6Q~+z3c3t-DqZVn*xaI6DF>iyW?e}FET%$IeN|yL77}G)YF?g=Veoyrp&>61zEsJ zM=3e!F;4bVCZ{^r;%=4gLmLYSiS#iPSl*ews?8kf^cnM5ytf5EPB5le{Mt3b&!a1DYJb&`?38S4)Lih-6FzN3ev=IzZ;ifdD0Zdf zAUIjiH|h0vexDI5MDaK368hE;6Zt&S1$wLtqYe&5ctm5|Uo)!o-mE*c_=sCA**RGq zuepcDVP<>^tq_zoQ<0Ax+mGn3ir}k`Aaa{Ov2QQ7&SCLsg7m7=JHe!?0posD}suS{9y_S=Q zGAtI?DJ#gObp^fZ73UW22eFv9iZ`v}_}_mt#YWyGzW*vbfo+ppS<_5`y0wqrskE>4 z-d5yKPg<)&`;DZ*2A?VU9R@%R!J8ufE_M7bX3H(Mq1FO1q^k72D{#$0QhNU28qqd{ z`ttNaUi5zjV_U=gcPL$an@}cOrDUD+ySbT9R7A^AxEZ1?{swL~OUGw)d4oVJD0$H) zoX~qi@9o|*yL?W(%F9Rx4m7Aku8;OM*Tr9M>5e^ZWlFFV$88sKvi`XGQ0@?b4~SKm zBFcTk_)cRlSgF@-?$S{7#xh&7)r@^!UYsWK&mKs_L_R&gj+qSg+v)TH=J*$?M%^9P zvqxX`XIV#x^$Ch-6hPoyw{iadjmEHcI^5B@ng|adHIO`fPPkTjQYQPyuk9WyMoo{O$M3n?+H6qyk0EuyN8s@ln`uAZeqo>(VV!F zIY@(h*@|9LJ+QzW#1-;Wsbdcw0}p?SQ)aNqZ(gXz+#S+^Dh?&07{!j5*9*&AMRXkC z$hSTY*v36vwSEIXuc~;i^+M3Rt&|b<{2~kM71^r+t181JGkFUy?stJrOmpuHN4dO zH4al!uw8iUYrzxlxouL7ZseBdNX_*2T&i#B_tr|%cI6$-OGYWJvp|!Y<1-ccnS;D3 zlS{19%^A|J?}GtAW>h-ld9`%ou;YO!Zc46$qkBM^I^>ODp=Z zLZ`T@hl=t{bEE85Ozn#hZWshle+`WO>1hkfJ+-hL$QG<~!ReDM*qr2(LzJ9UVuS`R zzfD*ua4D=KOYR}M1%v9RVh}0lQ9&ar=u(7k9{EjEDE>Jo~Z8oob&9n$YOd%9PFoWWbW~;huQ(>5LvBTjriv(3j2g8TE^-WB4w>t&@QZQ*hUWHUq+QZKl=VDvpRhWdUky@KwC61V%6s}6qHTvv!$Zp zSrtrkkQIC{QG9jYSlLQND$4WrHT8;Fh1RJ#dgC(jym6#CeWUQ$QvU4QB4YH1ustk$ zuOY8@2`qBR-AH`VNanwGV5^*Z7%oix`=gb&3wuLV_$kH!Zc{P#b_(42d&$7cd_841 zwG+3XTu`ps9!Fv3=f_szKHAy<7-LMlj1$S-H&VID5M_?{(^^x9iQ>R8%V2g^&InBvS%`Ja2MU%zqe->i6MCM%9qkx zTg8|+p7HRu(bqbFw#xKXXl!N##Y}j)^r*FxGMU!0tfPP%8VAo!X*F5$XS#srFj5YSu<)1IC$nkiTy^ zIPvHM(aOnFn1A~&})Sj81f@Fz@#r)gB*P>rhr1J4GF8Usal2I^QZKIcM1QKl>JfXW2gycqS-G zM@ojAdfGkbeH2K~^gPpoW^}r#5{WvY_8CSYHV`8=u88z1Z3}8?2B?^`Au_WaUr(0p z+$_psoTaBIyIUWd6u`8IodzvkK+IW1HsV|Ijoq5<7^9qeAoZh|P*WUf@ zBuoL%b2j;6OYq*s4K)aa8_`v-eA`ANqJ*@m-!hV5BZeYvfz@W(_8izdNM>eAkZcrq z*EI!^a+xN1X+)a6(8*|2OsSAs^%me>E(X3f5Qph-N5pccb4&xgp}rJYrB2Qt=<-KEXQ~*Z=|IHJ;ahmxB zWHY3U^C?&HorW)jU1e}vHSIn4^JG2#2Sjzab&-Xit8Wdpkx%4{Sd3~k@rwVvzGkPQ zK~MtXwQYQk+%j9E*Jfd$a_m__c({b{6i9nB+Q3P>D?F6Ok}j*Wrz7^euNS8(d&FD$ zy*@s!5>Yad=r5cB`!rapcIWL9-5U&@_9NdPHLgutN}&9bV5~#CMbLYr5~VMy?{*04 z?q%AAg2;TGB6sD8#8eQ*N}@5OO9^s8PacWx)rL;c|68cCc-Qd>F9nPglZnlvWW1jq z|D0R3_Y>4CJp64Eii9|wi9BufF@{R$D$y&=HoqY`S8wWt*PaEiLH`GA2&c!&Eqz#? zFMA!FHGL=nSQX`R%3n_%ch1IpWt-}fh{>(J45`y;OzzxNk0*$EP(3q^#;!dMu;!jH z0L>u|^fOCH1cl-~%2lrGP8S`WC*g_3$6XD$26bwfQmmB&VM;-OYRjaYMF&M=FA%h4 zEWYYfMcM=UfOmrB5sJ)<)#Wy9Ql-7*fW381FBM(bu66Hh1@0`P0T$1V@|XQ|F`)}{ z(ao};d3y+{^7aZ&qZUYg5C|F1UzVHb2^Y7RAikR+%@30Y0Qni2uS|{GZwn4-TfgZ02K5>CGegeyx67) zU$@Z`v0o=%x`%24r(JyimFEYi{Fb#Jjo&_ysjjt^f2?XBk&ZW_YgNmL*_qk1d?Rxf zoI)p;pa;r53tK7IgZ}*R%&hH+6J;78zw;laoX%;oT=Z-|_ zireDI9!jN99kylO)71jqN4XBu3cHfSW6op*_u2V&AE@&-P^Qjb-77~88#o1uN^E7x z{{yR%5nX|Mdt~U@bHNM~4S~$L8THy_75X(52#X^h30e@Qbdro7HQ=+qmpJWYM?!%# zQ{kr6z?Yz!nlH7b?nxribm2X=rba>UE--G{U%;MqA>ErRNnT%B0)lx*S~1eyS~=m; z=jKq{V1n>ctz^v&Y~+*x6xS9%8!`DRuy@@*t+rDu1Q&5cDcv9_#WEb@GhQdLy`0X_ z>6`1ssJoBnsSwQ;M6FQ~1((>RLVKp=@kvW)XJd-fSxDbycz%C*E6BXxuZjw2K3Y%i zoclb~zl*f*%uT+^SxnQ%ca9PH4iva=AN4vpFs&E|sz35Yq+J6LMqd(k65F0mti1La z=f#l|)i&(L{f0N_^BwmAq#I!{r7s|-WZiKPRG$@zWWaFR=C=V)NYpw@>tmTEQ)wn; zKI*X0h%S%-obZqpm$r$uV3-}-aA5npO(Sv5T~@+llXy9Do|X&no(9{O$b1qS^^9Xf zQn{xXBKtY^6{F!M$$U$rKP10pQd^4OGX#7K5?XleZ=% zZXdCGAZq}^SbLgREA|OGtM~ow7J+dRp4oS@4W^0Ygp-W0L-W|2y zn&VycG6}uVlr6-7b4K_o#^?)J)wWtA)nl}~SJ1j)hc5BT;b-oRK#q#D@qgq1ef?l0 z`_+tN=c!9FSwQcJAOg13g@+rFV!c#<(a6q+B>C&as(3 zX&AQ*xB^4L2E0N+bMA)5z&XC{tADv`=3rX*cJ?s5CJo;4z2wx-j~d}VK}Rsz*yfNU zM|c7CzS(f!8%$hAAOO{9@c|_g^v*kjhM|cEW@^*5spe4C`UUW-GJDAcr7uV2>y6u6 zJBxKCJ&xvA{>k%%4N)^8qP=H|AY|VMdr9?G00K%_v@?sn05NDf{;hg@nRRWN%lHCk z#B-p74-Bh@)swNeAhj0SZ7U4Y*!R^Q(KLSJkr@p6+ldEe$axpPhw9* zH@saH7KHqYu>F>}ZT?B`QP82~W3%K*Pc!D@=1|H5D>TE6ov?cgf{w#_1I-IHy8|W! zbLdwe;P-R+6N}J$P1qayueL#pv|CgWu7!5?4RRD?1Phv^HGhzQK;xd(d}Rt7vNy@b z*_#h9A>;3eoAu7;R$Wf2J45wvgt6~L;>o%D4 z_1?zt0wi^h00My*K!W0xmy_w;(b7 zNwB9wQ^A$@966P?xm$Ehl4pkG{a9^;Y<%h6G8GXgiDK=q;d^(Wef*UsOMR5Fh%ml9 zuo+}NZR5|%`PoF++tV=NyH%2eos3XuZp==;AAz`Z4Y)w;toS3kc<$IYJKu?6Ipz8D zJGgc8yG>7lwv70e#7;RmRL*Wd=v3-|LaI>N3v#D4jBrvaGL@$`^U-D6qGMjr9O9bTP8Pmkd~A2NNec)}nV?zn zHmFF}*lUEN5|l_KCW!9~8+mvyzw$3QYeR*u4xpL0peHOKrnc zl7B$q4*Wjh>|0?^+rW!sN(Z;_etDEtT3vPR9Q--bOj$li>Nga}L4_Ptdz@++KBc(} zCnkqn{nzG>UrYobH~=NGANgr2mccfpA-PF_U)6+fHVBNYxA7*%M+cuwm`n$qmrdvw zpp|Wyjuj*Cso#??Hn!S1tGZu{C2G^eRiANscXs~bPETuXxPar?WJkW@8<|!{4n7W@ z{fiwX)cnS{n5!U9t~WaI`R4L{Q+zdOpD{}ucjyM3sQaElF@I-Q5FUj+K)l3~jM|{) zKNxw7StJ)5A6QQfgiFI8na!Y+&kb>KdHzN2Cn^%<%^)_zH4~A?)?R*&ieY4Zq}yXi zeSR64xOQqB$v2){^3eZbQjo)yNE5|?V__QMqPe`s2&{Z1&g(^YP|IIgPgpuFJrnEB zr-=>am0?)AN^Qy0v?>gB0vbOkEdK{p#GQSk*(qVzSTZMR!>w?lIEWF)*wWaF#uHVU z-8B&O9zh%&fS1^?(MRXghVMG8!48lO1>-DwWnH+azjVzXW=wJ2B9r%t(rJcDL@Ol) zHuRt|wMUFiKpTor3_+$-vRjBdZ0*E`?|yBPR_xAA znhk3yFeuJj;6z4L5n>j~TG|-mW9}DazppqTK<8NBs;ZtqVG@veH#3Bf8+@d(6=xKU zWMNxilvd__tsWsTx ztMi(D8rBqkzMci*N4-b$29s1EHP?J-IXT=N^e$C9= z&MbA_cZQL{hLe=r_?6n$!rU}gFrjGcu7@XfJ$g;0%|;i;c5js$FH)7I>fDL<;Z=u< z!i*nBdp{GB+0|s@%<%fJ;PCfklB(}Dv-DDvQES}nl@cZViC%I20uh=7E$k+iknj_I z&q7@TSeV~i;%=6Giu>9$)tFj8-$?diB#r!qa|Zc1?#*jU9FMs{*&g6IUsxg199b>l zQCp9`{f19ZV_{sX)!yfgg*FS!<}hM-vuji~%D6j;MIfi}Q~9+-tJICZoUq)=&s%Kc zRSElHy!S_~`IkB?<~sqmbQ_u3UZ^P-ot(G_TIH7e4@8B|s<*F$p3Wt~|Ac4;FN|u! z_Pi5oEX{aAQ*cA!acAr8xKi^Q zQ|faDTtW$K=r7aL#<0rMDWUftuu74V>09t~^)z$3ruXf@ceF6i?AWrv76`d^axz$V zA19f8O89r>)rF3e>mbNTn#k;YtzU_SW(=&u@-9OmB*-3nXHT_HJsbxB9fSW=2?Sz_ zby~V$xgmWO;hVpEJ^?}0lJQ|~Y78H4@g{xttkYZ0+Vryxe74I1loVS>ZF&mPWBp4b`;rA^0Z`S5hFG?_6Zq zFWx8%1#=%UA5Fl2KYByKvxCWT_CeCS=<>AG+JOlc$gXhzut8j z(65Gdw7pkLm~B@uLiX9r?BN$10YlML0BZdaYh`F{9E7N%4R*qsyAo|mXDTY@A9K;D zp;u*kgjucM$-%r&I~OBu?tvvk_d~Ku zm0jbNEWJW+R~b4BO2b#fHtP~(+UVVD>f3H8^mTPz9rOpicDbv7^LF{MJAn}?yx+wo zwPH_~YP4&ZpO%Ke8*s-1nAo)B6j)koXj3Ha{+>g}bp>(P*~XpiuGRJiAFgAQmWpdauFec2zONAn3 zDz4~8hzkmj)>j^bVL#N_14^MO8QZ+q!kKq-0dHSShV{K_)#w)=IX0|_VLATbu!6<| zwICHlT7YjFofZRodwe4$`f)N_EWLcLe{MdFVd~619h`_f8<+rrO`gt7foAxB4#TD= znTTre#4BgBVD!s;pJBK$-@KDF({Q3vc>+|d<1h*Vv-09helaRwfBR_egYf-6vC%(Q z?Bhr2Xr=l?<%KR-S*R!4#u>0ph-z<7>ofJOlFZh)Ii)h}1|%pWxp%_6FVFkLGv6hW3MIWn#zLF@=_%?*qfr1fa&ES7w+Q7Z-z-bY8Oo3|2yN3$?D`0nel!!RX?CSaF_iu-%!lQ!F#EYRRj zUyAN-d3%lQmu$j*6p@8ni1tEIXO+gdw&ir&^k}Z&#OYb);HIqNRExWh`_3N8vJAWE zZot(iklj&ZJ$z_J|J!DVM301w);M;eggGesdhXP0w&sGL=8;4()fg!qb8@Iy+P9}$ zeRxN{VyK~p;YS);{VMR+I1=OD^;xrQvg((3Aj?FkragVf0#RRcAU$OF9%n8{q0Y(& z4uMT`&dT%owg;Tm8mLp~lrc@P6z!l5O5J``r|BBQwD)>X2s7|!&NOS*^Z4+tvWI|p z&9>1M#b8GXUo$ScRYRn|@TYS&!%fhFyKMHjuL*N>G$~%vnx4&m`){6R)9wAc^aZM%>-ZygAFB>*va1QR6k|;km`oaJ zzU)J+0%br*thfc6aL^tz00&v{kybcU;W5GHRKvY<PCVU0Tg(bK!rVBQf@Ki9ws{whUeT4S^ofp< zj%tOEhA{f7n|kQAQS^qf3#Cs&+;p|Ur|?`&*v)fBCcll7>Q>Uw7 z3kf1#0fwrgHn*JgrgV&Jgh@wHx&jNj_G;RZ4sL-dP@<_W?m;V@`zooIF&2bVbK?~y zPo*z72K+db7?aGlbL>{RMG3nV;4Bxg$)$I(3rl_bb9r|J?1Cw}Nie?2ylA+yM*vB) zakV}}16(ro`UHsV`3ul13L9GEk=Mz zieuAnl2z|NWXO$_X9KfZ)i~4Byakx09VDmRQ}39)n7me$#L2b&vhO=qt?h}?a__)0 z6j{2CFb`b zUorvXig@G__zmYli9z2l5%G+~zZC1_)W5EhU6smndkV6^>QdWmGR$_;oet=0yt@mT zJ?W%+M-mANQ`%8>&84#=Zpl`J3BBV%0|4kufy{BL&jLh7+bMeB_|(k-e6Ed2WUp|3 zOksH*t_g4x(@0oF$F+qCNQ{_ww05?yE{>E`GZ7=IX2GY2%P$Q%uxcSrt*Ye?@(9rT z9RLLLX}7uAS0G3>R@?S?3O7AgF8A(tLy768Ows+$6MFpfZq?!2in8>DG}+FUYHyrr zR{IAdXC5gy%Oi%=`!5WooqTLUflqbsHP=jtw9AY)qBtXIIBi4$(R&g&$OutAn3h@Uf#_ zsswCCr{@t_xR`wI?QJjF!l{*y1?W(QD=}^Ii}#y?E##}41TOfZHhZM`zqa!yQbO1O z<337>VQkSQy=9i_$<+%JYfu^``l}>w|bF8|_lg zpC5K>vQ>Br(=!-yg+(!g)|`>6$T*{y?Zq_9FryYbSC@zG8)&}Yt7+-|Sw()iMHB&r zsB-_V&)TT19sqTv-wzz8*V@7{7W8K>V&B|m+8IxGcoVkEk;Bw=pf=7C3e8qvV-CHzy%Qk zRH=Vr1;nlZGW~Sol6-$gqbj-#2cR_z4CZ zt%d^#0q@_nw;Wkb&H82X4Qf0emodoXx`C-%X217)-_~jz&&dor@OoYsiYLH}r7y(v)V}H3bP&7ng2S7RZfa(v#9?$0ojp;8})iv{2vQ zB0NUf{!S+lymNnH-8)&mC~HyzU{`<1^eEv2pWErzPG!S`1D#|Xxyr+Q!P!=b3%>zx z9)GSUM309IA9^M5@SGldvf!;((U!w?_PH16Zu{MTt|&4kkv^a~eV5%MoV4ViO*kCb znGZ2_>rmg&cPh-qBd5PjCE{Bo-dNX2YuLZZ%x zG^4;FK1#6R@Cq(ivM}}FX!$zMw~K+H-S|dJc%8z=dE_y6rY~FbVRK?ll#sm<9MA=A zTqeXWdpFp#ZL;Io%=cZddP52#e(O-<8=JkcigwT;5O0a`2_5F92g(zNrW~h4-Mr)f zAVlc!p&YAakq0lBMxN>@idQf^v_+IMe%hM4cP=A=AY%rYO&Ls{W2ogDSO@2l>XEoE#<57ufAQ0K`n+U1RkHWPfzoR{<<2RY$@*j z*gGx~65198nz@}kJmz}dLXP63RQ)Za7Chyid?oS5PIjdC?2_b{Tv~eyhGI-^NRbCN>LBk!zAei;q0sKneLl5#$AcMJIGD-5 z3J}z9JK0?Binoxv7G51)i3tV^y;8p!rXE=h&Q&;>OgQfTqG(ija^rw;2^;V9bHp5j@vRZxcTWtB$|d-v1w7DUe%l7)s&7gSs&-6o z#8i2J3Y`IOiZe>QNs6L2w0srj_;0gM{?xW%Yt;_$^!{no`IeI?(aynjK@R)U{>EEE zRI^&%y9JIBa=-yqKIqKAHH}0}2Jo(&1(Kvl8+MG0f#UA#v>E~ zUR!XWx>G-tCr{N;KNYRQ@RFzZLHcpb9_16GU6WwKmOXxSN5_>S<6yF(s0USxG+-(1Ij3lmN96)2JbKjg!@Nr(=oz}TlfZ@Eyc^PeV8DTrv#CFI-cxw!f$|sc{ue)q=_zp` zj*BPGlMcU0jkKJjzHUGZBk3AkhBLUr67kIiQ%7ik-u;tCP@h@<$|1uU`(GL35XH>} z!c_6WzGDc5ZbqT77Ii%c5m1U=3TxW{Xe69x1kI_|?SepYWX_QGGfrOK=xF@P5y^=ff_mG9fmk3v?h`NJ9)7(+VIWG@Xl z8N+s=OqR4=i`V1OYjsYI_Jl@y4MoFo;BpR+Qn`=+j{3ghoEPbb7_ti`*kbrpL-Z+2 z`3tWKsh<%|eh`zMYqrSa`ZBJr7I1df&VgOACdUS92n#jDxRB7YQ&>Zr9S@{~$pQl1 zWdD_T3;WX59ZGN!rvagN$Z=PxfiW$@(u`l_64AwU;xbEbE~af(l{ zgcQ#~IO*Z1_27*m3w4f~tCm+~d-(D1r?qjw6{}^AIn#Z|DpMGP;sGjzlQrr7CJ5@? z8%=WVyPf4#u)fIM>%jT^ZZNNPq2wHi_@!Zf2tOS-4eFzzSOso0fJ+xk9_j2+zOUc0 z@)Go?H_qS+&~u$oT@1s|2NhJyJ3jxocj+n1t(^6$_cn#B4YxoL^6RxJNCl2 zB0;P7xB~7t z$!l&kHUQ&Ebi3eO3<$WKALI`>$y0aSL0_7EetM4_WZW4v*QGuj7%TnUY`?zoOa$HL zYmN4VrIy8@K-mu_f3$*6PM1yrjW9-UoHo|}n6}|ZP%iyBx#HKT+l2%enQY~7LNBftfZIA*AgEj^Q1Y*nCciqZnacjn>AymjcOin{S4~|&B?$F* z!_Ld2z8!P^4+a-coyoqYZGVk``gG>by-Qp<_xzm#;5E-L315KE{+wFzyVJMd%)N{e zjLRyOBR@)z;71=%9@;iv_D*lj_PGyJ(~$8EjP$f@g*kT@g3@6*`}mz+qDM^BfST#? z`u6@ju-&~gTdNO8j3%2a?tp9tLVnD7WsUJJ(Du3q zv@cmt9l~1aV-9RQ?XJDQ=;DNSak@06)y?jKjW@flfk$2+b;7zh1y8Nm!9hRLXKXD> z1(*5oxyDC^`>> 1, + i = e[r] + if (!(void 0 !== i && 0 < be(i, t))) break + ; + (e[r] = t), (e[n] = i), (n = r) + } + } + + function ve(e) { + return void 0 === (e = e[0]) ? null : e + } + + function ye(e) { + var t = e[0] + if (void 0 !== t) { + var n = e.pop() + if (n !== t) { + e[0] = n + for (var r = 0, i = e.length; r < i;) { + var o = 2 * (r + 1) - 1, + a = e[o], + l = 1 + o, + s = e[l] + if (void 0 !== a && be(a, n) < 0) + r = + void 0 !== s && be(s, a) < 0 + ? ((e[r] = s), (e[l] = n), l) + : ((e[r] = a), (e[o] = n), o) + else { + if (!(void 0 !== s && be(s, n) < 0)) break + ; + (e[r] = s), (e[l] = n), (r = l) + } + } + } + } + } + + function be(e, t) { + var n = e.sortIndex - t.sortIndex + return 0 != n ? n : e.id - t.id + } + + function we(e) { + for (var t = ve(oe); null !== t;) { + if (null === t.callback) ye(oe) + else { + if (!(t.startTime <= e)) break + ye(oe), (t.sortIndex = t.expirationTime), me(ie, t) + } + t = ve(oe) + } + } + + function Ce(e) { + var t + ;(de = !1), + we(e), + ue || (null !== ve(ie) ? ((ue = !0), X(xe)) : null !== (t = ve(oe)) && Y(Ce, t.startTime - e)) + } + + function xe(e, t) { + ;(ue = !1), de && ((de = !1), q()), (ce = !0) + var n = se + try { + for ( + we(t), le = ve(ie); + null !== le && (!(le.expirationTime > t) || (e && !F.unstable_shouldYield())); + ) { + var r, + i = le.callback + 'function' == typeof i + ? ((le.callback = null), + (se = le.priorityLevel), + (r = i(le.expirationTime <= t)), + (t = F.unstable_now()), + 'function' == typeof r ? (le.callback = r) : le === ve(ie) && ye(ie), + we(t)) + : ye(ie), + (le = ve(ie)) + } + var o + return null !== le || (null !== (o = ve(oe)) && Y(Ce, o.startTime - t), !1) + } finally { + ;(le = null), (se = n), (ce = !1) + } + } + ;(F = s = {}), + 'object' == typeof performance && 'function' == typeof performance.now + ? ((B = performance), + (F.unstable_now = function () { + return B.now() + })) + : ((V = Date), + (W = V.now()), + (F.unstable_now = function () { + return V.now() - W + })), + 'undefined' == typeof window || 'function' != typeof MessageChannel + ? ((Z = G = null), + (U = function () { + if (null !== G) + try { + var e = F.unstable_now() + G(!0, e), (G = null) + } catch (t) { + throw (setTimeout(U, 0), t) + } + }), + (X = function (e) { + null !== G ? setTimeout(X, 0, e) : ((G = e), setTimeout(U, 0)) + }), + (Y = function (e, t) { + Z = setTimeout(e, t) + }), + (q = function () { + clearTimeout(Z) + }), + (F.unstable_shouldYield = function () { + return !1 + }), + (je = F.unstable_forceFrameRate = function () { + })) + : (($ = window.setTimeout), + (K = window.clearTimeout), + 'undefined' != typeof console && + ((Ve = window.cancelAnimationFrame), + 'function' != typeof window.requestAnimationFrame && + console.error( + "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills", + ), + 'function' != typeof Ve && + console.error( + "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills", + )), + (Q = !1), + (J = null), + (ee = -1), + (te = 5), + (ne = 0), + (F.unstable_shouldYield = function () { + return F.unstable_now() >= ne + }), + (je = function () { + }), + (F.unstable_forceFrameRate = function (e) { + e < 0 || 125 < e + ? console.error( + 'forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported', + ) + : (te = 0 < e ? Math.floor(1e3 / e) : 5) + }), + (Ve = new MessageChannel()), + (re = Ve.port2), + (Ve.port1.onmessage = function () { + if (null !== J) { + var e = F.unstable_now() + ne = e + te + try { + J(!0, e) ? re.postMessage(null) : ((Q = !1), (J = null)) + } catch (t) { + throw (re.postMessage(null), t) + } + } else Q = !1 + }), + (X = function (e) { + ;(J = e), Q || ((Q = !0), re.postMessage(null)) + }), + (Y = function (e, t) { + ee = $(function () { + e(F.unstable_now()) + }, t) + }), + (q = function () { + K(ee), (ee = -1) + })), + (ie = []), + (oe = []), + (ae = 1), + (le = null), + (de = ue = ce = !(se = 3)), + (Ve = je), + (F.unstable_IdlePriority = 5), + (F.unstable_ImmediatePriority = 1), + (F.unstable_LowPriority = 4), + (F.unstable_NormalPriority = 3), + (F.unstable_Profiling = null), + (F.unstable_UserBlockingPriority = 2), + (F.unstable_cancelCallback = function (e) { + e.callback = null + }), + (F.unstable_continueExecution = function () { + ue || ce || ((ue = !0), X(xe)) + }), + (F.unstable_getCurrentPriorityLevel = function () { + return se + }), + (F.unstable_getFirstCallbackNode = function () { + return ve(ie) + }), + (F.unstable_next = function (e) { + switch (se) { + case 1: + case 2: + case 3: + var t = 3 + break + default: + t = se + } + var n = se + se = t + try { + return e() + } finally { + se = n + } + }), + (F.unstable_pauseExecution = function () { + }), + (F.unstable_requestPaint = Ve), + (F.unstable_runWithPriority = function (e, t) { + switch (e) { + case 1: + case 2: + case 3: + case 4: + case 5: + break + default: + e = 3 + } + var n = se + se = e + try { + return t() + } finally { + se = n + } + }), + (F.unstable_scheduleCallback = function (e, t, n) { + var r = F.unstable_now() + switch ( + ((n = + 'object' == typeof n && null !== n && 'number' == typeof (n = n.delay) && 0 < n + ? r + n + : r), + e) + ) { + case 1: + var i = -1 + break + case 2: + i = 250 + break + case 5: + i = 1073741823 + break + case 4: + i = 1e4 + break + default: + i = 5e3 + } + return ( + (e = { + id: ae++, + callback: t, + priorityLevel: e, + startTime: n, + expirationTime: (i = n + i), + sortIndex: -1, + }), + r < n + ? ((e.sortIndex = n), + me(oe, e), + null === ve(ie) && e === ve(oe) && (de ? q() : (de = !0), Y(Ce, n - r))) + : ((e.sortIndex = i), me(ie, e), ue || ce || ((ue = !0), X(xe))), + e + ) + }), + (F.unstable_wrapCallback = function (e) { + var t = se + return function () { + var n = se + se = t + try { + return e.apply(this, arguments) + } finally { + se = n + } + } + }), + (ge.exports = s) + var Ee = l.exports, + Oe = f, + Se = ge.exports + + function ke(e) { + for ( + var t = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, n = 1; + n < arguments.length; + n++ + ) + t += '&args[]=' + encodeURIComponent(arguments[n]) + return ( + 'Minified React error #' + + e + + '; visit ' + + t + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' + ) + } + + if (!Ee) throw Error(ke(227)) + var Pe = new Set(), + _e = {} + + function Le(e, t) { + Te(e, t), Te(e + 'Capture', t) + } + + function Te(e, t) { + for (_e[e] = t, e = 0; e < t.length; e++) Pe.add(t[e]) + } + + var je = !( + 'undefined' == typeof window || + void 0 === window.document || + void 0 === window.document.createElement + ), + Ie = + /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + Me = Object.prototype.hasOwnProperty, + Re = {}, + De = {} + + function Ae(e, t, n, r, i, o, a) { + ;(this.acceptsBooleans = 2 === t || 3 === t || 4 === t), + (this.attributeName = r), + (this.attributeNamespace = i), + (this.mustUseProperty = n), + (this.propertyName = e), + (this.type = t), + (this.sanitizeURL = o), + (this.removeEmptyString = a) + } + + var ze = {}, + Ne = + ('children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' + .split(' ') + .forEach(function (e) { + ze[e] = new Ae(e, 0, !1, e, null, !1, !1) + }), + [ + ['acceptCharset', 'accept-charset'], + ['className', 'class'], + ['htmlFor', 'for'], + ['httpEquiv', 'http-equiv'], + ].forEach(function (e) { + var t = e[0] + ze[t] = new Ae(t, 1, !1, e[1], null, !1, !1) + }), + ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (e) { + ze[e] = new Ae(e, 2, !1, e.toLowerCase(), null, !1, !1) + }), + ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach( + function (e) { + ze[e] = new Ae(e, 2, !1, e, null, !1, !1) + }, + ), + 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' + .split(' ') + .forEach(function (e) { + ze[e] = new Ae(e, 3, !1, e.toLowerCase(), null, !1, !1) + }), + ['checked', 'multiple', 'muted', 'selected'].forEach(function (e) { + ze[e] = new Ae(e, 3, !0, e, null, !1, !1) + }), + ['capture', 'download'].forEach(function (e) { + ze[e] = new Ae(e, 4, !1, e, null, !1, !1) + }), + ['cols', 'rows', 'size', 'span'].forEach(function (e) { + ze[e] = new Ae(e, 6, !1, e, null, !1, !1) + }), + ['rowSpan', 'start'].forEach(function (e) { + ze[e] = new Ae(e, 5, !1, e.toLowerCase(), null, !1, !1) + }), + /[\-:]([a-z])/g) + + function He(e) { + return e[1].toUpperCase() + } + + function Fe(e, t, n, r) { + var i, + o = ze.hasOwnProperty(t) ? ze[t] : null + ;(null !== o + ? 0 !== o.type + : r || !(2 < t.length) || ('o' !== t[0] && 'O' !== t[0]) || ('n' !== t[1] && 'N' !== t[1])) && + ((function (e, t, n, r) { + if ( + null == t || + (function (e, t, n, r) { + if (null === n || 0 !== n.type) + switch (typeof t) { + case 'function': + case 'symbol': + return 1 + case 'boolean': + return r + ? void 0 + : null !== n + ? !n.acceptsBooleans + : 'data-' !== (e = e.toLowerCase().slice(0, 5)) && 'aria-' !== e + default: + return + } + })(e, t, n, r) + ) + return 1 + if (!r && null !== n) + switch (n.type) { + case 3: + return !t + case 4: + return !1 === t + case 5: + return isNaN(t) + case 6: + return isNaN(t) || t < 1 + } + })(t, n, o, r) && (n = null), + r || null === o + ? ((i = t), + (Me.call(De, i) || + (!Me.call(Re, i) && (Ie.test(i) ? (De[i] = !0) : void (Re[i] = !0)))) && + (null === n ? e.removeAttribute(t) : e.setAttribute(t, '' + n))) + : o.mustUseProperty + ? (e[o.propertyName] = null === n ? 3 !== o.type && '' : n) + : ((t = o.attributeName), + (r = o.attributeNamespace), + null === n + ? e.removeAttribute(t) + : ((n = 3 === (o = o.type) || (4 === o && !0 === n) ? '' : '' + n), + r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))) + } + + 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' + .split(' ') + .forEach(function (e) { + var t = e.replace(Ne, He) + ze[t] = new Ae(t, 1, !1, e, null, !1, !1) + }), + 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' + .split(' ') + .forEach(function (e) { + var t = e.replace(Ne, He) + ze[t] = new Ae(t, 1, !1, e, 'http://www.w3.org/1999/xlink', !1, !1) + }), + ['xml:base', 'xml:lang', 'xml:space'].forEach(function (e) { + var t = e.replace(Ne, He) + ze[t] = new Ae(t, 1, !1, e, 'http://www.w3.org/XML/1998/namespace', !1, !1) + }), + ['tabIndex', 'crossOrigin'].forEach(function (e) { + ze[e] = new Ae(e, 1, !1, e.toLowerCase(), null, !1, !1) + }), + (ze.xlinkHref = new Ae( + 'xlinkHref', + 1, + !1, + 'xlink:href', + 'http://www.w3.org/1999/xlink', + !0, + !1, + )), + ['src', 'href', 'action', 'formAction'].forEach(function (e) { + ze[e] = new Ae(e, 1, !1, e.toLowerCase(), null, !0, !0) + }) + var Be, + Ve = Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + We = 60103, + Ge = 60106, + Ze = 60107, + Ue = 60108, + Xe = 60114, + Ye = 60109, + qe = 60110, + $e = 60112, + Ke = 60113, + Qe = 60120, + Je = 60115, + et = 60116, + tt = 60121, + nt = 60128, + rt = 60129, + it = 60130, + ot = 60131, + at = + ('function' == typeof Symbol && + Symbol.for && + ((We = (s = Symbol.for)('react.element')), + (Ge = s('react.portal')), + (Ze = s('react.fragment')), + (Ue = s('react.strict_mode')), + (Xe = s('react.profiler')), + (Ye = s('react.provider')), + (qe = s('react.context')), + ($e = s('react.forward_ref')), + (Ke = s('react.suspense')), + (Qe = s('react.suspense_list')), + (Je = s('react.memo')), + (et = s('react.lazy')), + (tt = s('react.block')), + s('react.scope'), + (nt = s('react.opaque.id')), + (rt = s('react.debug_trace_mode')), + (it = s('react.offscreen')), + (ot = s('react.legacy_hidden'))), + 'function' == typeof Symbol && Symbol.iterator) + + function lt(e) { + return null !== e && + 'object' == typeof e && + 'function' == typeof (e = (at && e[at]) || e['@@iterator']) + ? e + : null + } + + function st(e) { + if (void 0 === Be) + try { + throw Error() + } catch (n) { + var t = n.stack.trim().match(/\n( *(at )?)/) + Be = (t && t[1]) || '' + } + return '\n' + Be + e + } + + var ct = !1 + + function ut(e, t) { + if (!e || ct) return '' + ct = !0 + var n = Error.prepareStackTrace + Error.prepareStackTrace = void 0 + try { + if (t) + if ( + ((t = function () { + throw Error() + }), + Object.defineProperty(t.prototype, 'props', { + set: function () { + throw Error() + }, + }), + 'object' == typeof Reflect && Reflect.construct) + ) { + try { + Reflect.construct(t, []) + } catch (s) { + var r = s + } + Reflect.construct(e, [], t) + } else { + try { + t.call() + } catch (s) { + r = s + } + e.call(t.prototype) + } + else { + try { + throw Error() + } catch (s) { + r = s + } + e() + } + } catch (s) { + if (s && r && 'string' == typeof s.stack) { + for ( + var i = s.stack.split('\n'), o = r.stack.split('\n'), a = i.length - 1, l = o.length - 1; + 1 <= a && 0 <= l && i[a] !== o[l]; + ) + l-- + for (; 1 <= a && 0 <= l; a--, l--) + if (i[a] !== o[l]) { + if (1 !== a || 1 !== l) + do { + if ((a--, --l < 0 || i[a] !== o[l])) return '\n' + i[a].replace(' at new ', ' at ') + } while (1 <= a && 0 <= l) + break + } + } + } finally { + ;(ct = !1), (Error.prepareStackTrace = n) + } + return (e = e ? e.displayName || e.name : '') ? st(e) : '' + } + + function dt(e) { + if (null == e) return null + if ('function' == typeof e) return e.displayName || e.name || null + if ('string' == typeof e) return e + switch (e) { + case Ze: + return 'Fragment' + case Ge: + return 'Portal' + case Xe: + return 'Profiler' + case Ue: + return 'StrictMode' + case Ke: + return 'Suspense' + case Qe: + return 'SuspenseList' + } + if ('object' == typeof e) + switch (e.$$typeof) { + case qe: + return (e.displayName || 'Context') + '.Consumer' + case Ye: + return (e._context.displayName || 'Context') + '.Provider' + case $e: + var t = (t = e.render).displayName || t.name || '' + return e.displayName || ('' !== t ? 'ForwardRef(' + t + ')' : 'ForwardRef') + case Je: + return dt(e.type) + case tt: + return dt(e._render) + case et: + ;(t = e._payload), (e = e._init) + try { + return dt(e(t)) + } catch (n) { + } + } + return null + } + + function ft(e) { + switch (typeof e) { + case 'boolean': + case 'number': + case 'object': + case 'string': + case 'undefined': + return e + default: + return '' + } + } + + function ht(e) { + var t = e.type + return (e = e.nodeName) && 'input' === e.toLowerCase() && ('checkbox' === t || 'radio' === t) + } + + function pt(e) { + e._valueTracker || + (e._valueTracker = (function (e) { + var t, + n, + r = ht(e) ? 'checked' : 'value', + i = Object.getOwnPropertyDescriptor(e.constructor.prototype, r), + o = '' + e[r] + if ( + !e.hasOwnProperty(r) && + void 0 !== i && + 'function' == typeof i.get && + 'function' == typeof i.set + ) + return ( + (t = i.get), + (n = i.set), + Object.defineProperty(e, r, { + configurable: !0, + get: function () { + return t.call(this) + }, + set: function (e) { + ;(o = '' + e), n.call(this, e) + }, + }), + Object.defineProperty(e, r, {enumerable: i.enumerable}), + { + getValue: function () { + return o + }, + setValue: function (e) { + o = '' + e + }, + stopTracking: function () { + ;(e._valueTracker = null), delete e[r] + }, + } + ) + })(e)) + } + + function gt(e) { + if (e) { + var t = e._valueTracker + if (!t) return 1 + var n = t.getValue(), + r = '' + return ( + (e = r = e ? (ht(e) ? (e.checked ? 'true' : 'false') : e.value) : r) !== n && + (t.setValue(e), 1) + ) + } + } + + function mt(e) { + if (void 0 === (e = e || ('undefined' != typeof document ? document : void 0))) return null + try { + return e.activeElement || e.body + } catch (oh) { + return e.body + } + } + + function vt(e, t) { + var n = t.checked + return Oe({}, t, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: null != n ? n : e._wrapperState.initialChecked, + }) + } + + function yt(e, t) { + var n = null == t.defaultValue ? '' : t.defaultValue, + r = null != t.checked ? t.checked : t.defaultChecked + n = ft(null != t.value ? t.value : n) + e._wrapperState = { + initialChecked: r, + initialValue: n, + controlled: 'checkbox' === t.type || 'radio' === t.type ? null != t.checked : null != t.value, + } + } + + function bt(e, t) { + null != (t = t.checked) && Fe(e, 'checked', t, !1) + } + + function wt(e, t) { + bt(e, t) + var n = ft(t.value), + r = t.type + if (null != n) + 'number' === r + ? ((0 === n && '' === e.value) || e.value != n) && (e.value = '' + n) + : e.value !== '' + n && (e.value = '' + n) + else if ('submit' === r || 'reset' === r) return void e.removeAttribute('value') + t.hasOwnProperty('value') + ? xt(e, t.type, n) + : t.hasOwnProperty('defaultValue') && xt(e, t.type, ft(t.defaultValue)), + null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked) + } + + function Ct(e, t, n) { + if (t.hasOwnProperty('value') || t.hasOwnProperty('defaultValue')) { + var r = t.type + if (!(('submit' !== r && 'reset' !== r) || (void 0 !== t.value && null !== t.value))) return + ; + (t = '' + e._wrapperState.initialValue), + n || t === e.value || (e.value = t), + (e.defaultValue = t) + } + '' !== (n = e.name) && (e.name = ''), + (e.defaultChecked = !!e._wrapperState.initialChecked), + '' !== n && (e.name = n) + } + + function xt(e, t, n) { + ;('number' === t && mt(e.ownerDocument) === e) || + (null == n + ? (e.defaultValue = '' + e._wrapperState.initialValue) + : e.defaultValue !== '' + n && (e.defaultValue = '' + n)) + } + + function Et(e, t) { + var n, r + return ( + (e = Oe({children: void 0}, t)), + (n = t.children), + (r = ''), + Ee.Children.forEach(n, function (e) { + null != e && (r += e) + }), + (t = r) && (e.children = t), + e + ) + } + + function Ot(e, t, n, r) { + if (((e = e.options), t)) { + t = {} + for (var i = 0; i < n.length; i++) t['$' + n[i]] = !0 + for (n = 0; n < e.length; n++) + (i = t.hasOwnProperty('$' + e[n].value)), + e[n].selected !== i && (e[n].selected = i), + i && r && (e[n].defaultSelected = !0) + } else { + for (n = '' + ft(n), t = null, i = 0; i < e.length; i++) { + if (e[i].value === n) return (e[i].selected = !0), void (r && (e[i].defaultSelected = !0)) + null !== t || e[i].disabled || (t = e[i]) + } + null !== t && (t.selected = !0) + } + } + + function St(e, t) { + if (null != t.dangerouslySetInnerHTML) throw Error(ke(91)) + return Oe({}, t, { + value: void 0, + defaultValue: void 0, + children: '' + e._wrapperState.initialValue, + }) + } + + function kt(e, t) { + var n = t.value + if (null == n) { + if (((n = t.children), (t = t.defaultValue), null != n)) { + if (null != t) throw Error(ke(92)) + if (Array.isArray(n)) { + if (!(n.length <= 1)) throw Error(ke(93)) + n = n[0] + } + t = n + } + n = t = null == t ? '' : t + } + e._wrapperState = {initialValue: ft(n)} + } + + function Pt(e, t) { + var n = ft(t.value), + r = ft(t.defaultValue) + null != n && + ((n = '' + n) !== e.value && (e.value = n), + null == t.defaultValue && e.defaultValue !== n && (e.defaultValue = n)), + null != r && (e.defaultValue = '' + r) + } + + function _t(e) { + var t = e.textContent + t === e._wrapperState.initialValue && '' !== t && null !== t && (e.value = t) + } + + var Lt = 'http://www.w3.org/1999/xhtml' + + function Tt(e) { + switch (e) { + case 'svg': + return 'http://www.w3.org/2000/svg' + case 'math': + return 'http://www.w3.org/1998/Math/MathML' + default: + return 'http://www.w3.org/1999/xhtml' + } + } + + function jt(e, t) { + return null == e || 'http://www.w3.org/1999/xhtml' === e + ? Tt(t) + : 'http://www.w3.org/2000/svg' === e && 'foreignObject' === t + ? 'http://www.w3.org/1999/xhtml' + : e + } + + Mt = function (e, t) { + if ('http://www.w3.org/2000/svg' !== e.namespaceURI || 'innerHTML' in e) e.innerHTML = t + else { + for ( + (It = It || document.createElement('div')).innerHTML = + '' + t.valueOf().toString() + '', + t = It.firstChild; + e.firstChild; + ) + e.removeChild(e.firstChild) + for (; t.firstChild;) e.appendChild(t.firstChild) + } + } + var It, + Mt, + Rt = + 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction + ? function (e, t, n, r) { + MSApp.execUnsafeLocalFunction(function () { + return Mt(e, t) + }) + } + : Mt + + function Dt(e, t) { + if (t) { + var n = e.firstChild + if (n && n === e.lastChild && 3 === n.nodeType) return void (n.nodeValue = t) + } + e.textContent = t + } + + var At = { + animationIterationCount: !0, + borderImageOutset: !0, + borderImageSlice: !0, + borderImageWidth: !0, + boxFlex: !0, + boxFlexGroup: !0, + boxOrdinalGroup: !0, + columnCount: !0, + columns: !0, + flex: !0, + flexGrow: !0, + flexPositive: !0, + flexShrink: !0, + flexNegative: !0, + flexOrder: !0, + gridArea: !0, + gridRow: !0, + gridRowEnd: !0, + gridRowSpan: !0, + gridRowStart: !0, + gridColumn: !0, + gridColumnEnd: !0, + gridColumnSpan: !0, + gridColumnStart: !0, + fontWeight: !0, + lineClamp: !0, + lineHeight: !0, + opacity: !0, + order: !0, + orphans: !0, + tabSize: !0, + widows: !0, + zIndex: !0, + zoom: !0, + fillOpacity: !0, + floodOpacity: !0, + stopOpacity: !0, + strokeDasharray: !0, + strokeDashoffset: !0, + strokeMiterlimit: !0, + strokeOpacity: !0, + strokeWidth: !0, + }, + zt = ['Webkit', 'ms', 'Moz', 'O'] + + function Nt(e, t, n) { + return null == t || 'boolean' == typeof t || '' === t + ? '' + : n || 'number' != typeof t || 0 === t || (At.hasOwnProperty(e) && At[e]) + ? ('' + t).trim() + : t + 'px' + } + + function Ht(e, t) { + for (var n in ((e = e.style), t)) { + var r, i + t.hasOwnProperty(n) && + ((r = 0 === n.indexOf('--')), + (i = Nt(n, t[n], r)), + 'float' === n && (n = 'cssFloat'), + r ? e.setProperty(n, i) : (e[n] = i)) + } + } + + Object.keys(At).forEach(function (e) { + zt.forEach(function (t) { + ;(t = t + e.charAt(0).toUpperCase() + e.substring(1)), (At[t] = At[e]) + }) + }) + var Ft = Oe( + {menuitem: !0}, + { + area: !0, + base: !0, + br: !0, + col: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0, + }, + ) + + function Bt(e, t) { + if (t) { + if (Ft[e] && (null != t.children || null != t.dangerouslySetInnerHTML)) + throw Error(ke(137, e)) + if (null != t.dangerouslySetInnerHTML) { + if (null != t.children) throw Error(ke(60)) + if ( + 'object' != typeof t.dangerouslySetInnerHTML || + !('__html' in t.dangerouslySetInnerHTML) + ) + throw Error(ke(61)) + } + if (null != t.style && 'object' != typeof t.style) throw Error(ke(62)) + } + } + + function Vt(e, t) { + if (-1 === e.indexOf('-')) return 'string' == typeof t.is + switch (e) { + case 'annotation-xml': + case 'color-profile': + case 'font-face': + case 'font-face-src': + case 'font-face-uri': + case 'font-face-format': + case 'font-face-name': + case 'missing-glyph': + return !1 + default: + return !0 + } + } + + function Wt(e) { + return 3 === + (e = (e = e.target || e.srcElement || window).correspondingUseElement + ? e.correspondingUseElement + : e).nodeType + ? e.parentNode + : e + } + + var Gt = null, + Zt = null, + Ut = null + + function Xt(e) { + if ((e = oo(e))) { + if ('function' != typeof Gt) throw Error(ke(280)) + var t = e.stateNode + t && ((t = lo(t)), Gt(e.stateNode, e.type, t)) + } + } + + function Yt(e) { + Zt ? (Ut ? Ut.push(e) : (Ut = [e])) : (Zt = e) + } + + function qt() { + if (Zt) { + var e = Zt, + t = Ut + if (((Ut = Zt = null), Xt(e), t)) for (e = 0; e < t.length; e++) Xt(t[e]) + } + } + + function $t(e, t) { + return e(t) + } + + function Kt(e, t, n, r, i) { + return e(t, n, r, i) + } + + function Qt() { + } + + var Jt = !1, + en = !1 + + function tn() { + ;(null === Zt && null === Ut) || (Qt(), qt()) + } + + function nn(e, t) { + var n = e.stateNode + if (null === n) return null + var r = lo(n) + if (null === r) return null + switch (((n = r[t]), t)) { + case 'onClick': + case 'onClickCapture': + case 'onDoubleClick': + case 'onDoubleClickCapture': + case 'onMouseDown': + case 'onMouseDownCapture': + case 'onMouseMove': + case 'onMouseMoveCapture': + case 'onMouseUp': + case 'onMouseUpCapture': + case 'onMouseEnter': + e = !(r = (r = !r.disabled) + ? r + : !('button' === (e = e.type) || 'input' === e || 'select' === e || 'textarea' === e)) + break + default: + e = !1 + } + if (e) return null + if (n && 'function' != typeof n) throw Error(ke(231, t, typeof n)) + return n + } + + var rn = !1 + if (je) + try { + var on = {} + Object.defineProperty(on, 'passive', { + get: function () { + rn = !0 + }, + }), + window.addEventListener('test', on, on), + window.removeEventListener('test', on, on) + } catch (oh) { + rn = !1 + } + var an = !1, + ln = null, + sn = !1, + cn = null, + un = { + onError: function (e) { + ;(an = !0), (ln = e) + }, + } + + function dn(e, t, n, r, i, o, a, l, s) { + ;(an = !1), + (ln = null), + function (e, t, n, r, i, o, a, l, s) { + var c = Array.prototype.slice.call(arguments, 3) + try { + t.apply(n, c) + } catch (u) { + this.onError(u) + } + }.apply(un, arguments) + } + + function fn(e) { + var t = e, + n = e + if (e.alternate) for (; t.return;) t = t.return + else for (e = t; 0 != (1026 & (t = e).flags) && (n = t.return), (e = t.return);) ; + return 3 === t.tag ? n : null + } + + function hn(e) { + if (13 === e.tag) { + var t = e.memoizedState + if ((null === t && null !== (e = e.alternate) && (t = e.memoizedState), null !== t)) + return t.dehydrated + } + return null + } + + function pn(e) { + if (fn(e) !== e) throw Error(ke(188)) + } + + function gn(e) { + if ( + !(e = (function (e) { + var t = e.alternate + if (!t) { + if (null === (t = fn(e))) throw Error(ke(188)) + return t !== e ? null : e + } + for (var n = e, r = t; ;) { + var i = n.return + if (null === i) break + var o = i.alternate + if (null === o) { + if (null === (r = i.return)) break + n = r + } else { + if (i.child === o.child) { + for (o = i.child; o;) { + if (o === n) return pn(i), e + if (o === r) return pn(i), t + o = o.sibling + } + throw Error(ke(188)) + } + if (n.return !== r.return) (n = i), (r = o) + else { + for (var a = !1, l = i.child; l;) { + if (l === n) { + ;(a = !0), (n = i), (r = o) + break + } + if (l === r) { + ;(a = !0), (r = i), (n = o) + break + } + l = l.sibling + } + if (!a) { + for (l = o.child; l;) { + if (l === n) { + ;(a = !0), (n = o), (r = i) + break + } + if (l === r) { + ;(a = !0), (r = o), (n = i) + break + } + l = l.sibling + } + if (!a) throw Error(ke(189)) + } + } + if (n.alternate !== r) throw Error(ke(190)) + } + } + if (3 !== n.tag) throw Error(ke(188)) + return n.stateNode.current === n ? e : t + })(e)) + ) + return null + for (var t = e; ;) { + if (5 === t.tag || 6 === t.tag) return t + if (t.child) t = (t.child.return = t).child + else { + if (t === e) break + for (; !t.sibling;) { + if (!t.return || t.return === e) return null + t = t.return + } + ;(t.sibling.return = t.return), (t = t.sibling) + } + } + return null + } + + function mn(e, t) { + for (var n = e.alternate; null !== t;) { + if (t === e || t === n) return 1 + t = t.return + } + } + + var vn, + yn, + bn, + wn = !1, + Cn = [], + xn = null, + En = null, + On = null, + Sn = new Map(), + kn = new Map(), + Pn = [], + _n = + 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit'.split( + ' ', + ) + + function Ln(e, t, n, r, i) { + return { + blockedOn: e, + domEventName: t, + eventSystemFlags: 16 | n, + nativeEvent: i, + targetContainers: [r], + } + } + + function Tn(e, t) { + switch (e) { + case 'focusin': + case 'focusout': + xn = null + break + case 'dragenter': + case 'dragleave': + En = null + break + case 'mouseover': + case 'mouseout': + On = null + break + case 'pointerover': + case 'pointerout': + Sn.delete(t.pointerId) + break + case 'gotpointercapture': + case 'lostpointercapture': + kn.delete(t.pointerId) + } + } + + function jn(e, t, n, r, i, o) { + return ( + null === e || e.nativeEvent !== o + ? ((e = Ln(t, n, r, i, o)), null === t || (null !== (t = oo(t)) && yn(t))) + : ((e.eventSystemFlags |= r), + (t = e.targetContainers), + null !== i && -1 === t.indexOf(i) && t.push(i)), + e + ) + } + + function In(e) { + if (null === e.blockedOn) { + for (var t = e.targetContainers; 0 < t.length;) { + var n = fr(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent) + if (null !== n) return null !== (t = oo(n)) && yn(t), (e.blockedOn = n), 0 + t.shift() + } + return 1 + } + } + + function Mn(e, t, n) { + In(e) && n.delete(t) + } + + function Rn() { + for (wn = !1; 0 < Cn.length;) { + var e = Cn[0] + if (null !== e.blockedOn) { + null !== (e = oo(e.blockedOn)) && vn(e) + break + } + for (var t = e.targetContainers; 0 < t.length;) { + var n = fr(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent) + if (null !== n) { + e.blockedOn = n + break + } + t.shift() + } + null === e.blockedOn && Cn.shift() + } + null !== xn && In(xn) && (xn = null), + null !== En && In(En) && (En = null), + null !== On && In(On) && (On = null), + Sn.forEach(Mn), + kn.forEach(Mn) + } + + function Dn(e, t) { + e.blockedOn === t && + ((e.blockedOn = null), + wn || ((wn = !0), Se.unstable_scheduleCallback(Se.unstable_NormalPriority, Rn))) + } + + function An(e) { + function t(t) { + return Dn(t, e) + } + + if (0 < Cn.length) { + Dn(Cn[0], e) + for (var n = 1; n < Cn.length; n++) { + var r = Cn[n] + r.blockedOn === e && (r.blockedOn = null) + } + } + for ( + null !== xn && Dn(xn, e), + null !== En && Dn(En, e), + null !== On && Dn(On, e), + Sn.forEach(t), + kn.forEach(t), + n = 0; + n < Pn.length; + n++ + ) + (r = Pn[n]).blockedOn === e && (r.blockedOn = null) + for (; 0 < Pn.length && null === (n = Pn[0]).blockedOn;) + (function (e) { + var t = io(e.target) + if (null !== t) { + var n = fn(t) + if (null !== n) + if (13 === (t = n.tag)) { + if (null !== (t = hn(n))) + return ( + (e.blockedOn = t), + e.lanePriority, + Se.unstable_runWithPriority(e.priority, function () { + bn(n) + }) + ) + } else if (3 === t && n.stateNode.hydrate) + return (e.blockedOn = 3 === n.tag ? n.stateNode.containerInfo : null) + } + e.blockedOn = null + })(n), + null === n.blockedOn && Pn.shift() + } + + function zn(e, t) { + var n = {} + return ( + (n[e.toLowerCase()] = t.toLowerCase()), + (n['Webkit' + e] = 'webkit' + t), + (n['Moz' + e] = 'moz' + t), + n + ) + } + + var Nn = { + animationend: zn('Animation', 'AnimationEnd'), + animationiteration: zn('Animation', 'AnimationIteration'), + animationstart: zn('Animation', 'AnimationStart'), + transitionend: zn('Transition', 'TransitionEnd'), + }, + Hn = {}, + Fn = {} + + function Bn(e) { + if (Hn[e]) return Hn[e] + if (!Nn[e]) return e + var t, + n = Nn[e] + for (t in n) if (n.hasOwnProperty(t) && t in Fn) return (Hn[e] = n[t]) + return e + } + + je && + ((Fn = document.createElement('div').style), + 'AnimationEvent' in window || + (delete Nn.animationend.animation, + delete Nn.animationiteration.animation, + delete Nn.animationstart.animation), + 'TransitionEvent' in window || delete Nn.transitionend.transition) + var Vn = Bn('animationend'), + Wn = Bn('animationiteration'), + Gn = Bn('animationstart'), + Zn = Bn('transitionend'), + Un = new Map(), + Xn = new Map() + s = [ + 'abort', + 'abort', + Vn, + 'animationEnd', + Wn, + 'animationIteration', + Gn, + 'animationStart', + 'canplay', + 'canPlay', + 'canplaythrough', + 'canPlayThrough', + 'durationchange', + 'durationChange', + 'emptied', + 'emptied', + 'encrypted', + 'encrypted', + 'ended', + 'ended', + 'error', + 'error', + 'gotpointercapture', + 'gotPointerCapture', + 'load', + 'load', + 'loadeddata', + 'loadedData', + 'loadedmetadata', + 'loadedMetadata', + 'loadstart', + 'loadStart', + 'lostpointercapture', + 'lostPointerCapture', + 'playing', + 'playing', + 'progress', + 'progress', + 'seeking', + 'seeking', + 'stalled', + 'stalled', + 'suspend', + 'suspend', + 'timeupdate', + 'timeUpdate', + Zn, + 'transitionEnd', + 'waiting', + 'waiting', + ] + + function Yn(e, t) { + for (var n = 0; n < e.length; n += 2) { + var r = e[n], + i = 'on' + ((i = e[n + 1])[0].toUpperCase() + i.slice(1)) + Xn.set(r, t), Un.set(r, i), Le(i, [r]) + } + } + ;(0, Se.unstable_now)() + var qn = 8 + + function $n(e) { + if (0 != (1 & e)) return (qn = 15), 1 + if (0 != (2 & e)) return (qn = 14), 2 + if (0 != (4 & e)) return (qn = 13), 4 + var t = 24 & e + return 0 !== t + ? ((qn = 12), t) + : 0 != (32 & e) + ? ((qn = 11), 32) + : 0 != (t = 192 & e) + ? ((qn = 10), t) + : 0 != (256 & e) + ? ((qn = 9), 256) + : 0 != (t = 3584 & e) + ? ((qn = 8), t) + : 0 != (4096 & e) + ? ((qn = 7), 4096) + : 0 != (t = 4186112 & e) + ? ((qn = 6), t) + : 0 != (t = 62914560 & e) + ? ((qn = 5), t) + : 67108864 & e + ? ((qn = 4), 67108864) + : 0 != (134217728 & e) + ? ((qn = 3), 134217728) + : 0 != (t = 805306368 & e) + ? ((qn = 2), t) + : 0 != (1073741824 & e) + ? ((qn = 1), 1073741824) + : ((qn = 8), e) + } + + function Kn(e, t) { + var n = e.pendingLanes + if (0 === n) return (qn = 0) + var r, + i = 0, + o = 0, + a = e.expiredLanes, + l = e.suspendedLanes, + s = e.pingedLanes + if ( + (0 !== a + ? ((i = a), (o = qn = 15)) + : 0 != (a = 134217727 & n) + ? 0 != (r = a & ~l) + ? ((i = $n(r)), (o = qn)) + : 0 != (s &= a) && ((i = $n(s)), (o = qn)) + : 0 != (a = n & ~l) + ? ((i = $n(a)), (o = qn)) + : 0 !== s && ((i = $n(s)), (o = qn)), + 0 === i) + ) + return 0 + if ( + ((i = n & ((((i = 31 - rr(i)) < 0 ? 0 : 1 << i) << 1) - 1)), + 0 !== t && t !== i && 0 == (t & l)) + ) { + if (($n(t), o <= qn)) return t + qn = o + } + if (0 !== (t = e.entangledLanes)) + for (e = e.entanglements, t &= i; 0 < t;) (i |= e[(n = 31 - rr(t))]), (t &= ~(o = 1 << n)) + return i + } + + function Qn(e) { + return 0 != (e = -1073741825 & e.pendingLanes) ? e : 1073741824 & e ? 1073741824 : 0 + } + + function Jn(e, t) { + switch (e) { + case 15: + return 1 + case 14: + return 2 + case 12: + return 0 === (e = er(24 & ~t)) ? Jn(10, t) : e + case 10: + return 0 === (e = er(192 & ~t)) ? Jn(8, t) : e + case 8: + return 0 === (e = er(3584 & ~t)) && 0 === (e = er(4186112 & ~t)) && (e = 512), e + case 2: + return 0 === (t = er(805306368 & ~t)) ? 268435456 : t + } + throw Error(ke(358, e)) + } + + function er(e) { + return e & -e + } + + function tr(e) { + for (var t = [], n = 0; n < 31; n++) t.push(e) + return t + } + + function nr(e, t, n) { + e.pendingLanes |= t + var r = t - 1 + ;(e.suspendedLanes &= r), (e.pingedLanes &= r), ((e = e.eventTimes)[(t = 31 - rr(t))] = n) + } + + var rr = + Math.clz32 || + function (e) { + return 0 === e ? 32 : (31 - ((ir(e) / or) | 0)) | 0 + }, + ir = Math.log, + or = Math.LN2, + ar = Se.unstable_UserBlockingPriority, + lr = Se.unstable_runWithPriority, + sr = !0 + + function cr(e, t, n, r) { + Jt || Qt() + var i = dr, + o = Jt + Jt = !0 + try { + Kt(i, e, t, n, r) + } finally { + ;(Jt = o) || tn() + } + } + + function ur(e, t, n, r) { + lr(ar, dr.bind(null, e, t, n, r)) + } + + function dr(e, t, n, r) { + var i + if (sr) + if ((i = 0 == (4 & t)) && 0 < Cn.length && -1 < _n.indexOf(e)) + (e = Ln(null, e, t, n, r)), Cn.push(e) + else { + var o = fr(e, t, n, r) + if (null === o) i && Tn(e, r) + else { + if (i) { + if (-1 < _n.indexOf(e)) return (e = Ln(o, e, t, n, r)), void Cn.push(e) + if ( + (function (e, t, n, r, i) { + switch (t) { + case 'focusin': + return (xn = jn(xn, e, t, n, r, i)), 1 + case 'dragenter': + return (En = jn(En, e, t, n, r, i)), 1 + case 'mouseover': + return (On = jn(On, e, t, n, r, i)), 1 + case 'pointerover': + var o = i.pointerId + return Sn.set(o, jn(Sn.get(o) || null, e, t, n, r, i)), 1 + case 'gotpointercapture': + return (o = i.pointerId), kn.set(o, jn(kn.get(o) || null, e, t, n, r, i)), 1 + } + })(o, e, t, n, r) + ) + return + Tn(e, r) + } + Ni(e, t, r, null, n) + } + } + } + + function fr(e, t, n, r) { + var i = Wt(r) + if (null !== (i = io(i))) { + var o = fn(i) + if (null === o) i = null + else { + var a = o.tag + if (13 === a) { + if (null !== (i = hn(o))) return i + i = null + } else if (3 === a) { + if (o.stateNode.hydrate) return 3 === o.tag ? o.stateNode.containerInfo : null + i = null + } else o !== i && (i = null) + } + } + return Ni(e, t, r, i, n), null + } + + var hr = null, + pr = null, + gr = null + + function mr() { + if (gr) return gr + for ( + var e = pr, + t = e.length, + n = ('value' in hr) ? hr.value : hr.textContent, + r = n.length, + i = 0; + i < t && e[i] === n[i]; + i++ + ) ; + for (var o = t - i, a = 1; a <= o && e[t - a] === n[r - a]; a++) ; + return (gr = n.slice(i, 1 < a ? 1 - a : void 0)) + } + + function vr(e) { + var t = e.keyCode + return ( + 'charCode' in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : (e = t), + 32 <= (e = 10 === e ? 13 : e) || 13 === e ? e : 0 + ) + } + + function yr() { + return !0 + } + + function br() { + return !1 + } + + function wr(e) { + function t(t, n, r, i, o) { + for (var a in ((this._reactName = t), + (this._targetInst = r), + (this.type = n), + (this.nativeEvent = i), + (this.target = o), + (this.currentTarget = null), + e)) + e.hasOwnProperty(a) && ((t = e[a]), (this[a] = t ? t(i) : i[a])) + return ( + (this.isDefaultPrevented = ( + null != i.defaultPrevented ? i.defaultPrevented : !1 === i.returnValue + ) + ? yr + : br), + (this.isPropagationStopped = br), + this + ) + } + + return ( + Oe(t.prototype, { + preventDefault: function () { + this.defaultPrevented = !0 + var e = this.nativeEvent + e && + (e.preventDefault + ? e.preventDefault() + : 'unknown' != typeof e.returnValue && (e.returnValue = !1), + (this.isDefaultPrevented = yr)) + }, + stopPropagation: function () { + var e = this.nativeEvent + e && + (e.stopPropagation + ? e.stopPropagation() + : 'unknown' != typeof e.cancelBubble && (e.cancelBubble = !0), + (this.isPropagationStopped = yr)) + }, + persist: function () { + }, + isPersistent: yr, + }), + t + ) + } + + on = { + eventPhase: 0, + bubbles: 0, + cancelable: 0, + timeStamp: function (e) { + return e.timeStamp || Date.now() + }, + defaultPrevented: 0, + isTrusted: 0, + } + var Cr, + xr, + Er, + Or = wr(on), + Sr = wr((Zr = Oe({}, on, {view: 0, detail: 0}))), + kr = Oe({}, Zr, { + screenX: 0, + screenY: 0, + clientX: 0, + clientY: 0, + pageX: 0, + pageY: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + getModifierState: zr, + button: 0, + buttons: 0, + relatedTarget: function (e) { + return void 0 === e.relatedTarget + ? e.fromElement === e.srcElement + ? e.toElement + : e.fromElement + : e.relatedTarget + }, + movementX: function (e) { + return 'movementX' in e + ? e.movementX + : (e !== Er && + ((xr = + Er && 'mousemove' === e.type + ? ((Cr = e.screenX - Er.screenX), e.screenY - Er.screenY) + : (Cr = 0)), + (Er = e)), + Cr) + }, + movementY: function (e) { + return 'movementY' in e ? e.movementY : xr + }, + }), + Pr = wr(kr), + _r = wr(Oe({}, kr, {dataTransfer: 0})), + Lr = wr(Oe({}, Zr, {relatedTarget: 0})), + Tr = wr(Oe({}, on, {animationName: 0, elapsedTime: 0, pseudoElement: 0})), + jr = wr( + Oe({}, on, { + clipboardData: function (e) { + return ('clipboardData' in e ? e : window).clipboardData + }, + }), + ), + Ir = wr(Oe({}, on, {data: 0})), + Mr = { + Esc: 'Escape', + Spacebar: ' ', + Left: 'ArrowLeft', + Up: 'ArrowUp', + Right: 'ArrowRight', + Down: 'ArrowDown', + Del: 'Delete', + Win: 'OS', + Menu: 'ContextMenu', + Apps: 'ContextMenu', + Scroll: 'ScrollLock', + MozPrintableKey: 'Unidentified', + }, + Rr = { + 8: 'Backspace', + 9: 'Tab', + 12: 'Clear', + 13: 'Enter', + 16: 'Shift', + 17: 'Control', + 18: 'Alt', + 19: 'Pause', + 20: 'CapsLock', + 27: 'Escape', + 32: ' ', + 33: 'PageUp', + 34: 'PageDown', + 35: 'End', + 36: 'Home', + 37: 'ArrowLeft', + 38: 'ArrowUp', + 39: 'ArrowRight', + 40: 'ArrowDown', + 45: 'Insert', + 46: 'Delete', + 112: 'F1', + 113: 'F2', + 114: 'F3', + 115: 'F4', + 116: 'F5', + 117: 'F6', + 118: 'F7', + 119: 'F8', + 120: 'F9', + 121: 'F10', + 122: 'F11', + 123: 'F12', + 144: 'NumLock', + 145: 'ScrollLock', + 224: 'Meta', + }, + Dr = { + Alt: 'altKey', + Control: 'ctrlKey', + Meta: 'metaKey', + Shift: 'shiftKey', + } + + function Ar(e) { + var t = this.nativeEvent + return t.getModifierState ? t.getModifierState(e) : !!(e = Dr[e]) && !!t[e] + } + + function zr() { + return Ar + } + + var Nr = wr( + Oe({}, Zr, { + key: function (e) { + if (e.key) { + var t = Mr[e.key] || e.key + if ('Unidentified' !== t) return t + } + return 'keypress' === e.type + ? 13 === (e = vr(e)) + ? 'Enter' + : String.fromCharCode(e) + : 'keydown' === e.type || 'keyup' === e.type + ? Rr[e.keyCode] || 'Unidentified' + : '' + }, + code: 0, + location: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + repeat: 0, + locale: 0, + getModifierState: zr, + charCode: function (e) { + return 'keypress' === e.type ? vr(e) : 0 + }, + keyCode: function (e) { + return 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0 + }, + which: function (e) { + return 'keypress' === e.type + ? vr(e) + : 'keydown' === e.type || 'keyup' === e.type + ? e.keyCode + : 0 + }, + }), + ), + Hr = wr( + Oe({}, kr, { + pointerId: 0, + width: 0, + height: 0, + pressure: 0, + tangentialPressure: 0, + tiltX: 0, + tiltY: 0, + twist: 0, + pointerType: 0, + isPrimary: 0, + }), + ), + Fr = wr( + Oe({}, Zr, { + touches: 0, + targetTouches: 0, + changedTouches: 0, + altKey: 0, + metaKey: 0, + ctrlKey: 0, + shiftKey: 0, + getModifierState: zr, + }), + ), + Br = wr(Oe({}, on, {propertyName: 0, elapsedTime: 0, pseudoElement: 0})), + Vr = wr( + Oe({}, kr, { + deltaX: function (e) { + return 'deltaX' in e ? e.deltaX : 'wheelDeltaX' in e ? -e.wheelDeltaX : 0 + }, + deltaY: function (e) { + return 'deltaY' in e + ? e.deltaY + : 'wheelDeltaY' in e + ? -e.wheelDeltaY + : 'wheelDelta' in e + ? -e.wheelDelta + : 0 + }, + deltaZ: 0, + deltaMode: 0, + }), + ), + Wr = [9, 13, 27, 32], + Gr = je && 'CompositionEvent' in window, + Zr = null, + Ur = + (je && 'documentMode' in document && (Zr = document.documentMode), + je && 'TextEvent' in window && !Zr), + Xr = je && (!Gr || (Zr && 8 < Zr && Zr <= 11)), + Yr = String.fromCharCode(32), + qr = !1 + + function $r(e, t) { + switch (e) { + case 'keyup': + return -1 !== Wr.indexOf(t.keyCode) + case 'keydown': + return 229 !== t.keyCode + case 'keypress': + case 'mousedown': + case 'focusout': + return 1 + default: + return + } + } + + function Kr(e) { + return 'object' == typeof (e = e.detail) && 'data' in e ? e.data : null + } + + var Qr = !1, + Jr = { + color: !0, + date: !0, + datetime: !0, + 'datetime-local': !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0, + } + + function ei(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase() + return 'input' === t ? Jr[e.type] : 'textarea' === t + } + + function ti(e, t, n, r) { + Yt(r), + 0 < (t = Fi(t, 'onChange')).length && + ((n = new Or('onChange', 'change', null, n, r)), e.push({event: n, listeners: t})) + } + + var ni = null, + ri = null + + function ii(e) { + Ii(e, 0) + } + + function oi(e) { + if (gt(ao(e))) return e + } + + function ai(e, t) { + if ('change' === e) return t + } + + var li = !1 + + function si() { + ni && (ni.detachEvent('onpropertychange', ci), (ri = ni = null)) + } + + function ci(e) { + if ('value' === e.propertyName && oi(ri)) { + var t = [] + if ((ti(t, ri, e, Wt(e)), (e = ii), Jt)) e(t) + else { + Jt = !0 + try { + $t(e, t) + } finally { + ;(Jt = !1), tn() + } + } + } + } + + function ui(e, t, n) { + 'focusin' === e + ? (si(), (ri = n), (ni = t).attachEvent('onpropertychange', ci)) + : 'focusout' === e && si() + } + + function di(e) { + if ('selectionchange' === e || 'keyup' === e || 'keydown' === e) return oi(ri) + } + + function fi(e, t) { + if ('click' === e) return oi(t) + } + + function hi(e, t) { + if ('input' === e || 'change' === e) return oi(t) + } + + je && + ((Zr = + je && + ((on = 'oninput' in document) || + ((kr = document.createElement('div')).setAttribute('oninput', 'return;'), + (on = 'function' == typeof kr.oninput)), + on)), + (li = Zr && (!document.documentMode || 9 < document.documentMode))) + var pi = + 'function' == typeof Object.is + ? Object.is + : function (e, t) { + return (e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t) + }, + gi = Object.prototype.hasOwnProperty + + function mi(e, t) { + if (pi(e, t)) return !0 + if ('object' != typeof e || null === e || 'object' != typeof t || null === t) return !1 + var n = Object.keys(e), + r = Object.keys(t) + if (n.length !== r.length) return !1 + for (r = 0; r < n.length; r++) if (!gi.call(t, n[r]) || !pi(e[n[r]], t[n[r]])) return !1 + return !0 + } + + function vi(e) { + for (; e && e.firstChild;) e = e.firstChild + return e + } + + function yi(e, t) { + var n, + r = vi(e) + for (e = 0; r;) { + if (3 === r.nodeType) { + if (((n = e + r.textContent.length), e <= t && t <= n)) return {node: r, offset: t - e} + e = n + } + e: { + for (; r;) { + if (r.nextSibling) { + r = r.nextSibling + break e + } + r = r.parentNode + } + r = void 0 + } + r = vi(r) + } + } + + function bi() { + for (var e = window, t = mt(); t instanceof e.HTMLIFrameElement;) { + try { + var n = 'string' == typeof t.contentWindow.location.href + } catch (r) { + n = !1 + } + if (!n) break + t = mt((e = t.contentWindow).document) + } + return t + } + + function wi(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase() + return ( + t && + (('input' === t && + ('text' === e.type || + 'search' === e.type || + 'tel' === e.type || + 'url' === e.type || + 'password' === e.type)) || + 'textarea' === t || + 'true' === e.contentEditable) + ) + } + + var Ci = je && 'documentMode' in document && document.documentMode <= 11, + xi = null, + Ei = null, + Oi = null, + Si = !1 + + function ki(e, t, n) { + var r = n.window === n ? n.document : 9 === n.nodeType ? n : n.ownerDocument + Si || + null == xi || + xi !== mt(r) || + ((r = + 'selectionStart' in (r = xi) && wi(r) + ? {start: r.selectionStart, end: r.selectionEnd} + : { + anchorNode: (r = ( + (r.ownerDocument && r.ownerDocument.defaultView) || + window + ).getSelection()).anchorNode, + anchorOffset: r.anchorOffset, + focusNode: r.focusNode, + focusOffset: r.focusOffset, + }), + (Oi && mi(Oi, r)) || + ((Oi = r), + 0 < (r = Fi(Ei, 'onSelect')).length && + ((t = new Or('onSelect', 'select', null, t, n)), + e.push({event: t, listeners: r}), + (t.target = xi)))) + } + + Yn( + 'cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange'.split( + ' ', + ), + 0, + ), + Yn( + 'drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel'.split( + ' ', + ), + 1, + ), + Yn(s, 2) + for ( + var Pi = + 'change selectionchange textInput compositionstart compositionend compositionupdate'.split( + ' ', + ), + _i = 0; + _i < Pi.length; + _i++ + ) + Xn.set(Pi[_i], 0) + Te('onMouseEnter', ['mouseout', 'mouseover']), + Te('onMouseLeave', ['mouseout', 'mouseover']), + Te('onPointerEnter', ['pointerout', 'pointerover']), + Te('onPointerLeave', ['pointerout', 'pointerover']), + Le('onChange', 'change click focusin focusout input keydown keyup selectionchange'.split(' ')), + Le( + 'onSelect', + 'focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange'.split( + ' ', + ), + ), + Le('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']), + Le('onCompositionEnd', 'compositionend focusout keydown keypress keyup mousedown'.split(' ')), + Le( + 'onCompositionStart', + 'compositionstart focusout keydown keypress keyup mousedown'.split(' '), + ), + Le( + 'onCompositionUpdate', + 'compositionupdate focusout keydown keypress keyup mousedown'.split(' '), + ) + var Li = + 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting'.split( + ' ', + ), + Ti = new Set('cancel close invalid load scroll toggle'.split(' ').concat(Li)) + + function ji(e, t, n) { + var r = e.type || 'unknown-event' + ;(e.currentTarget = n), + (function () { + var e + dn.apply(this, arguments), + an && ((e = ln), (an = !1), (ln = null), sn || ((sn = !0), (cn = e))) + })(r, t, void 0, e), + (e.currentTarget = null) + } + + function Ii(e, t) { + t = 0 != (4 & t) + for (var n = 0; n < e.length; n++) { + var r = (i = e[n]).event, + i = i.listeners + e: { + var o = void 0 + if (t) + for (var a = i.length - 1; 0 <= a; a--) { + var l = (c = i[a]).instance, + s = c.currentTarget, + c = c.listener + if (l !== o && r.isPropagationStopped()) break e + ji(r, c, s), (o = l) + } + else + for (a = 0; a < i.length; a++) { + if ( + ((l = (c = i[a]).instance), + (s = c.currentTarget), + (c = c.listener), + l !== o && r.isPropagationStopped()) + ) + break e + ji(r, c, s), (o = l) + } + } + } + if (sn) throw ((e = cn), (sn = !1), (cn = null), e) + } + + function Mi(e, t) { + var n = so(t), + r = e + '__bubble' + n.has(r) || (zi(t, e, 2, !1), n.add(r)) + } + + var Ri = '_reactListening' + Math.random().toString(36).slice(2) + + function Di(e) { + e[Ri] || + ((e[Ri] = !0), + Pe.forEach(function (t) { + Ti.has(t) || Ai(t, !1, e, null), Ai(t, !0, e, null) + })) + } + + function Ai(e, t, n, r, i) { + i = 4 < arguments.length && void 0 !== i ? i : 0 + var o = n + if ( + ('selectionchange' === e && 9 !== n.nodeType && (o = n.ownerDocument), + null !== r && !t && Ti.has(e)) + ) { + if ('scroll' !== e) return + ; + (i |= 2), (o = r) + } + ;(r = e + '__' + (t ? 'capture' : 'bubble')), + (n = so(o)).has(r) || (t && (i |= 4), zi(o, e, i, t), n.add(r)) + } + + function zi(e, t, n, r) { + var i = Xn.get(t) + switch (void 0 === i ? 2 : i) { + case 0: + i = cr + break + case 1: + i = ur + break + default: + i = dr + } + ;(n = i.bind(null, t, n, e)), + (i = !(!rn || ('touchstart' !== t && 'touchmove' !== t && 'wheel' !== t)) || void 0), + r + ? void 0 !== i + ? e.addEventListener(t, n, {capture: !0, passive: i}) + : e.addEventListener(t, n, !0) + : void 0 !== i + ? e.addEventListener(t, n, {passive: i}) + : e.addEventListener(t, n, !1) + } + + function Ni(e, t, n, r, i) { + var o = r + if (0 == (1 & t) && 0 == (2 & t) && null !== r) + e: for (; ;) { + if (null === r) return + var a = r.tag + if (3 === a || 4 === a) { + var l = r.stateNode.containerInfo + if (l === i || (8 === l.nodeType && l.parentNode === i)) break + if (4 === a) + for (a = r.return; null !== a;) { + var s = a.tag + if ( + (3 === s || 4 === s) && + ((s = a.stateNode.containerInfo) === i || (8 === s.nodeType && s.parentNode === i)) + ) + return + a = a.return + } + for (; null !== l;) { + if (null === (a = io(l))) return + if (5 === (s = a.tag) || 6 === s) { + r = o = a + continue e + } + l = l.parentNode + } + } + r = r.return + } + var c = function () { + var r, + i, + a, + l = o, + s = Wt(n), + c = [] + e: { + var u = Un.get(e) + if (void 0 !== u) { + var d = Or, + f = e + switch (e) { + case 'keypress': + if (0 === vr(n)) break e + case 'keydown': + case 'keyup': + d = Nr + break + case 'focusin': + ;(f = 'focus'), (d = Lr) + break + case 'focusout': + ;(f = 'blur'), (d = Lr) + break + case 'beforeblur': + case 'afterblur': + d = Lr + break + case 'click': + if (2 === n.button) break e + case 'auxclick': + case 'dblclick': + case 'mousedown': + case 'mousemove': + case 'mouseup': + case 'mouseout': + case 'mouseover': + case 'contextmenu': + d = Pr + break + case 'drag': + case 'dragend': + case 'dragenter': + case 'dragexit': + case 'dragleave': + case 'dragover': + case 'dragstart': + case 'drop': + d = _r + break + case 'touchcancel': + case 'touchend': + case 'touchmove': + case 'touchstart': + d = Fr + break + case Vn: + case Wn: + case Gn: + d = Tr + break + case Zn: + d = Br + break + case 'scroll': + d = Sr + break + case 'wheel': + d = Vr + break + case 'copy': + case 'cut': + case 'paste': + d = jr + break + case 'gotpointercapture': + case 'lostpointercapture': + case 'pointercancel': + case 'pointerdown': + case 'pointermove': + case 'pointerout': + case 'pointerover': + case 'pointerup': + d = Hr + } + for ( + var h = !(g = 0 != (4 & t)) && 'scroll' === e, + p = g ? (null !== u ? u + 'Capture' : null) : u, + g = [], + m = l; + null !== m; + ) { + var v, + y = (v = m).stateNode + if ( + (5 === v.tag && + null !== y && + ((v = y), null !== p && null != (y = nn(m, p)) && g.push(Hi(m, y, v))), + h) + ) + break + m = m.return + } + 0 < g.length && ((u = new d(u, f, null, n, s)), c.push({event: u, listeners: g})) + } + } + if (0 == (7 & t)) { + if ( + ((d = 'mouseout' === e || 'pointerout' === e), + (!(u = 'mouseover' === e || 'pointerover' === e) || + 0 != (16 & t) || + !(f = n.relatedTarget || n.fromElement) || + (!io(f) && !f[no])) && + (d || u) && + ((u = + s.window === s + ? s + : (u = s.ownerDocument) + ? u.defaultView || u.parentWindow + : window), + d + ? ((d = l), + null !== (f = (f = n.relatedTarget || n.toElement) ? io(f) : null) && + (f !== (h = fn(f)) || (5 !== f.tag && 6 !== f.tag)) && + (f = null)) + : ((d = null), (f = l)), + d !== f)) + ) { + if ( + ((g = Pr), + (y = 'onMouseLeave'), + (p = 'onMouseEnter'), + (m = 'mouse'), + ('pointerout' !== e && 'pointerover' !== e) || + ((g = Hr), (y = 'onPointerLeave'), (p = 'onPointerEnter'), (m = 'pointer')), + (h = null == d ? u : ao(d)), + (v = null == f ? u : ao(f)), + ((u = new g(y, m + 'leave', d, n, s)).target = h), + (u.relatedTarget = v), + (y = null), + io(s) === l && + (((g = new g(p, m + 'enter', f, n, s)).target = v), (g.relatedTarget = h), (y = g)), + (h = y), + d && f) + ) + e: { + for (p = f, m = 0, v = g = d; v; v = Bi(v)) m++ + for (v = 0, y = p; y; y = Bi(y)) v++ + for (; 0 < m - v;) (g = Bi(g)), m-- + for (; 0 < v - m;) (p = Bi(p)), v-- + for (; m--;) { + if (g === p || (null !== p && g === p.alternate)) break e + ; + (g = Bi(g)), (p = Bi(p)) + } + g = null + } + else g = null + null !== d && Vi(c, u, d, g, !1), null !== f && null !== h && Vi(c, h, f, g, !0) + } + switch ( + ('select' === (d = (u = l ? ao(l) : window).nodeName && u.nodeName.toLowerCase()) || + ('input' === d && 'file' === u.type) + ? (r = ai) + : ei(u) + ? li + ? (r = hi) + : ((r = di), (i = ui)) + : !(d = u.nodeName) || + 'input' !== d.toLowerCase() || + ('checkbox' !== u.type && 'radio' !== u.type) || + (r = fi), + (r = r && r(e, l)) + ? ti(c, r, n, s) + : (i && i(e, u, l), + 'focusout' === e && + (i = u._wrapperState) && + i.controlled && + 'number' === u.type && + xt(u, 'number', u.value)), + (i = l ? ao(l) : window), + e) + ) { + case 'focusin': + ;(!ei(i) && 'true' !== i.contentEditable) || ((xi = i), (Ei = l), (Oi = null)) + break + case 'focusout': + Oi = Ei = xi = null + break + case 'mousedown': + Si = !0 + break + case 'contextmenu': + case 'mouseup': + case 'dragend': + ;(Si = !1), ki(c, n, s) + break + case 'selectionchange': + if (Ci) break + case 'keydown': + case 'keyup': + ki(c, n, s) + } + if (Gr) + e: { + switch (e) { + case 'compositionstart': + var b = 'onCompositionStart' + break e + case 'compositionend': + b = 'onCompositionEnd' + break e + case 'compositionupdate': + b = 'onCompositionUpdate' + break e + } + b = void 0 + } + else + Qr + ? $r(e, n) && (b = 'onCompositionEnd') + : 'keydown' === e && 229 === n.keyCode && (b = 'onCompositionStart') + b && + (Xr && + 'ko' !== n.locale && + (Qr || 'onCompositionStart' !== b + ? 'onCompositionEnd' === b && Qr && (a = mr()) + : ((pr = 'value' in (hr = s) ? hr.value : hr.textContent), (Qr = !0))), + 0 < (i = Fi(l, b)).length && + ((b = new Ir(b, e, null, n, s)), + c.push({event: b, listeners: i}), + (a || null !== (a = Kr(n))) && (b.data = a))), + (a = ( + Ur + ? function (e, t) { + switch (e) { + case 'compositionend': + return Kr(t) + case 'keypress': + return 32 !== t.which ? null : ((qr = !0), Yr) + case 'textInput': + return (e = t.data) === Yr && qr ? null : e + default: + return null + } + } + : function (e, t) { + if (Qr) + return 'compositionend' === e || (!Gr && $r(e, t)) + ? ((e = mr()), (gr = pr = hr = null), (Qr = !1), e) + : null + switch (e) { + case 'paste': + default: + return null + case 'keypress': + if (!(t.ctrlKey || t.altKey || t.metaKey) || (t.ctrlKey && t.altKey)) { + if (t.char && 1 < t.char.length) return t.char + if (t.which) return String.fromCharCode(t.which) + } + return null + case 'compositionend': + return Xr && 'ko' !== t.locale ? null : t.data + } + } + )(e, n)) && + 0 < (l = Fi(l, 'onBeforeInput')).length && + ((s = new Ir('onBeforeInput', 'beforeinput', null, n, s)), + c.push({event: s, listeners: l}), + (s.data = a)) + } + Ii(c, t) + }, + u = void 0 + if (en) c() + else { + en = !0 + try { + Xc(c, u) + } finally { + ;(en = !1), tn() + } + } + } + + function Hi(e, t, n) { + return {instance: e, listener: t, currentTarget: n} + } + + function Fi(e, t) { + for (var n = t + 'Capture', r = []; null !== e;) { + var i = e, + o = i.stateNode + 5 === i.tag && + null !== o && + ((i = o), + null != (o = nn(e, n)) && r.unshift(Hi(e, o, i)), + null != (o = nn(e, t)) && r.push(Hi(e, o, i))), + (e = e.return) + } + return r + } + + function Bi(e) { + if (null === e) return null + for (; (e = e.return) && 5 !== e.tag;) ; + return e || null + } + + function Vi(e, t, n, r, i) { + for (var o = t._reactName, a = []; null !== n && n !== r;) { + var l = n, + s = l.alternate, + c = l.stateNode + if (null !== s && s === r) break + 5 === l.tag && + null !== c && + ((l = c), + i + ? null != (s = nn(n, o)) && a.unshift(Hi(n, s, l)) + : null != (s = nn(n, o)) && a.push(Hi(n, s, l))), + (n = n.return) + } + 0 !== a.length && e.push({event: t, listeners: a}) + } + + function Wi() { + } + + var Gi = null, + Zi = null + + function Ui(e, t) { + switch (e) { + case 'button': + case 'input': + case 'select': + case 'textarea': + return t.autoFocus + } + } + + function Xi(e, t) { + return ( + 'textarea' === e || + 'option' === e || + 'noscript' === e || + 'string' == typeof t.children || + 'number' == typeof t.children || + ('object' == typeof t.dangerouslySetInnerHTML && + null !== t.dangerouslySetInnerHTML && + null != t.dangerouslySetInnerHTML.__html) + ) + } + + var Yi = 'function' == typeof setTimeout ? setTimeout : void 0, + qi = 'function' == typeof clearTimeout ? clearTimeout : void 0 + + function $i(e) { + ;(1 === e.nodeType || (9 === e.nodeType && null != (e = e.body))) && (e.textContent = '') + } + + function Ki(e) { + for (; null != e; e = e.nextSibling) { + var t = e.nodeType + if (1 === t || 3 === t) break + } + return e + } + + function Qi(e) { + e = e.previousSibling + for (var t = 0; e;) { + if (8 === e.nodeType) { + var n = e.data + if ('$' === n || '$!' === n || '$?' === n) { + if (0 === t) return e + t-- + } else '/$' === n && t++ + } + e = e.previousSibling + } + return null + } + + var Ji = 0, + eo = '__reactFiber$' + (kr = Math.random().toString(36).slice(2)), + to = '__reactProps$' + kr, + no = '__reactContainer$' + kr, + ro = '__reactEvents$' + kr + + function io(e) { + var t = e[eo] + if (t) return t + for (var n = e.parentNode; n;) { + if ((t = n[no] || n[eo])) { + if (((n = t.alternate), null !== t.child || (null !== n && null !== n.child))) + for (e = Qi(e); null !== e;) { + if ((n = e[eo])) return n + e = Qi(e) + } + return t + } + n = (e = n).parentNode + } + return null + } + + function oo(e) { + return !(e = e[eo] || e[no]) || (5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag) + ? null + : e + } + + function ao(e) { + if (5 === e.tag || 6 === e.tag) return e.stateNode + throw Error(ke(33)) + } + + function lo(e) { + return e[to] || null + } + + function so(e) { + var t = e[ro] + return void 0 === t ? (e[ro] = new Set()) : t + } + + var co = [], + uo = -1 + + function fo(e) { + return {current: e} + } + + function ho(e) { + uo < 0 || ((e.current = co[uo]), (co[uo] = null), uo--) + } + + function po(e, t) { + ;(co[++uo] = e.current), (e.current = t) + } + + var go = {}, + mo = fo(go), + vo = fo(!1), + yo = go + + function bo(e, t) { + var n = e.type.contextTypes + if (!n) return go + var r = e.stateNode + if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) + return r.__reactInternalMemoizedMaskedChildContext + var i, + o = {} + for (i in n) o[i] = t[i] + return ( + r && + (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t), + (e.__reactInternalMemoizedMaskedChildContext = o)), + o + ) + } + + function wo(e) { + return null != (e = e.childContextTypes) + } + + function Co() { + ho(vo), ho(mo) + } + + function xo(e, t, n) { + if (mo.current !== go) throw Error(ke(168)) + po(mo, t), po(vo, n) + } + + function Eo(e, t, n) { + var r, + i = e.stateNode + if (((e = t.childContextTypes), 'function' != typeof i.getChildContext)) return n + for (r in (i = i.getChildContext())) if (!(r in e)) throw Error(ke(108, dt(t) || 'Unknown', r)) + return Oe({}, n, i) + } + + function Oo(e) { + ;(e = ((e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext) || go), + (yo = mo.current), + po(mo, e), + po(vo, vo.current) + } + + function So(e, t, n) { + var r = e.stateNode + if (!r) throw Error(ke(169)) + n + ? ((e = Eo(e, t, yo)), + (r.__reactInternalMemoizedMergedChildContext = e), + ho(vo), + ho(mo), + po(mo, e)) + : ho(vo), + po(vo, n) + } + + var ko = null, + Po = null, + _o = Se.unstable_runWithPriority, + Lo = Se.unstable_scheduleCallback, + To = Se.unstable_cancelCallback, + jo = Se.unstable_shouldYield, + Io = ((on = Se.unstable_requestPaint), Se.unstable_now), + Mo = Se.unstable_getCurrentPriorityLevel, + Ro = Se.unstable_ImmediatePriority, + Do = Se.unstable_UserBlockingPriority, + Ao = Se.unstable_NormalPriority, + zo = Se.unstable_LowPriority, + No = Se.unstable_IdlePriority, + Ho = {}, + Fo = void 0 !== on ? on : function () { + }, + Bo = null, + Vo = null, + Wo = !1, + Go = Io(), + Zo = + Go < 1e4 + ? Io + : function () { + return Io() - Go + } + + function Uo() { + switch (Mo()) { + case Ro: + return 99 + case Do: + return 98 + case Ao: + return 97 + case zo: + return 96 + case No: + return 95 + default: + throw Error(ke(332)) + } + } + + function Xo(e) { + switch (e) { + case 99: + return Ro + case 98: + return Do + case 97: + return Ao + case 96: + return zo + case 95: + return No + default: + throw Error(ke(332)) + } + } + + function Yo(e, t) { + return (e = Xo(e)), _o(e, t) + } + + function qo(e, t, n) { + return (e = Xo(e)), Lo(e, t, n) + } + + function $o() { + var e + null !== Vo && ((e = Vo), (Vo = null), To(e)), Ko() + } + + function Ko() { + if (!Wo && null !== Bo) { + Wo = !0 + var e = 0 + try { + var t = Bo + Yo(99, function () { + for (; e < t.length; e++) for (var n = t[e]; null !== (n = n(!0));) ; + }), + (Bo = null) + } catch (oh) { + throw (null !== Bo && (Bo = Bo.slice(e + 1)), Lo(Ro, $o), oh) + } finally { + Wo = !1 + } + } + } + + var Qo = Ve.ReactCurrentBatchConfig + + function Jo(e, t) { + if (e && e.defaultProps) { + for (var n in ((t = Oe({}, t)), (e = e.defaultProps))) void 0 === t[n] && (t[n] = e[n]) + return t + } + return t + } + + var ea = fo(null), + ta = null, + na = null, + ra = null + + function ia() { + ra = na = ta = null + } + + function oa(e) { + var t = ea.current + ho(ea), (e.type._context._currentValue = t) + } + + function aa(e, t) { + for (; null !== e;) { + var n = e.alternate + if ((e.childLanes & t) === t) { + if (null === n || (n.childLanes & t) === t) break + n.childLanes |= t + } else (e.childLanes |= t), null !== n && (n.childLanes |= t) + e = e.return + } + } + + function la(e, t) { + ;(ra = na = null) !== (e = (ta = e).dependencies) && + null !== e.firstContext && + (0 != (e.lanes & t) && (zl = !0), (e.firstContext = null)) + } + + function sa(e, t) { + if (ra !== e && !1 !== t && 0 !== t) + if ( + (('number' == typeof t && 1073741823 !== t) || ((ra = e), (t = 1073741823)), + (t = {context: e, observedBits: t, next: null}), + null === na) + ) { + if (null === ta) throw Error(ke(308)) + ; + (na = t), (ta.dependencies = {lanes: 0, firstContext: t, responders: null}) + } else na = na.next = t + return e._currentValue + } + + var ca = !1 + + function ua(e) { + e.updateQueue = { + baseState: e.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: {pending: null}, + effects: null, + } + } + + function da(e, t) { + ;(e = e.updateQueue), + t.updateQueue === e && + (t.updateQueue = { + baseState: e.baseState, + firstBaseUpdate: e.firstBaseUpdate, + lastBaseUpdate: e.lastBaseUpdate, + shared: e.shared, + effects: e.effects, + }) + } + + function fa(e, t) { + return { + eventTime: e, + lane: t, + tag: 0, + payload: null, + callback: null, + next: null, + } + } + + function ha(e, t) { + var n + null !== (e = e.updateQueue) && + (null === (n = (e = e.shared).pending) ? (t.next = t) : ((t.next = n.next), (n.next = t)), + (e.pending = t)) + } + + function pa(e, t) { + var n = e.updateQueue, + r = e.alternate + if (null !== r && n === (r = r.updateQueue)) { + var i = null, + o = null + if (null !== (n = n.firstBaseUpdate)) { + do { + var a = { + eventTime: n.eventTime, + lane: n.lane, + tag: n.tag, + payload: n.payload, + callback: n.callback, + next: null, + } + } while ((null === o ? (i = o = a) : (o = o.next = a), null !== (n = n.next))) + null === o ? (i = o = t) : (o = o.next = t) + } else i = o = t + return ( + (n = { + baseState: r.baseState, + firstBaseUpdate: i, + lastBaseUpdate: o, + shared: r.shared, + effects: r.effects, + }), + void (e.updateQueue = n) + ) + } + null === (e = n.lastBaseUpdate) ? (n.firstBaseUpdate = t) : (e.next = t), (n.lastBaseUpdate = t) + } + + function ga(e, t, n, r) { + var i, + o, + a, + l, + s = e.updateQueue, + c = ((ca = !1), s.firstBaseUpdate), + u = s.lastBaseUpdate + if ( + (null !== (p = s.shared.pending) && + ((s.shared.pending = null), + (o = (i = p).next), + (i.next = null) === u ? (c = o) : (u.next = o), + (u = i), + null !== (a = e.alternate) && + (l = (a = a.updateQueue).lastBaseUpdate) !== u && + (null === l ? (a.firstBaseUpdate = o) : (l.next = o), (a.lastBaseUpdate = i))), + null !== c) + ) { + for (l = s.baseState, u = 0, a = o = i = null; ;) { + p = c.lane + var d = c.eventTime + if ((r & p) === p) { + null !== a && + (a = a.next = + { + eventTime: d, + lane: 0, + tag: c.tag, + payload: c.payload, + callback: c.callback, + next: null, + }) + e: { + var f = e, + h = c, + p = t + d = n + switch (h.tag) { + case 1: + if ('function' == typeof (f = h.payload)) { + l = f.call(d, l, p) + break e + } + l = f + break e + case 3: + f.flags = (-4097 & f.flags) | 64 + case 0: + if (null == (p = 'function' == typeof (f = h.payload) ? f.call(d, l, p) : f)) + break e + l = Oe({}, l, p) + break e + case 2: + ca = !0 + } + } + null !== c.callback && + ((e.flags |= 32), null === (p = s.effects) ? (s.effects = [c]) : p.push(c)) + } else + (d = { + eventTime: d, + lane: p, + tag: c.tag, + payload: c.payload, + callback: c.callback, + next: null, + }), + null === a ? ((o = a = d), (i = l)) : (a = a.next = d), + (u |= p) + if (null === (c = c.next)) { + if (null === (p = s.shared.pending)) break + ; + (c = p.next), (p.next = null), (s.lastBaseUpdate = p), (s.shared.pending = null) + } + } + null === a && (i = l), + (s.baseState = i), + (s.firstBaseUpdate = o), + (s.lastBaseUpdate = a), + (Ms |= u), + (e.lanes = u), + (e.memoizedState = l) + } + } + + function ma(e, t, n) { + if (((e = t.effects), (t.effects = null) !== e)) + for (t = 0; t < e.length; t++) { + var r = e[t], + i = r.callback + if (null !== i) { + if (((r.callback = null), (r = n), 'function' != typeof i)) throw Error(ke(191, i)) + i.call(r) + } + } + } + + var va = new Ee.Component().refs + + function ya(e, t, n, r) { + ;(n = null == (n = n(r, (t = e.memoizedState))) ? t : Oe({}, t, n)), + (e.memoizedState = n), + 0 === e.lanes && (e.updateQueue.baseState = n) + } + + var ba = { + isMounted: function (e) { + return !!(e = e._reactInternals) && fn(e) === e + }, + enqueueSetState: function (e, t, n) { + e = e._reactInternals + var r = ic(), + i = oc(e), + o = fa(r, i) + ;(o.payload = t), null != n && (o.callback = n), ha(e, o), ac(e, i, r) + }, + enqueueReplaceState: function (e, t, n) { + e = e._reactInternals + var r = ic(), + i = oc(e), + o = fa(r, i) + ;(o.tag = 1), (o.payload = t), null != n && (o.callback = n), ha(e, o), ac(e, i, r) + }, + enqueueForceUpdate: function (e, t) { + e = e._reactInternals + var n = ic(), + r = oc(e), + i = fa(n, r) + ;(i.tag = 2), null != t && (i.callback = t), ha(e, i), ac(e, r, n) + }, + } + + function wa(e, t, n, r, i, o, a) { + return 'function' == typeof (e = e.stateNode).shouldComponentUpdate + ? e.shouldComponentUpdate(r, o, a) + : !(t.prototype && t.prototype.isPureReactComponent && mi(n, r) && mi(i, o)) + } + + function Ca(e, t, n) { + var r = !1, + i = go, + o = t.contextType + ;(t = new t( + n, + (o = + 'object' == typeof o && null !== o + ? sa(o) + : ((i = wo(t) ? yo : mo.current), (r = null != (r = t.contextTypes)) ? bo(e, i) : go)), + )), + (e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null), + (t.updater = ba), + ((e.stateNode = t)._reactInternals = e), + r && + (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = i), + (e.__reactInternalMemoizedMaskedChildContext = o)) + } + + function xa(e, t, n, r) { + ;(e = t.state), + 'function' == typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), + 'function' == typeof t.UNSAFE_componentWillReceiveProps && + t.UNSAFE_componentWillReceiveProps(n, r), + t.state !== e && ba.enqueueReplaceState(t, t.state, null) + } + + function Ea(e, t, n, r) { + var i = e.stateNode, + o = ((i.props = n), (i.state = e.memoizedState), (i.refs = va), ua(e), t.contextType) + 'object' == typeof o && null !== o + ? (i.context = sa(o)) + : ((o = wo(t) ? yo : mo.current), (i.context = bo(e, o))), + ga(e, n, i, r), + (i.state = e.memoizedState), + 'function' == typeof (o = t.getDerivedStateFromProps) && + (ya(e, 0, o, n), (i.state = e.memoizedState)), + 'function' == typeof t.getDerivedStateFromProps || + 'function' == typeof i.getSnapshotBeforeUpdate || + ('function' != typeof i.UNSAFE_componentWillMount && + 'function' != typeof i.componentWillMount) || + ((t = i.state), + 'function' == typeof i.componentWillMount && i.componentWillMount(), + 'function' == typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount(), + t !== i.state && ba.enqueueReplaceState(i, i.state, null), + ga(e, n, i, r), + (i.state = e.memoizedState)), + 'function' == typeof i.componentDidMount && (e.flags |= 4) + } + + var Oa = Array.isArray + + function Sa(e, t, n) { + if (null !== (e = n.ref) && 'function' != typeof e && 'object' != typeof e) { + if (n._owner) { + if ((n = n._owner)) { + if (1 !== n.tag) throw Error(ke(309)) + var r = n.stateNode + } + if (!r) throw Error(ke(147, e)) + var i = '' + e + return null !== t && null !== t.ref && 'function' == typeof t.ref && t.ref._stringRef === i + ? t.ref + : (((t = function (e) { + var t = r.refs + t === va && (t = r.refs = {}), null === e ? delete t[i] : (t[i] = e) + })._stringRef = i), + t) + } + if ('string' != typeof e) throw Error(ke(284)) + if (!n._owner) throw Error(ke(290, e)) + } + return e + } + + function ka(e, t) { + if ('textarea' !== e.type) + throw Error( + ke( + 31, + '[object Object]' === Object.prototype.toString.call(t) + ? 'object with keys {' + Object.keys(t).join(', ') + '}' + : t, + ), + ) + } + + function Pa(e) { + function t(t, n) { + var r + e && + (null !== (r = t.lastEffect) + ? ((r.nextEffect = n), (t.lastEffect = n)) + : (t.firstEffect = t.lastEffect = n), + (n.nextEffect = null), + (n.flags = 8)) + } + + function n(n, r) { + if (!e) return null + for (; null !== r;) t(n, r), (r = r.sibling) + return null + } + + function r(e, t) { + for (e = new Map(); null !== t;) + null !== t.key ? e.set(t.key, t) : e.set(t.index, t), (t = t.sibling) + return e + } + + function i(e, t) { + return ((e = Ic(e, t)).index = 0), (e.sibling = null), e + } + + function o(t, n, r) { + return ( + (t.index = r), + e ? (null === (r = t.alternate) || (r = r.index) < n ? ((t.flags = 2), n) : r) : n + ) + } + + function a(t) { + return e && null === t.alternate && (t.flags = 2), t + } + + function l(e, t, n, r) { + return ( + null === t || 6 !== t.tag + ? ((t = Ac(n, e.mode, r)).return = e) + : ((t = i(t, n)).return = e), + t + ) + } + + function s(e, t, n, r) { + return ( + null !== t && t.elementType === n.type + ? ((r = i(t, n.props)).ref = Sa(0, t, n)) + : ((r = Mc(n.type, n.key, n.props, null, e.mode, r)).ref = Sa(0, t, n)), + (r.return = e), + r + ) + } + + function c(e, t, n, r) { + return ( + null === t || + 4 !== t.tag || + t.stateNode.containerInfo !== n.containerInfo || + t.stateNode.implementation !== n.implementation + ? ((t = zc(n, e.mode, r)).return = e) + : ((t = i(t, n.children || [])).return = e), + t + ) + } + + function u(e, t, n, r, o) { + return ( + null === t || 7 !== t.tag + ? ((t = Rc(n, e.mode, r, o)).return = e) + : ((t = i(t, n)).return = e), + t + ) + } + + function d(e, t, n) { + if ('string' == typeof t || 'number' == typeof t) + return ((t = Ac('' + t, e.mode, n)).return = e), t + if ('object' == typeof t && null !== t) { + switch (t.$$typeof) { + case We: + return ( + ((n = Mc(t.type, t.key, t.props, null, e.mode, n)).ref = Sa(0, null, t)), + (n.return = e), + n + ) + case Ge: + return ((t = zc(t, e.mode, n)).return = e), t + } + if (Oa(t) || lt(t)) return ((t = Rc(t, e.mode, n, null)).return = e), t + ka(e, t) + } + return null + } + + function f(e, t, n, r) { + var i = null !== t ? t.key : null + if ('string' == typeof n || 'number' == typeof n) + return null !== i ? null : l(e, t, '' + n, r) + if ('object' == typeof n && null !== n) { + switch (n.$$typeof) { + case We: + return n.key === i + ? n.type === Ze + ? u(e, t, n.props.children, r, i) + : s(e, t, n, r) + : null + case Ge: + return n.key === i ? c(e, t, n, r) : null + } + if (Oa(n) || lt(n)) return null !== i ? null : u(e, t, n, r, null) + ka(e, n) + } + return null + } + + function h(e, t, n, r, i) { + if ('string' == typeof r || 'number' == typeof r) + return l(t, (e = e.get(n) || null), '' + r, i) + if ('object' == typeof r && null !== r) { + switch (r.$$typeof) { + case We: + return ( + (e = e.get(null === r.key ? n : r.key) || null), + r.type === Ze ? u(t, e, r.props.children, i, r.key) : s(t, e, r, i) + ) + case Ge: + return c(t, (e = e.get(null === r.key ? n : r.key) || null), r, i) + } + if (Oa(r) || lt(r)) return u(t, (e = e.get(n) || null), r, i, null) + ka(t, r) + } + return null + } + + return function (l, s, c, u) { + var p = 'object' == typeof c && null !== c && c.type === Ze && null === c.key, + g = 'object' == typeof (c = p ? c.props.children : c) && null !== c + if (g) + switch (c.$$typeof) { + case We: + e: { + for (g = c.key, p = s; null !== p;) { + if (p.key === g) { + switch (p.tag) { + case 7: + if (c.type !== Ze) break + n(l, p.sibling), ((s = i(p, c.props.children)).return = l), (l = s) + break e + default: + if (p.elementType === c.type) { + n(l, p.sibling), + ((s = i(p, c.props)).ref = Sa(0, p, c)), + (s.return = l), + (l = s) + break e + } + } + n(l, p) + break + } + t(l, p), (p = p.sibling) + } + l = + c.type === Ze + ? (((s = Rc(c.props.children, l.mode, u, c.key)).return = l), s) + : (((u = Mc(c.type, c.key, c.props, null, l.mode, u)).ref = Sa(0, s, c)), + (u.return = l), + u) + } + return a(l) + case Ge: + e: { + for (p = c.key; null !== s;) { + if (s.key === p) { + if ( + 4 === s.tag && + s.stateNode.containerInfo === c.containerInfo && + s.stateNode.implementation === c.implementation + ) { + n(l, s.sibling), ((s = i(s, c.children || [])).return = l), (l = s) + break e + } + n(l, s) + break + } + t(l, s), (s = s.sibling) + } + ;((s = zc(c, l.mode, u)).return = l), (l = s) + } + return a(l) + } + if ('string' == typeof c || 'number' == typeof c) + return ( + (c = '' + c), + ((s = + null !== s && 6 === s.tag + ? (n(l, s.sibling), i(s, c)) + : (n(l, s), Ac(c, l.mode, u))).return = l), + a((l = s)) + ) + if (Oa(c)) { + for ( + var m = l, v = s, y = c, b = u, w = null, C = null, x = v, E = (v = 0), O = null; + null !== x && E < y.length; + E++ + ) { + x.index > E ? ((O = x), (x = null)) : (O = x.sibling) + var S = f(m, x, y[E], b) + if (null === S) { + null === x && (x = O) + break + } + e && x && null === S.alternate && t(m, x), + (v = o(S, v, E)), + null === C ? (w = S) : (C.sibling = S), + (C = S), + (x = O) + } + if (E === y.length) return n(m, x), w + if (null === x) { + for (; E < y.length; E++) + null !== (x = d(m, y[E], b)) && + ((v = o(x, v, E)), null === C ? (w = x) : (C.sibling = x), (C = x)) + return w + } + for (x = r(m, x); E < y.length; E++) + null !== (O = h(x, m, E, y[E], b)) && + (e && null !== O.alternate && x.delete(null === O.key ? E : O.key), + (v = o(O, v, E)), + null === C ? (w = O) : (C.sibling = O), + (C = O)) + return ( + e && + x.forEach(function (e) { + return t(m, e) + }), + w + ) + } + if (lt(c)) { + var k = l, + P = s, + _ = c, + L = u, + T = lt(_) + if ('function' != typeof T) throw Error(ke(150)) + if (null == (_ = T.call(_))) throw Error(ke(151)) + for ( + var j = (T = null), I = P, M = (P = 0), R = null, D = _.next(); + null !== I && !D.done; + M++, D = _.next() + ) { + I.index > M ? ((R = I), (I = null)) : (R = I.sibling) + var A = f(k, I, D.value, L) + if (null === A) { + null === I && (I = R) + break + } + e && I && null === A.alternate && t(k, I), + (P = o(A, P, M)), + null === j ? (T = A) : (j.sibling = A), + (j = A), + (I = R) + } + if (D.done) return n(k, I), T + if (null === I) { + for (; !D.done; M++, D = _.next()) + null !== (D = d(k, D.value, L)) && + ((P = o(D, P, M)), null === j ? (T = D) : (j.sibling = D), (j = D)) + return T + } + for (I = r(k, I); !D.done; M++, D = _.next()) + null !== (D = h(I, k, M, D.value, L)) && + (e && null !== D.alternate && I.delete(null === D.key ? M : D.key), + (P = o(D, P, M)), + null === j ? (T = D) : (j.sibling = D), + (j = D)) + return ( + e && + I.forEach(function (e) { + return t(k, e) + }), + T + ) + } + if ((g && ka(l, c), void 0 === c && !p)) + switch (l.tag) { + case 1: + case 22: + case 0: + case 11: + case 15: + throw Error(ke(152, dt(l.type) || 'Component')) + } + return n(l, s) + } + } + + var _a = Pa(!0), + La = Pa(!1), + Ta = {}, + ja = fo(Ta), + Ia = fo(Ta), + Ma = fo(Ta) + + function Ra(e) { + if (e === Ta) throw Error(ke(174)) + return e + } + + function Da(e, t) { + switch ((po(Ma, t), po(Ia, e), po(ja, Ta), (e = t.nodeType))) { + case 9: + case 11: + t = (t = t.documentElement) ? t.namespaceURI : jt(null, '') + break + default: + t = jt((t = (e = 8 === e ? t.parentNode : t).namespaceURI || null), (e = e.tagName)) + } + ho(ja), po(ja, t) + } + + function Aa() { + ho(ja), ho(Ia), ho(Ma) + } + + function za(e) { + Ra(Ma.current) + var t = Ra(ja.current), + n = jt(t, e.type) + t !== n && (po(Ia, e), po(ja, n)) + } + + function Na(e) { + Ia.current === e && (ho(ja), ho(Ia)) + } + + var Ha = fo(0) + + function Fa(e) { + for (var t = e; null !== t;) { + if (13 === t.tag) { + var n = t.memoizedState + if (null !== n && (null === (n = n.dehydrated) || '$?' === n.data || '$!' === n.data)) + return t + } else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) { + if (0 != (64 & t.flags)) return t + } else if (null !== t.child) { + t = (t.child.return = t).child + continue + } + if (t === e) break + for (; null === t.sibling;) { + if (null === t.return || t.return === e) return null + t = t.return + } + ;(t.sibling.return = t.return), (t = t.sibling) + } + return null + } + + var Ba = null, + Va = null, + Wa = !1 + + function Ga(e, t) { + var n = Tc(5, null, null, 0) + ;(n.elementType = 'DELETED'), + (n.type = 'DELETED'), + (n.stateNode = t), + (n.return = e), + (n.flags = 8), + null !== e.lastEffect + ? ((e.lastEffect.nextEffect = n), (e.lastEffect = n)) + : (e.firstEffect = e.lastEffect = n) + } + + function Za(e, t) { + switch (e.tag) { + case 5: + var n = e.type + return ( + null !== + (t = 1 !== t.nodeType || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t) && + ((e.stateNode = t), 1) + ) + case 6: + return ( + null !== (t = '' === e.pendingProps || 3 !== t.nodeType ? null : t) && + ((e.stateNode = t), 1) + ) + default: + return + } + } + + function Ua(e) { + if (Wa) { + var t = Va + if (t) { + var n = t + if (!Za(e, t)) { + if (!(t = Ki(n.nextSibling)) || !Za(e, t)) + return (e.flags = (-1025 & e.flags) | 2), (Wa = !1), void (Ba = e) + Ga(Ba, n) + } + ;(Ba = e), (Va = Ki(t.firstChild)) + } else (e.flags = (-1025 & e.flags) | 2), (Wa = !1), (Ba = e) + } + } + + function Xa(e) { + for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag;) e = e.return + Ba = e + } + + function Ya(e) { + if (e === Ba) { + if (!Wa) return Xa(e), (Wa = !0), 0 + var t = e.type + if (5 !== e.tag || ('head' !== t && 'body' !== t && !Xi(t, e.memoizedProps))) + for (t = Va; t;) Ga(e, t), (t = Ki(t.nextSibling)) + if ((Xa(e), 13 === e.tag)) { + if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) throw Error(ke(317)) + e: { + for (e = e.nextSibling, t = 0; e;) { + if (8 === e.nodeType) { + var n = e.data + if ('/$' === n) { + if (0 === t) { + Va = Ki(e.nextSibling) + break e + } + t-- + } else ('$' !== n && '$!' !== n && '$?' !== n) || t++ + } + e = e.nextSibling + } + Va = null + } + } else Va = Ba ? Ki(e.stateNode.nextSibling) : null + return 1 + } + } + + function qa() { + ;(Va = Ba = null), (Wa = !1) + } + + var $a = [] + + function Ka() { + for (var e = 0; e < $a.length; e++) $a[e]._workInProgressVersionPrimary = null + $a.length = 0 + } + + var Qa = Ve.ReactCurrentDispatcher, + Ja = Ve.ReactCurrentBatchConfig, + el = 0, + tl = null, + nl = null, + rl = null, + il = !1, + ol = !1 + + function al() { + throw Error(ke(321)) + } + + function ll(e, t) { + if (null !== t) { + for (var n = 0; n < t.length && n < e.length; n++) if (!pi(e[n], t[n])) return + return 1 + } + } + + function sl(e, t, n, r, i, o) { + if ( + ((el = o), + ((tl = t).memoizedState = null), + (t.updateQueue = null), + (t.lanes = 0), + (Qa.current = null === e || null === e.memoizedState ? Ml : Rl), + (e = n(r, i)), + ol) + ) { + o = 0 + do { + if (((ol = !1), !(o < 25))) throw Error(ke(301)) + } while ( + ((o += 1), (rl = nl = null), (t.updateQueue = null), (Qa.current = Dl), (e = n(r, i)), ol) + ) + } + if ( + ((Qa.current = Il), + (t = null !== nl && null !== nl.next), + (el = 0), + (rl = nl = tl = null), + (il = !1), + t) + ) + throw Error(ke(300)) + return e + } + + function cl() { + var e = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null, + } + return null === rl ? (tl.memoizedState = rl = e) : (rl = rl.next = e), rl + } + + function ul() { + e = null === nl ? (null !== (e = tl.alternate) ? e.memoizedState : null) : nl.next + var e, + t = null === rl ? tl.memoizedState : rl.next + if (null !== t) (rl = t), (nl = e) + else { + if (null === e) throw Error(ke(310)) + ; + (e = { + memoizedState: (nl = e).memoizedState, + baseState: nl.baseState, + baseQueue: nl.baseQueue, + queue: nl.queue, + next: null, + }), + null === rl ? (tl.memoizedState = rl = e) : (rl = rl.next = e) + } + return rl + } + + function dl(e, t) { + return 'function' == typeof t ? t(e) : t + } + + function fl(e) { + var t = ul(), + n = t.queue + if (null === n) throw Error(ke(311)) + n.lastRenderedReducer = e + var r, + i = (a = nl).baseQueue, + o = n.pending + if ( + (null !== o && + (null !== i && ((r = i.next), (i.next = o.next), (o.next = r)), + (a.baseQueue = i = o), + (n.pending = null)), + null !== i) + ) { + i = i.next + var a = a.baseState, + l = (r = o = null), + s = i + do { + var c, + u = s.lane + } while ( + ((el & u) === u + ? (null !== l && + (l = l.next = + { + lane: 0, + action: s.action, + eagerReducer: s.eagerReducer, + eagerState: s.eagerState, + next: null, + }), + (a = s.eagerReducer === e ? s.eagerState : e(a, s.action))) + : ((c = { + lane: u, + action: s.action, + eagerReducer: s.eagerReducer, + eagerState: s.eagerState, + next: null, + }), + null === l ? ((r = l = c), (o = a)) : (l = l.next = c), + (tl.lanes |= u), + (Ms |= u)), + null !== (s = s.next) && s !== i) + ) + null === l ? (o = a) : (l.next = r), + pi(a, t.memoizedState) || (zl = !0), + (t.memoizedState = a), + (t.baseState = o), + (t.baseQueue = l), + (n.lastRenderedState = a) + } + return [t.memoizedState, n.dispatch] + } + + function hl(e) { + var t = ul(), + n = t.queue + if (null === n) throw Error(ke(311)) + n.lastRenderedReducer = e + var r = n.dispatch, + i = n.pending, + o = t.memoizedState + if (null !== i) { + n.pending = null + for (var a = (i = i.next); (o = e(o, a.action)), (a = a.next) !== i;) ; + pi(o, t.memoizedState) || (zl = !0), + (t.memoizedState = o), + null === t.baseQueue && (t.baseState = o), + (n.lastRenderedState = o) + } + return [o, r] + } + + function pl(e, t, n) { + var r = (r = t._getVersion)(t._source), + i = t._workInProgressVersionPrimary + if ( + (null !== i + ? (e = i === r) + : ((e = e.mutableReadLanes), + (e = (el & e) === e) && ((t._workInProgressVersionPrimary = r), $a.push(t))), + e) + ) + return n(t._source) + throw ($a.push(t), Error(ke(350))) + } + + function gl(e, t, n, r) { + var i = Ss + if (null === i) throw Error(ke(349)) + var o = t._getVersion, + a = o(t._source), + l = Qa.current, + s = (u = l.useState(function () { + return pl(i, t, n) + }))[1], + c = u[0], + u = rl, + d = (p = e.memoizedState).refs, + f = d.getSnapshot, + h = p.source, + p = p.subscribe, + g = tl + return ( + (e.memoizedState = {refs: d, source: t, subscribe: r}), + l.useEffect( + function () { + ;(d.getSnapshot = n), (d.setSnapshot = s) + var e = o(t._source) + if (!pi(a, e)) { + ;(e = n(t._source)), + pi(c, e) || (s(e), (e = oc(g)), (i.mutableReadLanes |= e & i.pendingLanes)), + (e = i.mutableReadLanes), + (i.entangledLanes |= e) + for (var r = i.entanglements, l = e; 0 < l;) { + var u = 31 - rr(l), + f = 1 << u + ;(r[u] |= e), (l &= ~f) + } + } + }, + [n, t, r], + ), + l.useEffect( + function () { + return r(t._source, function () { + var e = d.getSnapshot, + n = d.setSnapshot + try { + n(e(t._source)) + var r = oc(g) + i.mutableReadLanes |= r & i.pendingLanes + } catch (o) { + n(function () { + throw o + }) + } + }) + }, + [t, r], + ), + (pi(f, n) && pi(h, t) && pi(p, r)) || + (((e = { + pending: null, + dispatch: null, + lastRenderedReducer: dl, + lastRenderedState: c, + }).dispatch = s = + jl.bind(null, tl, e)), + (u.queue = e), + (u.baseQueue = null), + (c = pl(i, t, n)), + (u.memoizedState = u.baseState = c)), + c + ) + } + + function ml(e, t, n) { + return gl(ul(), e, t, n) + } + + function vl(e) { + var t = cl() + return ( + 'function' == typeof e && (e = e()), + (t.memoizedState = t.baseState = e), + (e = (e = t.queue = + { + pending: null, + dispatch: null, + lastRenderedReducer: dl, + lastRenderedState: e, + }).dispatch = + jl.bind(null, tl, e)), + [t.memoizedState, e] + ) + } + + function yl(e, t, n, r) { + return ( + (e = {tag: e, create: t, destroy: n, deps: r, next: null}), + null === (t = tl.updateQueue) + ? ((tl.updateQueue = t = {lastEffect: null}).lastEffect = e.next = e) + : null === (n = t.lastEffect) + ? (t.lastEffect = e.next = e) + : ((r = n.next), ((n.next = e).next = r), (t.lastEffect = e)), + e + ) + } + + function bl(e) { + return (cl().memoizedState = {current: e}) + } + + function wl() { + return ul().memoizedState + } + + function Cl(e, t, n, r) { + var i = cl() + ;(tl.flags |= e), (i.memoizedState = yl(1 | t, n, void 0, void 0 === r ? null : r)) + } + + function xl(e, t, n, r) { + var i = ul(), + o = void (r = void 0 === r ? null : r) + if (null !== nl) { + var a = nl.memoizedState + o = a.destroy + if (null !== r && ll(r, a.deps)) return void yl(t, n, o, r) + } + ;(tl.flags |= e), (i.memoizedState = yl(1 | t, n, o, r)) + } + + function El(e, t) { + return Cl(516, 4, e, t) + } + + function Ol(e, t) { + return xl(516, 4, e, t) + } + + function Sl(e, t) { + return xl(4, 2, e, t) + } + + function kl(e, t) { + return 'function' == typeof t + ? ((e = e()), + t(e), + function () { + t(null) + }) + : null != t + ? ((e = e()), + (t.current = e), + function () { + t.current = null + }) + : void 0 + } + + function Pl(e, t, n) { + return (n = null != n ? n.concat([e]) : null), xl(4, 2, kl.bind(null, t, e), n) + } + + function _l() { + } + + function Ll(e, t) { + var n = ul(), + r = ((t = void 0 === t ? null : t), n.memoizedState) + return null !== r && null !== t && ll(t, r[1]) ? r[0] : ((n.memoizedState = [e, t]), e) + } + + function Tl(e, t) { + var n = ul(), + r = ((t = void 0 === t ? null : t), n.memoizedState) + return null !== r && null !== t && ll(t, r[1]) + ? r[0] + : ((e = e()), (n.memoizedState = [e, t]), e) + } + + function jl(e, t, n) { + var r = ic(), + i = oc(e), + o = { + lane: i, + action: n, + eagerReducer: null, + eagerState: null, + next: null, + }, + a = t.pending + if ( + (null === a ? (o.next = o) : ((o.next = a.next), (a.next = o)), + (t.pending = o), + (a = e.alternate), + e === tl || (null !== a && a === tl)) + ) + ol = il = !0 + else { + if (0 === e.lanes && (null === a || 0 === a.lanes) && null !== (a = t.lastRenderedReducer)) + try { + var l = t.lastRenderedState, + s = a(l, n) + if (((o.eagerReducer = a), (o.eagerState = s), pi(s, l))) return + } catch (c) { + } + ac(e, i, r) + } + } + + var Il = { + readContext: sa, + useCallback: al, + useContext: al, + useEffect: al, + useImperativeHandle: al, + useLayoutEffect: al, + useMemo: al, + useReducer: al, + useRef: al, + useState: al, + useDebugValue: al, + useDeferredValue: al, + useTransition: al, + useMutableSource: al, + useOpaqueIdentifier: al, + unstable_isNewReconciler: !1, + }, + Ml = { + readContext: sa, + useCallback: function (e, t) { + return (cl().memoizedState = [e, void 0 === t ? null : t]), e + }, + useContext: sa, + useEffect: El, + useImperativeHandle: function (e, t, n) { + return (n = null != n ? n.concat([e]) : null), Cl(4, 2, kl.bind(null, t, e), n) + }, + useLayoutEffect: function (e, t) { + return Cl(4, 2, e, t) + }, + useMemo: function (e, t) { + var n = cl() + return (t = void 0 === t ? null : t), (e = e()), (n.memoizedState = [e, t]), e + }, + useReducer: function (e, t, n) { + var r = cl() + return ( + (t = void 0 !== n ? n(t) : t), + (r.memoizedState = r.baseState = t), + (e = (e = r.queue = + { + pending: null, + dispatch: null, + lastRenderedReducer: e, + lastRenderedState: t, + }).dispatch = + jl.bind(null, tl, e)), + [r.memoizedState, e] + ) + }, + useRef: bl, + useState: vl, + useDebugValue: _l, + useDeferredValue: function (e) { + var t = vl(e), + n = t[0], + r = t[1] + return ( + El( + function () { + var t = Ja.transition + Ja.transition = 1 + try { + r(e) + } finally { + Ja.transition = t + } + }, + [e], + ), + n + ) + }, + useTransition: function () { + var e = vl(!1), + t = e[0] + return ( + bl( + (e = function (e, t) { + var n = Uo() + Yo(n < 98 ? 98 : n, function () { + e(!0) + }), + Yo(97 < n ? 97 : n, function () { + var n = Ja.transition + Ja.transition = 1 + try { + e(!1), t() + } finally { + Ja.transition = n + } + }) + }.bind(null, e[1])), + ), + [e, t] + ) + }, + useMutableSource: function (e, t, n) { + var r = cl() + return ( + (r.memoizedState = { + refs: {getSnapshot: t, setSnapshot: null}, + source: e, + subscribe: n, + }), + gl(r, e, t, n) + ) + }, + useOpaqueIdentifier: function () { + var e, t, n + return ( + Wa + ? ((e = !1), + (n = { + $$typeof: nt, + toString: (n = function () { + throw (e || ((e = !0), t('r:' + (Ji++).toString(36))), Error(ke(355))) + }), + valueOf: n, + }), + (t = vl(n)[1]), + 0 == (2 & tl.mode) && + ((tl.flags |= 516), + yl( + 5, + function () { + t('r:' + (Ji++).toString(36)) + }, + void 0, + null, + ))) + : vl((n = 'r:' + (Ji++).toString(36))), + n + ) + }, + unstable_isNewReconciler: !1, + }, + Rl = { + readContext: sa, + useCallback: Ll, + useContext: sa, + useEffect: Ol, + useImperativeHandle: Pl, + useLayoutEffect: Sl, + useMemo: Tl, + useReducer: fl, + useRef: wl, + useState: function () { + return fl(dl) + }, + useDebugValue: _l, + useDeferredValue: function (e) { + var t = fl(dl), + n = t[0], + r = t[1] + return ( + Ol( + function () { + var t = Ja.transition + Ja.transition = 1 + try { + r(e) + } finally { + Ja.transition = t + } + }, + [e], + ), + n + ) + }, + useTransition: function () { + var e = fl(dl)[0] + return [wl().current, e] + }, + useMutableSource: ml, + useOpaqueIdentifier: function () { + return fl(dl)[0] + }, + unstable_isNewReconciler: !1, + }, + Dl = { + readContext: sa, + useCallback: Ll, + useContext: sa, + useEffect: Ol, + useImperativeHandle: Pl, + useLayoutEffect: Sl, + useMemo: Tl, + useReducer: hl, + useRef: wl, + useState: function () { + return hl(dl) + }, + useDebugValue: _l, + useDeferredValue: function (e) { + var t = hl(dl), + n = t[0], + r = t[1] + return ( + Ol( + function () { + var t = Ja.transition + Ja.transition = 1 + try { + r(e) + } finally { + Ja.transition = t + } + }, + [e], + ), + n + ) + }, + useTransition: function () { + var e = hl(dl)[0] + return [wl().current, e] + }, + useMutableSource: ml, + useOpaqueIdentifier: function () { + return hl(dl)[0] + }, + unstable_isNewReconciler: !1, + }, + Al = Ve.ReactCurrentOwner, + zl = !1 + + function Nl(e, t, n, r) { + t.child = null === e ? La(t, null, n, r) : _a(t, e.child, n, r) + } + + function Hl(e, t, n, r, i) { + n = n.render + var o = t.ref + return ( + la(t, i), + (r = sl(e, t, n, r, o, i)), + null === e || zl + ? ((t.flags |= 1), Nl(e, t, r, i), t.child) + : ((t.updateQueue = e.updateQueue), (t.flags &= -517), (e.lanes &= ~i), es(e, t, i)) + ) + } + + function Fl(e, t, n, r, i, o) { + var a + return null === e + ? 'function' != typeof (a = n.type) || + jc(a) || + void 0 !== a.defaultProps || + null !== n.compare || + void 0 !== n.defaultProps + ? (((e = Mc(n.type, null, r, t, t.mode, o)).ref = t.ref), ((e.return = t).child = e)) + : ((t.tag = 15), (t.type = a), Bl(e, t, a, r, i, o)) + : ((a = e.child), + 0 == (i & o) && + ((i = a.memoizedProps), (n = null !== (n = n.compare) ? n : mi)(i, r) && e.ref === t.ref) + ? es(e, t, o) + : ((t.flags |= 1), ((e = Ic(a, r)).ref = t.ref), ((e.return = t).child = e))) + } + + function Bl(e, t, n, r, i, o) { + if (null !== e && mi(e.memoizedProps, r) && e.ref === t.ref) { + if (((zl = !1), 0 == (o & i))) return (t.lanes = e.lanes), es(e, t, o) + 0 != (16384 & e.flags) && (zl = !0) + } + return Gl(e, t, n, r, o) + } + + function Vl(e, t, n) { + var r = t.pendingProps, + i = r.children, + o = null !== e ? e.memoizedState : null + if ('hidden' === r.mode || 'unstable-defer-without-hiding' === r.mode) + if (0 == (4 & t.mode)) (t.memoizedState = {baseLanes: 0}), pc(0, n) + else { + if (0 == (1073741824 & n)) + return ( + (e = null !== o ? o.baseLanes | n : n), + (t.lanes = t.childLanes = 1073741824), + (t.memoizedState = {baseLanes: e}), + pc(0, e), + null + ) + ; + (t.memoizedState = {baseLanes: 0}), pc(0, null !== o ? o.baseLanes : n) + } + else null !== o ? ((r = o.baseLanes | n), (t.memoizedState = null)) : (r = n), pc(0, r) + return Nl(e, t, i, n), t.child + } + + function Wl(e, t) { + var n = t.ref + ;((null === e && null !== n) || (null !== e && e.ref !== n)) && (t.flags |= 128) + } + + function Gl(e, t, n, r, i) { + var o = bo(t, wo(n) ? yo : mo.current) + return ( + la(t, i), + (n = sl(e, t, n, r, o, i)), + null === e || zl + ? ((t.flags |= 1), Nl(e, t, n, i), t.child) + : ((t.updateQueue = e.updateQueue), (t.flags &= -517), (e.lanes &= ~i), es(e, t, i)) + ) + } + + function Zl(e, t, n, r, i) { + var o, a, l, s, c, u, d, f, h, p + return ( + wo(n) ? ((o = !0), Oo(t)) : (o = !1), + la(t, i), + (r = + null === t.stateNode + ? (null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)), + Ca(t, n, r), + Ea(t, n, r, i), + !0) + : null === e + ? ((a = t.stateNode), + (l = t.memoizedProps), + (a.props = l), + (f = a.context), + (s = + 'object' == typeof (s = n.contextType) && null !== s + ? sa(s) + : bo(t, (s = wo(n) ? yo : mo.current))), + (u = + 'function' == typeof (c = n.getDerivedStateFromProps) || + 'function' == typeof a.getSnapshotBeforeUpdate) || + ('function' != typeof a.UNSAFE_componentWillReceiveProps && + 'function' != typeof a.componentWillReceiveProps) || + (l === r && f === s) || + xa(0, a, r, s), + (ca = !1), + (d = t.memoizedState), + (a.state = d), + ga(t, r, a, i), + (f = t.memoizedState), + l !== r || d !== f || vo.current || ca + ? ('function' == typeof c && (ya(t, 0, c, r), (f = t.memoizedState)), + (l = ca || wa(t, n, l, r, d, f, s)) + ? (u || + ('function' != typeof a.UNSAFE_componentWillMount && + 'function' != typeof a.componentWillMount) || + ('function' == typeof a.componentWillMount && a.componentWillMount(), + 'function' == typeof a.UNSAFE_componentWillMount && + a.UNSAFE_componentWillMount()), + 'function' == typeof a.componentDidMount && (t.flags |= 4)) + : ('function' == typeof a.componentDidMount && (t.flags |= 4), + (t.memoizedProps = r), + (t.memoizedState = f)), + (a.props = r), + (a.state = f), + (a.context = s), + l) + : ('function' == typeof a.componentDidMount && (t.flags |= 4), !1)) + : ((a = t.stateNode), + da(e, t), + (l = t.memoizedProps), + (s = t.type === t.elementType ? l : Jo(t.type, l)), + (a.props = s), + (u = t.pendingProps), + (d = a.context), + (f = + 'object' == typeof (f = n.contextType) && null !== f + ? sa(f) + : bo(t, (f = wo(n) ? yo : mo.current))), + (c = + 'function' == typeof (h = n.getDerivedStateFromProps) || + 'function' == typeof a.getSnapshotBeforeUpdate) || + ('function' != typeof a.UNSAFE_componentWillReceiveProps && + 'function' != typeof a.componentWillReceiveProps) || + (l === u && d === f) || + xa(0, a, r, f), + (ca = !1), + (d = t.memoizedState), + (a.state = d), + ga(t, r, a, i), + (p = t.memoizedState), + l !== u || d !== p || vo.current || ca + ? ('function' == typeof h && (ya(t, 0, h, r), (p = t.memoizedState)), + (s = ca || wa(t, n, s, r, d, p, f)) + ? (c || + ('function' != typeof a.UNSAFE_componentWillUpdate && + 'function' != typeof a.componentWillUpdate) || + ('function' == typeof a.componentWillUpdate && + a.componentWillUpdate(r, p, f), + 'function' == typeof a.UNSAFE_componentWillUpdate && + a.UNSAFE_componentWillUpdate(r, p, f)), + 'function' == typeof a.componentDidUpdate && (t.flags |= 4), + 'function' == typeof a.getSnapshotBeforeUpdate && (t.flags |= 256)) + : ('function' != typeof a.componentDidUpdate || + (l === e.memoizedProps && d === e.memoizedState) || + (t.flags |= 4), + 'function' != typeof a.getSnapshotBeforeUpdate || + (l === e.memoizedProps && d === e.memoizedState) || + (t.flags |= 256), + (t.memoizedProps = r), + (t.memoizedState = p)), + (a.props = r), + (a.state = p), + (a.context = f), + s) + : ('function' != typeof a.componentDidUpdate || + (l === e.memoizedProps && d === e.memoizedState) || + (t.flags |= 4), + 'function' != typeof a.getSnapshotBeforeUpdate || + (l === e.memoizedProps && d === e.memoizedState) || + (t.flags |= 256), + !1))), + Ul(e, t, n, r, o, i) + ) + } + + function Ul(e, t, n, r, i, o) { + Wl(e, t) + var a = 0 != (64 & t.flags) + if (!r && !a) return i && So(t, n, !1), es(e, t, o) + ; + (r = t.stateNode), (Al.current = t) + var l = a && 'function' != typeof n.getDerivedStateFromError ? null : r.render() + return ( + (t.flags |= 1), + null !== e && a + ? ((t.child = _a(t, e.child, null, o)), (t.child = _a(t, null, l, o))) + : Nl(e, t, l, o), + (t.memoizedState = r.state), + i && So(t, n, !0), + t.child + ) + } + + function Xl(e) { + var t = e.stateNode + t.pendingContext + ? xo(0, t.pendingContext, t.pendingContext !== t.context) + : t.context && xo(0, t.context, !1), + Da(e, t.containerInfo) + } + + var Yl = {dehydrated: null, retryLane: 0} + + function ql(e, t, n) { + var r, + i = t.pendingProps, + o = Ha.current, + a = !1 + return ( + (r = (r = 0 != (64 & t.flags)) ? r : (null === e || null !== e.memoizedState) && 0 != (2 & o)) + ? ((a = !0), (t.flags &= -65)) + : (null !== e && null === e.memoizedState) || + void 0 === i.fallback || + !0 === i.unstable_avoidThisFallback || + (o |= 1), + po(Ha, 1 & o), + null === e + ? (void 0 !== i.fallback && Ua(t), + (e = i.children), + (o = i.fallback), + a + ? ((e = $l(t, e, o, n)), + (t.child.memoizedState = {baseLanes: n}), + (t.memoizedState = Yl), + e) + : 'number' == typeof i.unstable_expectedLoadTime + ? ((e = $l(t, e, o, n)), + (t.child.memoizedState = {baseLanes: n}), + (t.memoizedState = Yl), + (t.lanes = 33554432), + e) + : (((n = Dc({mode: 'visible', children: e}, t.mode, n, null)).return = t).child = + n)) + : (e.memoizedState, + a + ? ((i = (function (e, t, n, r, i) { + var o = t.mode, + a = e.child, + l = ((e = a.sibling), {mode: 'hidden', children: n}) + return ( + 0 == (2 & o) && t.child !== a + ? (((n = t.child).childLanes = 0), + (n.pendingProps = l), + null !== (a = n.lastEffect) + ? ((t.firstEffect = n.firstEffect), ((t.lastEffect = a).nextEffect = null)) + : (t.firstEffect = t.lastEffect = null)) + : (n = Ic(a, l)), + null !== e ? (r = Ic(e, r)) : ((r = Rc(r, o, i, null)).flags |= 2), + (r.return = t), + (n.return = t), + (n.sibling = r), + (t.child = n), + r + ) + })(e, t, i.children, i.fallback, n)), + (a = t.child), + (o = e.child.memoizedState), + (a.memoizedState = null === o ? {baseLanes: n} : {baseLanes: o.baseLanes | n}), + (a.childLanes = e.childLanes & ~n), + (t.memoizedState = Yl), + i) + : ((n = (function (e, t, n, r) { + var i = e.child + return ( + (e = i.sibling), + (n = Ic(i, {mode: 'visible', children: n})), + 0 == (2 & t.mode) && (n.lanes = r), + (n.return = t), + (n.sibling = null) !== e && + ((e.nextEffect = null), (e.flags = 8), (t.firstEffect = t.lastEffect = e)), + (t.child = n) + ) + })(e, t, i.children, n)), + (t.memoizedState = null), + n)) + ) + } + + function $l(e, t, n, r) { + var i = e.mode, + o = e.child + return ( + (t = {mode: 'hidden', children: t}), + 0 == (2 & i) && null !== o + ? ((o.childLanes = 0), (o.pendingProps = t)) + : (o = Dc(t, i, 0, null)), + (n = Rc(n, i, r, null)), + (o.return = e), + (n.return = e), + (o.sibling = n), + (e.child = o), + n + ) + } + + function Kl(e, t) { + e.lanes |= t + var n = e.alternate + null !== n && (n.lanes |= t), aa(e.return, t) + } + + function Ql(e, t, n, r, i, o) { + var a = e.memoizedState + null === a + ? (e.memoizedState = { + isBackwards: t, + rendering: null, + renderingStartTime: 0, + last: r, + tail: n, + tailMode: i, + lastEffect: o, + }) + : ((a.isBackwards = t), + (a.rendering = null), + (a.renderingStartTime = 0), + (a.last = r), + (a.tail = n), + (a.tailMode = i), + (a.lastEffect = o)) + } + + function Jl(e, t, n) { + var r = t.pendingProps, + i = r.revealOrder, + o = r.tail + if ((Nl(e, t, r.children, n), 0 != (2 & (r = Ha.current)))) (r = (1 & r) | 2), (t.flags |= 64) + else { + if (null !== e && 0 != (64 & e.flags)) + e: for (e = t.child; null !== e;) { + if (13 === e.tag) null !== e.memoizedState && Kl(e, n) + else if (19 === e.tag) Kl(e, n) + else if (null !== e.child) { + e = (e.child.return = e).child + continue + } + if (e === t) break + for (; null === e.sibling;) { + if (null === e.return || e.return === t) break e + e = e.return + } + ;(e.sibling.return = e.return), (e = e.sibling) + } + r &= 1 + } + if ((po(Ha, r), 0 == (2 & t.mode))) t.memoizedState = null + else + switch (i) { + case 'forwards': + for (n = t.child, i = null; null !== n;) + null !== (e = n.alternate) && null === Fa(e) && (i = n), (n = n.sibling) + null === (n = i) + ? ((i = t.child), (t.child = null)) + : ((i = n.sibling), (n.sibling = null)), + Ql(t, !1, i, n, o, t.lastEffect) + break + case 'backwards': + for (i = t.child, t.child = n = null; null !== i;) { + if (null !== (e = i.alternate) && null === Fa(e)) { + t.child = i + break + } + ;(e = i.sibling), (i.sibling = n), (n = i), (i = e) + } + Ql(t, !0, n, null, o, t.lastEffect) + break + case 'together': + Ql(t, !1, null, null, void 0, t.lastEffect) + break + default: + t.memoizedState = null + } + return t.child + } + + function es(e, t, n) { + if ((null !== e && (t.dependencies = e.dependencies), (Ms |= t.lanes), 0 == (n & t.childLanes))) + return null + if (null !== e && t.child !== e.child) throw Error(ke(153)) + if (null !== t.child) { + for (n = Ic((e = t.child), e.pendingProps), (t.child = n).return = t; null !== e.sibling;) + (e = e.sibling), ((n = n.sibling = Ic(e, e.pendingProps)).return = t) + n.sibling = null + } + return t.child + } + + function ts(e, t) { + if (!Wa) + switch (e.tailMode) { + case 'hidden': + t = e.tail + for (var n = null; null !== t;) null !== t.alternate && (n = t), (t = t.sibling) + null === n ? (e.tail = null) : (n.sibling = null) + break + case 'collapsed': + n = e.tail + for (var r = null; null !== n;) null !== n.alternate && (r = n), (n = n.sibling) + null === r + ? t || null === e.tail + ? (e.tail = null) + : (e.tail.sibling = null) + : (r.sibling = null) + } + } + + function ns(e, t) { + try { + for ( + var n = '', r = t; + (n += (function (e) { + switch (e.tag) { + case 5: + return st(e.type) + case 16: + return st('Lazy') + case 13: + return st('Suspense') + case 19: + return st('SuspenseList') + case 0: + case 2: + case 15: + return ut(e.type, !1) + case 11: + return ut(e.type.render, !1) + case 22: + return ut(e.type._render, !1) + case 1: + return ut(e.type, !0) + default: + return '' + } + })(r)), + (r = r.return); + ) ; + var i = n + } catch (o) { + i = '\nError generating stack: ' + o.message + '\n' + o.stack + } + return {value: e, source: t, stack: i} + } + + function rs(e, t) { + try { + console.error(t.value) + } catch (n) { + setTimeout(function () { + throw n + }) + } + } + + var is = function (e, t) { + for (var n = t.child; null !== n;) { + if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode) + else if (4 !== n.tag && null !== n.child) { + n = (n.child.return = n).child + continue + } + if (n === t) break + for (; null === n.sibling;) { + if (null === n.return || n.return === t) return + n = n.return + } + ;(n.sibling.return = n.return), (n = n.sibling) + } + }, + os = function (e, t, n, r) { + var i = e.memoizedProps + if (i !== r) { + ;(e = t.stateNode), Ra(ja.current) + var o, + a = null + switch (n) { + case 'input': + ;(i = vt(e, i)), (r = vt(e, r)), (a = []) + break + case 'option': + ;(i = Et(e, i)), (r = Et(e, r)), (a = []) + break + case 'select': + ;(i = Oe({}, i, {value: void 0})), (r = Oe({}, r, {value: void 0})), (a = []) + break + case 'textarea': + ;(i = St(e, i)), (r = St(e, r)), (a = []) + break + default: + 'function' != typeof i.onClick && 'function' == typeof r.onClick && (e.onclick = Wi) + } + for (c in (Bt(n, r), (n = null), i)) + if (!r.hasOwnProperty(c) && i.hasOwnProperty(c) && null != i[c]) + if ('style' === c) { + var l = i[c] + for (o in l) l.hasOwnProperty(o) && ((n = n || {})[o] = '') + } else + 'dangerouslySetInnerHTML' !== c && + 'children' !== c && + 'suppressContentEditableWarning' !== c && + 'suppressHydrationWarning' !== c && + 'autoFocus' !== c && + (_e.hasOwnProperty(c) ? (a = a || []) : (a = a || []).push(c, null)) + for (c in r) { + var s = r[c] + l = null != i ? i[c] : void 0 + if (r.hasOwnProperty(c) && s !== l && (null != s || null != l)) + if ('style' === c) + if (l) { + for (o in l) + !l.hasOwnProperty(o) || (s && s.hasOwnProperty(o)) || ((n = n || {})[o] = '') + for (o in s) s.hasOwnProperty(o) && l[o] !== s[o] && ((n = n || {})[o] = s[o]) + } else n || (a = a || []).push(c, n), (n = s) + else + 'dangerouslySetInnerHTML' === c + ? ((s = s ? s.__html : void 0), + (l = l ? l.__html : void 0), + null != s && l !== s && (a = a || []).push(c, s)) + : 'children' === c + ? ('string' != typeof s && 'number' != typeof s) || (a = a || []).push(c, '' + s) + : 'suppressContentEditableWarning' !== c && + 'suppressHydrationWarning' !== c && + (_e.hasOwnProperty(c) + ? (null != s && 'onScroll' === c && Mi('scroll', e), a || l === s || (a = [])) + : 'object' == typeof s && null !== s && s.$$typeof === nt + ? s.toString() + : (a = a || []).push(c, s)) + } + n && (a = a || []).push('style', n) + var c = a + ;(t.updateQueue = c) && (t.flags |= 4) + } + }, + as = function (e, t, n, r) { + n !== r && (t.flags |= 4) + }, + ls = 'function' == typeof WeakMap ? WeakMap : Map + + function ss(e, t, n) { + ;((n = fa(-1, n)).tag = 3), (n.payload = {element: null}) + var r = t.value + return ( + (n.callback = function () { + Vs || ((Vs = !0), (Ws = r)), rs(0, t) + }), + n + ) + } + + function cs(e, t, n) { + ;(n = fa(-1, n)).tag = 3 + var r, + i = e.type.getDerivedStateFromError + return ( + null !== + (e = + ('function' == typeof i && + ((r = t.value), + (n.payload = function () { + return rs(0, t), i(r) + })), + e.stateNode)) && + 'function' == typeof e.componentDidCatch && + (n.callback = function () { + 'function' != typeof i && (null === Gs ? (Gs = new Set([this])) : Gs.add(this), rs(0, t)) + var e = t.stack + this.componentDidCatch(t.value, { + componentStack: null !== e ? e : '', + }) + }), + n + ) + } + + var us = 'function' == typeof WeakSet ? WeakSet : Set + + function ds(e) { + var t = e.ref + if (null !== t) + if ('function' == typeof t) + try { + t(null) + } catch (n) { + Pc(e, n) + } + else t.current = null + } + + function fs(e, t, n) { + switch (n.tag) { + case 0: + case 11: + case 15: + case 22: + if (null !== (t = null !== (t = n.updateQueue) ? t.lastEffect : null)) { + e = t = t.next + do { + } while ( + (3 == (3 & e.tag) && ((i = e.create), (e.destroy = i())), (e = e.next) !== t) + ) + } + if (null !== (t = null !== (t = n.updateQueue) ? t.lastEffect : null)) { + e = t = t.next + do { + var r = e, + i = r.next + 0 != (4 & (r = r.tag)) && + 0 != (1 & r) && + (Oc(n, e), + (r = n), + (o = e), + Ys.push(o, r), + Zs || + ((Zs = !0), + qo(97, function () { + return Ec(), null + }))), + (e = i) + } while (e !== t) + } + return + case 1: + return ( + (e = n.stateNode), + 4 & n.flags && + (null === t + ? e.componentDidMount() + : ((i = n.elementType === n.type ? t.memoizedProps : Jo(n.type, t.memoizedProps)), + e.componentDidUpdate(i, t.memoizedState, e.__reactInternalSnapshotBeforeUpdate))), + void (null !== (t = n.updateQueue) && ma(0, t, e)) + ) + case 3: + if (null !== (t = n.updateQueue)) { + if ((e = null) !== n.child) + switch (n.child.tag) { + case 5: + case 1: + e = n.child.stateNode + } + ma(0, t, e) + } + return + case 5: + return ( + (e = n.stateNode), + void (null === t && 4 & n.flags && Ui(n.type, n.memoizedProps) && e.focus()) + ) + case 6: + case 4: + case 12: + case 19: + case 17: + case 20: + case 21: + case 23: + case 24: + return + case 13: + return void ( + null === n.memoizedState && + null !== (n = n.alternate) && + null !== (n = n.memoizedState) && + null !== (n = n.dehydrated) && + An(n) + ) + } + var o + throw Error(ke(163)) + } + + function hs(e, t) { + for (var n = e; ;) { + if (5 === n.tag) { + var r, + i = n.stateNode + t + ? 'function' == typeof (i = i.style).setProperty + ? i.setProperty('display', 'none', 'important') + : (i.display = 'none') + : ((i = n.stateNode), + (r = + null != (r = n.memoizedProps.style) && r.hasOwnProperty('display') + ? r.display + : null), + (i.style.display = Nt('display', r))) + } else if (6 === n.tag) n.stateNode.nodeValue = t ? '' : n.memoizedProps + else if ( + ((23 !== n.tag && 24 !== n.tag) || null === n.memoizedState || n === e) && + null !== n.child + ) { + n = (n.child.return = n).child + continue + } + if (n === e) break + for (; null === n.sibling;) { + if (null === n.return || n.return === e) return + n = n.return + } + ;(n.sibling.return = n.return), (n = n.sibling) + } + } + + function ps(e, t) { + if (Po && 'function' == typeof Po.onCommitFiberUnmount) + try { + Po.onCommitFiberUnmount(ko, t) + } catch (o) { + } + switch (t.tag) { + case 0: + case 11: + case 14: + case 15: + case 22: + if (null !== (e = t.updateQueue) && null !== (e = e.lastEffect)) { + var n = (e = e.next) + do { + var r = (i = n).destroy, + i = i.tag + if (void 0 !== r) + if (0 != (4 & i)) Oc(t, n) + else { + i = t + try { + r() + } catch (o) { + Pc(i, o) + } + } + } while ((n = n.next) !== e) + } + break + case 1: + if ((ds(t), 'function' == typeof (e = t.stateNode).componentWillUnmount)) + try { + ;(e.props = t.memoizedProps), (e.state = t.memoizedState), e.componentWillUnmount() + } catch (o) { + Pc(t, o) + } + break + case 5: + ds(t) + break + case 4: + ys(e, t) + } + } + + function gs(e) { + ;(e.alternate = null), + (e.child = null), + (e.dependencies = null), + (e.firstEffect = null), + (e.lastEffect = null), + (e.memoizedProps = null), + (e.memoizedState = null), + (e.pendingProps = null), + (e.return = null), + (e.updateQueue = null) + } + + function ms(e) { + return 5 === e.tag || 3 === e.tag || 4 === e.tag + } + + function vs(e) { + e: { + for (var t = e.return; null !== t;) { + if (ms(t)) break e + t = t.return + } + throw Error(ke(160)) + } + var n = t + t = n.stateNode + switch (n.tag) { + case 5: + var r = !1 + break + case 3: + case 4: + ;(t = t.containerInfo), (r = !0) + break + default: + throw Error(ke(161)) + } + 16 & n.flags && (Dt(t, ''), (n.flags &= -17)) + e: t: for (n = e; ;) { + for (; null === n.sibling;) { + if (null === n.return || ms(n.return)) { + n = null + break e + } + n = n.return + } + for ( + n.sibling.return = n.return, n = n.sibling; + 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; + ) { + if (2 & n.flags) continue t + if (null === n.child || 4 === n.tag) continue t + n = (n.child.return = n).child + } + if (!(2 & n.flags)) { + n = n.stateNode + break e + } + } + ;(r + ? function e(t, n, r) { + var i = t.tag, + o = 5 === i || 6 === i + if (o) + (t = o ? t.stateNode : t.stateNode.instance), + n + ? (8 === r.nodeType ? r.parentNode : r).insertBefore(t, n) + : (8 === r.nodeType + ? (n = r.parentNode).insertBefore(t, r) + : (n = r).appendChild(t), + null == (r = r._reactRootContainer) && null === n.onclick && (n.onclick = Wi)) + else if (4 !== i && null !== (t = t.child)) + for (e(t, n, r), t = t.sibling; null !== t;) e(t, n, r), (t = t.sibling) + } + : function e(t, n, r) { + var i = t.tag, + o = 5 === i || 6 === i + if (o) + (t = o ? t.stateNode : t.stateNode.instance), + n ? r.insertBefore(t, n) : r.appendChild(t) + else if (4 !== i && null !== (t = t.child)) + for (e(t, n, r), t = t.sibling; null !== t;) e(t, n, r), (t = t.sibling) + })(e, n, t) + } + + function ys(e, t) { + for (var n, r, i = t, o = !1; ;) { + if (!o) { + o = i.return + e: for (; ;) { + if (null === o) throw Error(ke(160)) + switch (((n = o.stateNode), o.tag)) { + case 5: + r = !1 + break e + case 3: + case 4: + ;(n = n.containerInfo), (r = !0) + break e + } + o = o.return + } + o = !0 + } + if (5 === i.tag || 6 === i.tag) { + e: for (var a = e, l = i, s = l; ;) + if ((ps(a, s), null !== s.child && 4 !== s.tag)) (s.child.return = s), (s = s.child) + else { + if (s === l) break + for (; null === s.sibling;) { + if (null === s.return || s.return === l) break e + s = s.return + } + ;(s.sibling.return = s.return), (s = s.sibling) + } + r + ? ((a = n), (l = i.stateNode), (8 === a.nodeType ? a.parentNode : a).removeChild(l)) + : n.removeChild(i.stateNode) + } else if (4 === i.tag) { + if (null !== i.child) { + ;(n = i.stateNode.containerInfo), (r = !0), (i = (i.child.return = i).child) + continue + } + } else if ((ps(e, i), null !== i.child)) { + i = (i.child.return = i).child + continue + } + if (i === t) break + for (; null === i.sibling;) { + if (null === i.return || i.return === t) return + 4 === (i = i.return).tag && (o = !1) + } + ;(i.sibling.return = i.return), (i = i.sibling) + } + } + + function bs(e, t) { + switch (t.tag) { + case 0: + case 11: + case 14: + case 15: + case 22: + var n = t.updateQueue + if (null !== (n = null !== n ? n.lastEffect : null)) + for ( + var r = (n = n.next); + 3 == (3 & r.tag) && ((e = r.destroy), (r.destroy = void 0) !== e && e()), + (r = r.next) !== n; + ) ; + return + case 1: + case 12: + case 17: + return + case 5: + if (null != (n = t.stateNode)) { + r = t.memoizedProps + var i = null !== e ? e.memoizedProps : r, + o = ((e = t.type), t.updateQueue) + if ((t.updateQueue = null) !== o) { + for ( + n[to] = r, + 'input' === e && 'radio' === r.type && null != r.name && bt(n, r), + Vt(e, i), + t = Vt(e, r), + i = 0; + i < o.length; + i += 2 + ) { + var a = o[i], + l = o[i + 1] + 'style' === a + ? Ht(n, l) + : 'dangerouslySetInnerHTML' === a + ? Rt(n, l) + : 'children' === a + ? Dt(n, l) + : Fe(n, a, l, t) + } + switch (e) { + case 'input': + wt(n, r) + break + case 'textarea': + Pt(n, r) + break + case 'select': + ;(e = n._wrapperState.wasMultiple), + (n._wrapperState.wasMultiple = !!r.multiple), + null != (o = r.value) + ? Ot(n, !!r.multiple, o, !1) + : e !== !!r.multiple && + (null != r.defaultValue + ? Ot(n, !!r.multiple, r.defaultValue, !0) + : Ot(n, !!r.multiple, r.multiple ? [] : '', !1)) + } + } + } + return + case 6: + if (null === t.stateNode) throw Error(ke(162)) + return void (t.stateNode.nodeValue = t.memoizedProps) + case 3: + return void ((n = t.stateNode).hydrate && ((n.hydrate = !1), An(n.containerInfo))) + case 13: + return null !== t.memoizedState && ((zs = Zo()), hs(t.child, !0)), void ws(t) + case 19: + return void ws(t) + case 23: + case 24: + return void hs(t, null !== t.memoizedState) + } + throw Error(ke(163)) + } + + function ws(e) { + var t, + n = e.updateQueue + null !== n && + ((e.updateQueue = null) === (t = e.stateNode) && (t = e.stateNode = new us()), + n.forEach(function (n) { + var r = function (e, t) { + var n = e.stateNode + null !== n && n.delete(t), + (t = 0) === t && + (0 == (2 & (t = e.mode)) + ? (t = 1) + : 0 == (4 & t) + ? (t = 99 === Uo() ? 1 : 2) + : 0 === (t = er(62914560 & ~(ec = 0 === ec ? Is : ec))) && (t = 4194304)), + (n = ic()), + null !== (e = lc(e, t)) && (nr(e, t, n), sc(e, n)) + }.bind(null, e, n) + t.has(n) || (t.add(n), n.then(r, r)) + })) + } + + var Cs = Math.ceil, + xs = Ve.ReactCurrentDispatcher, + Es = Ve.ReactCurrentOwner, + Os = 0, + Ss = null, + ks = null, + Ps = 0, + _s = 0, + Ls = fo(0), + Ts = 0, + js = null, + Is = 0, + Ms = 0, + Rs = 0, + Ds = 0, + As = null, + zs = 0, + Ns = 1 / 0 + + function Hs() { + Ns = Zo() + 500 + } + + var Fs, + Bs = null, + Vs = !1, + Ws = null, + Gs = null, + Zs = !1, + Us = null, + Xs = 90, + Ys = [], + qs = [], + $s = null, + Ks = 0, + Qs = null, + Js = -1, + ec = 0, + tc = 0, + nc = null, + rc = !1 + + function ic() { + return 0 != (48 & Os) ? Zo() : -1 !== Js ? Js : (Js = Zo()) + } + + function oc(e) { + return 0 == (2 & (e = e.mode)) + ? 1 + : 0 == (4 & e) + ? 99 === Uo() + ? 1 + : 2 + : (0 === ec && (ec = Is), + 0 !== Qo.transition + ? (0 !== tc && (tc = null !== As ? As.pendingLanes : 0), + (e = ec), + (t = 4186112 & ~tc), + 0 != (t &= -t) || (0 == (t = (e = 4186112 & ~e) & -e) && (t = 8192)), + t) + : ((e = Uo()), + Jn( + 0 != (4 & Os) && 98 === e + ? 12 + : (e = (function (e) { + switch (e) { + case 99: + return 15 + case 98: + return 10 + case 97: + case 96: + return 8 + case 95: + return 2 + default: + return 0 + } + })(e)), + ec, + ))) + var t + } + + function ac(e, t, n) { + if (50 < Ks) throw ((Ks = 0), (Qs = null), Error(ke(185))) + var r + null !== (e = lc(e, t)) && + (nr(e, t, n), + e === Ss && ((Rs |= t), 4 === Ts && uc(e, Ps)), + (r = Uo()), + 1 === t + ? 0 != (8 & Os) && 0 == (48 & Os) + ? dc(e) + : (sc(e, n), 0 === Os && (Hs(), $o())) + : (0 == (4 & Os) || + (98 !== r && 99 !== r) || + (null === $s ? ($s = new Set([e])) : $s.add(e)), + sc(e, n)), + (As = e)) + } + + function lc(e, t) { + e.lanes |= t + var n = e.alternate + for (null !== n && (n.lanes |= t), e = (n = e).return; null !== e;) + (e.childLanes |= t), null !== (n = e.alternate) && (n.childLanes |= t), (e = (n = e).return) + return 3 === n.tag ? n.stateNode : null + } + + function sc(e, t) { + for ( + var n = e.callbackNode, + r = e.suspendedLanes, + i = e.pingedLanes, + o = e.expirationTimes, + a = e.pendingLanes; + 0 < a; + ) { + var l, + s = 31 - rr(a), + c = 1 << s, + u = o[s] + ;-1 === u + ? (0 != (c & r) && 0 == (c & i)) || + ((u = t), $n(c), (l = qn), (o[s] = 10 <= l ? u + 250 : 6 <= l ? u + 5e3 : -1)) + : u <= t && (e.expiredLanes |= c), + (a &= ~c) + } + if (((r = Kn(e, e === Ss ? Ps : 0)), (t = qn), 0 === r)) + null !== n && (n !== Ho && To(n), (e.callbackNode = null), (e.callbackPriority = 0)) + else { + if (null !== n) { + if (e.callbackPriority === t) return + n !== Ho && To(n) + } + ;(n = + 15 === t + ? ((n = dc.bind(null, e)), null === Bo ? ((Bo = [n]), (Vo = Lo(Ro, Ko))) : Bo.push(n), Ho) + : 14 === t + ? qo(99, dc.bind(null, e)) + : qo( + (n = (function (e) { + switch (e) { + case 15: + case 14: + return 99 + case 13: + case 12: + case 11: + case 10: + return 98 + case 9: + case 8: + case 7: + case 6: + case 4: + case 5: + return 97 + case 3: + case 2: + case 1: + return 95 + case 0: + return 90 + default: + throw Error(ke(358, e)) + } + })(t)), + cc.bind(null, e), + )), + (e.callbackPriority = t), + (e.callbackNode = n) + } + } + + function cc(e) { + if (((Js = -1), (tc = ec = 0) != (48 & Os))) throw Error(ke(327)) + var t = e.callbackNode + if (Ec() && e.callbackNode !== t) return null + var n = Kn(e, e === Ss ? Ps : 0) + if (0 === n) return null + var r = n, + i = Os, + o = ((Os |= 16), yc()) + for ((Ss === e && Ps === r) || (Hs(), mc(e, r)); ;) + try { + for (; null !== ks && !jo();) wc(ks) + break + } catch (l) { + vc(e, l) + } + if ( + (ia(), + (xs.current = o), + (Os = i), + (r = null !== ks ? 0 : ((Ss = null), (Ps = 0), Ts)), + 0 != (Is & Rs)) + ) + mc(e, 0) + else if (0 !== r) { + if ( + (2 === r && + ((Os |= 64), + e.hydrate && ((e.hydrate = !1), $i(e.containerInfo)), + 0 !== (n = Qn(e)) && (r = bc(e, n))), + 1 === r) + ) + throw ((t = js), mc(e, 0), uc(e, n), sc(e, Zo()), t) + switch (((e.finishedWork = e.current.alternate), (e.finishedLanes = n), r)) { + case 0: + case 1: + throw Error(ke(345)) + case 2: + case 5: + xc(e) + break + case 3: + if ((uc(e, n), (62914560 & n) === n && 10 < (r = zs + 500 - Zo()))) { + if (0 !== Kn(e, 0)) break + if (((i = e.suspendedLanes) & n) !== n) { + ic(), (e.pingedLanes |= e.suspendedLanes & i) + break + } + e.timeoutHandle = Yi(xc.bind(null, e), r) + break + } + xc(e) + break + case 4: + if ((uc(e, n), (4186112 & n) === n)) break + for (r = e.eventTimes, i = -1; 0 < n;) { + var a = 31 - rr(n) + o = 1 << a + i < (a = r[a]) && (i = a), (n &= ~o) + } + if ( + ((n = i), + 10 < + (n = + ((n = Zo() - n) < 120 + ? 120 + : n < 480 + ? 480 + : n < 1080 + ? 1080 + : n < 1920 + ? 1920 + : n < 3e3 + ? 3e3 + : n < 4320 + ? 4320 + : 1960 * Cs(n / 1960)) - n)) + ) { + e.timeoutHandle = Yi(xc.bind(null, e), n) + break + } + xc(e) + break + default: + throw Error(ke(329)) + } + } + return sc(e, Zo()), e.callbackNode === t ? cc.bind(null, e) : null + } + + function uc(e, t) { + for ( + t = t & ~Ds & ~Rs, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; + 0 < t; + ) { + var n = 31 - rr(t), + r = 1 << n + ;(e[n] = -1), (t &= ~r) + } + } + + function dc(e) { + if (0 != (48 & Os)) throw Error(ke(327)) + var t, n + if ( + (Ec(), + e === Ss && 0 != (e.expiredLanes & Ps) + ? ((n = bc(e, (t = Ps))), 0 != (Is & Rs) && (n = bc(e, (t = Kn(e, t))))) + : (n = bc(e, (t = Kn(e, 0)))), + 0 !== e.tag && + 2 === n && + ((Os |= 64), + e.hydrate && ((e.hydrate = !1), $i(e.containerInfo)), + 0 !== (t = Qn(e)) && (n = bc(e, t))), + 1 === n) + ) + throw ((n = js), mc(e, 0), uc(e, t), sc(e, Zo()), n) + return (e.finishedWork = e.current.alternate), (e.finishedLanes = t), xc(e), sc(e, Zo()), null + } + + function fc(e, t) { + var n = Os + Os |= 1 + try { + return e(t) + } finally { + 0 === (Os = n) && (Hs(), $o()) + } + } + + function hc(e, t) { + var n = Os + Os = (-2 & Os) | 8 + try { + e(t) + } finally { + 0 === (Os = n) && (Hs(), $o()) + } + } + + function pc(e, t) { + po(Ls, _s), (_s |= t), (Is |= t) + } + + function gc() { + ;(_s = Ls.current), ho(Ls) + } + + function mc(e, t) { + ;(e.finishedWork = null), (e.finishedLanes = 0) + var n = e.timeoutHandle + if ((-1 !== n && ((e.timeoutHandle = -1), qi(n)), null !== ks)) + for (n = ks.return; null !== n;) { + var r = n + switch (r.tag) { + case 1: + null != (r = r.type.childContextTypes) && Co() + break + case 3: + Aa(), ho(vo), ho(mo), Ka() + break + case 5: + Na(r) + break + case 4: + Aa() + break + case 13: + case 19: + ho(Ha) + break + case 10: + oa(r) + break + case 23: + case 24: + gc() + } + n = n.return + } + ;(ks = Ic((Ss = e).current, null)), (Ps = _s = Is = t), (js = null), (Ds = Rs = Ms = Ts = 0) + } + + function vc(e, t) { + for (; ;) { + var n = ks + try { + if ((ia(), (Qa.current = Il), il)) { + for (var r = tl.memoizedState; null !== r;) { + var i = r.queue + null !== i && (i.pending = null), (r = r.next) + } + il = !1 + } + if ( + ((el = 0), + (rl = nl = tl = null), + (ol = !1), + (Es.current = null) === n || null === n.return) + ) { + ;(Ts = 1), (js = t), (ks = null) + break + } + e: { + var o = e, + a = n.return, + l = t + if ( + ((t = Ps), + ((b = n).flags |= 2048), + (b.firstEffect = b.lastEffect = null) !== l && + 'object' == typeof l && + 'function' == typeof l.then) + ) { + var s, + c, + u, + d, + f = l, + h = + (0 == (2 & b.mode) && + ((s = b.alternate) + ? ((b.updateQueue = s.updateQueue), + (b.memoizedState = s.memoizedState), + (b.lanes = s.lanes)) + : ((b.updateQueue = null), (b.memoizedState = null))), + 0 != (1 & Ha.current)), + p = a + do { + if ( + (d = (d = 13 === p.tag) + ? null !== (c = p.memoizedState) + ? null !== c.dehydrated + : void 0 !== (u = p.memoizedProps).fallback && + (!0 !== u.unstable_avoidThisFallback || !h) + : d) + ) { + var g, + m, + v = p.updateQueue + if ( + (null === v ? ((g = new Set()).add(f), (p.updateQueue = g)) : v.add(f), + 0 == (2 & p.mode)) + ) { + ;(p.flags |= 64), + (b.flags |= 16384), + (b.flags &= -2981), + 1 === b.tag && + (null === b.alternate ? (b.tag = 17) : (((m = fa(-1, 1)).tag = 2), ha(b, m))), + (b.lanes |= 1) + break e + } + l = void 0 + var y, + b = t, + w = o.pingCache + null === w + ? ((w = o.pingCache = new ls()), (l = new Set()), w.set(f, l)) + : void 0 === (l = w.get(f)) && ((l = new Set()), w.set(f, l)), + l.has(b) || (l.add(b), (y = _c.bind(null, o, f, b)), f.then(y, y)), + (p.flags |= 4096), + (p.lanes = t) + break e + } + } while (null !== (p = p.return)) + l = Error( + (dt(b.type) || 'A React component') + + ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.', + ) + } + 5 !== Ts && (Ts = 2), (l = ns(l, b)), (p = a) + do { + switch (p.tag) { + case 3: + ;(o = l), (p.flags |= 4096), (t &= -t), (p.lanes |= t), pa(p, ss(0, o, t)) + break e + case 1: + o = l + var C = p.type, + x = p.stateNode + if ( + 0 == (64 & p.flags) && + ('function' == typeof C.getDerivedStateFromError || + (null !== x && + 'function' == typeof x.componentDidCatch && + (null === Gs || !Gs.has(x)))) + ) { + ;(p.flags |= 4096), (t &= -t), (p.lanes |= t), pa(p, cs(p, o, t)) + break e + } + } + } while (null !== (p = p.return)) + } + Cc(n) + } catch (E) { + ;(t = E), ks === n && null !== n && (ks = n = n.return) + continue + } + break + } + } + + function yc() { + var e = xs.current + return (xs.current = Il), null === e ? Il : e + } + + function bc(e, t) { + var n = Os, + r = ((Os |= 16), yc()) + for ((Ss === e && Ps === t) || mc(e, t); ;) + try { + for (; null !== ks;) wc(ks) + break + } catch (i) { + vc(e, i) + } + if ((ia(), (Os = n), (xs.current = r), null !== ks)) throw Error(ke(261)) + return (Ss = null), (Ps = 0), Ts + } + + function wc(e) { + var t = Fs(e.alternate, e, _s) + ;(e.memoizedProps = e.pendingProps), null === t ? Cc(e) : (ks = t), (Es.current = null) + } + + function Cc(e) { + var t = e + do { + var n = t.alternate + if (((e = t.return), 0 == (2048 & t.flags))) { + if ( + null !== + (n = (function (e, t, n) { + var r = t.pendingProps + switch (t.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return null + case 1: + case 17: + return wo(t.type) && Co(), null + case 3: + return ( + Aa(), + ho(vo), + ho(mo), + Ka(), + (r = t.stateNode).pendingContext && + ((r.context = r.pendingContext), (r.pendingContext = null)), + (null !== e && null !== e.child) || + (Ya(t) ? (t.flags |= 4) : r.hydrate || (t.flags |= 256)), + null + ) + case 5: + Na(t) + var i = Ra(Ma.current) + if (((n = t.type), null !== e && null != t.stateNode)) + os(e, t, n, r), e.ref !== t.ref && (t.flags |= 128) + else { + if (!r) { + if (null === t.stateNode) throw Error(ke(166)) + return null + } + if (((e = Ra(ja.current)), Ya(t))) { + ;(r = t.stateNode), (n = t.type) + var o, + a = t.memoizedProps + switch (((r[eo] = t), (r[to] = a), n)) { + case 'dialog': + Mi('cancel', r), Mi('close', r) + break + case 'iframe': + case 'object': + case 'embed': + Mi('load', r) + break + case 'video': + case 'audio': + for (e = 0; e < Li.length; e++) Mi(Li[e], r) + break + case 'source': + Mi('error', r) + break + case 'img': + case 'image': + case 'link': + Mi('error', r), Mi('load', r) + break + case 'details': + Mi('toggle', r) + break + case 'input': + yt(r, a), Mi('invalid', r) + break + case 'select': + ;(r._wrapperState = {wasMultiple: !!a.multiple}), Mi('invalid', r) + break + case 'textarea': + kt(r, a), Mi('invalid', r) + } + for (o in (Bt(n, a), (e = null), a)) + a.hasOwnProperty(o) && + ((i = a[o]), + 'children' === o + ? 'string' == typeof i + ? r.textContent !== i && (e = ['children', i]) + : 'number' == typeof i && + r.textContent !== '' + i && + (e = ['children', '' + i]) + : _e.hasOwnProperty(o) && + null != i && + 'onScroll' === o && + Mi('scroll', r)) + switch (n) { + case 'input': + pt(r), Ct(r, a, !0) + break + case 'textarea': + pt(r), _t(r) + break + case 'select': + case 'option': + break + default: + 'function' == typeof a.onClick && (r.onclick = Wi) + } + ;(r = e), null !== (t.updateQueue = r) && (t.flags |= 4) + } else { + switch ( + ((o = 9 === i.nodeType ? i : i.ownerDocument), + (e = e === Lt ? Tt(n) : e) === Lt + ? 'script' === n + ? (((e = o.createElement('div')).innerHTML = ''), + (e = e.removeChild(e.firstChild))) + : 'string' == typeof r.is + ? (e = o.createElement(n, {is: r.is})) + : ((e = o.createElement(n)), + 'select' === n && + ((o = e), + r.multiple ? (o.multiple = !0) : r.size && (o.size = r.size))) + : (e = o.createElementNS(e, n)), + (e[eo] = t), + (e[to] = r), + is(e, t), + (t.stateNode = e), + (o = Vt(n, r)), + n) + ) { + case 'dialog': + Mi('cancel', e), Mi('close', e), (i = r) + break + case 'iframe': + case 'object': + case 'embed': + Mi('load', e), (i = r) + break + case 'video': + case 'audio': + for (i = 0; i < Li.length; i++) Mi(Li[i], e) + i = r + break + case 'source': + Mi('error', e), (i = r) + break + case 'img': + case 'image': + case 'link': + Mi('error', e), Mi('load', e), (i = r) + break + case 'details': + Mi('toggle', e), (i = r) + break + case 'input': + yt(e, r), (i = vt(e, r)), Mi('invalid', e) + break + case 'option': + i = Et(e, r) + break + case 'select': + ;(e._wrapperState = {wasMultiple: !!r.multiple}), + (i = Oe({}, r, {value: void 0})), + Mi('invalid', e) + break + case 'textarea': + kt(e, r), (i = St(e, r)), Mi('invalid', e) + break + default: + i = r + } + Bt(n, i) + var l, + s = i + for (a in s) + s.hasOwnProperty(a) && + ((l = s[a]), + 'style' === a + ? Ht(e, l) + : 'dangerouslySetInnerHTML' === a + ? null != (l = l ? l.__html : void 0) && Rt(e, l) + : 'children' === a + ? 'string' == typeof l + ? ('textarea' === n && '' === l) || Dt(e, l) + : 'number' == typeof l && Dt(e, '' + l) + : 'suppressContentEditableWarning' !== a && + 'suppressHydrationWarning' !== a && + 'autoFocus' !== a && + (_e.hasOwnProperty(a) + ? null != l && 'onScroll' === a && Mi('scroll', e) + : null != l && Fe(e, a, l, o))) + switch (n) { + case 'input': + pt(e), Ct(e, r, !1) + break + case 'textarea': + pt(e), _t(e) + break + case 'option': + null != r.value && e.setAttribute('value', '' + ft(r.value)) + break + case 'select': + ;(e.multiple = !!r.multiple), + null != (a = r.value) + ? Ot(e, !!r.multiple, a, !1) + : null != r.defaultValue && Ot(e, !!r.multiple, r.defaultValue, !0) + break + default: + 'function' == typeof i.onClick && (e.onclick = Wi) + } + Ui(n, r) && (t.flags |= 4) + } + null !== t.ref && (t.flags |= 128) + } + return null + case 6: + if (e && null != t.stateNode) as(0, t, e.memoizedProps, r) + else { + if ('string' != typeof r && null === t.stateNode) throw Error(ke(166)) + ; + (n = Ra(Ma.current)), + Ra(ja.current), + Ya(t) + ? ((r = t.stateNode), + (n = t.memoizedProps), + (r[eo] = t), + r.nodeValue !== n && (t.flags |= 4)) + : (((r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[eo] = + t).stateNode = r) + } + return null + case 13: + return ( + ho(Ha), + (r = t.memoizedState), + 0 != (64 & t.flags) + ? ((t.lanes = n), t) + : ((r = null !== r), + (n = !1), + null === e + ? void 0 !== t.memoizedProps.fallback && Ya(t) + : (n = null !== e.memoizedState), + r && + !n && + 0 != (2 & t.mode) && + ((null === e && !0 !== t.memoizedProps.unstable_avoidThisFallback) || + 0 != (1 & Ha.current) + ? 0 === Ts && (Ts = 3) + : ((0 !== Ts && 3 !== Ts) || (Ts = 4), + null === Ss || + (0 == (134217727 & Ms) && 0 == (134217727 & Rs)) || + uc(Ss, Ps))), + (r || n) && (t.flags |= 4), + null) + ) + case 4: + return Aa(), null === e && Di(t.stateNode.containerInfo), null + case 10: + return oa(t), null + case 19: + if ((ho(Ha), null === (r = t.memoizedState))) return null + if (((a = 0 != (64 & t.flags)), null === (o = r.rendering))) + if (a) ts(r, !1) + else { + if (0 !== Ts || (null !== e && 0 != (64 & e.flags))) + for (e = t.child; null !== e;) { + if (null !== (o = Fa(e))) { + for ( + t.flags |= 64, + ts(r, !1), + null !== (a = o.updateQueue) && ((t.updateQueue = a), (t.flags |= 4)), + null === r.lastEffect && (t.firstEffect = null), + t.lastEffect = r.lastEffect, + r = n, + n = t.child; + null !== n; + ) + (e = r), + ((a = n).flags &= 2), + (a.nextEffect = null), + (a.firstEffect = null), + (a.lastEffect = null) === (o = a.alternate) + ? ((a.childLanes = 0), + (a.lanes = e), + (a.child = null), + (a.memoizedProps = null), + (a.memoizedState = null), + (a.updateQueue = null), + (a.dependencies = null), + (a.stateNode = null)) + : ((a.childLanes = o.childLanes), + (a.lanes = o.lanes), + (a.child = o.child), + (a.memoizedProps = o.memoizedProps), + (a.memoizedState = o.memoizedState), + (a.updateQueue = o.updateQueue), + (a.type = o.type), + (e = o.dependencies), + (a.dependencies = + null === e + ? null + : { + lanes: e.lanes, + firstContext: e.firstContext, + })), + (n = n.sibling) + return po(Ha, (1 & Ha.current) | 2), t.child + } + e = e.sibling + } + null !== r.tail && + Zo() > Ns && + ((t.flags |= 64), ts(r, !(a = !0)), (t.lanes = 33554432)) + } + else { + if (!a) + if (null !== (e = Fa(o))) { + if ( + ((t.flags |= 64), + (a = !0), + null !== (n = e.updateQueue) && ((t.updateQueue = n), (t.flags |= 4)), + ts(r, !0), + null === r.tail && 'hidden' === r.tailMode && !o.alternate && !Wa) + ) + return ( + null !== (t = t.lastEffect = r.lastEffect) && (t.nextEffect = null), null + ) + } else + 2 * Zo() - r.renderingStartTime > Ns && + 1073741824 !== n && + ((t.flags |= 64), ts(r, !(a = !0)), (t.lanes = 33554432)) + r.isBackwards + ? ((o.sibling = t.child), (t.child = o)) + : (null !== (n = r.last) ? (n.sibling = o) : (t.child = o), (r.last = o)) + } + return null !== r.tail + ? ((n = r.tail), + (r.rendering = n), + (r.tail = n.sibling), + (r.lastEffect = t.lastEffect), + (r.renderingStartTime = Zo()), + (n.sibling = null), + (t = Ha.current), + po(Ha, a ? (1 & t) | 2 : 1 & t), + n) + : null + case 23: + case 24: + return ( + gc(), + null !== e && + (null !== e.memoizedState) != (null !== t.memoizedState) && + 'unstable-defer-without-hiding' !== r.mode && + (t.flags |= 4), + null + ) + } + throw Error(ke(156, t.tag)) + })(n, t, _s)) + ) + return void (ks = n) + if ( + (24 !== (n = t).tag && 23 !== n.tag) || + null === n.memoizedState || + 0 != (1073741824 & _s) || + 0 == (4 & n.mode) + ) { + for (var r = 0, i = n.child; null !== i;) (r |= i.lanes | i.childLanes), (i = i.sibling) + n.childLanes = r + } + null !== e && + 0 == (2048 & e.flags) && + (null === e.firstEffect && (e.firstEffect = t.firstEffect), + null !== t.lastEffect && + (null !== e.lastEffect && (e.lastEffect.nextEffect = t.firstEffect), + (e.lastEffect = t.lastEffect)), + 1 < t.flags && + (null !== e.lastEffect ? (e.lastEffect.nextEffect = t) : (e.firstEffect = t), + (e.lastEffect = t))) + } else { + if ( + null !== + (n = (function (e) { + switch (e.tag) { + case 1: + wo(e.type) && Co() + var t = e.flags + return 4096 & t ? ((e.flags = (-4097 & t) | 64), e) : null + case 3: + if ((Aa(), ho(vo), ho(mo), Ka(), 0 != (64 & (t = e.flags)))) throw Error(ke(285)) + return (e.flags = (-4097 & t) | 64), e + case 5: + return Na(e), null + case 13: + return ho(Ha), 4096 & (t = e.flags) ? ((e.flags = (-4097 & t) | 64), e) : null + case 19: + return ho(Ha), null + case 4: + return Aa(), null + case 10: + return oa(e), null + case 23: + case 24: + return gc(), null + default: + return null + } + })(t)) + ) + return (n.flags &= 2047), void (ks = n) + null !== e && ((e.firstEffect = e.lastEffect = null), (e.flags |= 2048)) + } + if (null !== (t = t.sibling)) return void (ks = t) + } while (((ks = t = e), null !== t)) + 0 === Ts && (Ts = 5) + } + + function xc(e) { + var t = Uo() + return ( + Yo( + 99, + function (e, t) { + for (; Ec(), null !== Us;) ; + if (0 != (48 & Os)) throw Error(ke(327)) + var n = e.finishedWork + if (null === n) return null + if (((e.finishedWork = null), (e.finishedLanes = 0), n === e.current)) + throw Error(ke(177)) + e.callbackNode = null + var r = n.lanes | n.childLanes, + i = r, + o = e.pendingLanes & ~i + ;(e.pendingLanes = i), + (e.suspendedLanes = 0), + (e.pingedLanes = 0), + (e.expiredLanes &= i), + (e.mutableReadLanes &= i), + (e.entangledLanes &= i), + (i = e.entanglements) + for (var a, l = e.eventTimes, s = e.expirationTimes; 0 < o;) { + var c = 31 - rr(o), + u = 1 << c + ;(i[c] = 0), (l[c] = -1), (s[c] = -1), (o &= ~u) + } + if ( + (null !== $s && 0 == (24 & r) && $s.has(e) && $s.delete(e), + e === Ss && ((ks = Ss = null), (Ps = 0)), + null !== + (r = + 1 < n.flags + ? null !== n.lastEffect + ? ((n.lastEffect.nextEffect = n), n.firstEffect) + : n + : n.firstEffect)) + ) { + if (((i = Os), (Os |= 32), (Es.current = null), (Gi = sr), wi((l = bi())))) { + if ('selectionStart' in l) s = {start: l.selectionStart, end: l.selectionEnd} + else + e: if ( + ((s = ((s = l.ownerDocument) && s.defaultView) || window), + (u = s.getSelection && s.getSelection()) && 0 !== u.rangeCount) + ) { + ;(s = u.anchorNode), (o = u.anchorOffset), (c = u.focusNode), (u = u.focusOffset) + try { + s.nodeType, c.nodeType + } catch (S) { + s = null + break e + } + var d = 0, + f = -1, + h = -1, + p = 0, + g = 0, + m = l, + v = null + t: for (; ;) { + for ( + ; + m !== s || (0 !== o && 3 !== m.nodeType) || (f = d + o), + m !== c || (0 !== u && 3 !== m.nodeType) || (h = d + u), + 3 === m.nodeType && (d += m.nodeValue.length), + null !== (a = m.firstChild); + ) + (v = m), (m = a) + for (; ;) { + if (m === l) break t + if ( + (v === s && ++p === o && (f = d), + v === c && ++g === u && (h = d), + null !== (a = m.nextSibling)) + ) + break + v = (m = v).parentNode + } + m = a + } + s = -1 === f || -1 === h ? null : {start: f, end: h} + } else s = null + s = s || {start: 0, end: 0} + } else s = null + ; + (nc = null), (rc = sr = !(Zi = {focusedElem: l, selectionRange: s})), (Bs = r) + do { + try { + !(function () { + for (; null !== Bs;) { + var e = Bs.alternate, + t = + (rc || + null === nc || + (0 != (8 & Bs.flags) + ? mn(Bs, nc) && (rc = !0) + : 13 === Bs.tag && + ((r = Bs), + null !== (n = e) && + (null === (n = n.memoizedState) || null !== n.dehydrated) && + null !== (r = r.memoizedState) && + null === r.dehydrated) && + mn(Bs, nc) && + (rc = !0)), + Bs.flags) + 0 != (256 & t) && + (function (e, t) { + switch (t.tag) { + case 0: + case 11: + case 15: + case 22: + case 5: + case 6: + case 4: + case 17: + return + case 1: + var n, r + return ( + 256 & t.flags && + null !== e && + ((n = e.memoizedProps), + (r = e.memoizedState), + (t = (e = t.stateNode).getSnapshotBeforeUpdate( + t.elementType === t.type ? n : Jo(t.type, n), + r, + )), + (e.__reactInternalSnapshotBeforeUpdate = t)) + ) + case 3: + return 256 & t.flags && $i(t.stateNode.containerInfo) + } + throw Error(ke(163)) + })(e, Bs), + 0 == (512 & t) || + Zs || + ((Zs = !0), + qo(97, function () { + return Ec(), null + })), + (Bs = Bs.nextEffect) + } + var n, r + })() + } catch (S) { + if (null === Bs) throw Error(ke(330)) + Pc(Bs, S), (Bs = Bs.nextEffect) + } + } while (null !== Bs) + ; + (nc = null), (Bs = r) + do { + try { + for (l = e; null !== Bs;) { + var y, + b, + w = Bs.flags + switch ( + (16 & w && Dt(Bs.stateNode, ''), + 128 & w && + null !== (y = Bs.alternate) && + null !== (b = y.ref) && + ('function' == typeof b ? b(null) : (b.current = null)), + 1038 & w) + ) { + case 2: + vs(Bs), (Bs.flags &= -3) + break + case 6: + vs(Bs), (Bs.flags &= -3), bs(Bs.alternate, Bs) + break + case 1024: + Bs.flags &= -1025 + break + case 1028: + ;(Bs.flags &= -1025), bs(Bs.alternate, Bs) + break + case 4: + bs(Bs.alternate, Bs) + break + case 8: + ys(l, (s = Bs)) + var C = s.alternate + gs(s), null !== C && gs(C) + } + Bs = Bs.nextEffect + } + } catch (S) { + if (null === Bs) throw Error(ke(330)) + Pc(Bs, S), (Bs = Bs.nextEffect) + } + } while (null !== Bs) + if ( + ((b = Zi), + (y = bi()), + (w = b.focusedElem), + (l = b.selectionRange), + y !== w && + w && + w.ownerDocument && + (function e(t, n) { + return ( + !(!t || !n) && + (t === n || + ((!t || 3 !== t.nodeType) && + (n && 3 === n.nodeType + ? e(t, n.parentNode) + : 'contains' in t + ? t.contains(n) + : !!t.compareDocumentPosition && + !!(16 & t.compareDocumentPosition(n))))) + ) + })(w.ownerDocument.documentElement, w)) + ) { + null !== l && + wi(w) && + ((y = l.start), + void 0 === (b = l.end) && (b = y), + 'selectionStart' in w + ? ((w.selectionStart = y), (w.selectionEnd = Math.min(b, w.value.length))) + : (b = ((y = w.ownerDocument || document) && y.defaultView) || window) + .getSelection && + ((b = b.getSelection()), + (s = w.textContent.length), + (C = Math.min(l.start, s)), + (l = void 0 === l.end ? C : Math.min(l.end, s)), + !b.extend && l < C && ((s = l), (l = C), (C = s)), + (s = yi(w, C)), + (o = yi(w, l)), + s && + o && + (1 !== b.rangeCount || + b.anchorNode !== s.node || + b.anchorOffset !== s.offset || + b.focusNode !== o.node || + b.focusOffset !== o.offset) && + ((y = y.createRange()).setStart(s.node, s.offset), + b.removeAllRanges(), + l < C + ? (b.addRange(y), b.extend(o.node, o.offset)) + : (y.setEnd(o.node, o.offset), b.addRange(y))))), + (y = []) + for (b = w; (b = b.parentNode);) + 1 === b.nodeType && y.push({element: b, left: b.scrollLeft, top: b.scrollTop}) + for ('function' == typeof w.focus && w.focus(), w = 0; w < y.length; w++) + ((b = y[w]).element.scrollLeft = b.left), (b.element.scrollTop = b.top) + } + ;(sr = !!Gi), (Zi = Gi = null), (e.current = n), (Bs = r) + do { + try { + for (w = e; null !== Bs;) { + var x, + E, + O = Bs.flags + 36 & O && fs(w, Bs.alternate, Bs), + 128 & O && + ((y = void 0), + null !== (x = Bs.ref) && + ((E = Bs.stateNode), + Bs.tag, + (y = E), + 'function' == typeof x ? x(y) : (x.current = y))), + (Bs = Bs.nextEffect) + } + } catch (S) { + if (null === Bs) throw Error(ke(330)) + Pc(Bs, S), (Bs = Bs.nextEffect) + } + } while (null !== Bs) + ; + (Bs = null), Fo(), (Os = i) + } else e.current = n + if (Zs) (Zs = !1), (Us = e), (Xs = t) + else + for (Bs = r; null !== Bs;) + (t = Bs.nextEffect), + (Bs.nextEffect = null), + 8 & Bs.flags && (((O = Bs).sibling = null), (O.stateNode = null)), + (Bs = t) + if ( + (0 === (r = e.pendingLanes) && (Gs = null), + 1 === r ? (e === Qs ? Ks++ : ((Ks = 0), (Qs = e))) : (Ks = 0), + (n = n.stateNode), + Po && 'function' == typeof Po.onCommitFiberRoot) + ) + try { + Po.onCommitFiberRoot(ko, n, void 0, 64 == (64 & n.current.flags)) + } catch (S) { + } + if ((sc(e, Zo()), Vs)) throw ((Vs = !1), (e = Ws), (Ws = null), e) + return 0 != (8 & Os) || $o(), null + }.bind(null, e, t), + ), + null + ) + } + + function Ec() { + var e + return 90 !== Xs && ((e = 97 < Xs ? 97 : Xs), (Xs = 90), Yo(e, Sc)) + } + + function Oc(e, t) { + qs.push(t, e), + Zs || + ((Zs = !0), + qo(97, function () { + return Ec(), null + })) + } + + function Sc() { + if (null === Us) return !1 + var e = Us + if (((Us = null), 0 != (48 & Os))) throw Error(ke(331)) + var t = Os, + n = ((Os |= 32), qs) + qs = [] + for (var r = 0; r < n.length; r += 2) { + var i = n[r], + o = n[r + 1], + a = i.destroy + if (((i.destroy = void 0), 'function' == typeof a)) + try { + a() + } catch (s) { + if (null === o) throw Error(ke(330)) + Pc(o, s) + } + } + for (n = Ys, Ys = [], r = 0; r < n.length; r += 2) { + ;(i = n[r]), (o = n[r + 1]) + try { + var l = i.create + i.destroy = l() + } catch (s) { + if (null === o) throw Error(ke(330)) + Pc(o, s) + } + } + for (l = e.current.firstEffect; null !== l;) + (e = l.nextEffect), + (l.nextEffect = null), + 8 & l.flags && ((l.sibling = null), (l.stateNode = null)), + (l = e) + return (Os = t), $o(), !0 + } + + function kc(e, t, n) { + ha(e, (t = ss(0, (t = ns(n, t)), 1))), + (t = ic()), + null !== (e = lc(e, 1)) && (nr(e, 1, t), sc(e, t)) + } + + function Pc(e, t) { + if (3 === e.tag) kc(e, e, t) + else + for (var n = e.return; null !== n;) { + if (3 === n.tag) { + kc(n, e, t) + break + } + if (1 === n.tag) { + var r, + i = n.stateNode + if ( + 'function' == typeof n.type.getDerivedStateFromError || + ('function' == typeof i.componentDidCatch && (null === Gs || !Gs.has(i))) + ) { + if ((ha(n, cs(n, (e = ns(t, e)), 1)), (r = ic()), null !== (n = lc(n, 1)))) + nr(n, 1, r), sc(n, r) + else if ('function' == typeof i.componentDidCatch && (null === Gs || !Gs.has(i))) + try { + i.componentDidCatch(t, e) + } catch (o) { + } + break + } + } + n = n.return + } + } + + function _c(e, t, n) { + var r = e.pingCache + null !== r && r.delete(t), + (t = ic()), + (e.pingedLanes |= e.suspendedLanes & n), + Ss === e && + (Ps & n) === n && + (4 === Ts || (3 === Ts && (62914560 & Ps) === Ps && Zo() - zs < 500) + ? mc(e, 0) + : (Ds |= n)), + sc(e, t) + } + + function Lc(e, t, n, r) { + ;(this.tag = e), + (this.key = n), + (this.sibling = + this.child = + this.return = + this.stateNode = + this.type = + this.elementType = + null), + (this.index = 0), + (this.ref = null), + (this.pendingProps = t), + (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), + (this.mode = r), + (this.flags = 0), + (this.lastEffect = this.firstEffect = this.nextEffect = null), + (this.childLanes = this.lanes = 0), + (this.alternate = null) + } + + function Tc(e, t, n, r) { + return new Lc(e, t, n, r) + } + + function jc(e) { + return (e = e.prototype) && e.isReactComponent + } + + function Ic(e, t) { + var n = e.alternate + return ( + null === n + ? (((n = Tc(e.tag, t, e.key, e.mode)).elementType = e.elementType), + (n.type = e.type), + (n.stateNode = e.stateNode), + ((n.alternate = e).alternate = n)) + : ((n.pendingProps = t), + (n.type = e.type), + (n.flags = 0), + (n.nextEffect = null), + (n.firstEffect = null), + (n.lastEffect = null)), + (n.childLanes = e.childLanes), + (n.lanes = e.lanes), + (n.child = e.child), + (n.memoizedProps = e.memoizedProps), + (n.memoizedState = e.memoizedState), + (n.updateQueue = e.updateQueue), + (t = e.dependencies), + (n.dependencies = null === t ? null : {lanes: t.lanes, firstContext: t.firstContext}), + (n.sibling = e.sibling), + (n.index = e.index), + (n.ref = e.ref), + n + ) + } + + function Mc(e, t, n, r, i, o) { + var a = 2 + if ('function' == typeof (r = e)) jc(e) && (a = 1) + else if ('string' == typeof e) a = 5 + else + e: switch (e) { + case Ze: + return Rc(n.children, i, o, t) + case rt: + ;(a = 8), (i |= 16) + break + case Ue: + ;(a = 8), (i |= 1) + break + case Xe: + return ((e = Tc(12, n, t, 8 | i)).elementType = Xe), (e.type = Xe), (e.lanes = o), e + case Ke: + return ((e = Tc(13, n, t, i)).type = Ke), (e.elementType = Ke), (e.lanes = o), e + case Qe: + return ((e = Tc(19, n, t, i)).elementType = Qe), (e.lanes = o), e + case it: + return Dc(n, i, o, t) + case ot: + return ((e = Tc(24, n, t, i)).elementType = ot), (e.lanes = o), e + default: + if ('object' == typeof e && null !== e) + switch (e.$$typeof) { + case Ye: + a = 10 + break e + case qe: + a = 9 + break e + case $e: + a = 11 + break e + case Je: + a = 14 + break e + case et: + ;(a = 16), (r = null) + break e + case tt: + a = 22 + break e + } + throw Error(ke(130, null == e ? e : typeof e, '')) + } + return ((t = Tc(a, n, t, i)).elementType = e), (t.type = r), (t.lanes = o), t + } + + function Rc(e, t, n, r) { + return ((e = Tc(7, e, r, t)).lanes = n), e + } + + function Dc(e, t, n, r) { + return ((e = Tc(23, e, r, t)).elementType = it), (e.lanes = n), e + } + + function Ac(e, t, n) { + return ((e = Tc(6, e, null, t)).lanes = n), e + } + + function zc(e, t, n) { + return ( + ((t = Tc(4, null !== e.children ? e.children : [], e.key, t)).lanes = n), + (t.stateNode = { + containerInfo: e.containerInfo, + pendingChildren: null, + implementation: e.implementation, + }), + t + ) + } + + function Nc(e, t, n) { + ;(this.tag = t), + (this.containerInfo = e), + (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null), + (this.timeoutHandle = -1), + (this.pendingContext = this.context = null), + (this.hydrate = n), + (this.callbackNode = null), + (this.callbackPriority = 0), + (this.eventTimes = tr(0)), + (this.expirationTimes = tr(-1)), + (this.entangledLanes = + this.finishedLanes = + this.mutableReadLanes = + this.expiredLanes = + this.pingedLanes = + this.suspendedLanes = + this.pendingLanes = + 0), + (this.entanglements = tr(0)), + (this.mutableSourceEagerHydrationData = null) + } + + function Hc(e, t, n, r) { + var i = t.current, + o = ic(), + a = oc(i) + e: if (n) { + t: { + if (fn((n = n._reactInternals)) !== n || 1 !== n.tag) throw Error(ke(170)) + var l = n + do { + switch (l.tag) { + case 3: + l = l.stateNode.context + break t + case 1: + if (wo(l.type)) { + l = l.stateNode.__reactInternalMemoizedMergedChildContext + break t + } + } + } while (null !== (l = l.return)) + throw Error(ke(171)) + } + if (1 === n.tag) { + var s = n.type + if (wo(s)) { + n = Eo(n, s, l) + break e + } + } + n = l + } else n = go + null === t.context ? (t.context = n) : (t.pendingContext = n), + ((t = fa(o, a)).payload = {element: e}), + null !== (r = void 0 === r ? null : r) && (t.callback = r), + ha(i, t), + ac(i, a, o) + } + + function Fc(e) { + return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null + } + + function Bc(e, t) { + var n + null !== (e = e.memoizedState) && + null !== e.dehydrated && + ((n = e.retryLane), (e.retryLane = 0 !== n && n < t ? n : t)) + } + + function Vc(e, t) { + Bc(e, t), (e = e.alternate) && Bc(e, t) + } + + function Wc(e, t, n) { + var r = (null != n && null != n.hydrationOptions && n.hydrationOptions.mutableSources) || null + if ( + ((n = new Nc(e, t, null != n && !0 === n.hydrate)), + (t = Tc(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0)), + ((n.current = t).stateNode = n), + ua(t), + (e[no] = n.current), + Di(8 === e.nodeType ? e.parentNode : e), + r) + ) + for (e = 0; e < r.length; e++) { + var i = (i = (t = r[e])._getVersion)(t._source) + null == n.mutableSourceEagerHydrationData + ? (n.mutableSourceEagerHydrationData = [t, i]) + : n.mutableSourceEagerHydrationData.push(t, i) + } + this._internalRoot = n + } + + function Gc(e) { + return ( + e && + (1 === e.nodeType || + 9 === e.nodeType || + 11 === e.nodeType || + (8 === e.nodeType && ' react-mount-point-unstable ' === e.nodeValue)) + ) + } + + function Zc(e, t, n, r, i) { + var o, + a, + l, + s = n._reactRootContainer + return ( + s + ? ((l = s._internalRoot), + 'function' == typeof i && + ((o = i), + (i = function () { + var e = Fc(l) + o.call(e) + })), + Hc(t, l, e, i)) + : ((l = (s = n._reactRootContainer = + (function (e, t) { + if ( + !(t = + t || + !( + !(t = e ? (9 === e.nodeType ? e.documentElement : e.firstChild) : null) || + 1 !== t.nodeType || + !t.hasAttribute('data-reactroot') + )) + ) + for (var n; (n = e.lastChild);) e.removeChild(n) + return new Wc(e, 0, t ? {hydrate: !0} : void 0) + })(n, r))._internalRoot), + 'function' == typeof i && + ((a = i), + (i = function () { + var e = Fc(l) + a.call(e) + })), + hc(function () { + Hc(t, l, e, i) + })), + Fc(l) + ) + } + + function Uc(e, t) { + if (Gc(t)) + return (function (e, t, n, r) { + return { + $$typeof: Ge, + key: null == (r = 3 < arguments.length && void 0 !== r ? r : null) ? null : '' + r, + children: e, + containerInfo: t, + implementation: n, + } + })(e, t, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null) + throw Error(ke(200)) + } + ;(Fs = function (e, t, n) { + var r = t.lanes + if (null !== e) + if (e.memoizedProps !== t.pendingProps || vo.current) zl = !0 + else { + if (0 == (n & r)) { + switch (((zl = !1), t.tag)) { + case 3: + Xl(t), qa() + break + case 5: + za(t) + break + case 1: + wo(t.type) && Oo(t) + break + case 4: + Da(t, t.stateNode.containerInfo) + break + case 10: + r = t.memoizedProps.value + var i = t.type._context + po(ea, i._currentValue), (i._currentValue = r) + break + case 13: + if (null !== t.memoizedState) + return 0 != (n & t.child.childLanes) + ? ql(e, t, n) + : (po(Ha, 1 & Ha.current), null !== (t = es(e, t, n)) ? t.sibling : null) + po(Ha, 1 & Ha.current) + break + case 19: + if (((r = 0 != (n & t.childLanes)), 0 != (64 & e.flags))) { + if (r) return Jl(e, t, n) + t.flags |= 64 + } + if ( + (null !== (i = t.memoizedState) && + ((i.rendering = null), (i.tail = null), (i.lastEffect = null)), + po(Ha, Ha.current), + r) + ) + break + return null + case 23: + case 24: + return (t.lanes = 0), Vl(e, t, n) + } + return es(e, t, n) + } + zl = 0 != (16384 & e.flags) + } + else zl = !1 + switch (((t.lanes = 0), t.tag)) { + case 2: + return ( + (r = t.type), + null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)), + (e = t.pendingProps), + (i = bo(t, mo.current)), + la(t, n), + (i = sl(null, t, r, e, i, n)), + (t.flags |= 1), + 'object' == typeof i && + null !== i && + 'function' == typeof i.render && + void 0 === i.$$typeof + ? ((t.tag = 1), + (t.memoizedState = null), + (t.updateQueue = null), + wo(r) ? ((o = !0), Oo(t)) : (o = !1), + (t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null), + ua(t), + 'function' == typeof (s = r.getDerivedStateFromProps) && ya(t, 0, s, e), + (i.updater = ba), + Ea(((t.stateNode = i)._reactInternals = t), r, e, n), + Ul(null, t, r, !0, o, n)) + : ((t.tag = 0), Nl(null, t, i, n), t.child) + ) + case 16: + i = t.elementType + e: { + switch ( + (null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)), + (e = t.pendingProps), + (i = (o = i._init)(i._payload)), + (t.type = i), + (o = t.tag = + (function (e) { + if ('function' == typeof e) return jc(e) ? 1 : 0 + if (null != e) { + if ((e = e.$$typeof) === $e) return 11 + if (e === Je) return 14 + } + return 2 + })(i)), + (e = Jo(i, e)), + o) + ) { + case 0: + t = Gl(null, t, i, e, n) + break e + case 1: + t = Zl(null, t, i, e, n) + break e + case 11: + t = Hl(null, t, i, e, n) + break e + case 14: + t = Fl(null, t, i, Jo(i.type, e), r, n) + break e + } + throw Error(ke(306, i, '')) + } + return t + case 0: + return ( + (r = t.type), + (i = t.pendingProps), + Gl(e, t, r, (i = t.elementType === r ? i : Jo(r, i)), n) + ) + case 1: + return ( + (r = t.type), + (i = t.pendingProps), + Zl(e, t, r, (i = t.elementType === r ? i : Jo(r, i)), n) + ) + case 3: + if ((Xl(t), (r = t.updateQueue), null === e || null === r)) throw Error(ke(282)) + if ( + ((r = t.pendingProps), + (i = null !== (i = t.memoizedState) ? i.element : null), + da(e, t), + ga(t, r, null, n), + (r = t.memoizedState.element) === i) + ) + qa(), (t = es(e, t, n)) + else { + if ( + ((o = (i = t.stateNode).hydrate) && + ((Va = Ki(t.stateNode.containerInfo.firstChild)), (Ba = t), (o = Wa = !0)), + o) + ) { + if (null != (e = i.mutableSourceEagerHydrationData)) + for (i = 0; i < e.length; i += 2) + ((o = e[i])._workInProgressVersionPrimary = e[i + 1]), $a.push(o) + for (n = La(t, null, r, n), t.child = n; n;) + (n.flags = (-3 & n.flags) | 1024), (n = n.sibling) + } else Nl(e, t, r, n), qa() + t = t.child + } + return t + case 5: + return ( + za(t), + null === e && Ua(t), + (r = t.type), + (i = t.pendingProps), + (o = null !== e ? e.memoizedProps : null), + (s = i.children), + Xi(r, i) ? (s = null) : null !== o && Xi(r, o) && (t.flags |= 16), + Wl(e, t), + Nl(e, t, s, n), + t.child + ) + case 6: + return null === e && Ua(t), null + case 13: + return ql(e, t, n) + case 4: + return ( + Da(t, t.stateNode.containerInfo), + (r = t.pendingProps), + null === e ? (t.child = _a(t, null, r, n)) : Nl(e, t, r, n), + t.child + ) + case 11: + return ( + (r = t.type), + (i = t.pendingProps), + Hl(e, t, r, (i = t.elementType === r ? i : Jo(r, i)), n) + ) + case 7: + return Nl(e, t, t.pendingProps, n), t.child + case 8: + case 12: + return Nl(e, t, t.pendingProps.children, n), t.child + case 10: + e: { + ;(r = t.type._context), (i = t.pendingProps), (s = t.memoizedProps) + var o = i.value, + a = t.type._context + if ((po(ea, a._currentValue), (a._currentValue = o), null !== s)) + if ( + ((a = s.value), + 0 == + (o = pi(a, o) + ? 0 + : 0 | + ('function' == typeof r._calculateChangedBits + ? r._calculateChangedBits(a, o) + : 1073741823))) + ) { + if (s.children === i.children && !vo.current) { + t = es(e, t, n) + break e + } + } else + for (null !== (a = t.child) && (a.return = t); null !== a;) { + var l = a.dependencies + if (null !== l) + for (var s = a.child, c = l.firstContext; null !== c;) { + if (c.context === r && 0 != (c.observedBits & o)) { + 1 === a.tag && (((c = fa(-1, n & -n)).tag = 2), ha(a, c)), + (a.lanes |= n), + null !== (c = a.alternate) && (c.lanes |= n), + aa(a.return, n), + (l.lanes |= n) + break + } + c = c.next + } + else s = 10 === a.tag && a.type === t.type ? null : a.child + if (null !== s) s.return = a + else + for (s = a; null !== s;) { + if (s === t) { + s = null + break + } + if (null !== (a = s.sibling)) { + ;(a.return = s.return), (s = a) + break + } + s = s.return + } + a = s + } + Nl(e, t, i.children, n), (t = t.child) + } + return t + case 9: + return ( + (i = t.type), + (r = (o = t.pendingProps).children), + la(t, n), + (r = r((i = sa(i, o.unstable_observedBits)))), + (t.flags |= 1), + Nl(e, t, r, n), + t.child + ) + case 14: + return (o = Jo((i = t.type), t.pendingProps)), Fl(e, t, i, (o = Jo(i.type, o)), r, n) + case 15: + return Bl(e, t, t.type, t.pendingProps, r, n) + case 17: + return ( + (r = t.type), + (i = t.pendingProps), + (i = t.elementType === r ? i : Jo(r, i)), + null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)), + (t.tag = 1), + wo(r) ? ((e = !0), Oo(t)) : (e = !1), + la(t, n), + Ca(t, r, i), + Ea(t, r, i, n), + Ul(null, t, r, !0, e, n) + ) + case 19: + return Jl(e, t, n) + case 23: + case 24: + return Vl(e, t, n) + } + throw Error(ke(156, t.tag)) + }), + (Wc.prototype.render = function (e) { + Hc(e, this._internalRoot, null, null) + }), + (Wc.prototype.unmount = function () { + var e = this._internalRoot, + t = e.containerInfo + Hc(null, e, null, function () { + t[no] = null + }) + }), + (vn = function (e) { + 13 === e.tag && (ac(e, 4, ic()), Vc(e, 4)) + }), + (yn = function (e) { + 13 === e.tag && (ac(e, 67108864, ic()), Vc(e, 67108864)) + }), + (bn = function (e) { + var t, n + 13 === e.tag && ((t = ic()), ac(e, (n = oc(e)), t), Vc(e, n)) + }), + (Gt = function (e, t, n) { + switch (t) { + case 'input': + if ((wt(e, n), (t = n.name), 'radio' === n.type && null != t)) { + for (n = e; n.parentNode;) n = n.parentNode + for ( + n = n.querySelectorAll('input[name=' + JSON.stringify('' + t) + '][type="radio"]'), + t = 0; + t < n.length; + t++ + ) { + var r = n[t] + if (r !== e && r.form === e.form) { + var i = lo(r) + if (!i) throw Error(ke(90)) + gt(r), wt(r, i) + } + } + } + break + case 'textarea': + Pt(e, n) + break + case 'select': + null != (t = n.value) && Ot(e, !!n.multiple, t, !1) + } + }), + ($t = fc), + (Kt = function (e, t, n, r, i) { + var o = Os + Os |= 4 + try { + return Yo(98, e.bind(null, t, n, r, i)) + } finally { + 0 === (Os = o) && (Hs(), $o()) + } + }) + var Xc = function (e, t) { + var n = Os + Os |= 2 + try { + return e(t) + } finally { + 0 === (Os = n) && (Hs(), $o()) + } + } + ;(Zr = { + Events: [ + oo, + ao, + lo, + Yt, + qt, + Ec, + { + current: !(Qt = function () { + var e + 0 == (49 & Os) && + (null !== $s && + ((e = $s), + ($s = null), + e.forEach(function (e) { + ;(e.expiredLanes |= 24 & e.pendingLanes), sc(e, Zo()) + })), + $o(), + Ec()) + }), + }, + ], + }), + (kr = { + bundleType: (s = { + findFiberByHostInstance: io, + bundleType: 0, + version: '17.0.2', + rendererPackageName: 'react-dom', + }).bundleType, + version: s.version, + rendererPackageName: s.rendererPackageName, + rendererConfig: s.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: Ve.ReactCurrentDispatcher, + findHostInstanceByFiber: function (e) { + return null === (e = gn(e)) ? null : e.stateNode + }, + findFiberByHostInstance: + s.findFiberByHostInstance || + function () { + return null + }, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + }) + if ( + 'undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && + !(on = __REACT_DEVTOOLS_GLOBAL_HOOK__).isDisabled && + on.supportsFiber + ) + try { + ;(ko = on.inject(kr)), (Po = on) + } catch (oh) { + } + + function Yc(e, t) { + if (null == e) return {} + var n, + r = (function (e, t) { + if (null == e) return {} + for (var n, r = {}, i = Object.keys(e), o = 0; o < i.length; o++) + (n = i[o]), 0 <= t.indexOf(n) || (r[n] = e[n]) + return r + })(e, t) + if (Object.getOwnPropertySymbols) + for (var i = Object.getOwnPropertySymbols(e), o = 0; o < i.length; o++) + (n = i[o]), + 0 <= t.indexOf(n) || (Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n])) + return r + } + + function qc() { + } + + function $c() { + } + + function Kc(e, t, n, r, i, o) { + if ('SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED' !== o) + throw ( + (((o = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types', + )).name = 'Invariant Violation'), + o) + ) + } + + function Qc() { + return Kc + } + ;(fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Zr), + (fe.createPortal = Uc), + (fe.findDOMNode = function (e) { + if (null == e) return null + if (1 === e.nodeType) return e + var t = e._reactInternals + if (void 0 !== t) return null === (e = gn(t)) ? null : e.stateNode + if ('function' == typeof e.render) throw Error(ke(188)) + throw Error(ke(268, Object.keys(e))) + }), + (fe.flushSync = function (e, t) { + var n = Os + if (0 != (48 & n)) return e(t) + Os |= 1 + try { + if (e) return Yo(99, e.bind(null, t)) + } finally { + ;(Os = n), $o() + } + }), + (fe.hydrate = function (e, t, n) { + if (Gc(t)) return Zc(null, e, t, !0, n) + throw Error(ke(200)) + }), + (fe.render = function (e, t, n) { + if (Gc(t)) return Zc(null, e, t, !1, n) + throw Error(ke(200)) + }), + (fe.unmountComponentAtNode = function (e) { + if (Gc(e)) + return ( + !!e._reactRootContainer && + (hc(function () { + Zc(null, null, e, !1, function () { + ;(e._reactRootContainer = null), (e[no] = null) + }) + }), + !0) + ) + throw Error(ke(40)) + }), + (fe.unstable_batchedUpdates = fc), + (fe.unstable_createPortal = function (e, t) { + return Uc(e, t, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null) + }), + (fe.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { + if (!Gc(n)) throw Error(ke(200)) + if (null == e || void 0 === e._reactInternals) throw Error(ke(38)) + return Zc(e, t, n, !1, r) + }), + (fe.version = '17.0.2'), + (function e() { + if ( + 'undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && + 'function' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE + ) + try { + __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e) + } catch (t) { + console.error(t) + } + })(), + (pe.exports = fe), + (s = {exports: {}}), + ($c.resetWarningCache = qc), + (s.exports = (kr = { + array: (Kc.isRequired = Kc), + bigint: Kc, + bool: Kc, + func: Kc, + number: Kc, + object: Kc, + string: Kc, + symbol: Kc, + any: Kc, + arrayOf: Qc, + element: Kc, + elementType: Kc, + instanceOf: Qc, + node: Kc, + objectOf: Qc, + oneOf: Qc, + oneOfType: Qc, + shape: Qc, + exact: Qc, + checkPropTypes: $c, + resetWarningCache: qc, + }).PropTypes = + kr) + on = s.exports + var Jc = {exports: {}}, + eu = + ((Zr = {}), + (fe = 'function' == typeof Symbol && Symbol.for) ? Symbol.for('react.element') : 60103), + tu = fe ? Symbol.for('react.portal') : 60106, + nu = fe ? Symbol.for('react.fragment') : 60107, + ru = fe ? Symbol.for('react.strict_mode') : 60108, + iu = fe ? Symbol.for('react.profiler') : 60114, + ou = fe ? Symbol.for('react.provider') : 60109, + au = fe ? Symbol.for('react.context') : 60110, + lu = fe ? Symbol.for('react.async_mode') : 60111, + su = fe ? Symbol.for('react.concurrent_mode') : 60111, + cu = fe ? Symbol.for('react.forward_ref') : 60112, + uu = fe ? Symbol.for('react.suspense') : 60113, + du = fe ? Symbol.for('react.suspense_list') : 60120, + fu = fe ? Symbol.for('react.memo') : 60115, + hu = fe ? Symbol.for('react.lazy') : 60116, + pu = fe ? Symbol.for('react.block') : 60121, + gu = fe ? Symbol.for('react.fundamental') : 60117, + mu = fe ? Symbol.for('react.responder') : 60118, + vu = fe ? Symbol.for('react.scope') : 60119 + + function yu(e) { + if ('object' == typeof e && null !== e) { + var t = e.$$typeof + switch (t) { + case eu: + switch ((e = e.type)) { + case lu: + case su: + case nu: + case iu: + case ru: + case uu: + return e + default: + switch ((e = e && e.$$typeof)) { + case au: + case cu: + case hu: + case fu: + case ou: + return e + default: + return t + } + } + case tu: + return t + } + } + } + + function bu(e) { + return yu(e) === su + } + ;(Zr.AsyncMode = lu), + (Zr.ConcurrentMode = su), + (Zr.ContextConsumer = au), + (Zr.ContextProvider = ou), + (Zr.Element = eu), + (Zr.ForwardRef = cu), + (Zr.Fragment = nu), + (Zr.Lazy = hu), + (Zr.Memo = fu), + (Zr.Portal = tu), + (Zr.Profiler = iu), + (Zr.StrictMode = ru), + (Zr.Suspense = uu), + (Zr.isAsyncMode = function (e) { + return bu(e) || yu(e) === lu + }), + (Zr.isConcurrentMode = bu), + (Zr.isContextConsumer = function (e) { + return yu(e) === au + }), + (Zr.isContextProvider = function (e) { + return yu(e) === ou + }), + (Zr.isElement = function (e) { + return 'object' == typeof e && null !== e && e.$$typeof === eu + }), + (Zr.isForwardRef = function (e) { + return yu(e) === cu + }), + (Zr.isFragment = function (e) { + return yu(e) === nu + }), + (Zr.isLazy = function (e) { + return yu(e) === hu + }), + (Zr.isMemo = function (e) { + return yu(e) === fu + }), + (Zr.isPortal = function (e) { + return yu(e) === tu + }), + (Zr.isProfiler = function (e) { + return yu(e) === iu + }), + (Zr.isStrictMode = function (e) { + return yu(e) === ru + }), + (Zr.isSuspense = function (e) { + return yu(e) === uu + }), + (Zr.isValidElementType = function (e) { + return ( + 'string' == typeof e || + 'function' == typeof e || + e === nu || + e === su || + e === iu || + e === ru || + e === uu || + e === du || + ('object' == typeof e && + null !== e && + (e.$$typeof === hu || + e.$$typeof === fu || + e.$$typeof === ou || + e.$$typeof === au || + e.$$typeof === cu || + e.$$typeof === gu || + e.$$typeof === mu || + e.$$typeof === vu || + e.$$typeof === pu)) + ) + }), + (Zr.typeOf = yu), + (Jc.exports = Zr) + var wu, + Cu, + xu = { + animationIterationCount: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + msGridRow: 1, + msGridRowSpan: 1, + msGridColumn: 1, + msGridColumnSpan: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1, + }, + Eu = + /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, + Ou = + ((wu = function (e) { + return ( + Eu.test(e) || (111 === e.charCodeAt(0) && 110 === e.charCodeAt(1) && e.charCodeAt(2) < 91) + ) + }), + (Cu = {}), + function (e) { + return void 0 === Cu[e] && (Cu[e] = wu(e)), Cu[e] + }), + Su = Jc.exports, + ku = { + childContextTypes: !0, + contextType: !0, + contextTypes: !0, + defaultProps: !0, + displayName: !0, + getDefaultProps: !0, + getDerivedStateFromError: !0, + getDerivedStateFromProps: !0, + mixins: !0, + propTypes: !0, + type: !0, + }, + Pu = { + name: !0, + length: !0, + prototype: !0, + caller: !0, + callee: !0, + arguments: !0, + arity: !0, + }, + _u = { + $$typeof: !0, + compare: !0, + defaultProps: !0, + displayName: !0, + propTypes: !0, + type: !0, + }, + Lu = {} + + function Tu(e) { + return Su.isMemo(e) ? _u : Lu[e.$$typeof] || ku + } + ;(Lu[Su.ForwardRef] = { + $$typeof: !0, + render: !0, + defaultProps: !0, + displayName: !0, + propTypes: !0, + }), + (Lu[Su.Memo] = _u) + var ju = Object.defineProperty, + Iu = Object.getOwnPropertyNames, + Mu = Object.getOwnPropertySymbols, + Ru = Object.getOwnPropertyDescriptor, + Du = Object.getPrototypeOf, + Au = Object.prototype, + zu = function e(t, n, r) { + if ('string' != typeof n) { + Au && (i = Du(n)) && i !== Au && e(t, i, r) + for ( + var i, o = Iu(n), a = (Mu && (o = o.concat(Mu(n))), Tu(t)), l = Tu(n), s = 0; + s < o.length; + ++s + ) { + var c = o[s] + if (!(Pu[c] || (r && r[c]) || (l && l[c]) || (a && a[c]))) { + var u = Ru(n, c) + try { + ju(t, c, u) + } catch (d) { + } + } + } + } + return t + } + + function Nu() { + return (Nu = + Object.assign || + function (e) { + for (var t = 1; t < arguments.length; t++) { + var n, + r = arguments[t] + for (n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]) + } + return e + }).apply(this, arguments) + } + + function Hu(e, t) { + for (var n = [e[0]], r = 0, i = t.length; r < i; r += 1) n.push(t[r], e[r + 1]) + return n + } + + var Fu = function (e) { + return ( + null !== e && + 'object' == typeof e && + '[object Object]' === (e.toString ? e.toString() : Object.prototype.toString.call(e)) && + !Jc.exports.typeOf(e) + ) + }, + Bu = Object.freeze([]), + Vu = Object.freeze({}) + + function Wu(e) { + return 'function' == typeof e + } + + function Gu(e) { + return e.displayName || e.name || 'Component' + } + + function Zu(e) { + return e && 'string' == typeof e.styledComponentId + } + + var Uu = ('undefined' != typeof process && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR)) || 'data-styled', + Xu = 'active', + Yu = 'data-styled-version', + qu = '5.1.0', + $u = '/*!sc*/\n', + Ku = 'undefined' != typeof window && 'HTMLElement' in window, + Qu = + ((kr = + ('boolean' == typeof SC_DISABLE_SPEEDY && SC_DISABLE_SPEEDY) || + ('undefined' != typeof process && + ({}.REACT_APP_SC_DISABLE_SPEEDY || {}.SC_DISABLE_SPEEDY)) || + !1), + {}) + + function Ju(e) { + for (var t = arguments.length, n = new Array(1 < t ? t - 1 : 0), r = 1; r < t; r++) + n[r - 1] = arguments[r] + throw new Error( + 'An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#' + + e + + ' for more information.' + + (0 < n.length ? ' Additional arguments: ' + n.join(', ') : ''), + ) + } + + function ed(e) { + var t = document.head, + n = + ((e = e || t), + (t = document.createElement('style')), + void 0 !== (n = sd(e)) ? n.nextSibling : null), + r = + (t.setAttribute(Uu, Xu), + t.setAttribute(Yu, qu), + 'undefined' != typeof __webpack_nonce__ ? __webpack_nonce__ : null) + return r && t.setAttribute('nonce', r), e.insertBefore(t, n), t + } + + function td(e) { + if (hd.has(e)) return hd.get(e) + var t = gd++ + return hd.set(e, t), pd.set(t, e), t + } + + var nd, + rd, + id, + od, + ad, + ld, + sd = function (e) { + for (var t = e.childNodes, n = t.length; 0 <= n; n--) { + var r = t[n] + if (r && 1 === r.nodeType && r.hasAttribute(Uu)) return r + } + }, + cd = (function () { + function e(e) { + ;(e = this.element = ed(e)).appendChild(document.createTextNode('')), + (this.sheet = (function (e) { + if (e.sheet) return e.sheet + for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) { + var i = t[n] + if (i.ownerNode === e) return i + } + Ju(17) + })(e)), + (this.length = 0) + } + + var t = e.prototype + return ( + (t.insertRule = function (e, t) { + try { + return this.sheet.insertRule(t, e), this.length++, !0 + } catch (n) { + return !1 + } + }), + (t.deleteRule = function (e) { + this.sheet.deleteRule(e), this.length-- + }), + (t.getRule = function (e) { + return void 0 !== (e = this.sheet.cssRules[e]) && 'string' == typeof e.cssText + ? e.cssText + : '' + }), + e + ) + })(), + ud = (function () { + function e(e) { + ;(e = this.element = ed(e)), (this.nodes = e.childNodes), (this.length = 0) + } + + var t = e.prototype + return ( + (t.insertRule = function (e, t) { + return ( + e <= this.length && + 0 <= e && + ((t = document.createTextNode(t)), + (e = this.nodes[e]), + this.element.insertBefore(t, e || null), + this.length++, + !0) + ) + }), + (t.deleteRule = function (e) { + this.element.removeChild(this.nodes[e]), this.length-- + }), + (t.getRule = function (e) { + return e < this.length ? this.nodes[e].textContent : '' + }), + e + ) + })(), + dd = (function () { + function e(e) { + ;(this.rules = []), (this.length = 0) + } + + var t = e.prototype + return ( + (t.insertRule = function (e, t) { + return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0) + }), + (t.deleteRule = function (e) { + this.rules.splice(e, 1), this.length-- + }), + (t.getRule = function (e) { + return e < this.length ? this.rules[e] : '' + }), + e + ) + })(), + fd = (function () { + function e(e) { + ;(this.groupSizes = new Uint32Array(512)), (this.length = 512), (this.tag = e) + } + + var t = e.prototype + return ( + (t.indexOfGroup = function (e) { + for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n] + return t + }), + (t.insertRules = function (e, t) { + if (e >= this.groupSizes.length) { + for (var n = this.groupSizes, r = n.length, i = r; i <= e;) + (i <<= 1) < 0 && Ju(16, '' + e) + ; + (this.groupSizes = new Uint32Array(i)), this.groupSizes.set(n), (this.length = i) + for (var o = r; o < i; o++) this.groupSizes[o] = 0 + } + for (var a = this.indexOfGroup(e + 1), l = 0, s = t.length; l < s; l++) + this.tag.insertRule(a, t[l]) && (this.groupSizes[e]++, a++) + }), + (t.clearGroup = function (e) { + if (e < this.length) { + var t = this.groupSizes[e], + n = this.indexOfGroup(e), + r = n + t + this.groupSizes[e] = 0 + for (var i = n; i < r; i++) this.tag.deleteRule(n) + } + }), + (t.getGroup = function (e) { + var t = '' + if (e >= this.length || 0 === this.groupSizes[e]) return t + for (var n = this.groupSizes[e], r = (e = this.indexOfGroup(e)) + n, i = e; i < r; i++) + t += this.tag.getRule(i) + $u + return t + }), + e + ) + })(), + hd = new Map(), + pd = new Map(), + gd = 1, + md = 'style[' + Uu + '][' + Yu + '="' + qu + '"]', + vd = new RegExp('^' + Uu + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), + yd = function (e, t) { + for (var n, r, i = t.innerHTML.split($u), o = [], a = 0, l = i.length; a < l; a++) { + var s = i[a].trim() + if (s) { + var c = s.match(vd) + if (c) { + var u = 0 | parseInt(c[1], 10), + d = c[2] + if (0 != u) { + ;(n = d), gd <= (r = u) && (gd = r + 1), hd.set(n, r), pd.set(r, n), (m = f = void 0) + for (var f, h = e, p = d, g = c[3].split(','), m = 0, v = g.length; m < v; m++) + (f = g[m]) && h.registerName(p, f) + e.getTag().insertRules(u, o) + } + o.length = 0 + } else o.push(s) + } + } + }, + bd = Ku, + wd = {isServer: !Ku, useCSSOMInjection: !kr}, + Cd = (function () { + function e(e, t, n) { + if ( + (void 0 === t && (t = {}), + (this.options = Nu({}, wd, {}, (e = void 0 === e ? wd : e))), + (this.gs = t), + (this.names = new Map(n)), + !this.options.isServer && Ku && bd) + ) { + bd = !1 + for (var r = document.querySelectorAll(md), i = 0, o = r.length; i < o; i++) { + var a = r[i] + a && + a.getAttribute(Uu) !== Xu && + (yd(this, a), a.parentNode && a.parentNode.removeChild(a)) + } + } + } + + e.registerId = td + var t = e.prototype + return ( + (t.reconstructWithOptions = function (t) { + return new e(Nu({}, this.options, {}, t), this.gs, this.names) + }), + (t.allocateGSInstance = function (e) { + return (this.gs[e] = (this.gs[e] || 0) + 1) + }), + (t.getTag = function () { + return ( + this.tag || + (this.tag = + ((t = (e = this.options).isServer), + (n = e.useCSSOMInjection), + (e = e.target), + (t = new (t ? dd : n ? cd : ud)(e)), + new fd(t))) + ) + var e, t, n + }), + (t.hasNameForId = function (e, t) { + return this.names.has(e) && this.names.get(e).has(t) + }), + (t.registerName = function (e, t) { + var n + td(e), + this.names.has(e) + ? this.names.get(e).add(t) + : ((n = new Set()).add(t), this.names.set(e, n)) + }), + (t.insertRules = function (e, t, n) { + this.registerName(e, t), this.getTag().insertRules(td(e), n) + }), + (t.clearNames = function (e) { + this.names.has(e) && this.names.get(e).clear() + }), + (t.clearRules = function (e) { + this.getTag().clearGroup(td(e)), this.clearNames(e) + }), + (t.clearTag = function () { + this.tag = void 0 + }), + (t.toString = function () { + return (function (e) { + for (var t = e.getTag(), n = t.length, r = '', i = 0; i < n; i++) { + s = i + var o, + a, + l, + s = pd.get(s) + void 0 !== s && + ((o = e.names.get(s)), + (a = t.getGroup(i)), + void 0 !== o && + 0 !== a.length && + ((s = Uu + '.g' + i + '[id="' + s + '"]'), + (l = ''), + void 0 !== o && + o.forEach(function (e) { + 0 < e.length && (l += e + ',') + }), + (r += a + s + '{content:"' + l + '"}' + $u))) + } + return r + })(this) + }), + e + ) + })(), + xd = function (e, t) { + for (var n = t.length; n;) e = (33 * e) ^ t.charCodeAt(--n) + return e + }, + Ed = function (e) { + return xd(5381, e) + }, + Od = /^\s*\/\/.*$/gm, + Sd = he.createContext(), + kd = (Sd.Consumer, he.createContext()), + Pd = (kd.Consumer, new Cd()), + _d = + ((s = void 0 === (s = (bp = void 0 === bp ? Vu : bp).options) ? Vu : s), + (bp = void 0 === (bp = bp.plugins) ? Bu : bp), + (ad = new (function (e) { + function t(e, t, r) { + var i = t.trim().split(p), + o = (t = i).length, + a = e.length + switch (a) { + case 0: + case 1: + var l = 0 + for (e = 0 === a ? '' : e[0] + ' '; l < o; ++l) t[l] = n(e, t[l], r).trim() + break + default: + var s = (l = 0) + for (t = []; l < o; ++l) + for (var c = 0; c < a; ++c) t[s++] = n(e[c] + ' ', i[l], r).trim() + } + return t + } + + function n(e, t, n) { + var r = t.charCodeAt(0) + switch ((r = r < 33 ? (t = t.trim()).charCodeAt(0) : r)) { + case 38: + return t.replace(g, '$1' + e.trim()) + case 58: + return e.trim() + t.replace(g, '$1' + e.trim()) + default: + if (0 < +n && 0 < t.indexOf('\f')) + return t.replace(g, (58 === e.charCodeAt(0) ? '' : '$1') + e.trim()) + } + return e + t + } + + function r(e, t, n, o) { + var a, + l = e + ';', + s = 2 * t + 3 * n + 4 * o + if (944 == s) + return ( + (e = l.indexOf(':', 9) + 1), + (a = l.substring(e, l.length - 1).trim()), + (a = l.substring(0, e).trim() + a + ';'), + 1 === L || (2 === L && i(a, 1)) ? '-webkit-' + a + a : a + ) + if (0 === L || (2 === L && !i(l, 1))) return l + switch (s) { + case 1015: + return 97 === l.charCodeAt(10) ? '-webkit-' + l + l : l + case 951: + return 116 === l.charCodeAt(3) ? '-webkit-' + l + l : l + case 963: + return 110 === l.charCodeAt(5) ? '-webkit-' + l + l : l + case 1009: + if (100 !== l.charCodeAt(4)) break + case 969: + case 942: + return '-webkit-' + l + l + case 978: + return '-webkit-' + l + '-moz-' + l + l + case 1019: + case 983: + return '-webkit-' + l + '-moz-' + l + '-ms-' + l + l + case 883: + if (45 === l.charCodeAt(8)) return '-webkit-' + l + l + if (0 < l.indexOf('image-set(', 11)) return l.replace(S, '$1-webkit-$2') + l + break + case 932: + if (45 === l.charCodeAt(4)) + switch (l.charCodeAt(5)) { + case 103: + return ( + '-webkit-box-' + + l.replace('-grow', '') + + '-webkit-' + + l + + '-ms-' + + l.replace('grow', 'positive') + + l + ) + case 115: + return '-webkit-' + l + '-ms-' + l.replace('shrink', 'negative') + l + case 98: + return '-webkit-' + l + '-ms-' + l.replace('basis', 'preferred-size') + l + } + return '-webkit-' + l + '-ms-' + l + l + case 964: + return '-webkit-' + l + '-ms-flex-' + l + l + case 1023: + if (99 !== l.charCodeAt(8)) break + return ( + '-webkit-box-pack' + + (a = l + .substring(l.indexOf(':', 15)) + .replace('flex-', '') + .replace('space-between', 'justify')) + + '-webkit-' + + l + + '-ms-flex-pack' + + a + + l + ) + case 1005: + return f.test(l) ? l.replace(d, ':-webkit-') + l.replace(d, ':-moz-') + l : l + case 1e3: + switch ( + ((t = (a = l.substring(13).trim()).indexOf('-') + 1), + a.charCodeAt(0) + a.charCodeAt(t)) + ) { + case 226: + a = l.replace(b, 'tb') + break + case 232: + a = l.replace(b, 'tb-rl') + break + case 220: + a = l.replace(b, 'lr') + break + default: + return l + } + return '-webkit-' + l + '-ms-' + a + l + case 1017: + if (-1 === l.indexOf('sticky', 9)) break + case 975: + switch ( + ((t = (l = e).length - 10), + (s = + (a = (33 === l.charCodeAt(t) ? l.substring(0, t) : l) + .substring(e.indexOf(':', 7) + 1) + .trim()).charCodeAt(0) + + (0 | a.charCodeAt(7)))) + ) { + case 203: + if (a.charCodeAt(8) < 111) break + case 115: + l = l.replace(a, '-webkit-' + a) + ';' + l + break + case 207: + case 102: + l = + l.replace(a, '-webkit-' + (102 < s ? 'inline-' : '') + 'box') + + ';' + + l.replace(a, '-webkit-' + a) + + ';' + + l.replace(a, '-ms-' + a + 'box') + + ';' + + l + } + return l + ';' + case 938: + if (45 === l.charCodeAt(5)) + switch (l.charCodeAt(6)) { + case 105: + return ( + (a = l.replace('-items', '')), + '-webkit-' + l + '-webkit-box-' + a + '-ms-flex-' + a + l + ) + case 115: + return '-webkit-' + l + '-ms-flex-item-' + l.replace(x, '') + l + default: + return ( + '-webkit-' + + l + + '-ms-flex-line-pack' + + l.replace('align-content', '').replace(x, '') + + l + ) + } + break + case 973: + case 989: + if (45 !== l.charCodeAt(3) || 122 === l.charCodeAt(4)) break + case 931: + case 953: + if (!0 === O.test(e)) + return 115 === (a = e.substring(e.indexOf(':') + 1)).charCodeAt(0) + ? r(e.replace('stretch', 'fill-available'), t, n, o).replace( + ':fill-available', + ':stretch', + ) + : l.replace(a, '-webkit-' + a) + + l.replace(a, '-moz-' + a.replace('fill-', '')) + + l + break + case 962: + if ( + ((l = '-webkit-' + l + (102 === l.charCodeAt(5) ? '-ms-' + l : '') + l), + n + o === 211 && 105 === l.charCodeAt(13) && 0 < l.indexOf('transform', 10)) + ) + return l.substring(0, l.indexOf(';', 27) + 1).replace(h, '$1-webkit-$2') + l + } + return l + } + + function i(e, t) { + var n = e.indexOf(1 === t ? ':' : '{'), + r = e.substring(0, 3 !== t ? n : 10) + n = e.substring(n + 1, e.length - 1) + return M(2 !== t ? r : r.replace(E, '$1'), n, t) + } + + function o(e, t) { + var n = r(t, t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2)) + return n !== t + ';' ? n.replace(C, ' or ($1)').substring(4) : '(' + t + ')' + } + + function a(e, t, n, r, i, o, a, l, c, u) { + for (var d, f = 0, h = t; f < I; ++f) + switch ((d = j[f].call(s, e, h, n, r, i, o, a, l, c, u))) { + case void 0: + case !1: + case !0: + case null: + break + default: + h = d + } + if (h !== t) return h + } + + function l(e) { + return ( + void 0 !== (e = e.prefix) && + ((M = null), e ? ('function' != typeof e ? (L = 1) : ((L = 2), (M = e))) : (L = 0)), + l + ) + } + + function s(e, n) { + ;(e = [(e = e.charCodeAt(0) < 33 ? e.trim() : e)]), + 0 < I && + void 0 !== (l = a(-1, n, e, e, P, k, 0, 0, 0, 0)) && + 'string' == typeof l && + (n = l) + var l + n = (function e(n, l, s, d, f) { + for ( + var h, + p, + g, + b, + C, + x = 0, + E = 0, + O = 0, + S = 0, + j = 0, + M = 0, + D = (g = h = 0), + A = 0, + z = 0, + N = 0, + H = 0, + F = s.length, + B = F - 1, + V = '', + W = '', + G = '', + Z = ''; + A < F; + ) { + if ( + ((p = s.charCodeAt(A)), + A === B && + E + S + O + x !== 0 && + (0 !== E && (p = 47 === E ? 10 : 47), (S = O = x = 0), F++, B++), + E + S + O + x === 0) + ) { + if (A === B && 0 < (V = 0 < z ? V.replace(u, '') : V).trim().length) { + switch (p) { + case 32: + case 9: + case 59: + case 13: + case 10: + break + default: + V += s.charAt(A) + } + p = 59 + } + switch (p) { + case 123: + for (h = (V = V.trim()).charCodeAt(0), g = 1, H = ++A; A < F;) { + switch ((p = s.charCodeAt(A))) { + case 123: + g++ + break + case 125: + g-- + break + case 47: + switch ((p = s.charCodeAt(A + 1))) { + case 42: + case 47: + e: { + for (D = A + 1; D < B; ++D) + switch (s.charCodeAt(D)) { + case 47: + if (42 !== p || 42 !== s.charCodeAt(D - 1) || A + 2 === D) + break + A = D + 1 + break e + case 10: + if (47 === p) { + A = D + 1 + break e + } + } + A = D + } + } + break + case 91: + p++ + case 40: + p++ + case 34: + case 39: + for (; A++ < B && s.charCodeAt(A) !== p;) ; + } + if (0 === g) break + A++ + } + if ( + ((g = s.substring(H, A)), + 64 === (h = 0 === h ? (V = V.replace(c, '').trim()).charCodeAt(0) : h)) + ) { + switch ((p = (V = 0 < z ? V.replace(u, '') : V).charCodeAt(1))) { + case 100: + case 109: + case 115: + case 45: + z = l + break + default: + z = T + } + if ( + ((H = (g = e(l, z, g, p, f + 1)).length), + 0 < I && + ((C = a(3, g, (z = t(T, V, N)), l, P, k, H, p, f, d)), + (V = z.join('')), + void 0 !== C && 0 === (H = (g = C.trim()).length) && ((p = 0), (g = ''))), + 0 < H) + ) + switch (p) { + case 115: + V = V.replace(w, o) + case 100: + case 109: + case 45: + g = V + '{' + g + '}' + break + case 107: + ;(g = (V = V.replace(m, '$1 $2')) + '{' + g + '}'), + (g = + 1 === L || (2 === L && i('@' + g, 3)) + ? '@-webkit-' + g + '@' + g + : '@' + g) + break + default: + ;(g = V + g), 112 === d && ((W += g), (g = '')) + } + else g = '' + } else g = e(l, t(l, V, N), g, d, f + 1) + ; + (G += g), (g = N = z = D = h = 0), (V = ''), (p = s.charCodeAt(++A)) + break + case 125: + case 59: + if (1 < (H = (V = (0 < z ? V.replace(u, '') : V).trim()).length)) + switch ( + (0 === D && + ((h = V.charCodeAt(0)), 45 === h || (96 < h && h < 123)) && + (H = (V = V.replace(' ', ':')).length), + 0 < I && + void 0 !== (C = a(1, V, l, n, P, k, W.length, d, f, d)) && + 0 === (H = (V = C.trim()).length) && + (V = '\0\0'), + (h = V.charCodeAt(0)), + (p = V.charCodeAt(1)), + h) + ) { + case 0: + break + case 64: + if (105 === p || 99 === p) { + Z += V + s.charAt(A) + break + } + default: + 58 !== V.charCodeAt(H - 1) && (W += r(V, h, p, V.charCodeAt(2))) + } + ;(N = z = D = h = 0), (V = ''), (p = s.charCodeAt(++A)) + } + } + switch (p) { + case 13: + case 10: + 47 === E + ? (E = 0) + : 1 + h === 0 && 107 !== d && 0 < V.length && ((z = 1), (V += '\0')), + 0 < I * R && a(0, V, l, n, P, k, W.length, d, f, d), + (k = 1), + P++ + break + case 59: + case 125: + if (E + S + O + x === 0) { + k++ + break + } + default: + switch ((k++, (b = s.charAt(A)), p)) { + case 9: + case 32: + if (S + x + E === 0) + switch (j) { + case 44: + case 58: + case 9: + case 32: + b = '' + break + default: + 32 !== p && (b = ' ') + } + break + case 0: + b = '\\0' + break + case 12: + b = '\\f' + break + case 11: + b = '\\v' + break + case 38: + S + E + x === 0 && ((z = N = 1), (b = '\f' + b)) + break + case 108: + if (S + E + x + _ === 0 && 0 < D) + switch (A - D) { + case 2: + 112 === j && 58 === s.charCodeAt(A - 3) && (_ = j) + case 8: + 111 === M && (_ = M) + } + break + case 58: + S + E + x === 0 && (D = A) + break + case 44: + E + O + S + x === 0 && ((z = 1), (b += '\r')) + break + case 34: + case 39: + 0 === E && (S = S === p ? 0 : 0 === S ? p : S) + break + case 91: + S + E + O === 0 && x++ + break + case 93: + S + E + O === 0 && x-- + break + case 41: + S + E + x === 0 && O-- + break + case 40: + S + E + x === 0 && (0 === h && 2 * j + 3 * M != 533 && (h = 1), O++) + break + case 64: + E + O + S + x + D + g === 0 && (g = 1) + break + case 42: + case 47: + if (!(0 < S + x + O)) + switch (E) { + case 0: + switch (2 * p + 3 * s.charCodeAt(A + 1)) { + case 235: + E = 47 + break + case 220: + ;(H = A), (E = 42) + } + break + case 42: + 47 === p && + 42 === j && + H + 2 !== A && + (33 === s.charCodeAt(H + 2) && (W += s.substring(H, A + 1)), + (b = ''), + (E = 0)) + } + } + 0 === E && (V += b) + } + ;(M = j), (j = p), A++ + } + if (0 < (H = W.length)) { + if ( + ((z = l), + 0 < I && void 0 !== (C = a(2, W, z, n, P, k, H, d, f, d)) && 0 === (W = C).length) + ) + return Z + W + G + if (((W = z.join(',') + '{' + W + '}'), L * _ != 0)) { + switch ((_ = 2 !== L || i(W, 2) ? _ : 0)) { + case 111: + W = W.replace(y, ':-moz-$1') + W + break + case 112: + W = + W.replace(v, '::-webkit-input-$1') + + W.replace(v, '::-moz-$1') + + W.replace(v, ':-ms-input-$1') + + W + } + _ = 0 + } + } + return Z + W + G + })(T, e, n, 0, 0) + return ( + 0 < I && void 0 !== (l = a(-2, n, e, e, P, k, n.length, 0, 0, 0)) && (n = l), + (_ = 0), + (k = P = 1), + n + ) + } + + var c = /^\0+/g, + u = /[\0\r\f]/g, + d = /: */g, + f = /zoo|gra/, + h = /([,: ])(transform)/g, + p = /,\r+?/g, + g = /([\t\r\n ])*\f?&/g, + m = /@(k\w+)\s*(\S*)\s*/, + v = /::(place)/g, + y = /:(read-only)/g, + b = /[svh]\w+-[tblr]{2}/, + w = /\(\s*(.*)\s*\)/g, + C = /([\s\S]*?);/g, + x = /-self|flex-/g, + E = /[^]*?(:[rp][el]a[\w-]+)[^]*/, + O = /stretch|:\s*\w+\-(?:conte|avail)/, + S = /([^-])(image-set\()/, + k = 1, + P = 1, + _ = 0, + L = 1, + T = [], + j = [], + I = 0, + M = null, + R = 0 + return ( + (s.use = function e(t) { + switch (t) { + case void 0: + case null: + I = j.length = 0 + break + default: + if ('function' == typeof t) j[I++] = t + else if ('object' == typeof t) for (var n = 0, r = t.length; n < r; ++n) e(t[n]) + else R = 0 | !!t + } + return e + }), + (s.set = l), + void 0 !== e && l(e), + s + ) + })(s)), + (ld = []), + (nd = function (e) { + ld.push(e) + }), + ad.use( + [].concat(bp, [ + function (e, t, n) { + 2 === e && n.length && 0 < n[0].lastIndexOf(id) && (n[0] = n[0].replace(od, Td)) + }, + function (e, t, n, r, i, o, a, l, s, c) { + switch (e) { + case 1: + if (0 === s && 64 === t.charCodeAt(0)) return nd(t + ';'), '' + break + case 2: + if (0 === l) return t + '/*|*/' + break + case 3: + switch (l) { + case 102: + case 112: + return nd(n[0] + t), '' + default: + return t + (0 === c ? '/*|*/' : '') + } + case -2: + t.split('/*|*/}').forEach(Ld) + } + }, + function (e) { + if (-2 === e) return (e = ld), (ld = []), e + }, + ]), + ), + (jd.hash = bp.length + ? bp + .reduce(function (e, t) { + return t.name || Ju(15), xd(e, t.name) + }, 5381) + .toString() + : ''), + jd) + + function Ld(e) { + if (e) + try { + nd(e + '}') + } catch (t) { + } + } + + function Td(e, t, n) { + return 0 < t && -1 !== n.slice(0, t).indexOf(id) && n.slice(t - id.length, t) !== id + ? '.' + rd + : e + } + + function jd(e, t, n, r) { + return ( + void 0 === r && (r = '&'), + (e = e.replace(Od, '')), + (e = t && n ? n + ' ' + t + ' { ' + e + ' }' : e), + (rd = r), + (id = t), + (od = new RegExp('\\' + id + '\\b', 'g')), + ad(n || !t ? '' : t, e) + ) + } + + function Id() { + return l.exports.useContext(Sd) || Pd + } + + function Md() { + return l.exports.useContext(kd) || _d + } + + var Rd = (function () { + function e(e, t) { + var n = this + ;(this.inject = function (e) { + e.hasNameForId(n.id, n.name) || + e.insertRules(n.id, n.name, _d.apply(void 0, n.stringifyArgs)) + }), + (this.toString = function () { + return Ju(12, String(n.name)) + }), + (this.name = e), + (this.id = 'sc-keyframes-' + e), + (this.stringifyArgs = t) + } + + return ( + (e.prototype.getName = function () { + return this.name + }), + e + ) + })(), + Dd = /([A-Z])/g, + Ad = /^ms-/ + + function zd(e) { + return e.replace(Dd, '-$1').toLowerCase().replace(Ad, '-ms-') + } + + function Nd(e, t) { + var n = [] + return ( + Object.keys(e).forEach(function (t) { + if (!Hd(e[t])) { + if (Fu(e[t])) return n.push.apply(n, Nd(e[t], t)), n + if (Wu(e[t])) return n.push(zd(t) + ':', e[t], ';'), n + n.push( + zd(t) + + ': ' + + (null == (r = e[(t = t)]) || 'boolean' == typeof r || '' === r + ? '' + : 'number' != typeof r || 0 === r || t in xu + ? String(r).trim() + : r + 'px') + + ';', + ) + } + var r + return n + }), + t ? [t + ' {'].concat(n, ['}']) : n + ) + } + + var Hd = function (e) { + return null == e || !1 === e || '' === e + } + + function Fd(e, t, n) { + if (Array.isArray(e)) { + for (var r, i = [], o = 0, a = e.length; o < a; o += 1) + '' !== (r = Fd(e[o], t, n)) && (Array.isArray(r) ? i.push.apply(i, r) : i.push(r)) + return i + } + return Hd(e) + ? '' + : Zu(e) + ? '.' + e.styledComponentId + : Wu(e) + ? 'function' != typeof (l = e) || (l.prototype && l.prototype.isReactComponent) || !t + ? e + : Fd(e(t), t, n) + : e instanceof Rd + ? n + ? (e.inject(n), e.getName()) + : e + : Fu(e) + ? Nd(e) + : e.toString() + var l + } + + function Bd(e) { + for (var t = arguments.length, n = new Array(1 < t ? t - 1 : 0), r = 1; r < t; r++) + n[r - 1] = arguments[r] + return Wu(e) || Fu(e) + ? Fd(Hu(Bu, [e].concat(n))) + : 0 === n.length && 1 === e.length && 'string' == typeof e[0] + ? e + : Fd(Hu(e, n)) + } + + var Vd = function (e) { + return 'function' == typeof e || ('object' == typeof e && null !== e && !Array.isArray(e)) + }, + Wd = function (e) { + return '__proto__' !== e && 'constructor' !== e && 'prototype' !== e + } + + function Gd(e) { + for (var t = arguments.length, n = new Array(1 < t ? t - 1 : 0), r = 1; r < t; r++) + n[r - 1] = arguments[r] + for (var i, o, a, l = 0, s = n; l < s.length; l++) { + var c = s[l] + if (Vd(c)) + for (var u in c) + Wd(u) && + ((i = e), + (o = c[u]), + (a = void 0), + (a = i[(u = u)]), + Vd(o) && Vd(a) ? Gd(a, o) : (i[u] = o)) + } + return e + } + + function Zd(e) { + return String.fromCharCode(e + (25 < e ? 39 : 97)) + } + + var Ud = /(a)(d)/gi + + function Xd(e) { + for (var t = '', n = Math.abs(e); 52 < n; n = (n / 52) | 0) t = Zd(n % 52) + t + return (Zd(n % 52) + t).replace(Ud, '$1-$2') + } + + function Yd(e) { + for (var t = 0; t < e.length; t += 1) { + var n = e[t] + if (Wu(n) && !Zu(n)) return !1 + } + return !0 + } + + function qd(e, t, n) { + return void 0 === n && (n = Vu), (e.theme !== n.theme && e.theme) || t || n.theme + } + + var $d = (function () { + function e(e, t) { + ;(this.rules = e), + (this.staticRulesId = ''), + (this.isStatic = Yd(e)), + (this.componentId = t), + (this.baseHash = Ed(t)), + Cd.registerId(t) + } + + return ( + (e.prototype.generateAndInjectStyles = function (e, t, n) { + var r = this.componentId + if (this.isStatic && !n.hash) { + if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) + return this.staticRulesId + var i = Fd(this.rules, e, t).join(''), + o = Xd(xd(this.baseHash, i.length) >>> 0) + return ( + t.hasNameForId(r, o) || ((i = n(i, '.' + o, void 0, r)), t.insertRules(r, o, i)), + (this.staticRulesId = o) + ) + } + for ( + var a = this.rules.length, l = xd(this.baseHash, n.hash), s = '', c = 0; + c < a; + c++ + ) { + var u = this.rules[c] + 'string' == typeof u || + ((u = Fd(u, e, t)), (u = Array.isArray(u) ? u.join('') : u), (l = xd(l, u + c))), + (s += u) + } + return ( + (i = Xd(l >>> 0)), + t.hasNameForId(r, i) || ((o = n(s, '.' + i, void 0, r)), t.insertRules(r, i, o)), + i + ) + }), + e + ) + })(), + Kd = /[[\].#*$><+~=|^:(),"'`-]+/g, + Qd = /(^-|-$)/g + + function Jd(e) { + return e.replace(Kd, '-').replace(Qd, '') + } + + function ef(e) { + return 'string' == typeof e && !0 + } + + function tf(e) { + return Xd(Ed(e) >>> 0) + } + + var nf = he.createContext() + + function rf(e) { + var t = l.exports.useContext(nf), + n = l.exports.useMemo( + function () { + return ( + (n = e.theme), + (r = t), + n + ? Wu(n) + ? n(r) + : Array.isArray(n) || 'object' != typeof n + ? Ju(8) + : r + ? Nu({}, r, {}, n) + : n + : Ju(14) + ) + var n, r + }, + [e.theme, t], + ) + return e.children ? he.createElement(nf.Provider, {value: n}, e.children) : null + } + + nf.Consumer + var of = {} + + function af(e, t, n) { + var r = e.attrs, + i = e.componentStyle, + o = e.defaultProps, + a = e.foldedComponentIds, + s = e.shouldForwardProp, + c = e.styledComponentId + e = e.target + l.exports.useDebugValue(c) + o = (function (e, t, n) { + var r = Nu({}, t, {theme: (e = void 0 === e ? Vu : e)}), + i = {} + return ( + n.forEach(function (e) { + var t, + n, + o, + a = e + for (t in (a = Wu(a) ? a(r) : a)) + r[t] = i[t] = + 'className' === t ? ((n = i[t]), (o = a[t]), n && o ? n + ' ' + o : n || o) : a[t] + }), + [r, i] + ) + })(qd(t, l.exports.useContext(nf), o) || Vu, t, r) + var u, + d = o[0], + f = + ((o = o[1]), + (i = + ((i = i), + (r = 0 < r.length), + (d = d), + (f = Id()), + (h = Md()), + (r = + i.isStatic && !r + ? i.generateAndInjectStyles(Vu, f, h) + : i.generateAndInjectStyles(d, f, h)), + l.exports.useDebugValue(r), + r)), + (d = n), + o.$as || t.$as || o.as || t.as || e), + h = ef(f), + p = o !== t ? Nu({}, t, {}, o) : t, + g = s || (h && Ou), + m = {} + for (u in p) + '$' !== u[0] && + 'as' !== u && + ('forwardedAs' === u ? (m.as = p[u]) : (g && !g(u, Ou)) || (m[u] = p[u])) + return ( + t.style && o.style !== t.style && (m.style = Nu({}, t.style, {}, o.style)), + (m.className = Array.prototype + .concat(a, c, i !== c ? i : null, t.className, o.className) + .filter(Boolean) + .join(' ')), + (m.ref = d), + l.exports.createElement(f, m) + ) + } + + function lf(e, t, n) { + function r(e, t) { + return af(i, e, t) + } + + var i, + o = Zu(e), + a = !ef(e), + l = + void 0 === (u = t.displayName) + ? ef((l = e)) + ? 'styled.' + l + : 'Styled(' + Gu(l) + ')' + : u, + s = + void 0 === (u = t.componentId) + ? ((c = t.displayName), + (s = t.parentComponentId), + (c = 'string' != typeof c ? 'sc' : Jd(c)), + (of[c] = (of[c] || 0) + 1), + (c = c + '-' + tf(c + of[c])), + s ? s + '-' + c : c) + : u, + c = t.attrs, + u = void 0 === c ? Bu : c, + d = + t.displayName && t.componentId + ? Jd(t.displayName) + '-' + t.componentId + : t.componentId || s, + f = o && e.attrs ? Array.prototype.concat(e.attrs, u).filter(Boolean) : u, + h = + ((u = t.shouldForwardProp), + o && + e.shouldForwardProp && + (u = u + ? function (n, r) { + return e.shouldForwardProp(n, r) && t.shouldForwardProp(n, r) + } + : e.shouldForwardProp), + new $d(o ? e.componentStyle.rules.concat(n) : n, d)) + return ( + (r.displayName = l), + ((i = he.forwardRef(r)).attrs = f), + (i.componentStyle = h), + (i.displayName = l), + (i.shouldForwardProp = u), + (i.foldedComponentIds = o + ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) + : Bu), + (i.styledComponentId = d), + (i.target = o ? e.target : e), + (i.withComponent = function (e) { + var r = t.componentId, + i = (function (e, t) { + if (null == e) return {} + for (var n, r = {}, i = Object.keys(e), o = 0; o < i.length; o++) + (n = i[o]), 0 <= t.indexOf(n) || (r[n] = e[n]) + return r + })(t, ['componentId']) + r = r && r + '-' + (ef(e) ? e : Jd(Gu(e))) + return lf(e, Nu({}, i, {attrs: f, componentId: r}), n) + }), + Object.defineProperty(i, 'defaultProps', { + get: function () { + return this._foldedDefaultProps + }, + set: function (t) { + this._foldedDefaultProps = o ? Gd({}, e.defaultProps, t) : t + }, + }), + (i.toString = function () { + return '.' + i.styledComponentId + }), + a && + zu(i, e, { + attrs: !0, + componentStyle: !0, + displayName: !0, + foldedComponentIds: !0, + shouldForwardProp: !0, + self: !0, + styledComponentId: !0, + target: !0, + withComponent: !0, + }), + i + ) + } + + function sf(e) { + return (function e(t, n, r) { + if ((void 0 === r && (r = Vu), !Jc.exports.isValidElementType(n))) return Ju(1, String(n)) + + function i() { + return t(n, r, Bd.apply(void 0, arguments)) + } + + return ( + (i.withConfig = function (i) { + return e(t, n, Nu({}, r, {}, i)) + }), + (i.attrs = function (i) { + return e( + t, + n, + Nu({}, r, { + attrs: Array.prototype.concat(r.attrs, i).filter(Boolean), + }), + ) + }), + i + ) + })(lf, e) + } + ;[ + 'a', + 'abbr', + 'address', + 'area', + 'article', + 'aside', + 'audio', + 'b', + 'base', + 'bdi', + 'bdo', + 'big', + 'blockquote', + 'body', + 'br', + 'button', + 'canvas', + 'caption', + 'cite', + 'code', + 'col', + 'colgroup', + 'data', + 'datalist', + 'dd', + 'del', + 'details', + 'dfn', + 'dialog', + 'div', + 'dl', + 'dt', + 'em', + 'embed', + 'fieldset', + 'figcaption', + 'figure', + 'footer', + 'form', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'head', + 'header', + 'hgroup', + 'hr', + 'html', + 'i', + 'iframe', + 'img', + 'input', + 'ins', + 'kbd', + 'keygen', + 'label', + 'legend', + 'li', + 'link', + 'main', + 'map', + 'mark', + 'marquee', + 'menu', + 'menuitem', + 'meta', + 'meter', + 'nav', + 'noscript', + 'object', + 'ol', + 'optgroup', + 'option', + 'output', + 'p', + 'param', + 'picture', + 'pre', + 'progress', + 'q', + 'rp', + 'rt', + 'ruby', + 's', + 'samp', + 'script', + 'section', + 'select', + 'small', + 'source', + 'span', + 'strong', + 'style', + 'sub', + 'summary', + 'sup', + 'table', + 'tbody', + 'td', + 'textarea', + 'tfoot', + 'th', + 'thead', + 'time', + 'title', + 'tr', + 'track', + 'u', + 'ul', + 'var', + 'video', + 'wbr', + 'circle', + 'clipPath', + 'defs', + 'ellipse', + 'foreignObject', + 'g', + 'image', + 'line', + 'linearGradient', + 'marker', + 'mask', + 'path', + 'pattern', + 'polygon', + 'polyline', + 'radialGradient', + 'rect', + 'stop', + 'svg', + 'text', + 'tspan', + ].forEach(function (e) { + sf[e] = sf(e) + }) + var cf = (function () { + function e(e, t) { + ;(this.rules = e), (this.componentId = t), (this.isStatic = Yd(e)) + } + + var t = e.prototype + return ( + (t.createStyles = function (e, t, n, r) { + ;(r = r(Fd(this.rules, t, n).join(''), '')), + (t = this.componentId + e), + n.insertRules(t, t, r) + }), + (t.removeStyles = function (e, t) { + t.clearRules(this.componentId + e) + }), + (t.renderStyles = function (e, t, n, r) { + Cd.registerId(this.componentId + e), this.removeStyles(e, n), this.createStyles(e, t, n, r) + }), + e + ) + })() + + function uf(e) { + for (var t = arguments.length, n = new Array(1 < t ? t - 1 : 0), r = 1; r < t; r++) + n[r - 1] = arguments[r] + e = Bd.apply(void 0, [e].concat(n)) + var i = 'sc-global-' + tf(JSON.stringify(e)), + o = new cf(e, i) + return he.memo(function e(t) { + var n = Id(), + r = Md(), + a = l.exports.useContext(nf), + s = l.exports.useRef(null), + c = (null === s.current && (s.current = n.allocateGSInstance(i)), s.current) + return ( + o.isStatic + ? o.renderStyles(c, Qu, n, r) + : ((s = Nu({}, t, {theme: qd(t, a, e.defaultProps)})), o.renderStyles(c, s, n, r)), + l.exports.useEffect(function () { + return function () { + return o.removeStyles(c, n) + } + }, Bu), + null + ) + }) + } + + var df, + ff, + hf, + pf, + gf, + mf, + vf, + yf, + bf, + wf, + Cf, + xf, + Ef, + Of, + Sf, + kf, + Pf, + _f, + Lf, + Tf, + jf, + If, + Mf, + Rf, + Df, + Af, + zf, + Nf, + Hf, + Ff, + Bf, + Vf, + Wf, + Gf, + Zf, + Uf, + Xf, + Yf, + qf, + $f, + Kf, + Qf, + Jf, + eh, + th, + nh, + rh, + ih, + oh, + ah, + lh, + sh, + ch + fe = sf + + function uh() { + } + + function dh(e) { + var t = -1, + n = null == e ? 0 : e.length + for (this.clear(); ++t < n;) { + var r = e[t] + this.set(r[0], r[1]) + } + } + + function fh(e) { + var t = -1, + n = null == e ? 0 : e.length + for (this.clear(); ++t < n;) { + var r = e[t] + this.set(r[0], r[1]) + } + } + + function hh(e) { + var t = -1, + n = null == e ? 0 : e.length + for (this.clear(); ++t < n;) { + var r = e[t] + this.set(r[0], r[1]) + } + } + + function ph(e) { + ;(e = this.__data__ = new fh(e)), (this.size = e.size) + } + + function gh(e, t, n) { + ;((void 0 === n || kh(e[t], n)) && (void 0 !== n || t in e)) || vh(e, t, n) + } + + function mh(e, t) { + for (var n = e.length; n--;) if (kh(e[n][0], t)) return n + return -1 + } + + function vh(e, t, n) { + '__proto__' == t && Vf + ? Vf(e, t, {configurable: !0, enumerable: !0, value: n, writable: !0}) + : (e[t] = n) + } + + function yh(e) { + if (null == e) return void 0 === e ? wf : vf + if (Bf && Bf in Object(e)) { + var t = e, + n = Tf.call(t, Bf), + r = t[Bf] + try { + var i = !(t[Bf] = void 0) + } catch (a) { + } + var o = If.call(t) + return i && (n ? (t[Bf] = r) : delete t[Bf]), o + } + return If.call(e) + } + + function bh(e) { + return jh(e) && yh(e) == hf + } + + function wh(e, t, n, r, i) { + e !== t && + Yf( + t, + function (o, a) { + var l, s, c, u, d, f, h, p, g, m, v, y, b, w + ;(i = i || new ph()), + Th(o) + ? ((s = t), + (u = n), + (d = wh), + (f = r), + (h = i), + (v = Sh((l = e), (c = a))), + (y = Sh(s, c)), + (b = h.get(y)) || + ((s = void 0 === (b = f ? f(v, y, c + '', l, s, h) : void 0)) && + ((g = !(p = eh(y)) && th(y)), + (m = !p && !g && rh(y)), + (b = y), + p || g || m + ? (b = eh(v) + ? v + : jh((w = v)) && Ph(w) + ? (function (e, t) { + var n = -1, + r = e.length + for (t = t || Array(r); ++n < r;) t[n] = e[n] + return t + })(v) + : g + ? (function (e, t) { + return t + ? e.slice() + : ((t = e.length), + (t = Af ? Af(t) : new e.constructor(t)), + e.copy(t), + t) + })(y, !(s = !1)) + : m + ? (function (e, t) { + var n, r + return ( + (t = t + ? ((n = e.buffer), + (r = new n.constructor(n.byteLength)), + new Df(r).set(new Df(n)), + r) + : e.buffer), + new e.constructor(t, e.byteOffset, e.length) + ) + })(y, !(s = !1)) + : []) + : (function (e) { + if (jh(e) && yh(e) == yf) + return null === (e = zf(e)) + ? 1 + : 'function' == + typeof (e = Tf.call(e, 'constructor') && e.constructor) && + e instanceof e && + Lf.call(e) == Mf + })(y) || Jf(y) + ? Jf((b = v)) + ? (b = (function (e) { + return (function (e, t, n, r) { + for (var i = !n, o = ((n = n || {}), -1), a = t.length; ++o < a;) { + var l = t[o], + s = void 0 + void 0 === s && (s = e[l]), + (i + ? vh + : function (e, t, n) { + var r = e[t] + ;(Tf.call(e, t) && + kh(r, n) && + (void 0 !== n || t in e)) || + vh(e, t, n) + })(n, l, s) + } + return n + })(e, Ih(e)) + })(v)) + : (Th(v) && !_h(v)) || + (b = (function (e) { + return 'function' != typeof e.constructor || Oh(e) ? {} : Xf(zf(e)) + })(y)) + : (s = !1)), + s && (h.set(y, b), d(b, y, u, f, h), h.delete(y))), + gh(l, c, b)) + : ((p = r ? r(Sh(e, a), o, a + '', e, t, i) : void 0), + gh(e, a, (p = void 0 === p ? o : p))) + }, + Ih, + ) + } + + function Ch(e, t) { + var n, r + e = e.__data__ + return ( + 'string' == (r = typeof (n = t)) || 'number' == r || 'symbol' == r || 'boolean' == r + ? '__proto__' !== n + : null === n + ) + ? e['string' == typeof t ? 'string' : 'hash'] + : e.map + } + + function xh(e, t) { + return ( + (t = t), + (function (e) { + if (Th(e) && (!jf || !(jf in e))) + return (_h(e) ? Rf : Cf).test( + (function (e) { + if (null != e) { + try { + return Lf.call(e) + } catch (t) { + } + try { + return e + '' + } catch (t) { + } + } + return '' + })(e), + ) + })((e = null == (e = e) ? void 0 : e[t])) + ? e + : void 0 + ) + } + + function Eh(e, t) { + var n = typeof e + return ( + (t = null == t ? ff : t) && + ('number' == n || ('symbol' != n && xf.test(e))) && + -1 < e && + e % 1 == 0 && + e < t + ) + } + + function Oh(e) { + var t = e && e.constructor + return e === (('function' == typeof t && t.prototype) || _f) + } + + function Sh(e, t) { + if (('constructor' !== t || 'function' != typeof e[t]) && '__proto__' != t) return e[t] + } + + function kh(e, t) { + return e === t || (e != e && t != t) + } + + function Ph(e) { + return null != e && Lh(e.length) && !_h(e) + } + + function _h(e) { + if (Th(e)) return (e = yh(e)) == gf || e == mf || e == pf || e == bf + } + + function Lh(e) { + return 'number' == typeof e && -1 < e && e % 1 == 0 && e <= ff + } + + function Th(e) { + var t = typeof e + return null != e && ('object' == t || 'function' == t) + } + + function jh(e) { + return null != e && 'object' == typeof e + } + + function Ih(e) { + return Ph(e) + ? (function (e, t) { + var n, + r = eh(e), + i = !r && Jf(e), + o = !r && !i && th(e), + a = !r && !i && !o && rh(e), + l = r || i || o || a, + s = l + ? (function (e, t) { + for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n) + return r + })(e.length, String) + : [], + c = s.length + for (n in e) + (!t && !Tf.call(e, n)) || + (l && + ('length' == n || + (o && ('offset' == n || 'parent' == n)) || + (a && ('buffer' == n || 'byteLength' == n || 'byteOffset' == n)) || + Eh(n, c))) || + s.push(n) + return s + })(e, !0) + : (function (e) { + if (!Th(e)) { + var t = e, + n = [] + if (null != t) for (var r in Object(t)) n.push(r) + return n + } + var i, + o = Oh(e), + a = [] + for (i in e) ('constructor' != i || (!o && Tf.call(e, i))) && a.push(i) + return a + })(e) + } + + function Mh(e) { + return e + } + + function Rh(e, t) { + return e.reduce(function (e, r) { + return Object.assign(e, n({}, r, t)) + }, {}) + } + ;(s = (kr = Zr = {exports: {}}).exports), + (df = '__lodash_hash_undefined__'), + (ff = 9007199254740991), + (hf = '[object Arguments]'), + (pf = '[object AsyncFunction]'), + (gf = '[object Function]'), + (mf = '[object GeneratorFunction]'), + (vf = '[object Null]'), + (yf = '[object Object]'), + (bf = '[object Proxy]'), + (wf = '[object Undefined]'), + (Cf = /^\[object .+?Constructor\]$/), + (xf = /^(?:0|[1-9]\d*)$/), + ((Ef = {})['[object Float32Array]'] = + Ef['[object Float64Array]'] = + Ef['[object Int8Array]'] = + Ef['[object Int16Array]'] = + Ef['[object Int32Array]'] = + Ef['[object Uint8Array]'] = + Ef['[object Uint8ClampedArray]'] = + Ef['[object Uint16Array]'] = + Ef['[object Uint32Array]'] = + !0), + (Ef[hf] = + Ef['[object Array]'] = + Ef['[object ArrayBuffer]'] = + Ef['[object Boolean]'] = + Ef['[object DataView]'] = + Ef['[object Date]'] = + Ef['[object Error]'] = + Ef[gf] = + Ef['[object Map]'] = + Ef['[object Number]'] = + Ef[yf] = + Ef['[object RegExp]'] = + Ef['[object Set]'] = + Ef['[object String]'] = + Ef['[object WeakMap]'] = + !1), + (bp = 'object' == typeof a && a && a.Object === Object && a), + (a = 'object' == typeof self && self && self.Object === Object && self), + (a = bp || a || Function('return this')()), + (s = s && !s.nodeType && s), + (s = (Of = s && kr && !kr.nodeType && kr) && Of.exports === s), + (Sf = s && bp.process), + (bp = + (bp = (function () { + try { + var e = Of && Of.require && Of.require('util').types + return e || (Sf && Sf.binding && Sf.binding('util')) + } catch (t) { + } + })()) && bp.isTypedArray), + (sv = Array.prototype), + (hp = Function.prototype), + (_f = Object.prototype), + (Pp = a['__core-js_shared__']), + (Lf = hp.toString), + (Tf = _f.hasOwnProperty), + (jf = (hp = /[^.]+$/.exec((Pp && Pp.keys && Pp.keys.IE_PROTO) || '')) + ? 'Symbol(src)_1.' + hp + : ''), + (If = _f.toString), + (Mf = Lf.call(Object)), + (Rf = RegExp( + '^' + + Lf.call(Tf) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + + '$', + )), + (Pp = s ? a.Buffer : void 0), + (hp = a.Symbol), + (Df = a.Uint8Array), + (Af = Pp ? Pp.allocUnsafe : void 0), + (kf = Object.getPrototypeOf), + (Pf = Object), + (zf = function (e) { + return kf(Pf(e)) + }), + (Nf = Object.create), + (Hf = _f.propertyIsEnumerable), + (Ff = sv.splice), + (Bf = hp ? hp.toStringTag : void 0), + (Vf = (function () { + try { + var e = xh(Object, 'defineProperty') + return e({}, '', {}), e + } catch (t) { + } + })()), + (s = Pp ? Pp.isBuffer : void 0), + (Wf = Math.max), + (Gf = Date.now), + (Zf = xh(a, 'Map')), + (Uf = xh(Object, 'create')), + (Xf = function (e) { + return Th(e) + ? Nf + ? Nf(e) + : ((uh.prototype = e), (e = new uh()), (uh.prototype = void 0), e) + : {} + }), + (dh.prototype.clear = function () { + ;(this.__data__ = Uf ? Uf(null) : {}), (this.size = 0) + }), + (dh.prototype.delete = function (e) { + return (e = this.has(e) && delete this.__data__[e]), (this.size -= e ? 1 : 0), e + }), + (dh.prototype.get = function (e) { + var t, + n = this.__data__ + return Uf ? ((t = n[e]) === df ? void 0 : t) : Tf.call(n, e) ? n[e] : void 0 + }), + (dh.prototype.has = function (e) { + var t = this.__data__ + return Uf ? void 0 !== t[e] : Tf.call(t, e) + }), + (dh.prototype.set = function (e, t) { + var n = this.__data__ + return (this.size += this.has(e) ? 0 : 1), (n[e] = Uf && void 0 === t ? df : t), this + }), + (fh.prototype.clear = function () { + ;(this.__data__ = []), (this.size = 0) + }), + (fh.prototype.delete = function (e) { + var t = this.__data__ + return !( + (e = mh(t, e)) < 0 || (e == t.length - 1 ? t.pop() : Ff.call(t, e, 1), --this.size, 0) + ) + }), + (fh.prototype.get = function (e) { + var t = this.__data__ + return (e = mh(t, e)) < 0 ? void 0 : t[e][1] + }), + (fh.prototype.has = function (e) { + return -1 < mh(this.__data__, e) + }), + (fh.prototype.set = function (e, t) { + var n = this.__data__, + r = mh(n, e) + return r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this + }), + (hh.prototype.clear = function () { + ;(this.size = 0), + (this.__data__ = { + hash: new dh(), + map: new (Zf || fh)(), + string: new dh(), + }) + }), + (hh.prototype.delete = function (e) { + return (e = Ch(this, e).delete(e)), (this.size -= e ? 1 : 0), e + }), + (hh.prototype.get = function (e) { + return Ch(this, e).get(e) + }), + (hh.prototype.has = function (e) { + return Ch(this, e).has(e) + }), + (hh.prototype.set = function (e, t) { + var n = Ch(this, e), + r = n.size + return n.set(e, t), (this.size += n.size == r ? 0 : 1), this + }), + (ph.prototype.clear = function () { + ;(this.__data__ = new fh()), (this.size = 0) + }), + (ph.prototype.delete = function (e) { + var t = this.__data__ + e = t.delete(e) + return (this.size = t.size), e + }), + (ph.prototype.get = function (e) { + return this.__data__.get(e) + }), + (ph.prototype.has = function (e) { + return this.__data__.has(e) + }), + (ph.prototype.set = function (e, t) { + var n = this.__data__ + if (n instanceof fh) { + var r = n.__data__ + if (!Zf || r.length < 199) return r.push([e, t]), (this.size = ++n.size), this + n = this.__data__ = new hh(r) + } + return n.set(e, t), (this.size = n.size), this + }), + (Yf = function (e, t, n) { + for (var r = -1, i = Object(e), o = n(e), a = o.length; a--;) { + var l = o[++r] + if (!1 === t(i[l], l, i)) break + } + return e + }), + (qf = Vf + ? function (e, t) { + return Vf(e, 'toString', { + configurable: !0, + enumerable: !1, + value: + ((n = t), + function () { + return n + }), + writable: !0, + }) + var n + } + : Mh), + (Kf = $f = 0), + (Qf = function () { + var e = Gf(), + t = 16 - (e - Kf) + if (((Kf = e), 0 < t)) { + if (800 <= ++$f) return arguments[0] + } else $f = 0 + return qf.apply(void 0, arguments) + }), + (Jf = bh( + (function () { + return arguments + })(), + ) + ? bh + : function (e) { + return jh(e) && Tf.call(e, 'callee') && !Hf.call(e, 'callee') + }), + (eh = Array.isArray), + (th = + s || + function () { + return !1 + }), + (rh = bp + ? ((nh = bp), + function (e) { + return nh(e) + }) + : function (e) { + return jh(e) && Lh(e.length) && !!Ef[yh(e)] + }), + (ih = function (e, t, n) { + wh(e, t, n) + }), + (oh = function (e, t) { + var n = -1, + r = t.length, + i = 1 < r ? t[r - 1] : void 0, + o = 2 < r ? t[2] : void 0 + for ( + i = 3 < ih.length && 'function' == typeof i ? (r--, i) : void 0, + o && + (function (e, t, n) { + if (Th(n)) { + var r = typeof t + return ('number' == r ? Ph(n) && Eh(t, n.length) : 'string' == r && (t in n)) + ? kh(n[t], e) + : void 0 + } + })(t[0], t[1], o) && + ((i = r < 3 ? void 0 : i), (r = 1)), + e = Object(e); + ++n < r; + ) { + var a = t[n] + a && ih(e, a, n) + } + return e + }), + (sv = Qf( + ((lh = oh), + (ch = Mh), + (sh = Wf(void 0 === (sh = ah) ? lh.length - 1 : sh, 0)), + function () { + for (var e = arguments, t = -1, n = Wf(e.length - sh, 0), r = Array(n); ++t < n;) + r[t] = e[sh + t] + t = -1 + for (var i = Array(sh + 1); ++t < sh;) i[t] = e[t] + i[sh] = ch(r) + var o = lh, + a = this, + l = i + switch (l.length) { + case 0: + return o.call(a) + case 1: + return o.call(a, l[0]) + case 2: + return o.call(a, l[0], l[1]) + case 3: + return o.call(a, l[0], l[1], l[2]) + } + return o.apply(a, l) + }), + oh + '', + )), + (kr.exports = sv) + var Dh = Zr.exports + + function Ah(e, t) { + ;(null == t || t > e.length) && (t = e.length) + for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n] + return r + } + + function zh(e) { + if (('undefined' != typeof Symbol && null != e[Symbol.iterator]) || null != e['@@iterator']) + return Array.from(e) + } + + function Nh(e, t) { + if (e) { + if ('string' == typeof e) return Ah(e, t) + var n = Object.prototype.toString.call(e).slice(8, -1) + return 'Map' === (n = 'Object' === n && e.constructor ? e.constructor.name : n) || 'Set' === n + ? Array.from(e) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? Ah(e, t) + : void 0 + } + } + + function Hh(e) { + return ( + (function (e) { + if (Array.isArray(e)) return Ah(e) + })(e) || + zh(e) || + Nh(e) || + (function () { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ) + })() + ) + } + + function Fh(e, t) { + function n(t) { + return 'Sfx'.concat(e).concat(t ? '-'.concat(t) : '') + } + + var r = [] + return ( + t && + (Array.isArray(t) + ? r.push.apply( + r, + Hh( + t + .filter(function (e) { + return 'string' == typeof e + }) + .map(n), + ), + ) + : 'string' == typeof t && r.push(n(t))), + 0 === r.length && r.push(n()), + r.join(' ') + ) + } + + function Bh(e, t) { + var n = l.exports.forwardRef(e) + return (n.displayName = t || e.name), n + } + + function Vh(e) { + return Object.values(e) + } + + function Wh(e) { + return Object.keys(e).reduce(function (t, r) { + var i = e[r] + return (i.displayName = ''.concat(r)), Object.assign(t, n({}, r, i)) + }, {}) + } + + function Gh(e, t) { + 'function' == typeof e ? e(t) : e && (e.current = t) + } + + function Zh(e, t) { + return l.exports.useMemo( + function () { + return null == e && null == t + ? null + : function (n) { + Gh(e, n), Gh(t, n) + } + }, + [e, t], + ) + } + + function Uh(e, t, n) { + return ( + (t = 1 < arguments.length && void 0 !== t ? t : 0), + (n = (2 < arguments.length ? n : void 0) || 1e6), + Math.min(Math.max(t, +e), n) + ) + } + + function Xh(e, t, n, r, i) { + return ((e - t) * (i - r)) / (n - t) + r + } + + function Yh() { + for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] + return '#'.concat(t.map(ep).join('')) + } + + function qh(e) { + var t + return e.startsWith('#') + ? (4 === (t = e).length && + (t = '#'.concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]).concat(e[3]).concat(e[3])), + tp.apply(void 0, Hh(Jh(t)))) + : e.startsWith('rgb') + ? ((t = Qh(e)), tp.apply(void 0, Hh(t))) + : 'string' == typeof e + ? [0, 0, 0] + : e + } + + function $h(e) { + return e.startsWith('#') + ? 7 === e.length + ? e + : '#'.concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]) + : e.startsWith('rgb') + ? Yh.apply(void 0, Hh(Qh(e))) + : 'string' == typeof e + ? '#000000' + : e + } + + function Kh(e) { + return /^#[\da-f]{6}$/i.test(e) + } + + var Qh = function (e) { + return e + .replaceAll(/[^\d,]/gi, '') + .split(',') + .map(function (e) { + return +e + }) + }, + Jh = function (e) { + return e + ? [ + Number.parseInt(e.slice(1, 3), 16), + Number.parseInt(e.slice(3, 5), 16), + Number.parseInt(e.slice(5, 7), 16), + ] + : [0, 0, 0] + }, + ep = function (e) { + return e.toString(16).padStart(2, '0') + }, + tp = function () { + for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] + var r, + i = t[0], + o = t[1], + a = t[2], + l = ((i /= 255), (o /= 255), (a /= 255), Math.min(i, o, a)), + s = Math.max(i, o, a), + c = (s + l) / 2 + if (s === l) d = r = 0 + else { + var u = s - l, + d = 0.5 < c ? u / (2 - s - l) : u / (s + l) + switch (s) { + case i: + r = (o - a) / u + (o < a ? 6 : 0) + break + case o: + r = (a - i) / u + 2 + break + case a: + r = (i - o) / u + 4 + break + default: + r = 0 + } + r /= 6 + } + return [Math.round(360 * r), Math.round(100 * d), Math.round(100 * c)] + }, + np = function (e, t) { + return 0 === t && (0 === e || 1 === e) + }, + rp = function (e, t) { + return 0 === e && 1 === t + } + + function ip(e) { + if (!e) return null + e = e.getBoundingClientRect() + var t = document.body, + n = document.documentElement, + r = window.pageYOffset || n.scrollTop || t.scrollTop, + i = window.pageXOffset || n.scrollLeft || t.scrollLeft, + o = n.clientTop || t.clientTop || 0 + ;(n = n.clientLeft || t.clientLeft || 0), (t = e.top + r - o), (r = e.left + i - n) + return { + top: Math.round(t), + left: Math.round(r), + width: e.width, + height: e.height, + } + } + + function op(e, t) { + return e - t + } + + function ap(e, t, n) { + return (100 * (e - t)) / (n - t) + } + + function lp(e) { + var t = e.values, + n = e.newValue + e = e.index + return ((t = t.slice())[e] = n), t.sort(op) + } + + function sp(e) { + return (e && e.ownerDocument) || document + } + + function cp(e, t, n) { + return null == e ? t : Math.min(Math.max(t, e), n) + } + + function up(e, t) { + if (void 0 !== t.current && e.changedTouches) { + for (var n = 0; n < e.changedTouches.length; n += 1) { + var r = e.changedTouches[n] + if (r.identifier === t.current) return {x: r.clientX, y: r.clientY} + } + return !1 + } + return {x: e.clientX, y: e.clientY} + } + + var dp = { + horizontal: { + offset: function (e) { + return {left: ''.concat(e, '%')} + }, + leap: function (e) { + return {width: ''.concat(e, '%')} + }, + }, + 'horizontal-reverse': { + offset: function (e) { + return {right: ''.concat(e, '%')} + }, + leap: function (e) { + return {width: ''.concat(e, '%')} + }, + }, + vertical: { + offset: function (e) { + return {bottom: ''.concat(e, '%')} + }, + leap: function (e) { + return {height: ''.concat(e, '%')} + }, + }, + } + + function fp(e) { + var t = e.sliderRef, + n = e.activeIndex, + r = ((e = e.setActive), sp(t.current)) + ;(t.current.contains(r.activeElement) && + Number(r.activeElement.getAttribute('data-index')) === n) || + (null != (r = t.current.querySelector('[type="range"][data-index="'.concat(n, '"]'))) && + r.focus()), + e && e(n) + } + + var hp = {Xs: 'xs', Sm: 'sm', Md: 'md', Lg: 'lg', Xl: 'xl'}, + pp = { + TextPrimary: 'txt-primary', + TextPrimaryInvert: 'txt-primary-invert', + TextSecondary: 'txt-secondary', + TextSecondaryInvert: 'txt-secondary-invert', + TextPlaceholder: 'txt-placeholder', + AccentPrimary: 'accent-primary', + AccentPrimaryHover: 'accent-primary-hover', + AccentPrimaryActive: 'accent-primary-active', + AccentPrimaryDisabled: 'accent-primary-disabled', + BackgroundPrimary: 'bg-primary', + BackgroundPrimaryHover: 'bg-primary-hover', + BackgroundPrimaryActive: 'bg-primary-active', + BackgroundPrimary_0_5_Opacity: 'bg-primary-0-5-opacity', + BackgroundSecondary: 'bg-secondary', + IconsPrimary: 'icons-primary', + IconsPrimaryOpacity_0_6: 'icons-primary-opacity-0-6', + IconsSecondary: 'icons-secondary', + ButtonPrimaryText: 'btn-primary-text', + ButtonDisabledText: 'btn-disabled-text', + LinkPrimary: 'link-primary', + LinkHover: 'link-hover', + LinkActive: 'link-active', + BordersPrimary: 'borders-primary', + BordersSecondary: 'borders-secondary', + BordersStrong: 'borders-strong', + BordersInvert: 'borders-invert', + BorderActiveBottom: 'border-active-bottom', + ActiveSecondary: 'active-secondary', + ActiveSecondaryHover: 'active-secondary-hover', + ActiveSecondaryActive: 'active-secondary-active', + Tag: 'tag', + Error: 'error', + Success: 'success', + Warning: 'warning', + Info: 'info', + LightShadow: 'light-shadow', + }, + gp = { + TextExtraSmall: 'text-extra-small', + TextSmall: 'text-small', + TextNormal: 'text-normal', + TextEmphasis: 'text-emphasis', + TextExtraLarge: 'text-extra-large', + LabelExtraSmall: 'label-extra-small', + LabelSmall: 'label-small', + LabelNormal: 'label-normal', + LabelEmphasis: 'label-emphasis', + LabelExtraLarge: 'label-extra-large', + ButtonXs: 'btn-xs', + ButtonSm: 'btn-sm', + ButtonMd: 'btn-md', + ButtonLg: 'btn-lg', + ButtonXl: 'btn-xl', + InputSm: 'input-sm', + InputMd: 'input-md', + }, + mp = {Sm: 'sm', Md: 'md', Lg: 'lg'} + + function vp(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function yp(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? vp(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : vp(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + var bp = + (n( + (s = {}), + gp.LabelExtraSmall, + yp( + yp( + {}, + (a = { + fontFamily: (Pp = '"Roboto"'), + fontStyle: 'normal', + fontWeight: 'normal', + }), + ), + {}, + {fontSize: '10px', lineHeight: '12px'}, + ), + ), + n(s, gp.LabelSmall, yp(yp({}, a), {}, {fontSize: '12px', lineHeight: '14px'})), + n(s, gp.LabelNormal, yp(yp({}, a), {}, {fontSize: '14px', lineHeight: '16px'})), + n( + s, + gp.LabelEmphasis, + yp(yp({}, a), {}, {fontWeight: '500', fontSize: '14px', lineHeight: '16px'}), + ), + n( + s, + gp.LabelExtraLarge, + yp(yp({}, a), {}, {fontWeight: '500', fontSize: '24px', lineHeight: '28px'}), + ), + s), + wp = { + breakpoints: + (n((kr = {}), hp.Xs, 0), + n(kr, hp.Sm, 576), + n(kr, hp.Md, 768), + n(kr, hp.Lg, 992), + n(kr, hp.Xl, 1200), + kr), + typography: { + fontFamily: Pp, + baseLineHeight: 1.375, + font: yp( + yp({}, bp), + {}, + (n( + (sv = {}), + gp.TextExtraSmall, + yp(yp({}, bp[gp.LabelExtraSmall]), {}, {lineHeight: '1.3'}), + ), + n(sv, gp.TextSmall, yp(yp({}, bp[gp.LabelSmall]), {}, {lineHeight: '1.3'})), + n(sv, gp.TextNormal, yp(yp({}, bp[gp.LabelNormal]), {}, {lineHeight: '1.3'})), + n(sv, gp.TextEmphasis, yp(yp({}, bp[gp.LabelEmphasis]), {}, {lineHeight: '1.3'})), + n(sv, gp.TextExtraLarge, yp(yp({}, bp[gp.LabelExtraLarge]), {}, {lineHeight: '1.3'})), + n( + sv, + gp.ButtonXs, + yp(yp({}, a), {}, {fontWeight: '500', fontSize: '12px', lineHeight: '14px'}), + ), + n( + sv, + gp.ButtonSm, + yp(yp({}, a), {}, {fontWeight: '500', fontSize: '13px', lineHeight: '16px'}), + ), + n( + sv, + gp.ButtonMd, + yp(yp({}, a), {}, {fontWeight: '500', fontSize: '15px', lineHeight: '16px'}), + ), + n( + sv, + gp.ButtonLg, + yp(yp({}, a), {}, {fontWeight: '500', fontSize: '15px', lineHeight: '16px'}), + ), + n( + sv, + gp.ButtonXl, + yp(yp({}, a), {}, {fontWeight: '500', fontSize: '16px', lineHeight: '16px'}), + ), + n(sv, gp.InputSm, yp(yp({}, a), {}, {fontSize: '13px', lineHeight: '16px'})), + n(sv, gp.InputMd, yp(yp({}, a), {}, {fontSize: '14px', lineHeight: '16px'})), + sv), + ), + }, + shape: { + borderRadius: (n((Zr = {}), mp.Sm, '2px'), n(Zr, mp.Md, '4px'), n(Zr, mp.Lg, '8px'), Zr), + }, + }, + Cp = uf(['', ';'], function (e) { + return Bd(['h1,h2,h3,h4,h5,h6,p,small{line-height:', ';}'], e.theme.typography.baseLineHeight) + }), + xp = uf([ + '@keyframes spinner{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}.Menu-open{overflow:hidden;}.Modal-open{overflow:hidden;}', + ]) + n((s = {}), pp.TextPrimary, 'rgba(55,65,75,1)'), + n(s, pp.TextPrimaryInvert, 'rgba(255,255,255,1)'), + n(s, pp.TextSecondary, 'rgba(118,129,132,1)'), + n(s, pp.TextSecondaryInvert, 'rgba(213,216,220,1)'), + n(s, pp.TextPlaceholder, 'rgba(181,188,190,1)'), + n(s, pp.AccentPrimary, 'rgba(104,121,235,1)'), + n(s, pp.AccentPrimaryHover, 'rgba(96,111,209,1)'), + n(s, pp.AccentPrimaryActive, 'rgba(73,88,188,1)'), + n(s, pp.AccentPrimaryDisabled, '#E9EEF2'), + n(s, pp.BackgroundPrimary, 'rgba(248,250,251,1)'), + n(s, pp.BackgroundPrimaryHover, 'rgba(239,243,246,1)'), + n(s, pp.BackgroundPrimaryActive, 'rgba(93,109,126,1)'), + n(s, pp.BackgroundPrimary_0_5_Opacity, 'rgba(255,255,255,0.500)'), + n(s, pp.BackgroundSecondary, 'rgba(255,255,255,1)'), + n(s, pp.IconsPrimary, 'rgba(93,109,126,1)'), + n(s, pp.IconsPrimaryOpacity_0_6, 'rgba(93,109,126,0.600)'), + n(s, pp.IconsSecondary, '#959DA8'), + n(s, pp.ButtonPrimaryText, 'rgba(255,255,255,1)'), + n(s, pp.ButtonDisabledText, '#A9B6C2'), + n(s, pp.LinkPrimary, '#5D6D7E'), + n(s, pp.LinkHover, '#768A9F'), + n(s, pp.LinkActive, '#92A6BC'), + n(s, pp.BordersPrimary, 'rgba(223,231,237,1)'), + n(s, pp.BordersSecondary, 'rgba(223,231,237,1)'), + n(s, pp.BordersStrong, 'rgba(223,231,237,1)'), + n(s, pp.BordersInvert, 'rgba(85,99,115,1)'), + n(s, pp.BorderActiveBottom, '#6879EB'), + n(s, pp.ActiveSecondary, '#E9EEF2'), + n(s, pp.ActiveSecondaryHover, '#DFE4E9'), + n(s, pp.ActiveSecondaryActive, '#CBD3DA'), + n(s, pp.Tag, '#889AAC'), + n(s, pp.Error, 'rgba(232,91,70,1)'), + n(s, pp.Success, 'rgba(62,207,139,1)'), + n(s, pp.Warning, 'rgba(255,172,74,1)'), + n(s, pp.Info, 'rgba(110,123,178,1)'), + n(s, pp.LightShadow, 'rgba(77, 78, 78, 0.25)') + var Ep = s + + function Op(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Sp(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? Op(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : Op(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + function kp(e) { + var t = e.children, + n = void 0 === (a = (e = void 0 === (e = e.theme) ? {} : e).palette) ? {} : a, + r = void 0 === (a = e.breakpoints) ? {} : a, + i = void 0 === (a = e.typography) ? {} : a, + o = void 0 === (a = e.shape) ? {} : a, + a = l.exports.useMemo( + function () { + return { + palette: Sp(Sp({}, Ep), n), + breakpoints: Sp(Sp({}, wp.breakpoints), r), + typography: Sp({}, Dh(Sp({}, wp.typography), Sp({}, i))), + shape: Sp({}, Dh(Sp({}, wp.shape), Sp({}, o))), + } + }, + [JSON.stringify(e)], + ) + return he.createElement( + rf, + {theme: a}, + (function (e) { + for (var t = arguments.length, n = new Array(1 < t ? t - 1 : 0), r = 1; r < t; r++) + n[r - 1] = arguments[r] + return 'function' == typeof e ? e.apply(void 0, n) : e + })(t, a), + he.createElement(xp, null), + he.createElement(Cp, null), + ) + } + + var Pp = ((kr = wp.typography).baseLineHeight, kr.font, Yc(kr, ['baseLineHeight', 'font'])), + _p = + ((kp.propTypes = { + children: on.oneOfType([on.node, on.func]), + theme: on.exact({ + breakpoints: on.exact(Rh(Vh(hp), on.number)), + palette: on.exact(Rh(Vh(pp), on.string)), + shape: on.exact({borderRadius: on.exact(Rh(Vh(mp), on.string))}), + typography: on.exact( + Sp( + { + baseLineHeight: on.oneOfType([on.string, on.number]), + font: on.exact(Rh(Vh(gp), on.object)), + }, + Rh(Object.keys(Pp), on.string), + ), + ), + }), + }), + kp) + + function Lp(e) { + if (Array.isArray(e)) return e + } + + function Tp() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ) + } + + function jp(e, t) { + return ( + Lp(e) || + (function (e, t) { + var n = + null == e ? null : ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator'] + if (null != n) { + var r, + i, + o = [], + a = !0, + l = !1 + try { + for ( + n = n.call(e); + !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t); + a = !0 + ) ; + } catch (s) { + ;(l = !0), (i = s) + } finally { + try { + a || null == n.return || n.return() + } finally { + if (l) throw i + } + } + return o + } + })(e, t) || + Nh(e, t) || + Tp() + ) + } + + function Ip() { + return (Ip = + Object.assign || + function (e) { + for (var t = 1; t < arguments.length; t++) { + var n, + r = arguments[t] + for (n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]) + } + return e + }).apply(this, arguments) + } + + var Mp = Math.PI / 180 + const Rp = + 'undefined' != typeof global + ? global + : 'undefined' != typeof window + ? window + : 'undefined' != typeof WorkerGlobalScope + ? self + : {}, + Dp = { + _global: Rp, + version: '8.3.2', + isBrowser: + 'undefined' != typeof window && + ('[object Window]' === {}.toString.call(window) || + '[object global]' === {}.toString.call(window)), + isUnminified: /param/.test(function (e) { + }.toString()), + dblClickWindow: 400, + getAngle: (e) => (Dp.angleDeg ? e * Mp : e), + enableTrace: !1, + pointerEventsEnabled: !0, + autoDrawEnabled: !0, + hitOnDragEnabled: !1, + capturePointerEventsEnabled: !1, + _mouseListenClick: !1, + _touchListenClick: !1, + _pointerListenClick: !1, + _mouseInDblClickWindow: !1, + _touchInDblClickWindow: !1, + _pointerInDblClickWindow: !1, + _mouseDblClickPointerId: null, + _touchDblClickPointerId: null, + _pointerDblClickPointerId: null, + pixelRatio: ('undefined' != typeof window && window.devicePixelRatio) || 1, + dragDistance: 3, + angleDeg: !0, + showWarnings: !0, + dragButtons: [0, 1], + isDragging: () => Dp.DD.isDragging, + isDragReady: () => !!Dp.DD.node, + document: Rp.document, + _injectGlobal(e) { + Rp.Konva = e + }, + } + ;(bp = (e) => { + Dp[e.prototype.getClassName()] = e + }), + Dp._injectGlobal(Dp) + + class Ap { + constructor(e = [1, 0, 0, 1, 0, 0]) { + ;(this.dirty = !1), (this.m = (e && e.slice()) || [1, 0, 0, 1, 0, 0]) + } + + reset() { + ;(this.m[0] = 1), + (this.m[1] = 0), + (this.m[2] = 0), + (this.m[3] = 1), + (this.m[4] = 0), + (this.m[5] = 0) + } + + copy() { + return new Ap(this.m) + } + + copyInto(e) { + ;(e.m[0] = this.m[0]), + (e.m[1] = this.m[1]), + (e.m[2] = this.m[2]), + (e.m[3] = this.m[3]), + (e.m[4] = this.m[4]), + (e.m[5] = this.m[5]) + } + + point(e) { + var t = this.m + return { + x: t[0] * e.x + t[2] * e.y + t[4], + y: t[1] * e.x + t[3] * e.y + t[5], + } + } + + translate(e, t) { + return ( + (this.m[4] += this.m[0] * e + this.m[2] * t), + (this.m[5] += this.m[1] * e + this.m[3] * t), + this + ) + } + + scale(e, t) { + return (this.m[0] *= e), (this.m[1] *= e), (this.m[2] *= t), (this.m[3] *= t), this + } + + rotate(e) { + var t = Math.cos(e), + n = ((e = Math.sin(e)), this.m[0] * t + this.m[2] * e), + r = this.m[1] * t + this.m[3] * e, + i = this.m[0] * -e + this.m[2] * t + e = this.m[1] * -e + this.m[3] * t + return (this.m[0] = n), (this.m[1] = r), (this.m[2] = i), (this.m[3] = e), this + } + + getTranslation() { + return {x: this.m[4], y: this.m[5]} + } + + skew(e, t) { + var n = this.m[0] + this.m[2] * t, + r = ((t = this.m[1] + this.m[3] * t), this.m[2] + this.m[0] * e) + e = this.m[3] + this.m[1] * e + return (this.m[0] = n), (this.m[1] = t), (this.m[2] = r), (this.m[3] = e), this + } + + multiply(e) { + var t = this.m[0] * e.m[0] + this.m[2] * e.m[1], + n = this.m[1] * e.m[0] + this.m[3] * e.m[1], + r = this.m[0] * e.m[2] + this.m[2] * e.m[3], + i = this.m[1] * e.m[2] + this.m[3] * e.m[3], + o = this.m[0] * e.m[4] + this.m[2] * e.m[5] + this.m[4] + e = this.m[1] * e.m[4] + this.m[3] * e.m[5] + this.m[5] + return ( + (this.m[0] = t), + (this.m[1] = n), + (this.m[2] = r), + (this.m[3] = i), + (this.m[4] = o), + (this.m[5] = e), + this + ) + } + + invert() { + var e = 1 / (this.m[0] * this.m[3] - this.m[1] * this.m[2]), + t = this.m[3] * e, + n = -this.m[1] * e, + r = -this.m[2] * e, + i = this.m[0] * e, + o = e * (this.m[2] * this.m[5] - this.m[3] * this.m[4]) + e *= this.m[1] * this.m[4] - this.m[0] * this.m[5] + return ( + (this.m[0] = t), + (this.m[1] = n), + (this.m[2] = r), + (this.m[3] = i), + (this.m[4] = o), + (this.m[5] = e), + this + ) + } + + getMatrix() { + return this.m + } + + setAbsolutePosition(e, t) { + var n = this.m[0], + r = this.m[1], + i = this.m[2], + o = this.m[3], + a = this.m[4] + t = (n * (t - this.m[5]) - r * (e - a)) / (n * o - r * i) + return this.translate((e - a - i * t) / n, t) + } + + decompose() { + var e, + t = this.m[0], + n = this.m[1], + r = this.m[2], + i = this.m[3], + o = t * i - n * r + let a = { + x: this.m[4], + y: this.m[5], + rotation: 0, + scaleX: 0, + scaleY: 0, + skewX: 0, + skewY: 0, + } + return ( + 0 != t || 0 != n + ? ((e = Math.sqrt(t * t + n * n)), + (a.rotation = 0 < n ? Math.acos(t / e) : -Math.acos(t / e)), + (a.scaleX = e), + (a.scaleY = o / e), + (a.skewX = (t * r + n * i) / o), + (a.skewY = 0)) + : (0 == r && 0 == i) || + ((e = Math.sqrt(r * r + i * i)), + (a.rotation = Math.PI / 2 - (0 < i ? Math.acos(-r / e) : -Math.acos(r / e))), + (a.scaleX = o / e), + (a.scaleY = e), + (a.skewX = 0), + (a.skewY = (t * r + n * i) / o)), + (a.rotation = Gp._getRotation(a.rotation)), + a + ) + } + } + + var zp = Math.PI / 180, + Np = 180 / Math.PI, + Hp = 'Konva error: ', + Fp = { + 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, 132, 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, 255, 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, 203], + 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: [119, 128, 144], + slategrey: [119, 128, 144], + snow: [255, 255, 250], + springgreen: [0, 255, 127], + steelblue: [70, 130, 180], + tan: [210, 180, 140], + teal: [0, 128, 128], + thistle: [216, 191, 216], + transparent: [255, 255, 255, 0], + 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, 5], + }, + Bp = /rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/, + Vp = [] + const Wp = + ('undefined' != typeof requestAnimationFrame && requestAnimationFrame) || + function (e) { + setTimeout(e, 60) + }, + Gp = { + _isElement: (e) => !(!e || 1 != e.nodeType), + _isFunction: (e) => !!(e && e.constructor && e.call && e.apply), + _isPlainObject: (e) => !!e && e.constructor === Object, + _isArray: (e) => '[object Array]' === Object.prototype.toString.call(e), + _isNumber: (e) => + '[object Number]' === Object.prototype.toString.call(e) && !isNaN(e) && isFinite(e), + _isString: (e) => '[object String]' === Object.prototype.toString.call(e), + _isBoolean: (e) => '[object Boolean]' === Object.prototype.toString.call(e), + isObject: (e) => e instanceof Object, + isValidSelector: (e) => + 'string' == typeof e && ('#' === (e = e[0]) || '.' === e || e === e.toUpperCase()), + _sign: (e) => (0 === e || 0 < e ? 1 : -1), + requestAnimFrame(e) { + Vp.push(e), + 1 === Vp.length && + Wp(function () { + const e = Vp + ;(Vp = []), + e.forEach(function (e) { + e() + }) + }) + }, + createCanvasElement() { + var e = document.createElement('canvas') + try { + e.style = e.style || {} + } catch (t) { + } + return e + }, + createImageElement: () => document.createElement('img'), + _isInDocument(e) { + for (; (e = e.parentNode);) if (e == document) return !0 + return !1 + }, + _urlToImage(e, t) { + var n = Gp.createImageElement() + ;(n.onload = function () { + t(n) + }), + (n.src = e) + }, + _rgbToHex: (e, t, n) => ((1 << 24) + (e << 16) + (t << 8) + n).toString(16).slice(1), + _hexToRgb: (e) => ( + (e = e.replace('#', '')), + { + r: ((e = parseInt(e, 16)) >> 16) & 255, + g: (e >> 8) & 255, + b: 255 & e, + } + ), + getRandomColor() { + for (var e = ((16777215 * Math.random()) << 0).toString(16); e.length < 6;) e = '0' + e + return '#' + e + }, + getRGB(e) { + var t + return e in Fp + ? {r: (t = Fp[e])[0], g: t[1], b: t[2]} + : '#' === e[0] + ? this._hexToRgb(e.substring(1)) + : 'rgb(' === e.substr(0, 4) + ? ((t = Bp.exec(e.replace(/ /g, ''))), + { + r: parseInt(t[1], 10), + g: parseInt(t[2], 10), + b: parseInt(t[3], 10), + }) + : {r: 0, g: 0, b: 0} + }, + colorToRGBA: (e) => ( + (e = e || 'black'), + Gp._namedColorToRBA(e) || + Gp._hex3ColorToRGBA(e) || + Gp._hex6ColorToRGBA(e) || + Gp._rgbColorToRGBA(e) || + Gp._rgbaColorToRGBA(e) || + Gp._hslColorToRGBA(e) + ), + _namedColorToRBA: (e) => + (e = Fp[e.toLowerCase()]) ? {r: e[0], g: e[1], b: e[2], a: 1} : null, + _rgbColorToRGBA(e) { + if (0 === e.indexOf('rgb(')) + return { + r: (e = (e = e.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number))[0], + g: e[1], + b: e[2], + a: 1, + } + }, + _rgbaColorToRGBA(e) { + if (0 === e.indexOf('rgba(')) + return { + r: (e = (e = e.match(/rgba\(([^)]+)\)/)[1]) + .split(/ *, */) + .map((e, t) => + '%' === e.slice(-1) + ? 3 === t + ? parseInt(e) / 100 + : (parseInt(e) / 100) * 255 + : Number(e), + ))[0], + g: e[1], + b: e[2], + a: e[3], + } + }, + _hex6ColorToRGBA(e) { + if ('#' === e[0] && 7 === e.length) + return { + r: parseInt(e.slice(1, 3), 16), + g: parseInt(e.slice(3, 5), 16), + b: parseInt(e.slice(5, 7), 16), + a: 1, + } + }, + _hex3ColorToRGBA(e) { + if ('#' === e[0] && 4 === e.length) + return { + r: parseInt(e[1] + e[1], 16), + g: parseInt(e[2] + e[2], 16), + b: parseInt(e[3] + e[3], 16), + a: 1, + } + }, + _hslColorToRGBA(e) { + if (/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)) { + var [, ...e] = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e), + t = Number(e[0]) / 360, + n = Number(e[1]) / 100 + e = Number(e[2]) / 100 + let i, o, a + if (0 == n) + return (a = 255 * e), {r: Math.round(a), g: Math.round(a), b: Math.round(a), a: 1} + var r = 2 * e - (i = e < 0.5 ? e * (1 + n) : e + n - e * n) + const l = [0, 0, 0] + for (let e = 0; e < 3; e++) + (o = t + (1 / 3) * -(e - 1)) < 0 && o++, + 1 < o && o--, + (a = + 6 * o < 1 + ? r + 6 * (i - r) * o + : 2 * o < 1 + ? i + : 3 * o < 2 + ? r + (i - r) * (2 / 3 - o) * 6 + : r), + (l[e] = 255 * a) + return { + r: Math.round(l[0]), + g: Math.round(l[1]), + b: Math.round(l[2]), + a: 1, + } + } + }, + haveIntersection: (e, t) => + !( + t.x > e.x + e.width || + t.x + t.width < e.x || + t.y > e.y + e.height || + t.y + t.height < e.y + ), + cloneObject(e) { + var t, + n = {} + for (t in e) + this._isPlainObject(e[t]) + ? (n[t] = this.cloneObject(e[t])) + : this._isArray(e[t]) + ? (n[t] = this.cloneArray(e[t])) + : (n[t] = e[t]) + return n + }, + cloneArray: (e) => e.slice(0), + degToRad: (e) => e * zp, + radToDeg: (e) => e * Np, + _degToRad: (e) => ( + Gp.warn('Util._degToRad is removed. Please use public Util.degToRad instead.'), + Gp.degToRad(e) + ), + _radToDeg: (e) => ( + Gp.warn('Util._radToDeg is removed. Please use public Util.radToDeg instead.'), + Gp.radToDeg(e) + ), + _getRotation: (e) => (Dp.angleDeg ? Gp.radToDeg(e) : e), + _capitalize: (e) => e.charAt(0).toUpperCase() + e.slice(1), + throw(e) { + throw new Error(Hp + e) + }, + error(e) { + console.error(Hp + e) + }, + warn(e) { + Dp.showWarnings && console.warn('Konva warning: ' + e) + }, + each(e, t) { + for (var n in e) t(n, e[n]) + }, + _inRange: (e, t, n) => t <= e && e < n, + _getProjectionToSegment(e, t, n, r, i, o) { + var a, + l, + s = (e - n) * (e - n) + (t - r) * (t - r) + return ( + (n = + 0 == s + ? ((a = e), (l = t), (i - n) * (i - n) + (o - r) * (o - r)) + : (s = ((i - e) * (n - e) + (o - t) * (r - t)) / s) < 0 + ? ((a = e) - i) * (e - i) + ((l = t) - o) * (t - o) + : 1 < s + ? ((a = n) - i) * (n - i) + ((l = r) - o) * (r - o) + : ((a = e + s * (n - e)) - i) * (a - i) + ((l = t + s * (r - t)) - o) * (l - o)), + [a, l, n] + ) + }, + _getProjectionToLine(e, t, n) { + var r = Gp.cloneObject(e), + i = Number.MAX_VALUE + return ( + t.forEach(function (o, a) { + var l + ;(!n && a === t.length - 1) || + ((a = t[(a + 1) % t.length]), + (a = (o = Gp._getProjectionToSegment(o.x, o.y, a.x, a.y, e.x, e.y))[0]), + (l = o[1]), + (o = o[2]) < i && ((r.x = a), (r.y = l), (i = o))) + }), + r + ) + }, + _prepareArrayForTween(e, t, n) { + var r, + i, + o = [], + a = [] + for (e.length > t.length && ((i = t), (t = e), (e = i)), r = 0; r < e.length; r += 2) + o.push({x: e[r], y: e[r + 1]}) + for (r = 0; r < t.length; r += 2) a.push({x: t[r], y: t[r + 1]}) + var l = [] + return ( + a.forEach(function (e) { + ;(e = Gp._getProjectionToLine(e, o, n)), l.push(e.x), l.push(e.y) + }), + l + ) + }, + _prepareToStringify(e) { + var t, n + for (n in ((e.visitedByCircularReferenceRemoval = !0), e)) + if (e.hasOwnProperty(n) && e[n] && 'object' == typeof e[n]) + if ( + ((t = Object.getOwnPropertyDescriptor(e, n)), + e[n].visitedByCircularReferenceRemoval || Gp._isElement(e[n])) + ) { + if (!t.configurable) return null + delete e[n] + } else if (null === Gp._prepareToStringify(e[n])) { + if (!t.configurable) return null + delete e[n] + } + return delete e.visitedByCircularReferenceRemoval, e + }, + _assign(e, t) { + for (var n in t) e[n] = t[n] + return e + }, + _getFirstPointerId: (e) => (e.touches ? e.changedTouches[0].identifier : e.pointerId || 999), + } + + function Zp(e) { + return Gp._isString(e) + ? '"' + e + '"' + : '[object Number]' === Object.prototype.toString.call(e) || Gp._isBoolean(e) + ? e + : Object.prototype.toString.call(e) + } + + function Up(e) { + return 255 < e ? 255 : e < 0 ? 0 : Math.round(e) + } + + function Xp() { + if (Dp.isUnminified) + return function (e, t) { + return ( + Gp._isNumber(e) || + Gp.warn( + Zp(e) + + ' is a not valid value for "' + + t + + '" attribute. The value should be a number.', + ), + e + ) + } + } + + function Yp(e) { + if (Dp.isUnminified) + return function (t, n) { + var r = Gp._isNumber(t), + i = Gp._isArray(t) && t.length == e + return ( + r || + i || + Gp.warn( + Zp(t) + + ' is a not valid value for "' + + n + + '" attribute. The value should be a number or Array(' + + e + + ')', + ), + t + ) + } + } + + function qp() { + if (Dp.isUnminified) + return function (e, t) { + return ( + Gp._isNumber(e) || + 'auto' === e || + Gp.warn( + Zp(e) + + ' is a not valid value for "' + + t + + '" attribute. The value should be a number or "auto".', + ), + e + ) + } + } + + function $p() { + if (Dp.isUnminified) + return function (e, t) { + return ( + Gp._isString(e) || + Gp.warn( + Zp(e) + + ' is a not valid value for "' + + t + + '" attribute. The value should be a string.', + ), + e + ) + } + } + + function Kp() { + if (Dp.isUnminified) + return function (e, t) { + var n = Gp._isString(e), + r = + '[object CanvasGradient]' === Object.prototype.toString.call(e) || (e && e.addColorStop) + return ( + n || + r || + Gp.warn( + Zp(e) + + ' is a not valid value for "' + + t + + '" attribute. The value should be a string or a native gradient.', + ), + e + ) + } + } + + function Qp() { + if (Dp.isUnminified) + return function (e, t) { + return ( + !0 === e || + !1 === e || + Gp.warn( + Zp(e) + + ' is a not valid value for "' + + t + + '" attribute. The value should be a boolean.', + ), + e + ) + } + } + + var Jp = 'get', + eg = 'set' + const tg = { + addGetterSetter(e, t, n, r, i) { + tg.addGetter(e, t, n), tg.addSetter(e, t, r, i), tg.addOverloadedGetterSetter(e, t) + }, + addGetter(e, t, n) { + var r = Jp + Gp._capitalize(t) + e.prototype[r] = + e.prototype[r] || + function () { + var e = this.attrs[t] + return void 0 === e ? n : e + } + }, + addSetter(e, t, n, r) { + var i = eg + Gp._capitalize(t) + e.prototype[i] || tg.overWriteSetter(e, t, n, r) + }, + overWriteSetter(e, t, n, r) { + var i = eg + Gp._capitalize(t) + e.prototype[i] = function (e) { + return ( + n && null != e && (e = n.call(this, e, t)), this._setAttr(t, e), r && r.call(this), this + ) + } + }, + addComponentsGetterSetter(e, t, n, r, i) { + var o, + a, + l = n.length, + s = Gp._capitalize, + c = Jp + s(t), + u = eg + s(t), + d = + ((e.prototype[c] = function () { + var e = {} + for (o = 0; o < l; o++) e[(a = n[o])] = this.getAttr(t + s(a)) + return e + }), + (function (e) { + if (Dp.isUnminified) + return function (t, n) { + return ( + Gp.isObject(t) || + Gp.warn( + Zp(t) + + ' is a not valid value for "' + + n + + '" attribute. The value should be an object with properties ' + + e, + ), + t + ) + } + })(n)) + ;(e.prototype[u] = function (e) { + var n, + o = this.attrs[t] + for (n in (r && (e = r.call(this, e)), d && d.call(this, e, t), e)) + e.hasOwnProperty(n) && this._setAttr(t + s(n), e[n]) + return this._fireChangeEvent(t, o, e), i && i.call(this), this + }), + tg.addOverloadedGetterSetter(e, t) + }, + addOverloadedGetterSetter(e, t) { + var n = Gp._capitalize(t), + r = eg + n, + i = Jp + n + e.prototype[t] = function () { + return arguments.length ? (this[r](arguments[0]), this) : this[i]() + } + }, + addDeprecatedGetterSetter(e, t, n, r) { + Gp.error('Adding deprecated ' + t) + var i = Jp + Gp._capitalize(t), + o = + t + + ' property is deprecated and will be removed soon. Look at Konva change log for more information.' + ;(e.prototype[i] = function () { + Gp.error(o) + var e = this.attrs[t] + return void 0 === e ? n : e + }), + tg.addSetter(e, t, r, function () { + Gp.error(o) + }), + tg.addOverloadedGetterSetter(e, t) + }, + backCompat(e, t) { + Gp.each(t, function (t, n) { + var r = e.prototype[n], + i = Jp + Gp._capitalize(t), + o = eg + Gp._capitalize(t) + + function a() { + r.apply(this, arguments), + Gp.error( + '"' + + t + + '" method is deprecated and will be removed soon. Use ""' + + n + + '" instead.', + ) + } + ;(e.prototype[t] = a), (e.prototype[i] = a), (e.prototype[o] = a) + }) + }, + afterSetFilter() { + this._filterUpToDate = !1 + }, + } + var ng, + rg = [ + 'arc', + 'arcTo', + 'beginPath', + 'bezierCurveTo', + 'clearRect', + 'clip', + 'closePath', + 'createLinearGradient', + 'createPattern', + 'createRadialGradient', + 'drawImage', + 'ellipse', + 'fill', + 'fillText', + 'getImageData', + 'createImageData', + 'lineTo', + 'moveTo', + 'putImageData', + 'quadraticCurveTo', + 'rect', + 'restore', + 'rotate', + 'save', + 'scale', + 'setLineDash', + 'setTransform', + 'stroke', + 'strokeText', + 'transform', + 'translate', + ] + + class ig { + constructor(e) { + ;(this.canvas = e), + (this._context = e._canvas.getContext('2d', { + willReadFrequently: true, + })), + Dp.enableTrace && ((this.traceArr = []), this._enableTrace()) + } + + fillShape(e) { + e.fillEnabled() && this._fill(e) + } + + _fill(e) { + } + + strokeShape(e) { + e.hasStroke() && this._stroke(e) + } + + _stroke(e) { + } + + fillStrokeShape(e) { + e.attrs.fillAfterStrokeEnabled + ? (this.strokeShape(e), this.fillShape(e)) + : (this.fillShape(e), this.strokeShape(e)) + } + + getTrace(e, t) { + for (var n, r, i, o = this.traceArr, a = o.length, l = '', s = 0; s < a; s++) + (r = (n = o[s]).method) + ? ((i = n.args), + (l += r), + e + ? (l += '()') + : Gp._isArray(i[0]) + ? (l += '([' + i.join(',') + '])') + : (l += + '(' + + (i = t ? i.map((e) => ('number' == typeof e ? Math.floor(e) : e)) : i).join( + ',', + ) + + ')')) + : ((l += n.property), e || (l += '=' + n.val)), + (l += ';') + return l + } + + clearTrace() { + this.traceArr = [] + } + + _trace(e) { + var t = this.traceArr + t.push(e), 100 <= t.length && t.shift() + } + + reset() { + var e = this.getCanvas().getPixelRatio() + this.setTransform(+e, 0, 0, +e, 0, 0) + } + + getCanvas() { + return this.canvas + } + + clear(e) { + var t = this.getCanvas() + e + ? this.clearRect(e.x || 0, e.y || 0, e.width || 0, e.height || 0) + : this.clearRect(0, 0, t.getWidth() / t.pixelRatio, t.getHeight() / t.pixelRatio) + } + + _applyLineCap(e) { + ;(e = e.getLineCap()) && this.setAttr('lineCap', e) + } + + _applyOpacity(e) { + 1 !== (e = e.getAbsoluteOpacity()) && this.setAttr('globalAlpha', e) + } + + _applyLineJoin(e) { + ;(e = e.attrs.lineJoin) && this.setAttr('lineJoin', e) + } + + setAttr(e, t) { + this._context[e] = t + } + + arc(e, t, n, r, i, o) { + this._context.arc(e, t, n, r, i, o) + } + + arcTo(e, t, n, r, i) { + this._context.arcTo(e, t, n, r, i) + } + + beginPath() { + this._context.beginPath() + } + + bezierCurveTo(e, t, n, r, i, o) { + this._context.bezierCurveTo(e, t, n, r, i, o) + } + + clearRect(e, t, n, r) { + this._context.clearRect(e, t, n, r) + } + + clip() { + this._context.clip() + } + + closePath() { + this._context.closePath() + } + + createImageData(e, t) { + var n = arguments + return 2 === n.length + ? this._context.createImageData(e, t) + : 1 === n.length + ? this._context.createImageData(e) + : void 0 + } + + createLinearGradient(e, t, n, r) { + return this._context.createLinearGradient(e, t, n, r) + } + + createPattern(e, t) { + return this._context.createPattern(e, t) + } + + createRadialGradient(e, t, n, r, i, o) { + return this._context.createRadialGradient(e, t, n, r, i, o) + } + + drawImage(e, t, n, r, i, o, a, l, s) { + var c = arguments, + u = this._context + 3 === c.length + ? u.drawImage(e, t, n) + : 5 === c.length + ? u.drawImage(e, t, n, r, i) + : 9 === c.length && u.drawImage(e, t, n, r, i, o, a, l, s) + } + + ellipse(e, t, n, r, i, o, a, l) { + this._context.ellipse(e, t, n, r, i, o, a, l) + } + + isPointInPath(e, t) { + return this._context.isPointInPath(e, t) + } + + fill(e) { + e ? this._context.fill(e) : this._context.fill() + } + + fillRect(e, t, n, r) { + this._context.fillRect(e, t, n, r) + } + + strokeRect(e, t, n, r) { + this._context.strokeRect(e, t, n, r) + } + + fillText(e, t, n, r) { + r ? this._context.fillText(e, t, n, r) : this._context.fillText(e, t, n) + } + + measureText(e) { + return this._context.measureText(e) + } + + getImageData(e, t, n, r) { + return this._context.getImageData(e, t, n, r) + } + + lineTo(e, t) { + this._context.lineTo(e, t) + } + + moveTo(e, t) { + this._context.moveTo(e, t) + } + + rect(e, t, n, r) { + this._context.rect(e, t, n, r) + } + + putImageData(e, t, n) { + this._context.putImageData(e, t, n) + } + + quadraticCurveTo(e, t, n, r) { + this._context.quadraticCurveTo(e, t, n, r) + } + + restore() { + this._context.restore() + } + + rotate(e) { + this._context.rotate(e) + } + + save() { + this._context.save() + } + + scale(e, t) { + this._context.scale(e, t) + } + + setLineDash(e) { + this._context.setLineDash + ? this._context.setLineDash(e) + : 'mozDash' in this._context + ? (this._context.mozDash = e) + : 'webkitLineDash' in this._context && (this._context.webkitLineDash = e) + } + + getLineDash() { + return this._context.getLineDash() + } + + setTransform(e, t, n, r, i, o) { + this._context.setTransform(e, t, n, r, i, o) + } + + stroke(e) { + e ? this._context.stroke(e) : this._context.stroke() + } + + strokeText(e, t, n, r) { + this._context.strokeText(e, t, n, r) + } + + transform(e, t, n, r, i, o) { + this._context.transform(e, t, n, r, i, o) + } + + translate(e, t) { + this._context.translate(e, t) + } + + _enableTrace() { + for ( + var e, + t = this, + n = rg.length, + r = this.setAttr, + i = function (n) { + var r, + i = t[n] + t[n] = function () { + return ( + (e = (function (e) { + for (var t, n = [], r = e.length, i = Gp, o = 0; o < r; o++) + (t = e[o]), + i._isNumber(t) + ? (t = Math.round(1e3 * t) / 1e3) + : i._isString(t) || (t += ''), + n.push(t) + return n + })(Array.prototype.slice.call(arguments, 0))), + (r = i.apply(t, arguments)), + t._trace({method: n, args: e}), + r + ) + } + }, + o = 0; + o < n; + o++ + ) + i(rg[o]) + t.setAttr = function () { + r.apply(t, arguments) + var e = arguments[0], + n = arguments[1] + ;('shadowOffsetX' !== e && 'shadowOffsetY' !== e && 'shadowBlur' !== e) || + (n /= this.canvas.getPixelRatio()), + t._trace({property: e, val: n}) + } + } + + _applyGlobalCompositeOperation(e) { + ;(e = e.attrs.globalCompositeOperation) && + 'source-over' !== e && + this.setAttr('globalCompositeOperation', e) + } + } + ;[ + 'fillStyle', + 'strokeStyle', + 'shadowColor', + 'shadowBlur', + 'shadowOffsetX', + 'shadowOffsetY', + 'lineCap', + 'lineDashOffset', + 'lineJoin', + 'lineWidth', + 'miterLimit', + 'font', + 'textAlign', + 'textBaseline', + 'globalAlpha', + 'globalCompositeOperation', + 'imageSmoothingEnabled', + ].forEach(function (e) { + Object.defineProperty(ig.prototype, e, { + get() { + return this._context[e] + }, + set(t) { + this._context[e] = t + }, + }) + }) + + class og extends ig { + _fillColor(e) { + var t = e.fill() + this.setAttr('fillStyle', t), e._fillFunc(this) + } + + _fillPattern(e) { + this.setAttr('fillStyle', e._getFillPattern()), e._fillFunc(this) + } + + _fillLinearGradient(e) { + var t = e._getLinearGradient() + t && (this.setAttr('fillStyle', t), e._fillFunc(this)) + } + + _fillRadialGradient(e) { + var t = e._getRadialGradient() + t && (this.setAttr('fillStyle', t), e._fillFunc(this)) + } + + _fill(e) { + var t, + n, + r, + i = e.fill(), + o = e.getFillPriority() + i && 'color' === o + ? this._fillColor(e) + : (t = e.getFillPatternImage()) && 'pattern' === o + ? this._fillPattern(e) + : (n = e.getFillLinearGradientColorStops()) && 'linear-gradient' === o + ? this._fillLinearGradient(e) + : (r = e.getFillRadialGradientColorStops()) && 'radial-gradient' === o + ? this._fillRadialGradient(e) + : i + ? this._fillColor(e) + : t + ? this._fillPattern(e) + : n + ? this._fillLinearGradient(e) + : r && this._fillRadialGradient(e) + } + + _strokeLinearGradient(e) { + var t = e.getStrokeLinearGradientStartPoint(), + n = e.getStrokeLinearGradientEndPoint(), + r = e.getStrokeLinearGradientColorStops(), + i = this.createLinearGradient(t.x, t.y, n.x, n.y) + if (r) { + for (var o = 0; o < r.length; o += 2) i.addColorStop(r[o], r[o + 1]) + this.setAttr('strokeStyle', i) + } + } + + _stroke(e) { + var t, + n = e.dash(), + r = e.getStrokeScaleEnabled() + e.hasStroke() && + (r || + (this.save(), + (t = this.getCanvas().getPixelRatio()), + this.setTransform(t, 0, 0, t, 0, 0)), + this._applyLineCap(e), + n && + e.dashEnabled() && + (this.setLineDash(n), this.setAttr('lineDashOffset', e.dashOffset())), + this.setAttr('lineWidth', e.strokeWidth()), + e.getShadowForStrokeEnabled() || this.setAttr('shadowColor', 'rgba(0,0,0,0)'), + e.getStrokeLinearGradientColorStops() + ? this._strokeLinearGradient(e) + : this.setAttr('strokeStyle', e.stroke()), + e._strokeFunc(this), + r || this.restore()) + } + + _applyShadow(e) { + var t = null != (t = e.getShadowRGBA()) ? t : 'black', + n = null != (n = e.getShadowBlur()) ? n : 5, + r = null != (r = e.getShadowOffset()) ? r : {x: 0, y: 0}, + i = ((e = e.getAbsoluteScale()), this.canvas.getPixelRatio()), + o = e.x * i + e = e.y * i + this.setAttr('shadowColor', t), + this.setAttr('shadowBlur', n * Math.min(Math.abs(o), Math.abs(e))), + this.setAttr('shadowOffsetX', r.x * o), + this.setAttr('shadowOffsetY', r.y * e) + } + } + + class ag extends ig { + _fill(e) { + this.save(), this.setAttr('fillStyle', e.colorKey), e._fillFuncHit(this), this.restore() + } + + strokeShape(e) { + e.hasHitStroke() && this._stroke(e) + } + + _stroke(e) { + var t, n + e.hasHitStroke() && + ((t = e.getStrokeScaleEnabled()) || + (this.save(), + (n = this.getCanvas().getPixelRatio()), + this.setTransform(n, 0, 0, n, 0, 0)), + this._applyLineCap(e), + (n = 'auto' === (n = e.hitStrokeWidth()) ? e.strokeWidth() : n), + this.setAttr('lineWidth', n), + this.setAttr('strokeStyle', e.colorKey), + e._strokeFuncHit(this), + t || this.restore()) + } + } + + class lg { + constructor(e) { + ;(this.pixelRatio = 1), + (this.width = 0), + (this.height = 0), + (this.isCache = !1), + (e = + (e || {}).pixelRatio || + Dp.pixelRatio || + (function () { + if (ng) return ng + var e = Gp.createCanvasElement().getContext('2d', { + willReadFrequently: true, + }) + return (ng = + (Dp._global.devicePixelRatio || 1) / + (e.webkitBackingStorePixelRatio || + e.mozBackingStorePixelRatio || + e.msBackingStorePixelRatio || + e.oBackingStorePixelRatio || + e.backingStorePixelRatio || + 1)) + })()), + (this.pixelRatio = e), + (this._canvas = Gp.createCanvasElement()), + (this._canvas.style.padding = '0'), + (this._canvas.style.margin = '0'), + (this._canvas.style.border = '0'), + (this._canvas.style.background = 'transparent'), + (this._canvas.style.position = 'absolute'), + (this._canvas.style.top = '0'), + (this._canvas.style.left = '0') + } + + getContext() { + return this.context + } + + getPixelRatio() { + return this.pixelRatio + } + + setPixelRatio(e) { + var t = this.pixelRatio + ;(this.pixelRatio = e), this.setSize(this.getWidth() / t, this.getHeight() / t) + } + + setWidth(e) { + ;(this.width = this._canvas.width = e * this.pixelRatio), + (this._canvas.style.width = e + 'px'), + (e = this.pixelRatio), + this.getContext()._context.scale(e, e) + } + + setHeight(e) { + ;(this.height = this._canvas.height = e * this.pixelRatio), + (this._canvas.style.height = e + 'px'), + (e = this.pixelRatio), + this.getContext()._context.scale(e, e) + } + + getWidth() { + return this.width + } + + getHeight() { + return this.height + } + + setSize(e, t) { + this.setWidth(e || 0), this.setHeight(t || 0) + } + + toDataURL(e, t) { + try { + return this._canvas.toDataURL(e, t) + } catch (n) { + try { + return this._canvas.toDataURL() + } catch (r) { + return ( + Gp.error( + 'Unable to get data URL. ' + + r.message + + ' For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html.', + ), + '' + ) + } + } + } + } + + tg.addGetterSetter(lg, 'pixelRatio', void 0, Xp()) + + class sg extends lg { + constructor(e = {width: 0, height: 0}) { + super(e), (this.context = new og(this)), this.setSize(e.width, e.height) + } + } + + class cg extends lg { + constructor(e = {width: 0, height: 0}) { + super(e), + (this.hitCanvas = !0), + (this.context = new ag(this)), + this.setSize(e.width, e.height) + } + } + + const ug = { + get isDragging() { + var e = !1 + return ( + ug._dragElements.forEach((t) => { + 'dragging' === t.dragStatus && (e = !0) + }), + e + ) + }, + justDragged: !1, + get node() { + var e + return ( + ug._dragElements.forEach((t) => { + e = t.node + }), + e + ) + }, + _dragElements: new Map(), + _drag(e) { + const t = [] + ug._dragElements.forEach((n, r) => { + const i = n.node, + o = i.getStage() + o.setPointersPositions(e), + void 0 === n.pointerId && (n.pointerId = Gp._getFirstPointerId(e)) + var a = o._changedPointerPositions.find((e) => e.id === n.pointerId) + if (a) { + if ('dragging' !== n.dragStatus) { + var l = i.dragDistance() + if ( + Math.max(Math.abs(a.x - n.startPointerPos.x), Math.abs(a.y - n.startPointerPos.y)) < l + ) + return + if ((i.startDrag({evt: e}), !i.isDragging())) return + } + i._setDragPosition(e, n), t.push(i) + } + }), + t.forEach((t) => { + t.fire('dragmove', {type: 'dragmove', target: t, evt: e}, !0) + }) + }, + _endDragBefore(e) { + ug._dragElements.forEach((t) => { + const n = t.node.getStage() + if ( + (e && n.setPointersPositions(e), + n._changedPointerPositions.find((e) => e.id === t.pointerId)) + ) { + ;('dragging' !== t.dragStatus && 'stopped' !== t.dragStatus) || + ((ug.justDragged = !0), + (Dp._mouseListenClick = !1), + (Dp._touchListenClick = !1), + (Dp._pointerListenClick = !1), + (t.dragStatus = 'stopped')) + const e = t.node.getLayer() || (t.node instanceof Dp.Stage && t.node) + e && e.batchDraw() + } + }) + }, + _endDragAfter(e) { + ug._dragElements.forEach((t, n) => { + 'stopped' === t.dragStatus && + t.node.fire('dragend', {type: 'dragend', target: t.node, evt: e}, !0), + 'dragging' !== t.dragStatus && ug._dragElements.delete(n) + }) + }, + } + Dp.isBrowser && + (window.addEventListener('mouseup', ug._endDragBefore, !0), + window.addEventListener('touchend', ug._endDragBefore, !0), + window.addEventListener('mousemove', ug._drag), + window.addEventListener('touchmove', ug._drag), + window.addEventListener('mouseup', ug._endDragAfter, !1), + window.addEventListener('touchend', ug._endDragAfter, !1)) + var dg = 'absoluteOpacity', + fg = 'allEventListeners', + hg = 'absoluteTransform', + pg = 'absoluteScale', + gg = 'canvas', + mg = 'listening', + vg = 'mouseenter', + yg = 'mouseleave', + bg = 'transform', + wg = 'visible' + a = [ + 'xChange.konva', + 'yChange.konva', + 'scaleXChange.konva', + 'scaleYChange.konva', + 'skewXChange.konva', + 'skewYChange.konva', + 'rotationChange.konva', + 'offsetXChange.konva', + 'offsetYChange.konva', + 'transformsEnabledChange.konva', + ].join(' ') + let Cg = 1 + + class xg { + constructor(e) { + ;(this._id = Cg++), + (this.eventListeners = {}), + (this.attrs = {}), + (this.index = 0), + (this._allEventListeners = null), + (this.parent = null), + (this._cache = new Map()), + (this._attachedDepsListeners = new Map()), + (this._lastPos = null), + (this._batchingTransformChange = !1), + (this._needClearTransformCache = !1), + (this._filterUpToDate = !1), + (this._isUnderCache = !1), + (this._dragEventId = null), + (this._shouldFireChangeEvents = !1), + this.setAttrs(e), + (this._shouldFireChangeEvents = !0) + } + + hasChildren() { + return !1 + } + + _clearCache(e) { + ;(e !== bg && e !== hg) || !this._cache.get(e) + ? e + ? this._cache.delete(e) + : this._cache.clear() + : (this._cache.get(e).dirty = !0) + } + + _getCache(e, t) { + var n = this._cache.get(e) + return ( + (void 0 === n || ((e === bg || e === hg) && !0 === n.dirty)) && + ((n = t.call(this)), this._cache.set(e, n)), + n + ) + } + + _calculate(e, t, n) { + return ( + this._attachedDepsListeners.get(e) || + ((t = t.map((e) => e + 'Change.konva').join(' ')), + this.on(t, () => { + this._clearCache(e) + }), + this._attachedDepsListeners.set(e, !0)), + this._getCache(e, n) + ) + } + + _getCanvasCache() { + return this._cache.get(gg) + } + + _clearSelfAndDescendantCache(e) { + this._clearCache(e), e === hg && this.fire('absoluteTransformChange') + } + + clearCache() { + return this._cache.delete(gg), this._clearSelfAndDescendantCache(), this._requestDraw(), this + } + + cache(e) { + var t, + n, + r = {}, + i = + ((void 0 !== (e = e || {}).x && + void 0 !== e.y && + void 0 !== e.width && + void 0 !== e.height) || + (r = this.getClientRect({ + skipTransform: !0, + relativeTo: this.getParent(), + })), + Math.ceil(e.width || r.width)), + o = Math.ceil(e.height || r.height), + a = e.pixelRatio, + l = (void 0 === e.x ? r : e).x, + s = ((r = (void 0 === e.y ? r : e).y), e.offset || 0), + c = e.drawBorder || !1, + u = e.hitCanvasPixelRatio || 1 + if (i && o) + return ( + (l -= s), + (r -= s), + (s = new sg({ + pixelRatio: a, + width: (i += 2 * s), + height: (o += 2 * s), + })), + (a = new sg({pixelRatio: a, width: 0, height: 0})), + (u = new cg({pixelRatio: u, width: i, height: o})), + (t = s.getContext()), + (n = u.getContext()), + (u.isCache = !0), + (s.isCache = !0), + this._cache.delete(gg), + (this._filterUpToDate = !1) === e.imageSmoothingEnabled && + ((s.getContext()._context.imageSmoothingEnabled = !1), + (a.getContext()._context.imageSmoothingEnabled = !1)), + t.save(), + n.save(), + t.translate(-l, -r), + n.translate(-l, -r), + (this._isUnderCache = !0), + this._clearSelfAndDescendantCache(dg), + this._clearSelfAndDescendantCache(pg), + this.drawScene(s, this), + this.drawHit(u, this), + (this._isUnderCache = !1), + t.restore(), + n.restore(), + c && + (t.save(), + t.beginPath(), + t.rect(0, 0, i, o), + t.closePath(), + t.setAttr('strokeStyle', 'red'), + t.setAttr('lineWidth', 5), + t.stroke(), + t.restore()), + this._cache.set(gg, {scene: s, filter: a, hit: u, x: l, y: r}), + this._requestDraw(), + this + ) + Gp.error('Can not cache the node. Width or height of the node equals 0. Caching is skipped.') + } + + isCached() { + return this._cache.has(gg) + } + + getClientRect(e) { + throw new Error('abstract "getClientRect" method call') + } + + _transformedRect(e, t) { + e = [ + {x: e.x, y: e.y}, + {x: e.x + e.width, y: e.y}, + {x: e.x + e.width, y: e.y + e.height}, + {x: e.x, y: e.y + e.height}, + ] + var n, + r, + i, + o, + a = this.getAbsoluteTransform(t) + return ( + e.forEach(function (e) { + ;(e = a.point(e)), + void 0 === n && ((n = i = e.x), (r = o = e.y)), + (n = Math.min(n, e.x)), + (r = Math.min(r, e.y)), + (i = Math.max(i, e.x)), + (o = Math.max(o, e.y)) + }), + {x: n, y: r, width: i - n, height: o - r} + ) + } + + _drawCachedSceneCanvas(e) { + e.save(), e._applyOpacity(this), e._applyGlobalCompositeOperation(this) + var t = this._getCanvasCache(), + n = (t = (e.translate(t.x, t.y), this._getCachedSceneCanvas())).pixelRatio + e.drawImage(t._canvas, 0, 0, t.width / n, t.height / n), e.restore() + } + + _drawCachedHitCanvas(e) { + var t = this._getCanvasCache(), + n = t.hit + e.save(), + e.translate(t.x, t.y), + e.drawImage(n._canvas, 0, 0, n.width / n.pixelRatio, n.height / n.pixelRatio), + e.restore() + } + + _getCachedSceneCanvas() { + var e, + t, + n, + r, + i, + o = this.filters(), + a = (i = this._getCanvasCache()).scene, + l = (i = i.filter).getContext() + if (o) { + if (!this._filterUpToDate) { + var s = a.pixelRatio + i.setSize(a.width / a.pixelRatio, a.height / a.pixelRatio) + try { + for ( + e = o.length, + l.clear(), + l.drawImage(a._canvas, 0, 0, a.getWidth() / s, a.getHeight() / s), + t = l.getImageData(0, 0, i.getWidth(), i.getHeight()), + n = 0; + n < e; + n++ + ) + 'function' != typeof (r = o[n]) + ? Gp.error( + 'Filter should be type of function, but got ' + + typeof r + + ' instead. Please check correct filters', + ) + : (r.call(this, t), l.putImageData(t, 0, 0)) + } catch (c) { + Gp.error( + 'Unable to apply filter. ' + + c.message + + ' This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.', + ) + } + this._filterUpToDate = !0 + } + return i + } + return a + } + + on(e, t) { + if ((this._cache && this._cache.delete(fg), 3 === arguments.length)) + return this._delegate.apply(this, arguments) + for (var n, r, i = e.split(' '), o = i.length, a = 0; a < o; a++) + (n = (r = i[a].split('.'))[0]), + (r = r[1] || ''), + this.eventListeners[n] || (this.eventListeners[n] = []), + this.eventListeners[n].push({name: r, handler: t}) + return this + } + + off(e, t) { + var n, + r, + i, + o, + a, + l = (e || '').split(' '), + s = l.length + if ((this._cache && this._cache.delete(fg), !e)) for (r in this.eventListeners) this._off(r) + for (n = 0; n < s; n++) + if (((o = (i = l[n].split('.'))[0]), (a = i[1]), o)) + this.eventListeners[o] && this._off(o, a, t) + else for (r in this.eventListeners) this._off(r, a, t) + return this + } + + dispatchEvent(e) { + var t = {target: this, type: e.type, evt: e} + return this.fire(e.type, t), this + } + + addEventListener(e, t) { + return ( + this.on(e, function (e) { + t.call(this, e.evt) + }), + this + ) + } + + removeEventListener(e) { + return this.off(e), this + } + + _delegate(e, t, n) { + var r = this + this.on(e, function (e) { + for (var i = e.target.findAncestors(t, !0, r), o = 0; o < i.length; o++) + ((e = Gp.cloneObject(e)).currentTarget = i[o]), n.call(i[o], e) + }) + } + + remove() { + return ( + this.isDragging() && this.stopDrag(), + ug._dragElements.delete(this._id), + this._remove(), + this + ) + } + + _clearCaches() { + this._clearSelfAndDescendantCache(hg), + this._clearSelfAndDescendantCache(dg), + this._clearSelfAndDescendantCache(pg), + this._clearSelfAndDescendantCache('stage'), + this._clearSelfAndDescendantCache(wg), + this._clearSelfAndDescendantCache(mg) + } + + _remove() { + this._clearCaches() + var e = this.getParent() + e && + e.children && + (e.children.splice(this.index, 1), e._setChildrenIndices(), (this.parent = null)) + } + + destroy() { + return this.remove(), this + } + + getAttr(e) { + var t = 'get' + Gp._capitalize(e) + return Gp._isFunction(this[t]) ? this[t]() : this.attrs[e] + } + + getAncestors() { + for (var e = this.getParent(), t = []; e;) t.push(e), (e = e.getParent()) + return t + } + + getAttrs() { + return this.attrs || {} + } + + setAttrs(e) { + return ( + this._batchTransformChanges(() => { + var t, n + if (!e) return this + for (t in e) + 'children' !== t && + ((n = 'set' + Gp._capitalize(t)), + Gp._isFunction(this[n]) ? this[n](e[t]) : this._setAttr(t, e[t])) + }), + this + ) + } + + isListening() { + return this._getCache(mg, this._isListening) + } + + _isListening(e) { + if (!this.listening()) return !1 + const t = this.getParent() + return !t || t === e || this === e || t._isListening(e) + } + + isVisible() { + return this._getCache(wg, this._isVisible) + } + + _isVisible(e) { + if (!this.visible()) return !1 + const t = this.getParent() + return !t || t === e || this === e || t._isVisible(e) + } + + shouldDrawHit(e, t = !1) { + if (e) return this._isVisible(e) && this._isListening(e) + var n = this.getLayer(), + r = !1 + ug._dragElements.forEach((e) => { + 'dragging' === e.dragStatus && + (('Stage' !== e.node.nodeType && e.node.getLayer() !== n) || (r = !0)) + }), + (e = !t && !Dp.hitOnDragEnabled && r) + return this.isListening() && this.isVisible() && !e + } + + show() { + return this.visible(!0), this + } + + hide() { + return this.visible(!1), this + } + + getZIndex() { + return this.index || 0 + } + + getAbsoluteZIndex() { + var e, + t, + n, + r, + i = this.getDepth(), + o = this, + a = 0 + return ( + 'Stage' !== o.nodeType && + (function l(s) { + for (e = [], t = s.length, n = 0; n < t; n++) + (r = s[n]), + a++, + 'Shape' !== r.nodeType && (e = e.concat(r.getChildren().slice())), + r._id === o._id && (n = t) + 0 < e.length && e[0].getDepth() <= i && l(e) + })(o.getStage().getChildren()), + a + ) + } + + getDepth() { + for (var e = 0, t = this.parent; t;) e++, (t = t.parent) + return e + } + + _batchTransformChanges(e) { + ;(this._batchingTransformChange = !0), + e(), + (this._batchingTransformChange = !1), + this._needClearTransformCache && + (this._clearCache(bg), this._clearSelfAndDescendantCache(hg)), + (this._needClearTransformCache = !1) + } + + setPosition(e) { + return ( + this._batchTransformChanges(() => { + this.x(e.x), this.y(e.y) + }), + this + ) + } + + getPosition() { + return {x: this.x(), y: this.y()} + } + + getRelativePointerPosition() { + if (!this.getStage()) return null + var e = this.getStage().getPointerPosition() + if (!e) return null + var t = this.getAbsoluteTransform().copy() + return t.invert(), t.point(e) + } + + getAbsolutePosition(e) { + let t = !1, + n = this.parent + for (; n;) { + if (n.isCached()) { + t = !0 + break + } + n = n.parent + } + t && !e && (e = !0) + e = this.getAbsoluteTransform(e).getMatrix() + var r = new Ap(), + i = this.offset() + return (r.m = e.slice()), r.translate(i.x, i.y), r.getTranslation() + } + + setAbsolutePosition(e) { + var t = this._clearTransform(), + n = + ((this.attrs.x = t.x), + (this.attrs.y = t.y), + delete t.x, + delete t.y, + this._clearCache(bg), + this._getAbsoluteTransform().copy()) + return ( + n.invert(), + n.translate(e.x, e.y), + (e = { + x: this.attrs.x + n.getTranslation().x, + y: this.attrs.y + n.getTranslation().y, + }), + this._setTransform(t), + this.setPosition({x: e.x, y: e.y}), + this._clearCache(bg), + this._clearSelfAndDescendantCache(hg), + this + ) + } + + _setTransform(e) { + for (var t in e) this.attrs[t] = e[t] + } + + _clearTransform() { + var e = { + x: this.x(), + y: this.y(), + rotation: this.rotation(), + scaleX: this.scaleX(), + scaleY: this.scaleY(), + offsetX: this.offsetX(), + offsetY: this.offsetY(), + skewX: this.skewX(), + skewY: this.skewY(), + } + return ( + (this.attrs.x = 0), + (this.attrs.y = 0), + (this.attrs.rotation = 0), + (this.attrs.scaleX = 1), + (this.attrs.scaleY = 1), + (this.attrs.offsetX = 0), + (this.attrs.offsetY = 0), + (this.attrs.skewX = 0), + (this.attrs.skewY = 0), + e + ) + } + + move(e) { + var t = e.x, + n = ((e = e.y), this.x()), + r = this.y() + return ( + void 0 !== t && (n += t), void 0 !== e && (r += e), this.setPosition({x: n, y: r}), this + ) + } + + _eachAncestorReverse(e, t) { + var n, + r, + i = [], + o = this.getParent() + if (!t || t._id !== this._id) { + for (i.unshift(this); o && (!t || o._id !== t._id);) i.unshift(o), (o = o.parent) + for (n = i.length, r = 0; r < n; r++) e(i[r]) + } + } + + rotate(e) { + return this.rotation(this.rotation() + e), this + } + + moveToTop() { + if (!this.parent) return Gp.warn('Node has no parent. moveToTop function is ignored.'), !1 + var e = this.index + return ( + e < this.parent.getChildren().length - 1 && + (this.parent.children.splice(e, 1), + this.parent.children.push(this), + this.parent._setChildrenIndices(), + !0) + ) + } + + moveUp() { + if (!this.parent) return Gp.warn('Node has no parent. moveUp function is ignored.'), !1 + var e = this.index + return ( + e < this.parent.getChildren().length - 1 && + (this.parent.children.splice(e, 1), + this.parent.children.splice(e + 1, 0, this), + this.parent._setChildrenIndices(), + !0) + ) + } + + moveDown() { + if (!this.parent) return Gp.warn('Node has no parent. moveDown function is ignored.'), !1 + var e = this.index + return ( + 0 < e && + (this.parent.children.splice(e, 1), + this.parent.children.splice(e - 1, 0, this), + this.parent._setChildrenIndices(), + !0) + ) + } + + moveToBottom() { + if (!this.parent) return Gp.warn('Node has no parent. moveToBottom function is ignored.'), !1 + var e = this.index + return ( + 0 < e && + (this.parent.children.splice(e, 1), + this.parent.children.unshift(this), + this.parent._setChildrenIndices(), + !0) + ) + } + + setZIndex(e) { + if (!this.parent) return Gp.warn('Node has no parent. zIndex parameter is ignored.'), this + ; + (e < 0 || e >= this.parent.children.length) && + Gp.warn( + 'Unexpected value ' + + e + + ' for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to ' + + (this.parent.children.length - 1) + + '.', + ) + var t = this.index + return ( + this.parent.children.splice(t, 1), + this.parent.children.splice(e, 0, this), + this.parent._setChildrenIndices(), + this + ) + } + + getAbsoluteOpacity() { + return this._getCache(dg, this._getAbsoluteOpacity) + } + + _getAbsoluteOpacity() { + var e = this.opacity(), + t = this.getParent() + return t && !t._isUnderCache && (e *= t.getAbsoluteOpacity()), e + } + + moveTo(e) { + return this.getParent() !== e && (this._remove(), e.add(this)), this + } + + toObject() { + var e, + t, + n, + r = {}, + i = this.getAttrs() + for (e in ((r.attrs = {}), i)) + (t = i[e]), + (Gp.isObject(t) && !Gp._isPlainObject(t) && !Gp._isArray(t)) || + ((n = 'function' == typeof this[e] && this[e]), + delete i[e], + (n ? n.call(this) : null) !== (i[e] = t) && (r.attrs[e] = t)) + return (r.className = this.getClassName()), Gp._prepareToStringify(r) + } + + toJSON() { + return JSON.stringify(this.toObject()) + } + + getParent() { + return this.parent + } + + findAncestors(e, t, n) { + for (var r = [], i = (t && this._isMatch(e) && r.push(this), this.parent); i;) { + if (i === n) return r + i._isMatch(e) && r.push(i), (i = i.parent) + } + return r + } + + isAncestorOf(e) { + return !1 + } + + findAncestor(e, t, n) { + return this.findAncestors(e, t, n)[0] + } + + _isMatch(e) { + if (!e) return !1 + if ('function' == typeof e) return e(this) + for (var t, n = e.replace(/ /g, '').split(','), r = n.length, i = 0; i < r; i++) + if ( + ((t = n[i]), + Gp.isValidSelector(t) || + (Gp.warn( + 'Selector "' + + t + + '" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".', + ), + Gp.warn( + 'If you have a custom shape with such className, please change it to start with upper letter like "Triangle".', + ), + Gp.warn('Konva is awesome, right?')), + '#' === t.charAt(0)) + ) { + if (this.id() === t.slice(1)) return !0 + } else if ('.' === t.charAt(0)) { + if (this.hasName(t.slice(1))) return !0 + } else if (this.className === t || this.nodeType === t) return !0 + return !1 + } + + getLayer() { + var e = this.getParent() + return e ? e.getLayer() : null + } + + getStage() { + return this._getCache('stage', this._getStage) + } + + _getStage() { + var e = this.getParent() + if (e) return e.getStage() + } + + fire(e, t = {}, n) { + return (t.target = t.target || this), n ? this._fireAndBubble(e, t) : this._fire(e, t), this + } + + getAbsoluteTransform(e) { + return e ? this._getAbsoluteTransform(e) : this._getCache(hg, this._getAbsoluteTransform) + } + + _getAbsoluteTransform(e) { + var t, n, r, i + return ( + e + ? ((t = new Ap()), + this._eachAncestorReverse(function (e) { + var n = e.transformsEnabled() + 'all' === n + ? t.multiply(e.getTransform()) + : 'position' === n && t.translate(e.x() - e.offsetX(), e.y() - e.offsetY()) + }, e)) + : ((t = this._cache.get(hg) || new Ap()), + this.parent ? this.parent.getAbsoluteTransform().copyInto(t) : t.reset(), + 'all' === (e = this.transformsEnabled()) + ? t.multiply(this.getTransform()) + : 'position' === e && + ((e = this.attrs.x || 0), + (n = this.attrs.y || 0), + (r = this.attrs.offsetX || 0), + (i = this.attrs.offsetY || 0), + t.translate(e - r, n - i)), + (t.dirty = !1)), + t + ) + } + + getAbsoluteScale(e) { + for (var t = this; t;) t._isUnderCache && (e = t), (t = t.getParent()) + var n = this.getAbsoluteTransform(e).decompose() + return {x: n.scaleX, y: n.scaleY} + } + + getAbsoluteRotation() { + return this.getAbsoluteTransform().decompose().rotation + } + + getTransform() { + return this._getCache(bg, this._getTransform) + } + + _getTransform() { + var e = this._cache.get(bg) || new Ap(), + t = (e.reset(), this.x()), + n = this.y(), + r = Dp.getAngle(this.rotation()), + i = null != (i = this.attrs.scaleX) ? i : 1, + o = null != (o = this.attrs.scaleY) ? o : 1, + a = this.attrs.skewX || 0, + l = this.attrs.skewY || 0, + s = this.attrs.offsetX || 0, + c = this.attrs.offsetY || 0 + return ( + (0 === t && 0 === n) || e.translate(t, n), + 0 !== r && e.rotate(r), + (0 === a && 0 === l) || e.skew(a, l), + (1 === i && 1 === o) || e.scale(i, o), + (0 === s && 0 === c) || e.translate(-1 * s, -1 * c), + (e.dirty = !1), + e + ) + } + + clone(e) { + var t, + n, + r, + i, + o, + a = Gp.cloneObject(this.attrs) + for (t in e) a[t] = e[t] + var l = new this.constructor(a) + for (t in this.eventListeners) + for (r = (n = this.eventListeners[t]).length, i = 0; i < r; i++) + (o = n[i]).name.indexOf('konva') < 0 && + (l.eventListeners[t] || (l.eventListeners[t] = []), l.eventListeners[t].push(o)) + return l + } + + _toKonvaCanvas(e) { + e = e || {} + var t = this.getClientRect(), + n = this.getStage(), + r = (void 0 !== e.x ? e : t).x, + i = (void 0 !== e.y ? e : t).y, + o = e.pixelRatio || 1 + return ( + (t = (e = new sg({ + width: e.width || t.width || (n ? n.width() : 0), + height: e.height || t.height || (n ? n.height() : 0), + pixelRatio: o, + })).getContext()).save(), + (r || i) && t.translate(-1 * r, -1 * i), + this.drawScene(e), + t.restore(), + e + ) + } + + toCanvas(e) { + return this._toKonvaCanvas(e)._canvas + } + + toDataURL(e) { + var t = (e = e || {}).mimeType || null, + n = e.quality || null + t = this._toKonvaCanvas(e).toDataURL(t, n) + return e.callback && e.callback(t), t + } + + toImage(e) { + if (!e || !e.callback) throw 'callback required for toImage method config argument' + var t = e.callback + delete e.callback, + Gp._urlToImage(this.toDataURL(e), function (e) { + t(e) + }) + } + + setSize(e) { + return this.width(e.width), this.height(e.height), this + } + + getSize() { + return {width: this.width(), height: this.height()} + } + + getClassName() { + return this.className || this.nodeType + } + + getType() { + return this.nodeType + } + + getDragDistance() { + return void 0 !== this.attrs.dragDistance + ? this.attrs.dragDistance + : this.parent + ? this.parent.getDragDistance() + : Dp.dragDistance + } + + _off(e, t, n) { + for (var r, i, o = this.eventListeners[e], a = 0; a < o.length; a++) + if ( + ((r = o[a].name), + (i = o[a].handler), + !(('konva' === r && 'konva' !== t) || (t && r !== t) || (n && n !== i))) + ) { + if ((o.splice(a, 1), 0 === o.length)) { + delete this.eventListeners[e] + break + } + a-- + } + } + + _fireChangeEvent(e, t, n) { + this._fire(e + 'Change', {oldVal: t, newVal: n}) + } + + addName(e) { + var t + return this.hasName(e) || ((t = this.name()), this.name(t ? t + ' ' + e : e)), this + } + + hasName(e) { + if (!e) return !1 + const t = this.name() + return !!t && -1 !== (t || '').split(/\s/g).indexOf(e) + } + + removeName(e) { + var t = (this.name() || '').split(/\s/g) + return -1 !== (e = t.indexOf(e)) && (t.splice(e, 1), this.name(t.join(' '))), this + } + + setAttr(e, t) { + var n = this['set' + Gp._capitalize(e)] + return Gp._isFunction(n) ? n.call(this, t) : this._setAttr(e, t), this + } + + _requestDraw() { + if (Dp.autoDrawEnabled) { + const e = this.getLayer() || this.getStage() + null != e && e.batchDraw() + } + } + + _setAttr(e, t) { + var n = this.attrs[e] + ;(n === t && !Gp.isObject(t)) || + (null == t ? delete this.attrs[e] : (this.attrs[e] = t), + this._shouldFireChangeEvents && this._fireChangeEvent(e, n, t), + this._requestDraw()) + } + + _setComponentAttr(e, t, n) { + var r + void 0 !== n && + ((r = this.attrs[e]) || (this.attrs[e] = this.getAttr(e)), + (this.attrs[e][t] = n), + this._fireChangeEvent(e, r, n)) + } + + _fireAndBubble(e, t, n) { + var r + t && 'Shape' === this.nodeType && (t.target = this), + ((e === vg || e === yg) && + ((n && (this === n || (this.isAncestorOf && this.isAncestorOf(n)))) || + ('Stage' === this.nodeType && !n))) || + (this._fire(e, t), + (r = + (e === vg || e === yg) && + n && + n.isAncestorOf && + n.isAncestorOf(this) && + !n.isAncestorOf(this.parent)), + ((t && !t.cancelBubble) || !t) && + this.parent && + this.parent.isListening() && + !r && + (n && n.parent + ? this._fireAndBubble.call(this.parent, e, t, n) + : this._fireAndBubble.call(this.parent, e, t))) + } + + _getProtoListeners(e) { + let t = this._cache.get(fg) + if (!t) { + t = {} + let e = Object.getPrototypeOf(this) + for (; e;) + if (e.eventListeners) { + for (var n in e.eventListeners) { + const i = e.eventListeners[n] + var r = t[n] || [] + t[n] = i.concat(r) + } + e = Object.getPrototypeOf(e) + } else e = Object.getPrototypeOf(e) + this._cache.set(fg, t) + } + return t[e] + } + + _fire(e, t) { + ;((t = t || {}).currentTarget = this), (t.type = e) + const n = this._getProtoListeners(e) + if (n) for (var r = 0; r < n.length; r++) n[r].handler.call(this, t) + const i = this.eventListeners[e] + if (i) for (r = 0; r < i.length; r++) i[r].handler.call(this, t) + } + + draw() { + return this.drawScene(), this.drawHit(), this + } + + _createDragElement(e) { + e = e ? e.pointerId : void 0 + var t = this.getStage(), + n = this.getAbsolutePosition() + t = t._getPointerById(e) || t._changedPointerPositions[0] || n + ug._dragElements.set(this._id, { + node: this, + startPointerPos: t, + offset: {x: t.x - n.x, y: t.y - n.y}, + dragStatus: 'ready', + pointerId: e, + }) + } + + startDrag(e, t = !0) { + ug._dragElements.has(this._id) || this._createDragElement(e) + ;(ug._dragElements.get(this._id).dragStatus = 'dragging'), + this.fire('dragstart', {type: 'dragstart', target: this, evt: e && e.evt}, t) + } + + _setDragPosition(e, t) { + var n = this.getStage()._getPointerById(t.pointerId) + n && + ((n = {x: n.x - t.offset.x, y: n.y - t.offset.y}), + void 0 !== (t = this.dragBoundFunc()) && + ((t = t.call(this, n, e)) + ? (n = t) + : Gp.warn( + 'dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.', + )), + (this._lastPos && this._lastPos.x === n.x && this._lastPos.y === n.y) || + (this.setAbsolutePosition(n), this._requestDraw()), + (this._lastPos = n)) + } + + stopDrag(e) { + const t = ug._dragElements.get(this._id) + t && (t.dragStatus = 'stopped'), ug._endDragBefore(e), ug._endDragAfter(e) + } + + setDraggable(e) { + this._setAttr('draggable', e), this._dragChange() + } + + isDragging() { + var e = ug._dragElements.get(this._id) + return !!e && 'dragging' === e.dragStatus + } + + _listenDrag() { + this._dragCleanup(), + this.on('mousedown.konva touchstart.konva', function (e) { + var t + ;(void 0 === e.evt.button || 0 <= Dp.dragButtons.indexOf(e.evt.button)) && + !this.isDragging() && + ((t = !1), + ug._dragElements.forEach((e) => { + this.isAncestorOf(e.node) && (t = !0) + }), + t || this._createDragElement(e)) + }) + } + + _dragChange() { + var e, t + this.attrs.draggable + ? this._listenDrag() + : (this._dragCleanup(), + this.getStage() && + ((e = (t = ug._dragElements.get(this._id)) && 'dragging' === t.dragStatus), + (t = t && 'ready' === t.dragStatus), + e ? this.stopDrag() : t && ug._dragElements.delete(this._id))) + } + + _dragCleanup() { + this.off('mousedown.konva'), this.off('touchstart.konva') + } + + isClientRectOnScreen(e = {x: 0, y: 0}) { + const t = this.getStage() + return ( + !!t && + ((e = { + x: -e.x, + y: -e.y, + width: t.width() + e.x, + height: t.height() + e.y, + }), + Gp.haveIntersection(e, this.getClientRect())) + ) + } + + static create(e, t) { + return Gp._isString(e) && (e = JSON.parse(e)), this._createNode(e, t) + } + + static _createNode(e, t) { + var n, + r, + i, + o = xg.prototype.getClassName.call(e), + a = e.children + t && (e.attrs.container = t), + Dp[o] || + (Gp.warn('Can not find a node with class name "' + o + '". Fallback to "Shape".'), + (o = 'Shape')) + if (((n = new (0, Dp[o])(e.attrs)), a)) + for (r = a.length, i = 0; i < r; i++) n.add(xg._createNode(a[i])) + return n + } + } + ;(xg.prototype.nodeType = 'Node'), + (xg.prototype._attrsAffectingSize = []), + (xg.prototype.eventListeners = {}), + xg.prototype.on.call(xg.prototype, a, function () { + this._batchingTransformChange + ? (this._needClearTransformCache = !0) + : (this._clearCache(bg), this._clearSelfAndDescendantCache(hg)) + }), + xg.prototype.on.call(xg.prototype, 'visibleChange.konva', function () { + this._clearSelfAndDescendantCache(wg) + }), + xg.prototype.on.call(xg.prototype, 'listeningChange.konva', function () { + this._clearSelfAndDescendantCache(mg) + }), + xg.prototype.on.call(xg.prototype, 'opacityChange.konva', function () { + this._clearSelfAndDescendantCache(dg) + }) + const Eg = tg.addGetterSetter + Eg(xg, 'zIndex'), + Eg(xg, 'absolutePosition'), + Eg(xg, 'position'), + Eg(xg, 'x', 0, Xp()), + Eg(xg, 'y', 0, Xp()), + Eg(xg, 'globalCompositeOperation', 'source-over', $p()), + Eg(xg, 'opacity', 1, Xp()), + Eg(xg, 'name', '', $p()), + Eg(xg, 'id', '', $p()), + Eg(xg, 'rotation', 0, Xp()), + tg.addComponentsGetterSetter(xg, 'scale', ['x', 'y']), + Eg(xg, 'scaleX', 1, Xp()), + Eg(xg, 'scaleY', 1, Xp()), + tg.addComponentsGetterSetter(xg, 'skew', ['x', 'y']), + Eg(xg, 'skewX', 0, Xp()), + Eg(xg, 'skewY', 0, Xp()), + tg.addComponentsGetterSetter(xg, 'offset', ['x', 'y']), + Eg(xg, 'offsetX', 0, Xp()), + Eg(xg, 'offsetY', 0, Xp()), + Eg(xg, 'dragDistance', null, Xp()), + Eg(xg, 'width', 0, Xp()), + Eg(xg, 'height', 0, Xp()), + Eg(xg, 'listening', !0, Qp()), + Eg(xg, 'preventDefault', !0, Qp()), + Eg(xg, 'filters', null, function (e) { + return (this._filterUpToDate = !1), e + }), + Eg(xg, 'visible', !0, Qp()), + Eg(xg, 'transformsEnabled', 'all', $p()), + Eg(xg, 'size'), + Eg(xg, 'dragBoundFunc'), + Eg(xg, 'draggable', !1, Qp()), + tg.backCompat(xg, { + rotateDeg: 'rotate', + setRotationDeg: 'setRotation', + getRotationDeg: 'getRotation', + }) + + class Og extends xg { + constructor() { + super(...arguments), (this.children = []) + } + + getChildren(e) { + if (!e) return this.children || [] + const t = this.children || [] + var n = [] + return ( + t.forEach(function (t) { + e(t) && n.push(t) + }), + n + ) + } + + hasChildren() { + return 0 < this.getChildren().length + } + + removeChildren() { + return ( + this.getChildren().forEach((e) => { + ;(e.parent = null), (e.index = 0), e.remove() + }), + (this.children = []), + this._requestDraw(), + this + ) + } + + destroyChildren() { + return ( + this.getChildren().forEach((e) => { + ;(e.parent = null), (e.index = 0), e.destroy() + }), + (this.children = []), + this._requestDraw(), + this + ) + } + + add(...e) { + if (1 < arguments.length) { + for (var t = 0; t < arguments.length; t++) this.add(arguments[t]) + return this + } + return ( + (e = e[0]).getParent() + ? e.moveTo(this) + : (this._validateAdd(e), + (e.index = this.getChildren().length), + (e.parent = this), + e._clearCaches(), + this.getChildren().push(e), + this._fire('add', {child: e}), + this._requestDraw()), + this + ) + } + + destroy() { + return this.hasChildren() && this.destroyChildren(), super.destroy(), this + } + + find(e) { + return this._generalFind(e, !1) + } + + findOne(e) { + return 0 < (e = this._generalFind(e, !0)).length ? e[0] : void 0 + } + + _generalFind(e, t) { + var n = [] + return ( + this._descendants((r) => { + var i = r._isMatch(e) + return i && n.push(r), !(!i || !t) + }), + n + ) + } + + _descendants(e) { + for (const t of this.getChildren()) { + if (e(t)) return !0 + if (t.hasChildren() && t._descendants(e)) return !0 + } + return !1 + } + + toObject() { + var e = xg.prototype.toObject.call(this) + return ( + (e.children = []), + this.getChildren().forEach((t) => { + e.children.push(t.toObject()) + }), + e + ) + } + + isAncestorOf(e) { + for (var t = e.getParent(); t;) { + if (t._id === this._id) return !0 + t = t.getParent() + } + return !1 + } + + clone(e) { + var t = xg.prototype.clone.call(this, e) + return ( + this.getChildren().forEach(function (e) { + t.add(e.clone()) + }), + t + ) + } + + getAllIntersections(e) { + var t = [] + return ( + this.find('Shape').forEach(function (n) { + n.isVisible() && n.intersects(e) && t.push(n) + }), + t + ) + } + + _clearSelfAndDescendantCache(e) { + var t + super._clearSelfAndDescendantCache(e), + this.isCached() || + (null != (t = this.children) && + t.forEach(function (t) { + t._clearSelfAndDescendantCache(e) + })) + } + + _setChildrenIndices() { + var e + null != (e = this.children) && + e.forEach(function (e, t) { + e.index = t + }), + this._requestDraw() + } + + drawScene(e, t) { + var n = this.getLayer(), + r = + ((n = (e = e || (n && n.getCanvas())) && e.getContext()), + (r = this._getCanvasCache()) && r.scene), + i = e && e.isCache + return ( + (this.isVisible() || i) && + (r + ? (n.save(), + (i = this.getAbsoluteTransform(t).getMatrix()), + n.transform(i[0], i[1], i[2], i[3], i[4], i[5]), + this._drawCachedSceneCanvas(n), + n.restore()) + : this._drawChildren('drawScene', e, t)), + this + ) + } + + drawHit(e, t) { + if (!this.shouldDrawHit(t)) return this + var n = this.getLayer(), + r = ((n = (e = e || (n && n.hitCanvas)) && e.getContext()), this._getCanvasCache()) + return ( + r && r.hit + ? (n.save(), + (r = this.getAbsoluteTransform(t).getMatrix()), + n.transform(r[0], r[1], r[2], r[3], r[4], r[5]), + this._drawCachedHitCanvas(n), + n.restore()) + : this._drawChildren('drawHit', e, t), + this + ) + } + + _drawChildren(e, t, n) { + var r, + i, + o, + a = t && t.getContext(), + l = this.clipWidth(), + s = this.clipHeight(), + c = this.clipFunc(), + u = (l && s) || c, + d = n === this + ;(c = + (u && + (a.save(), + (i = (r = this.getAbsoluteTransform(n)).getMatrix()), + a.transform(i[0], i[1], i[2], i[3], i[4], i[5]), + a.beginPath(), + c ? c.call(this, a, this) : ((c = this.clipX()), (o = this.clipY()), a.rect(c, o, l, s)), + a.clip(), + (i = r.copy().invert().getMatrix()), + a.transform(i[0], i[1], i[2], i[3], i[4], i[5])), + !d && 'source-over' !== this.globalCompositeOperation() && 'drawScene' === e)) && + (a.save(), a._applyGlobalCompositeOperation(this)), + null != (o = this.children) && + o.forEach(function (r) { + r[e](t, n) + }), + c && a.restore(), + u && a.restore() + } + + getClientRect(e) { + for ( + var t, + n, + r, + i, + o, + a, + l = (e = e || {}).skipTransform, + s = e.relativeTo, + c = this, + u = + (null != (t = this.children) && + t.forEach(function (t) { + !t.visible() || + (0 === + (t = t.getClientRect({ + relativeTo: c, + skipShadow: e.skipShadow, + skipStroke: e.skipStroke, + })).width && + 0 === t.height) || + (o = + void 0 === n + ? ((n = t.x), (r = t.y), (i = t.x + t.width), t.y + t.height) + : ((n = Math.min(n, t.x)), + (r = Math.min(r, t.y)), + (i = Math.max(i, t.x + t.width)), + Math.max(o, t.y + t.height))) + }), + this.find('Shape')), + d = !1, + f = 0; + f < u.length; + f++ + ) + if (u[f]._isVisible(this)) { + d = !0 + break + } + return ( + (a = + d && void 0 !== n + ? {x: n, y: r, width: i - n, height: o - r} + : {x: 0, y: 0, width: 0, height: 0}), + l ? a : this._transformedRect(a, s) + ) + } + } + + tg.addComponentsGetterSetter(Og, 'clip', ['x', 'y', 'width', 'height']), + tg.addGetterSetter(Og, 'clipX', void 0, Xp()), + tg.addGetterSetter(Og, 'clipY', void 0, Xp()), + tg.addGetterSetter(Og, 'clipWidth', void 0, Xp()), + tg.addGetterSetter(Og, 'clipHeight', void 0, Xp()), + tg.addGetterSetter(Og, 'clipFunc') + const Sg = new Map(), + kg = void 0 !== Dp._global.PointerEvent + + function Pg(e) { + return Sg.get(e) + } + + function _g(e) { + return {evt: e, pointerId: e.pointerId} + } + + function Lg(e, t) { + return Sg.get(e) === t + } + + function Tg(e, t) { + jg(e), + t.getStage() && + (Sg.set(e, t), + kg && t._fire('gotpointercapture', _g(new PointerEvent('gotpointercapture')))) + } + + function jg(e) { + const t = Sg.get(e) + var n + t && + ((n = t.getStage()) && n.content, + Sg.delete(e), + kg && t._fire('lostpointercapture', _g(new PointerEvent('lostpointercapture')))) + } + + var Ig = 'pointerup', + Mg = 'contextmenu', + Rg = 'wheel', + Dg = [ + [(s = 'mouseenter'), '_pointerenter'], + [(hp = 'mousedown'), '_pointerdown'], + [(kr = 'mousemove'), '_pointermove'], + [(Pp = 'mouseup'), '_pointerup'], + [(sv = 'mouseleave'), '_pointerleave'], + [(Gv = 'touchstart'), '_pointerdown'], + [(_v = 'touchmove'), '_pointermove'], + [(Zv = 'touchend'), '_pointerup'], + [(rE = 'touchcancel'), '_pointercancel'], + [(Zr = 'mouseover'), '_pointerover'], + [Rg, '_wheel'], + [Mg, '_contextmenu'], + [(RC = 'pointerdown'), '_pointerdown'], + [(a = 'pointermove'), '_pointermove'], + [Ig, '_pointerup'], + [(DC = 'pointercancel'), '_pointercancel'], + ['lostpointercapture', '_lostpointercapture'], + ] + const Ag = { + mouse: { + pointerout: 'mouseout', + pointerleave: sv, + pointerover: Zr, + pointerenter: s, + pointermove: kr, + pointerdown: hp, + pointerup: Pp, + pointercancel: 'mousecancel', + pointerclick: 'click', + pointerdblclick: 'dblclick', + }, + touch: { + pointerout: 'touchout', + pointerleave: 'touchleave', + pointerover: 'touchover', + pointerenter: 'touchenter', + pointermove: _v, + pointerdown: Gv, + pointerup: Zv, + pointercancel: rE, + pointerclick: 'tap', + pointerdblclick: 'dbltap', + }, + pointer: { + pointerout: (Yb = 'pointerout'), + pointerleave: (Kb = 'pointerleave'), + pointerover: (Qb = 'pointerover'), + pointerenter: (WE = 'pointerenter'), + pointermove: a, + pointerdown: RC, + pointerup: Ig, + pointercancel: DC, + pointerclick: 'pointerclick', + pointerdblclick: 'pointerdblclick', + }, + }, + zg = (e) => + 0 <= e.indexOf('pointer') ? 'pointer' : 0 <= e.indexOf('touch') ? 'touch' : 'mouse', + Ng = (e) => + 'pointer' === (e = zg(e)) + ? Dp.pointerEventsEnabled && Ag.pointer + : 'touch' === e + ? Ag.touch + : 'mouse' === e + ? Ag.mouse + : void 0 + + function Hg(e = {}) { + return ( + (e.clipFunc || e.clipWidth || e.clipHeight) && + Gp.warn('Stage does not support clipping. Please use clip for Layers or Groups.'), + e + ) + } + + const Fg = [] + + class Bg extends Og { + constructor(e) { + super(Hg(e)), + (this._pointerPositions = []), + (this._changedPointerPositions = []), + this._buildDOM(), + this._bindContentEvents(), + Fg.push(this), + this.on('widthChange.konva heightChange.konva', this._resizeDOM), + this.on('visibleChange.konva', this._checkVisibility), + this.on('clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva', () => { + Hg(this.attrs) + }), + this._checkVisibility() + } + + _validateAdd(e) { + var t = 'Layer' === e.getType() + e = 'FastLayer' === e.getType() + t || e || Gp.throw('You may only add layers to the stage.') + } + + _checkVisibility() { + var e + this.content && ((e = this.visible() ? '' : 'none'), (this.content.style.display = e)) + } + + setContainer(e) { + var t, n + if ( + 'string' == typeof e && + !(e = + '.' === e.charAt(0) + ? ((t = e.slice(1)), document.getElementsByClassName(t)[0]) + : ((n = '#' !== e.charAt(0) ? e : e.slice(1)), document.getElementById(n))) + ) + throw 'Can not find container in document with id ' + n + return ( + this._setAttr('container', e), + this.content && + (this.content.parentElement && this.content.parentElement.removeChild(this.content), + e.appendChild(this.content)), + this + ) + } + + shouldDrawHit() { + return !0 + } + + clear() { + for (var e = this.children, t = e.length, n = 0; n < t; n++) e[n].clear() + return this + } + + clone(e) { + return ( + ((e = e || {}).container = 'undefined' != typeof document && document.createElement('div')), + Og.prototype.clone.call(this, e) + ) + } + + destroy() { + var e + return ( + super.destroy(), + -1 < + (e = + ((e = this.content) && Gp._isInDocument(e) && this.container().removeChild(e), + Fg.indexOf(this))) && Fg.splice(e, 1), + this + ) + } + + getPointerPosition() { + var e = this._pointerPositions[0] || this._changedPointerPositions[0] + return e + ? {x: e.x, y: e.y} + : (Gp.warn( + 'Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);', + ), + null) + } + + _getPointerById(e) { + return this._pointerPositions.find((t) => t.id === e) + } + + getPointersPositions() { + return this._pointerPositions + } + + getStage() { + return this + } + + getContent() { + return this.content + } + + _toKonvaCanvas(e) { + ;((e = e || {}).x = e.x || 0), + (e.y = e.y || 0), + (e.width = e.width || this.width()), + (e.height = e.height || this.height()) + var t = new sg({ + width: e.width, + height: e.height, + pixelRatio: e.pixelRatio || 1, + }), + n = t.getContext()._context, + r = this.children + return ( + (e.x || e.y) && n.translate(-1 * e.x, -1 * e.y), + r.forEach(function (t) { + t.isVisible() && + ((t = t._toKonvaCanvas(e)), + n.drawImage( + t._canvas, + e.x, + e.y, + t.getWidth() / t.getPixelRatio(), + t.getHeight() / t.getPixelRatio(), + )) + }), + t + ) + } + + getIntersection(e) { + if (!e) return null + for (var t = this.children, n = t.length - 1; 0 <= n; n--) { + var r = t[n].getIntersection(e) + if (r) return r + } + return null + } + + _resizeDOM() { + var e = this.width(), + t = this.height() + this.content && + ((this.content.style.width = e + 'px'), (this.content.style.height = t + 'px')), + this.bufferCanvas.setSize(e, t), + this.bufferHitCanvas.setSize(e, t), + this.children.forEach((n) => { + n.setSize({width: e, height: t}), n.draw() + }) + } + + add(e) { + if (1 < arguments.length) { + for (var t = 0; t < arguments.length; t++) this.add(arguments[t]) + return this + } + super.add(e) + var n = this.children.length + return ( + 5 < n && + Gp.warn( + 'The stage has ' + + n + + ' layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group.', + ), + e.setSize({width: this.width(), height: this.height()}), + e.draw(), + Dp.isBrowser && this.content.appendChild(e.canvas._canvas), + this + ) + } + + getParent() { + return null + } + + getLayer() { + return null + } + + hasPointerCapture(e) { + return Lg(e, this) + } + + setPointerCapture(e) { + Tg(e, this) + } + + releaseCapture(e) { + jg(e) + } + + getLayers() { + return this.children + } + + _bindContentEvents() { + Dp.isBrowser && + Dg.forEach(([e, t]) => { + this.content.addEventListener(e, (e) => { + this[t](e) + }) + }) + } + + _pointerenter(e) { + this.setPointersPositions(e) + var t = Ng(e.type) + this._fire(t.pointerenter, {evt: e, target: this, currentTarget: this}) + } + + _pointerover(e) { + this.setPointersPositions(e) + var t = Ng(e.type) + this._fire(t.pointerover, {evt: e, target: this, currentTarget: this}) + } + + _getTargetShape(e) { + let t = this[e + 'targetShape'] + return t && !t.getStage() ? null : t + } + + _pointerleave(e) { + var t, + n, + r = Ng(e.type), + i = zg(e.type) + r && + (this.setPointersPositions(e), + (t = this._getTargetShape(i)), + (n = !ug.isDragging || Dp.hitOnDragEnabled), + t && n + ? (t._fireAndBubble(r.pointerout, {evt: e}), + t._fireAndBubble(r.pointerleave, {evt: e}), + this._fire(r.pointerleave, { + evt: e, + target: this, + currentTarget: this, + }), + (this[i + 'targetShape'] = null)) + : n && + (this._fire(r.pointerleave, { + evt: e, + target: this, + currentTarget: this, + }), + this._fire(r.pointerout, { + evt: e, + target: this, + currentTarget: this, + })), + (this.pointerPos = void 0), + (this._pointerPositions = [])) + } + + _pointerdown(e) { + const t = Ng(e.type), + n = zg(e.type) + var r + t && + (this.setPointersPositions(e), + (r = !1), + this._changedPointerPositions.forEach((i) => { + var o = this.getIntersection(i), + a = ((ug.justDragged = !1), (Dp['_' + n + 'ListenClick'] = !0), o && o.isListening()) + a && + (Dp.capturePointerEventsEnabled && o.setPointerCapture(i.id), + (this[n + 'ClickStartShape'] = o)._fireAndBubble(t.pointerdown, { + evt: e, + pointerId: i.id, + }), + (r = !0), + (a = 0 <= e.type.indexOf('touch')), + o.preventDefault() && e.cancelable && a && e.preventDefault()) + }), + r || + this._fire(t.pointerdown, { + evt: e, + target: this, + currentTarget: this, + pointerId: this._pointerPositions[0].id, + })) + } + + _pointermove(e) { + const t = Ng(e.type), + n = zg(e.type) + if ( + t && + (ug.isDragging && ug.node.preventDefault() && e.cancelable && e.preventDefault(), + this.setPointersPositions(e), + !ug.isDragging || Dp.hitOnDragEnabled) + ) { + var r = {} + let o = !1 + var i = this._getTargetShape(n) + this._changedPointerPositions.forEach((a) => { + const l = Pg(a.id) || this.getIntersection(a) + a = a.id + var s = {evt: e, pointerId: a}, + c = i !== l + if ( + (c && + i && + (i._fireAndBubble(t.pointerout, Object.assign({}, s), l), + i._fireAndBubble(t.pointerleave, Object.assign({}, s), l)), + l) + ) { + if (r[l._id]) return + r[l._id] = !0 + } + l && l.isListening() + ? ((o = !0), + c && + (l._fireAndBubble(t.pointerover, Object.assign({}, s), i), + l._fireAndBubble(t.pointerenter, Object.assign({}, s), i), + (this[n + 'targetShape'] = l)), + l._fireAndBubble(t.pointermove, Object.assign({}, s))) + : i && + (this._fire(t.pointerover, { + evt: e, + target: this, + currentTarget: this, + pointerId: a, + }), + (this[n + 'targetShape'] = null)) + }), + o || + this._fire(t.pointermove, { + evt: e, + target: this, + currentTarget: this, + pointerId: this._changedPointerPositions[0].id, + }) + } + } + + _pointerup(e) { + const t = Ng(e.type), + n = zg(e.type) + if (t) { + this.setPointersPositions(e) + const i = this[n + 'ClickStartShape'], + o = this[n + 'ClickEndShape'] + var r = {} + let a = !1 + this._changedPointerPositions.forEach((l) => { + const s = Pg(l.id) || this.getIntersection(l) + if (s) { + if ((s.releaseCapture(l.id), r[s._id])) return + r[s._id] = !0 + } + l = l.id + var c = {evt: e, pointerId: l} + let u = !1 + Dp['_' + n + 'InDblClickWindow'] + ? ((u = !0), clearTimeout(this[n + 'DblTimeout'])) + : ug.justDragged || + ((Dp['_' + n + 'InDblClickWindow'] = !0), clearTimeout(this[n + 'DblTimeout'])), + (this[n + 'DblTimeout'] = setTimeout(function () { + Dp['_' + n + 'InDblClickWindow'] = !1 + }, Dp.dblClickWindow)), + s && s.isListening() + ? ((a = !0), + (this[n + 'ClickEndShape'] = s)._fireAndBubble(t.pointerup, Object.assign({}, c)), + Dp['_' + n + 'ListenClick'] && + i && + i === s && + (s._fireAndBubble(t.pointerclick, Object.assign({}, c)), + u && o && o === s && s._fireAndBubble(t.pointerdblclick, Object.assign({}, c)))) + : ((this[n + 'ClickEndShape'] = null), + Dp['_' + n + 'ListenClick'] && + this._fire(t.pointerclick, { + evt: e, + target: this, + currentTarget: this, + pointerId: l, + }), + u && + this._fire(t.pointerdblclick, { + evt: e, + target: this, + currentTarget: this, + pointerId: l, + })) + }), + a || + this._fire(t.pointerup, { + evt: e, + target: this, + currentTarget: this, + pointerId: this._changedPointerPositions[0].id, + }), + (Dp['_' + n + 'ListenClick'] = !1), + e.cancelable && e.preventDefault() + } + } + + _contextmenu(e) { + this.setPointersPositions(e) + var t = this.getIntersection(this.getPointerPosition()) + t && t.isListening() + ? t._fireAndBubble(Mg, {evt: e}) + : this._fire(Mg, {evt: e, target: this, currentTarget: this}) + } + + _wheel(e) { + this.setPointersPositions(e) + var t = this.getIntersection(this.getPointerPosition()) + t && t.isListening() + ? t._fireAndBubble(Rg, {evt: e}) + : this._fire(Rg, {evt: e, target: this, currentTarget: this}) + } + + _pointercancel(e) { + this.setPointersPositions(e) + const t = Pg(e.pointerId) || this.getIntersection(this.getPointerPosition()) + t && t._fireAndBubble(Ig, _g(e)), jg(e.pointerId) + } + + _lostpointercapture(e) { + jg(e.pointerId) + } + + setPointersPositions(e) { + var t, + n, + r = this._getContentPosition() + void 0 !== (e = e || window.event).touches + ? ((this._pointerPositions = []), + (this._changedPointerPositions = []), + Array.prototype.forEach.call(e.touches, (e) => { + this._pointerPositions.push({ + id: e.identifier, + x: (e.clientX - r.left) / r.scaleX, + y: (e.clientY - r.top) / r.scaleY, + }) + }), + Array.prototype.forEach.call(e.changedTouches || e.touches, (e) => { + this._changedPointerPositions.push({ + id: e.identifier, + x: (e.clientX - r.left) / r.scaleX, + y: (e.clientY - r.top) / r.scaleY, + }) + })) + : ((t = (e.clientX - r.left) / r.scaleX), + (n = (e.clientY - r.top) / r.scaleY), + (this.pointerPos = {x: t, y: n}), + (this._pointerPositions = [{x: t, y: n, id: Gp._getFirstPointerId(e)}]), + (this._changedPointerPositions = [{x: t, y: n, id: Gp._getFirstPointerId(e)}])) + } + + _setPointerPosition(e) { + Gp.warn( + 'Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.', + ), + this.setPointersPositions(e) + } + + _getContentPosition() { + if (!this.content || !this.content.getBoundingClientRect) + return {top: 0, left: 0, scaleX: 1, scaleY: 1} + var e = this.content.getBoundingClientRect() + return { + top: e.top, + left: e.left, + scaleX: e.width / this.content.clientWidth || 1, + scaleY: e.height / this.content.clientHeight || 1, + } + } + + _buildDOM() { + if ( + ((this.bufferCanvas = new sg({ + width: this.width(), + height: this.height(), + })), + (this.bufferHitCanvas = new cg({ + pixelRatio: 1, + width: this.width(), + height: this.height(), + })), + Dp.isBrowser) + ) { + var e = this.container() + if (!e) throw 'Stage has no container. A container is required.' + ; + (e.innerHTML = ''), + (this.content = document.createElement('div')), + (this.content.style.position = 'relative'), + (this.content.style.userSelect = 'none'), + (this.content.className = 'konvajs-content'), + this.content.setAttribute('role', 'presentation'), + e.appendChild(this.content), + this._resizeDOM() + } + } + + cache() { + return ( + Gp.warn( + 'Cache function is not allowed for stage. You may use cache only for layers, groups and shapes.', + ), + this + ) + } + + clearCache() { + return this + } + + batchDraw() { + return ( + this.getChildren().forEach(function (e) { + e.batchDraw() + }), + this + ) + } + } + ;(Bg.prototype.nodeType = 'Stage'), bp(Bg), tg.addGetterSetter(Bg, 'container') + var Vg = 'hasShadow', + Wg = 'shadowRGBA', + Gg = 'patternImage', + Zg = 'linearGradient', + Ug = 'radialGradient' + let Xg + + function Yg() { + return (Xg = Xg || Gp.createCanvasElement().getContext('2d', {willReadFrequently: true})) + } + + const qg = {} + + class $g extends xg { + constructor(e) { + let t + for (super(e); !(t = Gp.getRandomColor()) || t in qg;) ; + ;(this.colorKey = t), (qg[t] = this) + } + + getContext() { + return ( + Gp.warn('shape.getContext() method is deprecated. Please do not use it.'), + this.getLayer().getContext() + ) + } + + getCanvas() { + return ( + Gp.warn('shape.getCanvas() method is deprecated. Please do not use it.'), + this.getLayer().getCanvas() + ) + } + + getSceneFunc() { + return this.attrs.sceneFunc || this._sceneFunc + } + + getHitFunc() { + return this.attrs.hitFunc || this._hitFunc + } + + hasShadow() { + return this._getCache(Vg, this._hasShadow) + } + + _hasShadow() { + return ( + this.shadowEnabled() && + 0 !== this.shadowOpacity() && + !!(this.shadowColor() || this.shadowBlur() || this.shadowOffsetX() || this.shadowOffsetY()) + ) + } + + _getFillPattern() { + return this._getCache(Gg, this.__getFillPattern) + } + + __getFillPattern() { + if (this.fillPatternImage()) { + const t = Yg().createPattern(this.fillPatternImage(), this.fillPatternRepeat() || 'repeat') + if (t && t.setTransform) { + const n = new Ap() + n.translate(this.fillPatternX(), this.fillPatternY()), + n.rotate(Dp.getAngle(this.fillPatternRotation())), + n.scale(this.fillPatternScaleX(), this.fillPatternScaleY()), + n.translate(-1 * this.fillPatternOffsetX(), -1 * this.fillPatternOffsetY()) + var e = n.getMatrix() + t.setTransform({ + a: e[0], + b: e[1], + c: e[2], + d: e[3], + e: e[4], + f: e[5], + }) + } + return t + } + } + + _getLinearGradient() { + return this._getCache(Zg, this.__getLinearGradient) + } + + __getLinearGradient() { + var e = this.fillLinearGradientColorStops() + if (e) { + for ( + var t = Yg(), + n = this.fillLinearGradientStartPoint(), + r = this.fillLinearGradientEndPoint(), + i = t.createLinearGradient(n.x, n.y, r.x, r.y), + o = 0; + o < e.length; + o += 2 + ) + i.addColorStop(e[o], e[o + 1]) + return i + } + } + + _getRadialGradient() { + return this._getCache(Ug, this.__getRadialGradient) + } + + __getRadialGradient() { + var e = this.fillRadialGradientColorStops() + if (e) { + for ( + var t = Yg(), + n = this.fillRadialGradientStartPoint(), + r = this.fillRadialGradientEndPoint(), + i = t.createRadialGradient( + n.x, + n.y, + this.fillRadialGradientStartRadius(), + r.x, + r.y, + this.fillRadialGradientEndRadius(), + ), + o = 0; + o < e.length; + o += 2 + ) + i.addColorStop(e[o], e[o + 1]) + return i + } + } + + getShadowRGBA() { + return this._getCache(Wg, this._getShadowRGBA) + } + + _getShadowRGBA() { + var e + if (this.hasShadow()) + return ( + 'rgba(' + + (e = Gp.colorToRGBA(this.shadowColor())).r + + ',' + + e.g + + ',' + + e.b + + ',' + + e.a * (this.shadowOpacity() || 1) + + ')' + ) + } + + hasFill() { + return this._calculate( + 'hasFill', + [ + 'fillEnabled', + 'fill', + 'fillPatternImage', + 'fillLinearGradientColorStops', + 'fillRadialGradientColorStops', + ], + () => + this.fillEnabled() && + !!( + this.fill() || + this.fillPatternImage() || + this.fillLinearGradientColorStops() || + this.fillRadialGradientColorStops() + ), + ) + } + + hasStroke() { + return this._calculate( + 'hasStroke', + ['strokeEnabled', 'strokeWidth', 'stroke', 'strokeLinearGradientColorStops'], + () => + this.strokeEnabled() && + this.strokeWidth() && + !(!this.stroke() && !this.strokeLinearGradientColorStops()), + ) + } + + hasHitStroke() { + var e = this.hitStrokeWidth() + return 'auto' === e ? this.hasStroke() : this.strokeEnabled() && !!e + } + + intersects(e) { + var t = this.getStage().bufferHitCanvas + return ( + t.getContext().clear(), + this.drawHit(t, null, !0), + 0 < t.context.getImageData(Math.round(e.x), Math.round(e.y), 1, 1).data[3] + ) + } + + destroy() { + return xg.prototype.destroy.call(this), delete qg[this.colorKey], delete this.colorKey, this + } + + _useBufferCanvas(e) { + if (!this.getStage()) return !1 + if (null != (t = this.attrs.perfectDrawEnabled) && !t) return !1 + var t = e || this.hasFill(), + n = ((e = this.hasStroke()), 1 !== this.getAbsoluteOpacity()) + if (t && e && n) return !0 + n = this.hasShadow() + var r = this.shadowForStrokeEnabled() + return !!(t && e && n && r) + } + + setStrokeHitEnabled(e) { + Gp.warn('strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead.'), + e ? this.hitStrokeWidth('auto') : this.hitStrokeWidth(0) + } + + getStrokeHitEnabled() { + return 0 !== this.hitStrokeWidth() + } + + getSelfRect() { + var e = this.size() + return { + x: this._centroid ? -e.width / 2 : 0, + y: this._centroid ? -e.height / 2 : 0, + width: e.width, + height: e.height, + } + } + + getClientRect(e = {}) { + var t = e.skipTransform, + n = e.relativeTo, + r = this.getSelfRect(), + i = (!e.skipStroke && this.hasStroke() && this.strokeWidth()) || 0, + o = r.width + i, + a = r.height + i, + l = (e = !e.skipShadow && this.hasShadow()) ? this.shadowOffsetX() : 0, + s = e ? this.shadowOffsetY() : 0 + ;(o += Math.abs(l)), (a = (a = a + Math.abs(s)) + 2 * (e = (e && this.shadowBlur()) || 0)) + let c = 0 + return ( + (o = { + width: o + 2 * e + (c = Math.round(i / 2) !== i / 2 ? 1 : c), + height: a + c, + x: -Math.round(i / 2 + e) + Math.min(l, 0) + r.x, + y: -Math.round(i / 2 + e) + Math.min(s, 0) + r.y, + }), + t ? o : this._transformedRect(o, n) + ) + } + + drawScene(e, t) { + var n, + r = this.getLayer(), + i = ((r = (e = e || r.getCanvas()).getContext()), this._getCanvasCache()), + o = this.getSceneFunc(), + a = this.hasShadow(), + l = ((e = e.isCache), t === this) + return ( + (this.isVisible() || l) && + (i + ? (r.save(), + (i = this.getAbsoluteTransform(t).getMatrix()), + r.transform(i[0], i[1], i[2], i[3], i[4], i[5]), + this._drawCachedSceneCanvas(r), + r.restore()) + : o && + (r.save(), + this._useBufferCanvas() && !e + ? ((e = (i = this.getStage().bufferCanvas).getContext()).clear(), + e.save(), + e._applyLineJoin(this), + (n = this.getAbsoluteTransform(t).getMatrix()), + e.transform(n[0], n[1], n[2], n[3], n[4], n[5]), + o.call(this, e, this), + e.restore(), + (e = i.pixelRatio), + a && r._applyShadow(this), + r._applyOpacity(this), + r._applyGlobalCompositeOperation(this), + r.drawImage(i._canvas, 0, 0, i.width / e, i.height / e)) + : (r._applyLineJoin(this), + l || + ((n = this.getAbsoluteTransform(t).getMatrix()), + r.transform(n[0], n[1], n[2], n[3], n[4], n[5]), + r._applyOpacity(this), + r._applyGlobalCompositeOperation(this)), + a && r._applyShadow(this), + o.call(this, r, this)), + r.restore())), + this + ) + } + + drawHit(e, t, n = !1) { + if (!this.shouldDrawHit(t, n)) return this + ; + (n = this.getLayer()), + (n = (e = e || n.hitCanvas) && e.getContext()), + (e = this.hitFunc() || this.sceneFunc()) + var r = (r = this._getCanvasCache()) && r.hit + return ( + this.colorKey || + Gp.warn( + 'Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()', + ), + r + ? (n.save(), + (r = this.getAbsoluteTransform(t).getMatrix()), + n.transform(r[0], r[1], r[2], r[3], r[4], r[5]), + this._drawCachedHitCanvas(n), + n.restore()) + : e && + (n.save(), + n._applyLineJoin(this), + this !== t && + ((r = this.getAbsoluteTransform(t).getMatrix()), + n.transform(r[0], r[1], r[2], r[3], r[4], r[5])), + e.call(this, n, this), + n.restore()), + this + ) + } + + drawHitFromCache(e = 0) { + var t, + n, + r, + i, + o, + a = this._getCanvasCache(), + l = this._getCachedSceneCanvas(), + s = (a = a.hit).getContext(), + c = a.getWidth() + a = a.getHeight() + s.clear(), s.drawImage(l._canvas, 0, 0, c, a) + try { + for ( + r = (n = (t = s.getImageData(0, 0, c, a)).data).length, + i = Gp._hexToRgb(this.colorKey), + o = 0; + o < r; + o += 4 + ) + e < n[o + 3] + ? ((n[o] = i.r), (n[o + 1] = i.g), (n[o + 2] = i.b), (n[o + 3] = 255)) + : (n[o + 3] = 0) + s.putImageData(t, 0, 0) + } catch (u) { + Gp.error('Unable to draw hit graph from cached scene canvas. ' + u.message) + } + return this + } + + hasPointerCapture(e) { + return Lg(e, this) + } + + setPointerCapture(e) { + Tg(e, this) + } + + releaseCapture(e) { + jg(e) + } + } + ;($g.prototype._fillFunc = function (e) { + e.fill() + }), + ($g.prototype._strokeFunc = function (e) { + e.stroke() + }), + ($g.prototype._fillFuncHit = function (e) { + e.fill() + }), + ($g.prototype._strokeFuncHit = function (e) { + e.stroke() + }), + ($g.prototype._centroid = !1), + ($g.prototype.nodeType = 'Shape'), + bp($g), + ($g.prototype.eventListeners = {}), + $g.prototype.on.call( + $g.prototype, + 'shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva', + function () { + this._clearCache(Vg) + }, + ), + $g.prototype.on.call( + $g.prototype, + 'shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva', + function () { + this._clearCache(Wg) + }, + ), + $g.prototype.on.call( + $g.prototype, + 'fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva', + function () { + this._clearCache(Gg) + }, + ), + $g.prototype.on.call( + $g.prototype, + 'fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva', + function () { + this._clearCache(Zg) + }, + ), + $g.prototype.on.call( + $g.prototype, + 'fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva', + function () { + this._clearCache(Ug) + }, + ), + tg.addGetterSetter($g, 'stroke', void 0, Kp()), + tg.addGetterSetter($g, 'strokeWidth', 2, Xp()), + tg.addGetterSetter($g, 'fillAfterStrokeEnabled', !1), + tg.addGetterSetter($g, 'hitStrokeWidth', 'auto', qp()), + tg.addGetterSetter($g, 'strokeHitEnabled', !0, Qp()), + tg.addGetterSetter($g, 'perfectDrawEnabled', !0, Qp()), + tg.addGetterSetter($g, 'shadowForStrokeEnabled', !0, Qp()), + tg.addGetterSetter($g, 'lineJoin'), + tg.addGetterSetter($g, 'lineCap'), + tg.addGetterSetter($g, 'sceneFunc'), + tg.addGetterSetter($g, 'hitFunc'), + tg.addGetterSetter($g, 'dash'), + tg.addGetterSetter($g, 'dashOffset', 0, Xp()), + tg.addGetterSetter($g, 'shadowColor', void 0, $p()), + tg.addGetterSetter($g, 'shadowBlur', 0, Xp()), + tg.addGetterSetter($g, 'shadowOpacity', 1, Xp()), + tg.addComponentsGetterSetter($g, 'shadowOffset', ['x', 'y']), + tg.addGetterSetter($g, 'shadowOffsetX', 0, Xp()), + tg.addGetterSetter($g, 'shadowOffsetY', 0, Xp()), + tg.addGetterSetter($g, 'fillPatternImage'), + tg.addGetterSetter($g, 'fill', void 0, Kp()), + tg.addGetterSetter($g, 'fillPatternX', 0, Xp()), + tg.addGetterSetter($g, 'fillPatternY', 0, Xp()), + tg.addGetterSetter($g, 'fillLinearGradientColorStops'), + tg.addGetterSetter($g, 'strokeLinearGradientColorStops'), + tg.addGetterSetter($g, 'fillRadialGradientStartRadius', 0), + tg.addGetterSetter($g, 'fillRadialGradientEndRadius', 0), + tg.addGetterSetter($g, 'fillRadialGradientColorStops'), + tg.addGetterSetter($g, 'fillPatternRepeat', 'repeat'), + tg.addGetterSetter($g, 'fillEnabled', !0), + tg.addGetterSetter($g, 'strokeEnabled', !0), + tg.addGetterSetter($g, 'shadowEnabled', !0), + tg.addGetterSetter($g, 'dashEnabled', !0), + tg.addGetterSetter($g, 'strokeScaleEnabled', !0), + tg.addGetterSetter($g, 'fillPriority', 'color'), + tg.addComponentsGetterSetter($g, 'fillPatternOffset', ['x', 'y']), + tg.addGetterSetter($g, 'fillPatternOffsetX', 0, Xp()), + tg.addGetterSetter($g, 'fillPatternOffsetY', 0, Xp()), + tg.addComponentsGetterSetter($g, 'fillPatternScale', ['x', 'y']), + tg.addGetterSetter($g, 'fillPatternScaleX', 1, Xp()), + tg.addGetterSetter($g, 'fillPatternScaleY', 1, Xp()), + tg.addComponentsGetterSetter($g, 'fillLinearGradientStartPoint', ['x', 'y']), + tg.addComponentsGetterSetter($g, 'strokeLinearGradientStartPoint', ['x', 'y']), + tg.addGetterSetter($g, 'fillLinearGradientStartPointX', 0), + tg.addGetterSetter($g, 'strokeLinearGradientStartPointX', 0), + tg.addGetterSetter($g, 'fillLinearGradientStartPointY', 0), + tg.addGetterSetter($g, 'strokeLinearGradientStartPointY', 0), + tg.addComponentsGetterSetter($g, 'fillLinearGradientEndPoint', ['x', 'y']), + tg.addComponentsGetterSetter($g, 'strokeLinearGradientEndPoint', ['x', 'y']), + tg.addGetterSetter($g, 'fillLinearGradientEndPointX', 0), + tg.addGetterSetter($g, 'strokeLinearGradientEndPointX', 0), + tg.addGetterSetter($g, 'fillLinearGradientEndPointY', 0), + tg.addGetterSetter($g, 'strokeLinearGradientEndPointY', 0), + tg.addComponentsGetterSetter($g, 'fillRadialGradientStartPoint', ['x', 'y']), + tg.addGetterSetter($g, 'fillRadialGradientStartPointX', 0), + tg.addGetterSetter($g, 'fillRadialGradientStartPointY', 0), + tg.addComponentsGetterSetter($g, 'fillRadialGradientEndPoint', ['x', 'y']), + tg.addGetterSetter($g, 'fillRadialGradientEndPointX', 0), + tg.addGetterSetter($g, 'fillRadialGradientEndPointY', 0), + tg.addGetterSetter($g, 'fillPatternRotation', 0), + tg.backCompat($g, { + dashArray: 'dash', + getDashArray: 'getDash', + setDashArray: 'getDash', + drawFunc: 'sceneFunc', + getDrawFunc: 'getSceneFunc', + setDrawFunc: 'setSceneFunc', + drawHitFunc: 'hitFunc', + getDrawHitFunc: 'getHitFunc', + setDrawHitFunc: 'setHitFunc', + }) + var Kg = [ + {x: 0, y: 0}, + {x: -1, y: -1}, + {x: 1, y: -1}, + {x: 1, y: 1}, + {x: -1, y: 1}, + ], + Qg = Kg.length + + class Jg extends Og { + constructor(e) { + super(e), + (this.canvas = new sg()), + (this.hitCanvas = new cg({pixelRatio: 1})), + (this._waitingForDraw = !1), + this.on('visibleChange.konva', this._checkVisibility), + this._checkVisibility(), + this.on('imageSmoothingEnabledChange.konva', this._setSmoothEnabled), + this._setSmoothEnabled() + } + + createPNGStream() { + return this.canvas._canvas.createPNGStream() + } + + getCanvas() { + return this.canvas + } + + getNativeCanvasElement() { + return this.canvas._canvas + } + + getHitCanvas() { + return this.hitCanvas + } + + getContext() { + return this.getCanvas().getContext() + } + + clear(e) { + return this.getContext().clear(e), this.getHitCanvas().getContext().clear(e), this + } + + setZIndex(e) { + super.setZIndex(e) + var t = this.getStage() + return ( + t && + t.content && + (t.content.removeChild(this.getNativeCanvasElement()), + e < t.children.length - 1 + ? t.content.insertBefore( + this.getNativeCanvasElement(), + t.children[e + 1].getCanvas()._canvas, + ) + : t.content.appendChild(this.getNativeCanvasElement())), + this + ) + } + + moveToTop() { + xg.prototype.moveToTop.call(this) + var e = this.getStage() + return ( + e && + e.content && + (e.content.removeChild(this.getNativeCanvasElement()), + e.content.appendChild(this.getNativeCanvasElement())), + !0 + ) + } + + moveUp() { + if (!xg.prototype.moveUp.call(this)) return !1 + var e = this.getStage() + return !( + !e || + !e.content || + (e.content.removeChild(this.getNativeCanvasElement()), + this.index < e.children.length - 1 + ? e.content.insertBefore( + this.getNativeCanvasElement(), + e.children[this.index + 1].getCanvas()._canvas, + ) + : e.content.appendChild(this.getNativeCanvasElement()), + 0) + ) + } + + moveDown() { + var e, t + return ( + !!xg.prototype.moveDown.call(this) && + ((e = this.getStage()) && + ((t = e.children), + e.content && + (e.content.removeChild(this.getNativeCanvasElement()), + e.content.insertBefore( + this.getNativeCanvasElement(), + t[this.index + 1].getCanvas()._canvas, + ))), + !0) + ) + } + + moveToBottom() { + var e, t + return ( + !!xg.prototype.moveToBottom.call(this) && + ((e = this.getStage()) && + ((t = e.children), + e.content && + (e.content.removeChild(this.getNativeCanvasElement()), + e.content.insertBefore(this.getNativeCanvasElement(), t[1].getCanvas()._canvas))), + !0) + ) + } + + getLayer() { + return this + } + + remove() { + var e = this.getNativeCanvasElement() + return ( + xg.prototype.remove.call(this), + e && e.parentNode && Gp._isInDocument(e) && e.parentNode.removeChild(e), + this + ) + } + + getStage() { + return this.parent + } + + setSize({width: e, height: t}) { + return this.canvas.setSize(e, t), this.hitCanvas.setSize(e, t), this._setSmoothEnabled(), this + } + + _validateAdd(e) { + 'Group' !== (e = e.getType()) && + 'Shape' !== e && + Gp.throw('You may only add groups and shapes to a layer.') + } + + _toKonvaCanvas(e) { + return ( + ((e = e || {}).width = e.width || this.getWidth()), + (e.height = e.height || this.getHeight()), + (e.x = void 0 !== e.x ? e.x : this.x()), + (e.y = void 0 !== e.y ? e.y : this.y()), + xg.prototype._toKonvaCanvas.call(this, e) + ) + } + + _checkVisibility() { + var e = this.visible() + this.canvas._canvas.style.display = e ? 'block' : 'none' + } + + _setSmoothEnabled() { + this.getContext()._context.imageSmoothingEnabled = this.imageSmoothingEnabled() + } + + getWidth() { + if (this.parent) return this.parent.width() + } + + setWidth() { + Gp.warn('Can not change width of layer. Use "stage.width(value)" function instead.') + } + + getHeight() { + if (this.parent) return this.parent.height() + } + + setHeight() { + Gp.warn('Can not change height of layer. Use "stage.height(value)" function instead.') + } + + batchDraw() { + return ( + this._waitingForDraw || + ((this._waitingForDraw = !0), + Gp.requestAnimFrame(() => { + this.draw(), (this._waitingForDraw = !1) + })), + this + ) + } + + getIntersection(e) { + if (!this.isListening() || !this.isVisible()) return null + for (var t = 1, n = !1; ;) { + for (let o = 0; o < Qg; o++) { + var r = Kg[o], + i = (r = this._getIntersection({ + x: e.x + r.x * t, + y: e.y + r.y * t, + })).shape + if (i) return i + if (((n = !!r.antialiased), !r.antialiased)) break + } + if (!n) return null + t += 1 + } + } + + _getIntersection(e) { + var t = this.hitCanvas.pixelRatio + return 255 === + (t = (e = this.hitCanvas.context.getImageData( + Math.round(e.x * t), + Math.round(e.y * t), + 1, + 1, + ).data)[3]) + ? ((e = Gp._rgbToHex(e[0], e[1], e[2])), + (e = qg['#' + e]) ? {shape: e} : {antialiased: !0}) + : 0 < t + ? {antialiased: !0} + : {} + } + + drawScene(e, t) { + var n = this.getLayer() + e = e || (n && n.getCanvas()) + return ( + this._fire('beforeDraw', {node: this}), + this.clearBeforeDraw() && e.getContext().clear(), + Og.prototype.drawScene.call(this, e, t), + this._fire('draw', {node: this}), + this + ) + } + + drawHit(e, t) { + var n = this.getLayer() + e = e || (n && n.hitCanvas) + return ( + n && n.clearBeforeDraw() && n.getHitCanvas().getContext().clear(), + Og.prototype.drawHit.call(this, e, t), + this + ) + } + + enableHitGraph() { + return this.hitGraphEnabled(!0), this + } + + disableHitGraph() { + return this.hitGraphEnabled(!1), this + } + + setHitGraphEnabled(e) { + Gp.warn('hitGraphEnabled method is deprecated. Please use layer.listening() instead.'), + this.listening(e) + } + + getHitGraphEnabled(e) { + return ( + Gp.warn('hitGraphEnabled method is deprecated. Please use layer.listening() instead.'), + this.listening() + ) + } + + toggleHitCanvas() { + var e + this.parent && + this.parent.content && + ((e = this.parent), + this.hitCanvas._canvas.parentNode + ? e.content.removeChild(this.hitCanvas._canvas) + : e.content.appendChild(this.hitCanvas._canvas)) + } + } + ;(Jg.prototype.nodeType = 'Layer'), + bp(Jg), + tg.addGetterSetter(Jg, 'imageSmoothingEnabled', !0), + tg.addGetterSetter(Jg, 'clearBeforeDraw', !0), + tg.addGetterSetter(Jg, 'hitGraphEnabled', !0, Qp()) + + class em extends Jg { + constructor(e) { + super(e), + this.listening(!1), + Gp.warn( + 'Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.', + ) + } + } + ;(em.prototype.nodeType = 'FastLayer'), bp(em) + + class tm extends Og { + _validateAdd(e) { + 'Group' !== (e = e.getType()) && + 'Shape' !== e && + Gp.throw('You may only add groups and shapes to groups.') + } + } + ;(tm.prototype.nodeType = 'Group'), bp(tm) + var nm = + Rp.performance && Rp.performance.now + ? function () { + return Rp.performance.now() + } + : function () { + return new Date().getTime() + } + + class rm { + constructor(e, t) { + ;(this.id = rm.animIdCounter++), + (this.frame = {time: 0, timeDiff: 0, lastTime: nm(), frameRate: 0}), + (this.func = e), + this.setLayers(t) + } + + setLayers(e) { + var t = e ? (0 < e.length ? e : [e]) : [] + return (this.layers = t), this + } + + getLayers() { + return this.layers + } + + addLayer(e) { + for (var t = this.layers, n = t.length, r = 0; r < n; r++) if (t[r]._id === e._id) return !1 + return this.layers.push(e), !0 + } + + isRunning() { + for (var e = rm.animations, t = e.length, n = 0; n < t; n++) + if (e[n].id === this.id) return !0 + return !1 + } + + start() { + return ( + this.stop(), + (this.frame.timeDiff = 0), + (this.frame.lastTime = nm()), + rm._addAnimation(this), + this + ) + } + + stop() { + return rm._removeAnimation(this), this + } + + _updateFrameObject(e) { + ;(this.frame.timeDiff = e - this.frame.lastTime), + (this.frame.lastTime = e), + (this.frame.time += this.frame.timeDiff), + (this.frame.frameRate = 1e3 / this.frame.timeDiff) + } + + static _addAnimation(e) { + this.animations.push(e), this._handleAnimation() + } + + static _removeAnimation(e) { + for (var t = e.id, n = this.animations, r = n.length, i = 0; i < r; i++) + if (n[i].id === t) { + this.animations.splice(i, 1) + break + } + } + + static _runFrames() { + for (var e, t, n, r, i, o, a, l = {}, s = this.animations, c = 0; c < s.length; c++) + if ( + ((t = (e = s[c]).layers), + (n = e.func), + e._updateFrameObject(nm()), + (i = t.length), + !n || !1 !== n.call(e, e.frame)) + ) + for (r = 0; r < i; r++) void 0 !== (o = t[r])._id && (l[o._id] = o) + for (a in l) l.hasOwnProperty(a) && l[a].batchDraw() + } + + static _animationLoop() { + var e = rm + e.animations.length + ? (e._runFrames(), Gp.requestAnimFrame(e._animationLoop)) + : (e.animRunning = !1) + } + + static _handleAnimation() { + this.animRunning || ((this.animRunning = !0), Gp.requestAnimFrame(this._animationLoop)) + } + } + ;(rm.animations = []), (rm.animIdCounter = 0), (rm.animRunning = !1) + var im = {node: 1, duration: 1, easing: 1, onFinish: 1, yoyo: 1}, + om = 0, + am = ['fill', 'stroke', 'shadowColor'] + + class lm { + constructor(e, t, n, r, i, o, a) { + ;(this.prop = e), + (this.propFunc = t), + (this.begin = r), + (this._pos = r), + (this.duration = o), + (this._change = 0), + (this.prevPos = 0), + (this.yoyo = a), + (this._time = 0), + (this._position = 0), + (this._startTime = 0), + (this._finish = 0), + (this.func = n), + (this._change = i - this.begin), + this.pause() + } + + fire(e) { + ;(e = this[e]) && e() + } + + setTime(e) { + e > this.duration + ? this.yoyo + ? ((this._time = this.duration), this.reverse()) + : this.finish() + : e < 0 + ? this.yoyo + ? ((this._time = 0), this.play()) + : this.reset() + : ((this._time = e), this.update()) + } + + getTime() { + return this._time + } + + setPosition(e) { + ;(this.prevPos = this._pos), this.propFunc(e), (this._pos = e) + } + + getPosition(e) { + return void 0 === e && (e = this._time), this.func(e, this.begin, this._change, this.duration) + } + + play() { + ;(this.state = 2), + (this._startTime = this.getTimer() - this._time), + this.onEnterFrame(), + this.fire('onPlay') + } + + reverse() { + ;(this.state = 3), + (this._time = this.duration - this._time), + (this._startTime = this.getTimer() - this._time), + this.onEnterFrame(), + this.fire('onReverse') + } + + seek(e) { + this.pause(), (this._time = e), this.update(), this.fire('onSeek') + } + + reset() { + this.pause(), (this._time = 0), this.update(), this.fire('onReset') + } + + finish() { + this.pause(), (this._time = this.duration), this.update(), this.fire('onFinish') + } + + update() { + this.setPosition(this.getPosition(this._time)), this.fire('onUpdate') + } + + onEnterFrame() { + var e = this.getTimer() - this._startTime + 2 === this.state ? this.setTime(e) : 3 === this.state && this.setTime(this.duration - e) + } + + pause() { + ;(this.state = 1), this.fire('onPause') + } + + getTimer() { + return new Date().getTime() + } + } + + class sm { + constructor(e) { + var t, + n = this, + r = (l = e.node)._id, + i = e.easing || cm.Linear, + o = !!e.yoyo, + a = void 0 === e.duration ? 0.3 : 0 === e.duration ? 0.001 : e.duration, + l = + ((this.node = l), + (this._id = om++), + l.getLayer() || (l instanceof Dp.Stage ? l.getLayers() : null)) + for (t in (l || + Gp.error( + 'Tween constructor have `node` that is not in a layer. Please add node into layer first.', + ), + (this.anim = new rm(function () { + n.tween.onEnterFrame() + }, l)), + (this.tween = new lm( + t, + function (e) { + n._tweenFunc(e) + }, + i, + 0, + 1, + 1e3 * a, + o, + )), + this._addListeners(), + sm.attrs[r] || (sm.attrs[r] = {}), + sm.attrs[r][this._id] || (sm.attrs[r][this._id] = {}), + sm.tweens[r] || (sm.tweens[r] = {}), + e)) + void 0 === im[t] && this._addAttr(t, e[t]) + this.reset(), + (this.onFinish = e.onFinish), + (this.onReset = e.onReset), + (this.onUpdate = e.onUpdate) + } + + _addAttr(e, t) { + var n, + r, + i, + o, + a, + l, + s, + c, + u = this.node, + d = u._id, + f = sm.tweens[d][e] + if ((f && delete sm.attrs[d][f][e], (n = u.getAttr(e)), Gp._isArray(t))) + if ( + ((r = []), + (o = Math.max(t.length, n.length)), + 'points' === e && + t.length !== n.length && + (t.length > n.length + ? ((l = n), (n = Gp._prepareArrayForTween(n, t, u.closed()))) + : ((a = t), (t = Gp._prepareArrayForTween(t, n, u.closed())))), + 0 === e.indexOf('fill')) + ) + for (i = 0; i < o; i++) + i % 2 == 0 + ? r.push(t[i] - n[i]) + : ((s = Gp.colorToRGBA(n[i])), + (c = Gp.colorToRGBA(t[i])), + (n[i] = s), + r.push({ + r: c.r - s.r, + g: c.g - s.g, + b: c.b - s.b, + a: c.a - s.a, + })) + else for (i = 0; i < o; i++) r.push(t[i] - n[i]) + else + r = + -1 !== am.indexOf(e) + ? ((n = Gp.colorToRGBA(n)), + { + r: (c = Gp.colorToRGBA(t)).r - n.r, + g: c.g - n.g, + b: c.b - n.b, + a: c.a - n.a, + }) + : t - n + ; + (sm.attrs[d][this._id][e] = { + start: n, + diff: r, + end: t, + trueEnd: a, + trueStart: l, + }), + (sm.tweens[d][e] = this._id) + } + + _tweenFunc(e) { + var t, + n, + r, + i, + o, + a, + l, + s = this.node, + c = sm.attrs[s._id][this._id] + for (t in c) { + if (((n = (l = c[t]).start), (r = l.diff), (l = l.end), Gp._isArray(n))) + if (((i = []), (a = Math.max(n.length, l.length)), 0 === t.indexOf('fill'))) + for (o = 0; o < a; o++) + o % 2 == 0 + ? i.push((n[o] || 0) + r[o] * e) + : i.push( + 'rgba(' + + Math.round(n[o].r + r[o].r * e) + + ',' + + Math.round(n[o].g + r[o].g * e) + + ',' + + Math.round(n[o].b + r[o].b * e) + + ',' + + (n[o].a + r[o].a * e) + + ')', + ) + else for (o = 0; o < a; o++) i.push((n[o] || 0) + r[o] * e) + else + i = + -1 !== am.indexOf(t) + ? 'rgba(' + + Math.round(n.r + r.r * e) + + ',' + + Math.round(n.g + r.g * e) + + ',' + + Math.round(n.b + r.b * e) + + ',' + + (n.a + r.a * e) + + ')' + : n + r * e + s.setAttr(t, i) + } + } + + _addListeners() { + ;(this.tween.onPlay = () => { + this.anim.start() + }), + (this.tween.onReverse = () => { + this.anim.start() + }), + (this.tween.onPause = () => { + this.anim.stop() + }), + (this.tween.onFinish = () => { + var e = this.node, + t = sm.attrs[e._id][this._id] + t.points && t.points.trueEnd && e.setAttr('points', t.points.trueEnd), + this.onFinish && this.onFinish.call(this) + }), + (this.tween.onReset = () => { + var e = this.node, + t = sm.attrs[e._id][this._id] + t.points && t.points.trueStart && e.points(t.points.trueStart), + this.onReset && this.onReset() + }), + (this.tween.onUpdate = () => { + this.onUpdate && this.onUpdate.call(this) + }) + } + + play() { + return this.tween.play(), this + } + + reverse() { + return this.tween.reverse(), this + } + + reset() { + return this.tween.reset(), this + } + + seek(e) { + return this.tween.seek(1e3 * e), this + } + + pause() { + return this.tween.pause(), this + } + + finish() { + return this.tween.finish(), this + } + + destroy() { + var e, + t = this.node._id, + n = this._id, + r = sm.tweens[t] + for (e in (this.pause(), r)) delete sm.tweens[t][e] + delete sm.attrs[t][n] + } + } + ;(sm.attrs = {}), + (sm.tweens = {}), + (xg.prototype.to = function (e) { + var t = e.onFinish + ;(e.node = this), + (e.onFinish = function () { + this.destroy(), t && t() + }), + new sm(e).play() + }) + const cm = { + BackEaseIn: (e, t, n, r) => n * (e /= r) * e * (2.70158 * e - 1.70158) + t, + BackEaseOut: (e, t, n, r) => n * ((e = e / r - 1) * e * (2.70158 * e + 1.70158) + 1) + t, + BackEaseInOut(e, t, n, r) { + var i = 1.70158 + return (e /= r / 2) < 1 + ? (n / 2) * (e * e * ((1 + (i *= 1.525)) * e - i)) + t + : (n / 2) * ((e -= 2) * e * ((1 + (i *= 1.525)) * e + i) + 2) + t + }, + ElasticEaseIn(e, t, n, r, i, o) { + var a = 0 + return 0 === e + ? t + : 1 == (e /= r) + ? t + n + : ((o = o || 0.3 * r), + (a = + !i || i < Math.abs(n) ? ((i = n), o / 4) : (o / (2 * Math.PI)) * Math.asin(n / i)), + -i * Math.pow(2, 10 * --e) * Math.sin(((e * r - a) * (2 * Math.PI)) / o) + t) + }, + ElasticEaseOut(e, t, n, r, i, o) { + var a = 0 + return 0 === e + ? t + : 1 == (e /= r) + ? t + n + : ((o = o || 0.3 * r), + (a = + !i || i < Math.abs(n) ? ((i = n), o / 4) : (o / (2 * Math.PI)) * Math.asin(n / i)), + i * Math.pow(2, -10 * e) * Math.sin(((e * r - a) * (2 * Math.PI)) / o) + n + t) + }, + ElasticEaseInOut(e, t, n, r, i, o) { + var a = 0 + return 0 === e + ? t + : 2 == (e /= r / 2) + ? t + n + : ((o = o || r * (0.3 * 1.5)), + (a = + !i || i < Math.abs(n) ? ((i = n), o / 4) : (o / (2 * Math.PI)) * Math.asin(n / i)), + e < 1 + ? i * Math.pow(2, 10 * --e) * Math.sin(((e * r - a) * (2 * Math.PI)) / o) * -0.5 + t + : i * Math.pow(2, -10 * --e) * Math.sin(((e * r - a) * (2 * Math.PI)) / o) * 0.5 + + n + + t) + }, + BounceEaseOut: (e, t, n, r) => + (e /= r) < 1 / 2.75 + ? n * (7.5625 * e * e) + t + : e < 2 / 2.75 + ? n * (7.5625 * (e -= 1.5 / 2.75) * e + 0.75) + t + : e < 2.5 / 2.75 + ? n * (7.5625 * (e -= 2.25 / 2.75) * e + 0.9375) + t + : n * (7.5625 * (e -= 2.625 / 2.75) * e + 0.984375) + t, + BounceEaseIn: (e, t, n, r) => n - cm.BounceEaseOut(r - e, 0, n, r) + t, + BounceEaseInOut: (e, t, n, r) => + e < r / 2 + ? 0.5 * cm.BounceEaseIn(2 * e, 0, n, r) + t + : 0.5 * cm.BounceEaseOut(2 * e - r, 0, n, r) + 0.5 * n + t, + EaseIn: (e, t, n, r) => n * (e /= r) * e + t, + EaseOut: (e, t, n, r) => -n * (e /= r) * (e - 2) + t, + EaseInOut: (e, t, n, r) => + (e /= r / 2) < 1 ? (n / 2) * e * e + t : (-n / 2) * (--e * (e - 2) - 1) + t, + StrongEaseIn: (e, t, n, r) => n * (e /= r) * e * e * e * e + t, + StrongEaseOut: (e, t, n, r) => n * ((e = e / r - 1) * e * e * e * e + 1) + t, + StrongEaseInOut: (e, t, n, r) => + (e /= r / 2) < 1 + ? (n / 2) * e * e * e * e * e + t + : (n / 2) * ((e -= 2) * e * e * e * e + 2) + t, + Linear: (e, t, n, r) => (n * e) / r + t, + }, + um = Gp._assign(Dp, { + Util: Gp, + Transform: Ap, + Node: xg, + Container: Og, + Stage: Bg, + stages: Fg, + Layer: Jg, + FastLayer: em, + Group: tm, + DD: ug, + Shape: $g, + shapes: qg, + Animation: rm, + Tween: sm, + Easings: cm, + Context: ig, + Canvas: lg, + }) + + class dm extends $g { + _sceneFunc(e) { + var t = Dp.getAngle(this.angle()), + n = this.clockwise() + e.beginPath(), + e.arc(0, 0, this.outerRadius(), 0, t, n), + e.arc(0, 0, this.innerRadius(), t, 0, !n), + e.closePath(), + e.fillStrokeShape(this) + } + + getWidth() { + return 2 * this.outerRadius() + } + + getHeight() { + return 2 * this.outerRadius() + } + + setWidth(e) { + this.outerRadius(e / 2) + } + + setHeight(e) { + this.outerRadius(e / 2) + } + + getSelfRect() { + var e = this.innerRadius(), + t = this.outerRadius(), + n = this.clockwise(), + r = Dp.getAngle(n ? 360 - this.angle() : this.angle()), + i = (i = Math.cos(Math.min(r, Math.PI))) * (0 < i ? e : t), + o = +t, + a = (a = Math.sin(Math.min(Math.max(Math.PI, r), (3 * Math.PI) / 2))) * (0 < a ? e : t) + r = (r = Math.sin(Math.min(r, Math.PI / 2))) * (0 < r ? t : e) + return { + x: Math.round(i), + y: Math.round(n ? -1 * r : a), + width: Math.round(o - i), + height: Math.round(r - a), + } + } + } + + function fm(e, t, n, r, i, o, a) { + var l = Math.sqrt(Math.pow(n - e, 2) + Math.pow(r - t, 2)), + s = Math.sqrt(Math.pow(i - n, 2) + Math.pow(o - r, 2)), + c = (a * l) / (l + s) + return [ + n - c * (i - e), + r - c * (o - t), + n + (a = (a * s) / (l + s)) * (i - e), + r + a * (o - t), + ] + } + + function hm(e, t) { + for (var n, r = e.length, i = [], o = 2; o < r - 2; o += 2) + (n = fm(e[o - 2], e[o - 1], e[o], e[o + 1], e[o + 2], e[o + 3], t)), + isNaN(n[0]) || + (i.push(n[0]), i.push(n[1]), i.push(e[o]), i.push(e[o + 1]), i.push(n[2]), i.push(n[3])) + return i + } + ;(dm.prototype._centroid = !0), + (dm.prototype.className = 'Arc'), + (dm.prototype._attrsAffectingSize = ['innerRadius', 'outerRadius']), + bp(dm), + tg.addGetterSetter(dm, 'innerRadius', 0, Xp()), + tg.addGetterSetter(dm, 'outerRadius', 0, Xp()), + tg.addGetterSetter(dm, 'angle', 0, Xp()), + tg.addGetterSetter(dm, 'clockwise', !1, Qp()) + + class pm extends $g { + constructor(e) { + super(e), + this.on( + 'pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva', + function () { + this._clearCache('tensionPoints') + }, + ) + } + + _sceneFunc(e) { + var t, + n, + r, + i = this.points(), + o = i.length, + a = this.tension(), + l = this.closed(), + s = this.bezier() + if (o) { + if ((e.beginPath(), e.moveTo(i[0], i[1]), 0 !== a && 4 < o)) { + for ( + n = (t = this.getTensionPoints()).length, + r = l ? 0 : 4, + l || e.quadraticCurveTo(t[0], t[1], t[2], t[3]); + r < n - 2; + ) + e.bezierCurveTo(t[r++], t[r++], t[r++], t[r++], t[r++], t[r++]) + l || e.quadraticCurveTo(t[n - 2], t[n - 1], i[o - 2], i[o - 1]) + } else if (s) + for (r = 2; r < o;) e.bezierCurveTo(i[r++], i[r++], i[r++], i[r++], i[r++], i[r++]) + else for (r = 2; r < o; r += 2) e.lineTo(i[r], i[r + 1]) + l ? (e.closePath(), e.fillStrokeShape(this)) : e.strokeShape(this) + } + } + + getTensionPoints() { + return this._getCache('tensionPoints', this._getTensionPoints) + } + + _getTensionPoints() { + return this.closed() ? this._getTensionPointsClosed() : hm(this.points(), this.tension()) + } + + _getTensionPointsClosed() { + var e = this.points(), + t = e.length, + n = this.tension(), + r = fm(e[t - 2], e[t - 1], e[0], e[1], e[2], e[3], n), + i = fm(e[t - 4], e[t - 3], e[t - 2], e[t - 1], e[0], e[1], n) + n = hm(e, n) + return [r[2], r[3]] + .concat(n) + .concat([i[0], i[1], e[t - 2], e[t - 1], i[2], i[3], r[0], r[1], e[0], e[1]]) + } + + getWidth() { + return this.getSelfRect().width + } + + getHeight() { + return this.getSelfRect().height + } + + getSelfRect() { + var e = this.points() + if (e.length < 4) return {x: e[0] || 0, y: e[1] || 0, width: 0, height: 0} + for ( + var t, + n, + r = (e = + 0 !== this.tension() + ? [e[0], e[1], ...this._getTensionPoints(), e[e.length - 2], e[e.length - 1]] + : this.points())[0], + i = e[0], + o = e[1], + a = e[1], + l = 0; + l < e.length / 2; + l++ + ) + (t = e[2 * l]), + (n = e[2 * l + 1]), + (r = Math.min(r, t)), + (i = Math.max(i, t)), + (o = Math.min(o, n)), + (a = Math.max(a, n)) + return {x: r, y: o, width: i - r, height: a - o} + } + } + ;(pm.prototype.className = 'Line'), + (pm.prototype._attrsAffectingSize = ['points', 'bezier', 'tension']), + bp(pm), + tg.addGetterSetter(pm, 'closed', !1), + tg.addGetterSetter(pm, 'bezier', !1), + tg.addGetterSetter(pm, 'tension', 0, Xp()), + tg.addGetterSetter( + pm, + 'points', + [], + (function () { + if (Dp.isUnminified) + return function (e, t) { + return ( + Gp._isArray(e) + ? e.forEach(function (e) { + Gp._isNumber(e) || + Gp.warn( + '"' + + t + + '" attribute has non numeric element ' + + e + + '. Make sure that all elements are numbers.', + ) + }) + : Gp.warn( + Zp(e) + + ' is a not valid value for "' + + t + + '" attribute. The value should be a array of numbers.', + ), + e + ) + } + })(), + ) + + class gm extends $g { + constructor(e) { + super(e), + (this.dataArray = []), + (this.pathLength = 0), + (this.dataArray = gm.parsePathData(this.data())) + for (var t = (this.pathLength = 0); t < this.dataArray.length; ++t) + this.pathLength += this.dataArray[t].pathLength + this.on('dataChange.konva', function () { + this.dataArray = gm.parsePathData(this.data()) + for (var e = (this.pathLength = 0); e < this.dataArray.length; ++e) + this.pathLength += this.dataArray[e].pathLength + }) + } + + _sceneFunc(e) { + for (var t = this.dataArray, n = (e.beginPath(), !1), r = 0; r < t.length; r++) { + var i = t[r].command, + o = t[r].points + switch (i) { + case 'L': + e.lineTo(o[0], o[1]) + break + case 'M': + e.moveTo(o[0], o[1]) + break + case 'C': + e.bezierCurveTo(o[0], o[1], o[2], o[3], o[4], o[5]) + break + case 'Q': + e.quadraticCurveTo(o[0], o[1], o[2], o[3]) + break + case 'A': + var a = o[0], + l = o[1], + s = o[2], + c = o[3], + u = o[4], + d = o[5], + f = o[6], + h = o[7], + p = c < s ? s : c, + g = c < s ? 1 : s / c + c = c < s ? c / s : 1 + e.translate(a, l), + e.rotate(f), + e.scale(g, c), + e.arc(0, 0, p, u, u + d, 1 - h), + e.scale(1 / g, 1 / c), + e.rotate(-f), + e.translate(-a, -l) + break + case 'z': + ;(n = !0), e.closePath() + } + } + n || this.hasFill() ? e.fillStrokeShape(this) : e.strokeShape(this) + } + + getSelfRect() { + for ( + var e, + t, + n = [], + r = + (this.dataArray.forEach(function (e) { + if ('A' === e.command) { + var t = e.points[4], + r = e.points[5], + i = e.points[4] + r, + o = Math.PI / 180 + if ((Math.abs(t - i) < o && (o = Math.abs(t - i)), r < 0)) + for (let r = t - o; r > i; r -= o) { + var a = gm.getPointOnEllipticalArc( + e.points[0], + e.points[1], + e.points[2], + e.points[3], + r, + 0, + ) + n.push(a.x, a.y) + } + else + for (let r = t + o; r < i; r += o) { + var l = gm.getPointOnEllipticalArc( + e.points[0], + e.points[1], + e.points[2], + e.points[3], + r, + 0, + ) + n.push(l.x, l.y) + } + } else if ('C' === e.command) + for (let c = 0; c <= 1; c += 0.01) { + var s = gm.getPointOnCubicBezier( + c, + e.start.x, + e.start.y, + e.points[0], + e.points[1], + e.points[2], + e.points[3], + e.points[4], + e.points[5], + ) + n.push(s.x, s.y) + } + else n = n.concat(e.points) + }), + n[0]), + i = n[0], + o = n[1], + a = n[1], + l = 0; + l < n.length / 2; + l++ + ) + (e = n[2 * l]), + (t = n[2 * l + 1]), + isNaN(e) || ((r = Math.min(r, e)), (i = Math.max(i, e))), + isNaN(t) || ((o = Math.min(o, t)), (a = Math.max(a, t))) + return { + x: Math.round(r), + y: Math.round(o), + width: Math.round(i - r), + height: Math.round(a - o), + } + } + + getLength() { + return this.pathLength + } + + getPointAtLength(e) { + var t, + n = 0, + r = this.dataArray.length + if (!r) return null + for (; n < r && e > this.dataArray[n].pathLength;) (e -= this.dataArray[n].pathLength), ++n + if (n === r) return {x: (t = this.dataArray[n - 1].points.slice(-2))[0], y: t[1]} + if (e < 0.01) return {x: (t = this.dataArray[n].points.slice(0, 2))[0], y: t[1]} + var i = this.dataArray[n], + o = i.points + switch (i.command) { + case 'L': + return gm.getPointOnLine(e, i.start.x, i.start.y, o[0], o[1]) + case 'C': + return gm.getPointOnCubicBezier( + e / i.pathLength, + i.start.x, + i.start.y, + o[0], + o[1], + o[2], + o[3], + o[4], + o[5], + ) + case 'Q': + return gm.getPointOnQuadraticBezier( + e / i.pathLength, + i.start.x, + i.start.y, + o[0], + o[1], + o[2], + o[3], + ) + case 'A': + var a = o[0], + l = o[1], + s = o[2], + c = o[3], + u = o[4], + d = o[5], + f = o[6] + return (u += (d * e) / i.pathLength), gm.getPointOnEllipticalArc(a, l, s, c, u, f) + } + return null + } + + static getLineLength(e, t, n, r) { + return Math.sqrt((n - e) * (n - e) + (r - t) * (r - t)) + } + + static getPointOnLine(e, t, n, r, i, o, a) { + void 0 === o && (o = t), void 0 === a && (a = n) + var l, + s, + c = (i - n) / (r - t + 1e-8), + u = Math.sqrt((e * e) / (1 + c * c)), + d = (r < t && (u *= -1), c * u) + return (i = + r === t + ? {x: o, y: a + d} + : (a - n) / (o - t + 1e-8) == c + ? {x: o + u, y: a + d} + : ((l = this.getLineLength(t, n, r, i)), + (s = (o - t) * (r - t) + (a - n) * (i - n)), + (l = this.getLineLength( + o, + a, + (o = t + (s /= l * l) * (r - t)), + (a = n + s * (i - n)), + )), + (s = Math.sqrt(e * e - l * l)), + (u = Math.sqrt((s * s) / (1 + c * c))), + r < t && (u *= -1), + {x: o + u, y: a + (d = c * u)})) + } + + static getPointOnCubicBezier(e, t, n, r, i, o, a, l, s) { + function c(e) { + return e * e * e + } + + function u(e) { + return 3 * e * e * (1 - e) + } + + function d(e) { + return 3 * e * (1 - e) * (1 - e) + } + + function f(e) { + return (1 - e) * (1 - e) * (1 - e) + } + + return { + x: l * c(e) + o * u(e) + r * d(e) + t * f(e), + y: s * c(e) + a * u(e) + i * d(e) + n * f(e), + } + } + + static getPointOnQuadraticBezier(e, t, n, r, i, o, a) { + function l(e) { + return e * e + } + + function s(e) { + return 2 * e * (1 - e) + } + + function c(e) { + return (1 - e) * (1 - e) + } + + return { + x: o * l(e) + r * s(e) + t * c(e), + y: a * l(e) + i * s(e) + n * c(e), + } + } + + static getPointOnEllipticalArc(e, t, n, r, i, o) { + var a = Math.cos(o) + o = Math.sin(o) + return { + x: e + ((n = n * Math.cos(i)) * a - (r = r * Math.sin(i)) * o), + y: t + (n * o + r * a), + } + } + + static parsePathData(e) { + if (!e) return [] + for ( + var t = [ + 'm', + 'M', + 'l', + 'L', + 'v', + 'V', + 'h', + 'H', + 'z', + 'Z', + 'c', + 'C', + 'q', + 'Q', + 't', + 'T', + 's', + 'S', + 'a', + 'A', + ], + n = (n = e).replace(new RegExp(' ', 'g'), ','), + r = 0; + r < t.length; + r++ + ) + n = n.replace(new RegExp(t[r], 'g'), '|' + t[r]) + var i, + o = n.split('|'), + a = [], + l = [], + s = 0, + c = 0, + u = /([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi + for (r = 1; r < o.length; r++) { + var d = (f = o[r]).charAt(0), + f = f.slice(1) + for (l.length = 0; (i = u.exec(f));) l.push(i[0]) + for (var h, p = [], g = 0, m = l.length; g < m; g++) + '00' === l[g] ? p.push(0, 0) : ((h = parseFloat(l[g])), isNaN(h) ? p.push(0) : p.push(h)) + for (; 0 < p.length && !isNaN(p[0]);) { + var v, + y, + b, + w, + C, + x, + E, + O, + S, + k, + P = null, + _ = [], + L = s, + T = c + switch (d) { + case 'l': + ;(s += p.shift()), (c += p.shift()), (P = 'L'), _.push(s, c) + break + case 'L': + ;(s = p.shift()), (c = p.shift()), _.push(s, c) + break + case 'm': + var j = p.shift(), + I = p.shift() + if (((s += j), (c += I), (P = 'M'), 2 < a.length && 'z' === a[a.length - 1].command)) + for (var M = a.length - 2; 0 <= M; M--) + if ('M' === a[M].command) { + ;(s = a[M].points[0] + j), (c = a[M].points[1] + I) + break + } + _.push(s, c), (d = 'l') + break + case 'M': + ;(s = p.shift()), (c = p.shift()), (P = 'M'), _.push(s, c), (d = 'L') + break + case 'h': + ;(s += p.shift()), (P = 'L'), _.push(s, c) + break + case 'H': + ;(s = p.shift()), (P = 'L'), _.push(s, c) + break + case 'v': + ;(c += p.shift()), (P = 'L'), _.push(s, c) + break + case 'V': + ;(c = p.shift()), (P = 'L'), _.push(s, c) + break + case 'C': + _.push(p.shift(), p.shift(), p.shift(), p.shift()), + (s = p.shift()), + (c = p.shift()), + _.push(s, c) + break + case 'c': + _.push(s + p.shift(), c + p.shift(), s + p.shift(), c + p.shift()), + (s += p.shift()), + (c += p.shift()), + (P = 'C'), + _.push(s, c) + break + case 'S': + ;(y = s), + (b = c), + 'C' === (v = a[a.length - 1]).command && + ((y = s + (s - v.points[2])), (b = c + (c - v.points[3]))), + _.push(y, b, p.shift(), p.shift()), + (s = p.shift()), + (c = p.shift()), + (P = 'C'), + _.push(s, c) + break + case 's': + ;(y = s), + (b = c), + 'C' === (v = a[a.length - 1]).command && + ((y = s + (s - v.points[2])), (b = c + (c - v.points[3]))), + _.push(y, b, s + p.shift(), c + p.shift()), + (s += p.shift()), + (c += p.shift()), + (P = 'C'), + _.push(s, c) + break + case 'Q': + _.push(p.shift(), p.shift()), (s = p.shift()), (c = p.shift()), _.push(s, c) + break + case 'q': + _.push(s + p.shift(), c + p.shift()), + (s += p.shift()), + (c += p.shift()), + (P = 'Q'), + _.push(s, c) + break + case 'T': + ;(y = s), + (b = c), + 'Q' === (v = a[a.length - 1]).command && + ((y = s + (s - v.points[0])), (b = c + (c - v.points[1]))), + (s = p.shift()), + (c = p.shift()), + (P = 'Q'), + _.push(y, b, s, c) + break + case 't': + ;(y = s), + (b = c), + 'Q' === (v = a[a.length - 1]).command && + ((y = s + (s - v.points[0])), (b = c + (c - v.points[1]))), + (s += p.shift()), + (c += p.shift()), + (P = 'Q'), + _.push(y, b, s, c) + break + case 'A': + ;(w = p.shift()), + (C = p.shift()), + (x = p.shift()), + (E = p.shift()), + (O = p.shift()), + (S = s), + (k = c), + (s = p.shift()), + (c = p.shift()), + (P = 'A'), + (_ = this.convertEndpointToCenterParameterization(S, k, s, c, E, O, w, C, x)) + break + case 'a': + ;(w = p.shift()), + (C = p.shift()), + (x = p.shift()), + (E = p.shift()), + (O = p.shift()), + (S = s), + (k = c), + (s += p.shift()), + (c += p.shift()), + (P = 'A'), + (_ = this.convertEndpointToCenterParameterization(S, k, s, c, E, O, w, C, x)) + } + a.push({ + command: P || d, + points: _, + start: {x: L, y: T}, + pathLength: this.calcLength(L, T, P || d, _), + }) + } + ;('z' !== d && 'Z' !== d) || + a.push({command: 'z', points: [], start: void 0, pathLength: 0}) + } + return a + } + + static calcLength(e, t, n, r) { + var i, + o, + a, + l = gm + switch (n) { + case 'L': + return l.getLineLength(e, t, r[0], r[1]) + case 'C': + for ( + i = l.getPointOnCubicBezier((s = 0), e, t, r[0], r[1], r[2], r[3], r[4], r[5]), + a = 0.01; + a <= 1; + a += 0.01 + ) + (o = l.getPointOnCubicBezier(a, e, t, r[0], r[1], r[2], r[3], r[4], r[5])), + (s += l.getLineLength(i.x, i.y, o.x, o.y)), + (i = o) + return s + case 'Q': + for ( + i = l.getPointOnQuadraticBezier((s = 0), e, t, r[0], r[1], r[2], r[3]), a = 0.01; + a <= 1; + a += 0.01 + ) + (o = l.getPointOnQuadraticBezier(a, e, t, r[0], r[1], r[2], r[3])), + (s += l.getLineLength(i.x, i.y, o.x, o.y)), + (i = o) + return s + case 'A': + var s = 0, + c = r[4], + u = r[5], + d = r[4] + u, + f = Math.PI / 180 + if ( + (Math.abs(c - d) < f && (f = Math.abs(c - d)), + (i = l.getPointOnEllipticalArc(r[0], r[1], r[2], r[3], c, 0)), + u < 0) + ) + for (a = c - f; d < a; a -= f) + (o = l.getPointOnEllipticalArc(r[0], r[1], r[2], r[3], a, 0)), + (s += l.getLineLength(i.x, i.y, o.x, o.y)), + (i = o) + else + for (a = c + f; a < d; a += f) + (o = l.getPointOnEllipticalArc(r[0], r[1], r[2], r[3], a, 0)), + (s += l.getLineLength(i.x, i.y, o.x, o.y)), + (i = o) + return ( + (o = l.getPointOnEllipticalArc(r[0], r[1], r[2], r[3], d, 0)), + s + l.getLineLength(i.x, i.y, o.x, o.y) + ) + } + return 0 + } + + static convertEndpointToCenterParameterization(e, t, n, r, i, o, a, l, s) { + function c(e, t) { + return (e[0] * t[0] + e[1] * t[1]) / (p(e) * p(t)) + } + + function u(e, t) { + return (e[0] * t[1] < e[1] * t[0] ? -1 : 1) * Math.acos(c(e, t)) + } + + s *= Math.PI / 180 + var d = (Math.cos(s) * (e - n)) / 2 + (Math.sin(s) * (t - r)) / 2, + f = (-1 * Math.sin(s) * (e - n)) / 2 + (Math.cos(s) * (t - r)) / 2, + h = + (1 < (h = (d * d) / (a * a) + (f * f) / (l * l)) && + ((a *= Math.sqrt(h)), (l *= Math.sqrt(h))), + Math.sqrt( + (a * a * (l * l) - a * a * (f * f) - l * l * (d * d)) / + (a * a * (f * f) + l * l * (d * d)), + )), + p = + ((i = (i === o && (h *= -1), ((h = isNaN(h) ? 0 : h) * a * f) / l)), + (h = (h * -l * d) / a), + (e = (e + n) / 2 + Math.cos(s) * i - Math.sin(s) * h), + (n = (t + r) / 2 + Math.sin(s) * i + Math.cos(s) * h), + function (e) { + return Math.sqrt(e[0] * e[0] + e[1] * e[1]) + }) + ;(t = u([1, 0], [(d - i) / a, (f - h) / l])), + (i = u((r = [(d - i) / a, (f - h) / l]), (d = [(-1 * d - i) / a, (-1 * f - h) / l]))) + return ( + c(r, d) <= -1 && (i = Math.PI), + 1 <= c(r, d) && (i = 0), + 0 === o && 0 < i && (i -= 2 * Math.PI), + 1 === o && i < 0 && (i += 2 * Math.PI), + [e, n, a, l, t, i, s, o] + ) + } + } + ;(gm.prototype.className = 'Path'), + (gm.prototype._attrsAffectingSize = ['data']), + bp(gm), + tg.addGetterSetter(gm, 'data') + + class mm extends pm { + _sceneFunc(e) { + super._sceneFunc(e) + var t, + n, + r = 2 * Math.PI, + i = this.points(), + o = i, + a = 0 !== this.tension() && 4 < i.length, + l = (a && (o = this.getTensionPoints()), this.pointerLength()), + s = i.length, + c = + ((n = a + ? ((t = [ + o[o.length - 4], + o[o.length - 3], + o[o.length - 2], + o[o.length - 1], + i[s - 2], + i[s - 1], + ]), + (n = gm.calcLength(o[o.length - 4], o[o.length - 3], 'C', t)), + (n = gm.getPointOnQuadraticBezier( + Math.min(1, 1 - l / n), + t[0], + t[1], + t[2], + t[3], + t[4], + t[5], + )), + (t = i[s - 2] - n.x), + i[s - 1] - n.y) + : ((t = i[s - 2] - i[s - 4]), i[s - 1] - i[s - 3])), + (Math.atan2(n, t) + r) % r), + u = this.pointerWidth() + this.pointerAtEnding() && + (e.save(), + e.beginPath(), + e.translate(i[s - 2], i[s - 1]), + e.rotate(c), + e.moveTo(0, 0), + e.lineTo(-l, u / 2), + e.lineTo(-l, -u / 2), + e.closePath(), + e.restore(), + this.__fillStroke(e)), + this.pointerAtBeginning() && + (e.save(), + e.beginPath(), + e.translate(i[0], i[1]), + (n = a + ? ((t = (o[0] + o[2]) / 2 - i[0]), (o[1] + o[3]) / 2 - i[1]) + : ((t = i[2] - i[0]), i[3] - i[1])), + e.rotate((Math.atan2(-n, -t) + r) % r), + e.moveTo(0, 0), + e.lineTo(-l, u / 2), + e.lineTo(-l, -u / 2), + e.closePath(), + e.restore(), + this.__fillStroke(e)) + } + + __fillStroke(e) { + var t = this.dashEnabled() + t && ((this.attrs.dashEnabled = !1), e.setLineDash([])), + e.fillStrokeShape(this), + t && (this.attrs.dashEnabled = !0) + } + + getSelfRect() { + var e = super.getSelfRect(), + t = this.pointerWidth() / 2 + return { + x: e.x - t, + y: e.y - t, + width: e.width + 2 * t, + height: e.height + 2 * t, + } + } + } + ;(mm.prototype.className = 'Arrow'), + bp(mm), + tg.addGetterSetter(mm, 'pointerLength', 10, Xp()), + tg.addGetterSetter(mm, 'pointerWidth', 10, Xp()), + tg.addGetterSetter(mm, 'pointerAtBeginning', !1), + tg.addGetterSetter(mm, 'pointerAtEnding', !0) + + class vm extends $g { + _sceneFunc(e) { + e.beginPath(), + e.arc(0, 0, this.attrs.radius || 0, 0, 2 * Math.PI, !1), + e.closePath(), + e.fillStrokeShape(this) + } + + getWidth() { + return 2 * this.radius() + } + + getHeight() { + return 2 * this.radius() + } + + setWidth(e) { + this.radius() !== e / 2 && this.radius(e / 2) + } + + setHeight(e) { + this.radius() !== e / 2 && this.radius(e / 2) + } + } + ;(vm.prototype._centroid = !0), + (vm.prototype.className = 'Circle'), + (vm.prototype._attrsAffectingSize = ['radius']), + bp(vm), + tg.addGetterSetter(vm, 'radius', 0, Xp()) + + class ym extends $g { + _sceneFunc(e) { + var t = this.radiusX(), + n = this.radiusY() + e.beginPath(), + e.save(), + t !== n && e.scale(1, n / t), + e.arc(0, 0, t, 0, 2 * Math.PI, !1), + e.restore(), + e.closePath(), + e.fillStrokeShape(this) + } + + getWidth() { + return 2 * this.radiusX() + } + + getHeight() { + return 2 * this.radiusY() + } + + setWidth(e) { + this.radiusX(e / 2) + } + + setHeight(e) { + this.radiusY(e / 2) + } + } + ;(ym.prototype.className = 'Ellipse'), + (ym.prototype._centroid = !0), + (ym.prototype._attrsAffectingSize = ['radiusX', 'radiusY']), + bp(ym), + tg.addComponentsGetterSetter(ym, 'radius', ['x', 'y']), + tg.addGetterSetter(ym, 'radiusX', 0, Xp()), + tg.addGetterSetter(ym, 'radiusY', 0, Xp()) + + class bm extends $g { + constructor(e) { + super(e), + this.on('imageChange.konva', () => { + this._setImageLoad() + }), + this._setImageLoad() + } + + _setImageLoad() { + const e = this.image() + ;(e && e.complete) || + (e && 4 === e.readyState) || + (e && + e.addEventListener && + e.addEventListener('load', () => { + this._requestDraw() + })) + } + + _useBufferCanvas() { + return super._useBufferCanvas(!0) + } + + _sceneFunc(e) { + var t, + n, + r = this.getWidth(), + i = this.getHeight(), + o = this.attrs.image + let a + o && + ((t = this.attrs.cropWidth), + (n = this.attrs.cropHeight), + (a = t && n ? [o, this.cropX(), this.cropY(), t, n, 0, 0, r, i] : [o, 0, 0, r, i])), + (this.hasFill() || this.hasStroke()) && + (e.beginPath(), e.rect(0, 0, r, i), e.closePath(), e.fillStrokeShape(this)), + o && e.drawImage.apply(e, a) + } + + _hitFunc(e) { + var t = this.width(), + n = this.height() + e.beginPath(), e.rect(0, 0, t, n), e.closePath(), e.fillStrokeShape(this) + } + + getWidth() { + var e + return null != (e = this.attrs.width) ? e : null == (e = this.image()) ? void 0 : e.width + } + + getHeight() { + var e + return null != (e = this.attrs.height) ? e : null == (e = this.image()) ? void 0 : e.height + } + + static fromURL(e, t, n = null) { + var r = Gp.createImageElement() + ;(r.onload = function () { + var e = new bm({image: r}) + t(e) + }), + (r.onerror = n), + (r.crossOrigin = 'Anonymous'), + (r.src = e) + } + } + ;(bm.prototype.className = 'Image'), + bp(bm), + tg.addGetterSetter(bm, 'image'), + tg.addComponentsGetterSetter(bm, 'crop', ['x', 'y', 'width', 'height']), + tg.addGetterSetter(bm, 'cropX', 0, Xp()), + tg.addGetterSetter(bm, 'cropY', 0, Xp()), + tg.addGetterSetter(bm, 'cropWidth', 0, Xp()), + tg.addGetterSetter(bm, 'cropHeight', 0, Xp()) + var wm = [ + 'fontFamily', + 'fontSize', + 'fontStyle', + 'padding', + 'lineHeight', + 'text', + 'width', + 'height', + ], + Cm = 'right', + xm = 'down', + Em = 'left', + Om = wm.length + + class Sm extends tm { + constructor(e) { + super(e), + this.on('add.konva', function (e) { + this._addListeners(e.child), this._sync() + }) + } + + getText() { + return this.find('Text')[0] + } + + getTag() { + return this.find('Tag')[0] + } + + _addListeners(e) { + for ( + var t = this, + n = function () { + t._sync() + }, + r = 0; + r < Om; + r++ + ) + e.on(wm[r] + 'Change.konva', n) + } + + getWidth() { + return this.getText().width() + } + + getHeight() { + return this.getText().height() + } + + _sync() { + var e, + t, + n, + r, + i, + o, + a, + l = this.getText(), + s = this.getTag() + if (l && s) { + switch ( + ((e = l.width()), + (t = l.height()), + (n = s.pointerDirection()), + (r = s.pointerWidth()), + (a = s.pointerHeight()), + (o = i = 0), + n) + ) { + case 'up': + ;(i = e / 2), (o = -1 * a) + break + case Cm: + ;(i = e + r), (o = t / 2) + break + case xm: + ;(i = e / 2), (o = t + a) + break + case Em: + ;(i = -1 * r), (o = t / 2) + } + s.setAttrs({x: -1 * i, y: -1 * o, width: e, height: t}), + l.setAttrs({x: -1 * i, y: -1 * o}) + } + } + } + ;(Sm.prototype.className = 'Label'), bp(Sm) + + class km extends $g { + _sceneFunc(e) { + var t = this.width(), + n = this.height(), + r = this.pointerDirection(), + i = this.pointerWidth(), + o = this.pointerHeight(), + a = this.cornerRadius() + let l = 0, + s = 0, + c = 0, + u = 0 + 'number' == typeof a + ? (l = s = c = u = Math.min(a, t / 2, n / 2)) + : ((l = Math.min(a[0] || 0, t / 2, n / 2)), + (s = Math.min(a[1] || 0, t / 2, n / 2)), + (u = Math.min(a[2] || 0, t / 2, n / 2)), + (c = Math.min(a[3] || 0, t / 2, n / 2))), + e.beginPath(), + e.moveTo(l, 0), + 'up' === r && (e.lineTo((t - i) / 2, 0), e.lineTo(t / 2, -1 * o), e.lineTo((t + i) / 2, 0)), + e.lineTo(t - s, 0), + e.arc(t - s, s, s, (3 * Math.PI) / 2, 0, !1), + r === Cm && (e.lineTo(t, (n - o) / 2), e.lineTo(t + i, n / 2), e.lineTo(t, (n + o) / 2)), + e.lineTo(t, n - u), + e.arc(t - u, n - u, u, 0, Math.PI / 2, !1), + r === xm && (e.lineTo((t + i) / 2, n), e.lineTo(t / 2, n + o), e.lineTo((t - i) / 2, n)), + e.lineTo(c, n), + e.arc(c, n - c, c, Math.PI / 2, Math.PI, !1), + r === Em && (e.lineTo(0, (n + o) / 2), e.lineTo(-1 * i, n / 2), e.lineTo(0, (n - o) / 2)), + e.lineTo(0, l), + e.arc(l, l, l, Math.PI, (3 * Math.PI) / 2, !1), + e.closePath(), + e.fillStrokeShape(this) + } + + getSelfRect() { + var e = 0, + t = 0, + n = this.pointerWidth(), + r = this.pointerHeight(), + i = this.pointerDirection(), + o = this.width(), + a = this.height() + return ( + 'up' === i + ? ((t -= r), (a += r)) + : i === xm + ? (a += r) + : i === Em + ? ((e -= 1.5 * n), (o += n)) + : i === Cm && (o += 1.5 * n), + {x: e, y: t, width: o, height: a} + ) + } + } + ;(km.prototype.className = 'Tag'), + bp(km), + tg.addGetterSetter(km, 'pointerDirection', 'none'), + tg.addGetterSetter(km, 'pointerWidth', 0, Xp()), + tg.addGetterSetter(km, 'pointerHeight', 0, Xp()), + tg.addGetterSetter(km, 'cornerRadius', 0, Yp(4)) + + class Pm extends $g { + _sceneFunc(e) { + var t = this.cornerRadius(), + n = this.width(), + r = this.height() + if ((e.beginPath(), t)) { + let i = 0, + o = 0, + a = 0, + l = 0 + 'number' == typeof t + ? (i = o = a = l = Math.min(t, n / 2, r / 2)) + : ((i = Math.min(t[0] || 0, n / 2, r / 2)), + (o = Math.min(t[1] || 0, n / 2, r / 2)), + (l = Math.min(t[2] || 0, n / 2, r / 2)), + (a = Math.min(t[3] || 0, n / 2, r / 2))), + e.moveTo(i, 0), + e.lineTo(n - o, 0), + e.arc(n - o, o, o, (3 * Math.PI) / 2, 0, !1), + e.lineTo(n, r - l), + e.arc(n - l, r - l, l, 0, Math.PI / 2, !1), + e.lineTo(a, r), + e.arc(a, r - a, a, Math.PI / 2, Math.PI, !1), + e.lineTo(0, i), + e.arc(i, i, i, Math.PI, (3 * Math.PI) / 2, !1) + } else e.rect(0, 0, n, r) + e.closePath(), e.fillStrokeShape(this) + } + } + ;(Pm.prototype.className = 'Rect'), bp(Pm), tg.addGetterSetter(Pm, 'cornerRadius', 0, Yp(4)) + + class _m extends $g { + _sceneFunc(e) { + var t = this._getPoints() + e.beginPath(), e.moveTo(t[0].x, t[0].y) + for (var n = 1; n < t.length; n++) e.lineTo(t[n].x, t[n].y) + e.closePath(), e.fillStrokeShape(this) + } + + _getPoints() { + var e = this.attrs.sides, + t = this.attrs.radius || 0 + const n = [] + for (var r = 0; r < e; r++) + n.push({ + x: t * Math.sin((2 * r * Math.PI) / e), + y: -1 * t * Math.cos((2 * r * Math.PI) / e), + }) + return n + } + + getSelfRect() { + const e = this._getPoints() + var t = e[0].x, + n = e[0].y, + r = e[0].x, + i = e[0].y + return ( + e.forEach((e) => { + ;(t = Math.min(t, e.x)), + (n = Math.max(n, e.x)), + (r = Math.min(r, e.y)), + (i = Math.max(i, e.y)) + }), + {x: t, y: r, width: n - t, height: i - r} + ) + } + + getWidth() { + return 2 * this.radius() + } + + getHeight() { + return 2 * this.radius() + } + + setWidth(e) { + this.radius(e / 2) + } + + setHeight(e) { + this.radius(e / 2) + } + } + ;(_m.prototype.className = 'RegularPolygon'), + (_m.prototype._centroid = !0), + (_m.prototype._attrsAffectingSize = ['radius']), + bp(_m), + tg.addGetterSetter(_m, 'radius', 0, Xp()), + tg.addGetterSetter(_m, 'sides', 0, Xp()) + var Lm = 2 * Math.PI + + class Tm extends $g { + _sceneFunc(e) { + e.beginPath(), + e.arc(0, 0, this.innerRadius(), 0, Lm, !1), + e.moveTo(this.outerRadius(), 0), + e.arc(0, 0, this.outerRadius(), Lm, 0, !0), + e.closePath(), + e.fillStrokeShape(this) + } + + getWidth() { + return 2 * this.outerRadius() + } + + getHeight() { + return 2 * this.outerRadius() + } + + setWidth(e) { + this.outerRadius(e / 2) + } + + setHeight(e) { + this.outerRadius(e / 2) + } + } + ;(Tm.prototype.className = 'Ring'), + (Tm.prototype._centroid = !0), + (Tm.prototype._attrsAffectingSize = ['innerRadius', 'outerRadius']), + bp(Tm), + tg.addGetterSetter(Tm, 'innerRadius', 0, Xp()), + tg.addGetterSetter(Tm, 'outerRadius', 0, Xp()) + + class jm extends $g { + constructor(e) { + super(e), + (this._updated = !0), + (this.anim = new rm(() => { + var e = this._updated + return (this._updated = !1), e + })), + this.on('animationChange.konva', function () { + this.frameIndex(0) + }), + this.on('frameIndexChange.konva', function () { + this._updated = !0 + }), + this.on('frameRateChange.konva', function () { + this.anim.isRunning() && (clearInterval(this.interval), this._setInterval()) + }) + } + + _sceneFunc(e) { + var t = this.animation(), + n = this.frameIndex(), + r = 4 * n, + i = this.animations()[t], + o = this.frameOffsets(), + a = i[0 + r], + l = i[1 + r], + s = i[2 + r] + ;(i = i[3 + r]), (r = this.image()) + ;(this.hasFill() || this.hasStroke()) && + (e.beginPath(), e.rect(0, 0, s, i), e.closePath(), e.fillStrokeShape(this)), + r && + (o + ? ((o = o[t]), e.drawImage(r, a, l, s, i, o[0 + (t = 2 * n)], o[1 + t], s, i)) + : e.drawImage(r, a, l, s, i, 0, 0, s, i)) + } + + _hitFunc(e) { + var t = this.animation(), + n = this.frameIndex(), + r = 4 * n, + i = this.animations()[t], + o = this.frameOffsets(), + a = i[2 + r] + i = i[3 + r] + e.beginPath(), + o ? ((r = o[t]), e.rect(r[0 + (o = 2 * n)], r[1 + o], a, i)) : e.rect(0, 0, a, i), + e.closePath(), + e.fillShape(this) + } + + _useBufferCanvas() { + return super._useBufferCanvas(!0) + } + + _setInterval() { + var e = this + this.interval = setInterval(function () { + e._updateIndex() + }, 1e3 / this.frameRate()) + } + + start() { + var e + this.isRunning() || + ((e = this.getLayer()), this.anim.setLayers(e), this._setInterval(), this.anim.start()) + } + + stop() { + this.anim.stop(), clearInterval(this.interval) + } + + isRunning() { + return this.anim.isRunning() + } + + _updateIndex() { + var e = this.frameIndex(), + t = this.animation() + e < this.animations()[t].length / 4 - 1 ? this.frameIndex(e + 1) : this.frameIndex(0) + } + } + ;(jm.prototype.className = 'Sprite'), + bp(jm), + tg.addGetterSetter(jm, 'animation'), + tg.addGetterSetter(jm, 'animations'), + tg.addGetterSetter(jm, 'frameOffsets'), + tg.addGetterSetter(jm, 'image'), + tg.addGetterSetter(jm, 'frameIndex', 0, Xp()), + tg.addGetterSetter(jm, 'frameRate', 17, Xp()), + tg.backCompat(jm, { + index: 'frameIndex', + getIndex: 'getFrameIndex', + setIndex: 'setFrameIndex', + }) + + class Im extends $g { + _sceneFunc(e) { + var t = this.innerRadius(), + n = this.outerRadius(), + r = this.numPoints() + e.beginPath(), e.moveTo(0, 0 - n) + for (var i = 1; i < 2 * r; i++) { + var o = (a = i % 2 == 0 ? n : t) * Math.sin((i * Math.PI) / r), + a = -1 * a * Math.cos((i * Math.PI) / r) + e.lineTo(o, a) + } + e.closePath(), e.fillStrokeShape(this) + } + + getWidth() { + return 2 * this.outerRadius() + } + + getHeight() { + return 2 * this.outerRadius() + } + + setWidth(e) { + this.outerRadius(e / 2) + } + + setHeight(e) { + this.outerRadius(e / 2) + } + } + + function Mm(e) { + return Array.from(e) + } + ;(Im.prototype.className = 'Star'), + (Im.prototype._centroid = !0), + (Im.prototype._attrsAffectingSize = ['innerRadius', 'outerRadius']), + bp(Im), + tg.addGetterSetter(Im, 'numPoints', 5, Xp()), + tg.addGetterSetter(Im, 'innerRadius', 0, Xp()), + tg.addGetterSetter(Im, 'outerRadius', 0, Xp()) + var Rm, + Dm = 'auto', + Am = 'justify', + zm = [ + 'fontFamily', + 'fontSize', + 'fontStyle', + 'fontVariant', + 'padding', + 'align', + 'verticalAlign', + 'lineHeight', + 'text', + 'width', + 'height', + 'wrap', + 'ellipsis', + 'letterSpacing', + ], + Nm = zm.length + + function Hm() { + return (Rm = Rm || Gp.createCanvasElement().getContext('2d', {willReadFrequently: true})) + } + + class Fm extends $g { + constructor(e) { + super( + ((e = (e = e) || {}).fillLinearGradientColorStops || + e.fillRadialGradientColorStops || + e.fillPatternImage || + (e.fill = e.fill || 'black'), + e), + ), + (this._partialTextX = 0) + for (var t = (this._partialTextY = 0); t < Nm; t++) + this.on(zm[t] + 'Change.konva', this._setTextData) + this._setTextData() + } + + _sceneFunc(e) { + var t = this.textArr, + n = t.length + if (this.text()) { + var r, + i = this.padding(), + o = this.fontSize(), + a = this.lineHeight() * o, + l = this.verticalAlign(), + s = 0, + c = this.align(), + u = this.getWidth(), + d = this.letterSpacing(), + f = this.fill(), + h = this.textDecoration(), + p = -1 !== h.indexOf('underline'), + g = -1 !== h.indexOf('line-through'), + m = 0, + v = ((m = a / 2), 0) + for ( + e.setAttr('font', this._getContextFont()), + e.setAttr('textBaseline', 'middle'), + e.setAttr('textAlign', 'left'), + 'middle' === l + ? (s = (this.getHeight() - n * a - 2 * i) / 2) + : 'bottom' === l && (s = this.getHeight() - n * a - 2 * i), + e.translate(i, s + i), + r = 0; + r < n; + r++ + ) { + v = 0 + var y, + b, + w = (x = t[r]).text, + C = x.width, + x = r !== n - 1 + if ( + (e.save(), + 'right' === c ? (v += u - C - 2 * i) : 'center' === c && (v += (u - C - 2 * i) / 2), + p && + (e.save(), + e.beginPath(), + e.moveTo(v, m + 0 + Math.round(o / 2)), + (y = 0 == (E = w.split(' ').length - 1)), + (b = c === Am && x && !y ? u - 2 * i : C), + e.lineTo(v + Math.round(b), m + 0 + Math.round(o / 2)), + (e.lineWidth = o / 15), + (e.strokeStyle = f), + e.stroke(), + e.restore()), + g && + (e.save(), + e.beginPath(), + e.moveTo(v, m + 0), + (y = 0 == (E = w.split(' ').length - 1)), + (b = c === Am && x && !y ? u - 2 * i : C), + e.lineTo(v + Math.round(b), m + 0), + (e.lineWidth = o / 15), + (e.strokeStyle = f), + e.stroke(), + e.restore()), + 0 !== d || c === Am) + ) + for (var E = w.split(' ').length - 1, O = Mm(w), S = 0; S < O.length; S++) { + var k = O[S] + ' ' === k && r !== n - 1 && c === Am && (v += (u - 2 * i - C) / E), + (this._partialTextX = v), + (this._partialTextY = m + 0), + (this._partialText = k), + e.fillStrokeShape(this), + (v += this.measureSize(k).width + d) + } + else + (this._partialTextX = v), + (this._partialTextY = m + 0), + (this._partialText = w), + e.fillStrokeShape(this) + e.restore(), 1 < n && (m += a) + } + } + } + + _hitFunc(e) { + var t = this.getWidth(), + n = this.getHeight() + e.beginPath(), e.rect(0, 0, t, n), e.closePath(), e.fillStrokeShape(this) + } + + setText(e) { + return (e = Gp._isString(e) ? e : null == e ? '' : e + ''), this._setAttr('text', e), this + } + + getWidth() { + return this.attrs.width === Dm || void 0 === this.attrs.width + ? this.getTextWidth() + 2 * this.padding() + : this.attrs.width + } + + getHeight() { + return this.attrs.height === Dm || void 0 === this.attrs.height + ? this.fontSize() * this.textArr.length * this.lineHeight() + 2 * this.padding() + : this.attrs.height + } + + getTextWidth() { + return this.textWidth + } + + getTextHeight() { + return ( + Gp.warn( + 'text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height.', + ), + this.textHeight + ) + } + + measureSize(e) { + var t = Hm(), + n = this.fontSize() + return ( + t.save(), + (t.font = this._getContextFont()), + (e = t.measureText(e)), + t.restore(), + {width: e.width, height: n} + ) + } + + _getContextFont() { + return ( + this.fontStyle() + + ' ' + + this.fontVariant() + + ' ' + + this.fontSize() + + 'px ' + + this.fontFamily() + .split(',') + .map((e) => { + var t = 0 <= (e = e.trim()).indexOf(' '), + n = 0 <= e.indexOf('"') || 0 <= e.indexOf("'") + return t && !n ? `"${e}"` : e + }) + .join(', ') + ) + } + + _addTextLine(e) { + this.align() === Am && (e = e.trim()) + var t = this._getTextWidth(e) + return this.textArr.push({text: e, width: t}) + } + + _getTextWidth(e) { + var t = this.letterSpacing(), + n = e.length + return Hm().measureText(e).width + (n ? t * (n - 1) : 0) + } + + _setTextData() { + for ( + var e = this.text().split('\n'), + t = +this.fontSize(), + n = 0, + r = this.lineHeight() * t, + i = this.attrs.width, + o = this.attrs.height, + a = i !== Dm && void 0 !== i, + l = o !== Dm && void 0 !== o, + s = this.padding(), + c = i - 2 * s, + u = o - 2 * s, + d = 0, + f = 'none' !== (i = this.wrap()), + h = 'char' !== i && f, + p = this.ellipsis(), + g = + ((this.textArr = []), + (Hm().font = this._getContextFont()), + p ? this._getTextWidth('…') : 0), + m = 0, + v = e.length; + m < v; + ++m + ) { + var y = e[m], + b = this._getTextWidth(y) + if (a && c < b) + for (; 0 < y.length;) { + for (var w = 0, C = y.length, x = '', E = 0; w < C;) { + var O = (w + C) >>> 1, + S = y.slice(0, 1 + O), + k = this._getTextWidth(S) + g + k <= c ? ((w = 1 + O), (x = S), (E = k)) : (C = O) + } + if (!x) break + if ( + (!h || + (0 < + (P = + (' ' === (P = y[x.length]) || '-' === P) && E <= c + ? x.length + : Math.max(x.lastIndexOf(' '), x.lastIndexOf('-')) + 1) && + ((w = P), (x = x.slice(0, w)), (E = this._getTextWidth(x)))), + (x = x.trimRight()), + this._addTextLine(x), + (n = Math.max(n, E)), + (d += r), + !f || (l && u < d + r)) + ) { + var P = this.textArr[this.textArr.length - 1] + P && + p && + (this._getTextWidth(P.text + '…') < c || + (P.text = P.text.slice(0, P.text.length - 3)), + this.textArr.splice(this.textArr.length - 1, 1), + this._addTextLine(P.text + '…')) + break + } + if (0 < (y = (y = y.slice(w)).trimLeft()).length && (b = this._getTextWidth(y)) <= c) { + this._addTextLine(y), (d += r), (n = Math.max(n, b)) + break + } + } + else this._addTextLine(y), (d += r), (n = Math.max(n, b)) + if (l && u < d + r) break + } + ;(this.textHeight = t), (this.textWidth = n) + } + + getStrokeScaleEnabled() { + return !0 + } + } + + function Bm(e) { + e.fillText(this.partialText, 0, 0) + } + + function Vm(e) { + e.strokeText(this.partialText, 0, 0) + } + ;(Fm.prototype._fillFunc = function (e) { + e.fillText(this._partialText, this._partialTextX, this._partialTextY) + }), + (Fm.prototype._strokeFunc = function (e) { + e.strokeText(this._partialText, this._partialTextX, this._partialTextY) + }), + (Fm.prototype.className = 'Text'), + (Fm.prototype._attrsAffectingSize = [ + 'text', + 'fontSize', + 'padding', + 'wrap', + 'lineHeight', + 'letterSpacing', + ]), + bp(Fm), + tg.overWriteSetter(Fm, 'width', qp()), + tg.overWriteSetter(Fm, 'height', qp()), + tg.addGetterSetter(Fm, 'fontFamily', 'Arial'), + tg.addGetterSetter(Fm, 'fontSize', 12, Xp()), + tg.addGetterSetter(Fm, 'fontStyle', 'normal'), + tg.addGetterSetter(Fm, 'fontVariant', 'normal'), + tg.addGetterSetter(Fm, 'padding', 0, Xp()), + tg.addGetterSetter(Fm, 'align', 'left'), + tg.addGetterSetter(Fm, 'verticalAlign', 'top'), + tg.addGetterSetter(Fm, 'lineHeight', 1, Xp()), + tg.addGetterSetter(Fm, 'wrap', 'word'), + tg.addGetterSetter(Fm, 'ellipsis', !1, Qp()), + tg.addGetterSetter(Fm, 'letterSpacing', 0, Xp()), + tg.addGetterSetter(Fm, 'text', '', $p()), + tg.addGetterSetter(Fm, 'textDecoration', '') + + class Wm extends $g { + constructor(e) { + super(e), + (this.dummyCanvas = Gp.createCanvasElement()), + (this.dataArray = []), + (this.dataArray = gm.parsePathData(this.attrs.data)), + this.on('dataChange.konva', function () { + ;(this.dataArray = gm.parsePathData(this.attrs.data)), this._setTextData() + }), + this.on( + 'textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva', + this._setTextData, + ), + this._setTextData() + } + + _sceneFunc(e) { + e.setAttr('font', this._getContextFont()), + e.setAttr('textBaseline', this.textBaseline()), + e.setAttr('textAlign', 'left'), + e.save() + var t = this.textDecoration(), + n = this.fill(), + r = this.fontSize(), + i = this.glyphInfo + 'underline' === t && e.beginPath() + for (var o = 0; o < i.length; o++) { + e.save() + var a = i[o].p0 + e.translate(a.x, a.y), + e.rotate(i[o].rotation), + (this.partialText = i[o].text), + e.fillStrokeShape(this), + 'underline' === t && (0 === o && e.moveTo(0, r / 2 + 1), e.lineTo(r, r / 2 + 1)), + e.restore() + } + 'underline' === t && ((e.strokeStyle = n), (e.lineWidth = r / 20), e.stroke()), e.restore() + } + + _hitFunc(e) { + e.beginPath() + var t, + n = this.glyphInfo + 1 <= n.length && ((t = n[0].p0), e.moveTo(t.x, t.y)) + for (var r = 0; r < n.length; r++) { + var i = n[r].p1 + e.lineTo(i.x, i.y) + } + e.setAttr('lineWidth', this.fontSize()), e.setAttr('strokeStyle', this.colorKey), e.stroke() + } + + getTextWidth() { + return this.textWidth + } + + getTextHeight() { + return ( + Gp.warn( + 'text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height.', + ), + this.textHeight + ) + } + + setText(e) { + return Fm.prototype.setText.call(this, e) + } + + _getContextFont() { + return Fm.prototype._getContextFont.call(this) + } + + _getTextSize(e) { + var t = this.dummyCanvas.getContext('2d', {willReadFrequently: true}) + t.save(), (t.font = this._getContextFont()), (e = t.measureText(e)) + return t.restore(), {width: e.width, height: parseInt(this.attrs.fontSize, 10)} + } + + _setTextData() { + for ( + var e = this, + t = this._getTextSize(this.attrs.text), + n = this.letterSpacing(), + r = this.align(), + i = this.kerningFunc(), + o = + ((this.textWidth = t.width), + (this.textHeight = t.height), + Math.max(this.textWidth + ((this.attrs.text || '').length - 1) * n, 0)), + a = ((this.glyphInfo = []), 0), + l = 0; + l < e.dataArray.length; + l++ + ) + 0 < e.dataArray[l].pathLength && (a += e.dataArray[l].pathLength) + t = 0 + for ( + var s, + c, + u, + d = + ('center' === r && (t = Math.max(0, a / 2 - o / 2)), + 'right' === r && (t = Math.max(0, a - o)), + Mm(this.text())), + f = this.text().split(' ').length - 1, + h = -1, + p = 0, + g = function () { + p = 0 + for (var t = e.dataArray, n = h + 1; n < t.length; n++) { + if (0 < t[n].pathLength) return t[(h = n)] + 'M' === t[n].command && (s = {x: t[n].points[0], y: t[n].points[1]}) + } + return {} + }, + m = function (t) { + var i = e._getTextSize(t).width + n, + l = (' ' === t && 'justify' === r && (i += (a - o) / f), 0), + d = 0 + for (c = void 0; 0.01 < Math.abs(i - l) / i && d < 20;) { + d++ + for (var h = l; void 0 === u;) + (u = g()) && h + u.pathLength < i && ((h += u.pathLength), (u = void 0)) + if (u === {} || void 0 === s) return + var m = !1 + switch (u.command) { + case 'L': + gm.getLineLength(s.x, s.y, u.points[0], u.points[1]) > i + ? (c = gm.getPointOnLine(i, s.x, s.y, u.points[0], u.points[1], s.x, s.y)) + : (u = void 0) + break + case 'A': + var v = u.points[4], + y = u.points[5], + b = u.points[4] + y + 0 === p + ? (p = v + 1e-8) + : l < i + ? (p += ((Math.PI / 180) * y) / Math.abs(y)) + : (p -= ((Math.PI / 360) * y) / Math.abs(y)), + ((y < 0 && p < b) || (0 <= y && b < p)) && ((p = b), (m = !0)), + (c = gm.getPointOnEllipticalArc( + u.points[0], + u.points[1], + u.points[2], + u.points[3], + p, + u.points[6], + )) + break + case 'C': + 0 === p + ? (p = i > u.pathLength ? 1e-8 : i / u.pathLength) + : l < i + ? (p += (i - l) / u.pathLength / 2) + : (p = Math.max(p - (l - i) / u.pathLength / 2, 0)), + 1 < p && ((p = 1), (m = !0)), + (c = gm.getPointOnCubicBezier( + p, + u.start.x, + u.start.y, + u.points[0], + u.points[1], + u.points[2], + u.points[3], + u.points[4], + u.points[5], + )) + break + case 'Q': + 0 === p + ? (p = i / u.pathLength) + : l < i + ? (p += (i - l) / u.pathLength) + : (p -= (l - i) / u.pathLength), + 1 < p && ((p = 1), (m = !0)), + (c = gm.getPointOnQuadraticBezier( + p, + u.start.x, + u.start.y, + u.points[0], + u.points[1], + u.points[2], + u.points[3], + )) + } + void 0 !== c && (l = gm.getLineLength(s.x, s.y, c.x, c.y)), + m && ((m = !1), (u = void 0)) + } + }, + v = t / (e._getTextSize('C').width + n) - 1, + y = 0; + y < v && (m('C'), void 0 !== s && void 0 !== c); + y++ + ) + s = c + for (var b = 0; b < d.length && (m(d[b]), void 0 !== s && void 0 !== c); b++) { + var w = gm.getLineLength(s.x, s.y, c.x, c.y), + C = 0 + if (i) + try { + C = i(d[b - 1], d[b]) * this.fontSize() + } catch (x) { + C = 0 + } + ;(s.x += C), + (c.x += C), + (this.textWidth += C), + (C = gm.getPointOnLine(C + w / 2, s.x, s.y, c.x, c.y)), + (w = Math.atan2(c.y - s.y, c.x - s.x)), + this.glyphInfo.push({ + transposeX: C.x, + transposeY: C.y, + text: d[b], + rotation: w, + p0: s, + p1: c, + }), + (s = c) + } + } + + getSelfRect() { + if (!this.glyphInfo.length) return {x: 0, y: 0, width: 0, height: 0} + for ( + var e, + t, + n = [], + r = + (this.glyphInfo.forEach(function (e) { + n.push(e.p0.x), n.push(e.p0.y), n.push(e.p1.x), n.push(e.p1.y) + }), + n[0] || 0), + i = n[0] || 0, + o = n[1] || 0, + a = n[1] || 0, + l = 0; + l < n.length / 2; + l++ + ) + (e = n[2 * l]), + (t = n[2 * l + 1]), + (r = Math.min(r, e)), + (i = Math.max(i, e)), + (o = Math.min(o, t)), + (a = Math.max(a, t)) + var s = this.fontSize() + return { + x: r - s / 2, + y: o - s / 2, + width: i - r + s, + height: a - o + s, + } + } + } + ;(Wm.prototype._fillFunc = Bm), + (Wm.prototype._strokeFunc = Vm), + (Wm.prototype._fillFuncHit = Bm), + (Wm.prototype._strokeFuncHit = Vm), + (Wm.prototype.className = 'TextPath'), + (Wm.prototype._attrsAffectingSize = ['text', 'fontSize', 'data']), + bp(Wm), + tg.addGetterSetter(Wm, 'data'), + tg.addGetterSetter(Wm, 'fontFamily', 'Arial'), + tg.addGetterSetter(Wm, 'fontSize', 12, Xp()), + tg.addGetterSetter(Wm, 'fontStyle', 'normal'), + tg.addGetterSetter(Wm, 'align', 'left'), + tg.addGetterSetter(Wm, 'letterSpacing', 0, Xp()), + tg.addGetterSetter(Wm, 'textBaseline', 'middle'), + tg.addGetterSetter(Wm, 'fontVariant', 'normal'), + tg.addGetterSetter(Wm, 'text', ''), + tg.addGetterSetter(Wm, 'textDecoration', null), + tg.addGetterSetter(Wm, 'kerningFunc', null) + var Gm = 'tr-konva', + Zm = [ + 'resizeEnabledChange', + 'rotateAnchorOffsetChange', + 'rotateEnabledChange', + 'enabledAnchorsChange', + 'anchorSizeChange', + 'borderEnabledChange', + 'borderStrokeChange', + 'borderStrokeWidthChange', + 'borderDashChange', + 'anchorStrokeChange', + 'anchorStrokeWidthChange', + 'anchorFillChange', + 'anchorCornerRadiusChange', + 'ignoreStrokeChange', + ] + .map((e) => e + '.' + Gm) + .join(' '), + Um = 'nodesRect', + Xm = [ + 'widthChange', + 'heightChange', + 'scaleXChange', + 'scaleYChange', + 'skewXChange', + 'skewYChange', + 'rotationChange', + 'offsetXChange', + 'offsetYChange', + 'transformsEnabledChange', + 'strokeWidthChange', + ], + Ym = { + 'top-left': -45, + 'top-center': 0, + 'top-right': 45, + 'middle-right': -90, + 'middle-left': 90, + 'bottom-left': -135, + 'bottom-center': 180, + 'bottom-right': 135, + } + const qm = 'ontouchstart' in Dp._global + var $m = [ + 'top-left', + 'top-center', + 'top-right', + 'middle-right', + 'middle-left', + 'bottom-left', + 'bottom-center', + 'bottom-right', + ] + + function Km(e, t, n) { + var r = n.x + (e.x - n.x) * Math.cos(t) - (e.y - n.y) * Math.sin(t) + n = n.y + (e.x - n.x) * Math.sin(t) + (e.y - n.y) * Math.cos(t) + return Object.assign(Object.assign({}, e), { + rotation: e.rotation + t, + x: r, + y: n, + }) + } + + class Qm extends tm { + constructor(e) { + super(e), + (this._transforming = !1), + this._createElements(), + (this._handleMouseMove = this._handleMouseMove.bind(this)), + (this._handleMouseUp = this._handleMouseUp.bind(this)), + (this.update = this.update.bind(this)), + this.on(Zm, this.update), + this.getNode() && this.update() + } + + attachTo(e) { + return this.setNode(e), this + } + + setNode(e) { + return ( + Gp.warn( + 'tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead.', + ), + this.setNodes([e]) + ) + } + + getNode() { + return this._nodes && this._nodes[0] + } + + _getEventNamespace() { + return Gm + this._id + } + + setNodes(e = []) { + return ( + this._nodes && this._nodes.length && this.detach(), + 1 === (this._nodes = e).length && this.useSingleNodeRotation() + ? this.rotation(e[0].getAbsoluteRotation()) + : this.rotation(0), + this._nodes.forEach((e) => { + var t = () => { + 1 === this.nodes().length && + this.useSingleNodeRotation() && + this.rotation(this.nodes()[0].getAbsoluteRotation()), + this._resetTransformCache(), + this._transforming || this.isDragging() || this.update() + }, + n = e._attrsAffectingSize + .map((e) => e + 'Change.' + this._getEventNamespace()) + .join(' ') + e.on(n, t), + e.on(Xm.map((e) => e + '.' + this._getEventNamespace()).join(' '), t), + e.on('absoluteTransformChange.' + this._getEventNamespace(), t), + this._proxyDrag(e) + }), + this._resetTransformCache(), + !this.findOne('.top-left') || this.update(), + this + ) + } + + _proxyDrag(e) { + let t + e.on('dragstart.' + this._getEventNamespace(), (n) => { + ;(t = e.getAbsolutePosition()), + this.isDragging() || e === this.findOne('.back') || this.startDrag(n, !1) + }), + e.on('dragmove.' + this._getEventNamespace(), (n) => { + if (t) { + var r = e.getAbsolutePosition() + const i = r.x - t.x, + o = r.y - t.y + this.nodes().forEach((t) => { + var r + t === e || + t.isDragging() || + ((r = t.getAbsolutePosition()), + t.setAbsolutePosition({x: r.x + i, y: r.y + o}), + t.startDrag(n)) + }), + (t = null) + } + }) + } + + getNodes() { + return this._nodes || [] + } + + getActiveAnchor() { + return this._movingAnchorName + } + + detach() { + this._nodes && + this._nodes.forEach((e) => { + e.off('.' + this._getEventNamespace()) + }), + (this._nodes = []), + this._resetTransformCache() + } + + _resetTransformCache() { + this._clearCache(Um), + this._clearCache('transform'), + this._clearSelfAndDescendantCache('absoluteTransform') + } + + _getNodeRect() { + return this._getCache(Um, this.__getNodeRect) + } + + __getNodeShape(e, t = this.rotation(), n) { + var r = e.getClientRect({ + skipTransform: !0, + skipShadow: !0, + skipStroke: this.ignoreStroke(), + }), + i = e.getAbsoluteScale(n), + o = ((n = e.getAbsolutePosition(n)), r.x * i.x - e.offsetX() * i.x), + a = r.y * i.y - e.offsetY() * i.y + e = (Dp.getAngle(e.getAbsoluteRotation()) + 2 * Math.PI) % (2 * Math.PI) + return Km( + { + x: n.x + o * Math.cos(e) + a * Math.sin(-e), + y: n.y + a * Math.cos(e) + o * Math.sin(e), + width: r.width * i.x, + height: r.height * i.y, + rotation: e, + }, + -Dp.getAngle(t), + {x: 0, y: 0}, + ) + } + + __getNodeRect() { + var e, t, n, r + if (!this.getNode()) return {x: -1e8, y: -1e8, width: 0, height: 0, rotation: 0} + const i = [], + o = + (this.nodes().map((e) => { + var t = [ + { + x: (t = e.getClientRect({ + skipTransform: !0, + skipShadow: !0, + skipStroke: this.ignoreStroke(), + })).x, + y: t.y, + }, + {x: t.x + t.width, y: t.y}, + {x: t.x + t.width, y: t.y + t.height}, + {x: t.x, y: t.y + t.height}, + ], + n = e.getAbsoluteTransform() + t.forEach(function (e) { + ;(e = n.point(e)), i.push(e) + }) + }), + new Ap()) + o.rotate(-Dp.getAngle(this.rotation())), + i.forEach(function (i) { + ;(i = o.point(i)), + void 0 === e && ((e = n = i.x), (t = r = i.y)), + (e = Math.min(e, i.x)), + (t = Math.min(t, i.y)), + (n = Math.max(n, i.x)), + (r = Math.max(r, i.y)) + }), + o.invert() + var a = o.point({x: e, y: t}) + return { + x: a.x, + y: a.y, + width: n - e, + height: r - t, + rotation: Dp.getAngle(this.rotation()), + } + } + + getX() { + return this._getNodeRect().x + } + + getY() { + return this._getNodeRect().y + } + + getWidth() { + return this._getNodeRect().width + } + + getHeight() { + return this._getNodeRect().height + } + + _createElements() { + this._createBack(), + $m.forEach( + function (e) { + this._createAnchor(e) + }.bind(this), + ), + this._createAnchor('rotater') + } + + _createAnchor(e) { + var t = new Pm({ + stroke: 'rgb(0, 161, 255)', + fill: 'white', + strokeWidth: 1, + name: e + ' _anchor', + dragDistance: 0, + draggable: !0, + hitStrokeWidth: qm ? 10 : 'auto', + }), + n = this + t.on('mousedown touchstart', function (e) { + n._handleMouseDown(e) + }), + t.on('dragstart', (e) => { + t.stopDrag(), (e.cancelBubble = !0) + }), + t.on('dragend', (e) => { + e.cancelBubble = !0 + }), + t.on('mouseenter', () => { + var n, + r = + ((r = r = Dp.getAngle(this.rotation())), + 'rotater' === (n = e) + ? 'crosshair' + : ((r += Gp.degToRad(Ym[n] || 0)), + (n = ((Gp.radToDeg(r) % 360) + 360) % 360), + Gp._inRange(n, 337.5, 360) || Gp._inRange(n, 0, 22.5) + ? 'ns-resize' + : Gp._inRange(n, 22.5, 67.5) + ? 'nesw-resize' + : Gp._inRange(n, 67.5, 112.5) + ? 'ew-resize' + : Gp._inRange(n, 112.5, 157.5) + ? 'nwse-resize' + : Gp._inRange(n, 157.5, 202.5) + ? 'ns-resize' + : Gp._inRange(n, 202.5, 247.5) + ? 'nesw-resize' + : Gp._inRange(n, 247.5, 292.5) + ? 'ew-resize' + : Gp._inRange(n, 292.5, 337.5) + ? 'nwse-resize' + : (Gp.error( + 'Transformer has unknown angle for cursor detection: ' + n, + ), + 'pointer'))) + t.getStage().content && (t.getStage().content.style.cursor = r), (this._cursorChange = !0) + }), + t.on('mouseout', () => { + t.getStage().content && (t.getStage().content.style.cursor = ''), + (this._cursorChange = !1) + }), + this.add(t) + } + + _createBack() { + var e = new $g({ + name: 'back', + width: 0, + height: 0, + draggable: !0, + sceneFunc(e) { + var t = this.getParent(), + n = t.padding() + e.beginPath(), + e.rect(-n, -n, this.width() + 2 * n, this.height() + 2 * n), + e.moveTo(this.width() / 2, -n), + t.rotateEnabled() && + e.lineTo(this.width() / 2, -t.rotateAnchorOffset() * Gp._sign(this.height()) - n), + e.fillStrokeShape(this) + }, + hitFunc: (e, t) => { + var n + this.shouldOverdrawWholeArea() && + ((n = this.padding()), + e.beginPath(), + e.rect(-n, -n, t.width() + 2 * n, t.height() + 2 * n), + e.fillStrokeShape(t)) + }, + }) + this.add(e), + this._proxyDrag(e), + e.on('dragstart', (e) => { + e.cancelBubble = !0 + }), + e.on('dragmove', (e) => { + e.cancelBubble = !0 + }), + e.on('dragend', (e) => { + e.cancelBubble = !0 + }), + this.on('dragmove', (e) => { + this.update() + }) + } + + _handleMouseDown(e) { + this._movingAnchorName = e.target.name().split(' ')[0] + var t = (n = this._getNodeRect()).width, + n = n.height, + r = Math.sqrt(Math.pow(t, 2) + Math.pow(n, 2)) + ;(this.sin = Math.abs(n / r)), + (this.cos = Math.abs(t / r)), + 'undefined' != typeof window && + (window.addEventListener('mousemove', this._handleMouseMove), + window.addEventListener('touchmove', this._handleMouseMove), + window.addEventListener('mouseup', this._handleMouseUp, !0), + window.addEventListener('touchend', this._handleMouseUp, !0)), + (this._transforming = !0), + (n = e.target.getAbsolutePosition()), + (t = e.target.getStage().getPointerPosition()) + ;(this._anchorDragOffset = {x: t.x - n.x, y: t.y - n.y}), + this._fire('transformstart', {evt: e, target: this.getNode()}), + this._nodes.forEach((t) => { + t._fire('transformstart', {evt: e, target: t}) + }) + } + + _handleMouseMove(e) { + var t = this.findOne('.' + this._movingAnchorName) + let n = { + x: + (r = ((r = t.getStage()).setPointersPositions(e), r.getPointerPosition())).x - + this._anchorDragOffset.x, + y: r.y - this._anchorDragOffset.y, + } + var r = t.getAbsolutePosition(), + i = + (this.anchorDragBoundFunc() && (n = this.anchorDragBoundFunc()(r, n, e)), + t.setAbsolutePosition(n), + t.getAbsolutePosition()) + if (r.x !== i.x || r.y !== i.y) + if ('rotater' === this._movingAnchorName) { + r = this._getNodeRect() + var o = t.x() - r.width / 2, + a = -t.y() + r.height / 2 + let n = Math.atan2(-a, o) + Math.PI / 2 + r.height < 0 && (n -= Math.PI) + i = Dp.getAngle(this.rotation()) + n + var l = Dp.getAngle(this.rotationSnapTolerance()) + i = (function (e, t) { + var n = { + x: + (n = e).x + + (n.width / 2) * Math.cos(n.rotation) + + (n.height / 2) * Math.sin(-n.rotation), + y: n.y + (n.height / 2) * Math.cos(n.rotation) + (n.width / 2) * Math.sin(n.rotation), + } + return Km(e, t, n) + })( + r, + (function (e, t, n) { + let r = t + for (let a = 0; a < e.length; a++) { + var i = Dp.getAngle(e[a]), + o = Math.abs(i - t) % (2 * Math.PI) + Math.min(o, 2 * Math.PI - o) < n && (r = i) + } + return r + })(this.rotationSnaps(), i, l) - r.rotation, + ) + this._fitNodesInto(i, e) + } else { + ;(l = this.keepRatio() || e.shiftKey), + (r = this.centeredScaling() || e.altKey), + 'top-left' === this._movingAnchorName + ? l && + ((f = r + ? {x: this.width() / 2, y: this.height() / 2} + : { + x: this.findOne('.bottom-right').x(), + y: this.findOne('.bottom-right').y(), + }), + (u = Math.sqrt(Math.pow(f.x - t.x(), 2) + Math.pow(f.y - t.y(), 2))), + (c = this.findOne('.top-left').x() > f.x ? -1 : 1), + (d = this.findOne('.top-left').y() > f.y ? -1 : 1), + (o = u * this.cos * c), + (a = u * this.sin * d), + this.findOne('.top-left').x(f.x - o), + this.findOne('.top-left').y(f.y - a)) + : 'top-center' === this._movingAnchorName + ? this.findOne('.top-left').y(t.y()) + : 'top-right' === this._movingAnchorName + ? (l && + ((f = r + ? {x: this.width() / 2, y: this.height() / 2} + : { + x: this.findOne('.bottom-left').x(), + y: this.findOne('.bottom-left').y(), + }), + (u = Math.sqrt(Math.pow(t.x() - f.x, 2) + Math.pow(f.y - t.y(), 2))), + (c = this.findOne('.top-right').x() < f.x ? -1 : 1), + (d = this.findOne('.top-right').y() > f.y ? -1 : 1), + (o = u * this.cos * c), + (a = u * this.sin * d), + this.findOne('.top-right').x(f.x + o), + this.findOne('.top-right').y(f.y - a)), + (s = t.position()), + this.findOne('.top-left').y(s.y), + this.findOne('.bottom-right').x(s.x)) + : 'middle-left' === this._movingAnchorName + ? this.findOne('.top-left').x(t.x()) + : 'middle-right' === this._movingAnchorName + ? this.findOne('.bottom-right').x(t.x()) + : 'bottom-left' === this._movingAnchorName + ? (l && + ((f = r + ? {x: this.width() / 2, y: this.height() / 2} + : { + x: this.findOne('.top-right').x(), + y: this.findOne('.top-right').y(), + }), + (u = Math.sqrt(Math.pow(f.x - t.x(), 2) + Math.pow(t.y() - f.y, 2))), + (c = f.x < t.x() ? -1 : 1), + (d = t.y() < f.y ? -1 : 1), + (o = u * this.cos * c), + (a = u * this.sin * d), + t.x(f.x - o), + t.y(f.y + a)), + (s = t.position()), + this.findOne('.top-left').x(s.x), + this.findOne('.bottom-right').y(s.y)) + : 'bottom-center' === this._movingAnchorName + ? this.findOne('.bottom-right').y(t.y()) + : 'bottom-right' === this._movingAnchorName + ? l && + ((f = r + ? {x: this.width() / 2, y: this.height() / 2} + : { + x: this.findOne('.top-left').x(), + y: this.findOne('.top-left').y(), + }), + (u = Math.sqrt(Math.pow(t.x() - f.x, 2) + Math.pow(t.y() - f.y, 2))), + (c = this.findOne('.bottom-right').x() < f.x ? -1 : 1), + (d = this.findOne('.bottom-right').y() < f.y ? -1 : 1), + (o = u * this.cos * c), + (a = u * this.sin * d), + this.findOne('.bottom-right').x(f.x + o), + this.findOne('.bottom-right').y(f.y + a)) + : console.error( + new Error( + 'Wrong position argument of selection resizer: ' + + this._movingAnchorName, + ), + ), + (r = this.centeredScaling() || e.altKey) && + ((i = this.findOne('.top-left')), + (s = this.findOne('.bottom-right')), + (l = i.x()), + (t = i.y()), + (c = this.getWidth() - s.x()), + (u = this.getHeight() - s.y()), + s.move({x: -l, y: -t}), + i.move({x: c, y: u})) + var s, + c, + u, + d = this.findOne('.top-left').getAbsolutePosition(), + f = + ((o = d.x), + (a = d.y), + this.findOne('.bottom-right').x() - this.findOne('.top-left').x()) + r = this.findOne('.bottom-right').y() - this.findOne('.top-left').y() + this._fitNodesInto( + { + x: o, + y: a, + width: f, + height: r, + rotation: Dp.getAngle(this.rotation()), + }, + e, + ) + } + } + + _handleMouseUp(e) { + this._removeEvents(e) + } + + getAbsoluteTransform() { + return this.getTransform() + } + + _removeEvents(e) { + var t + this._transforming && + ((this._transforming = !1), + 'undefined' != typeof window && + (window.removeEventListener('mousemove', this._handleMouseMove), + window.removeEventListener('touchmove', this._handleMouseMove), + window.removeEventListener('mouseup', this._handleMouseUp, !0), + window.removeEventListener('touchend', this._handleMouseUp, !0)), + (t = this.getNode()), + this._fire('transformend', {evt: e, target: t}), + t && + this._nodes.forEach((t) => { + t._fire('transformend', {evt: e, target: t}) + }), + (this._movingAnchorName = null)) + } + + _fitNodesInto(e, t) { + var n = this._getNodeRect() + if (Gp._inRange(e.width, 2 * -this.padding() - 1, 1)) this.update() + else if (Gp._inRange(e.height, 2 * -this.padding() - 1, 1)) this.update() + else { + var r = this.flipEnabled(), + i = new Ap() + if ( + (i.rotate(Dp.getAngle(this.rotation())), + this._movingAnchorName && e.width < 0 && 0 <= this._movingAnchorName.indexOf('left')) + ) { + var o = i.point({x: 2 * -this.padding(), y: 0}) + if ( + ((e.x += o.x), + (e.y += o.y), + (e.width += 2 * this.padding()), + (this._movingAnchorName = this._movingAnchorName.replace('left', 'right')), + (this._anchorDragOffset.x -= o.x), + (this._anchorDragOffset.y -= o.y), + !r) + ) + return void this.update() + } else if ( + this._movingAnchorName && + e.width < 0 && + 0 <= this._movingAnchorName.indexOf('right') && + ((o = i.point({x: 2 * this.padding(), y: 0})), + (this._movingAnchorName = this._movingAnchorName.replace('right', 'left')), + (this._anchorDragOffset.x -= o.x), + (this._anchorDragOffset.y -= o.y), + (e.width += 2 * this.padding()), + !r) + ) + return void this.update() + if (this._movingAnchorName && e.height < 0 && 0 <= this._movingAnchorName.indexOf('top')) { + if ( + ((o = i.point({x: 0, y: 2 * -this.padding()})), + (e.x += o.x), + (e.y += o.y), + (this._movingAnchorName = this._movingAnchorName.replace('top', 'bottom')), + (this._anchorDragOffset.x -= o.x), + (this._anchorDragOffset.y -= o.y), + (e.height += 2 * this.padding()), + !r) + ) + return void this.update() + } else if ( + this._movingAnchorName && + e.height < 0 && + 0 <= this._movingAnchorName.indexOf('bottom') && + ((o = i.point({x: 0, y: 2 * this.padding()})), + (this._movingAnchorName = this._movingAnchorName.replace('bottom', 'top')), + (this._anchorDragOffset.x -= o.x), + (this._anchorDragOffset.y -= o.y), + (e.height += 2 * this.padding()), + !r) + ) + return void this.update() + this.boundBoxFunc() && + ((i = this.boundBoxFunc()(n, e)) + ? (e = i) + : Gp.warn('boundBoxFunc returned falsy. You should return new bound rect from it!')) + const a = new Ap(), + l = + (a.translate(n.x, n.y), + a.rotate(n.rotation), + a.scale(n.width / 1e7, n.height / 1e7), + new Ap()), + s = + (l.translate(e.x, e.y), + l.rotate(e.rotation), + l.scale(e.width / 1e7, e.height / 1e7), + l.multiply(a.invert())) + this._nodes.forEach((e) => { + const n = e.getParent().getAbsoluteTransform(), + r = e.getTransform().copy(), + i = (r.translate(e.offsetX(), e.offsetY()), new Ap()) + i.multiply(n.copy().invert()).multiply(s).multiply(n).multiply(r) + var o = i.decompose() + e.setAttrs(o), + this._fire('transform', {evt: t, target: e}), + e._fire('transform', {evt: t, target: e}), + null != (o = e.getLayer()) && o.batchDraw() + }), + this.rotation(Gp._getRotation(e.rotation)), + this._resetTransformCache(), + this.update(), + this.getLayer().batchDraw() + } + } + + forceUpdate() { + this._resetTransformCache(), this.update() + } + + _batchChangeChild(e, t) { + this.findOne(e).setAttrs(t) + } + + update() { + var e = this._getNodeRect(), + t = (this.rotation(Gp._getRotation(e.rotation)), e.width), + n = ((e = e.height), this.enabledAnchors()), + r = this.resizeEnabled(), + i = this.padding(), + o = this.anchorSize() + this.find('._anchor').forEach((e) => { + e.setAttrs({ + width: o, + height: o, + offsetX: o / 2, + offsetY: o / 2, + stroke: this.anchorStroke(), + strokeWidth: this.anchorStrokeWidth(), + fill: this.anchorFill(), + cornerRadius: this.anchorCornerRadius(), + }) + }), + this._batchChangeChild('.top-left', { + x: 0, + y: 0, + offsetX: o / 2 + i, + offsetY: o / 2 + i, + visible: r && 0 <= n.indexOf('top-left'), + }), + this._batchChangeChild('.top-center', { + x: t / 2, + y: 0, + offsetY: o / 2 + i, + visible: r && 0 <= n.indexOf('top-center'), + }), + this._batchChangeChild('.top-right', { + x: t, + y: 0, + offsetX: o / 2 - i, + offsetY: o / 2 + i, + visible: r && 0 <= n.indexOf('top-right'), + }), + this._batchChangeChild('.middle-left', { + x: 0, + y: e / 2, + offsetX: o / 2 + i, + visible: r && 0 <= n.indexOf('middle-left'), + }), + this._batchChangeChild('.middle-right', { + x: t, + y: e / 2, + offsetX: o / 2 - i, + visible: r && 0 <= n.indexOf('middle-right'), + }), + this._batchChangeChild('.bottom-left', { + x: 0, + y: e, + offsetX: o / 2 + i, + offsetY: o / 2 - i, + visible: r && 0 <= n.indexOf('bottom-left'), + }), + this._batchChangeChild('.bottom-center', { + x: t / 2, + y: e, + offsetY: o / 2 - i, + visible: r && 0 <= n.indexOf('bottom-center'), + }), + this._batchChangeChild('.bottom-right', { + x: t, + y: e, + offsetX: o / 2 - i, + offsetY: o / 2 - i, + visible: r && 0 <= n.indexOf('bottom-right'), + }), + this._batchChangeChild('.rotater', { + x: t / 2, + y: -this.rotateAnchorOffset() * Gp._sign(e) - i, + visible: this.rotateEnabled(), + }), + this._batchChangeChild('.back', { + width: t, + height: e, + visible: this.borderEnabled(), + stroke: this.borderStroke(), + strokeWidth: this.borderStrokeWidth(), + dash: this.borderDash(), + x: 0, + y: 0, + }), + null != (r = this.getLayer()) && r.batchDraw() + } + + isTransforming() { + return this._transforming + } + + stopTransform() { + var e + this._transforming && + (this._removeEvents(), (e = this.findOne('.' + this._movingAnchorName)) && e.stopDrag()) + } + + destroy() { + return ( + this.getStage() && + this._cursorChange && + this.getStage().content && + (this.getStage().content.style.cursor = ''), + tm.prototype.destroy.call(this), + this.detach(), + this._removeEvents(), + this + ) + } + + toObject() { + return xg.prototype.toObject.call(this) + } + } + ;(Qm.prototype.className = 'Transformer'), + bp(Qm), + tg.addGetterSetter(Qm, 'enabledAnchors', $m, function (e) { + return ( + e instanceof Array || Gp.warn('enabledAnchors value should be an array'), + e instanceof Array && + e.forEach(function (e) { + ;-1 === $m.indexOf(e) && + Gp.warn('Unknown anchor name: ' + e + '. Available names are: ' + $m.join(', ')) + }), + e || [] + ) + }), + tg.addGetterSetter(Qm, 'flipEnabled', !0, Qp()), + tg.addGetterSetter(Qm, 'resizeEnabled', !0), + tg.addGetterSetter(Qm, 'anchorSize', 10, Xp()), + tg.addGetterSetter(Qm, 'rotateEnabled', !0), + tg.addGetterSetter(Qm, 'rotationSnaps', []), + tg.addGetterSetter(Qm, 'rotateAnchorOffset', 50, Xp()), + tg.addGetterSetter(Qm, 'rotationSnapTolerance', 5, Xp()), + tg.addGetterSetter(Qm, 'borderEnabled', !0), + tg.addGetterSetter(Qm, 'anchorStroke', 'rgb(0, 161, 255)'), + tg.addGetterSetter(Qm, 'anchorStrokeWidth', 1, Xp()), + tg.addGetterSetter(Qm, 'anchorFill', 'white'), + tg.addGetterSetter(Qm, 'anchorCornerRadius', 0, Xp()), + tg.addGetterSetter(Qm, 'borderStroke', 'rgb(0, 161, 255)'), + tg.addGetterSetter(Qm, 'borderStrokeWidth', 1, Xp()), + tg.addGetterSetter(Qm, 'borderDash'), + tg.addGetterSetter(Qm, 'keepRatio', !0), + tg.addGetterSetter(Qm, 'centeredScaling', !1), + tg.addGetterSetter(Qm, 'ignoreStroke', !1), + tg.addGetterSetter(Qm, 'padding', 0, Xp()), + tg.addGetterSetter(Qm, 'node'), + tg.addGetterSetter(Qm, 'nodes'), + tg.addGetterSetter(Qm, 'boundBoxFunc'), + tg.addGetterSetter(Qm, 'anchorDragBoundFunc'), + tg.addGetterSetter(Qm, 'shouldOverdrawWholeArea', !1), + tg.addGetterSetter(Qm, 'useSingleNodeRotation', !0), + tg.backCompat(Qm, { + lineEnabled: 'borderEnabled', + rotateHandlerOffset: 'rotateAnchorOffset', + enabledHandlers: 'enabledAnchors', + }) + + class Jm extends $g { + _sceneFunc(e) { + e.beginPath(), + e.arc(0, 0, this.radius(), 0, Dp.getAngle(this.angle()), this.clockwise()), + e.lineTo(0, 0), + e.closePath(), + e.fillStrokeShape(this) + } + + getWidth() { + return 2 * this.radius() + } + + getHeight() { + return 2 * this.radius() + } + + setWidth(e) { + this.radius(e / 2) + } + + setHeight(e) { + this.radius(e / 2) + } + } + + function ev() { + ;(this.r = 0), (this.g = 0), (this.b = 0), (this.a = 0), (this.next = null) + } + ;(Jm.prototype.className = 'Wedge'), + (Jm.prototype._centroid = !0), + (Jm.prototype._attrsAffectingSize = ['radius']), + bp(Jm), + tg.addGetterSetter(Jm, 'radius', 0, Xp()), + tg.addGetterSetter(Jm, 'angle', 0, Xp()), + tg.addGetterSetter(Jm, 'clockwise', !1), + tg.backCompat(Jm, { + angleDeg: 'angle', + getAngleDeg: 'getAngle', + setAngleDeg: 'setAngle', + }) + var tv = [ + 512, 512, 456, 512, 328, 456, 335, 512, 405, 328, 271, 456, 388, 335, 292, 512, 454, 405, 364, + 328, 298, 271, 496, 456, 420, 388, 360, 335, 312, 292, 273, 512, 482, 454, 428, 405, 383, 364, + 345, 328, 312, 298, 284, 271, 259, 496, 475, 456, 437, 420, 404, 388, 374, 360, 347, 335, 323, + 312, 302, 292, 282, 273, 265, 512, 497, 482, 468, 454, 441, 428, 417, 405, 394, 383, 373, 364, + 354, 345, 337, 328, 320, 312, 305, 298, 291, 284, 278, 271, 265, 259, 507, 496, 485, 475, 465, + 456, 446, 437, 428, 420, 412, 404, 396, 388, 381, 374, 367, 360, 354, 347, 341, 335, 329, 323, + 318, 312, 307, 302, 297, 292, 287, 282, 278, 273, 269, 265, 261, 512, 505, 497, 489, 482, 475, + 468, 461, 454, 447, 441, 435, 428, 422, 417, 411, 405, 399, 394, 389, 383, 378, 373, 368, 364, + 359, 354, 350, 345, 341, 337, 332, 328, 324, 320, 316, 312, 309, 305, 301, 298, 294, 291, 287, + 284, 281, 278, 274, 271, 268, 265, 262, 259, 257, 507, 501, 496, 491, 485, 480, 475, 470, 465, + 460, 456, 451, 446, 442, 437, 433, 428, 424, 420, 416, 412, 408, 404, 400, 396, 392, 388, 385, + 381, 377, 374, 370, 367, 363, 360, 357, 354, 350, 347, 344, 341, 338, 335, 332, 329, 326, 323, + 320, 318, 315, 312, 310, 307, 304, 302, 299, 297, 294, 292, 289, 287, 285, 282, 280, 278, 275, + 273, 271, 269, 267, 265, 263, 261, 259, + ], + nv = [ + 9, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, + 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, + 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, + 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, + 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, + 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, + 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, + 24, + ] + + function rv(e, t, n, r, i) { + return (i -= r), 0 == (n -= t) ? r + i / 2 : 0 == i ? r : i * ((e - t) / n) + r + } + + function iv(e, t, n) { + return ( + (n = 4 * (n * e.width + t)), + (t = []).push(e.data[n++], e.data[n++], e.data[n++], e.data[+n]), + t + ) + } + + function ov(e, t) { + return Math.sqrt(Math.pow(e[0] - t[0], 2) + Math.pow(e[1] - t[1], 2) + Math.pow(e[2] - t[2], 2)) + } + + tg.addGetterSetter(xg, 'blurRadius', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'brightness', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'contrast', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'embossStrength', 0.5, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'embossWhiteLevel', 0.5, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'embossDirection', 'top-left', null, tg.afterSetFilter), + tg.addGetterSetter(xg, 'embossBlend', !1, null, tg.afterSetFilter), + tg.addGetterSetter(xg, 'enhance', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'hue', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'saturation', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'luminance', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'hue', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'saturation', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'value', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'kaleidoscopePower', 2, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'kaleidoscopeAngle', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'threshold', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'noise', 0.2, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'pixelSize', 8, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'levels', 0.5, Xp(), tg.afterSetFilter), + tg.addGetterSetter(xg, 'red', 0, function (e) { + return (this._filterUpToDate = !1), 255 < e ? 255 : e < 0 ? 0 : Math.round(e) + }), + tg.addGetterSetter(xg, 'green', 0, function (e) { + return (this._filterUpToDate = !1), 255 < e ? 255 : e < 0 ? 0 : Math.round(e) + }), + tg.addGetterSetter(xg, 'blue', 0, Up, tg.afterSetFilter), + tg.addGetterSetter(xg, 'red', 0, function (e) { + return (this._filterUpToDate = !1), 255 < e ? 255 : e < 0 ? 0 : Math.round(e) + }), + tg.addGetterSetter(xg, 'green', 0, function (e) { + return (this._filterUpToDate = !1), 255 < e ? 255 : e < 0 ? 0 : Math.round(e) + }), + tg.addGetterSetter(xg, 'blue', 0, Up, tg.afterSetFilter), + tg.addGetterSetter(xg, 'alpha', 1, function (e) { + return (this._filterUpToDate = !1), 1 < e ? 1 : e < 0 ? 0 : e + }), + tg.addGetterSetter(xg, 'threshold', 0.5, Xp(), tg.afterSetFilter) + const av = um.Util._assign(um, { + Arc: dm, + Arrow: mm, + Circle: vm, + Ellipse: ym, + Image: bm, + Label: Sm, + Tag: km, + Line: pm, + Path: gm, + Rect: Pm, + RegularPolygon: _m, + Ring: Tm, + Sprite: jm, + Star: Im, + Text: Fm, + TextPath: Wm, + Transformer: Qm, + Wedge: Jm, + Filters: { + Blur: function (e) { + var t = Math.round(this.blurRadius()) + if (0 < t) { + for ( + var n, + r, + i, + o, + a, + l, + s, + c, + u, + d, + f, + h, + p, + g, + m, + v, + y, + b, + w, + C, + x, + E, + O, + S = t, + k = e.data, + P = e.width, + _ = e.height, + L = S + S + 1, + T = P - 1, + j = _ - 1, + I = S + 1, + M = (I * (I + 1)) / 2, + R = new ev(), + D = null, + A = R, + z = null, + N = null, + H = tv[S], + F = nv[S], + B = 1; + B < L; + B++ + ) + (A = A.next = new ev()), B === I && (D = A) + for (A.next = R, r = l = a = 0; r < _; r++) { + for ( + m = v = y = b = s = c = u = d = 0, + f = I * (w = k[a]), + h = I * (C = k[a + 1]), + p = I * (x = k[a + 2]), + g = I * (E = k[a + 3]), + s += M * w, + c += M * C, + u += M * x, + d += M * E, + A = R, + B = 0; + B < I; + B++ + ) + (A.r = w), (A.g = C), (A.b = x), (A.a = E), (A = A.next) + for (B = 1; B < I; B++) + (s += (A.r = w = k[(i = a + ((T < B ? T : B) << 2))]) * (O = I - B)), + (c += (A.g = C = k[i + 1]) * O), + (u += (A.b = x = k[i + 2]) * O), + (d += (A.a = E = k[i + 3]) * O), + (m += w), + (v += C), + (y += x), + (b += E), + (A = A.next) + for (z = R, N = D, n = 0; n < P; n++) + (k[a + 3] = E = (d * H) >> F), + 0 !== E + ? ((k[a] = ((s * H) >> F) * (E = 255 / E)), + (k[a + 1] = ((c * H) >> F) * E), + (k[a + 2] = ((u * H) >> F) * E)) + : (k[a] = k[a + 1] = k[a + 2] = 0), + (s -= f), + (c -= h), + (u -= p), + (d -= g), + (f -= z.r), + (h -= z.g), + (p -= z.b), + (g -= z.a), + (i = (l + ((i = n + S + 1) < T ? i : T)) << 2), + (s += m += z.r = k[i]), + (c += v += z.g = k[i + 1]), + (u += y += z.b = k[i + 2]), + (d += b += z.a = k[i + 3]), + (z = z.next), + (f += w = N.r), + (h += C = N.g), + (p += x = N.b), + (g += E = N.a), + (m -= w), + (v -= C), + (y -= x), + (b -= E), + (N = N.next), + (a += 4) + l += P + } + for (n = 0; n < P; n++) { + for ( + v = y = b = m = c = u = d = s = 0, + f = I * (w = k[(a = n << 2)]), + h = I * (C = k[a + 1]), + p = I * (x = k[a + 2]), + g = I * (E = k[a + 3]), + s += M * w, + c += M * C, + u += M * x, + d += M * E, + A = R, + B = 0; + B < I; + B++ + ) + (A.r = w), (A.g = C), (A.b = x), (A.a = E), (A = A.next) + for (o = P, B = 1; B <= S; B++) + (s += (A.r = w = k[(a = (o + n) << 2)]) * (O = I - B)), + (c += (A.g = C = k[a + 1]) * O), + (u += (A.b = x = k[a + 2]) * O), + (d += (A.a = E = k[a + 3]) * O), + (m += w), + (v += C), + (y += x), + (b += E), + (A = A.next), + B < j && (o += P) + for (a = n, z = R, N = D, r = 0; r < _; r++) + (k[3 + (i = a << 2)] = E = (d * H) >> F), + 0 < E + ? ((k[i] = ((s * H) >> F) * (E = 255 / E)), + (k[i + 1] = ((c * H) >> F) * E), + (k[i + 2] = ((u * H) >> F) * E)) + : (k[i] = k[i + 1] = k[i + 2] = 0), + (s -= f), + (c -= h), + (u -= p), + (d -= g), + (f -= z.r), + (h -= z.g), + (p -= z.b), + (g -= z.a), + (i = (n + ((i = r + I) < j ? i : j) * P) << 2), + (s += m += z.r = k[i]), + (c += v += z.g = k[i + 1]), + (u += y += z.b = k[i + 2]), + (d += b += z.a = k[i + 3]), + (z = z.next), + (f += w = N.r), + (h += C = N.g), + (p += x = N.b), + (g += E = N.a), + (m -= w), + (v -= C), + (y -= x), + (b -= E), + (N = N.next), + (a += P) + } + } + }, + Brighten: function (e) { + for (var t = 255 * this.brightness(), n = e.data, r = n.length, i = 0; i < r; i += 4) + (n[i] += t), (n[i + 1] += t), (n[i + 2] += t) + }, + Contrast: function (e) { + for ( + var t = Math.pow((this.contrast() + 100) / 100, 2), + n = e.data, + r = n.length, + i = 150, + o = 150, + a = 150, + l = 0; + l < r; + l += 4 + ) + (i = n[l]), + (o = n[l + 1]), + (a = n[l + 2]), + (i = 255 * (((i /= 255) - 0.5) * t + 0.5)), + (o = (o = 255 * (0.5 + (o = ((o /= 255) - 0.5) * t))) < 0 ? 0 : 255 < o ? 255 : o), + (a = (a = 255 * (0.5 + (a = ((a /= 255) - 0.5) * t))) < 0 ? 0 : 255 < a ? 255 : a), + (n[l] = i = i < 0 ? 0 : 255 < i ? 255 : i), + (n[l + 1] = o), + (n[l + 2] = a) + }, + Emboss: function (e) { + var t = 10 * this.embossStrength(), + n = 255 * this.embossWhiteLevel(), + r = this.embossDirection(), + i = this.embossBlend(), + o = 0, + a = 0, + l = e.data, + s = e.width, + c = e.height, + u = 4 * s, + d = c + switch (r) { + case 'top-left': + a = o = -1 + break + case 'top': + ;(o = -1), (a = 0) + break + case 'top-right': + ;(o = -1), (a = 1) + break + case 'right': + ;(o = 0), (a = 1) + break + case 'bottom-right': + a = o = 1 + break + case 'bottom': + ;(o = 1), (a = 0) + break + case 'bottom-left': + a = -(o = 1) + break + case 'left': + ;(o = 0), (a = -1) + break + default: + Gp.error('Unknown emboss direction: ' + r) + } + do { + var f = (d - 1) * u, + h = o, + p = (d - 1 + (h = c < d + (h = d + o < 1 ? 0 : o) ? 0 : h)) * s * 4, + g = s + do { + var m = f + 4 * (g - 1), + v = a, + y = + ((v = p + 4 * (g - 1 + (v = s < g + (v = g + a < 1 ? 0 : a) ? 0 : v))), + l[m] - l[v]), + b = l[1 + m] - l[1 + v], + w = ((v = l[2 + m] - l[2 + v]), 0 < y ? y : -y) + } while ( + (w < (0 < b ? b : -b) && (y = b), + w < (0 < v ? v : -v) && (y = v), + (y *= t), + i + ? ((b = l[m] + y), + (w = l[1 + m] + y), + (v = l[2 + m] + y), + (l[m] = 255 < b ? 255 : b < 0 ? 0 : b), + (l[1 + m] = 255 < w ? 255 : w < 0 ? 0 : w), + (l[2 + m] = 255 < v ? 255 : v < 0 ? 0 : v)) + : ((b = n - y) < 0 ? (b = 0) : 255 < b && (b = 255), + (l[m] = l[1 + m] = l[2 + m] = b)), + --g) + ) + } while (--d) + }, + Enhance: function (e) { + var t, + n, + r, + i, + o, + a, + l, + s, + c, + u = e.data, + d = u.length, + f = u[0], + h = f, + p = u[1], + g = p, + m = u[2], + v = m + if (0 !== (e = this.enhance())) { + for (n = 0; n < d; n += 4) + (t = u[n + 0]) < f ? (f = t) : h < t && (h = t), + (t = u[n + 1]) < p ? (p = t) : g < t && (g = t), + (t = u[n + 2]) < m ? (m = t) : v < t && (v = t) + for ( + h === f && ((h = 255), (f = 0)), + g === p && ((g = 255), (p = 0)), + v === m && ((v = 255), (m = 0)), + c = + 0 < e + ? ((r = h + e * (255 - h)), + (i = f - e * +f), + (o = g + e * (255 - g)), + (a = p - e * +p), + (s = v + e * (255 - v)), + m - e * +m) + : ((r = h + e * (h - (l = 0.5 * (h + f)))), + (i = f + e * (f - l)), + (o = g + e * (g - (l = 0.5 * (g + p)))), + (a = p + e * (p - l)), + (s = v + e * (v - (l = 0.5 * (v + m)))), + m + e * (m - l)), + n = 0; + n < d; + n += 4 + ) + (u[n + 0] = rv(u[n + 0], f, h, i, r)), + (u[n + 1] = rv(u[n + 1], p, g, a, o)), + (u[n + 2] = rv(u[n + 2], m, v, c, s)) + } + }, + Grayscale: function (e) { + for (var t, n = e.data, r = n.length, i = 0; i < r; i += 4) + (t = 0.34 * n[i] + 0.5 * n[i + 1] + 0.16 * n[i + 2]), + (n[i] = t), + (n[i + 1] = t), + (n[i + 2] = t) + }, + HSL: function (e) { + for ( + var t, + n, + r, + i, + o = e.data, + a = o.length, + l = ((e = Math.pow(2, this.saturation())), Math.abs(this.hue() + 360) % 360), + s = 127 * this.luminance(), + c = +e * Math.cos((l * Math.PI) / 180), + u = 0.299 + 0.701 * c + 0.167 * (e = +e * Math.sin((l * Math.PI) / 180)), + d = 0.587 - 0.587 * c + 0.33 * e, + f = 0.114 - 0.114 * c - 0.497 * e, + h = 0.299 - 0.299 * c - 0.328 * e, + p = 0.587 + 0.413 * c + 0.035 * e, + g = 0.114 - 0.114 * c + 0.293 * e, + m = 0.299 - 0.3 * c + 1.25 * e, + v = 0.587 - 0.586 * c - 1.05 * e, + y = 0.114 + 0.886 * c - 0.2 * e, + b = 0; + b < a; + b += 4 + ) + (t = o[b + 0]), + (n = o[b + 1]), + (r = o[b + 2]), + (i = o[b + 3]), + (o[b + 0] = u * t + d * n + f * r + s), + (o[b + 1] = h * t + p * n + g * r + s), + (o[b + 2] = m * t + v * n + y * r + s), + (o[b + 3] = i) + }, + HSV: function (e) { + for ( + var t, + n, + r, + i, + o = e.data, + a = o.length, + l = ((e = Math.pow(2, this.value())), Math.pow(2, this.saturation())), + s = Math.abs(this.hue() + 360) % 360, + c = e * l * Math.cos((s * Math.PI) / 180), + u = 0.299 * e + 0.701 * c + 0.167 * (l = e * l * Math.sin((s * Math.PI) / 180)), + d = 0.587 * e - 0.587 * c + 0.33 * l, + f = 0.114 * e - 0.114 * c - 0.497 * l, + h = 0.299 * e - 0.299 * c - 0.328 * l, + p = 0.587 * e + 0.413 * c + 0.035 * l, + g = 0.114 * e - 0.114 * c + 0.293 * l, + m = 0.299 * e - 0.3 * c + 1.25 * l, + v = 0.587 * e - 0.586 * c - 1.05 * l, + y = 0.114 * e + 0.886 * c - 0.2 * l, + b = 0; + b < a; + b += 4 + ) + (t = o[b + 0]), + (n = o[b + 1]), + (r = o[b + 2]), + (i = o[b + 3]), + (o[b + 0] = u * t + d * n + f * r), + (o[b + 1] = h * t + p * n + g * r), + (o[b + 2] = m * t + v * n + y * r), + (o[b + 3] = i) + }, + Invert: function (e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) + (t[r] = 255 - t[r]), (t[r + 1] = 255 - t[r + 1]), (t[r + 2] = 255 - t[r + 2]) + }, + Kaleidoscope: function (e) { + var t, + n, + r, + i, + o, + a, + l, + s, + c, + u, + d = e.width, + f = e.height, + h = Math.round(this.kaleidoscopePower()), + p = Math.round(this.kaleidoscopeAngle()), + g = Math.floor((d * (p % 360)) / 360) + if (!(h < 1)) { + for ( + var m, + v, + y, + b, + w, + C, + x, + E, + O = + (((p = Gp.createCanvasElement()).width = d), + (p.height = f), + p.getContext('2d', {willReadFrequently: true}).getImageData(0, 0, d, f)), + S = ((p = O), {polarCenterX: d / 2, polarCenterY: f / 2}), + k = (I = e).data, + P = p.data, + _ = I.width, + L = ((p = I.height), S.polarCenterX || _ / 2), + T = S.polarCenterY || p / 2, + j = _ - L, + I = p - T, + M = (M = Math.sqrt(L * L + T * T)) < (S = Math.sqrt(j * j + I * I)) ? S : M, + R = p, + D = _, + A = ((360 / D) * Math.PI) / 180, + z = 0; + z < D; + z += 1 + ) + for (x = Math.sin(z * A), E = Math.cos(z * A), C = 0; C < R; C += 1) + (j = Math.floor(L + ((M * C) / R) * E)), + (v = k[0 + (m = 4 * (Math.floor(T + ((M * C) / R) * x) * _ + j))]), + (y = k[1 + m]), + (b = k[2 + m]), + (w = k[3 + m]), + (P[0 + (m = 4 * (z + C * _))] = v), + (P[1 + m] = y), + (P[2 + m] = b), + (P[3 + m] = w) + for (var N = d / Math.pow(2, h); N <= 8;) (N *= 2), --h + var H = (N = Math.ceil(N)), + F = 0, + B = H, + V = 1 + for (d < g + N && ((F = H), (B = 0), (V = -1)), n = 0; n < f; n += 1) + for (t = F; t !== B; t += V) + (r = Math.round(t + g) % d), + (o = O.data[0 + (c = 4 * (d * n + r))]), + (a = O.data[c + 1]), + (l = O.data[c + 2]), + (s = O.data[c + 3]), + (O.data[0 + (u = 4 * (d * n + t))] = o), + (O.data[u + 1] = a), + (O.data[u + 2] = l), + (O.data[u + 3] = s) + for (n = 0; n < f; n += 1) + for (H = Math.floor(N), i = 0; i < h; i += 1) { + for (t = 0; t < H + 1; t += 1) + (o = O.data[0 + (c = 4 * (d * n + t))]), + (a = O.data[c + 1]), + (l = O.data[c + 2]), + (s = O.data[c + 3]), + (O.data[0 + (u = 4 * (d * n + 2 * H - t - 1))] = o), + (O.data[u + 1] = a), + (O.data[u + 2] = l), + (O.data[u + 3] = s) + H *= 2 + } + ;(S = e), (p = {polarRotation: 0}) + var W, + G, + Z, + U, + X, + Y = (I = O).data, + q = S.data, + $ = I.width, + K = I.height, + Q = p.polarCenterX || $ / 2, + J = p.polarCenterY || K / 2, + ee = $ - Q, + te = K - J, + ne = (ne = Math.sqrt(Q * Q + J * J)) < (S = Math.sqrt(ee * ee + te * te)) ? S : ne, + re = K, + ie = $, + oe = p.polarRotation || 0 + for (ee = 0; ee < $; ee += 1) + for (te = 0; te < K; te += 1) + (X = ee - Q), + (U = te - J), + (Z = (Math.sqrt(X * X + U * U) * re) / ne), + (U = ((180 * Math.atan2(U, X)) / Math.PI + 360 + oe) % 360), + (X = Math.floor((U * ie) / 360)), + (Z = Y[0 + (U = 4 * (Math.floor(Z) * $ + X))]), + (X = Y[1 + U]), + (W = Y[2 + U]), + (G = Y[3 + U]), + (q[0 + (U = 4 * (te * $ + ee))] = Z), + (q[1 + U] = X), + (q[2 + U] = W), + (q[3 + U] = G) + } + }, + Mask: function (e) { + if ( + (t = (function (e, t) { + var n = iv(e, 0, 0), + r = iv(e, e.width - 1, 0), + i = iv(e, 0, e.height - 1), + o = iv(e, e.width - 1, e.height - 1), + a = t || 10 + if (ov(n, r) < a && ov(r, o) < a && ov(o, i) < a && ov(i, n) < a) { + for ( + var l = (function (e) { + for (var t = [0, 0, 0], n = 0; n < e.length; n++) + (t[0] += e[n][0]), (t[1] += e[n][1]), (t[2] += e[n][2]) + return (t[0] /= e.length), (t[1] /= e.length), (t[2] /= e.length), t + })([r, n, o, i]), + s = [], + c = 0; + c < e.width * e.height; + c++ + ) { + var u = ov(l, [e.data[4 * c], e.data[4 * c + 1], e.data[4 * c + 2]]) + s[c] = u < a ? 0 : 255 + } + return s + } + })(e, this.threshold())) + ) + for ( + var t = (function (e, t, n) { + for ( + var r = [1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9], + i = Math.round(Math.sqrt(r.length)), + o = Math.floor(i / 2), + a = [], + l = 0; + l < n; + l++ + ) + for (var s = 0; s < t; s++) { + for (var c = l * t + s, u = 0, d = 0; d < i; d++) + for (var f = 0; f < i; f++) { + var h = l + d - o, + p = s + f - o + 0 <= h && h < n && 0 <= p && p < t && (u += e[h * t + p] * r[d * i + f]) + } + a[c] = u + } + return a + })( + (function (e, t, n) { + for ( + var r = [1, 1, 1, 1, 1, 1, 1, 1, 1], + i = Math.round(Math.sqrt(r.length)), + o = Math.floor(i / 2), + a = [], + l = 0; + l < n; + l++ + ) + for (var s = 0; s < t; s++) { + for (var c = l * t + s, u = 0, d = 0; d < i; d++) + for (var f = 0; f < i; f++) { + var h = l + d - o, + p = s + f - o + 0 <= h && h < n && 0 <= p && p < t && (u += e[h * t + p] * r[d * i + f]) + } + a[c] = 1020 <= u ? 255 : 0 + } + return a + })( + (function (e, t, n) { + for ( + var r = [1, 1, 1, 1, 0, 1, 1, 1, 1], + i = Math.round(Math.sqrt(r.length)), + o = Math.floor(i / 2), + a = [], + l = 0; + l < n; + l++ + ) + for (var s = 0; s < t; s++) { + for (var c = l * t + s, u = 0, d = 0; d < i; d++) + for (var f = 0; f < i; f++) { + var h = l + d - o, + p = s + f - o + 0 <= h && h < n && 0 <= p && p < t && (u += e[h * t + p] * r[d * i + f]) + } + a[c] = 2040 === u ? 255 : 0 + } + return a + })(t, e.width, e.height), + e.width, + e.height, + ), + e.width, + e.height, + ), + n = e, + r = t, + i = 0; + i < n.width * n.height; + i++ + ) + n.data[4 * i + 3] = r[i] + return e + }, + Noise: function (e) { + for (var t = 255 * this.noise(), n = e.data, r = n.length, i = t / 2, o = 0; o < r; o += 4) + (n[o + 0] += i - 2 * i * Math.random()), + (n[o + 1] += i - 2 * i * Math.random()), + (n[o + 2] += i - 2 * i * Math.random()) + }, + Pixelate: function (e) { + var t, + n, + r, + i, + o, + a, + l, + s, + c, + u, + d, + f, + h, + p, + g = Math.ceil(this.pixelSize()), + m = e.width, + v = e.height, + y = Math.ceil(m / g), + b = Math.ceil(v / g), + w = e.data + if (g <= 0) Gp.error('pixelSize value can not be <= 0') + else + for (f = 0; f < y; f += 1) + for (h = 0; h < b; h += 1) { + for ( + c = (s = f * g) + g, d = (u = h * g) + g, p = l = a = o = i = 0, t = s; + t < c; + t += 1 + ) + if (!(m <= t)) + for (n = u; n < d; n += 1) + v <= n || + ((i += w[0 + (r = 4 * (m * n + t))]), + (o += w[r + 1]), + (a += w[r + 2]), + (l += w[r + 3]), + (p += 1)) + for (i /= p, o /= p, a /= p, l /= p, t = s; t < c; t += 1) + if (!(m <= t)) + for (n = u; n < d; n += 1) + v <= n || + ((w[0 + (r = 4 * (m * n + t))] = i), + (w[r + 1] = o), + (w[r + 2] = a), + (w[r + 3] = l)) + } + }, + Posterize: function (e) { + for ( + var t = Math.round(254 * this.levels()) + 1, n = e.data, r = n.length, i = 255 / t, o = 0; + o < r; + o += 1 + ) + n[o] = Math.floor(n[o] / i) * i + }, + RGB: function (e) { + for ( + var t, n = e.data, r = n.length, i = this.red(), o = this.green(), a = this.blue(), l = 0; + l < r; + l += 4 + ) + (t = (0.34 * n[l] + 0.5 * n[l + 1] + 0.16 * n[l + 2]) / 255), + (n[l] = t * i), + (n[l + 1] = t * o), + (n[l + 2] = t * a), + (n[l + 3] = n[l + 3]) + }, + RGBA: function (e) { + for ( + var t, + n = e.data, + r = n.length, + i = this.red(), + o = this.green(), + a = this.blue(), + l = this.alpha(), + s = 0; + s < r; + s += 4 + ) + (n[s] = i * l + n[s] * (t = 1 - l)), + (n[s + 1] = o * l + n[s + 1] * t), + (n[s + 2] = a * l + n[s + 2] * t) + }, + Sepia: function (e) { + for (var t, n, r, i = e.data, o = i.length, a = 0; a < o; a += 4) + (t = i[a + 0]), + (n = i[a + 1]), + (r = i[a + 2]), + (i[a + 0] = Math.min(255, 0.393 * t + 0.769 * n + 0.189 * r)), + (i[a + 1] = Math.min(255, 0.349 * t + 0.686 * n + 0.168 * r)), + (i[a + 2] = Math.min(255, 0.272 * t + 0.534 * n + 0.131 * r)) + }, + Solarize: function (e) { + var t = e.data, + n = e.width, + r = 4 * n, + i = e.height + do { + var o = (i - 1) * r, + a = n + do { + var l = o + 4 * (a - 1), + s = t[l], + c = t[1 + l], + u = t[2 + l] + } while ( + (127 < s && (s = 255 - s), + 127 < c && (c = 255 - c), + 127 < u && (u = 255 - u), + (t[l] = s), + (t[1 + l] = c), + (t[2 + l] = u), + --a) + ) + } while (--i) + }, + Threshold: function (e) { + for (var t = 255 * this.threshold(), n = e.data, r = n.length, i = 0; i < r; i += 1) + n[i] = n[i] < t ? 0 : 255 + }, + }, + }) + var lv, + sv = {exports: {}}, + cv = + ((s = + (((lv = Zr = {exports: {}}).exports = function (e) { + var t = {}, + n = f, + r = l.exports, + i = ge.exports + + function o(e) { + for ( + var t = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, n = 1; + n < arguments.length; + n++ + ) + t += '&args[]=' + encodeURIComponent(arguments[n]) + return ( + 'Minified React error #' + + e + + '; visit ' + + t + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' + ) + } + + var a = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + s = 60103, + c = 60106, + u = 60107, + d = 60108, + h = 60114, + p = 60109, + g = 60110, + m = 60112, + v = 60113, + y = 60120, + b = 60115, + w = 60116, + C = 60121, + x = 60129, + E = 60130, + O = 60131, + S = + ('function' == typeof Symbol && + Symbol.for && + ((s = (Lt = Symbol.for)('react.element')), + (c = Lt('react.portal')), + (u = Lt('react.fragment')), + (d = Lt('react.strict_mode')), + (h = Lt('react.profiler')), + (p = Lt('react.provider')), + (g = Lt('react.context')), + (m = Lt('react.forward_ref')), + (v = Lt('react.suspense')), + (y = Lt('react.suspense_list')), + (b = Lt('react.memo')), + (w = Lt('react.lazy')), + (C = Lt('react.block')), + Lt('react.scope'), + (x = Lt('react.debug_trace_mode')), + (E = Lt('react.offscreen')), + (O = Lt('react.legacy_hidden'))), + 'function' == typeof Symbol && Symbol.iterator) + + function k(e) { + return null !== e && + 'object' == typeof e && + 'function' == typeof (e = (S && e[S]) || e['@@iterator']) + ? e + : null + } + + function P(e) { + if (null == e) return null + if ('function' == typeof e) return e.displayName || e.name || null + if ('string' == typeof e) return e + switch (e) { + case u: + return 'Fragment' + case c: + return 'Portal' + case h: + return 'Profiler' + case d: + return 'StrictMode' + case v: + return 'Suspense' + case y: + return 'SuspenseList' + } + if ('object' == typeof e) + switch (e.$$typeof) { + case g: + return (e.displayName || 'Context') + '.Consumer' + case p: + return (e._context.displayName || 'Context') + '.Provider' + case m: + var t = (t = e.render).displayName || t.name || '' + return e.displayName || ('' !== t ? 'ForwardRef(' + t + ')' : 'ForwardRef') + case b: + return P(e.type) + case C: + return P(e._render) + case w: + ;(t = e._payload), (e = e._init) + try { + return P(e(t)) + } catch (n) { + } + } + return null + } + + function _(e) { + var t = e, + n = e + if (e.alternate) for (; t.return;) t = t.return + else for (e = t; 0 != (1026 & (t = e).flags) && (n = t.return), (e = t.return);) ; + return 3 === t.tag ? n : null + } + + function L(e) { + if (_(e) !== e) throw Error(o(188)) + } + + function T(e) { + var t = e.alternate + if (!t) { + if (null === (t = _(e))) throw Error(o(188)) + return t !== e ? null : e + } + for (var n = e, r = t; ;) { + var i = n.return + if (null === i) break + var a = i.alternate + if (null === a) { + if (null === (r = i.return)) break + n = r + } else { + if (i.child === a.child) { + for (a = i.child; a;) { + if (a === n) return L(i), e + if (a === r) return L(i), t + a = a.sibling + } + throw Error(o(188)) + } + if (n.return !== r.return) (n = i), (r = a) + else { + for (var l = !1, s = i.child; s;) { + if (s === n) { + ;(l = !0), (n = i), (r = a) + break + } + if (s === r) { + ;(l = !0), (r = i), (n = a) + break + } + s = s.sibling + } + if (!l) { + for (s = a.child; s;) { + if (s === n) { + ;(l = !0), (n = a), (r = i) + break + } + if (s === r) { + ;(l = !0), (r = a), (n = i) + break + } + s = s.sibling + } + if (!l) throw Error(o(189)) + } + } + if (n.alternate !== r) throw Error(o(190)) + } + } + if (3 !== n.tag) throw Error(o(188)) + return n.stateNode.current === n ? e : t + } + + function j(e) { + if (!(e = T(e))) return null + for (var t = e; ;) { + if (5 === t.tag || 6 === t.tag) return t + if (t.child) t = (t.child.return = t).child + else { + if (t === e) break + for (; !t.sibling;) { + if (!t.return || t.return === e) return null + t = t.return + } + ;(t.sibling.return = t.return), (t = t.sibling) + } + } + return null + } + + function I(e, t) { + for (var n = e.alternate; null !== t;) { + if (t === e || t === n) return 1 + t = t.return + } + } + + var M, + R = e.getPublicInstance, + D = e.getRootHostContext, + A = e.getChildHostContext, + z = e.prepareForCommit, + N = e.resetAfterCommit, + H = e.createInstance, + F = e.appendInitialChild, + B = e.finalizeInitialChildren, + V = e.prepareUpdate, + W = e.shouldSetTextContent, + G = e.createTextInstance, + Z = e.scheduleTimeout, + U = e.cancelTimeout, + X = e.noTimeout, + Y = e.isPrimaryRenderer, + q = e.supportsMutation, + $ = e.supportsPersistence, + K = e.supportsHydration, + Q = e.getInstanceFromNode, + J = e.makeOpaqueHydratingObject, + ee = e.makeClientId, + te = e.beforeActiveInstanceBlur, + ne = e.afterActiveInstanceBlur, + re = e.preparePortalMount, + ie = e.supportsTestSelectors, + oe = e.findFiberRoot, + ae = e.getBoundingRect, + le = e.getTextContent, + se = e.isHiddenSubtree, + ce = e.matchAccessibilityRole, + ue = e.setFocusIfFocusable, + de = e.setupIntersectionObserver, + fe = e.appendChild, + he = e.appendChildToContainer, + pe = e.commitTextUpdate, + me = e.commitMount, + ve = e.commitUpdate, + ye = e.insertBefore, + be = e.insertInContainerBefore, + we = e.removeChild, + Ce = e.removeChildFromContainer, + xe = e.resetTextContent, + Ee = e.hideInstance, + Oe = e.hideTextInstance, + Se = e.unhideInstance, + ke = e.unhideTextInstance, + Pe = e.clearContainer, + _e = e.cloneInstance, + Le = e.createContainerChildSet, + Te = e.appendChildToContainerChildSet, + je = e.finalizeContainerChildren, + Ie = e.replaceContainerChildren, + Me = e.cloneHiddenInstance, + Re = e.cloneHiddenTextInstance, + De = e.canHydrateInstance, + Ae = e.canHydrateTextInstance, + ze = e.isSuspenseInstancePending, + Ne = e.isSuspenseInstanceFallback, + He = e.getNextHydratableSibling, + Fe = e.getFirstHydratableChild, + Be = e.hydrateInstance, + Ve = e.hydrateTextInstance, + We = e.getNextHydratableInstanceAfterSuspenseInstance, + Ge = e.commitHydratedContainer, + Ze = e.commitHydratedSuspenseInstance + + function Ue(e) { + if (void 0 === M) + try { + throw Error() + } catch (n) { + var t = n.stack.trim().match(/\n( *(at )?)/) + M = (t && t[1]) || '' + } + return '\n' + M + e + } + + var Xe = !1 + + function Ye(e, t) { + if (!e || Xe) return '' + Xe = !0 + var n = Error.prepareStackTrace + Error.prepareStackTrace = void 0 + try { + if (t) + if ( + ((t = function () { + throw Error() + }), + Object.defineProperty(t.prototype, 'props', { + set: function () { + throw Error() + }, + }), + 'object' == typeof Reflect && Reflect.construct) + ) { + try { + Reflect.construct(t, []) + } catch (s) { + var r = s + } + Reflect.construct(e, [], t) + } else { + try { + t.call() + } catch (s) { + r = s + } + e.call(t.prototype) + } + else { + try { + throw Error() + } catch (s) { + r = s + } + e() + } + } catch (s) { + if (s && r && 'string' == typeof s.stack) { + for ( + var i = s.stack.split('\n'), + o = r.stack.split('\n'), + a = i.length - 1, + l = o.length - 1; + 1 <= a && 0 <= l && i[a] !== o[l]; + ) + l-- + for (; 1 <= a && 0 <= l; a--, l--) + if (i[a] !== o[l]) { + if (1 !== a || 1 !== l) + do { + if ((a--, --l < 0 || i[a] !== o[l])) + return '\n' + i[a].replace(' at new ', ' at ') + } while (1 <= a && 0 <= l) + break + } + } + } finally { + ;(Xe = !1), (Error.prepareStackTrace = n) + } + return (e = e ? e.displayName || e.name : '') ? Ue(e) : '' + } + + var qe = [], + $e = -1 + + function Ke(e) { + return {current: e} + } + + function Qe(e) { + $e < 0 || ((e.current = qe[$e]), (qe[$e] = null), $e--) + } + + function Je(e, t) { + ;(qe[++$e] = e.current), (e.current = t) + } + + var et = {}, + tt = Ke(et), + nt = Ke(!1), + rt = et + + function it(e, t) { + var n = e.type.contextTypes + if (!n) return et + var r = e.stateNode + if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) + return r.__reactInternalMemoizedMaskedChildContext + var i, + o = {} + for (i in n) o[i] = t[i] + return ( + r && + (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t), + (e.__reactInternalMemoizedMaskedChildContext = o)), + o + ) + } + + function ot(e) { + return null != (e = e.childContextTypes) + } + + function at() { + Qe(nt), Qe(tt) + } + + function lt(e, t, n) { + if (tt.current !== et) throw Error(o(168)) + Je(tt, t), Je(nt, n) + } + + function st(e, t, r) { + var i, + a = e.stateNode + if (((e = t.childContextTypes), 'function' != typeof a.getChildContext)) return r + for (i in (a = a.getChildContext())) + if (!(i in e)) throw Error(o(108, P(t) || 'Unknown', i)) + return n({}, r, a) + } + + function ct(e) { + ;(e = ((e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext) || et), + (rt = tt.current), + Je(tt, e), + Je(nt, nt.current) + } + + function ut(e, t, n) { + var r = e.stateNode + if (!r) throw Error(o(169)) + n + ? ((e = st(e, t, rt)), + (r.__reactInternalMemoizedMergedChildContext = e), + Qe(nt), + Qe(tt), + Je(tt, e)) + : Qe(nt), + Je(nt, n) + } + + var dt = null, + ft = null, + ht = ((0, i.unstable_now)(), 0), + pt = 8 + + function gt(e) { + if (0 != (1 & e)) return (pt = 15), 1 + if (0 != (2 & e)) return (pt = 14), 2 + if (0 != (4 & e)) return (pt = 13), 4 + var t = 24 & e + return 0 !== t + ? ((pt = 12), t) + : 0 != (32 & e) + ? ((pt = 11), 32) + : 0 != (t = 192 & e) + ? ((pt = 10), t) + : 0 != (256 & e) + ? ((pt = 9), 256) + : 0 != (t = 3584 & e) + ? ((pt = 8), t) + : 0 != (4096 & e) + ? ((pt = 7), 4096) + : 0 != (t = 4186112 & e) + ? ((pt = 6), t) + : 0 != (t = 62914560 & e) + ? ((pt = 5), t) + : 67108864 & e + ? ((pt = 4), 67108864) + : 0 != (134217728 & e) + ? ((pt = 3), 134217728) + : 0 != (t = 805306368 & e) + ? ((pt = 2), t) + : 0 != (1073741824 & e) + ? ((pt = 1), 1073741824) + : ((pt = 8), e) + } + + function mt(e, t) { + var n = e.pendingLanes + if (0 === n) return (pt = 0) + var r, + i = 0, + o = 0, + a = e.expiredLanes, + l = e.suspendedLanes, + s = e.pingedLanes + if ( + (0 !== a + ? ((i = a), (o = pt = 15)) + : 0 != (a = 134217727 & n) + ? 0 != (r = a & ~l) + ? ((i = gt(r)), (o = pt)) + : 0 != (s &= a) && ((i = gt(s)), (o = pt)) + : 0 != (a = n & ~l) + ? ((i = gt(a)), (o = pt)) + : 0 !== s && ((i = gt(s)), (o = pt)), + 0 === i) + ) + return 0 + if ( + ((i = n & ((((i = 31 - xt(i)) < 0 ? 0 : 1 << i) << 1) - 1)), + 0 !== t && t !== i && 0 == (t & l)) + ) { + if ((gt(t), o <= pt)) return t + pt = o + } + if (0 !== (t = e.entangledLanes)) + for (e = e.entanglements, t &= i; 0 < t;) + (i |= e[(n = 31 - xt(t))]), (t &= ~(o = 1 << n)) + return i + } + + function vt(e) { + return 0 != (e = -1073741825 & e.pendingLanes) ? e : 1073741824 & e ? 1073741824 : 0 + } + + function yt(e, t) { + switch (e) { + case 15: + return 1 + case 14: + return 2 + case 12: + return 0 === (e = bt(24 & ~t)) ? yt(10, t) : e + case 10: + return 0 === (e = bt(192 & ~t)) ? yt(8, t) : e + case 8: + return 0 === (e = bt(3584 & ~t)) && 0 === (e = bt(4186112 & ~t)) && (e = 512), e + case 2: + return 0 === (t = bt(805306368 & ~t)) ? 268435456 : t + } + throw Error(o(358, e)) + } + + function bt(e) { + return e & -e + } + + function wt(e) { + for (var t = [], n = 0; n < 31; n++) t.push(e) + return t + } + + function Ct(e, t, n) { + e.pendingLanes |= t + var r = t - 1 + ;(e.suspendedLanes &= r), + (e.pingedLanes &= r), + ((e = e.eventTimes)[(t = 31 - xt(t))] = n) + } + + var xt = + Math.clz32 || + function (e) { + return 0 === e ? 32 : (31 - ((Et(e) / Ot) | 0)) | 0 + }, + Et = Math.log, + Ot = Math.LN2, + St = i.unstable_runWithPriority, + kt = i.unstable_scheduleCallback, + Pt = i.unstable_cancelCallback, + _t = i.unstable_shouldYield, + Lt = i.unstable_requestPaint, + Tt = i.unstable_now, + jt = i.unstable_getCurrentPriorityLevel, + It = i.unstable_ImmediatePriority, + Mt = i.unstable_UserBlockingPriority, + Rt = i.unstable_NormalPriority, + Dt = i.unstable_LowPriority, + At = i.unstable_IdlePriority, + zt = {}, + Nt = void 0 !== Lt ? Lt : function () { + }, + Ht = null, + Ft = null, + Bt = !1, + Vt = Tt(), + Wt = + Vt < 1e4 + ? Tt + : function () { + return Tt() - Vt + } + + function Gt() { + switch (jt()) { + case It: + return 99 + case Mt: + return 98 + case Rt: + return 97 + case Dt: + return 96 + case At: + return 95 + default: + throw Error(o(332)) + } + } + + function Zt(e) { + switch (e) { + case 99: + return It + case 98: + return Mt + case 97: + return Rt + case 96: + return Dt + case 95: + return At + default: + throw Error(o(332)) + } + } + + function Ut(e, t) { + return (e = Zt(e)), St(e, t) + } + + function Xt(e, t, n) { + return (e = Zt(e)), kt(e, t, n) + } + + function Yt() { + var e + null !== Ft && ((e = Ft), (Ft = null), Pt(e)), qt() + } + + function qt() { + if (!Bt && null !== Ht) { + Bt = !0 + var e = 0 + try { + var t = Ht + Ut(99, function () { + for (; e < t.length; e++) for (var n = t[e]; null !== (n = n(!0));) ; + }), + (Ht = null) + } catch (n) { + throw (null !== Ht && (Ht = Ht.slice(e + 1)), kt(It, Yt), n) + } finally { + Bt = !1 + } + } + } + + var $t = a.ReactCurrentBatchConfig, + Kt = + 'function' == typeof Object.is + ? Object.is + : function (e, t) { + return (e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t) + }, + Qt = Object.prototype.hasOwnProperty + + function Jt(e, t) { + if (Kt(e, t)) return !0 + if ('object' != typeof e || null === e || 'object' != typeof t || null === t) return !1 + var n = Object.keys(e), + r = Object.keys(t) + if (n.length !== r.length) return !1 + for (r = 0; r < n.length; r++) if (!Qt.call(t, n[r]) || !Kt(e[n[r]], t[n[r]])) return !1 + return !0 + } + + function en(e, t) { + if (e && e.defaultProps) { + for (var r in ((t = n({}, t)), (e = e.defaultProps))) void 0 === t[r] && (t[r] = e[r]) + return t + } + return t + } + + var tn = Ke(null), + nn = null, + rn = null, + on = null + + function an() { + on = rn = nn = null + } + + function ln(e, t) { + ;(e = e.type._context), + Y + ? (Je(tn, e._currentValue), (e._currentValue = t)) + : (Je(tn, e._currentValue2), (e._currentValue2 = t)) + } + + function sn(e) { + var t = tn.current + Qe(tn), (e = e.type._context), Y ? (e._currentValue = t) : (e._currentValue2 = t) + } + + function cn(e, t) { + for (; null !== e;) { + var n = e.alternate + if ((e.childLanes & t) === t) { + if (null === n || (n.childLanes & t) === t) break + n.childLanes |= t + } else (e.childLanes |= t), null !== n && (n.childLanes |= t) + e = e.return + } + } + + function un(e, t) { + ;(on = rn = null) !== (e = (nn = e).dependencies) && + null !== e.firstContext && + (0 != (e.lanes & t) && (Fr = !0), (e.firstContext = null)) + } + + function dn(e, t) { + if (on !== e && !1 !== t && 0 !== t) + if ( + (('number' == typeof t && 1073741823 !== t) || ((on = e), (t = 1073741823)), + (t = {context: e, observedBits: t, next: null}), + null === rn) + ) { + if (null === nn) throw Error(o(308)) + ; + (rn = t), + (nn.dependencies = { + lanes: 0, + firstContext: t, + responders: null, + }) + } else rn = rn.next = t + return Y ? e._currentValue : e._currentValue2 + } + + var fn = !1 + + function hn(e) { + e.updateQueue = { + baseState: e.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: {pending: null}, + effects: null, + } + } + + function pn(e, t) { + ;(e = e.updateQueue), + t.updateQueue === e && + (t.updateQueue = { + baseState: e.baseState, + firstBaseUpdate: e.firstBaseUpdate, + lastBaseUpdate: e.lastBaseUpdate, + shared: e.shared, + effects: e.effects, + }) + } + + function gn(e, t) { + return { + eventTime: e, + lane: t, + tag: 0, + payload: null, + callback: null, + next: null, + } + } + + function mn(e, t) { + var n + null !== (e = e.updateQueue) && + (null === (n = (e = e.shared).pending) + ? (t.next = t) + : ((t.next = n.next), (n.next = t)), + (e.pending = t)) + } + + function vn(e, t) { + var n = e.updateQueue, + r = e.alternate + if (null !== r && n === (r = r.updateQueue)) { + var i = null, + o = null + if (null !== (n = n.firstBaseUpdate)) { + do { + var a = { + eventTime: n.eventTime, + lane: n.lane, + tag: n.tag, + payload: n.payload, + callback: n.callback, + next: null, + } + } while ((null === o ? (i = o = a) : (o = o.next = a), null !== (n = n.next))) + null === o ? (i = o = t) : (o = o.next = t) + } else i = o = t + return ( + (n = { + baseState: r.baseState, + firstBaseUpdate: i, + lastBaseUpdate: o, + shared: r.shared, + effects: r.effects, + }), + void (e.updateQueue = n) + ) + } + null === (e = n.lastBaseUpdate) ? (n.firstBaseUpdate = t) : (e.next = t), + (n.lastBaseUpdate = t) + } + + function yn(e, t, r, i) { + var o, + a, + l, + s, + c = e.updateQueue, + u = ((fn = !1), c.firstBaseUpdate), + d = c.lastBaseUpdate + if ( + (null !== (g = c.shared.pending) && + ((c.shared.pending = null), + (a = (o = g).next), + (o.next = null) === d ? (u = a) : (d.next = a), + (d = o), + null !== (l = e.alternate) && + (s = (l = l.updateQueue).lastBaseUpdate) !== d && + (null === s ? (l.firstBaseUpdate = a) : (s.next = a), (l.lastBaseUpdate = o))), + null !== u) + ) { + for (s = c.baseState, d = 0, l = a = o = null; ;) { + g = u.lane + var f = u.eventTime + if ((i & g) === g) { + null !== l && + (l = l.next = + { + eventTime: f, + lane: 0, + tag: u.tag, + payload: u.payload, + callback: u.callback, + next: null, + }) + e: { + var h = e, + p = u, + g = t + f = r + switch (p.tag) { + case 1: + if ('function' == typeof (h = p.payload)) { + s = h.call(f, s, g) + break e + } + s = h + break e + case 3: + h.flags = (-4097 & h.flags) | 64 + case 0: + if ( + null == (g = 'function' == typeof (h = p.payload) ? h.call(f, s, g) : h) + ) + break e + s = n({}, s, g) + break e + case 2: + fn = !0 + } + } + null !== u.callback && + ((e.flags |= 32), null === (g = c.effects) ? (c.effects = [u]) : g.push(u)) + } else + (f = { + eventTime: f, + lane: g, + tag: u.tag, + payload: u.payload, + callback: u.callback, + next: null, + }), + null === l ? ((a = l = f), (o = s)) : (l = l.next = f), + (d |= g) + if (null === (u = u.next)) { + if (null === (g = c.shared.pending)) break + ; + (u = g.next), (g.next = null), (c.lastBaseUpdate = g), (c.shared.pending = null) + } + } + null === l && (o = s), + (c.baseState = o), + (c.firstBaseUpdate = a), + (c.lastBaseUpdate = l), + (eo |= d), + (e.lanes = d), + (e.memoizedState = s) + } + } + + function bn(e, t, n) { + if (((e = t.effects), (t.effects = null) !== e)) + for (t = 0; t < e.length; t++) { + var r = e[t], + i = r.callback + if (null !== i) { + if (((r.callback = null), (r = n), 'function' != typeof i)) throw Error(o(191, i)) + i.call(r) + } + } + } + + var wn = new r.Component().refs + + function Cn(e, t, r, i) { + ;(r = null == (r = r(i, (t = e.memoizedState))) ? t : n({}, t, r)), + (e.memoizedState = r), + 0 === e.lanes && (e.updateQueue.baseState = r) + } + + var xn = { + isMounted: function (e) { + return !!(e = e._reactInternals) && _(e) === e + }, + enqueueSetState: function (e, t, n) { + e = e._reactInternals + var r = So(), + i = ko(e), + o = gn(r, i) + ;(o.payload = t), null != n && (o.callback = n), mn(e, o), Po(e, i, r) + }, + enqueueReplaceState: function (e, t, n) { + e = e._reactInternals + var r = So(), + i = ko(e), + o = gn(r, i) + ;(o.tag = 1), (o.payload = t), null != n && (o.callback = n), mn(e, o), Po(e, i, r) + }, + enqueueForceUpdate: function (e, t) { + e = e._reactInternals + var n = So(), + r = ko(e), + i = gn(n, r) + ;(i.tag = 2), null != t && (i.callback = t), mn(e, i), Po(e, r, n) + }, + } + + function En(e, t, n, r, i, o, a) { + return 'function' == typeof (e = e.stateNode).shouldComponentUpdate + ? e.shouldComponentUpdate(r, o, a) + : !(t.prototype && t.prototype.isPureReactComponent && Jt(n, r) && Jt(i, o)) + } + + function On(e, t, n) { + var r = !1, + i = et, + o = t.contextType + ;(t = new t( + n, + (o = + 'object' == typeof o && null !== o + ? dn(o) + : ((i = ot(t) ? rt : tt.current), + (r = null != (r = t.contextTypes)) ? it(e, i) : et)), + )), + (e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null), + (t.updater = xn), + ((e.stateNode = t)._reactInternals = e), + r && + (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = i), + (e.__reactInternalMemoizedMaskedChildContext = o)) + } + + function Sn(e, t, n, r) { + ;(e = t.state), + 'function' == typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), + 'function' == typeof t.UNSAFE_componentWillReceiveProps && + t.UNSAFE_componentWillReceiveProps(n, r), + t.state !== e && xn.enqueueReplaceState(t, t.state, null) + } + + function kn(e, t, n, r) { + var i = e.stateNode, + o = ((i.props = n), (i.state = e.memoizedState), (i.refs = wn), hn(e), t.contextType) + 'object' == typeof o && null !== o + ? (i.context = dn(o)) + : ((o = ot(t) ? rt : tt.current), (i.context = it(e, o))), + yn(e, n, i, r), + (i.state = e.memoizedState), + 'function' == typeof (o = t.getDerivedStateFromProps) && + (Cn(e, 0, o, n), (i.state = e.memoizedState)), + 'function' == typeof t.getDerivedStateFromProps || + 'function' == typeof i.getSnapshotBeforeUpdate || + ('function' != typeof i.UNSAFE_componentWillMount && + 'function' != typeof i.componentWillMount) || + ((t = i.state), + 'function' == typeof i.componentWillMount && i.componentWillMount(), + 'function' == typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount(), + t !== i.state && xn.enqueueReplaceState(i, i.state, null), + yn(e, n, i, r), + (i.state = e.memoizedState)), + 'function' == typeof i.componentDidMount && (e.flags |= 4) + } + + var Pn = Array.isArray + + function _n(e, t, n) { + if (null !== (e = n.ref) && 'function' != typeof e && 'object' != typeof e) { + if (n._owner) { + if ((n = n._owner)) { + if (1 !== n.tag) throw Error(o(309)) + var r = n.stateNode + } + if (!r) throw Error(o(147, e)) + var i = '' + e + return null !== t && + null !== t.ref && + 'function' == typeof t.ref && + t.ref._stringRef === i + ? t.ref + : (((t = function (e) { + var t = r.refs + t === wn && (t = r.refs = {}), null === e ? delete t[i] : (t[i] = e) + })._stringRef = i), + t) + } + if ('string' != typeof e) throw Error(o(284)) + if (!n._owner) throw Error(o(290, e)) + } + return e + } + + function Ln(e, t) { + if ('textarea' !== e.type) + throw Error( + o( + 31, + '[object Object]' === Object.prototype.toString.call(t) + ? 'object with keys {' + Object.keys(t).join(', ') + '}' + : t, + ), + ) + } + + function Tn(e) { + function t(t, n) { + var r + e && + (null !== (r = t.lastEffect) + ? ((r.nextEffect = n), (t.lastEffect = n)) + : (t.firstEffect = t.lastEffect = n), + (n.nextEffect = null), + (n.flags = 8)) + } + + function n(n, r) { + if (!e) return null + for (; null !== r;) t(n, r), (r = r.sibling) + return null + } + + function r(e, t) { + for (e = new Map(); null !== t;) + null !== t.key ? e.set(t.key, t) : e.set(t.index, t), (t = t.sibling) + return e + } + + function i(e, t) { + return ((e = la(e, t)).index = 0), (e.sibling = null), e + } + + function a(t, n, r) { + return ( + (t.index = r), + e ? (null === (r = t.alternate) || (r = r.index) < n ? ((t.flags = 2), n) : r) : n + ) + } + + function l(t) { + return e && null === t.alternate && (t.flags = 2), t + } + + function d(e, t, n, r) { + return ( + null === t || 6 !== t.tag + ? ((t = da(n, e.mode, r)).return = e) + : ((t = i(t, n)).return = e), + t + ) + } + + function f(e, t, n, r) { + return ( + null !== t && t.elementType === n.type + ? ((r = i(t, n.props)).ref = _n(0, t, n)) + : ((r = sa(n.type, n.key, n.props, null, e.mode, r)).ref = _n(0, t, n)), + (r.return = e), + r + ) + } + + function h(e, t, n, r) { + return ( + null === t || + 4 !== t.tag || + t.stateNode.containerInfo !== n.containerInfo || + t.stateNode.implementation !== n.implementation + ? ((t = fa(n, e.mode, r)).return = e) + : ((t = i(t, n.children || [])).return = e), + t + ) + } + + function p(e, t, n, r, o) { + return ( + null === t || 7 !== t.tag + ? ((t = ca(n, e.mode, r, o)).return = e) + : ((t = i(t, n)).return = e), + t + ) + } + + function g(e, t, n) { + if ('string' == typeof t || 'number' == typeof t) + return ((t = da('' + t, e.mode, n)).return = e), t + if ('object' == typeof t && null !== t) { + switch (t.$$typeof) { + case s: + return ( + ((n = sa(t.type, t.key, t.props, null, e.mode, n)).ref = _n(0, null, t)), + (n.return = e), + n + ) + case c: + return ((t = fa(t, e.mode, n)).return = e), t + } + if (Pn(t) || k(t)) return ((t = ca(t, e.mode, n, null)).return = e), t + Ln(e, t) + } + return null + } + + function m(e, t, n, r) { + var i = null !== t ? t.key : null + if ('string' == typeof n || 'number' == typeof n) + return null !== i ? null : d(e, t, '' + n, r) + if ('object' == typeof n && null !== n) { + switch (n.$$typeof) { + case s: + return n.key === i + ? n.type === u + ? p(e, t, n.props.children, r, i) + : f(e, t, n, r) + : null + case c: + return n.key === i ? h(e, t, n, r) : null + } + if (Pn(n) || k(n)) return null !== i ? null : p(e, t, n, r, null) + Ln(e, n) + } + return null + } + + function v(e, t, n, r, i) { + if ('string' == typeof r || 'number' == typeof r) + return d(t, (e = e.get(n) || null), '' + r, i) + if ('object' == typeof r && null !== r) { + switch (r.$$typeof) { + case s: + return ( + (e = e.get(null === r.key ? n : r.key) || null), + r.type === u ? p(t, e, r.props.children, i, r.key) : f(t, e, r, i) + ) + case c: + return h(t, (e = e.get(null === r.key ? n : r.key) || null), r, i) + } + if (Pn(r) || k(r)) return p(t, (e = e.get(n) || null), r, i, null) + Ln(t, r) + } + return null + } + + return function (d, f, h, p) { + var y = 'object' == typeof h && null !== h && h.type === u && null === h.key, + b = 'object' == typeof (h = y ? h.props.children : h) && null !== h + if (b) + switch (h.$$typeof) { + case s: + e: { + for (b = h.key, y = f; null !== y;) { + if (y.key === b) { + switch (y.tag) { + case 7: + if (h.type !== u) break + n(d, y.sibling), ((f = i(y, h.props.children)).return = d), (d = f) + break e + default: + if (y.elementType === h.type) { + n(d, y.sibling), + ((f = i(y, h.props)).ref = _n(0, y, h)), + (f.return = d), + (d = f) + break e + } + } + n(d, y) + break + } + t(d, y), (y = y.sibling) + } + d = + h.type === u + ? (((f = ca(h.props.children, d.mode, p, h.key)).return = d), f) + : (((p = sa(h.type, h.key, h.props, null, d.mode, p)).ref = _n(0, f, h)), + (p.return = d), + p) + } + return l(d) + case c: + e: { + for (y = h.key; null !== f;) { + if (f.key === y) { + if ( + 4 === f.tag && + f.stateNode.containerInfo === h.containerInfo && + f.stateNode.implementation === h.implementation + ) { + n(d, f.sibling), ((f = i(f, h.children || [])).return = d), (d = f) + break e + } + n(d, f) + break + } + t(d, f), (f = f.sibling) + } + ;((f = fa(h, d.mode, p)).return = d), (d = f) + } + return l(d) + } + if ('string' == typeof h || 'number' == typeof h) + return ( + (h = '' + h), + ((f = + null !== f && 6 === f.tag + ? (n(d, f.sibling), i(f, h)) + : (n(d, f), da(h, d.mode, p))).return = d), + l((d = f)) + ) + if (Pn(h)) { + for ( + var w = d, C = f, x = h, E = p, O = null, S = null, _ = C, L = (C = 0), T = null; + null !== _ && L < x.length; + L++ + ) { + _.index > L ? ((T = _), (_ = null)) : (T = _.sibling) + var j = m(w, _, x[L], E) + if (null === j) { + null === _ && (_ = T) + break + } + e && _ && null === j.alternate && t(w, _), + (C = a(j, C, L)), + null === S ? (O = j) : (S.sibling = j), + (S = j), + (_ = T) + } + if (L === x.length) return n(w, _), O + if (null === _) { + for (; L < x.length; L++) + null !== (_ = g(w, x[L], E)) && + ((C = a(_, C, L)), null === S ? (O = _) : (S.sibling = _), (S = _)) + return O + } + for (_ = r(w, _); L < x.length; L++) + null !== (T = v(_, w, L, x[L], E)) && + (e && null !== T.alternate && _.delete(null === T.key ? L : T.key), + (C = a(T, C, L)), + null === S ? (O = T) : (S.sibling = T), + (S = T)) + return ( + e && + _.forEach(function (e) { + return t(w, e) + }), + O + ) + } + if (k(h)) { + var I = d, + M = f, + R = h, + D = p, + A = k(R) + if ('function' != typeof A) throw Error(o(150)) + if (null == (R = A.call(R))) throw Error(o(151)) + for ( + var z = (A = null), N = M, H = (M = 0), F = null, B = R.next(); + null !== N && !B.done; + H++, B = R.next() + ) { + N.index > H ? ((F = N), (N = null)) : (F = N.sibling) + var V = m(I, N, B.value, D) + if (null === V) { + null === N && (N = F) + break + } + e && N && null === V.alternate && t(I, N), + (M = a(V, M, H)), + null === z ? (A = V) : (z.sibling = V), + (z = V), + (N = F) + } + if (B.done) return n(I, N), A + if (null === N) { + for (; !B.done; H++, B = R.next()) + null !== (B = g(I, B.value, D)) && + ((M = a(B, M, H)), null === z ? (A = B) : (z.sibling = B), (z = B)) + return A + } + for (N = r(I, N); !B.done; H++, B = R.next()) + null !== (B = v(N, I, H, B.value, D)) && + (e && null !== B.alternate && N.delete(null === B.key ? H : B.key), + (M = a(B, M, H)), + null === z ? (A = B) : (z.sibling = B), + (z = B)) + return ( + e && + N.forEach(function (e) { + return t(I, e) + }), + A + ) + } + if ((b && Ln(d, h), void 0 === h && !y)) + switch (d.tag) { + case 1: + case 22: + case 0: + case 11: + case 15: + throw Error(o(152, P(d.type) || 'Component')) + } + return n(d, f) + } + } + + var jn = Tn(!0), + In = Tn(!1), + Mn = {}, + Rn = Ke(Mn), + Dn = Ke(Mn), + An = Ke(Mn) + + function zn(e) { + if (e === Mn) throw Error(o(174)) + return e + } + + function Nn(e, t) { + Je(An, t), Je(Dn, e), Je(Rn, Mn), (e = D(t)), Qe(Rn), Je(Rn, e) + } + + function Hn() { + Qe(Rn), Qe(Dn), Qe(An) + } + + function Fn(e) { + var t = zn(An.current), + n = zn(Rn.current) + n !== (t = A(n, e.type, t)) && (Je(Dn, e), Je(Rn, t)) + } + + function Bn(e) { + Dn.current === e && (Qe(Rn), Qe(Dn)) + } + + var Vn = Ke(0) + + function Wn(e) { + for (var t = e; null !== t;) { + if (13 === t.tag) { + var n = t.memoizedState + if (null !== n && (null === (n = n.dehydrated) || ze(n) || Ne(n))) return t + } else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) { + if (0 != (64 & t.flags)) return t + } else if (null !== t.child) { + t = (t.child.return = t).child + continue + } + if (t === e) break + for (; null === t.sibling;) { + if (null === t.return || t.return === e) return null + t = t.return + } + ;(t.sibling.return = t.return), (t = t.sibling) + } + return null + } + + var Gn = null, + Zn = null, + Un = !1 + + function Xn(e, t) { + var n = oa(5, null, null, 0) + ;(n.elementType = 'DELETED'), + (n.type = 'DELETED'), + (n.stateNode = t), + (n.return = e), + (n.flags = 8), + null !== e.lastEffect + ? ((e.lastEffect.nextEffect = n), (e.lastEffect = n)) + : (e.firstEffect = e.lastEffect = n) + } + + function Yn(e, t) { + switch (e.tag) { + case 5: + return null !== (t = De(t, e.type, e.pendingProps)) && ((e.stateNode = t), 1) + case 6: + return null !== (t = Ae(t, e.pendingProps)) && ((e.stateNode = t), 1) + default: + return + } + } + + function qn(e) { + if (Un) { + var t = Zn + if (t) { + var n = t + if (!Yn(e, t)) { + if (!(t = He(n)) || !Yn(e, t)) + return (e.flags = (-1025 & e.flags) | 2), (Un = !1), void (Gn = e) + Xn(Gn, n) + } + ;(Gn = e), (Zn = Fe(t)) + } else (e.flags = (-1025 & e.flags) | 2), (Un = !1), (Gn = e) + } + } + + function $n(e) { + for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag;) + e = e.return + Gn = e + } + + function Kn(e) { + if (K && e === Gn) { + if (!Un) return $n(e), (Un = !0), 0 + var t = e.type + if (5 !== e.tag || ('head' !== t && 'body' !== t && !W(t, e.memoizedProps))) + for (t = Zn; t;) Xn(e, t), (t = He(t)) + if (($n(e), 13 === e.tag)) { + if (!K) throw Error(o(316)) + if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) throw Error(o(317)) + Zn = We(e) + } else Zn = Gn ? He(e.stateNode) : null + return 1 + } + } + + function Qn() { + K && ((Zn = Gn = null), (Un = !1)) + } + + var Jn = [] + + function er() { + for (var e = 0; e < Jn.length; e++) { + var t = Jn[e] + Y + ? (t._workInProgressVersionPrimary = null) + : (t._workInProgressVersionSecondary = null) + } + Jn.length = 0 + } + + var tr = a.ReactCurrentDispatcher, + nr = a.ReactCurrentBatchConfig, + rr = 0, + ir = null, + or = null, + ar = null, + lr = !1, + sr = !1 + + function cr() { + throw Error(o(321)) + } + + function ur(e, t) { + if (null !== t) { + for (var n = 0; n < t.length && n < e.length; n++) if (!Kt(e[n], t[n])) return + return 1 + } + } + + function dr(e, t, n, r, i, a) { + if ( + ((rr = a), + ((ir = t).memoizedState = null), + (t.updateQueue = null), + (t.lanes = 0), + (tr.current = null === e || null === e.memoizedState ? Ar : zr), + (e = n(r, i)), + sr) + ) { + a = 0 + do { + if (((sr = !1), !(a < 25))) throw Error(o(301)) + } while ( + ((a += 1), + (ar = or = null), + (t.updateQueue = null), + (tr.current = Nr), + (e = n(r, i)), + sr) + ) + } + if ( + ((tr.current = Dr), + (t = null !== or && null !== or.next), + (rr = 0), + (ar = or = ir = null), + (lr = !1), + t) + ) + throw Error(o(300)) + return e + } + + function fr() { + var e = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null, + } + return null === ar ? (ir.memoizedState = ar = e) : (ar = ar.next = e), ar + } + + function hr() { + e = null === or ? (null !== (e = ir.alternate) ? e.memoizedState : null) : or.next + var e, + t = null === ar ? ir.memoizedState : ar.next + if (null !== t) (ar = t), (or = e) + else { + if (null === e) throw Error(o(310)) + ; + (e = { + memoizedState: (or = e).memoizedState, + baseState: or.baseState, + baseQueue: or.baseQueue, + queue: or.queue, + next: null, + }), + null === ar ? (ir.memoizedState = ar = e) : (ar = ar.next = e) + } + return ar + } + + function pr(e, t) { + return 'function' == typeof t ? t(e) : t + } + + function gr(e) { + var t = hr(), + n = t.queue + if (null === n) throw Error(o(311)) + n.lastRenderedReducer = e + var r, + i = (l = or).baseQueue, + a = n.pending + if ( + (null !== a && + (null !== i && ((r = i.next), (i.next = a.next), (a.next = r)), + (l.baseQueue = i = a), + (n.pending = null)), + null !== i) + ) { + i = i.next + var l = l.baseState, + s = (r = a = null), + c = i + do { + var u, + d = c.lane + } while ( + ((rr & d) === d + ? (null !== s && + (s = s.next = + { + lane: 0, + action: c.action, + eagerReducer: c.eagerReducer, + eagerState: c.eagerState, + next: null, + }), + (l = c.eagerReducer === e ? c.eagerState : e(l, c.action))) + : ((u = { + lane: d, + action: c.action, + eagerReducer: c.eagerReducer, + eagerState: c.eagerState, + next: null, + }), + null === s ? ((r = s = u), (a = l)) : (s = s.next = u), + (ir.lanes |= d), + (eo |= d)), + null !== (c = c.next) && c !== i) + ) + null === s ? (a = l) : (s.next = r), + Kt(l, t.memoizedState) || (Fr = !0), + (t.memoizedState = l), + (t.baseState = a), + (t.baseQueue = s), + (n.lastRenderedState = l) + } + return [t.memoizedState, n.dispatch] + } + + function mr(e) { + var t = hr(), + n = t.queue + if (null === n) throw Error(o(311)) + n.lastRenderedReducer = e + var r = n.dispatch, + i = n.pending, + a = t.memoizedState + if (null !== i) { + n.pending = null + for (var l = (i = i.next); (a = e(a, l.action)), (l = l.next) !== i;) ; + Kt(a, t.memoizedState) || (Fr = !0), + (t.memoizedState = a), + null === t.baseQueue && (t.baseState = a), + (n.lastRenderedState = a) + } + return [a, r] + } + + function vr(e, t, n) { + var r = (r = t._getVersion)(t._source), + i = Y ? t._workInProgressVersionPrimary : t._workInProgressVersionSecondary + if ( + (null !== i + ? (e = i === r) + : ((e = e.mutableReadLanes), + (e = (rr & e) === e) && + (Y + ? (t._workInProgressVersionPrimary = r) + : (t._workInProgressVersionSecondary = r), + Jn.push(t))), + e) + ) + return n(t._source) + throw (Jn.push(t), Error(o(350))) + } + + function yr(e, t, n, r) { + var i = Ui + if (null === i) throw Error(o(349)) + var a = t._getVersion, + l = a(t._source), + s = tr.current, + c = (d = s.useState(function () { + return vr(i, t, n) + }))[1], + u = d[0], + d = ar, + f = (g = e.memoizedState).refs, + h = f.getSnapshot, + p = g.source, + g = g.subscribe, + m = ir + return ( + (e.memoizedState = {refs: f, source: t, subscribe: r}), + s.useEffect( + function () { + ;(f.getSnapshot = n), (f.setSnapshot = c) + var e = a(t._source) + if (!Kt(l, e)) { + ;(e = n(t._source)), + Kt(u, e) || (c(e), (e = ko(m)), (i.mutableReadLanes |= e & i.pendingLanes)), + (e = i.mutableReadLanes), + (i.entangledLanes |= e) + for (var r = i.entanglements, o = e; 0 < o;) { + var s = 31 - xt(o), + d = 1 << s + ;(r[s] |= e), (o &= ~d) + } + } + }, + [n, t, r], + ), + s.useEffect( + function () { + return r(t._source, function () { + var e = f.getSnapshot, + n = f.setSnapshot + try { + n(e(t._source)) + var r = ko(m) + i.mutableReadLanes |= r & i.pendingLanes + } catch (o) { + n(function () { + throw o + }) + } + }) + }, + [t, r], + ), + (Kt(h, n) && Kt(p, t) && Kt(g, r)) || + (((e = { + pending: null, + dispatch: null, + lastRenderedReducer: pr, + lastRenderedState: u, + }).dispatch = c = + Rr.bind(null, ir, e)), + (d.queue = e), + (d.baseQueue = null), + (u = vr(i, t, n)), + (d.memoizedState = d.baseState = u)), + u + ) + } + + function br(e, t, n) { + return yr(hr(), e, t, n) + } + + function wr(e) { + var t = fr() + return ( + 'function' == typeof e && (e = e()), + (t.memoizedState = t.baseState = e), + (e = (e = t.queue = + { + pending: null, + dispatch: null, + lastRenderedReducer: pr, + lastRenderedState: e, + }).dispatch = + Rr.bind(null, ir, e)), + [t.memoizedState, e] + ) + } + + function Cr(e, t, n, r) { + return ( + (e = {tag: e, create: t, destroy: n, deps: r, next: null}), + null === (t = ir.updateQueue) + ? ((ir.updateQueue = t = {lastEffect: null}).lastEffect = e.next = e) + : null === (n = t.lastEffect) + ? (t.lastEffect = e.next = e) + : ((r = n.next), ((n.next = e).next = r), (t.lastEffect = e)), + e + ) + } + + function xr(e) { + return (fr().memoizedState = {current: e}) + } + + function Er() { + return hr().memoizedState + } + + function Or(e, t, n, r) { + var i = fr() + ;(ir.flags |= e), (i.memoizedState = Cr(1 | t, n, void 0, void 0 === r ? null : r)) + } + + function Sr(e, t, n, r) { + var i = hr(), + o = void (r = void 0 === r ? null : r) + if (null !== or) { + var a = or.memoizedState + o = a.destroy + if (null !== r && ur(r, a.deps)) return void Cr(t, n, o, r) + } + ;(ir.flags |= e), (i.memoizedState = Cr(1 | t, n, o, r)) + } + + function kr(e, t) { + return Or(516, 4, e, t) + } + + function Pr(e, t) { + return Sr(516, 4, e, t) + } + + function _r(e, t) { + return Sr(4, 2, e, t) + } + + function Lr(e, t) { + return 'function' == typeof t + ? ((e = e()), + t(e), + function () { + t(null) + }) + : null != t + ? ((e = e()), + (t.current = e), + function () { + t.current = null + }) + : void 0 + } + + function Tr(e, t, n) { + return (n = null != n ? n.concat([e]) : null), Sr(4, 2, Lr.bind(null, t, e), n) + } + + function jr() { + } + + function Ir(e, t) { + var n = hr(), + r = ((t = void 0 === t ? null : t), n.memoizedState) + return null !== r && null !== t && ur(t, r[1]) ? r[0] : ((n.memoizedState = [e, t]), e) + } + + function Mr(e, t) { + var n = hr(), + r = ((t = void 0 === t ? null : t), n.memoizedState) + return null !== r && null !== t && ur(t, r[1]) + ? r[0] + : ((e = e()), (n.memoizedState = [e, t]), e) + } + + function Rr(e, t, n) { + var r = So(), + i = ko(e), + o = { + lane: i, + action: n, + eagerReducer: null, + eagerState: null, + next: null, + }, + a = t.pending + if ( + (null === a ? (o.next = o) : ((o.next = a.next), (a.next = o)), + (t.pending = o), + (a = e.alternate), + e === ir || (null !== a && a === ir)) + ) + sr = lr = !0 + else { + if ( + 0 === e.lanes && + (null === a || 0 === a.lanes) && + null !== (a = t.lastRenderedReducer) + ) + try { + var l = t.lastRenderedState, + s = a(l, n) + if (((o.eagerReducer = a), (o.eagerState = s), Kt(s, l))) return + } catch (c) { + } + Po(e, i, r) + } + } + + var Dr = { + readContext: dn, + useCallback: cr, + useContext: cr, + useEffect: cr, + useImperativeHandle: cr, + useLayoutEffect: cr, + useMemo: cr, + useReducer: cr, + useRef: cr, + useState: cr, + useDebugValue: cr, + useDeferredValue: cr, + useTransition: cr, + useMutableSource: cr, + useOpaqueIdentifier: cr, + unstable_isNewReconciler: !1, + }, + Ar = { + readContext: dn, + useCallback: function (e, t) { + return (fr().memoizedState = [e, void 0 === t ? null : t]), e + }, + useContext: dn, + useEffect: kr, + useImperativeHandle: function (e, t, n) { + return (n = null != n ? n.concat([e]) : null), Or(4, 2, Lr.bind(null, t, e), n) + }, + useLayoutEffect: function (e, t) { + return Or(4, 2, e, t) + }, + useMemo: function (e, t) { + var n = fr() + return (t = void 0 === t ? null : t), (e = e()), (n.memoizedState = [e, t]), e + }, + useReducer: function (e, t, n) { + var r = fr() + return ( + (t = void 0 !== n ? n(t) : t), + (r.memoizedState = r.baseState = t), + (e = (e = r.queue = + { + pending: null, + dispatch: null, + lastRenderedReducer: e, + lastRenderedState: t, + }).dispatch = + Rr.bind(null, ir, e)), + [r.memoizedState, e] + ) + }, + useRef: xr, + useState: wr, + useDebugValue: jr, + useDeferredValue: function (e) { + var t = wr(e), + n = t[0], + r = t[1] + return ( + kr( + function () { + var t = nr.transition + nr.transition = 1 + try { + r(e) + } finally { + nr.transition = t + } + }, + [e], + ), + n + ) + }, + useTransition: function () { + var e = wr(!1), + t = e[0] + return ( + xr( + (e = function (e, t) { + var n = Gt() + Ut(n < 98 ? 98 : n, function () { + e(!0) + }), + Ut(97 < n ? 97 : n, function () { + var n = nr.transition + nr.transition = 1 + try { + e(!1), t() + } finally { + nr.transition = n + } + }) + }.bind(null, e[1])), + ), + [e, t] + ) + }, + useMutableSource: function (e, t, n) { + var r = fr() + return ( + (r.memoizedState = { + refs: {getSnapshot: t, setSnapshot: null}, + source: e, + subscribe: n, + }), + yr(r, e, t, n) + ) + }, + useOpaqueIdentifier: function () { + var e, t, n + return ( + Un + ? ((e = !1), + (n = wr( + (t = J(function () { + throw (e || ((e = !0), n(ee())), Error(o(355))) + })), + )[1]), + 0 == (2 & ir.mode) && + ((ir.flags |= 516), + Cr( + 5, + function () { + n(ee()) + }, + void 0, + null, + ))) + : wr((t = ee())), + t + ) + }, + unstable_isNewReconciler: !1, + }, + zr = { + readContext: dn, + useCallback: Ir, + useContext: dn, + useEffect: Pr, + useImperativeHandle: Tr, + useLayoutEffect: _r, + useMemo: Mr, + useReducer: gr, + useRef: Er, + useState: function () { + return gr(pr) + }, + useDebugValue: jr, + useDeferredValue: function (e) { + var t = gr(pr), + n = t[0], + r = t[1] + return ( + Pr( + function () { + var t = nr.transition + nr.transition = 1 + try { + r(e) + } finally { + nr.transition = t + } + }, + [e], + ), + n + ) + }, + useTransition: function () { + var e = gr(pr)[0] + return [Er().current, e] + }, + useMutableSource: br, + useOpaqueIdentifier: function () { + return gr(pr)[0] + }, + unstable_isNewReconciler: !1, + }, + Nr = { + readContext: dn, + useCallback: Ir, + useContext: dn, + useEffect: Pr, + useImperativeHandle: Tr, + useLayoutEffect: _r, + useMemo: Mr, + useReducer: mr, + useRef: Er, + useState: function () { + return mr(pr) + }, + useDebugValue: jr, + useDeferredValue: function (e) { + var t = mr(pr), + n = t[0], + r = t[1] + return ( + Pr( + function () { + var t = nr.transition + nr.transition = 1 + try { + r(e) + } finally { + nr.transition = t + } + }, + [e], + ), + n + ) + }, + useTransition: function () { + var e = mr(pr)[0] + return [Er().current, e] + }, + useMutableSource: br, + useOpaqueIdentifier: function () { + return mr(pr)[0] + }, + unstable_isNewReconciler: !1, + }, + Hr = a.ReactCurrentOwner, + Fr = !1 + + function Br(e, t, n, r) { + t.child = null === e ? In(t, null, n, r) : jn(t, e.child, n, r) + } + + function Vr(e, t, n, r, i) { + n = n.render + var o = t.ref + return ( + un(t, i), + (r = dr(e, t, n, r, o, i)), + null === e || Fr + ? ((t.flags |= 1), Br(e, t, r, i), t.child) + : ((t.updateQueue = e.updateQueue), (t.flags &= -517), (e.lanes &= ~i), si(e, t, i)) + ) + } + + function Wr(e, t, n, r, i, o) { + var a + return null === e + ? 'function' != typeof (a = n.type) || + aa(a) || + void 0 !== a.defaultProps || + null !== n.compare || + void 0 !== n.defaultProps + ? (((e = sa(n.type, null, r, t, t.mode, o)).ref = t.ref), + ((e.return = t).child = e)) + : ((t.tag = 15), (t.type = a), Gr(e, t, a, r, i, o)) + : ((a = e.child), + 0 == (i & o) && + ((i = a.memoizedProps), + (n = null !== (n = n.compare) ? n : Jt)(i, r) && e.ref === t.ref) + ? si(e, t, o) + : ((t.flags |= 1), ((e = la(a, r)).ref = t.ref), ((e.return = t).child = e))) + } + + function Gr(e, t, n, r, i, o) { + if (null !== e && Jt(e.memoizedProps, r) && e.ref === t.ref) { + if (((Fr = !1), 0 == (o & i))) return (t.lanes = e.lanes), si(e, t, o) + 0 != (16384 & e.flags) && (Fr = !0) + } + return Xr(e, t, n, r, o) + } + + function Zr(e, t, n) { + var r = t.pendingProps, + i = r.children, + o = null !== e ? e.memoizedState : null + if ('hidden' === r.mode || 'unstable-defer-without-hiding' === r.mode) + if (0 == (4 & t.mode)) (t.memoizedState = {baseLanes: 0}), Do(0, n) + else { + if (0 == (1073741824 & n)) + return ( + (e = null !== o ? o.baseLanes | n : n), + (t.lanes = t.childLanes = 1073741824), + (t.memoizedState = {baseLanes: e}), + Do(0, e), + null + ) + ; + (t.memoizedState = {baseLanes: 0}), Do(0, null !== o ? o.baseLanes : n) + } + else null !== o ? ((r = o.baseLanes | n), (t.memoizedState = null)) : (r = n), Do(0, r) + return Br(e, t, i, n), t.child + } + + function Ur(e, t) { + var n = t.ref + ;((null === e && null !== n) || (null !== e && e.ref !== n)) && (t.flags |= 128) + } + + function Xr(e, t, n, r, i) { + var o = it(t, ot(n) ? rt : tt.current) + return ( + un(t, i), + (n = dr(e, t, n, r, o, i)), + null === e || Fr + ? ((t.flags |= 1), Br(e, t, n, i), t.child) + : ((t.updateQueue = e.updateQueue), (t.flags &= -517), (e.lanes &= ~i), si(e, t, i)) + ) + } + + function Yr(e, t, n, r, i) { + var o, a, l, s, c, u, d, f, h, p + return ( + ot(n) ? ((o = !0), ct(t)) : (o = !1), + un(t, i), + (r = + null === t.stateNode + ? (null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)), + On(t, n, r), + kn(t, n, r, i), + !0) + : null === e + ? ((a = t.stateNode), + (l = t.memoizedProps), + (a.props = l), + (f = a.context), + (s = + 'object' == typeof (s = n.contextType) && null !== s + ? dn(s) + : it(t, (s = ot(n) ? rt : tt.current))), + (u = + 'function' == typeof (c = n.getDerivedStateFromProps) || + 'function' == typeof a.getSnapshotBeforeUpdate) || + ('function' != typeof a.UNSAFE_componentWillReceiveProps && + 'function' != typeof a.componentWillReceiveProps) || + (l === r && f === s) || + Sn(0, a, r, s), + (fn = !1), + (d = t.memoizedState), + (a.state = d), + yn(t, r, a, i), + (f = t.memoizedState), + l !== r || d !== f || nt.current || fn + ? ('function' == typeof c && (Cn(t, 0, c, r), (f = t.memoizedState)), + (l = fn || En(t, n, l, r, d, f, s)) + ? (u || + ('function' != typeof a.UNSAFE_componentWillMount && + 'function' != typeof a.componentWillMount) || + ('function' == typeof a.componentWillMount && + a.componentWillMount(), + 'function' == typeof a.UNSAFE_componentWillMount && + a.UNSAFE_componentWillMount()), + 'function' == typeof a.componentDidMount && (t.flags |= 4)) + : ('function' == typeof a.componentDidMount && (t.flags |= 4), + (t.memoizedProps = r), + (t.memoizedState = f)), + (a.props = r), + (a.state = f), + (a.context = s), + l) + : ('function' == typeof a.componentDidMount && (t.flags |= 4), !1)) + : ((a = t.stateNode), + pn(e, t), + (l = t.memoizedProps), + (s = t.type === t.elementType ? l : en(t.type, l)), + (a.props = s), + (u = t.pendingProps), + (d = a.context), + (f = + 'object' == typeof (f = n.contextType) && null !== f + ? dn(f) + : it(t, (f = ot(n) ? rt : tt.current))), + (c = + 'function' == typeof (h = n.getDerivedStateFromProps) || + 'function' == typeof a.getSnapshotBeforeUpdate) || + ('function' != typeof a.UNSAFE_componentWillReceiveProps && + 'function' != typeof a.componentWillReceiveProps) || + (l === u && d === f) || + Sn(0, a, r, f), + (fn = !1), + (d = t.memoizedState), + (a.state = d), + yn(t, r, a, i), + (p = t.memoizedState), + l !== u || d !== p || nt.current || fn + ? ('function' == typeof h && (Cn(t, 0, h, r), (p = t.memoizedState)), + (s = fn || En(t, n, s, r, d, p, f)) + ? (c || + ('function' != typeof a.UNSAFE_componentWillUpdate && + 'function' != typeof a.componentWillUpdate) || + ('function' == typeof a.componentWillUpdate && + a.componentWillUpdate(r, p, f), + 'function' == typeof a.UNSAFE_componentWillUpdate && + a.UNSAFE_componentWillUpdate(r, p, f)), + 'function' == typeof a.componentDidUpdate && (t.flags |= 4), + 'function' == typeof a.getSnapshotBeforeUpdate && (t.flags |= 256)) + : ('function' != typeof a.componentDidUpdate || + (l === e.memoizedProps && d === e.memoizedState) || + (t.flags |= 4), + 'function' != typeof a.getSnapshotBeforeUpdate || + (l === e.memoizedProps && d === e.memoizedState) || + (t.flags |= 256), + (t.memoizedProps = r), + (t.memoizedState = p)), + (a.props = r), + (a.state = p), + (a.context = f), + s) + : ('function' != typeof a.componentDidUpdate || + (l === e.memoizedProps && d === e.memoizedState) || + (t.flags |= 4), + 'function' != typeof a.getSnapshotBeforeUpdate || + (l === e.memoizedProps && d === e.memoizedState) || + (t.flags |= 256), + !1))), + qr(e, t, n, r, o, i) + ) + } + + function qr(e, t, n, r, i, o) { + Ur(e, t) + var a = 0 != (64 & t.flags) + if (!r && !a) return i && ut(t, n, !1), si(e, t, o) + ; + (r = t.stateNode), (Hr.current = t) + var l = a && 'function' != typeof n.getDerivedStateFromError ? null : r.render() + return ( + (t.flags |= 1), + null !== e && a + ? ((t.child = jn(t, e.child, null, o)), (t.child = jn(t, null, l, o))) + : Br(e, t, l, o), + (t.memoizedState = r.state), + i && ut(t, n, !0), + t.child + ) + } + + function $r(e) { + var t = e.stateNode + t.pendingContext + ? lt(0, t.pendingContext, t.pendingContext !== t.context) + : t.context && lt(0, t.context, !1), + Nn(e, t.containerInfo) + } + + var Kr, + Qr, + Jr, + ei, + ti, + ni = {dehydrated: null, retryLane: 0} + + function ri(e, t, n) { + var r, + i = t.pendingProps, + o = Vn.current, + a = !1 + return ( + (r = (r = 0 != (64 & t.flags)) + ? r + : (null === e || null !== e.memoizedState) && 0 != (2 & o)) + ? ((a = !0), (t.flags &= -65)) + : (null !== e && null === e.memoizedState) || + void 0 === i.fallback || + !0 === i.unstable_avoidThisFallback || + (o |= 1), + Je(Vn, 1 & o), + null === e + ? (void 0 !== i.fallback && qn(t), + (e = i.children), + (o = i.fallback), + a + ? ((e = ii(t, e, o, n)), + (t.child.memoizedState = {baseLanes: n}), + (t.memoizedState = ni), + e) + : 'number' == typeof i.unstable_expectedLoadTime + ? ((e = ii(t, e, o, n)), + (t.child.memoizedState = {baseLanes: n}), + (t.memoizedState = ni), + (t.lanes = 33554432), + e) + : (((n = ua({mode: 'visible', children: e}, t.mode, n, null)).return = + t).child = n)) + : (e.memoizedState, + a + ? ((i = (function (e, t, n, r, i) { + var o = t.mode, + a = e.child, + l = ((e = a.sibling), {mode: 'hidden', children: n}) + return ( + 0 == (2 & o) && t.child !== a + ? (((n = t.child).childLanes = 0), + (n.pendingProps = l), + null !== (a = n.lastEffect) + ? ((t.firstEffect = n.firstEffect), + ((t.lastEffect = a).nextEffect = null)) + : (t.firstEffect = t.lastEffect = null)) + : (n = la(a, l)), + null !== e ? (r = la(e, r)) : ((r = ca(r, o, i, null)).flags |= 2), + (r.return = t), + (n.return = t), + (n.sibling = r), + (t.child = n), + r + ) + })(e, t, i.children, i.fallback, n)), + (a = t.child), + (o = e.child.memoizedState), + (a.memoizedState = + null === o ? {baseLanes: n} : {baseLanes: o.baseLanes | n}), + (a.childLanes = e.childLanes & ~n), + (t.memoizedState = ni), + i) + : ((n = (function (e, t, n, r) { + var i = e.child + return ( + (e = i.sibling), + (n = la(i, {mode: 'visible', children: n})), + 0 == (2 & t.mode) && (n.lanes = r), + (n.return = t), + (n.sibling = null) !== e && + ((e.nextEffect = null), + (e.flags = 8), + (t.firstEffect = t.lastEffect = e)), + (t.child = n) + ) + })(e, t, i.children, n)), + (t.memoizedState = null), + n)) + ) + } + + function ii(e, t, n, r) { + var i = e.mode, + o = e.child + return ( + (t = {mode: 'hidden', children: t}), + 0 == (2 & i) && null !== o + ? ((o.childLanes = 0), (o.pendingProps = t)) + : (o = ua(t, i, 0, null)), + (n = ca(n, i, r, null)), + (o.return = e), + (n.return = e), + (o.sibling = n), + (e.child = o), + n + ) + } + + function oi(e, t) { + e.lanes |= t + var n = e.alternate + null !== n && (n.lanes |= t), cn(e.return, t) + } + + function ai(e, t, n, r, i, o) { + var a = e.memoizedState + null === a + ? (e.memoizedState = { + isBackwards: t, + rendering: null, + renderingStartTime: 0, + last: r, + tail: n, + tailMode: i, + lastEffect: o, + }) + : ((a.isBackwards = t), + (a.rendering = null), + (a.renderingStartTime = 0), + (a.last = r), + (a.tail = n), + (a.tailMode = i), + (a.lastEffect = o)) + } + + function li(e, t, n) { + var r = t.pendingProps, + i = r.revealOrder, + o = r.tail + if ((Br(e, t, r.children, n), 0 != (2 & (r = Vn.current)))) + (r = (1 & r) | 2), (t.flags |= 64) + else { + if (null !== e && 0 != (64 & e.flags)) + e: for (e = t.child; null !== e;) { + if (13 === e.tag) null !== e.memoizedState && oi(e, n) + else if (19 === e.tag) oi(e, n) + else if (null !== e.child) { + e = (e.child.return = e).child + continue + } + if (e === t) break + for (; null === e.sibling;) { + if (null === e.return || e.return === t) break e + e = e.return + } + ;(e.sibling.return = e.return), (e = e.sibling) + } + r &= 1 + } + if ((Je(Vn, r), 0 == (2 & t.mode))) t.memoizedState = null + else + switch (i) { + case 'forwards': + for (n = t.child, i = null; null !== n;) + null !== (e = n.alternate) && null === Wn(e) && (i = n), (n = n.sibling) + null === (n = i) + ? ((i = t.child), (t.child = null)) + : ((i = n.sibling), (n.sibling = null)), + ai(t, !1, i, n, o, t.lastEffect) + break + case 'backwards': + for (i = t.child, t.child = n = null; null !== i;) { + if (null !== (e = i.alternate) && null === Wn(e)) { + t.child = i + break + } + ;(e = i.sibling), (i.sibling = n), (n = i), (i = e) + } + ai(t, !0, n, null, o, t.lastEffect) + break + case 'together': + ai(t, !1, null, null, void 0, t.lastEffect) + break + default: + t.memoizedState = null + } + return t.child + } + + function si(e, t, n) { + if ( + (null !== e && (t.dependencies = e.dependencies), + (eo |= t.lanes), + 0 == (n & t.childLanes)) + ) + return null + if (null !== e && t.child !== e.child) throw Error(o(153)) + if (null !== t.child) { + for ( + n = la((e = t.child), e.pendingProps), (t.child = n).return = t; + null !== e.sibling; + ) + (e = e.sibling), ((n = n.sibling = la(e, e.pendingProps)).return = t) + n.sibling = null + } + return t.child + } + + function ci(e) { + e.flags |= 4 + } + + function ui(e, t) { + if (!Un) + switch (e.tailMode) { + case 'hidden': + t = e.tail + for (var n = null; null !== t;) null !== t.alternate && (n = t), (t = t.sibling) + null === n ? (e.tail = null) : (n.sibling = null) + break + case 'collapsed': + n = e.tail + for (var r = null; null !== n;) null !== n.alternate && (r = n), (n = n.sibling) + null === r + ? t || null === e.tail + ? (e.tail = null) + : (e.tail.sibling = null) + : (r.sibling = null) + } + } + + function di(e, t) { + try { + for ( + var n = '', r = t; + (n += (function (e) { + switch (e.tag) { + case 5: + return Ue(e.type) + case 16: + return Ue('Lazy') + case 13: + return Ue('Suspense') + case 19: + return Ue('SuspenseList') + case 0: + case 2: + case 15: + return Ye(e.type, !1) + case 11: + return Ye(e.type.render, !1) + case 22: + return Ye(e.type._render, !1) + case 1: + return Ye(e.type, !0) + default: + return '' + } + })(r)), + (r = r.return); + ) ; + var i = n + } catch (o) { + i = '\nError generating stack: ' + o.message + '\n' + o.stack + } + return {value: e, source: t, stack: i} + } + + function fi(e, t) { + try { + console.error(t.value) + } catch (n) { + setTimeout(function () { + throw n + }) + } + } + + ti = q + ? ((Kr = function (e, t) { + for (var n = t.child; null !== n;) { + if (5 === n.tag || 6 === n.tag) F(e, n.stateNode) + else if (4 !== n.tag && null !== n.child) { + n = (n.child.return = n).child + continue + } + if (n === t) break + for (; null === n.sibling;) { + if (null === n.return || n.return === t) return + n = n.return + } + ;(n.sibling.return = n.return), (n = n.sibling) + } + }), + (Jr = function () { + }), + (ei = function (e, t, n, r, i) { + var o, a + ;(e = e.memoizedProps) !== r && + ((o = t.stateNode), + (a = zn(Rn.current)), + (n = V(o, n, e, r, i, a)), + (t.updateQueue = n) && ci(t)) + }), + function (e, t, n, r) { + n !== r && ci(t) + }) + : $ + ? ((Kr = function (e, t, n, r) { + for (var i = t.child; null !== i;) { + if (5 === i.tag) { + var o = i.stateNode + n && r && (o = Me(o, i.type, i.memoizedProps, i)), F(e, o) + } else if (6 === i.tag) + (o = i.stateNode), n && r && (o = Re(o, i.memoizedProps, i)), F(e, o) + else if (4 !== i.tag) { + if (13 === i.tag && 0 != (4 & i.flags) && (o = null !== i.memoizedState)) { + var a = i.child + if ( + null !== a && + (null !== a.child && ((a.child.return = a), Kr(e, a, !0, o)), + null !== (o = a.sibling)) + ) { + ;(o.return = i), (i = o) + continue + } + } + if (null !== i.child) { + i = (i.child.return = i).child + continue + } + } + if (i === t) break + for (; null === i.sibling;) { + if (null === i.return || i.return === t) return + i = i.return + } + ;(i.sibling.return = i.return), (i = i.sibling) + } + }), + (Qr = function (e, t, n, r) { + for (var i = t.child; null !== i;) { + if (5 === i.tag) { + var o = i.stateNode + n && r && (o = Me(o, i.type, i.memoizedProps, i)), Te(e, o) + } else if (6 === i.tag) + (o = i.stateNode), n && r && (o = Re(o, i.memoizedProps, i)), Te(e, o) + else if (4 !== i.tag) { + if (13 === i.tag && 0 != (4 & i.flags) && (o = null !== i.memoizedState)) { + var a = i.child + if ( + null !== a && + (null !== a.child && ((a.child.return = a), Qr(e, a, !0, o)), + null !== (o = a.sibling)) + ) { + ;(o.return = i), (i = o) + continue + } + } + if (null !== i.child) { + i = (i.child.return = i).child + continue + } + } + if (i === t) break + for (; null === i.sibling;) { + if (null === i.return || i.return === t) return + i = i.return + } + ;(i.sibling.return = i.return), (i = i.sibling) + } + }), + (Jr = function (e) { + var t, + n, + r = e.stateNode + null !== e.firstEffect && + ((t = r.containerInfo), + (n = Le(t)), + Qr(n, e, !1, !1), + (r.pendingChildren = n), + ci(e), + je(t, n)) + }), + (ei = function (e, t, n, r, i) { + var o, + a, + l, + s = e.stateNode, + c = e.memoizedProps + ;(e = null === t.firstEffect) && c === r + ? (t.stateNode = s) + : ((o = t.stateNode), + (a = zn(Rn.current)), + (l = null), + c !== r && (l = V(o, n, c, r, i, a)), + e && null === l + ? (t.stateNode = s) + : ((s = _e(s, l, n, c, r, t, e, o)), + B(s, n, r, i, a) && ci(t), + (t.stateNode = s), + e ? ci(t) : Kr(s, t, !1, !1))) + }), + function (e, t, n, r) { + n !== r + ? ((e = zn(An.current)), + (n = zn(Rn.current)), + (t.stateNode = G(r, e, n, t)), + ci(t)) + : (t.stateNode = e.stateNode) + }) + : ((Jr = function () { + }), (ei = function () { + }), function () { + }) + var hi = 'function' == typeof WeakMap ? WeakMap : Map + + function pi(e, t, n) { + ;((n = gn(-1, n)).tag = 3), (n.payload = {element: null}) + var r = t.value + return ( + (n.callback = function () { + so || ((so = !0), (co = r)), fi(0, t) + }), + n + ) + } + + function gi(e, t, n) { + ;(n = gn(-1, n)).tag = 3 + var r, + i = e.type.getDerivedStateFromError + return ( + null !== + (e = + ('function' == typeof i && + ((r = t.value), + (n.payload = function () { + return fi(0, t), i(r) + })), + e.stateNode)) && + 'function' == typeof e.componentDidCatch && + (n.callback = function () { + 'function' != typeof i && + (null === uo ? (uo = new Set([this])) : uo.add(this), fi(0, t)) + var e = t.stack + this.componentDidCatch(t.value, { + componentStack: null !== e ? e : '', + }) + }), + n + ) + } + + var mi = 'function' == typeof WeakSet ? WeakSet : Set + + function vi(e) { + var t = e.ref + if (null !== t) + if ('function' == typeof t) + try { + t(null) + } catch (n) { + Yo(e, n) + } + else t.current = null + } + + function yi(e, t) { + if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { + var n, + r = (t = t.next) + do { + } while ( + ((r.tag & e) === e && ((n = r.destroy), (r.destroy = void 0) !== n && n()), + (r = r.next) !== t) + ) + } + } + + function bi(e, t, n) { + switch (n.tag) { + case 0: + case 11: + case 15: + case 22: + if (null !== (t = null !== (t = n.updateQueue) ? t.lastEffect : null)) { + e = t = t.next + do { + } while ( + (3 == (3 & e.tag) && ((i = e.create), (e.destroy = i())), (e = e.next) !== t) + ) + } + if (null !== (t = null !== (t = n.updateQueue) ? t.lastEffect : null)) { + e = t = t.next + do { + var r = e, + i = r.next + 0 != (4 & (r = r.tag)) && + 0 != (1 & r) && + (Zo(n, e), + (r = n), + (a = e), + go.push(a, r), + fo || + ((fo = !0), + Xt(97, function () { + return Go(), null + }))), + (e = i) + } while (e !== t) + } + return + case 1: + return ( + (e = n.stateNode), + 4 & n.flags && + (null === t + ? e.componentDidMount() + : ((i = + n.elementType === n.type ? t.memoizedProps : en(n.type, t.memoizedProps)), + e.componentDidUpdate( + i, + t.memoizedState, + e.__reactInternalSnapshotBeforeUpdate, + ))), + void (null !== (t = n.updateQueue) && bn(0, t, e)) + ) + case 3: + if (null !== (t = n.updateQueue)) { + if ((e = null) !== n.child) + switch (n.child.tag) { + case 5: + e = R(n.child.stateNode) + break + case 1: + e = n.child.stateNode + } + bn(0, t, e) + } + return + case 5: + return ( + (e = n.stateNode), + void (null === t && 4 & n.flags && me(e, n.type, n.memoizedProps, n)) + ) + case 6: + case 4: + case 12: + case 19: + case 17: + case 20: + case 21: + case 23: + case 24: + return + case 13: + return void ( + K && + null === n.memoizedState && + null !== (n = n.alternate) && + null !== (n = n.memoizedState) && + null !== (n = n.dehydrated) && + Ze(n) + ) + } + var a + throw Error(o(163)) + } + + function wi(e, t) { + if (q) + for (var n = e; ;) { + if (5 === n.tag) { + var r = n.stateNode + t ? Ee(r) : Se(n.stateNode, n.memoizedProps) + } else if (6 === n.tag) (r = n.stateNode), t ? Oe(r) : ke(r, n.memoizedProps) + else if ( + ((23 !== n.tag && 24 !== n.tag) || null === n.memoizedState || n === e) && + null !== n.child + ) { + n = (n.child.return = n).child + continue + } + if (n === e) break + for (; null === n.sibling;) { + if (null === n.return || n.return === e) return + n = n.return + } + ;(n.sibling.return = n.return), (n = n.sibling) + } + } + + function Ci(e, t) { + if (ft && 'function' == typeof ft.onCommitFiberUnmount) + try { + ft.onCommitFiberUnmount(dt, t) + } catch (o) { + } + switch (t.tag) { + case 0: + case 11: + case 14: + case 15: + case 22: + if (null !== (e = t.updateQueue) && null !== (e = e.lastEffect)) { + var n = (e = e.next) + do { + var r = (i = n).destroy, + i = i.tag + if (void 0 !== r) + if (0 != (4 & i)) Zo(t, n) + else { + i = t + try { + r() + } catch (o) { + Yo(i, o) + } + } + } while ((n = n.next) !== e) + } + break + case 1: + if ((vi(t), 'function' == typeof (e = t.stateNode).componentWillUnmount)) + try { + ;(e.props = t.memoizedProps), + (e.state = t.memoizedState), + e.componentWillUnmount() + } catch (o) { + Yo(t, o) + } + break + case 5: + vi(t) + break + case 4: + q ? ki(e, t) : $ && ((t = t.stateNode.containerInfo), (e = Le(t)), Ie(t, e)) + } + } + + function xi(e, t) { + for (var n = t; ;) + if ((Ci(e, n), null === n.child || (q && 4 === n.tag))) { + if (n === t) break + for (; null === n.sibling;) { + if (null === n.return || n.return === t) return + n = n.return + } + ;(n.sibling.return = n.return), (n = n.sibling) + } else n = (n.child.return = n).child + } + + function Ei(e) { + ;(e.alternate = null), + (e.child = null), + (e.dependencies = null), + (e.firstEffect = null), + (e.lastEffect = null), + (e.memoizedProps = null), + (e.memoizedState = null), + (e.pendingProps = null), + (e.return = null), + (e.updateQueue = null) + } + + function Oi(e) { + return 5 === e.tag || 3 === e.tag || 4 === e.tag + } + + function Si(e) { + if (q) { + e: { + for (var t = e.return; null !== t;) { + if (Oi(t)) break e + t = t.return + } + throw Error(o(160)) + } + var n = t + t = n.stateNode + switch (n.tag) { + case 5: + var r = !1 + break + case 3: + case 4: + ;(t = t.containerInfo), (r = !0) + break + default: + throw Error(o(161)) + } + 16 & n.flags && (xe(t), (n.flags &= -17)) + e: t: for (n = e; ;) { + for (; null === n.sibling;) { + if (null === n.return || Oi(n.return)) { + n = null + break e + } + n = n.return + } + for ( + n.sibling.return = n.return, n = n.sibling; + 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; + ) { + if (2 & n.flags) continue t + if (null === n.child || 4 === n.tag) continue t + n = (n.child.return = n).child + } + if (!(2 & n.flags)) { + n = n.stateNode + break e + } + } + ;(r + ? function e(t, n, r) { + var i = t.tag, + o = 5 === i || 6 === i + if (o) (t = o ? t.stateNode : t.stateNode.instance), n ? be(r, t, n) : he(r, t) + else if (4 !== i && null !== (t = t.child)) + for (e(t, n, r), t = t.sibling; null !== t;) e(t, n, r), (t = t.sibling) + } + : function e(t, n, r) { + var i = t.tag, + o = 5 === i || 6 === i + if (o) (t = o ? t.stateNode : t.stateNode.instance), n ? ye(r, t, n) : fe(r, t) + else if (4 !== i && null !== (t = t.child)) + for (e(t, n, r), t = t.sibling; null !== t;) e(t, n, r), (t = t.sibling) + })(e, n, t) + } + } + + function ki(e, t) { + for (var n, r, i = t, a = !1; ;) { + if (!a) { + a = i.return + e: for (; ;) { + if (null === a) throw Error(o(160)) + switch (((n = a.stateNode), a.tag)) { + case 5: + r = !1 + break e + case 3: + case 4: + ;(n = n.containerInfo), (r = !0) + break e + } + a = a.return + } + a = !0 + } + if (5 === i.tag || 6 === i.tag) xi(e, i), (r ? Ce : we)(n, i.stateNode) + else if (4 === i.tag) { + if (null !== i.child) { + ;(n = i.stateNode.containerInfo), (r = !0), (i = (i.child.return = i).child) + continue + } + } else if ((Ci(e, i), null !== i.child)) { + i = (i.child.return = i).child + continue + } + if (i === t) break + for (; null === i.sibling;) { + if (null === i.return || i.return === t) return + 4 === (i = i.return).tag && (a = !1) + } + ;(i.sibling.return = i.return), (i = i.sibling) + } + } + + function Pi(e, t) { + if (q) { + switch (t.tag) { + case 0: + case 11: + case 14: + case 15: + case 22: + return void yi(3, t) + case 1: + case 12: + case 17: + return + case 5: + var n, + r, + i, + a = t.stateNode + return void ( + null != a && + ((n = t.memoizedProps), + (e = null !== e ? e.memoizedProps : n), + (r = t.type), + (i = t.updateQueue), + (t.updateQueue = null) !== i && ve(a, i, r, e, n, t)) + ) + case 6: + if (null === t.stateNode) throw Error(o(162)) + return ( + (a = t.memoizedProps), void pe(t.stateNode, null !== e ? e.memoizedProps : a, a) + ) + case 3: + return void ( + K && + (t = t.stateNode).hydrate && + ((t.hydrate = !1), Ge(t.containerInfo)) + ) + case 13: + return _i(t), void Li(t) + case 19: + return void Li(t) + case 23: + case 24: + return void wi(t, null !== t.memoizedState) + } + throw Error(o(163)) + } + switch (t.tag) { + case 0: + case 11: + case 14: + case 15: + case 22: + return void yi(3, t) + case 12: + case 23: + case 24: + return + case 13: + return _i(t), void Li(t) + case 19: + return void Li(t) + case 3: + K && (a = t.stateNode).hydrate && ((a.hydrate = !1), Ge(a.containerInfo)) + } + e: if ($) { + switch (t.tag) { + case 1: + case 5: + case 6: + case 20: + break e + case 3: + case 4: + ;(t = t.stateNode), Ie(t.containerInfo, t.pendingChildren) + break e + } + throw Error(o(163)) + } + } + + function _i(e) { + null !== e.memoizedState && ((io = Wt()), q && wi(e.child, !0)) + } + + function Li(e) { + var t, + n = e.updateQueue + null !== n && + ((e.updateQueue = null) === (t = e.stateNode) && (t = e.stateNode = new mi()), + n.forEach(function (n) { + var r = function (e, t) { + var n = e.stateNode + null !== n && n.delete(t), + (t = 0) === t && + (0 == (2 & (t = e.mode)) + ? (t = 1) + : 0 == (4 & t) + ? (t = 99 === Gt() ? 1 : 2) + : 0 === (t = bt(62914560 & ~(Co = 0 === Co ? Ji : Co))) && (t = 4194304)), + (n = So()), + null !== (e = _o(e, t)) && (Ct(e, t, n), Lo(e, n)) + }.bind(null, e, n) + t.has(n) || (t.add(n), n.then(r, r)) + })) + } + + var Ti = 0, + ji = 1, + Ii = 2, + Mi = 3, + Ri = 4 + + function Di(e) { + var t = Q(e) + if (null != t) { + if ('string' != typeof t.memoizedProps['data-testname']) throw Error(o(364)) + return t + } + if (null === (e = oe(e))) throw Error(o(362)) + return e.stateNode.current + } + + function Ai(e, t) { + switch (t.$$typeof) { + case Ti: + if (e.type === t.value) return 1 + break + case ji: + e: { + ;(t = t.value), (e = [e, 0]) + for (var n = 0; n < e.length;) { + var r = e[n++], + i = e[n++], + a = t[i] + if (5 !== r.tag || !se(r)) { + for (; null != a && Ai(r, a);) a = t[++i] + if (i === t.length) { + t = !0 + break e + } + for (r = r.child; null !== r;) e.push(r, i), (r = r.sibling) + } + } + t = !1 + } + return t + case Ii: + if (5 === e.tag && ce(e.stateNode, t.value)) return 1 + break + case Ri: + if ( + (5 !== e.tag && 6 !== e.tag) || + !(null !== (e = le(e)) && 0 <= e.indexOf(t.value)) + ) + break + return 1 + case Mi: + if ( + 5 === e.tag && + 'string' == typeof (e = e.memoizedProps['data-testname']) && + e.toLowerCase() === t.value.toLowerCase() + ) + return 1 + break + default: + throw Error(o(365, t)) + } + } + + function zi(e) { + switch (e.$$typeof) { + case Ti: + return '<' + (P(e.value) || 'Unknown') + '>' + case ji: + return ':has(' + (zi(e) || '') + ')' + case Ii: + return '[role="' + e.value + '"]' + case Ri: + return '"' + e.value + '"' + case Mi: + return '[data-testname="' + e.value + '"]' + default: + throw Error(o(365, e)) + } + } + + function Ni(e, t) { + var n = [] + e = [e, 0] + for (var r = 0; r < e.length;) { + var i = e[r++], + o = e[r++], + a = t[o] + if (5 !== i.tag || !se(i)) { + for (; null != a && Ai(i, a);) a = t[++o] + if (o === t.length) n.push(i) + else for (i = i.child; null !== i;) e.push(i, o), (i = i.sibling) + } + } + return n + } + + function Hi(e, t) { + if (!ie) throw Error(o(363)) + ; + (e = Ni((e = Di(e)), t)), (t = []), (e = Array.from(e)) + for (var n = 0; n < e.length;) { + var r = e[n++] + if (5 === r.tag) se(r) || t.push(r.stateNode) + else for (r = r.child; null !== r;) e.push(r), (r = r.sibling) + } + return t + } + + 'function' == typeof Symbol && + Symbol.for && + ((Ti = (e = Symbol.for)('selector.component')), + (ji = e('selector.has_pseudo_class')), + (Ii = e('selector.role')), + (Mi = e('selector.test_id')), + (Ri = e('selector.text'))) + var Fi = null, + Bi = Math.ceil, + Vi = a.ReactCurrentDispatcher, + Wi = a.ReactCurrentOwner, + Gi = a.IsSomeRendererActing, + Zi = 0, + Ui = null, + Xi = null, + Yi = 0, + qi = 0, + $i = Ke(0), + Ki = 0, + Qi = null, + Ji = 0, + eo = 0, + to = 0, + no = 0, + ro = null, + io = 0, + oo = 1 / 0 + + function ao() { + oo = Wt() + 500 + } + + var lo = null, + so = !1, + co = null, + uo = null, + fo = !1, + ho = null, + po = 90, + go = [], + mo = [], + vo = null, + yo = 0, + bo = null, + wo = -1, + Co = 0, + xo = 0, + Eo = null, + Oo = !1 + + function So() { + return 0 != (48 & Zi) ? Wt() : -1 !== wo ? wo : (wo = Wt()) + } + + function ko(e) { + return 0 == (2 & (e = e.mode)) + ? 1 + : 0 == (4 & e) + ? 99 === Gt() + ? 1 + : 2 + : (0 === Co && (Co = Ji), + 0 !== $t.transition + ? (0 !== xo && (xo = null !== ro ? ro.pendingLanes : 0), + (e = Co), + (t = 4186112 & ~xo), + 0 != (t &= -t) || (0 == (t = (e = 4186112 & ~e) & -e) && (t = 8192)), + t) + : ((e = Gt()), + yt( + 0 != (4 & Zi) && 98 === e + ? 12 + : (e = (function (e) { + switch (e) { + case 99: + return 15 + case 98: + return 10 + case 97: + case 96: + return 8 + case 95: + return 2 + default: + return 0 + } + })(e)), + Co, + ))) + var t + } + + function Po(e, t, n) { + if (50 < yo) throw ((yo = 0), (bo = null), Error(o(185))) + if (null === (e = _o(e, t))) return null + Ct(e, t, n), e === Ui && ((to |= t), 4 === Ki && jo(e, Yi)) + var r = Gt() + 1 === t + ? 0 != (8 & Zi) && 0 == (48 & Zi) + ? Io(e) + : (Lo(e, n), 0 === Zi && (ao(), Yt())) + : (0 == (4 & Zi) || + (98 !== r && 99 !== r) || + (null === vo ? (vo = new Set([e])) : vo.add(e)), + Lo(e, n)), + (ro = e) + } + + function _o(e, t) { + e.lanes |= t + var n = e.alternate + for (null !== n && (n.lanes |= t), e = (n = e).return; null !== e;) + (e.childLanes |= t), + null !== (n = e.alternate) && (n.childLanes |= t), + (e = (n = e).return) + return 3 === n.tag ? n.stateNode : null + } + + function Lo(e, t) { + for ( + var n = e.callbackNode, + r = e.suspendedLanes, + i = e.pingedLanes, + a = e.expirationTimes, + l = e.pendingLanes; + 0 < l; + ) { + var s, + c = 31 - xt(l), + u = 1 << c, + d = a[c] + ;-1 === d + ? (0 != (u & r) && 0 == (u & i)) || + ((d = t), gt(u), (s = pt), (a[c] = 10 <= s ? d + 250 : 6 <= s ? d + 5e3 : -1)) + : d <= t && (e.expiredLanes |= u), + (l &= ~u) + } + if (((r = mt(e, e === Ui ? Yi : 0)), (t = pt), 0 === r)) + null !== n && (n !== zt && Pt(n), (e.callbackNode = null), (e.callbackPriority = 0)) + else { + if (null !== n) { + if (e.callbackPriority === t) return + n !== zt && Pt(n) + } + ;(n = + 15 === t + ? ((n = Io.bind(null, e)), + null === Ht ? ((Ht = [n]), (Ft = kt(It, qt))) : Ht.push(n), + zt) + : 14 === t + ? Xt(99, Io.bind(null, e)) + : Xt( + (n = (function (e) { + switch (e) { + case 15: + case 14: + return 99 + case 13: + case 12: + case 11: + case 10: + return 98 + case 9: + case 8: + case 7: + case 6: + case 4: + case 5: + return 97 + case 3: + case 2: + case 1: + return 95 + case 0: + return 90 + default: + throw Error(o(358, e)) + } + })(t)), + To.bind(null, e), + )), + (e.callbackPriority = t), + (e.callbackNode = n) + } + } + + function To(e) { + if (((wo = -1), (xo = Co = 0) != (48 & Zi))) throw Error(o(327)) + var t = e.callbackNode + if (Go() && e.callbackNode !== t) return null + var n = mt(e, e === Ui ? Yi : 0) + if (0 === n) return null + var r = n, + i = Zi, + a = ((Zi |= 16), Ho()) + for ((Ui === e && Yi === r) || (ao(), zo(e, r)); ;) + try { + for (; null !== Xi && !_t();) Bo(Xi) + break + } catch (s) { + No(e, s) + } + if ( + (an(), + (Vi.current = a), + (Zi = i), + (r = null !== Xi ? 0 : ((Ui = null), (Yi = 0), Ki)), + 0 != (Ji & to)) + ) + zo(e, 0) + else if (0 !== r) { + if ( + (2 === r && + ((Zi |= 64), + e.hydrate && ((e.hydrate = !1), Pe(e.containerInfo)), + 0 !== (n = vt(e)) && (r = Fo(e, n))), + 1 === r) + ) + throw ((t = Qi), zo(e, 0), jo(e, n), Lo(e, Wt()), t) + switch (((e.finishedWork = e.current.alternate), (e.finishedLanes = n), r)) { + case 0: + case 1: + throw Error(o(345)) + case 2: + case 5: + Wo(e) + break + case 3: + if ((jo(e, n), (62914560 & n) === n && 10 < (r = io + 500 - Wt()))) { + if (0 !== mt(e, 0)) break + if (((i = e.suspendedLanes) & n) !== n) { + So(), (e.pingedLanes |= e.suspendedLanes & i) + break + } + e.timeoutHandle = Z(Wo.bind(null, e), r) + break + } + Wo(e) + break + case 4: + if ((jo(e, n), (4186112 & n) === n)) break + for (r = e.eventTimes, i = -1; 0 < n;) { + var l = 31 - xt(n) + a = 1 << l + i < (l = r[l]) && (i = l), (n &= ~a) + } + if ( + ((n = i), + 10 < + (n = + ((n = Wt() - n) < 120 + ? 120 + : n < 480 + ? 480 + : n < 1080 + ? 1080 + : n < 1920 + ? 1920 + : n < 3e3 + ? 3e3 + : n < 4320 + ? 4320 + : 1960 * Bi(n / 1960)) - n)) + ) { + e.timeoutHandle = Z(Wo.bind(null, e), n) + break + } + Wo(e) + break + default: + throw Error(o(329)) + } + } + return Lo(e, Wt()), e.callbackNode === t ? To.bind(null, e) : null + } + + function jo(e, t) { + for ( + t = t & ~no & ~to, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; + 0 < t; + ) { + var n = 31 - xt(t), + r = 1 << n + ;(e[n] = -1), (t &= ~r) + } + } + + function Io(e) { + if (0 != (48 & Zi)) throw Error(o(327)) + var t, n + if ( + (Go(), + e === Ui && 0 != (e.expiredLanes & Yi) + ? ((n = Fo(e, (t = Yi))), 0 != (Ji & to) && (n = Fo(e, (t = mt(e, t))))) + : (n = Fo(e, (t = mt(e, 0)))), + 0 !== e.tag && + 2 === n && + ((Zi |= 64), + e.hydrate && ((e.hydrate = !1), Pe(e.containerInfo)), + 0 !== (t = vt(e)) && (n = Fo(e, t))), + 1 === n) + ) + throw ((n = Qi), zo(e, 0), jo(e, t), Lo(e, Wt()), n) + return ( + (e.finishedWork = e.current.alternate), + (e.finishedLanes = t), + Wo(e), + Lo(e, Wt()), + null + ) + } + + function Mo(e, t) { + var n = Zi + Zi |= 1 + try { + return e(t) + } finally { + 0 === (Zi = n) && (ao(), Yt()) + } + } + + function Ro(e, t) { + var n = Zi + if (0 != (48 & n)) return e(t) + Zi |= 1 + try { + if (e) return Ut(99, e.bind(null, t)) + } finally { + ;(Zi = n), Yt() + } + } + + function Do(e, t) { + Je($i, qi), (qi |= t), (Ji |= t) + } + + function Ao() { + ;(qi = $i.current), Qe($i) + } + + function zo(e, t) { + ;(e.finishedWork = null), (e.finishedLanes = 0) + var n = e.timeoutHandle + if ((n !== X && ((e.timeoutHandle = X), U(n)), null !== Xi)) + for (n = Xi.return; null !== n;) { + var r = n + switch (r.tag) { + case 1: + null != (r = r.type.childContextTypes) && at() + break + case 3: + Hn(), Qe(nt), Qe(tt), er() + break + case 5: + Bn(r) + break + case 4: + Hn() + break + case 13: + case 19: + Qe(Vn) + break + case 10: + sn(r) + break + case 23: + case 24: + Ao() + } + n = n.return + } + ;(Xi = la((Ui = e).current, null)), + (Yi = qi = Ji = t), + (Qi = null), + (no = to = eo = Ki = 0) + } + + function No(e, t) { + for (; ;) { + var n = Xi + try { + if ((an(), (tr.current = Dr), lr)) { + for (var r = ir.memoizedState; null !== r;) { + var i = r.queue + null !== i && (i.pending = null), (r = r.next) + } + lr = !1 + } + if ( + ((rr = 0), + (ar = or = ir = null), + (sr = !1), + (Wi.current = null) === n || null === n.return) + ) { + ;(Ki = 1), (Qi = t), (Xi = null) + break + } + e: { + var o = e, + a = n.return, + l = t + if ( + ((t = Yi), + ((b = n).flags |= 2048), + (b.firstEffect = b.lastEffect = null) !== l && + 'object' == typeof l && + 'function' == typeof l.then) + ) { + var s, + c, + u, + d, + f = l, + h = + (0 == (2 & b.mode) && + ((s = b.alternate) + ? ((b.updateQueue = s.updateQueue), + (b.memoizedState = s.memoizedState), + (b.lanes = s.lanes)) + : ((b.updateQueue = null), (b.memoizedState = null))), + 0 != (1 & Vn.current)), + p = a + do { + if ( + (d = (d = 13 === p.tag) + ? null !== (c = p.memoizedState) + ? null !== c.dehydrated + : void 0 !== (u = p.memoizedProps).fallback && + (!0 !== u.unstable_avoidThisFallback || !h) + : d) + ) { + var g, + m, + v = p.updateQueue + if ( + (null === v ? ((g = new Set()).add(f), (p.updateQueue = g)) : v.add(f), + 0 == (2 & p.mode)) + ) { + ;(p.flags |= 64), + (b.flags |= 16384), + (b.flags &= -2981), + 1 === b.tag && + (null === b.alternate + ? (b.tag = 17) + : (((m = gn(-1, 1)).tag = 2), mn(b, m))), + (b.lanes |= 1) + break e + } + l = void 0 + var y, + b = t, + w = o.pingCache + null === w + ? ((w = o.pingCache = new hi()), (l = new Set()), w.set(f, l)) + : void 0 === (l = w.get(f)) && ((l = new Set()), w.set(f, l)), + l.has(b) || (l.add(b), (y = qo.bind(null, o, f, b)), f.then(y, y)), + (p.flags |= 4096), + (p.lanes = t) + break e + } + } while (null !== (p = p.return)) + l = Error( + (P(b.type) || 'A React component') + + ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.', + ) + } + 5 !== Ki && (Ki = 2), (l = di(l, b)), (p = a) + do { + switch (p.tag) { + case 3: + ;(o = l), (p.flags |= 4096), (t &= -t), (p.lanes |= t), vn(p, pi(0, o, t)) + break e + case 1: + o = l + var C = p.type, + x = p.stateNode + if ( + 0 == (64 & p.flags) && + ('function' == typeof C.getDerivedStateFromError || + (null !== x && + 'function' == typeof x.componentDidCatch && + (null === uo || !uo.has(x)))) + ) { + ;(p.flags |= 4096), (t &= -t), (p.lanes |= t), vn(p, gi(p, o, t)) + break e + } + } + } while (null !== (p = p.return)) + } + Vo(n) + } catch (E) { + ;(t = E), Xi === n && null !== n && (Xi = n = n.return) + continue + } + break + } + } + + function Ho() { + var e = Vi.current + return (Vi.current = Dr), null === e ? Dr : e + } + + function Fo(e, t) { + var n = Zi, + r = ((Zi |= 16), Ho()) + for ((Ui === e && Yi === t) || zo(e, t); ;) + try { + for (; null !== Xi;) Bo(Xi) + break + } catch (i) { + No(e, i) + } + if ((an(), (Zi = n), (Vi.current = r), null !== Xi)) throw Error(o(261)) + return (Ui = null), (Yi = 0), Ki + } + + function Bo(e) { + var t = $o(e.alternate, e, qi) + ;(e.memoizedProps = e.pendingProps), null === t ? Vo(e) : (Xi = t), (Wi.current = null) + } + + function Vo(e) { + var t = e + do { + var n = t.alternate + if (((e = t.return), 0 == (2048 & t.flags))) { + if ( + null !== + (n = (function (e, t, n) { + var r = t.pendingProps + switch (t.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return null + case 1: + case 17: + return ot(t.type) && at(), null + case 3: + return ( + Hn(), + Qe(nt), + Qe(tt), + er(), + (r = t.stateNode).pendingContext && + ((r.context = r.pendingContext), (r.pendingContext = null)), + (null !== e && null !== e.child) || + (Kn(t) ? ci(t) : r.hydrate || (t.flags |= 256)), + Jr(t), + null + ) + case 5: + Bn(t) + var i = zn(An.current) + if (((n = t.type), null !== e && null != t.stateNode)) + ei(e, t, n, r, i), e.ref !== t.ref && (t.flags |= 128) + else { + if (!r) { + if (null === t.stateNode) throw Error(o(166)) + return null + } + if (((e = zn(Rn.current)), Kn(t))) { + if (!K) throw Error(o(175)) + ; + (e = Be(t.stateNode, t.type, t.memoizedProps, i, e, t)), + null !== (t.updateQueue = e) && ci(t) + } else { + var a = H(n, r, i, e, t) + Kr(a, t, !1, !1), (t.stateNode = a), B(a, n, r, i, e) && ci(t) + } + null !== t.ref && (t.flags |= 128) + } + return null + case 6: + if (e && null != t.stateNode) ti(e, t, e.memoizedProps, r) + else { + if ('string' != typeof r && null === t.stateNode) throw Error(o(166)) + if (((e = zn(An.current)), (i = zn(Rn.current)), Kn(t))) { + if (!K) throw Error(o(176)) + Ve(t.stateNode, t.memoizedProps, t) && ci(t) + } else t.stateNode = G(r, e, i, t) + } + return null + case 13: + return ( + Qe(Vn), + (r = t.memoizedState), + 0 != (64 & t.flags) + ? ((t.lanes = n), t) + : ((r = null !== r), + (i = !1), + null === e + ? void 0 !== t.memoizedProps.fallback && Kn(t) + : (i = null !== e.memoizedState), + r && + !i && + 0 != (2 & t.mode) && + ((null === e && + !0 !== t.memoizedProps.unstable_avoidThisFallback) || + 0 != (1 & Vn.current) + ? 0 === Ki && (Ki = 3) + : ((0 !== Ki && 3 !== Ki) || (Ki = 4), + null === Ui || + (0 == (134217727 & eo) && 0 == (134217727 & to)) || + jo(Ui, Yi))), + $ && r && (t.flags |= 4), + q && (r || i) && (t.flags |= 4), + null) + ) + case 4: + return Hn(), Jr(t), null === e && re(t.stateNode.containerInfo), null + case 10: + return sn(t), null + case 19: + if ((Qe(Vn), null === (r = t.memoizedState))) return null + if (((i = 0 != (64 & t.flags)), null === (a = r.rendering))) + if (i) ui(r, !1) + else { + if (0 !== Ki || (null !== e && 0 != (64 & e.flags))) + for (e = t.child; null !== e;) { + if (null !== (a = Wn(e))) { + for ( + t.flags |= 64, + ui(r, !1), + null !== (e = a.updateQueue) && + ((t.updateQueue = e), (t.flags |= 4)), + null === r.lastEffect && (t.firstEffect = null), + t.lastEffect = r.lastEffect, + e = n, + r = t.child; + null !== r; + ) + (n = e), + ((i = r).flags &= 2), + (i.nextEffect = null), + (i.firstEffect = null), + (i.lastEffect = null) === (a = i.alternate) + ? ((i.childLanes = 0), + (i.lanes = n), + (i.child = null), + (i.memoizedProps = null), + (i.memoizedState = null), + (i.updateQueue = null), + (i.dependencies = null), + (i.stateNode = null)) + : ((i.childLanes = a.childLanes), + (i.lanes = a.lanes), + (i.child = a.child), + (i.memoizedProps = a.memoizedProps), + (i.memoizedState = a.memoizedState), + (i.updateQueue = a.updateQueue), + (i.type = a.type), + (n = a.dependencies), + (i.dependencies = + null === n + ? null + : { + lanes: n.lanes, + firstContext: n.firstContext, + })), + (r = r.sibling) + return Je(Vn, (1 & Vn.current) | 2), t.child + } + e = e.sibling + } + null !== r.tail && + Wt() > oo && + ((t.flags |= 64), ui(r, !(i = !0)), (t.lanes = 33554432)) + } + else { + if (!i) + if (null !== (e = Wn(a))) { + if ( + ((t.flags |= 64), + (i = !0), + null !== (e = e.updateQueue) && + ((t.updateQueue = e), (t.flags |= 4)), + ui(r, !0), + null === r.tail && 'hidden' === r.tailMode && !a.alternate && !Un) + ) + return ( + null !== (t = t.lastEffect = r.lastEffect) && + (t.nextEffect = null), + null + ) + } else + 2 * Wt() - r.renderingStartTime > oo && + 1073741824 !== n && + ((t.flags |= 64), ui(r, !(i = !0)), (t.lanes = 33554432)) + r.isBackwards + ? ((a.sibling = t.child), (t.child = a)) + : (null !== (e = r.last) ? (e.sibling = a) : (t.child = a), + (r.last = a)) + } + return null !== r.tail + ? ((e = r.tail), + (r.rendering = e), + (r.tail = e.sibling), + (r.lastEffect = t.lastEffect), + (r.renderingStartTime = Wt()), + (e.sibling = null), + (t = Vn.current), + Je(Vn, i ? (1 & t) | 2 : 1 & t), + e) + : null + case 23: + case 24: + return ( + Ao(), + null !== e && + (null !== e.memoizedState) != (null !== t.memoizedState) && + 'unstable-defer-without-hiding' !== r.mode && + (t.flags |= 4), + null + ) + } + throw Error(o(156, t.tag)) + })(n, t, qi)) + ) + return void (Xi = n) + if ( + (24 !== (n = t).tag && 23 !== n.tag) || + null === n.memoizedState || + 0 != (1073741824 & qi) || + 0 == (4 & n.mode) + ) { + for (var r = 0, i = n.child; null !== i;) + (r |= i.lanes | i.childLanes), (i = i.sibling) + n.childLanes = r + } + null !== e && + 0 == (2048 & e.flags) && + (null === e.firstEffect && (e.firstEffect = t.firstEffect), + null !== t.lastEffect && + (null !== e.lastEffect && (e.lastEffect.nextEffect = t.firstEffect), + (e.lastEffect = t.lastEffect)), + 1 < t.flags && + (null !== e.lastEffect ? (e.lastEffect.nextEffect = t) : (e.firstEffect = t), + (e.lastEffect = t))) + } else { + if ( + null !== + (n = (function (e) { + switch (e.tag) { + case 1: + ot(e.type) && at() + var t = e.flags + return 4096 & t ? ((e.flags = (-4097 & t) | 64), e) : null + case 3: + if ((Hn(), Qe(nt), Qe(tt), er(), 0 != (64 & (t = e.flags)))) + throw Error(o(285)) + return (e.flags = (-4097 & t) | 64), e + case 5: + return Bn(e), null + case 13: + return ( + Qe(Vn), 4096 & (t = e.flags) ? ((e.flags = (-4097 & t) | 64), e) : null + ) + case 19: + return Qe(Vn), null + case 4: + return Hn(), null + case 10: + return sn(e), null + case 23: + case 24: + return Ao(), null + default: + return null + } + })(t)) + ) + return (n.flags &= 2047), void (Xi = n) + null !== e && ((e.firstEffect = e.lastEffect = null), (e.flags |= 2048)) + } + if (null !== (t = t.sibling)) return void (Xi = t) + } while (((Xi = t = e), null !== t)) + 0 === Ki && (Ki = 5) + } + + function Wo(e) { + var t = Gt() + return ( + Ut( + 99, + function (e, t) { + for (; Go(), null !== ho;) ; + if (0 != (48 & Zi)) throw Error(o(327)) + var n = e.finishedWork + if (null === n) return null + if (((e.finishedWork = null), (e.finishedLanes = 0), n === e.current)) + throw Error(o(177)) + e.callbackNode = null + var r = n.lanes | n.childLanes, + i = r, + a = e.pendingLanes & ~i + ;(e.pendingLanes = i), + (e.suspendedLanes = 0), + (e.pingedLanes = 0), + (e.expiredLanes &= i), + (e.mutableReadLanes &= i), + (e.entangledLanes &= i), + (i = e.entanglements) + for (var l = e.eventTimes, s = e.expirationTimes; 0 < a;) { + var c = 31 - xt(a), + u = 1 << c + ;(i[c] = 0), (l[c] = -1), (s[c] = -1), (a &= ~u) + } + if ( + (null !== vo && 0 == (24 & r) && vo.has(e) && vo.delete(e), + e === Ui && ((Xi = Ui = null), (Yi = 0)), + null !== + (r = + 1 < n.flags + ? null !== n.lastEffect + ? ((n.lastEffect.nextEffect = n), n.firstEffect) + : n + : n.firstEffect)) + ) { + ;(i = Zi), + (Zi |= 32), + (Wi.current = null), + (Eo = z(e.containerInfo)), + (Oo = !1), + (lo = r) + do { + try { + !(function () { + for (; null !== lo;) { + var e = lo.alternate, + t = + (Oo || + null === Eo || + (0 != (8 & lo.flags) + ? I(lo, Eo) && ((Oo = !0), te()) + : 13 === lo.tag && + ((r = lo), + null !== (n = e) && + (null === (n = n.memoizedState) || null !== n.dehydrated) && + null !== (r = r.memoizedState) && + null === r.dehydrated) && + I(lo, Eo) && + ((Oo = !0), te())), + lo.flags) + 0 != (256 & t) && + (function (e, t) { + switch (t.tag) { + case 0: + case 11: + case 15: + case 22: + case 5: + case 6: + case 4: + case 17: + return + case 1: + var n, r + return ( + 256 & t.flags && + null !== e && + ((n = e.memoizedProps), + (r = e.memoizedState), + (t = (e = t.stateNode).getSnapshotBeforeUpdate( + t.elementType === t.type ? n : en(t.type, n), + r, + )), + (e.__reactInternalSnapshotBeforeUpdate = t)) + ) + case 3: + return q && 256 & t.flags && Pe(t.stateNode.containerInfo) + } + throw Error(o(163)) + })(e, lo), + 0 == (512 & t) || + fo || + ((fo = !0), + Xt(97, function () { + return Go(), null + })), + (lo = lo.nextEffect) + } + var n, r + })() + } catch (y) { + if (null === lo) throw Error(o(330)) + Yo(lo, y), (lo = lo.nextEffect) + } + } while (null !== lo) + ; + (Eo = null), (lo = r) + do { + try { + for (l = e; null !== lo;) { + var d, + f, + h = lo.flags + switch ( + (16 & h && q && xe(lo.stateNode), + 128 & h && + null !== (d = lo.alternate) && + null !== (f = d.ref) && + ('function' == typeof f ? f(null) : (f.current = null)), + 1038 & h) + ) { + case 2: + Si(lo), (lo.flags &= -3) + break + case 6: + Si(lo), (lo.flags &= -3), Pi(lo.alternate, lo) + break + case 1024: + lo.flags &= -1025 + break + case 1028: + ;(lo.flags &= -1025), Pi(lo.alternate, lo) + break + case 4: + Pi(lo.alternate, lo) + break + case 8: + ;(q ? ki : xi)((s = l), (a = lo)) + var p = a.alternate + Ei(a), null !== p && Ei(p) + } + lo = lo.nextEffect + } + } catch (y) { + if (null === lo) throw Error(o(330)) + Yo(lo, y), (lo = lo.nextEffect) + } + } while (null !== lo) + Oo && ne(), N(e.containerInfo), (e.current = n), (lo = r) + do { + try { + for (h = e; null !== lo;) { + var g, + m, + v = lo.flags + 36 & v && bi(h, lo.alternate, lo), + 128 & v && + ((d = void 0), + null !== (g = lo.ref) && + ((m = lo.stateNode), + (d = 5 === lo.tag ? R(m) : m), + 'function' == typeof g ? g(d) : (g.current = d))), + (lo = lo.nextEffect) + } + } catch (y) { + if (null === lo) throw Error(o(330)) + Yo(lo, y), (lo = lo.nextEffect) + } + } while (null !== lo) + ; + (lo = null), Nt(), (Zi = i) + } else e.current = n + if (fo) (fo = !1), (ho = e), (po = t) + else + for (lo = r; null !== lo;) + (t = lo.nextEffect), + (lo.nextEffect = null), + 8 & lo.flags && (((v = lo).sibling = null), (v.stateNode = null)), + (lo = t) + if ( + (0 === (r = e.pendingLanes) && (uo = null), + 1 === r ? (e === bo ? yo++ : ((yo = 0), (bo = e))) : (yo = 0), + (n = n.stateNode), + ft && 'function' == typeof ft.onCommitFiberRoot) + ) + try { + ft.onCommitFiberRoot(dt, n, void 0, 64 == (64 & n.current.flags)) + } catch (y) { + } + if ((Lo(e, Wt()), so)) throw ((so = !1), (e = co), (co = null), e) + return 0 != (8 & Zi) || Yt(), null + }.bind(null, e, t), + ), + null + ) + } + + function Go() { + var e + return 90 !== po && ((e = 97 < po ? 97 : po), (po = 90), Ut(e, Uo)) + } + + function Zo(e, t) { + mo.push(t, e), + fo || + ((fo = !0), + Xt(97, function () { + return Go(), null + })) + } + + function Uo() { + if (null === ho) return !1 + var e = ho + if (((ho = null), 0 != (48 & Zi))) throw Error(o(331)) + var t = Zi, + n = ((Zi |= 32), mo) + mo = [] + for (var r = 0; r < n.length; r += 2) { + var i = n[r], + a = n[r + 1], + l = i.destroy + if (((i.destroy = void 0), 'function' == typeof l)) + try { + l() + } catch (c) { + if (null === a) throw Error(o(330)) + Yo(a, c) + } + } + for (n = go, go = [], r = 0; r < n.length; r += 2) { + ;(i = n[r]), (a = n[r + 1]) + try { + var s = i.create + i.destroy = s() + } catch (c) { + if (null === a) throw Error(o(330)) + Yo(a, c) + } + } + for (s = e.current.firstEffect; null !== s;) + (e = s.nextEffect), + (s.nextEffect = null), + 8 & s.flags && ((s.sibling = null), (s.stateNode = null)), + (s = e) + return (Zi = t), Yt(), !0 + } + + function Xo(e, t, n) { + mn(e, (t = pi(0, (t = di(n, t)), 1))), + (t = So()), + null !== (e = _o(e, 1)) && (Ct(e, 1, t), Lo(e, t)) + } + + function Yo(e, t) { + if (3 === e.tag) Xo(e, e, t) + else + for (var n = e.return; null !== n;) { + if (3 === n.tag) { + Xo(n, e, t) + break + } + if (1 === n.tag) { + var r, + i = n.stateNode + if ( + 'function' == typeof n.type.getDerivedStateFromError || + ('function' == typeof i.componentDidCatch && (null === uo || !uo.has(i))) + ) { + if ((mn(n, gi(n, (e = di(t, e)), 1)), (r = So()), null !== (n = _o(n, 1)))) + Ct(n, 1, r), Lo(n, r) + else if ( + 'function' == typeof i.componentDidCatch && + (null === uo || !uo.has(i)) + ) + try { + i.componentDidCatch(t, e) + } catch (o) { + } + break + } + } + n = n.return + } + } + + function qo(e, t, n) { + var r = e.pingCache + null !== r && r.delete(t), + (t = So()), + (e.pingedLanes |= e.suspendedLanes & n), + Ui === e && + (Yi & n) === n && + (4 === Ki || (3 === Ki && (62914560 & Yi) === Yi && Wt() - io < 500) + ? zo(e, 0) + : (no |= n)), + Lo(e, t) + } + + var $o = function (e, t, n) { + var r = t.lanes + if (null !== e) + if (e.memoizedProps !== t.pendingProps || nt.current) Fr = !0 + else { + if (0 == (n & r)) { + switch (((Fr = !1), t.tag)) { + case 3: + $r(t), Qn() + break + case 5: + Fn(t) + break + case 1: + ot(t.type) && ct(t) + break + case 4: + Nn(t, t.stateNode.containerInfo) + break + case 10: + ln(t, t.memoizedProps.value) + break + case 13: + if (null !== t.memoizedState) + return 0 != (n & t.child.childLanes) + ? ri(e, t, n) + : (Je(Vn, 1 & Vn.current), + null !== (t = si(e, t, n)) ? t.sibling : null) + Je(Vn, 1 & Vn.current) + break + case 19: + if (((r = 0 != (n & t.childLanes)), 0 != (64 & e.flags))) { + if (r) return li(e, t, n) + t.flags |= 64 + } + var i = t.memoizedState + if ( + (null !== i && + ((i.rendering = null), (i.tail = null), (i.lastEffect = null)), + Je(Vn, Vn.current), + r) + ) + break + return null + case 23: + case 24: + return (t.lanes = 0), Zr(e, t, n) + } + return si(e, t, n) + } + Fr = 0 != (16384 & e.flags) + } + else Fr = !1 + switch (((t.lanes = 0), t.tag)) { + case 2: + return ( + (r = t.type), + null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)), + (e = t.pendingProps), + (i = it(t, tt.current)), + un(t, n), + (i = dr(null, t, r, e, i, n)), + (t.flags |= 1), + 'object' == typeof i && + null !== i && + 'function' == typeof i.render && + void 0 === i.$$typeof + ? ((t.tag = 1), + (t.memoizedState = null), + (t.updateQueue = null), + ot(r) ? ((a = !0), ct(t)) : (a = !1), + (t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null), + hn(t), + 'function' == typeof (c = r.getDerivedStateFromProps) && Cn(t, 0, c, e), + (i.updater = xn), + kn(((t.stateNode = i)._reactInternals = t), r, e, n), + qr(null, t, r, !0, a, n)) + : ((t.tag = 0), Br(null, t, i, n), t.child) + ) + case 16: + i = t.elementType + e: { + switch ( + (null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)), + (e = t.pendingProps), + (i = (a = i._init)(i._payload)), + (t.type = i), + (a = t.tag = + (function (e) { + if ('function' == typeof e) return aa(e) ? 1 : 0 + if (null != e) { + if ((e = e.$$typeof) === m) return 11 + if (e === b) return 14 + } + return 2 + })(i)), + (e = en(i, e)), + a) + ) { + case 0: + t = Xr(null, t, i, e, n) + break e + case 1: + t = Yr(null, t, i, e, n) + break e + case 11: + t = Vr(null, t, i, e, n) + break e + case 14: + t = Wr(null, t, i, en(i.type, e), r, n) + break e + } + throw Error(o(306, i, '')) + } + return t + case 0: + return ( + (r = t.type), + (i = t.pendingProps), + Xr(e, t, r, (i = t.elementType === r ? i : en(r, i)), n) + ) + case 1: + return ( + (r = t.type), + (i = t.pendingProps), + Yr(e, t, r, (i = t.elementType === r ? i : en(r, i)), n) + ) + case 3: + if (($r(t), (r = t.updateQueue), null === e || null === r)) throw Error(o(282)) + if ( + ((r = t.pendingProps), + (i = null !== (i = t.memoizedState) ? i.element : null), + pn(e, t), + yn(t, r, null, n), + (r = t.memoizedState.element) === i) + ) + Qn(), (t = si(e, t, n)) + else { + if ( + (a = (a = (i = t.stateNode).hydrate) + ? !!K && ((Zn = Fe(t.stateNode.containerInfo)), (Gn = t), (Un = !0)) + : a) + ) { + if (K && null != (e = i.mutableSourceEagerHydrationData)) + for (i = 0; i < e.length; i += 2) + (a = e[i]), + (c = e[i + 1]), + Y + ? (a._workInProgressVersionPrimary = c) + : (a._workInProgressVersionSecondary = c), + Jn.push(a) + for (n = In(t, null, r, n), t.child = n; n;) + (n.flags = (-3 & n.flags) | 1024), (n = n.sibling) + } else Br(e, t, r, n), Qn() + t = t.child + } + return t + case 5: + return ( + Fn(t), + null === e && qn(t), + (r = t.type), + (i = t.pendingProps), + (a = null !== e ? e.memoizedProps : null), + (c = i.children), + W(r, i) ? (c = null) : null !== a && W(r, a) && (t.flags |= 16), + Ur(e, t), + Br(e, t, c, n), + t.child + ) + case 6: + return null === e && qn(t), null + case 13: + return ri(e, t, n) + case 4: + return ( + Nn(t, t.stateNode.containerInfo), + (r = t.pendingProps), + null === e ? (t.child = jn(t, null, r, n)) : Br(e, t, r, n), + t.child + ) + case 11: + return ( + (r = t.type), + (i = t.pendingProps), + Vr(e, t, r, (i = t.elementType === r ? i : en(r, i)), n) + ) + case 7: + return Br(e, t, t.pendingProps, n), t.child + case 8: + case 12: + return Br(e, t, t.pendingProps.children, n), t.child + case 10: + e: { + if ( + ((r = t.type._context), + (i = t.pendingProps), + (c = t.memoizedProps), + ln(t, (a = i.value)), + null !== c) + ) { + var a, + l = c.value + if ( + 0 == + (a = Kt(l, a) + ? 0 + : 0 | + ('function' == typeof r._calculateChangedBits + ? r._calculateChangedBits(l, a) + : 1073741823)) + ) { + if (c.children === i.children && !nt.current) { + t = si(e, t, n) + break e + } + } else + for (null !== (l = t.child) && (l.return = t); null !== l;) { + var s = l.dependencies + if (null !== s) + for (var c = l.child, u = s.firstContext; null !== u;) { + if (u.context === r && 0 != (u.observedBits & a)) { + 1 === l.tag && (((u = gn(-1, n & -n)).tag = 2), mn(l, u)), + (l.lanes |= n), + null !== (u = l.alternate) && (u.lanes |= n), + cn(l.return, n), + (s.lanes |= n) + break + } + u = u.next + } + else c = 10 === l.tag && l.type === t.type ? null : l.child + if (null !== c) c.return = l + else + for (c = l; null !== c;) { + if (c === t) { + c = null + break + } + if (null !== (l = c.sibling)) { + ;(l.return = c.return), (c = l) + break + } + c = c.return + } + l = c + } + } + Br(e, t, i.children, n), (t = t.child) + } + return t + case 9: + return ( + (i = t.type), + (r = (a = t.pendingProps).children), + un(t, n), + (r = r((i = dn(i, a.unstable_observedBits)))), + (t.flags |= 1), + Br(e, t, r, n), + t.child + ) + case 14: + return ( + (a = en((i = t.type), t.pendingProps)), Wr(e, t, i, (a = en(i.type, a)), r, n) + ) + case 15: + return Gr(e, t, t.type, t.pendingProps, r, n) + case 17: + return ( + (r = t.type), + (i = t.pendingProps), + (i = t.elementType === r ? i : en(r, i)), + null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)), + (t.tag = 1), + ot(r) ? ((e = !0), ct(t)) : (e = !1), + un(t, n), + On(t, r, i), + kn(t, r, i, n), + qr(null, t, r, !0, e, n) + ) + case 19: + return li(e, t, n) + case 23: + case 24: + return Zr(e, t, n) + } + throw Error(o(156, t.tag)) + }, + Ko = {current: !1}, + Qo = i.unstable_flushAllWithoutAsserting, + Jo = 'function' == typeof Qo + + function ea() { + if (void 0 !== Qo) return Qo() + for (var e = !1; Go();) e = !0 + return e + } + + function ta(e) { + try { + ea() + if (null === Fi) + try { + var t = ('require' + Math.random()).slice(0, 7) + Fi = (lv && lv[t]).call(lv, 'timers').setImmediate + } catch (n) { + Fi = function (e) { + var t = new MessageChannel() + ;(t.port1.onmessage = e), t.port2.postMessage(void 0) + } + } + Fi(function () { + ea() ? ta(e) : e() + }) + } catch (n) { + e(n) + } + } + + var na = 0, + ra = !1 + + function ia(e, t, n, r) { + ;(this.tag = e), + (this.key = n), + (this.sibling = + this.child = + this.return = + this.stateNode = + this.type = + this.elementType = + null), + (this.index = 0), + (this.ref = null), + (this.pendingProps = t), + (this.dependencies = + this.memoizedState = + this.updateQueue = + this.memoizedProps = + null), + (this.mode = r), + (this.flags = 0), + (this.lastEffect = this.firstEffect = this.nextEffect = null), + (this.childLanes = this.lanes = 0), + (this.alternate = null) + } + + function oa(e, t, n, r) { + return new ia(e, t, n, r) + } + + function aa(e) { + return (e = e.prototype) && e.isReactComponent + } + + function la(e, t) { + var n = e.alternate + return ( + null === n + ? (((n = oa(e.tag, t, e.key, e.mode)).elementType = e.elementType), + (n.type = e.type), + (n.stateNode = e.stateNode), + ((n.alternate = e).alternate = n)) + : ((n.pendingProps = t), + (n.type = e.type), + (n.flags = 0), + (n.nextEffect = null), + (n.firstEffect = null), + (n.lastEffect = null)), + (n.childLanes = e.childLanes), + (n.lanes = e.lanes), + (n.child = e.child), + (n.memoizedProps = e.memoizedProps), + (n.memoizedState = e.memoizedState), + (n.updateQueue = e.updateQueue), + (t = e.dependencies), + (n.dependencies = + null === t ? null : {lanes: t.lanes, firstContext: t.firstContext}), + (n.sibling = e.sibling), + (n.index = e.index), + (n.ref = e.ref), + n + ) + } + + function sa(e, t, n, r, i, a) { + var l = 2 + if ('function' == typeof (r = e)) aa(e) && (l = 1) + else if ('string' == typeof e) l = 5 + else + e: switch (e) { + case u: + return ca(n.children, i, a, t) + case x: + ;(l = 8), (i |= 16) + break + case d: + ;(l = 8), (i |= 1) + break + case h: + return ((e = oa(12, n, t, 8 | i)).elementType = h), (e.type = h), (e.lanes = a), e + case v: + return ((e = oa(13, n, t, i)).type = v), (e.elementType = v), (e.lanes = a), e + case y: + return ((e = oa(19, n, t, i)).elementType = y), (e.lanes = a), e + case E: + return ua(n, i, a, t) + case O: + return ((e = oa(24, n, t, i)).elementType = O), (e.lanes = a), e + default: + if ('object' == typeof e && null !== e) + switch (e.$$typeof) { + case p: + l = 10 + break e + case g: + l = 9 + break e + case m: + l = 11 + break e + case b: + l = 14 + break e + case w: + ;(l = 16), (r = null) + break e + case C: + l = 22 + break e + } + throw Error(o(130, null == e ? e : typeof e, '')) + } + return ((t = oa(l, n, t, i)).elementType = e), (t.type = r), (t.lanes = a), t + } + + function ca(e, t, n, r) { + return ((e = oa(7, e, r, t)).lanes = n), e + } + + function ua(e, t, n, r) { + return ((e = oa(23, e, r, t)).elementType = E), (e.lanes = n), e + } + + function da(e, t, n) { + return ((e = oa(6, e, null, t)).lanes = n), e + } + + function fa(e, t, n) { + return ( + ((t = oa(4, null !== e.children ? e.children : [], e.key, t)).lanes = n), + (t.stateNode = { + containerInfo: e.containerInfo, + pendingChildren: null, + implementation: e.implementation, + }), + t + ) + } + + function ha(e, t, n) { + ;(this.tag = t), + (this.containerInfo = e), + (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null), + (this.timeoutHandle = X), + (this.pendingContext = this.context = null), + (this.hydrate = n), + (this.callbackNode = null), + (this.callbackPriority = 0), + (this.eventTimes = wt(0)), + (this.expirationTimes = wt(-1)), + (this.entangledLanes = + this.finishedLanes = + this.mutableReadLanes = + this.expiredLanes = + this.pingedLanes = + this.suspendedLanes = + this.pendingLanes = + 0), + (this.entanglements = wt(0)), + K && (this.mutableSourceEagerHydrationData = null) + } + + function pa(e) { + var t = e._reactInternals + if (void 0 !== t) return null === (e = j(t)) ? null : e.stateNode + if ('function' == typeof e.render) throw Error(o(188)) + throw Error(o(268, Object.keys(e))) + } + + function ga(e, t) { + var n + null !== (e = e.memoizedState) && + null !== e.dehydrated && + ((n = e.retryLane), (e.retryLane = 0 !== n && n < t ? n : t)) + } + + function ma(e, t) { + ga(e, t), (e = e.alternate) && ga(e, t) + } + + function va(e) { + return null === (e = j(e)) ? null : e.stateNode + } + + function ya() { + return null + } + + return ( + (t.IsThisRendererActing = Ko), + (t.act = function (e) { + function t() { + na--, (Gi.current = n), (Ko.current = r) + } + + !1 === ra && + ((ra = !0), + console.error( + 'act(...) is not supported in production builds of React, and might not behave as expected.', + )), + na++ + var n = Gi.current, + r = Ko.current + ;(Gi.current = !0), (Ko.current = !0) + try { + var i = Mo(e) + } catch (o) { + throw (t(), o) + } + if (null !== i && 'object' == typeof i && 'function' == typeof i.then) + return { + then: function (e, r) { + i.then( + function () { + 1 < na || (1 == Jo && !0 === n) + ? (t(), e()) + : ta(function (n) { + t(), n ? r(n) : e() + }) + }, + function (e) { + t(), r(e) + }, + ) + }, + } + try { + 1 !== na || (0 != Jo && !1 !== n) || ea(), t() + } catch (o) { + throw (t(), o) + } + return { + then: function (e) { + e() + }, + } + }), + (t.attemptContinuousHydration = function (e) { + 13 === e.tag && (Po(e, 67108864, So()), ma(e, 67108864)) + }), + (t.attemptHydrationAtCurrentPriority = function (e) { + var t, n + 13 === e.tag && ((t = So()), Po(e, (n = ko(e)), t), ma(e, n)) + }), + (t.attemptSynchronousHydration = function (e) { + switch (e.tag) { + case 3: + var t, + n = e.stateNode + n.hydrate && + ((t = gt(n.pendingLanes)), + (n.expiredLanes |= t & n.pendingLanes), + Lo(n, Wt()), + 0 == (48 & Zi) && (ao(), Yt())) + break + case 13: + var r = So() + Ro(function () { + return Po(e, 1, r) + }), + ma(e, 4) + } + }), + (t.attemptUserBlockingHydration = function (e) { + 13 === e.tag && (Po(e, 4, So()), ma(e, 4)) + }), + (t.batchedEventUpdates = function (e, t) { + var n = Zi + Zi |= 2 + try { + return e(t) + } finally { + 0 === (Zi = n) && (ao(), Yt()) + } + }), + (t.batchedUpdates = Mo), + (t.createComponentSelector = function (e) { + return {$$typeof: Ti, value: e} + }), + (t.createContainer = function (e, t, n) { + return ( + (e = new ha(e, t, n)), + (t = oa(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0)), + ((e.current = t).stateNode = e), + hn(t), + e + ) + }), + (t.createHasPsuedoClassSelector = function (e) { + return {$$typeof: ji, value: e} + }), + (t.createPortal = function (e, t, n) { + var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null + return { + $$typeof: c, + key: null == r ? null : '' + r, + children: e, + containerInfo: t, + implementation: n, + } + }), + (t.createRoleSelector = function (e) { + return {$$typeof: Ii, value: e} + }), + (t.createTestNameSelector = function (e) { + return {$$typeof: Mi, value: e} + }), + (t.createTextSelector = function (e) { + return {$$typeof: Ri, value: e} + }), + (t.deferredUpdates = function (e) { + return Ut(97, e) + }), + (t.discreteUpdates = function (e, t, n, r, i) { + var o = Zi + Zi |= 4 + try { + return Ut(98, e.bind(null, t, n, r, i)) + } finally { + 0 === (Zi = o) && (ao(), Yt()) + } + }), + (t.findAllNodes = Hi), + (t.findBoundingRects = function (e, t) { + if (!ie) throw Error(o(363)) + ; + (t = Hi(e, t)), (e = []) + for (var n = 0; n < t.length; n++) e.push(ae(t[n])) + for (t = e.length - 1; 0 < t; t--) + for ( + var r = (n = e[t]).x, i = r + n.width, a = n.y, l = a + n.height, s = t - 1; + 0 <= s; + s-- + ) + if (t !== s) { + var c = e[s], + u = c.x, + d = u + c.width, + f = c.y, + h = f + c.height + if (u <= r && f <= a && i <= d && l <= h) { + e.splice(t, 1) + break + } + if (!(r !== u || n.width !== c.width || h < a || l < f)) { + a < f && ((c.height += f - a), (c.y = a)), + h < l && (c.height = l - f), + e.splice(t, 1) + break + } + if (!(a !== f || n.height !== c.height || d < r || i < u)) { + r < u && ((c.width += u - r), (c.x = r)), + d < i && (c.width = i - u), + e.splice(t, 1) + break + } + } + return e + }), + (t.findHostInstance = pa), + (t.findHostInstanceWithNoPortals = function (e) { + return null === + (e = (function (e) { + if (!(e = T(e))) return null + for (var t = e; ;) { + if (5 === t.tag || 6 === t.tag) return t + if (t.child && 4 !== t.tag) t = (t.child.return = t).child + else { + if (t === e) break + for (; !t.sibling;) { + if (!t.return || t.return === e) return null + t = t.return + } + ;(t.sibling.return = t.return), (t = t.sibling) + } + } + return null + })(e)) + ? null + : 20 === e.tag + ? e.stateNode.instance + : e.stateNode + }), + (t.findHostInstanceWithWarning = pa), + (t.flushControlled = function (e) { + var t = Zi + Zi |= 1 + try { + Ut(99, e) + } finally { + 0 === (Zi = t) && (ao(), Yt()) + } + }), + (t.flushDiscreteUpdates = function () { + var e + 0 == (49 & Zi) && + (null !== vo && + ((e = vo), + (vo = null), + e.forEach(function (e) { + ;(e.expiredLanes |= 24 & e.pendingLanes), Lo(e, Wt()) + })), + Yt(), + Go()) + }), + (t.flushPassiveEffects = Go), + (t.flushSync = Ro), + (t.focusWithin = function (e, t) { + if (!ie) throw Error(o(363)) + for (t = Ni((e = Di(e)), t), t = Array.from(t), e = 0; e < t.length;) { + var n = t[e++] + if (!se(n)) { + if (5 === n.tag && ue(n.stateNode)) return !0 + for (n = n.child; null !== n;) t.push(n), (n = n.sibling) + } + } + return !1 + }), + (t.getCurrentUpdateLanePriority = function () { + return ht + }), + (t.getFindAllNodesFailureDescription = function (e, t) { + if (!ie) throw Error(o(363)) + var n = 0, + r = [] + e = [Di(e), 0] + for (var i = 0; i < e.length;) { + var a = e[i++], + l = e[i++], + s = t[l] + if ( + (5 !== a.tag || !se(a)) && + (Ai(a, s) && (r.push(zi(s)), n < ++l && (n = l)), l < t.length) + ) + for (a = a.child; null !== a;) e.push(a, l), (a = a.sibling) + } + if (n < t.length) { + for (e = []; n < t.length; n++) e.push(zi(t[n])) + return ( + 'findAllNodes was able to match part of the selector:\n ' + + r.join(' > ') + + '\n\nNo matching component was found for:\n ' + + e.join(' > ') + ) + } + return null + }), + (t.getPublicRootInstance = function (e) { + return (e = e.current).child + ? 5 !== e.child.tag + ? e.child.stateNode + : R(e.child.stateNode) + : null + }), + (t.injectIntoDevTools = function (e) { + if ( + ((e = { + bundleType: e.bundleType, + version: e.version, + rendererPackageName: e.rendererPackageName, + rendererConfig: e.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: a.ReactCurrentDispatcher, + findHostInstanceByFiber: va, + findFiberByHostInstance: e.findFiberByHostInstance || ya, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + }), + 'undefined' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) + ) + e = !1 + else { + var t = __REACT_DEVTOOLS_GLOBAL_HOOK__ + if (!t.isDisabled && t.supportsFiber) + try { + ;(dt = t.inject(e)), (ft = t) + } catch (n) { + } + e = !0 + } + return e + }), + (t.observeVisibleRects = function (e, t, n, r) { + if (!ie) throw Error(o(363)) + e = Hi(e, t) + var i = de(e, n, r).disconnect + return { + disconnect: function () { + i() + }, + } + }), + (t.registerMutableSourceForHydration = function (e, t) { + var n = (n = t._getVersion)(t._source) + null == e.mutableSourceEagerHydrationData + ? (e.mutableSourceEagerHydrationData = [t, n]) + : e.mutableSourceEagerHydrationData.push(t, n) + }), + (t.runWithPriority = function (e, t) { + var n = ht + try { + return (ht = e), t() + } finally { + ht = n + } + }), + (t.shouldSuspend = function () { + return !1 + }), + (t.unbatchedUpdates = function (e, t) { + var n = Zi + Zi = (-2 & Zi) | 8 + try { + return e(t) + } finally { + 0 === (Zi = n) && (ao(), Yt()) + } + }), + (t.updateContainer = function (e, t, n, r) { + var i = t.current, + a = So(), + l = ko(i) + e: if (n) { + t: { + if (_((n = n._reactInternals)) !== n || 1 !== n.tag) throw Error(o(170)) + var s = n + do { + switch (s.tag) { + case 3: + s = s.stateNode.context + break t + case 1: + if (ot(s.type)) { + s = s.stateNode.__reactInternalMemoizedMergedChildContext + break t + } + } + } while (null !== (s = s.return)) + throw Error(o(171)) + } + if (1 === n.tag) { + var c = n.type + if (ot(c)) { + n = st(n, c, s) + break e + } + } + n = s + } else n = et + return ( + null === t.context ? (t.context = n) : (t.pendingContext = n), + ((t = gn(a, l)).payload = {element: e}), + null !== (r = void 0 === r ? null : r) && (t.callback = r), + mn(i, t), + Po(i, l, a), + l + ) + }), + t + ) + }), + (sv.exports = Zr.exports), + sv.exports)), + { + children: !0, + ref: !0, + key: !0, + style: !0, + forwardedRef: !0, + unstable_applyCache: !0, + unstable_applyDrawHitFromCache: !0, + }), + uv = !1, + dv = !1, + fv = '.react-konva-event', + hv = !1, + pv = {} + + function gv(e, t) { + var n, + r, + i, + o = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : pv + for (a in (t === o && console.error('same props'), + !uv && + 'zIndex' in t && + (console.warn( + 'ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor more info see: https://github.com/konvajs/react-konva/issues/194\n', + ), + (uv = !0)), + !dv && + t.draggable && + ((n = void 0 !== t.x || void 0 !== t.y), + (r = t.onDragEnd || t.onDragMove), + n && + !r && + (console.warn( + 'ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.\nPosition of a node will be changed during drag&drop, so you should update state of the react app as well.\nConsider to add onDragMove or onDragEnd events.\nFor more info see: https://github.com/konvajs/react-konva/issues/256\n', + ), + (dv = !0))), + o)) + cv[a] || + ((l = 'on' === a.slice(0, 2)), + (i = o[a] !== t[a]), + l && + i && + ('content' === (c = a.substr(2).toLowerCase()).substr(0, 7) && + (c = 'content' + c.substr(7, 1).toUpperCase() + c.substr(8)), + e.off(c, o[a])), + t.hasOwnProperty(a) || e.setAttr(a, void 0)) + var a, + l, + s, + c, + u = hv || t._useStrictMode, + d = {}, + f = !1, + h = {} + for (a in t) + cv[a] || + ((l = 'on' === a.slice(0, 2)), + (s = o[a] !== t[a]), + l && + s && + ('content' === (c = a.substr(2).toLowerCase()).substr(0, 7) && + (c = 'content' + c.substr(7, 1).toUpperCase() + c.substr(8)), + t[a] && (h[c] = t[a])), + !l && (t[a] !== o[a] || (u && t[a] !== e.getAttr(a))) && ((f = !0), (d[a] = t[a]))) + for (c in (f && (e.setAttrs(d), mv(e)), h)) e.on(c + fv, h[c]) + } + + function mv(e) { + Dp.autoDrawEnabled || ((e = e.getLayer() || e.getStage()) && e.batchDraw()) + } + + var vv = {}, + yv = {} + + function bv(e, t, n) { + t._remove(), e.add(t), t.setZIndex(n.getZIndex()), mv(e) + } + ;(um.Node.prototype._applyProps = gv), (kr = setTimeout), (hp = clearTimeout) + Pp = Object.freeze( + Object.defineProperty( + { + __proto__: null, + appendInitialChild: function (e, t) { + 'string' == typeof t + ? console.error( + 'Do not use plain text as child of Konva.Node. You are using text: ' + t, + ) + : (e.add(t), mv(e)) + }, + createInstance: function (e, t, n) { + var r, + i = um[e], + o = + (i || + (console.error( + 'Konva has no node with the type ' + + e + + '. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/' + + e + + '" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html', + ), + (i = um.Group)), + {}), + a = {} + for (r in t) 'on' === r.slice(0, 2) ? (a[r] = t[r]) : (o[r] = t[r]) + return gv((e = new i(o)), a), e + }, + createTextInstance: function (e, t, n) { + console.error( + 'Text components are not supported for now in ReactKonva. Your text is: "' + e + '"', + ) + }, + finalizeInitialChildren: function (e, t, n) { + return !1 + }, + getPublicInstance: function (e) { + return e + }, + prepareForCommit: function () { + return null + }, + preparePortalMount: function () { + return null + }, + prepareUpdate: function (e, t, n, r) { + return yv + }, + resetAfterCommit: function () { + }, + resetTextContent: function (e) { + }, + shouldDeprioritizeSubtree: function (e, t) { + return !1 + }, + getRootHostContext: function () { + return vv + }, + getChildHostContext: function () { + return vv + }, + scheduleTimeout: kr, + cancelTimeout: hp, + noTimeout: -1, + shouldSetTextContent: function (e, t) { + return !1 + }, + isPrimaryRenderer: !1, + warnsIfNotActing: !0, + supportsMutation: !0, + appendChild: function (e, t) { + t.parent === e ? t.moveToTop() : e.add(t), mv(e) + }, + appendChildToContainer: function (e, t) { + t.parent === e ? t.moveToTop() : e.add(t), mv(e) + }, + insertBefore: bv, + insertInContainerBefore: function (e, t, n) { + bv(e, t, n) + }, + removeChild: function (e, t) { + t.destroy(), t.off(fv), mv(e) + }, + removeChildFromContainer: function (e, t) { + t.destroy(), t.off(fv), mv(e) + }, + commitTextUpdate: function (e, t, n) { + console.error( + 'Text components are not yet supported in ReactKonva. You text is: "' + n + '"', + ) + }, + commitMount: function (e, t, n) { + }, + commitUpdate: function (e, t, n, r, i) { + gv(e, i, r) + }, + hideInstance: function (e) { + e.hide(), mv(e) + }, + hideTextInstance: function (e) { + }, + unhideInstance: function (e, t) { + ;(null != t.visible && !t.visible) || e.show() + }, + unhideTextInstance: function (e, t) { + }, + clearContainer: function (e) { + }, + now: ge.exports.unstable_now, + idlePriority: ge.exports.unstable_IdlePriority, + run: ge.exports.unstable_runWithPriority, + }, + Symbol.toStringTag, + {value: 'Module'}, + ), + ) + var wv = + Object.assign || + function (e) { + for (var t = 1; t < arguments.length; t++) { + var n, + r = arguments[t] + for (n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]) + } + return e + } + + function Cv(e) { + function t(t) { + var n = e.forwardedRef + n && ('function' == typeof n ? n(t) : (n.current = t)) + } + + var n, + r, + i = he.useRef(), + o = he.useRef(), + a = he.useRef(), + l = + ((n = e), + (r = he.useRef()), + he.useLayoutEffect(function () { + r.current = n + }), + r.current) + return ( + he.useLayoutEffect(function () { + return ( + (o.current = new um.Stage({ + width: e.width, + height: e.height, + container: i.current, + })), + t(o.current), + (a.current = Pv.createContainer(o.current)), + Pv.updateContainer(e.children, a.current), + function () { + um.isBrowser && + (t(null), Pv.updateContainer(null, a.current, null), o.current.destroy()) + } + ) + }, []), + he.useLayoutEffect(function () { + t(o.current), gv(o.current, e, l), Pv.updateContainer(e.children, a.current, null) + }), + he.createElement('div', { + ref: i, + accessKey: e.accessKey, + className: e.className, + role: e.role, + style: e.style, + tabIndex: e.tabIndex, + title: e.title, + }) + ) + } + + function xv(e, t, n, r) { + return Math.min(e / n, t / r) || 1 + } + + var Ev = 'Layer', + Ov = 'Ellipse', + Sv = 'Image', + kv = 'Transformer', + Pv = s(Pp), + _v = + (Pv.injectIntoDevTools({ + findHostInstanceByFiber: function () { + return null + }, + bundleType: 0, + version: he.version, + rendererPackageName: 'react-konva', + }), + he.forwardRef(function (e, t) { + return he.createElement(Cv, wv({}, e, {forwardedRef: t})) + })), + Lv = 'FIE_root', + Tv = 'FIE_transformers-layer', + jv = 'FIE_original-image', + Iv = 'FIE_nodes-transformer', + Mv = 'watermark', + Rv = '353297d2-40b4-4684-a875-45a2178a8157', + Dv = { + FINETUNE: 'Finetune', + FILTERS: 'Filters', + ADJUST: 'Adjust', + WATERMARK: 'Watermark', + ANNOTATE: 'Annotate', + RESIZE: 'Resize', + }, + Av = { + CROP: 'Crop', + ROTATE: 'Rotate', + FLIP_X: 'Flip_X', + FLIP_Y: 'Flip_Y', + BRIGHTNESS: 'Brightness', + CONTRAST: 'Contrast', + HSV: 'HueSaturationValue', + WARMTH: 'Warmth', + BLUR: 'Blur', + THRESHOLD: 'Threshold', + POSTERIZE: 'Posterize', + PIXELATE: 'Pixelate', + NOISE: 'Noise', + FILTERS: 'Filters', + RECT: 'Rect', + ELLIPSE: 'Ellipse', + POLYGON: 'Polygon', + TEXT: 'Text', + LINE: 'Line', + IMAGE: 'Image', + ARROW: 'Arrow', + WATERMARK: 'Watermark', + PEN: 'Pen', + RESIZE: 'Resize', + }, + zv = ['png', 'jpeg', 'jpg', 'webp'], + Nv = [].concat(zv, ['svg', 'gif', 'avif', 'apng']), + Hv = zv[0], + Fv = { + DEFAULT: 'default', + DRAW: 'crosshair', + SELECT: 'pointer', + MOVE: 'move', + DRAG: 'GRAB', + }, + Bv = 'original', + Vv = 'ellipse', + Wv = { + TOP_LEFT: 'top-left', + TOP_CENTER: 'top-center', + TOP_RIGHT: 'top-right', + MIDDLE_LEFT: 'middle-left', + MIDDLE_CENTER: 'middle-center', + MIDDLE_RIGHT: 'middle-right', + BOTTOM_LEFT: 'bottom-left', + BOTTOM_CENTER: 'bottom-center', + BOTTOM_RIGHT: 'bottom-right', + }, + Gv = 14, + Zv = 14, + Uv = 'close-button-clicked', + Xv = 'warning', + Yv = 'error' + + function qv(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function $v(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? qv(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : qv(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var Kv = 'ADD_FILTER' + + function Qv(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Jv(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Qv(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Qv(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var ey = 'HIDE_LOADER' + + function ty(e) { + return Lp(e) || zh(e) || Nh(e) || Tp() + } + + n( + (rE = { + theme: { + palette: {'bg-primary-active': '#ECF3FF'}, + typography: {fontFamily: 'Roboto, Arial'}, + }, + annotationsCommon: { + fill: '#000000', + stroke: '#000000', + strokeWidth: 0, + shadowOffsetX: 0, + shadowOffsetY: 0, + shadowBlur: 0, + shadowColor: '#000000', + shadowOpacity: 1, + opacity: 1, + }, + }), + Av.TEXT, + { + text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', + fontFamily: 'Arial', + fonts: [ + {label: 'Arial', value: 'Arial'}, + 'Tahoma', + 'Sans-serif', + {label: 'Comic Sans', value: 'Comic-sans'}, + ], + fontSize: 14, + letterSpacing: 0, + lineHeight: 1, + align: 'left', + fontStyle: 'normal', + onFontChange: void 0, + }, + ), + n(rE, Av.IMAGE, {fill: void 0}), + n(rE, Av.RECT, {cornerRadius: 0}), + n(rE, Av.ELLIPSE, {}), + n(rE, Av.POLYGON, {sides: 3}), + n(rE, Av.PEN, {strokeWidth: 1, tension: 0.5, lineCap: 'round'}), + n(rE, Av.LINE, {lineCap: 'butt', strokeWidth: 1}), + n(rE, Av.ARROW, { + strokeWidth: 6, + lineCap: 'butt', + pointerLength: void 0, + pointerWidth: void 0, + }), + n(rE, Av.WATERMARK, {gallery: []}), + n(rE, Av.CROP, { + minWidth: Gv, + minHeight: Zv, + width: null, + height: null, + maxWidth: null, + maxHeight: null, + ratio: 'original', + ratioTitleKey: void 0, + noPresets: !1, + autoResize: !1, + presetsItems: [], + presetsFolders: [], + }), + n(rE, 'tabsIds', []), + n(rE, 'defaultTabId', Dv.ADJUST), + n(rE, 'defaultToolId', Av.CROP), + n(rE, 'onClose', void 0), + n(rE, 'onSave', void 0), + n(rE, 'onBeforeSave', void 0), + n(rE, 'closeAfterSave', !1), + n(rE, 'defaultSavedImageName', void 0), + n(rE, 'defaultSavedImageType', null), + n(rE, 'forceToPngInEllipticalCrop', !1), + n(rE, 'useBackendTranslations', !0), + n(rE, 'translations', null), + n(rE, 'language', 'en'), + n(rE, 'avoidChangesNotSavedAlertOnLeave', !1), + n(rE, 'loadableDesignState', null), + n(rE, 'moreSaveOptions', []), + n(rE, 'savingPixelRatio', 4), + n(rE, 'previewPixelRatio', (window && window.devicePixelRatio) || 1), + n(rE, 'showBackButton', !1), + n(rE, 'useCloudimage', !1), + n(rE, 'cloudimage', { + token: '', + dontPrefixUrl: !1, + domain: 'cloudimg.io', + version: '', + loadableQuery: '', + secureProtocol: !0, + imageSealing: {enable: !1, salt: '', charCount: 10, includeParams: []}, + }), + n(rE, 'observePluginContainerSize', !1), + n(rE, 'showCanvasOnly', !1), + n(rE, 'getCurrentImgDataFnRef', void 0), + n(rE, 'onModify', void 0), + n(rE, 'onLoaded', void 0), + n(rE, 'useZoomPresetsMenu', !0), + n(rE, 'disableZooming', !1) + var ny = rE + + function ry(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = 100 < (t[r] + t[r + 1] + t[r + 2]) / 3 ? 255 : 0 + ;(t[r] = i), (t[r + 1] = i), (t[r + 2] = i) + } + } + + var iy = function (e, t) { + return ( + (t = 1 < (t = t) ? 1 : t), + [e[0] + (t = ~~(255 * (t = t < -1 ? -1 : t))), e[1] + t, e[2] + t] + ) + }, + oy = function (e, t) { + return [ + (t = (259 * (255 + (t *= 255))) / (255 * (259 - t))) * (e[0] - 128) + 128, + t * (e[1] - 128) + 128, + t * (e[2] - 128) + 128, + ] + }, + ay = function (e, t) { + t = (t = t) < -1 ? -1 : t + var n = e[0], + r = e[1], + i = 0.2989 * n + 0.587 * r + 0.114 * (e = e[2]) + return [-i * t + n * (1 + t), -i * t + r * (1 + t), -i * t + e * (1 + t)] + }, + ly = function (e) { + var t = e[0], + n = e[1] + e = e[2] + return [, , ,].fill(0.2126 * t + 0.7152 * n + 0.0722 * e) + }, + sy = function (e, t) { + var n = e[0], + r = e[1] + return [ + n * (1 - 0.607 * t) + 0.769 * r * t + 0.189 * (e = e[2]) * t, + 0.349 * n * t + r * (1 - 0.314 * t) + 0.168 * e * t, + 0.272 * n * t + 0.534 * r * t + e * (1 - 0.869 * t), + ] + }, + cy = function (e, t) { + return [e[0] * t[0], e[1] * t[1], e[2] * t[2]] + }, + uy = function (e, t) { + var n = e[0], + r = e[1], + i = ((e = e[2]), t[3]) + return [n - (n - t[0]) * i, r - (r - t[1]) * i, e - (e - t[2]) * i] + } + + function dy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.15), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function fy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(sy([t[r], t[r + 1], t[r + 2]], 0.04), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], -0.15), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function hy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(ly([t[r], t[r + 1], t[r + 2]]), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var py = [1, 1.03, 1.05] + + function gy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.08), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(cy([t[r], t[r + 1], t[r + 2]], py), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.12), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function my(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(sy([t[r], t[r + 1], t[r + 2]], 0.4), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.13), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], -0.05), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var vy = [1.01, 1.04, 1] + + function yy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(cy([t[r], t[r + 1], t[r + 2]], vy), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.3), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function by(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], -0.5), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var wy = [1.04, 1, 1.02] + + function Cy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(cy([t[r], t[r + 1], t[r + 2]], wy), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], -0.05), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function xy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.05), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], -0.03), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Ey = [228, 130, 225, 0.13] + + function Oy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], Ey), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], -0.2), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Sy = [1.05, 1.1, 1] + + function ky(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(cy([t[r], t[r + 1], t[r + 2]], Sy), 3) + ;(t[r] = i[0]), (t[r + 1] = i[1]), (t[r + 2] = i[2]) + } + } + + function Py(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.3), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.15), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var _y = [230, 115, 108, 0.05] + + function Ly(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], _y), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.15), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Ty = [255, 170, 0, 0.1] + + function jy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], Ty), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.09), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Iy = [1, 1, 1.25] + + function My(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(cy([t[r], t[r + 1], t[r + 2]], Iy), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.15), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Ry = [255, 225, 80, 0.08] + + function Dy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], Ry), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.05), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Ay = [255, 255, 0, 0.07] + + function zy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], Ay), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.2), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.15), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function Ny(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(oy([t[r], t[r + 1], t[r + 2]], -0.15), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Hy = [100, 28, 210, 0.03] + + function Fy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(ly([t[r], t[r + 1], t[r + 2]]), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(uy([t[r], t[r + 1], t[r + 2]], Hy), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function By(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.15), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.2), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function Vy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.1), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.15), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Wy = [220, 115, 188, 0.12] + + function Gy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], Wy), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], -0.05), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function Zy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(sy([t[r], t[r + 1], t[r + 2]], 0.3), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Uy = [255, 225, 0, 0.05] + + function Xy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], Uy), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.06), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.06), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Yy = [255, 165, 40, 0.2] + + function qy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], Yy), 3) + ;(t[r] = i[0]), (t[r + 1] = i[1]), (t[r + 2] = i[2]) + } + } + + var $y = [140, 10, 185, 0.1] + + function Ky(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.2), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(uy([t[r], t[r + 1], t[r + 2]], $y), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function Qy(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(iy([t[r], t[r + 1], t[r + 2]], -0.1), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], -0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Jy = [255, 145, 0, 0.2] + + function eb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(sy([t[r], t[r + 1], t[r + 2]], 0.1), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(uy([t[r], t[r + 1], t[r + 2]], Jy), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var tb = [255, 255, 0, 0.2] + + function nb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(uy([t[r], t[r + 1], t[r + 2]], tb), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var rb = [255, 25, 0, 0.15] + + function ib(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], rb), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var ob = [255, 140, 0, 0.1], + ab = [1.15, 1.05, 1] + + function lb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], ob), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(cy([t[r], t[r + 1], t[r + 2]], ab), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.35), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var sb = [225, 240, 0, 0.1] + + function cb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], sb), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.25), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.05), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function ub(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(sy([t[r], t[r + 1], t[r + 2]], 0.06), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function db(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(ay([t[r], t[r + 1], t[r + 2]], 0.35), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + function fb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.15), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var hb = [25, 240, 252, 0.05] + + function pb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], hb), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(sy([t[r], t[r + 1], t[r + 2]], 0.3), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var gb = [208, 208, 86, 0.2] + + function mb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], gb), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.15), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var vb = [255, 160, 25, 0.1] + + function yb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], vb), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(iy([t[r], t[r + 1], t[r + 2]], 0.1), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var bb = [255, 50, 80, 0.12] + + function wb(e) { + for (var t = e.data, n = t.length, r = 0; r < n; r += 4) { + var i = jp(uy([t[r], t[r + 1], t[r + 2]], bb), 3) + ;(t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]), + (i = jp(oy([t[r], t[r + 1], t[r + 2]], 0.05), 3)), + (t[r] = i[0]), + (t[r + 1] = i[1]), + (t[r + 2] = i[2]) + } + } + + var Cb = Object.freeze( + Object.defineProperty( + { + __proto__: null, + BlackAndWhite: ry, + Clarendon: dy, + Gingham: fy, + Moon: hy, + Lark: gy, + Reyes: my, + Juno: yy, + Slumber: by, + Crema: Cy, + Ludwig: xy, + Aden: Oy, + Perpetua: ky, + Amaro: Py, + Mayfair: Ly, + Rise: jy, + Hudson: My, + Valencia: Dy, + XPro2: zy, + Sierra: Ny, + Willow: Fy, + LoFi: By, + Hefe: Vy, + Nashville: Gy, + Stinson: Zy, + Vesper: Xy, + Earlybird: qy, + Brannan: Ky, + Sutro: Qy, + Toaster: eb, + Walden: nb, + NinteenSeventySeven: ib, + Kelvin: lb, + Maven: cb, + Ginza: ub, + Skyline: db, + Dogpatch: fb, + Brooklyn: pb, + Helena: mb, + Ashby: yb, + Charmes: wb, + }, + Symbol.toStringTag, + {value: 'Module'}, + ), + ), + xb = function (e) { + return e ? Cb[e] || av.Filters[e] : null + } + + function Eb(e) { + for (var t = this.warmth(), n = e.data, r = n.length, i = 0; i < r; i += 4) + (n[i] += t), (n[i + 2] -= t) + } + + tg.addGetterSetter(av.Image, 'warmth', 0, Xp(), tg.afterSetFilter), + tg.addGetterSetter(av.Image, 'threshold', 0, Xp, tg.afterSetFilter) + var Ob = Object.freeze( + Object.defineProperty( + { + __proto__: null, + Warmth: Eb, + CustomThreshold: function (e) { + for (var t = this.threshold(), n = e.data, r = n.length, i = 0; i < r; i += 4) + 0 !== t && + ((n[i] = n[i] >= t ? 255 : 0), + (n[i + 1] = n[i + 1] >= t ? 255 : 0), + (n[i + 2] = n[i + 2] >= t ? 255 : 0)) + }, + }, + Symbol.toStringTag, + {value: 'Module'}, + ), + ), + Sb = function (e) { + return Array.isArray(e) && 0 < e.length + ? e.map(function (e) { + return av.Filters[e] || Ob[e] + }) + : [] + } + + function kb(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Pb(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? kb(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : kb(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var _b = function () { + var e, + t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, + n = Pb({}, t.loadableDesignState) + return ( + Array.isArray(n.finetunes) && (n.finetunes = Sb(n.finetunes)), + n.filter && (n.filter = xb(n.filter)), + Pb( + Pb( + { + imgSrc: + 'string' == typeof t.source + ? t.source + : (null == (e = t.source) ? void 0 : e.src) || '', + finetunes: [], + finetunesProps: {}, + filter: null, + adjustments: { + crop: { + ratio: t[Av.CROP].ratio, + ratioTitleKey: null != (e = t[Av.CROP].ratioTitleKey) ? e : t[Av.CROP].ratio, + width: null, + height: null, + x: 0, + y: 0, + }, + isFlippedX: !1, + isFlippedY: !1, + rotation: 0, + }, + annotations: {}, + resize: {}, + shownImageDimensions: {}, + }, + n, + ), + {}, + { + pointerCssIcon: Fv.DEFAULT, + canvasScale: 1, + zoom: {factor: 1, x: null, y: null}, + isLoadingGlobally: t.isLoadingGlobally || !0, + selectionsIds: [], + tabId: t.defaultTabId || null, + toolId: t.defaultToolId || null, + feedback: {}, + pastDesignStates: [], + futureDesignStates: [], + isResetted: !0, + haveNotSavedChanges: !1, + latestColor: void 0, + }, + ) + ) + }, + Lb = function (e, t) { + return ( + (t = _b(t ? e : ny)), + { + imgSrc: e.imgSrc || t.imgSrc, + finetunes: e.finetunes || t.finetunes, + finetunesProps: e.finetunesProps || t.finetunesProps, + filter: e.filter || t.filter, + adjustments: e.adjustments || t.adjustments, + annotations: e.annotations || t.annotations, + resize: e.resize || t.resize, + } + ) + } + + function Tb(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function jb(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Tb(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Tb(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var Ib = 'REDO' + + function Mb(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Rb(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Mb(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Mb(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var Db = 'RESET' + + function Ab(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function zb(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Ab(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Ab(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var Nb = 'SET_FEEDBACK' + + function Hb(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Fb(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Hb(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Hb(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var Bb = 'SHOW_LOADER' + + function Vb(e, t) { + var n = l.exports.forwardRef(e) + return (n.displayName = t || e.name), n + } + + function Wb(e) { + return Bd(['color:', ' !important;'], e.theme.palette[pp.Error]) + } + + function Gb(e) { + var t = e.id, + n = e.label, + r = e.onClick, + i = e.Icon, + o = e.isSelected, + a = e.children, + s = + ((e = e.className), + l.exports.useCallback(function (e) { + r(t, e) + }, [])) + return he.createElement( + nw, + {className: e, onClick: s, 'aria-selected': o}, + he.createElement(i, {size: 16}), + n && he.createElement(rw, null, n), + a, + ) + } + + function Zb(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_brightness-tool-button', + id: Av.BRIGHTNESS, + label: e('brightnessTool'), + Icon: Xb, + onClick: t, + isSelected: n, + }) + } + + var Ub = ['color', 'stroke', 'size'], + Xb = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.stroke) ? 'currentColor' : r, + i = void 0 === (i = e.size) ? 14 : i + e = Yc(e, Ub) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: i, + height: i, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M23.54 1.53186C23.54 0.96198 24.002 0.5 24.5719 0.5C25.1417 0.5 25.6037 0.961981 25.6037 1.53186V5.82108C25.6037 6.39096 25.1417 6.85294 24.5719 6.85294C24.002 6.85294 23.54 6.39096 23.54 5.82108V1.53186ZM23.54 43.1985C23.54 42.6287 24.002 42.1667 24.5719 42.1667C25.1417 42.1667 25.6037 42.6287 25.6037 43.1985V47.4877C25.6037 48.0576 25.1417 48.5196 24.5719 48.5196C24.002 48.5196 23.54 48.0576 23.54 47.4877V43.1985ZM47.4876 23.5397C48.0574 23.5397 48.5194 24.0017 48.5194 24.5716C48.5194 25.1415 48.0574 25.6034 47.4876 25.6034H43.1983C42.6285 25.6034 42.1665 25.1415 42.1665 24.5716C42.1665 24.0017 42.6285 23.5397 43.1984 23.5397H47.4876ZM5.8209 23.5397C6.39078 23.5397 6.85276 24.0017 6.85276 24.5716C6.85276 25.1415 6.39078 25.6034 5.82089 25.6034H1.53168C0.961798 25.6034 0.499817 25.1415 0.499817 24.5716C0.499817 24.0017 0.961797 23.5397 1.53168 23.5397H5.8209ZM41.6177 39.8976C42.0207 40.3006 42.0207 40.9539 41.6177 41.3569C41.2147 41.7599 40.5614 41.7599 40.1584 41.3569L37.1255 38.324C36.7225 37.921 36.7225 37.2677 37.1255 36.8647C37.5285 36.4617 38.1818 36.4617 38.5848 36.8647L41.6177 39.8976ZM12.1551 10.4347C12.558 10.8377 12.558 11.491 12.1551 11.894C11.7521 12.297 11.0988 12.297 10.6958 11.894L7.66285 8.86105C7.25989 8.45808 7.25989 7.80474 7.66286 7.40178C8.06582 6.99881 8.71916 6.99881 9.12213 7.40178L12.1551 10.4347ZM9.12179 41.617C8.71882 42.0199 8.06548 42.0199 7.66251 41.617C7.25955 41.214 7.25955 40.5607 7.66251 40.1577L10.6954 37.1248C11.0984 36.7218 11.7518 36.7218 12.1547 37.1248C12.5577 37.5277 12.5577 38.1811 12.1547 38.584L9.12179 41.617ZM38.5862 12.1549C38.1832 12.5579 37.5299 12.5579 37.1269 12.1549C36.724 11.752 36.724 11.0986 37.1269 10.6957L40.1599 7.66274C40.5628 7.25977 41.2162 7.25977 41.6191 7.66274C42.0221 8.06571 42.0221 8.71905 41.6191 9.12201L38.5862 12.1549ZM38.7161 24.5098C38.7161 32.3555 32.3559 38.7157 24.5102 38.7157C16.6645 38.7157 10.3043 32.3555 10.3043 24.5098C10.3043 16.6641 16.6645 10.3039 24.5102 10.3039C32.3559 10.3039 38.7161 16.6641 38.7161 24.5098ZM24.5102 36.652C31.2161 36.652 36.6524 31.2157 36.6524 24.5098C36.6524 17.8039 31.2161 12.3676 24.5102 12.3676C17.8043 12.3676 12.3681 17.8039 12.3681 24.5098C12.3681 31.2157 17.8043 36.652 24.5102 36.652Z', + fill: n, + stroke: r, + }), + ) + }), + Yb = {Default: 'default', Localization: 'localization'}, + qb = Wh({ + Label: fe.label + .attrs({className: Fh('Label', 'root')}) + .withConfig({componentId: 'sc-16k2ql4-0'})(function (e) { + var t = e.error, + n = e.htmlFor + return Bd( + [ + 'display:flex;align-items:center;color:', + ';font-style:normal;font-weight:normal;font-size:12px;line-height:14px;cursor:', + ';', + ';', + ], + e.theme.palette[pp.TextSecondary], + n && 'pointer', + void 0 !== t && t && Wb, + ) + }), + Icon: fe.span + .attrs({className: Fh('Label', 'Icon')}) + .withConfig({componentId: 'sc-16k2ql4-1'})(function (e) { + var t = e.error, + n = e.theme.palette + return Bd( + ['display:flex;', ';color:', ';', ''], + void 0 !== (e = e.$end) && e ? 'margin-left: 4px' : 'margin-right: 4px', + n[pp.IconsPrimary], + void 0 !== t && t ? 'color: '.concat(n[pp.Error], ';') : '', + ) + }), + }), + $b = ['children', 'iconStart', 'iconEnd', 'error', 'type'], + Kb = Bh(function (e, t) { + function n(e, t) { + return he.createElement( + qb.Icon, + {error: Boolean(a), $end: t}, + 'function' == typeof e ? e() : e, + ) + } + + var r = e.children, + i = e.iconStart, + o = e.iconEnd, + a = e.error, + l = e.type + e = Yc(e, $b) + return he.createElement( + qb.Label, + Ip({ref: t, error: a, type: l}, e), + i && n(i, !1), + r, + o && n(o, !0), + ) + }), + Qb = + ((Kb.defaultProps = {type: Yb.Default, error: !1}), + { + type: on.oneOf(Vh(Yb)), + iconStart: on.oneOfType([on.node, on.func]), + iconEnd: on.oneOfType([on.node, on.func]), + error: on.bool, + htmlFor: on.string, + }), + Jb = ((Kb.propTypes = Qb), Kb), + ew = fe.div.withConfig({componentId: 'sc-dwg14p-0'})([ + "padding:8px 1px 0;width:fit-content;margin:0 auto;max-width:99.5%;max-height:92px;[data-phone='true'] &{padding:0;margin-top:8px;max-height:initial;}", + ]), + tw = fe.div.withConfig({componentId: 'sc-dwg14p-1'})( + ["display:flex;align-items:center;overflow-x:auto;[data-phone='true'] &{background:", ';}'], + function (e) { + return e.theme.palette['bg-primary'] + }, + ), + nw = fe.div.withConfig({componentId: 'sc-dwg14p-2'})(function (e) { + return ( + (e = e.theme), + '\n display: flex;\n border-radius: 2px;\n align-items: center;\n justify-content: center;\n padding: 8px;\n\n &:not(:last-child) {\n margin-right: 8px;\n }\n\n &,\n * {\n cursor: pointer;\n }\n\n &:hover {\n background: ' + .concat( + e.palette['bg-primary-active'], + ";\n }\n\n &[aria-selected='true'] {\n background: ", + ) + .concat(e.palette['bg-primary-active'], ';\n\n * {\n color: ') + .concat(e.palette['accent-primary-active'], ';\n }\n }\n ') + ) + }), + rw = fe(Jb).withConfig({componentId: 'sc-dwg14p-3'})(['margin-left:6px;']), + iw = fe.div.withConfig({componentId: 'sc-dwg14p-4'})( + [ + 'position:relative;width:100%;transition:max-height 100ms ease-in-out;display:flex;justify-content:center;align-items:center;', + ';', + ], + function (e) { + return '\n max-height: ' + .concat(e.hasChildren ? '40px' : 0, ';\n margin: ') + .concat(e.hasChildren ? '0 auto 8px' : 0, ';\n ') + }, + ), + ow = + ((Gb.defaultProps = { + isSelected: !1, + id: void 0, + children: null, + label: '', + }), + l.exports.memo(Gb)), + aw = ((Zb.defaultProps = {isSelected: !1}), l.exports.createContext({})), + lw = { + name: 'Name', + save: 'Save', + saveAs: 'Save as', + back: 'Back', + loading: 'Loading...', + resetOperations: 'Reset/delete all operations', + changesLoseConfirmation: 'All changes will be lost', + changesLoseConfirmationHint: 'Are you sure you want to continue?', + cancel: 'Cancel', + continue: 'Continue', + undoTitle: 'Undo last operation', + redoTitle: 'Redo last operation', + showImageTitle: 'Show original image', + zoomInTitle: 'Zoom in', + zoomOutTitle: 'Zoom out', + toggleZoomMenuTitle: 'Toggle zoom menu', + adjustTab: 'Adjust', + finetuneTab: 'Finetune', + filtersTab: 'Filters', + watermarkTab: 'Watermark', + annotateTab: 'Draw', + resize: 'Resize', + resizeTab: 'Resize', + invalidImageError: 'Invalid image provided.', + uploadImageError: 'Error while uploading the image.', + areNotImages: 'are not images', + isNotImage: 'is not image', + toBeUploaded: 'to be uploaded', + cropTool: 'Crop', + original: 'Original', + custom: 'Custom', + square: 'Square', + landscape: 'Landscape', + portrait: 'Portrait', + ellipse: 'Ellipse', + classicTv: 'Classic TV', + cinemascope: 'Cinemascope', + arrowTool: 'Arrow', + blurTool: 'Blur', + brightnessTool: 'Brightness', + contrastTool: 'Contrast', + ellipseTool: 'Ellipse', + unFlipX: 'Un-Flip X', + flipX: 'Flip X', + unFlipY: 'Un-Flip Y', + flipY: 'Flip Y', + hsvTool: 'HSV', + hue: 'Hue', + saturation: 'Saturation', + value: 'Value', + imageTool: 'Image', + importing: 'Importing...', + addImage: '+ Add image', + lineTool: 'Line', + penTool: 'Pen', + polygonTool: 'Polygon', + sides: 'Sides', + rectangleTool: 'Rectangle', + cornerRadius: 'Corner Radius', + resizeWidthTitle: 'Width in pixels', + resizeHeightTitle: 'Height in pixels', + toggleRatioLockTitle: 'Toggle ratio lock', + reset: 'Reset', + resetSize: 'Reset to original image size', + rotateTool: 'Rotate', + textTool: 'Text', + textSpacings: 'Text spacings', + textAlignment: 'Text alignment', + fontFamily: 'Font family', + size: 'Size', + letterSpacing: 'Letter Spacing', + lineHeight: 'Line height', + warmthTool: 'Warmth', + addWatermark: '+ Add watermark', + addWatermarkTitle: 'Choose the watermark type', + uploadWatermark: 'Upload watermark', + addWatermarkAsText: 'Add as text', + padding: 'Padding', + shadow: 'Shadow', + horizontal: 'Horizontal', + vertical: 'Vertical', + blur: 'Blur', + opacity: 'Opacity', + position: 'Position', + stroke: 'Stroke', + saveAsModalLabel: 'Save the image as', + extension: 'Extension', + nameIsRequired: 'Name is required.', + quality: 'Quality', + imageDimensionsHoverTitle: 'Saved image size (width x height)', + cropSizeLowerThanResizedWarning: + 'Note, the selected crop area is lower than the applied resize which might cause quality decrease', + actualSize: 'Actual size (100%)', + fitSize: 'Fit size', + } + + function sw(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function cw(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? sw(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : sw(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function uw(e) { + return hw[e] || e || '' + } + + function dw(e, t) { + return (iT[t.type] && iT[t.type](e, t.payload)) || e + } + + var fw = {}, + hw = cw({}, lw), + pw = 'Error while loading translations from backend.', + gw = function () { + var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, + t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 'en' + return Object.assign(hw, fw[null == t ? void 0 : t.toLowerCase()] || {}, e) + }, + mw = function () { + var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : [] + return new Promise(function (t, n) { + var r = new XMLHttpRequest() + ;(r.responseType = 'json'), + (r.onload = function () { + var e + 200 <= r.status && r.status < 300 + ? t(r.response) + : (console.warn( + 'Error in sending translation key to backend ' + .concat(null == (e = r.response) ? void 0 : e.hint, ', ') + .concat(r.status), + ), + n()) + }), + (r.onerror = function () { + var e + console.warn( + 'Error in sending translation key to backend ' + .concat(null == (e = r.response) ? void 0 : e.hint, ', ') + .concat(r.status), + ), + n() + }), + r.open( + 'POST', + 'https://neo.wordplex.io/api/import/request-translations?grid_uuid='.concat(Rv), + ), + r.send(JSON.stringify({grid_uuid: Rv, translations_requests: e})) + }) + } + + function vw(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function yw(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? vw(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : vw(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function bw(e) { + var t = e.children, + n = void 0 === (e = e.config) ? {} : e, + r = (e = jp(sC(dw, _b(n), n), 2))[0], + i = e[1], + o = + (l.exports.useEffect(function () { + return ( + (ww = !0), + function () { + ww = !1 + } + ) + }, []), + l.exports.useCallback( + function () { + ww && i.apply(void 0, arguments) + }, + [i], + )), + a = + (l.exports.useEffect( + function () { + gw(n.translations, n.language) + }, + [n.useBackendTranslations, n.language, n.translations], + ), + l.exports.useContext(nf)) + e = l.exports.useMemo( + function () { + return yw(yw({}, r), {}, {config: n, theme: a, dispatch: o, t: uw}) + }, + [n, r], + ) + return he.createElement(aw.Provider, {value: e}, t) + } + + var ww = !0, + Cw = + ((bw.defaultProps = {config: {}}), + function (e) { + var t = e.children + e = e.overridingValue + return he.createElement(aw.Provider, {value: e}, t) + }), + xw = function () { + return l.exports.useContext(aw) + } + + function Ew(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Ow(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Ew(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Ew(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function Sw(e, t) { + var n = xw(), + r = n.dispatch, + i = n.finetunes, + o = n.finetunesProps, + a = l.exports.useCallback(function (t) { + r({type: U_, payload: {finetune: e, finetuneProps: t}}) + }, []) + return ( + l.exports.useEffect(function () { + i.includes(e) || a(Ow(Ow({}, t), o)) + }, []), + l.exports.useMemo( + function () { + return [o, a] + }, + [o], + ) + ) + } + + function kw(e) { + if (!e) return null + e = e.getBoundingClientRect() + var t = document.body, + n = (r = jw()).topOffset, + r = r.leftOffset, + i = (o = document.documentElement).clientTop || t.clientTop || 0, + o = o.clientLeft || t.clientLeft || 0 + ;(t = e.top + n - i), (n = e.left + r - o) + return { + top: Math.round(t), + left: Math.round(n), + width: e.width, + height: e.height, + } + } + + function Pw() { + var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, + t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, + n = (e = e.parent).getStage(), + r = n.attrs.zoomFactor, + i = e.getRelativePointerPosition() + return { + offsetX: Iw(i.x, 0, t.width / (n.scaleX() / r)) + e.attrs.xPadding, + offsetY: Iw(i.y, 0, t.height / (n.scaleY() / r)) + e.attrs.yPadding, + } + } + + function _w() { + var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, + t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, + n = {}, + r = (2 < arguments.length ? arguments[2] : void 0).parent.attrs + return ( + (n.x = Math.min(e.offsetX, t.startedX) - r.xPadding || 0), + (n.y = Math.min(e.offsetY, t.startedY) - r.yPadding || 0), + (n.width = e.offsetX - t.startedX), + (n.height = e.offsetY - t.startedY), + (n.startedX = t.startedX - r.xPadding || 0), + (n.startedY = t.startedY - r.yPadding || 0), + n + ) + } + + var Lw = function () { + var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : '' + return '' + .concat(e) + .concat(e ? '-' : '') + .concat(parseInt(Date.now() * Math.random(), 10)) + }, + Tw = function (e) { + var t, + n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 300 + return function () { + var r + clearTimeout(t) + for (var i = arguments.length, o = Array(i), a = 0; a < i; a++) o[a] = arguments[a] + var l = o[0], + s = o.slice(1) + t = setTimeout( + e.bind.apply( + e, + [ + null, + null != (r = null == l || null == (r = l.target) ? void 0 : r.value) ? r : l, + ].concat(Hh(s)), + ), + n, + ) + } + }, + jw = function () { + var e, + t = document.body, + n = document.documentElement + return { + topOffset: (null == (e = window) ? void 0 : e.pageYOffset) || n.scrollTop || t.scrollTop, + leftOffset: (null == (e = window) ? void 0 : e.pageXOffset) || n.scrollLeft || t.scrollLeft, + } + }, + Iw = function (e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 0, + n = 2 < arguments.length ? arguments[2] : void 0 + return Math.min(Math.max(t, +e), n || 1e6) + }, + Mw = ['width', 'height', 'startedX', 'startedY'] + + function Rw(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Dw(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Rw(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Rw(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function Aw(e) { + var t + return new zw[e.name]( + Dw( + Dw({}, e), + {}, + { + opacity: null != (t = e.opacity) ? t : 0.7, + x: null != (t = e.x) ? t : 0, + y: null != (t = e.y) ? t : 0, + width: Math.abs(e.width) || 0, + height: Math.abs(e.height) || 0, + }, + Nw.includes(e.name) ? {stroke: e.stroke || '#000000'} : {}, + ), + ) + } + + n((WE = {}), Av.RECT, av.Rect), + n(WE, Av.ELLIPSE, av.Ellipse), + n(WE, Av.POLYGON, av.RegularPolygon), + n(WE, Av.LINE, av.Line), + n(WE, Av.IMAGE, av.Image), + n(WE, Av.TEXT, av.Text), + n(WE, Av.ARROW, av.Arrow) + var zw = WE, + Nw = [Av.LINE, Av.ARROW], + Hw = [].concat(Nw, [Av.ELLIPSE, Av.POLYGON]), + Fw = ['id', 'x', 'y', 'points'], + Bw = ['startedX', 'startedY', 'offsetX', 'offsetY', 'width', 'height'] + + function Vw(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Ww(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Vw(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Vw(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var Gw = {startedX: void 0, startedY: void 0, isOutOfCanvas: !1}, + Zw = {passive: !0}, + Uw = null, + Xw = null, + Yw = null, + qw = function (e, t, n, r) { + function i(t) { + t.evt.preventDefault(), + t.target.attrs.draggable || + 1 < (null == (t = t.evt.touches) ? void 0 : t.length) || + (s(), + (t = Pw(n, o())), + (Gw.startedX = t.offsetX), + (Gw.startedY = t.offsetY), + (Gw.isOutOfCanvas = !1), + e.on('mousemove touchmove', c), + e.on('mouseleave touchcancel', u), + document.addEventListener('mouseup', d, Zw), + document.addEventListener('touchend', d, Zw), + document.addEventListener('mouseleave', d, Zw), + document.addEventListener('touchcancel', d, Zw)) + } + + var o = function () { + return kw(e.content) + }, + a = function (e, t) { + ;(e = e), + (n = Yw.name), + (t = t), + (r = e.width), + (i = e.height), + (o = e.startedX), + (a = e.startedY), + (e = Yc(e, Mw)), + (l = Math.abs(r)), + (s = Math.abs(i)), + (u = r < 0), + (c = i < 0), + n === Av.RECT + ? t + ? ((e.width = Math.sqrt(l * l + s * s)), + (e.height = e.width), + (e.x -= u ? e.width - l : 0), + (e.y -= c ? e.height - s : 0)) + : ((e.width = l), (e.height = s)) + : n === Av.ELLIPSE + ? (t + ? ((e.radiusX = Math.sqrt(l * l + s * s) / 2), + (e.radiusY = e.radiusX), + (e.x -= u ? 2 * e.radiusX - l : 0), + (e.y -= c ? 2 * e.radiusY - s : 0)) + : ((e.radiusX = l / 2), (e.radiusY = s / 2)), + (e.offsetX = -e.radiusX), + (e.offsetY = -e.radiusY)) + : n === Av.POLYGON + ? ((e.radius = (l + s) / 2), + (e.x -= u ? 2 * e.radius - l : 0), + (e.y -= c ? 2 * e.radius - s : 0), + (e.offsetX = -e.radius), + (e.offsetY = -e.radius)) + : n === Av.LINE || n === Av.ARROW + ? ((e.x = o), + (e.y = a), + (e.points = [0, 0]), + t ? e.points.push(s <= l ? r : 0, l < s ? i : 0) : (e.points = [0, 0, r, i])) + : ((e.width = l), (e.height = s)) + var n, + r, + i, + o, + a, + l, + s, + c, + u = e + Xw && Xw.setAttrs(u), Uw.setAttrs(u), (Yw = Ww(Ww({}, Yw), u)) + }, + l = function (e) { + var t = Pw(n, o()) + a(_w(t, Gw, n), e.shiftKey) + }, + s = function () { + n && Uw && n.destroyChildren() + }, + c = function (e) { + var r + 1 < (null == (r = e.evt.touches) ? void 0 : r.length) || + ((r = Pw(n, o())), + Gw.isOutOfCanvas && + (document.removeEventListener('mousemove', l, Zw), + document.removeEventListener('touchmove', l, Zw), + (Gw.isOutOfCanvas = !1)), + (r = _w(r, Gw, n)), + Uw + ? a(r, e.evt.shiftKey) + : (t.id, + t.x, + t.y, + t.points, + (function (e) { + ;(Uw = Aw(e)), + n.add(Uw), + e.name === Av.TEXT && + ((Xw = Aw( + Ww( + Ww({}, e), + {}, + { + name: Av.RECT, + fill: '', + stroke: '#000000', + strokeWidth: 2, + shadowColor: '#ffffff', + shadowBlur: 1, + shadowOpacity: 0.7, + }, + ), + )), + n.add(Xw)), + (Yw = e) + })(Ww(Ww({}, (e = Yc(t, Fw))), r)))) + }, + u = function () { + Gw.isOutOfCanvas || + (document.addEventListener('mousemove', l, Zw), + document.addEventListener('touchmove', l, Zw), + (Gw.isOutOfCanvas = !0)) + }, + d = function () { + var n, i, o + s(), + Yw && + ((1 <= Yw.width && 1 <= Yw.height) || + (1 <= Yw.radiusX && 1 <= Yw.radiusY) || + (null != (o = Yw.points) && o[2]) || + (null != (o = Yw.points) && o[3]) || + 1 <= Yw.radius) && + ((o = Yw).startedX, + o.startedY, + o.offsetX, + o.offsetY, + (n = o.width), + (i = o.height), + (o = Yc(o, Bw)), + Hw.includes(t.name) || ((o.width = n), (o.height = i)), + r(o, !0)), + (Yw = Xw = Uw = null), + e.off('mousemove touchmove', c), + e.off('mouseleave touchcancel', u), + document.removeEventListener('mouseup', d, Zw), + document.removeEventListener('touchend', d, Zw), + document.removeEventListener('mouseleave', d, Zw), + document.removeEventListener('touchcancel', d, Zw), + document.removeEventListener('mousemove', l, Zw), + document.removeEventListener('touchmove', l, Zw), + (Gw.isOutOfCanvas = !1) + } + return ( + e.on('mousedown touchstart', i), + function () { + s(), e.off('mousedown touchstart', i) + } + ) + }, + $w = function (e, t) { + var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : [] + return l.exports.useCallback(Tw(e, t), n) + }, + Kw = ['fonts', 'onFontChange'], + Qw = [ + 'x', + 'y', + 'width', + 'height', + 'radius', + 'radiusX', + 'radiusY', + 'points', + 'image', + 'text', + 'scaleX', + 'scaleY', + 'rotation', + ], + Jw = ['shouldSave', 'neverSave'] + + function eC(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function tC(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? eC(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : eC(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function nC() { + var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, + t = !(1 < arguments.length && void 0 !== arguments[1]) || arguments[1], + n = xw(), + r = n.dispatch, + i = n.previewGroup, + o = n.annotations, + a = n.selectionsIds, + s = void 0 === a ? [] : a, + c = tC( + tC({}, (a = n.config).annotationsCommon), + a[(null == (n = o[s[0]]) ? void 0 : n.name) || e.name], + ), + u = (a = jp( + l.exports.useState(function () { + return tC(tC(tC({}, c), e), o[s[0]]) + }), + 2, + ))[0], + d = a[1], + f = l.exports.useRef(), + h = null == i ? void 0 : i.getStage(), + p = l.exports.useCallback(function (t) { + t.fonts, t.onFontChange + var n = Yc(t, Kw) + r({type: $_, payload: n}), + n.id && + e.name !== Av.PEN && + Tw(function () { + r({type: nL, payload: {annotationId: n.id}}) + }, 30)() + }, []), + g = $w(function (e) { + d(function (t) { + return tC( + tC({}, t), + {}, + {shouldSave: !1, neverSave: !1}, + 'function' == typeof e ? e(t) : e, + ) + }) + }, 15), + m = l.exports.useCallback(function (t, n) { + return t.name === n + ? (t.x, + t.y, + t.width, + t.height, + t.radius, + t.radiusX, + t.radiusY, + t.points, + t.image, + t.text, + t.scaleX, + t.scaleY, + t.rotation, + (n = Yc(t, Qw)), + tC(tC(tC({}, c), e), n)) + : tC(tC({}, c), e) + }, []), + v = l.exports.useCallback(function (t) { + d(function (n) { + return tC( + tC(tC({}, m(n, t.name || e.name)), t), + {}, + {id: t.id || Lw(t.name || n.name), shouldSave: !0, neverSave: !1}, + ) + }) + }, []) + return ( + l.exports.useEffect( + function () { + var e = u.shouldSave, + t = u.neverSave, + n = Yc(u, Jw), + r = 1 === s.length && o[s[0]] + t || (!e && !r) || p(tC(tC({}, n), {}, {id: (e ? n : r).id})) + }, + [u], + ), + l.exports.useEffect( + function () { + setTimeout(function () { + 1 === s.length + ? ((f.current = u), d(tC(tC({}, o[s[0]]), {}, {neverSave: !0}))) + : f.current && (d(tC(tC({}, f.current), {}, {neverSave: !0})), (f.current = null)) + }) + }, + [s, o], + ), + l.exports.useEffect( + function () { + var n, + r = null + return ( + h && t && ((n = m(u, e.name)), (r = qw(h, tC(tC({}, n), {}, {name: e.name}), i, v))), + function () { + r && r() + } + ) + }, + [h, u, i], + ), + l.exports.useMemo( + function () { + return [u, g, v] + }, + [u, g, v], + ) + ) + } + + var rC = ['isDesignState'] + + function iC(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function oC(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? iC(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : iC(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function aC(e, t, n, r, i) { + return ((e - t) * (i - r)) / (n - t) + r + } + + var lC, + sC = function (e, t) { + var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}, + r = oC( + oC({}, t), + {}, + { + pastDesignStates: [], + futureDesignStates: [], + hasRedo: !1, + hasUndo: !1, + }, + ) + return l.exports.useReducer(function (t, i) { + var o, + a = e(t, i) || r + return ![W_, Ib, Db].includes(i.type) && a.isDesignState + ? ((i = Lb(t)), + a.isDesignState, + (o = oC( + oC({}, Yc(a, rC)), + {}, + { + pastDesignStates: [i].concat(Hh(t.pastDesignStates)), + hasUndo: !0, + hasRedo: !1, + futureDesignStates: [], + isResetted: !1, + haveNotSavedChanges: !0, + }, + )), + (lC = setTimeout(function () { + clearTimeout(lC), 'function' == typeof n.onModify && n.onModify(o) + })), + o) + : a + }, r) + }, + cC = function () { + var e = l.exports.useRef( + 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : function () { + }, + ), + t = l.exports.useRef(), + n = l.exports.useCallback(function (t) { + t.forEach(function (t) { + var n, r + t.contentRect && + ((n = (r = t.contentRect).width), + (r = r.height), + e.current({entry: t, width: n, height: r})) + }) + }, []), + r = l.exports.useCallback(function (t) { + e.current = t + }, []), + i = l.exports.useCallback(function () { + t.current || (t.current = new ResizeObserver(n)) + }, []), + o = l.exports.useCallback(function (n, r) { + n && (t.current || i(), t.current.observe(n), r && (e.current = r)) + }, []), + a = l.exports.useCallback(function (n, r) { + t.current && n && (t.current.unobserve(n), r && (e.current = r)) + }, []), + s = l.exports.useCallback(function () { + t.current && t.current.disconnect() + }, []) + return ( + l.exports.useEffect(function () { + return i(), s + }, []), + l.exports.useMemo(function () { + return [o, a, r] + }, []) + ) + }, + uC = function () { + return window.matchMedia('(max-width: 438px)').matches + } + + function dC(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function fC(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? dC(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : dC(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function hC(e, t) { + return (e << t) | (e >>> (32 - t)) + } + + function pC(e) { + for (var t = '', n = 7; 0 <= n; n--) t += (15 & (e >>> (4 * n))).toString(16) + return t + } + + function gC(e) { + for ( + var t, + n, + r, + i, + o, + a, + l, + s, + c = e, + u = Array(80), + d = 1732584193, + f = 4023233417, + h = 2562383102, + p = 271733878, + g = 3285377520, + m = (c = (function (e) { + for (var t, n = e.replace(/\r\n/g, '\n'), r = '', i = 0; i < n.length; i++) + (t = n.charCodeAt(i)) < 128 + ? (r += String.fromCharCode(t)) + : (127 < t && t < 2048 + ? (r += String.fromCharCode(192 | (t >> 6))) + : (r = + (r += String.fromCharCode(224 | (t >> 12))) + + String.fromCharCode(128 | (63 & (t >> 6)))), + (r += String.fromCharCode(128 | (63 & t)))) + return r + })(c)).length, + v = [], + y = 0; + y < m - 3; + y += 4 + ) + (n = + (c.charCodeAt(y) << 24) | + (c.charCodeAt(y + 1) << 16) | + (c.charCodeAt(y + 2) << 8) | + c.charCodeAt(y + 3)), + v.push(n) + switch (m % 4) { + case 0: + y = 2147483648 + break + case 1: + y = 8388608 | (c.charCodeAt(m - 1) << 24) + break + case 2: + y = (c.charCodeAt(m - 2) << 24) | (c.charCodeAt(m - 1) << 16) | 32768 + break + case 3: + y = + (c.charCodeAt(m - 3) << 24) | + (c.charCodeAt(m - 2) << 16) | + (c.charCodeAt(m - 1) << 8) | + 128 + } + for (v.push(y); v.length % 16 != 14;) v.push(0) + for (v.push(m >>> 29), v.push(4294967295 & (m << 3)), t = 0; t < v.length; t += 16) { + for (y = 0; y < 16; y++) u[y] = v[t + y] + for (y = 16; y <= 79; y++) u[y] = hC(u[y - 3] ^ u[y - 8] ^ u[y - 14] ^ u[y - 16], 1) + for (r = d, i = f, o = h, a = p, l = g, y = 0; y <= 19; y++) + (s = 4294967295 & (hC(r, 5) + ((i & o) | (~i & a)) + l + u[y] + 1518500249)), + (l = a), + (a = o), + (o = hC(i, 30)), + (i = r), + (r = s) + for (y = 20; y <= 39; y++) + (s = 4294967295 & (hC(r, 5) + (i ^ o ^ a) + l + u[y] + 1859775393)), + (l = a), + (a = o), + (o = hC(i, 30)), + (i = r), + (r = s) + for (y = 40; y <= 59; y++) + (s = 4294967295 & (hC(r, 5) + ((i & o) | (i & a) | (o & a)) + l + u[y] + 2400959708)), + (l = a), + (a = o), + (o = hC(i, 30)), + (i = r), + (r = s) + for (y = 60; y <= 79; y++) + (s = 4294967295 & (hC(r, 5) + (i ^ o ^ a) + l + u[y] + 3395469782)), + (l = a), + (a = o), + (o = hC(i, 30)), + (i = r), + (r = s) + ; + (d = 4294967295 & (d + r)), + (f = 4294967295 & (f + i)), + (h = 4294967295 & (h + o)), + (p = 4294967295 & (p + a)), + (g = 4294967295 & (g + l)) + } + return (s = pC(d) + pC(f) + pC(h) + pC(p) + pC(g)).toLowerCase() + } + + function mC(e, t, n, r) { + return ( + (r = r), + [ + (t = gC(t + (e = btoa(e).replace(/=*$/g, '')) + n).slice(0, r)) ? 'ci_seal='.concat(t) : '', + e ? 'ci_eqs='.concat(e) : '', + ] + .filter(function (e) { + return e + }) + .join('&') + ) + } + + var vC = function (e, t, n) { + var r + return fC( + fC( + fC({}, e.x || 0 === e.x ? {x: Math.round(aC(e.x, 0, t.width, 0, n.width))} : {}), + e.y || 0 === e.y ? {y: Math.round(aC(e.y, 0, t.height, 0, n.height))} : {}, + ), + {}, + { + width: Math.round(aC(null != (r = e.width) ? r : t.width, 0, t.width, 0, n.width)), + height: Math.round(aC(null != (r = e.height) ? r : t.height, 0, t.height, 0, n.height)), + }, + ) + }, + yC = function (e, t) { + var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : 0, + r = Math.abs(n), + i = ((n = Math.round(n)), (o = 90 < r) ? t : e), + o = ((e = o ? e : t), (t = ((o ? r - 90 : r) * Math.PI) / 180), Math.abs(Math.sin(t))) + r = Math.abs(Math.cos(t)) + return { + width: Math.round(i * r) + Math.round(e * o), + height: Math.round(i * o) + Math.round(e * r), + offsetTop: 0 <= n && n <= 90 ? 0 : (n < 0 && -90 < n) || 90 < n ? i * o : e * r + i * o, + offsetLeft: n <= 0 && -90 <= n ? 0 : 90 < n ? i * r + e * o : e * o, + } + }, + bC = function (e) { + var t, n + return e instanceof HTMLImageElement + ? ((n = (t = document.createElement('canvas')).getContext('2d', { + willReadFrequently: true, + })), + (t.width = e.width), + (t.height = e.height), + n.drawImage(e, 0, 0), + t.toDataURL()) + : '' + }, + wC = function () { + var e, + t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : '', + n = 1 < arguments.length ? arguments[1] : void 0, + r = t + return ( + !n && + Nv.some(function (e) { + return t.lastIndexOf('.'.concat(e)) === t.length - '.'.concat(e).length + }) && + ((n = + (e = null == (e = t.slice(t.lastIndexOf('.') + 1)) ? void 0 : e.toLowerCase()) && + zv.includes(e) + ? e + : Hv), + (r = t.slice(0, t.lastIndexOf('.')))), + (n = n || Hv), + {fullName: ''.concat(r, '.').concat(n), name: r, extension: n} + ) + }, + CC = function (e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 5 + return e && +parseFloat(e).toFixed(t) + }, + xC = ['width', 'height', 'x', 'y', 'opacity', 'scaleX', 'scaleY'] + + function EC(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function OC(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? EC(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : EC(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var SC = { + Brighten: { + cloudimage: {name: 'bright', min: -100, max: 100}, + internal: {propName: 'brightness', min: -1, max: 1}, + }, + Contrast: { + cloudimage: {name: 'contrast', min: -100, max: 100}, + internal: {propName: 'contrast', min: -100, max: 100}, + }, + Blur: { + cloudimage: {name: 'blur', min: 0, max: 100}, + internal: {propName: 'blurRadius', min: 0, max: 100}, + }, + }, + kC = function (e, t, n, r) { + var i, + o, + a, + l, + s, + c, + u = e.token, + d = e.domain, + f = e.dontPrefixUrl, + h = e.version, + p = e.imageSealing, + g = ((e = e.secureProtocol), t.imgSrc), + m = (b = t.adjustments).crop, + v = b.rotation, + y = b.isFlippedX, + b = b.isFlippedY, + w = void 0 === (w = t.resize) ? {} : w, + C = void 0 === (C = t.finetunes) ? {} : C, + x = t.finetunesProps, + E = + ((t = void 0 === (t = t.annotations) ? {} : t), + (e = f + ? '' + : 'http' + .concat(e ? 's' : '', '://') + .concat(u, '.') + .concat(d.replace(/^(https?:\/\/)?(www\.)?|^\.|\/$/g, ''), '/') + .concat(h ? ''.concat(h, '/') : '')), + (u = []), + m.width && + m.height && + (m.x || 0 === m.x) && + (m.y || 0 === m.y) && + u.push( + ((i = (h = vC((d = m), (h = n), (i = r))).x), + (E = h.y), + (o = h.width), + (h = h.height), + 'tl_px=' + .concat(i, ',') + .concat(E, '&br_px=') + .concat(i + o, ',') + .concat(E + h) + .concat( + d.ratio === Vv ? '&radius='.concat(Math.max(o, h), '&force_format=png') : '', + )), + ), + (w.width || w.height) && + u.push( + (function () { + var e = (t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}) + .width, + t = t.height + return 'w='.concat(e, '&h=').concat(t) + })(OC(OC({}, r), w)), + ), + v && u.push('r='.concat(-v)), + (y || b) && u.push(((i = b), 'flip='.concat(y ? 'x' : '').concat(i ? 'y' : ''))), + 0 < C.length && + x && + u.push( + (function (e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, + n = [] + return ( + e.forEach(function (e) { + var r + ;(e = e.name && SC[e.name]) && + ((r = CC( + aC( + t[e.internal.propName], + e.internal.min, + e.internal.max, + e.cloudimage.min, + e.cloudimage.max, + ), + 2, + )), + n.push(''.concat(e.cloudimage.name, '=').concat(r))) + }), + n.join('&') + ) + })(C, x), + ), + t[Mv] && + u.push( + (function () { + var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, + t = 1 < arguments.length ? arguments[1] : void 0, + n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}, + r = e.width, + i = e.height, + o = e.x, + a = e.y, + l = e.opacity, + s = void 0 === (s = e.scaleX) ? 1 : s, + c = void 0 === (c = e.scaleY) ? 1 : c, + u = Yc(e, xC), + d = t.width * t.scaledBy + ;(t = t.height * t.scaledBy), + (l = 'wat=1&wat_gravity=absolute&wat_opacity=' + .concat(l, '&wat_pos=') + .concat(Math.floor(((o - (n.x || 0)) / d) * 100, 2), 'p,') + .concat(Math.floor(((a - (n.y || 0)) / t) * 100, 2), 'p')) + return e.name === Av.TEXT + ? '' + .concat(l, '&wat_text=') + .concat(u.text.replaceAll('\n', ''), '&wat_font=') + .concat(u.fontFamily, '&wat_color=') + .concat(u.fill.replace('#', ''), '&wat_fontsize=') + .concat(u.fontSize, 'max') + : ((n = + !(a = (null == (o = u.image) ? void 0 : o.src) || u.image).startsWith( + 'blob:', + ) && a), + '' + .concat(l, '&wat_scale=') + .concat(CC(((r * s) / d) * 100, 2), 'p,') + .concat(CC(((i * c) / t) * 100, 2), 'p') + .concat(n ? '&wat_url='.concat(encodeURIComponent(n)) : '')) + })(t[Mv], n, m), + ), + u.push('ci_url_encoded=1'), + u.join('&')) + p.enable && + ((d = E), + (o = g), + (r = (h = (h = p) || {}).salt), + (w = h.charCount), + (h = h.includeParams), + (l = !(a = void 0 === h ? [] : h) || 0 === (null == a ? void 0 : a.length)), + (h = ''), + (s = []), + (c = []), + d.split('&').forEach(function (e) { + var t = jp(e.split('='), 1)[0] + ;(-1 < (null == a ? void 0 : a.indexOf(t)) || l ? s : c).push(e) + }), + 0 < c.length && (h = c.join('&')), + (E = [mC(s.join('&'), o, r, w), h] + .filter(function (e) { + return e + }) + .join('&'))), + (E = E.replaceAll(' ', '+')), + (v = f && -1 !== g.indexOf('?') ? '&' : '?') + return '' + .concat(e) + .concat(f ? g : encodeURIComponent(g)) + .concat(E ? ''.concat(v).concat(E.replace(/&$/, '')) : '') + }, + PC = ['filter'] + + function _C(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function LC(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? _C(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : _C(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function TC() { + var e = xw(), + t = e.dispatch, + n = e.designLayer, + r = e.shownImageDimensions, + i = e.originalImage, + o = (p = e.adjustments).crop, + a = p.rotation, + l = void 0 === a ? 0 : a, + s = p.isFlippedX, + c = p.isFlippedY, + u = (a = e.config).savingPixelRatio, + d = a.previewPixelRatio, + f = a.forceToPngInEllipticalCrop, + h = a.defaultSavedImageType, + p = a.useCloudimage, + g = a.cloudimage + return p + ? function () { + var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, + n = ((n = Lb(e)).filter, Yc(n, PC)), + a = kC(g, n, r, i), + l = vC({x: o.x, y: o.y, width: o.width, height: o.height}, r, i) + return { + imageData: { + cloudimageUrl: a, + width: (null == t || null == (a = t.size) ? void 0 : a.width) || l.width, + height: (null == t || null == (a = t.size) ? void 0 : a.height) || l.height, + }, + designState: n, + } + } + : function () { + function a() { + t({type: ey}) + } + + var p = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, + g = !!(1 < arguments.length && void 0 !== arguments[1]) && arguments[1], + m = !!(2 < arguments.length && void 0 !== arguments[2]) && arguments[2], + v = (g = ((av.pixelRatio = g || u), n.attrs)).clipWidth, + y = g.clipHeight, + b = g.clipX, + w = + ((g = g.clipY), + jp( + (k = + (n.setAttr('isSaving', !0), + n.getStage().clone({ + width: i.width, + height: i.height, + scaleX: s ? -1 : 1, + scaleY: c ? -1 : 1, + }))).children, + 1, + )[0]), + C = (k.children[1].destroy(), k.findOne('#'.concat(jv))), + x = (C.cache(), {x: k.width() / r.width, y: k.height() / r.height}), + E = + ((x = (w = + (w.setAttrs({ + rotation: 0, + offsetX: 0, + offsetY: 0, + x: 0, + y: 0, + scaleX: x.x, + scaleY: x.y, + }), + LC( + LC( + {}, + (!p.name || !p.extension) && + wC( + i.name, + f && o.ratio === Vv + ? 'png' + : zv.includes(null == h ? void 0 : h.toLowerCase()) && h, + ), + ), + p, + ))).name), + (p = w.extension), + void 0 === (E = w.quality) ? 92 : E), + O = ((w = void 0 === (w = w.size) ? {} : w), ['jpeg', 'jpg', 'webp'].includes(p)), + S = + ((b = vC( + { + x: o.x || b, + y: o.y || g, + width: o.width || v, + height: o.height || y, + }, + r, + k.attrs, + )), + (g = yC(b.width, b.height, l)), + (g = + (k.setAttrs({ + offsetX: b.width / 2 + b.x, + offsetY: b.height / 2 + b.y, + width: g.width, + height: g.height, + x: g.width / 2, + y: g.height / 2, + rotation: l, + }), + w.width && + ((v = (s ? -1 : 1) * (w.width / k.width())), + k.setAttrs({ + scaleX: v, + width: w.width, + x: k.x() * Math.abs(v), + })), + w.height && + ((y = (c ? -1 : 1) * (w.height / k.height())), + k.setAttrs({ + scaleY: y, + height: w.height, + y: k.y() * Math.abs(y), + })), + LC( + {mimeType: 'image/'.concat('jpg' === p ? 'jpeg' : p)}, + O ? {quality: E} : {}, + ))), + (v = k.toCanvas(g)), + (y = k.toDataURL(g)), + LC( + LC({}, Lb(e)), + {}, + { + shownImageDimensions: { + width: e.shownImageDimensions.width, + height: e.shownImageDimensions.height, + scaledBy: e.shownImageDimensions.scaledBy, + }, + }, + )), + k = + (S.filter && (S.filter = S.filter.name), + (S.finetunes = S.finetunes.map(function (e) { + return e.name + })), + Object.keys(S.annotations).forEach(function (e) { + var t = S.annotations[e], + n = t.name === Av.IMAGE && (null == (n = t.image) ? void 0 : n.src) + n && n.startsWith('blob:') + ? (S.annotations[e].image = bC(t.image)) + : t.image instanceof HTMLImageElement && (S.annotations[e].image = n) + }), + LC( + { + fullName: ''.concat(x, '.').concat(p), + name: x, + extension: p, + mimeType: 'image/'.concat(p), + imageCanvas: v, + imageBase64: y, + width: w.width || b.width, + height: w.height || b.height, + }, + O ? {quality: E} : {}, + )) + return ( + n.setAttr('isSaving', !1), + t({type: $L}), + C.clearCache(), + (av.pixelRatio = d), + m || a(), + {imageData: k, designState: S, hideLoadingSpinner: a} + ) + } + } + + var jC = 'undefined' != typeof window ? l.exports.useLayoutEffect : l.exports.useEffect + + function IC(e) { + var t = l.exports.useRef(e) + return ( + jC(function () { + t.current = e + }), + l.exports.useCallback(function () { + return t.current.apply(void 0, arguments) + }, []) + ) + } + + var MC = {Auto: 'auto', On: 'on', Off: 'off'}, + RC = + ((a = 'Slider'), + fe.span.attrs({className: Fh(a, 'root')}).withConfig({componentId: 'sc-jjink6-0'})( + function (e) { + var t = e.theme + return Bd( + [ + 'display:inline-block;border-radius:2px;position:relative;cursor:pointer;touch-action:none;color:', + ';height:4px;width:100%;padding:12px 0;', + ], + void 0 !== (e = e.disabled) && e + ? t.palette[pp.AccentPrimaryDisabled] + : t.palette[pp.BorderActiveBottom], + ) + }, + )), + DC = fe.span.attrs({className: Fh(a, 'rail')}).withConfig({componentId: 'sc-jjink6-1'})([ + 'display:block;position:absolute;border-radius:inherit;background-color:currentColor;opacity:0.38;width:100%;height:inherit;top:50%;transform:translateY(-50%);', + ]), + AC = + ((bp = fe.span + .attrs({className: Fh(a, 'Track')}) + .withConfig({componentId: 'sc-jjink6-2'})([ + 'display:block;position:absolute;border-radius:inherit;border:1px solid currentColor;background-color:currentColor;height:inherit;top:50%;transform:translateY(-50%);', + ])), + (Zr = fe.span.attrs({className: Fh(a, 'thumb')}).withConfig({componentId: 'sc-jjink6-3'})( + [ + "position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;outline:0;background-color:currentColor;display:flex;align-items:center;justify-content:center;top:50%;transform:translate(-50%,-50%);& > input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}", + ], + )), + (sv = fe.span.attrs({className: Fh(a, 'label')}).withConfig({componentId: 'sc-jjink6-4'})( + function (e) { + var t = e.theme, + n = e.open + return Bd( + [ + 'display:flex;align-items:center;justify-content:center;padding:6px 6px;border-radius:2px;position:absolute;top:-10px;font-size:10px;z-index:1;white-space:nowrap;transition:transform 150ms cubic-bezier(0.4,0,0.2,1) 0ms;transform-origin:bottom center;transform:', + ';background-color:', + ";color:#fff;cursor:pointer;&::before{position:absolute;content:'';background-color:inherit;width:8px;height:8px;bottom:0px;left:50%;transform:translate(-50%,50%) rotate(45deg);}", + ], + void 0 !== n && n ? 'translateY(-100%) scale(1)' : 'translateY(-100%) scale(0)', + void 0 !== (e = e.disabled) && e + ? t.palette[pp.AccentPrimaryDisabled] + : t.palette[pp.LinkHover], + ) + }, + )), + Wh({ + Slider: RC, + Rail: DC, + Track: bp, + Thumb: Zr, + SliderAnnotation: fe.div + .attrs({className: Fh(a, 'annotation')}) + .withConfig({componentId: 'sc-jjink6-5'})(function (e) { + return Bd( + ['display:flex;justify-content:space-between;margin-top:12px;color:', ';'], + e.theme.palette[pp.TextSecondary], + ) + }), + LabelTooltip: sv, + })), + zC = [ + 'defaultValue', + 'disabled', + 'disableSwap', + 'hideTrack', + 'hideAnnotation', + 'value', + 'min', + 'max', + 'onChange', + 'onMouseDown', + 'onMouseUp', + 'step', + 'labelTooltip', + 'annotation', + 'components', + 'componentsProps', + ] + + function NC(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function HC(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? NC(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : NC(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + var FC = 'data-index', + BC = + ((kr = Bh(function (e, t) { + var n, + r, + i, + o, + a, + s, + c, + u, + d, + f, + h, + p, + g, + m, + v, + y, + b, + w, + C, + x, + E, + O, + S, + k, + P, + _, + L, + T, + j, + I = e.defaultValue, + M = void 0 !== (D = e.disabled) && D, + R = void 0 !== (D = e.disableSwap) && D, + D = void 0 !== (D = e.hideTrack) && D, + A = void 0 !== (A = e.hideAnnotation) && A, + z = e.value, + N = void 0 === (Z = e.min) ? 0 : Z, + H = void 0 === (Z = e.max) ? 100 : Z, + F = e.onChange, + B = e.onMouseDown, + V = e.onMouseUp, + W = void 0 === (Z = e.step) ? 1 : Z, + G = void 0 === (Z = e.labelTooltip) ? MC.Off : Z, + Z = void 0 === (Z = e.annotation) ? '' : Z, + U = void 0 === (U = e.components) ? {} : U, + X = void 0 === (X = e.componentsProps) ? {} : X + e = Yc(e, zC) + return ( + (i = jp(l.exports.useState(-1), 2)), + (o = i[0]), + (a = i[1]), + (i = jp(l.exports.useState(-1), 2)), + (s = i[0]), + (c = i[1]), + (i = jp(l.exports.useState(!1), 2)), + (u = i[0]), + (d = i[1]), + (f = l.exports.useRef(0)), + (h = l.exports.useRef(0)), + (p = l.exports.useRef()), + (i = Zh(t, (g = l.exports.useRef(null)))), + (z = (t = {controlled: z, default: null != I ? I : N}).controlled), + (t = t.default), + (n = l.exports.useRef(void 0 !== z).current), + (I = (t = jp(l.exports.useState(t), 2))[0]), + (r = t[1]), + (I = (z = jp( + (t = [ + n ? z : I, + l.exports.useCallback(function (e) { + n || r(e) + }, []), + ]), + 2, + ))[0]), + (m = z[1]), + (v = 'horizontal'), + (y = Array.isArray(I)), + (b = y ? I.slice().sort(op) : [I]), + (w = IC(function (e) { + var t, + n = up(e, p) + n && + ((f.current += 1), + 'mousemove' === e.type && 0 === e.buttons + ? C(e) + : ((t = (n = Y({finger: n, move: !0, values: b})).newValue), + (n = n.activeIndex), + fp({sliderRef: g, activeIndex: n, setActive: a}), + m(t), + !u && 2 < f.current && d(!0), + q(e, t, n))) + })), + (C = IC(function (e) { + var t = up(e, p) + d(!1), + t && (a(-1), 'touchend' === e.type && c(-1), V && V(e), (p.current = void 0), O()) + })), + (t = IC(function (e) { + var t = (n = Y({ + finger: (n = + (null != (n = e.changedTouches[0]) && (p.current = n.identifier), up(e, p))), + values: b, + })).newValue, + n = n.activeIndex + ;(e = + (fp({sliderRef: g, activeIndex: n, setActive: a}), + m(t), + q(e, t, n), + (f.current = 0), + sp(g.current))).addEventListener('touchmove', w), + e.addEventListener('touchend', C) + })), + (x = IC(function (e) { + ;(e = Number(e.currentTarget.getAttribute(FC))), c(e) + })), + (E = IC(function () { + c(-1) + })), + (z = IC(function (e) { + var t, n + M + ? e.preventDefault() + : (B && B(e), + 0 === e.button && + (e.preventDefault(), + (t = (n = Y({finger: (n = up(e, p)), values: b})).newValue), + (n = n.activeIndex), + fp({sliderRef: g, activeIndex: n, setActive: a}), + m(t), + q(e, t, n), + (f.current = 0), + (e = sp(g.current)).addEventListener('mousemove', w), + e.addEventListener('mouseup', C))) + })), + (O = l.exports.useCallback( + function () { + var e = sp(g.current) + e.removeEventListener('mousemove', w), + e.removeEventListener('mouseup', C), + e.removeEventListener('touchmove', w), + e.removeEventListener('touchend', C) + }, + [C, w], + )), + l.exports.useEffect( + function () { + if (g.current) + return function () { + O() + } + }, + [O, t], + ), + l.exports.useEffect( + function () { + M && O() + }, + [M, O], + ), + M && -1 !== o && a(-1), + (I = ap(y ? b[0] : N, N, H)), + (S = ap(b[b.length - 1], N, H) - I), + (I = HC(HC({}, dp[v].offset(I)), dp[v].leap(S))), + (S = X.rail), + (S = + 'function' == typeof U.Rail + ? he.createElement(U.Rail, Ip({}, S, {style: HC({}, null == S ? void 0 : S.style)})) + : he.createElement( + AC.Rail, + Ip({}, S, {style: HC({}, null == S ? void 0 : S.style)}), + )), + (k = X.track), + (I = + !D && + ('function' == typeof U.Track + ? he.createElement( + U.Track, + Ip({}, k, { + style: HC(HC({}, I), null == k ? void 0 : k.style), + }), + ) + : he.createElement( + AC.Track, + Ip({}, k, { + style: HC(HC({}, I), null == k ? void 0 : k.style), + }), + ))), + (P = X.thumb), + (_ = U.Thumb || AC.Thumb), + (L = U.LabelTooltip || AC.LabelTooltip), + (T = X.labelTooltip), + (j = Z ? ' '.concat(Z) : ''), + he.createElement( + AC.Slider, + Ip({ref: i, disabled: M, onTouchStart: t, onMouseDown: z}, e), + S, + I, + b.map(function (e, t) { + return ( + (e = ap(e, N, H)), + (e = dp[v].offset(e)), + he.createElement( + he.Fragment, + {key: t}, + he.createElement( + _, + Ip({'data-index': t, onMouseOver: x, onMouseLeave: E}, P, { + style: HC( + HC({}, e), + {}, + {pointerEvents: R && o !== t ? 'none' : void 0}, + null == P ? void 0 : P.style, + ), + }), + he.createElement('input', { + 'data-index': t, + type: 'range', + min: N, + max: H, + value: b[t], + step: W, + disabled: M, + onChange: $, + }), + he.createElement( + L, + { + open: s === t || o === t || 'on' === G, + disabled: M, + style: HC({}, null == T ? void 0 : T.style), + }, + b[t], + j, + ), + ), + ) + ) + }), + !A && + he.createElement( + AC.SliderAnnotation, + null, + he.createElement('span', null, N, j), + he.createElement('span', null, H, j), + ), + ) + ) + + function Y(e) { + var t, + n, + r, + i, + o = e.finger, + a = void 0 !== (a = e.move) && a, + l = ((e = e.values), g.current) + return l + ? ((t = (l = l.getBoundingClientRect()).width), + (r = l.height), + (n = l.bottom), + (l = l.left), + (n = 0 === v.indexOf('vertical') ? (n - o.y) / r : (o.x - l) / t), + v.includes('-reverse') && (n = 1 - n), + (r = (H - N) * n + N), + (r = cp( + (r = W + ? (function (e, t, n) { + return ( + (e = Math.round((e - n) / t) * t + n), + Number( + e.toFixed( + (function (e) { + var t + if (Math.abs(e) < 1) + return ( + ((n = (t = e.toExponential().split('e-'))[0].split('.')[1]) + ? n.length + : 0) + Number.parseInt(t[1], 10) + ) + var n = e.toString().split('.')[1] + return n ? n.length : 0 + })(t), + ), + ) + ) + })(r, W, N) + : r), + N, + H, + )), + (o = 0), + y && + ((o = a + ? h.current + : ((i = r), + e.reduce(function (e, t, n) { + return ( + (t = Math.abs(i - t)), + null === e || t < e.distance || t === e.distance + ? {distance: t, index: n} + : e + ) + }, null).index)), + (l = r = R ? cp(r, e[o - 1] || -1 / 0, e[o + 1] || 1 / 0) : r), + (r = lp({values: e, newValue: r, index: o})), + (R && a) || !Array.isArray(r) || ((o = r.indexOf(l)), (h.current = o))), + {newValue: r, activeIndex: o}) + : null + } + + function q(e, t, n) { + F && F(e, t, n) + } + + function $(e) { + var t, + n, + r = Number(e.currentTarget.getAttribute(FC)), + i = e.target.valueAsNumber + y && + ((t = i = R ? cp(i, b[r - 1] || -1 / 0, b[r + 1] || 1 / 0) : i), + (i = lp({values: b, newValue: i, index: r})), + (n = r), + R || (n = i.indexOf(t)), + fp({sliderRef: g, activeIndex: n})), + m(i), + q(e, i, r), + V && V(e) + } + })), + (kr.defaultProps = { + annotation: 'MB', + min: 0, + max: 100, + step: 1, + labelTooltip: MC.Off, + }), + (kr.propTypes = { + defaultValue: on.oneOfType([on.array, on.number]), + value: on.oneOfType([on.array, on.number]), + min: on.number, + max: on.number, + onChange: on.func, + onMouseDown: on.func, + onMouseUp: on.func, + step: on.number, + annotation: on.string, + disabled: on.bool, + disableSwap: on.bool, + hideTrack: on.bool, + hideAnnotation: on.bool, + labelTooltip: on.oneOf(Vh(MC)), + components: on.shape({ + Rail: on.elementType, + Track: on.elementType, + Thumb: on.elementType, + LabelTooltip: on.elementType, + }), + componentsProps: on.object, + }), + kr), + VC = fe(BC).withConfig({componentId: 'sc-1wort0h-0'})( + [ + 'width:', + ';max-width:', + ';user-select:none;margin-bottom:24px;.SfxSlider-annotation{font-size:13px;line-height:16px;}', + ], + function (e) { + return e.width || '100px' + }, + function (e) { + return e.width || '100px' + }, + ), + WC = ['onChange'], + GC = function (e) { + var t = e.onChange + e = Yc(e, WC) + return he.createElement( + VC, + Ip( + { + annotation: '', + onChange: function (e, n) { + return t ? t(n) : void 0 + }, + }, + e, + ), + ) + }, + ZC = {brightness: 0}, + UC = {width: 150, padding: 0}, + XC = ['color', 'size'], + YC = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, XC) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 14 14', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M13.5968 11.0258H12.2124V2.22491H2.91714V0.444957C2.91714 0.197742 2.71937 -3.05176e-05 2.47215 -3.05176e-05C2.22494 -3.05176e-05 2.02716 0.197742 2.02716 0.444957V2.22491H0.444987C0.197772 2.22491 0 2.47212 0 2.71934C0 2.96655 0.197772 3.16432 0.444987 3.16432H2.02716V11.9157H11.273V13.4979C11.273 13.7451 11.4708 13.9429 11.718 13.9429C11.9652 13.9429 12.163 13.7451 12.163 13.4979V11.9157H13.5474C13.7946 11.9157 13.9924 11.718 13.9924 11.4707C14.0418 11.2235 13.844 11.0258 13.5968 11.0258ZM2.91714 11.0258V3.16432H11.273V11.0258H2.91714Z', + fill: n, + }), + ) + }), + qC = 'top', + $C = 'bottom', + KC = 'right', + QC = 'left', + JC = 'auto', + ex = [qC, $C, KC, QC], + tx = 'start', + nx = 'end', + rx = 'viewport', + ix = 'popper', + ox = ex.reduce(function (e, t) { + return e.concat([t + '-' + tx, t + '-' + nx]) + }, []), + ax = [].concat(ex, [JC]).reduce(function (e, t) { + return e.concat([t, t + '-' + tx, t + '-' + nx]) + }, []), + lx = [ + 'beforeRead', + 'read', + 'afterRead', + 'beforeMain', + 'main', + 'afterMain', + 'beforeWrite', + 'write', + 'afterWrite', + ] + + function sx(e) { + return e ? (e.nodeName || '').toLowerCase() : null + } + + function cx(e) { + return null == e + ? window + : '[object Window]' !== e.toString() + ? ((t = e.ownerDocument) && t.defaultView) || window + : e + var t + } + + function ux(e) { + return e instanceof cx(e).Element || e instanceof Element + } + + function dx(e) { + return e instanceof cx(e).HTMLElement || e instanceof HTMLElement + } + + function fx(e) { + if ('undefined' != typeof ShadowRoot) + return e instanceof cx(e).ShadowRoot || e instanceof ShadowRoot + } + + function hx(e) { + return e.split('-')[0] + } + + var px = Math.max, + gx = Math.min, + mx = Math.round + + function vx(e, t) { + void 0 === t && (t = !1) + var n = e.getBoundingClientRect(), + r = 1, + i = 1 + return ( + dx(e) && + t && + ((t = e.offsetHeight), + 0 < (e = e.offsetWidth) && (r = mx(n.width) / e || 1), + 0 < t && (i = mx(n.height) / t || 1)), + { + width: n.width / r, + height: n.height / i, + top: n.top / i, + right: n.right / r, + bottom: n.bottom / i, + left: n.left / r, + x: n.left / r, + y: n.top / i, + } + ) + } + + function yx(e) { + var t = vx(e), + n = e.offsetWidth, + r = e.offsetHeight + return ( + Math.abs(t.width - n) <= 1 && (n = t.width), + Math.abs(t.height - r) <= 1 && (r = t.height), + {x: e.offsetLeft, y: e.offsetTop, width: n, height: r} + ) + } + + function bx(e, t) { + var n = t.getRootNode && t.getRootNode() + if (e.contains(t)) return !0 + if (n && fx(n)) { + var r = t + do { + if (r && e.isSameNode(r)) return !0 + } while ((r = r.parentNode || r.host)) + } + return !1 + } + + function wx(e) { + return cx(e).getComputedStyle(e) + } + + function Cx(e) { + return ((ux(e) ? e.ownerDocument : e.document) || window.document).documentElement + } + + function xx(e) { + return 'html' === sx(e) ? e : e.assignedSlot || e.parentNode || (fx(e) ? e.host : null) || Cx(e) + } + + function Ex(e) { + return dx(e) && 'fixed' !== wx(e).position ? e.offsetParent : null + } + + function Ox(e) { + for ( + var t = cx(e), n = Ex(e); + n && 0 <= ['table', 'td', 'th'].indexOf(sx(n)) && 'static' === wx(n).position; + ) + n = Ex(n) + return ( + ((!n || ('html' !== sx(n) && ('body' !== sx(n) || 'static' !== wx(n).position))) && + (n || + (function (e) { + var t = -1 !== navigator.userAgent.toLowerCase().indexOf('firefox') + if ( + -1 !== navigator.userAgent.indexOf('Trident') && + dx(e) && + 'fixed' === wx(e).position + ) + return null + var n = xx(e) + for (fx(n) && (n = n.host); dx(n) && ['html', 'body'].indexOf(sx(n)) < 0;) { + var r = wx(n) + if ( + 'none' !== r.transform || + 'none' !== r.perspective || + 'paint' === r.contain || + -1 !== ['transform', 'perspective'].indexOf(r.willChange) || + (t && 'filter' === r.willChange) || + (t && r.filter && 'none' !== r.filter) + ) + return n + n = n.parentNode + } + return null + })(e))) || + t + ) + } + + function Sx(e) { + return 0 <= ['top', 'bottom'].indexOf(e) ? 'x' : 'y' + } + + function kx(e, t, n) { + return px(e, gx(t, n)) + } + + function Px(e) { + return Object.assign({}, {top: 0, right: 0, bottom: 0, left: 0}, e) + } + + function _x(e, t) { + return t.reduce(function (t, n) { + return (t[n] = e), t + }, {}) + } + + function Lx(e) { + return e.split('-')[1] + } + + var Tx = {top: 'auto', right: 'auto', bottom: 'auto', left: 'auto'} + + function jx(e) { + var t, + n, + r, + i = e.popper, + o = e.popperRect, + a = e.placement, + l = e.variation, + s = e.offsets, + c = e.position, + u = e.gpuAcceleration, + d = e.adaptive, + f = e.roundOffsets, + h = ((e = e.isFixed), void 0 === (h = s.x) ? 0 : h), + p = void 0 === (p = s.y) ? 0 : p, + g = + ((h = (g = 'function' == typeof f ? f({x: h, y: p}) : {x: h, y: p}).x), + (p = g.y), + s.hasOwnProperty('x')), + m = ((s = s.hasOwnProperty('y')), QC), + v = qC, + y = window + d && + ((n = 'clientHeight'), + (t = 'clientWidth'), + (r = Ox(i)) === cx(i) && + 'static' !== wx((r = Cx(i))).position && + 'absolute' === c && + ((n = 'scrollHeight'), (t = 'scrollWidth')), + (a !== qC && ((a !== QC && a !== KC) || l !== nx)) || + ((v = $C), + (p = + (p - ((e && r === y && y.visualViewport ? y.visualViewport.height : r[n]) - o.height)) * + (u ? 1 : -1))), + (a !== QC && ((a !== qC && a !== $C) || l !== nx)) || + ((m = KC), + (h = + (h - ((e && r === y && y.visualViewport ? y.visualViewport.width : r[t]) - o.width)) * + (u ? 1 : -1)))), + (i = Object.assign({position: c}, d && Tx)) + return ( + (h = (e = + !0 === f + ? ((a = (n = {x: h, y: p}).x), + (n = n.y), + (l = window.devicePixelRatio || 1), + {x: mx(a * l) / l || 0, y: mx(n * l) / l || 0}) + : {x: h, y: p}).x), + (p = e.y), + u + ? Object.assign( + {}, + i, + (((r = {})[v] = s ? '0' : ''), + (r[m] = g ? '0' : ''), + (r.transform = + (y.devicePixelRatio || 1) <= 1 + ? 'translate(' + h + 'px, ' + p + 'px)' + : 'translate3d(' + h + 'px, ' + p + 'px, 0)'), + r), + ) + : Object.assign( + {}, + i, + (((t = {})[v] = s ? p + 'px' : ''), (t[m] = g ? h + 'px' : ''), (t.transform = ''), t), + ) + ) + } + + var Ix = {passive: !0}, + Mx = {left: 'right', right: 'left', bottom: 'top', top: 'bottom'} + + function Rx(e) { + return e.replace(/left|right|bottom|top/g, function (e) { + return Mx[e] + }) + } + + var Dx = {start: 'end', end: 'start'} + + function Ax(e) { + return e.replace(/start|end/g, function (e) { + return Dx[e] + }) + } + + function zx(e) { + return {scrollLeft: (e = cx(e)).pageXOffset, scrollTop: e.pageYOffset} + } + + function Nx(e) { + return vx(Cx(e)).left + zx(e).scrollLeft + } + + function Hx(e) { + var t = (e = wx(e)).overflow, + n = e.overflowX + e = e.overflowY + return /auto|scroll|overlay|hidden/.test(t + e + n) + } + + function Fx(e, t) { + void 0 === t && (t = []) + e = + (r = (function e(t) { + return 0 <= ['html', 'body', '#document'].indexOf(sx(t)) + ? t.ownerDocument.body + : dx(t) && Hx(t) + ? t + : e(xx(t)) + })(e)) === (null == (e = e.ownerDocument) ? void 0 : e.body) + var n = cx(r), + r = ((n = e ? [n].concat(n.visualViewport || [], Hx(r) ? r : []) : r), t.concat(n)) + return e ? r : r.concat(Fx(xx(n))) + } + + function Bx(e) { + return Object.assign({}, e, { + left: e.x, + top: e.y, + right: e.x + e.width, + bottom: e.y + e.height, + }) + } + + function Vx(e, t) { + return t === rx + ? Bx( + ((r = cx((n = e))), + (i = Cx(n)), + (r = r.visualViewport), + (o = i.clientWidth), + (i = i.clientHeight), + (l = a = 0), + r && + ((o = r.width), + (i = r.height), + /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || + ((a = r.offsetLeft), (l = r.offsetTop))), + {width: o, height: i, x: a + Nx(n), y: l}), + ) + : ux(t) + ? (((o = vx((r = t))).top = o.top + r.clientTop), + (o.left = o.left + r.clientLeft), + (o.bottom = o.top + r.clientHeight), + (o.right = o.left + r.clientWidth), + (o.width = r.clientWidth), + (o.height = r.clientHeight), + (o.x = o.left), + (o.y = o.top), + o) + : Bx( + ((i = Cx(e)), + (a = Cx(i)), + (n = zx(i)), + (l = null == (l = i.ownerDocument) ? void 0 : l.body), + (t = px(a.scrollWidth, a.clientWidth, l ? l.scrollWidth : 0, l ? l.clientWidth : 0)), + (e = px( + a.scrollHeight, + a.clientHeight, + l ? l.scrollHeight : 0, + l ? l.clientHeight : 0, + )), + (i = -n.scrollLeft + Nx(i)), + (n = -n.scrollTop), + 'rtl' === wx(l || a).direction && (i += px(a.clientWidth, l ? l.clientWidth : 0) - t), + {width: t, height: e, x: i, y: n}), + ) + var n, r, i, o, a, l + } + + function Wx(e) { + var t, + n = e.reference, + r = e.element, + i = (e = e.placement) ? hx(e) : null, + o = ((e = e ? Lx(e) : null), n.x + n.width / 2 - r.width / 2), + a = n.y + n.height / 2 - r.height / 2 + switch (i) { + case qC: + t = {x: o, y: n.y - r.height} + break + case $C: + t = {x: o, y: n.y + n.height} + break + case KC: + t = {x: n.x + n.width, y: a} + break + case QC: + t = {x: n.x - r.width, y: a} + break + default: + t = {x: n.x, y: n.y} + } + var l = i ? Sx(i) : null + if (null != l) { + var s = 'y' === l ? 'height' : 'width' + switch (e) { + case tx: + t[l] = t[l] - (n[s] / 2 - r[s] / 2) + break + case nx: + t[l] = t[l] + (n[s] / 2 - r[s] / 2) + } + } + return t + } + + function Gx(e, t) { + var n, + r = void 0 === (r = (t = t = void 0 === t ? {} : t).placement) ? e.placement : r, + i = void 0 === (i = t.boundary) ? 'clippingParents' : i, + o = void 0 === (o = t.rootBoundary) ? rx : o, + a = void 0 === (a = t.elementContext) ? ix : a, + l = void 0 !== (l = t.altBoundary) && l, + s = + ((t = Px('number' != typeof (t = void 0 === (t = t.padding) ? 0 : t) ? t : _x(t, ex))), + e.rects.popper), + c = + ((l = (function (e, t, n) { + var r, + i = + 'clippingParents' === t + ? ((o = Fx(xx((i = e)))), + ux((r = 0 <= ['absolute', 'fixed'].indexOf(wx(i).position) && dx(i) ? Ox(i) : i)) + ? o.filter(function (e) { + return ux(e) && bx(e, r) && 'body' !== sx(e) + }) + : []) + : [].concat(t), + o = [].concat(i, [n]) + return ( + (t = o[0]), + ((n = o.reduce( + function (t, n) { + return ( + (n = Vx(e, n)), + (t.top = px(n.top, t.top)), + (t.right = gx(n.right, t.right)), + (t.bottom = gx(n.bottom, t.bottom)), + (t.left = px(n.left, t.left)), + t + ) + }, + Vx(e, t), + )).width = n.right - n.left), + (n.height = n.bottom - n.top), + (n.x = n.left), + (n.y = n.top), + n + ) + })( + ux((l = e.elements[l ? (a === ix ? 'reference' : ix) : a])) + ? l + : l.contextElement || Cx(e.elements.popper), + i, + o, + )), + (o = Wx({ + reference: (i = vx(e.elements.reference)), + element: s, + strategy: 'absolute', + placement: r, + })), + (s = Bx(Object.assign({}, s, o))), + (o = a === ix ? s : i), + { + top: l.top - o.top + t.top, + bottom: o.bottom - l.bottom + t.bottom, + left: l.left - o.left + t.left, + right: o.right - l.right + t.right, + }) + s = e.modifiersData.offset + return ( + a === ix && + s && + ((n = s[r]), + Object.keys(c).forEach(function (e) { + var t = 0 <= [KC, $C].indexOf(e) ? 1 : -1, + r = 0 <= [qC, $C].indexOf(e) ? 'y' : 'x' + c[e] += n[r] * t + })), + c + ) + } + + function Zx(e, t, n) { + return { + top: e.top - t.height - (n = void 0 === n ? {x: 0, y: 0} : n).y, + right: e.right - t.width + n.x, + bottom: e.bottom - t.height + n.y, + left: e.left - t.width - n.x, + } + } + + function Ux(e) { + return [qC, KC, $C, QC].some(function (t) { + return 0 <= e[t] + }) + } + + function Xx(e, t, n) { + void 0 === n && (n = !1) + var r = dx(t), + i = + dx(t) && + ((a = (i = t).getBoundingClientRect()), + (o = mx(a.width) / i.offsetWidth || 1), + (a = mx(a.height) / i.offsetHeight || 1), + 1 !== o || 1 !== a), + o = Cx(t), + a = vx(e, i), + l = ((e = {scrollLeft: 0, scrollTop: 0}), {x: 0, y: 0}) + return ( + (!r && n) || + (('body' === sx(t) && !Hx(o)) || + (e = + (r = t) !== cx(r) && dx(r) + ? {scrollLeft: r.scrollLeft, scrollTop: r.scrollTop} + : zx(r)), + dx(t) ? (((l = vx(t, !0)).x += t.clientLeft), (l.y += t.clientTop)) : o && (l.x = Nx(o))), + { + x: a.left + e.scrollLeft - l.x, + y: a.top + e.scrollTop - l.y, + width: a.width, + height: a.height, + } + ) + } + + var Yx = {placement: 'bottom', modifiers: [], strategy: 'absolute'} + + function qx() { + for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] + return !t.some(function (e) { + return !(e && 'function' == typeof e.getBoundingClientRect) + }) + } + + var $x = (function (e) { + var t, + n = void 0 === (t = (e = e = void 0 === e ? {} : e).defaultModifiers) ? [] : t, + r = void 0 === (t = e.defaultOptions) ? Yx : t + return function (e, t, i) { + void 0 === i && (i = r) + var o, + a, + l = { + placement: 'bottom', + orderedModifiers: [], + options: Object.assign({}, Yx, r), + modifiersData: {}, + elements: {reference: e, popper: t}, + attributes: {}, + styles: {}, + }, + s = [], + c = !1, + u = { + state: l, + setOptions: function (i) { + var o, a + ;(i = 'function' == typeof i ? i(l.options) : i), + d(), + (l.options = Object.assign({}, r, l.options, i)), + (l.scrollParents = { + reference: ux(e) ? Fx(e) : e.contextElement ? Fx(e.contextElement) : [], + popper: Fx(t), + }), + (i = [].concat(n, l.options.modifiers)), + (a = i.reduce(function (e, t) { + var n = e[t.name] + return ( + (e[t.name] = n + ? Object.assign({}, n, t, { + options: Object.assign({}, n.options, t.options), + data: Object.assign({}, n.data, t.data), + }) + : t), + e + ) + }, {})), + (i = Object.keys(a).map(function (e) { + return a[e] + })), + (o = (function (e) { + var t = new Map(), + n = new Set(), + r = [] + return ( + e.forEach(function (e) { + t.set(e.name, e) + }), + e.forEach(function (e) { + n.has(e.name) || + (function e(i) { + n.add(i.name), + [] + .concat(i.requires || [], i.requiresIfExists || []) + .forEach(function (r) { + n.has(r) || ((r = t.get(r)) && e(r)) + }), + r.push(i) + })(e) + }), + r + ) + })(i)), + (i = lx.reduce(function (e, t) { + return e.concat( + o.filter(function (e) { + return e.phase === t + }), + ) + }, [])) + return ( + (l.orderedModifiers = i.filter(function (e) { + return e.enabled + })), + l.orderedModifiers.forEach(function (e) { + var t = e.name, + n = e.options + 'function' == typeof (e = e.effect) && + ((e = e({ + state: l, + name: t, + instance: u, + options: void 0 === n ? {} : n, + })), + s.push(e || function () { + })) + }), + u.update() + ) + }, + forceUpdate: function () { + if (!c) { + var e, + t = (e = l.elements).reference + if (qx(t, (e = e.popper))) { + ;(l.rects = { + reference: Xx(t, Ox(e), 'fixed' === l.options.strategy), + popper: yx(e), + }), + (l.reset = !1), + (l.placement = l.options.placement), + l.orderedModifiers.forEach(function (e) { + return (l.modifiersData[e.name] = Object.assign({}, e.data)) + }) + for (var n, r, i, o = 0; o < l.orderedModifiers.length; o++) + !0 === l.reset + ? ((l.reset = !1), (o = -1)) + : ((n = (i = l.orderedModifiers[o]).fn), + (r = i.options), + (i = i.name), + 'function' == typeof n && + (l = + n({ + state: l, + options: void 0 === r ? {} : r, + name: i, + instance: u, + }) || l)) + } + } + }, + update: + ((o = function () { + return new Promise(function (e) { + u.forceUpdate(), e(l) + }) + }), + function () { + return (a = + a || + new Promise(function (e) { + Promise.resolve().then(function () { + ;(a = void 0), e(o()) + }) + })) + }), + destroy: function () { + d(), (c = !0) + }, + } + return ( + qx(e, t) && + u.setOptions(i).then(function (e) { + !c && i.onFirstUpdate && i.onFirstUpdate(e) + }), + u + ) + + function d() { + s.forEach(function (e) { + return e() + }), + (s = []) + } + } + })({ + defaultModifiers: [ + { + name: 'eventListeners', + enabled: !0, + phase: 'write', + fn: function () { + }, + effect: function (e) { + var t = e.state, + n = e.instance, + r = (e = e.options).scroll, + i = void 0 === r || r, + o = void 0 === (r = e.resize) || r, + a = cx(t.elements.popper), + l = [].concat(t.scrollParents.reference, t.scrollParents.popper) + return ( + i && + l.forEach(function (e) { + e.addEventListener('scroll', n.update, Ix) + }), + o && a.addEventListener('resize', n.update, Ix), + function () { + i && + l.forEach(function (e) { + e.removeEventListener('scroll', n.update, Ix) + }), + o && a.removeEventListener('resize', n.update, Ix) + } + ) + }, + data: {}, + }, + { + name: 'popperOffsets', + enabled: !0, + phase: 'read', + fn: function (e) { + var t = e.state + e = e.name + t.modifiersData[e] = Wx({ + reference: t.rects.reference, + element: t.rects.popper, + strategy: 'absolute', + placement: t.placement, + }) + }, + data: {}, + }, + { + name: 'computeStyles', + enabled: !0, + phase: 'beforeWrite', + fn: function (e) { + var t = e.state, + n = void 0 === (n = (e = e.options).gpuAcceleration) || n, + r = void 0 === (r = e.adaptive) || r + ;(e = void 0 === (e = e.roundOffsets) || e), + (n = { + placement: hx(t.placement), + variation: Lx(t.placement), + popper: t.elements.popper, + popperRect: t.rects.popper, + gpuAcceleration: n, + isFixed: 'fixed' === t.options.strategy, + }) + null != t.modifiersData.popperOffsets && + (t.styles.popper = Object.assign( + {}, + t.styles.popper, + jx( + Object.assign({}, n, { + offsets: t.modifiersData.popperOffsets, + position: t.options.strategy, + adaptive: r, + roundOffsets: e, + }), + ), + )), + null != t.modifiersData.arrow && + (t.styles.arrow = Object.assign( + {}, + t.styles.arrow, + jx( + Object.assign({}, n, { + offsets: t.modifiersData.arrow, + position: 'absolute', + adaptive: !1, + roundOffsets: e, + }), + ), + )), + (t.attributes.popper = Object.assign({}, t.attributes.popper, { + 'data-popper-placement': t.placement, + })) + }, + data: {}, + }, + { + name: 'applyStyles', + enabled: !0, + phase: 'write', + fn: function (e) { + var t = e.state + Object.keys(t.elements).forEach(function (e) { + var n = t.styles[e] || {}, + r = t.attributes[e] || {}, + i = t.elements[e] + dx(i) && + sx(i) && + (Object.assign(i.style, n), + Object.keys(r).forEach(function (e) { + var t = r[e] + !1 === t ? i.removeAttribute(e) : i.setAttribute(e, !0 === t ? '' : t) + })) + }) + }, + effect: function (e) { + var t = e.state, + n = { + popper: { + position: t.options.strategy, + left: '0', + top: '0', + margin: '0', + }, + arrow: {position: 'absolute'}, + reference: {}, + } + return ( + Object.assign(t.elements.popper.style, n.popper), + (t.styles = n), + t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), + function () { + Object.keys(t.elements).forEach(function (e) { + var r = t.elements[e], + i = t.attributes[e] || {} + e = Object.keys((t.styles.hasOwnProperty(e) ? t.styles : n)[e]).reduce(function ( + e, + t, + ) { + return (e[t] = ''), e + }, {}) + dx(r) && + sx(r) && + (Object.assign(r.style, e), + Object.keys(i).forEach(function (e) { + r.removeAttribute(e) + })) + }) + } + ) + }, + requires: ['computeStyles'], + }, + { + name: 'offset', + enabled: !0, + phase: 'main', + requires: ['popperOffsets'], + fn: function (e) { + var t = e.state, + n = e.options, + r = ((e = e.name), void 0 === (n = n.offset) ? [0, 0] : n), + i = (o = (n = ax.reduce(function (e, n) { + var i, o, a, l + return ( + (e[n] = + ((n = n), + (i = t.rects), + (o = r), + (a = hx(n)), + (l = 0 <= [QC, qC].indexOf(a) ? -1 : 1), + (n = + (i = + 'function' == typeof o ? o(Object.assign({}, i, {placement: n})) : o)[0] || + 0), + (o = (i[1] || 0) * l), + 0 <= [QC, KC].indexOf(a) ? {x: o, y: n} : {x: n, y: o})), + e + ) + }, {}))[t.placement]).x, + o = o.y + null != t.modifiersData.popperOffsets && + ((t.modifiersData.popperOffsets.x += i), (t.modifiersData.popperOffsets.y += o)), + (t.modifiersData[e] = n) + }, + }, + { + name: 'flip', + enabled: !0, + phase: 'main', + fn: function (e) { + var t = e.state, + n = e.options + e = e.name + if (!t.modifiersData[e]._skip) { + for ( + var r, + i = void 0 === (a = n.mainAxis) || a, + o = void 0 === (a = n.altAxis) || a, + a = n.fallbackPlacements, + l = n.padding, + s = n.boundary, + c = n.rootBoundary, + u = n.altBoundary, + d = void 0 === (r = n.flipVariations) || r, + f = n.allowedAutoPlacements, + h = + ((n = hx((r = t.options.placement))), + (a = + a || + (n !== r && d + ? (function (e) { + if (hx(e) === JC) return [] + var t = Rx(e) + return [Ax(e), t, Ax(t)] + })(r) + : [Rx(r)])), + [r].concat(a).reduce(function (e, n) { + return e.concat( + hx(n) === JC + ? ((r = t), + (i = (e = e = + void 0 === + (e = { + placement: n, + boundary: s, + rootBoundary: c, + padding: l, + flipVariations: d, + allowedAutoPlacements: f, + }) + ? {} + : e).placement), + (o = e.boundary), + (a = e.rootBoundary), + (u = e.padding), + (h = e.flipVariations), + (p = void 0 === (e = e.allowedAutoPlacements) ? ax : e), + (e = (g = Lx(i)) + ? h + ? ox + : ox.filter(function (e) { + return Lx(e) === g + }) + : ex), + (m = (i = + 0 === + (i = e.filter(function (e) { + return 0 <= p.indexOf(e) + })).length + ? e + : i).reduce(function (e, t) { + return ( + (e[t] = Gx(r, { + placement: t, + boundary: o, + rootBoundary: a, + padding: u, + })[hx(t)]), + e + ) + }, {})), + Object.keys(m).sort(function (e, t) { + return m[e] - m[t] + })) + : n, + ) + var r, i, o, a, u, h, p, g, m + }, [])), + p = t.rects.reference, + g = t.rects.popper, + m = new Map(), + v = !0, + y = h[0], + b = 0; + b < h.length; + b++ + ) { + var w = h[b], + C = hx(w), + x = Lx(w) === tx, + E = (S = 0 <= [qC, $C].indexOf(C)) ? 'width' : 'height', + O = Gx(t, { + placement: w, + boundary: s, + rootBoundary: c, + altBoundary: u, + padding: l, + }), + S = S ? (x ? KC : QC) : x ? $C : qC + ;(x = (p[E] > g[E] && (S = Rx(S)), Rx(S))), (E = []) + if ( + (i && E.push(O[C] <= 0), + o && E.push(O[S] <= 0, O[x] <= 0), + E.every(function (e) { + return e + })) + ) { + ;(y = w), (v = !1) + break + } + m.set(w, E) + } + if (v) + for ( + var k = d ? 3 : 1; + 0 < k && + 'break' !== + (function (e) { + var t = h.find(function (t) { + if ((t = m.get(t))) + return t.slice(0, e).every(function (e) { + return e + }) + }) + if (t) return (y = t), 'break' + })(k); + k-- + ) ; + t.placement !== y && + ((t.modifiersData[e]._skip = !0), (t.placement = y), (t.reset = !0)) + } + }, + requiresIfExists: ['offset'], + data: {_skip: !1}, + }, + { + name: 'preventOverflow', + enabled: !0, + phase: 'main', + fn: function (e) { + var t, + n, + r, + i, + o, + a, + l, + s, + c, + u = e.state, + d = e.options, + f = ((e = e.name), void 0 === (f = d.mainAxis) || f), + h = void 0 !== (h = d.altAxis) && h, + p = d.boundary, + g = d.rootBoundary, + m = d.altBoundary, + v = d.padding, + y = void 0 === (y = d.tether) || y, + b = + ((d = void 0 === (d = d.tetherOffset) ? 0 : d), + (p = Gx(u, { + boundary: p, + rootBoundary: g, + padding: v, + altBoundary: m, + })), + (g = hx(u.placement)), + (m = !(v = Lx(u.placement))), + Sx(g)), + w = 'x' === b ? 'y' : 'x', + C = u.modifiersData.popperOffsets, + x = u.rects.reference, + E = u.rects.popper, + O = + ((d = + 'number' == + typeof (d = + 'function' == typeof d + ? d(Object.assign({}, u.rects, {placement: u.placement})) + : d) + ? {mainAxis: d, altAxis: d} + : Object.assign({mainAxis: 0, altAxis: 0}, d)), + u.modifiersData.offset ? u.modifiersData.offset[u.placement] : null), + S = {x: 0, y: 0} + C && + (f && + ((f = 'y' === b ? 'height' : 'width'), + (a = (l = C[b]) + p[(n = 'y' === b ? qC : QC)]), + (s = l - p[(c = 'y' === b ? $C : KC)]), + (t = y ? -E[f] / 2 : 0), + (i = (v === tx ? x : E)[f]), + (v = v === tx ? -E[f] : -x[f]), + (o = u.elements.arrow), + (o = y && o ? yx(o) : {width: 0, height: 0}), + (n = (r = u.modifiersData['arrow#persistent'] + ? u.modifiersData['arrow#persistent'].padding + : {top: 0, right: 0, bottom: 0, left: 0})[n]), + (r = r[c]), + (c = kx(0, x[f], o[f])), + (o = m ? x[f] / 2 - t - c - n - d.mainAxis : i - c - n - d.mainAxis), + (i = m ? -x[f] / 2 + t + c + r + d.mainAxis : v + c + r + d.mainAxis), + (m = (n = u.elements.arrow && Ox(u.elements.arrow)) + ? 'y' === b + ? n.clientTop || 0 + : n.clientLeft || 0 + : 0), + (v = l + i - (t = null != (f = null == O ? void 0 : O[b]) ? f : 0)), + (c = kx(y ? gx(a, l + o - t - m) : a, l, y ? px(s, v) : s)), + (C[b] = c), + (S[b] = c - l)), + h && + ((r = 'y' == w ? 'height' : 'width'), + (i = (n = C[w]) + p['x' === b ? qC : QC]), + (f = n - p['x' === b ? $C : KC]), + (o = -1 !== [qC, QC].indexOf(g)), + (m = null != (t = null == O ? void 0 : O[w]) ? t : 0), + (a = o ? i : n - x[r] - E[r] - m + d.altAxis), + (v = o ? n + x[r] + E[r] - m - d.altAxis : f), + (l = + y && o + ? ((s = kx((s = a), n, (c = v))), c < s ? c : s) + : kx(y ? a : i, n, y ? v : f)), + (C[w] = l), + (S[w] = l - n)), + (u.modifiersData[e] = S)) + }, + requiresIfExists: ['offset'], + }, + { + name: 'arrow', + enabled: !0, + phase: 'main', + fn: function (e) { + var t, + n, + r, + i, + o = e.state, + a = e.name, + l = ((e = e.options), o.elements.arrow), + s = o.modifiersData.popperOffsets, + c = Sx((u = hx(o.placement))), + u = 0 <= [QC, KC].indexOf(u) ? 'height' : 'width' + l && + s && + ((n = o), + (n = Px( + 'number' != + typeof (e = + 'function' == typeof (e = e.padding) + ? e(Object.assign({}, n.rects, {placement: n.placement})) + : e) + ? e + : _x(e, ex), + )), + (e = yx(l)), + (i = 'y' === c ? qC : QC), + (r = 'y' === c ? $C : KC), + (t = o.rects.reference[u] + o.rects.reference[c] - s[c] - o.rects.popper[u]), + (s = s[c] - o.rects.reference[c]), + (l = (l = Ox(l)) ? ('y' === c ? l.clientHeight || 0 : l.clientWidth || 0) : 0), + (i = n[i]), + (n = l - e[u] - n[r]), + (i = kx(i, (r = l / 2 - e[u] / 2 + (t / 2 - s / 2)), n)), + (o.modifiersData[a] = (((l = {})[c] = i), (l.centerOffset = i - r), l))) + }, + effect: function (e) { + var t = e.state + null != (e = void 0 === (e = e.options.element) ? '[data-popper-arrow]' : e) && + ('string' != typeof e || (e = t.elements.popper.querySelector(e))) && + bx(t.elements.popper, e) && + (t.elements.arrow = e) + }, + requires: ['popperOffsets'], + requiresIfExists: ['preventOverflow'], + }, + { + name: 'hide', + enabled: !0, + phase: 'main', + requiresIfExists: ['preventOverflow'], + fn: function (e) { + var t = e.state, + n = ((e = e.name), t.rects.reference), + r = t.rects.popper, + i = t.modifiersData.preventOverflow, + o = Gx(t, {elementContext: 'reference'}), + a = Gx(t, {altBoundary: !0}) + ;(o = Zx(o, n)), (n = Zx(a, r, i)), (a = Ux(o)), (r = Ux(n)) + ;(t.modifiersData[e] = { + referenceClippingOffsets: o, + popperEscapeOffsets: n, + isReferenceHidden: a, + hasPopperEscaped: r, + }), + (t.attributes.popper = Object.assign({}, t.attributes.popper, { + 'data-popper-reference-hidden': a, + 'data-popper-escaped': r, + })) + }, + }, + ], + }) + + function Kx(e) { + var t = l.exports.useRef(null) + return ( + l.exports.useEffect(function () { + var n, + r, + i = document.querySelector('#'.concat(e)), + o = i || ((n = e), (r = document.createElement('div')).setAttribute('id', n), r) + return ( + i || document.body.append(o), + t.current && o.append(t.current), + function () { + t.current && t.current.remove(), -1 === o.childNodes.length && o.remove() + } + ) + }, []), + t.current || (t.current = document.createElement('div')), + t.current + ) + } + + var Qx = { + AutoStart: 'auto-start', + Auto: 'auto', + AutoEnd: 'auto-end', + TopStart: 'top-start', + Top: 'top', + TopEnd: 'top-end', + BottomStart: 'bottom-start', + Bottom: 'bottom', + BottomEnd: 'bottom-end', + LeftStart: 'left-start', + Left: 'left', + LeftEnd: 'left-end', + RightStart: 'right-start', + Right: 'right', + RightEnd: 'right-end', + }, + Jx = + (n((hp = {}), Qx.Auto, Bd(['top:0px;bottom:0px;left:0px;right:0px;'])), + n(hp, Qx.AutoEnd, Bd(['top:0px;bottom:0px;left:0px;right:0px;'])), + n(hp, Qx.AutoStart, Bd(['top:0px;bottom:0px;left:0px;right:0px;'])), + n(hp, Qx.Right, Bd(['left:-4px;'])), + n(hp, Qx.RightEnd, Bd(['left:-4px;'])), + n(hp, Qx.RightStart, Bd(['left:-4px;'])), + n(hp, Qx.Left, Bd(['right:-4px;'])), + n(hp, Qx.LeftEnd, Bd(['right:-4px;'])), + n(hp, Qx.LeftStart, Bd(['right:-4px;'])), + n(hp, Qx.Top, Bd(['bottom:-4px;'])), + n(hp, Qx.TopEnd, Bd(['bottom:-4px;'])), + n(hp, Qx.TopStart, Bd(['bottom:-4px;'])), + n(hp, Qx.Bottom, Bd(['top:-4px;'])), + n(hp, Qx.BottomEnd, Bd(['top:-4px;'])), + n(hp, Qx.BottomStart, Bd(['top:-4px;'])), + hp), + eE = + ((s = 'Popper'), + (Pp = fe.div.attrs({className: Fh(s, 'root')}).withConfig({componentId: 'sc-1373tsp-0'})( + function () { + return Bd(['']) + }, + )), + (Gv = fe.div + .attrs({className: Fh(s, 'wrapper')}) + .withConfig({componentId: 'sc-1373tsp-1'})(function (e) { + return Bd(['position:relative;z-index:', ';'], e.zIndex) + })), + (Zv = fe.div.attrs({className: Fh(s, 'arrow')}).withConfig({componentId: 'sc-1373tsp-2'})( + function (e) { + var t = e.position + return Bd( + [ + "width:8px;height:8px;position:absolute;&::before{content:'';background:", + ';width:8px;height:8px;transform:rotate(45deg);position:absolute;top:0;left:0;z-index:-1;}', + '', + ], + e.theme.palette[pp.IconsPrimary], + Jx[void 0 === t ? Qx.Right : t], + ) + }, + )), + Wh({ + Popper: Pp, + Overlay: fe.div + .attrs({className: Fh(s, 'Overlay')}) + .withConfig({componentId: 'sc-1373tsp-3'})(function () { + return Bd([ + 'position:fixed;right:0px;bottom:0px;top:0px;left:0px;background-color:transparent;', + ]) + }), + Arrow: Zv, + PopperWrapper: Gv, + })) + + function tE(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function nE(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? tE(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : tE(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + var rE = Bh(function (e, t) { + var n = e.anchorEl, + r = e.children, + i = e.open, + o = void 0 === (u = e.position) ? 'bottom' : u, + a = void 0 !== (u = e.arrow) && u, + s = e.popperOptions, + c = e.onClick, + u = void 0 !== (u = e.overlay) && u, + d = void 0 === (d = e.zIndex) ? 1300 : d, + f = e.enableUnderlayingEvent, + h = ((e = void 0 === (e = e.wrapperStyles) ? {} : e), Kx(Fh('Popper'))), + p = l.exports.useRef(null), + g = Zh(p, t) + l.exports.useEffect( + function () { + var e, t + if (n && i && null !== p.current) + return ( + (e = a + ? [ + { + name: 'arrow', + options: {element: '[data-popper-arrow]'}, + }, + {name: 'offset', options: {offset: [0, 10]}}, + ] + : []), + s && null != s.modifiers && (e = e.concat(s.modifiers)), + (t = $x(n, p.current, nE(nE({placement: o}, s), {}, {modifiers: e}))), + (g.current = t), + function () { + t.destroy(), (g.current = null) + } + ) + }, + [n, i, s, o, a], + ), + (t = function (e) { + var t + e.persist(), + e.preventDefault(), + e.stopPropagation(), + c && c(e), + f && + ((t = e), + setTimeout(function () { + var e + t.clientX && + t.clientY && + (e = document.elementFromPoint(t.clientX, t.clientY)) && + e.dispatchEvent(t.nativeEvent) + }, 0)) + }) + return i + ? pe.exports.createPortal( + he.createElement( + eE.PopperWrapper, + {zIndex: d, style: nE({}, e)}, + u && he.createElement(eE.Overlay, {onClick: t, onContextMenu: t}), + he.createElement( + eE.Popper, + {ref: g}, + r, + a && + he.createElement(eE.Arrow, { + 'data-popper-arrow': !0, + position: (null == g || null == (d = g.state) ? void 0 : d.placement) || o, + }), + ), + ), + h, + ) + : he.createElement('div', {ref: g}) + }), + iE = + ((Yb = + ((rE.defaultProps = {}), + { + anchorEl: on.oneOfType([on.instanceOf(Element), on.object]), + popperOptions: on.shape({ + modifiers: on.arrayOf( + on.shape({ + data: on.object, + effect: on.func, + enabled: on.bool, + fn: on.func, + name: on.any.isRequired, + options: on.object, + phase: on.oneOf([ + 'afterMain', + 'afterRead', + 'afterWrite', + 'beforeMain', + 'beforeRead', + 'beforeWrite', + 'main', + 'read', + 'write', + ]), + requires: on.arrayOf(on.string), + requiresIfExists: on.arrayOf(on.string), + }), + ), + onFirstUpdate: on.func, + placement: on.oneOf(Vh(Qx)), + strategy: on.oneOf(Vh({Absloute: 'absolute', Fixed: 'fixed'})), + }), + overlay: on.bool, + arrow: on.bool, + zIndex: on.number, + enableUnderlayingEvent: on.bool, + wrapperStyles: on.object, + })), + (rE.propTypes = Yb), + rE), + oE = + ((Qb = fe.div + .attrs({className: Fh('Menu', 'Overlay')}) + .withConfig({componentId: 'sc-10okxhw-0'})(function () { + return Bd([ + 'position:fixed;right:0px;bottom:0px;top:0px;left:0px;background-color:transparent;z-index:-1;', + ]) + })), + Wh({ + Menu: fe.div + .attrs({className: Fh('Menu', 'root')}) + .withConfig({componentId: 'sc-10okxhw-1'})(function (e) { + var t = e.rect, + n = e.theme + e = void 0 === (e = e.maxHeight) ? '' : e + return Bd( + [ + 'min-width:', + 'px;min-height:16px;overflow-x:hidden;overflow-y:auto;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms,transform 167ms cubic-bezier(0.4,0,0.2,1) 0ms;outline:0;box-shadow:0 2px 4px ', + ';border-radius:', + ';', + '::-webkit-scrollbar{width:6px;}::-webkit-scrollbar-track{background:#f1f1f1;}::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.35);border-radius:2px;}::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,0.5);}', + ], + t.width, + n.palette[pp.LightShadow], + n.shape.borderRadius[mp.Md], + e && Bd(['max-height:', ';'], Number.isNaN(+e) ? e : ''.concat(e, 'px')), + ) + }), + Overlay: Qb, + })), + aE = [ + 'id', + 'children', + 'open', + 'fullWidth', + 'anchorElPosition', + 'anchorEl', + 'onClose', + 'containerProps', + 'alignCenter', + 'maxHeight', + 'position', + 'popperOptions', + 'enableOverlay', + 'zIndex', + 'hideScroll', + 'enableUnderlayingEvent', + 'popperWrapperStyles', + ] + + function lE(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function sE(e, t) { + return Math.min(e.width / t.width, e.height / t.height) || 1 + } + + var cE = Bh(function (e, t) { + e.id + var r = e.children, + i = e.open, + o = (e.fullWidth, e.anchorElPosition), + a = e.anchorEl, + s = e.onClose, + c = e.containerProps, + u = e.alignCenter, + d = e.maxHeight, + f = e.position, + h = e.popperOptions, + p = void 0 === (p = e.enableOverlay) || p, + g = e.zIndex, + m = void 0 === (v = e.hideScroll) || v, + v = void 0 !== (v = e.enableUnderlayingEvent) && v, + y = void 0 === (y = e.popperWrapperStyles) ? {} : y, + b = ((e = Yc(e, aE)), (E = jp(l.exports.useState(null), 2))[0]), + w = E[1], + C = (E = jp(l.exports.useState(new DOMRect()), 2))[0], + x = E[1], + E = l.exports.useRef(null), + O = l.exports.useCallback( + function () { + var e, + t = (function (e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? lE(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : lE(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + })({top: 0, left: 0, height: 0, width: 0}, o || {}) + t = new DOMRect(t.left, t.top, t.width, t.height) + x(null != (e = null == a ? void 0 : a.getBoundingClientRect()) ? e : t) + }, + [i, b, a], + ), + S = l.exports.useCallback( + function () { + i && (b && clearTimeout(b), w(setTimeout(O, 300))) + }, + [i, b], + ) + return ( + l.exports.useEffect( + function () { + return ( + window.addEventListener('resize', S), + function () { + window.removeEventListener('resize', S) + } + ) + }, + [S], + ), + l.exports.useEffect( + function () { + O() + }, + [o, O], + ), + l.exports.useEffect( + function () { + if (m) + return ( + i + ? (document.body.classList.add('Menu-open'), O()) + : document.body.classList.remove('Menu-open'), + function () { + document.body.classList.remove('Menu-open') + } + ) + }, + [i, O], + ), + he.createElement( + he.Fragment, + null, + he.createElement( + iE, + { + ref: E, + position: f || 'bottom', + open: Boolean(a), + anchorEl: a, + overlay: Boolean(p), + onClick: function () { + 'function' == typeof s && s() + }, + popperOptions: h, + zIndex: g, + enableUnderlayingEvent: v, + wrapperStyles: y, + }, + he.createElement( + oE.Menu, + Ip({}, c, {alignCenter: Boolean(u), rect: C}, e, { + ref: t, + maxHeight: d, + }), + r, + ), + ), + ) + ) + }) + ;(cE.defaultProps = { + open: !1, + containerProps: {}, + maxHeight: 0, + position: 'bottom', + enableOverlay: !0, + hideScroll: !0, + }), + (Kb = { + anchorElPosition: on.shape({ + left: on.number, + right: on.number, + top: on.number, + bottom: on.number, + }), + anchorEl: on.instanceOf(Element), + open: on.bool, + fullWidth: on.bool, + onClose: on.func, + id: on.string, + containerProps: on.object, + alignCenter: on.bool, + maxHeight: on.oneOfType([on.string, on.number]), + popperOptions: Yb.popperOptions, + position: on.oneOf(Vh(Qx)), + enableOverlay: on.bool, + zIndex: on.number, + hideScroll: on.bool, + enableUnderlayingEvent: on.bool, + popperWrapperStyles: on.object, + }) + + function uE(e, t) { + var n = l.exports.forwardRef(e) + return (n.displayName = t || e.name), n + } + + function dE(e) { + switch (e) { + case mE.Xl: + return 16 + case mE.Lg: + case mE.Md: + return 14 + case mE.Sm: + return 12 + default: + return 11 + } + } + + cE.propTypes = Kb + var fE = ['color', 'size'], + hE = uE(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 28 : r + e = Yc(e, fE) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M41.3465 44.355C33.5656 50.7844 22.9687 51.6268 14.3708 47.3665L17.8949 44.4545C24.754 47.117 32.7424 46.1093 38.709 41.1792C44.6755 36.249 47.1546 28.6071 45.8085 21.3893L49.3325 18.4773C51.9291 27.6967 49.1274 37.9256 41.3465 44.355Z', + fill: n, + }), + he.createElement('path', { + d: 'M36.1749 2.63356L32.6509 5.54555C25.821 2.91828 17.838 3.86187 11.8366 8.82088C5.87009 13.7511 3.42028 21.4282 4.7372 28.6107L1.21311 31.5227C-1.38344 22.3034 1.45314 12.0456 9.19916 5.64502C16.9801 -0.784402 27.5768 -1.62682 36.1749 2.63356Z', + fill: n, + }), + ) + }), + pE = {Left: 'left', Right: 'right', Top: 'top', Bottom: 'bottom'}, + gE = { + Primary: 'primary', + Secondary: 'secondary', + Link: 'link', + Error: 'error', + }, + mE = {Xs: 'xs', Sm: 'sm', Md: 'md', Lg: 'lg', Xl: 'xl'}, + vE = + (n( + (RC = {}), + (WE = {Primary: 'primary', Secondary: 'secondary', White: 'white'}).Primary, + function (e) { + return Bd( + ['background-color:', ';color:', ';'], + (e = e.theme.palette)[pp.AccentPrimary], + e[pp.ButtonPrimaryText], + ) + }, + ), + n(RC, WE.White, function (e) { + return Bd( + ['background-color:', ';color:', ';'], + (e = e.theme.palette)[pp.ButtonPrimaryText], + e[pp.AccentPrimary], + ) + }), + n(RC, WE.Secondary, function (e) { + return Bd(['background-color:', ';color:#e9eef2;'], e.theme.palette[pp.IconsPrimary]) + }), + RC), + yE = Wh({ + BadgeRoot: fe.span + .attrs({className: Fh('Badge', 'root')}) + .withConfig({componentId: 'sc-1rfm40m-0'})([ + 'position:relative;display:inline-flex;flex-shrink:0;vertical-align:middle;', + ]), + Badge: fe.span.attrs({className: Fh('Badge')}).withConfig({componentId: 'sc-1rfm40m-1'})( + function (e) { + var t = e.size, + n = void 0 === (n = e.color) ? 'secondary' : n, + r = void 0 === (r = e.fontSize) ? '0.75rem' : r, + i = void 0 === (i = e.padding) ? '0 6px' : i + return Bd( + [ + '', + ' display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:center;align-content:center;height:', + 'px;min-width:', + 'px;line-height:1;padding:', + ';font-size:', + ';box-sizing:border-box;transition:transform 225ms cubic-bezier(0.4,0,0.2,1) 0ms;border-radius:', + 'px;z-index:1;', + '', + ], + e.inline ? '' : 'position: absolute;', + t || 20, + t || 20, + 'number' == typeof i ? ''.concat(i, 'px') : i, + 'number' == typeof r ? ''.concat(r, 'px') : r, + (t || 20) / 2, + vE[n], + ) + }, + ), + }), + bE = ['badgeContent'], + wE = + ((DC = Bh(function (e, t) { + var n = e.badgeContent + e = Yc(e, bE) + return he.createElement(yE.BadgeRoot, {ref: t}, he.createElement(yE.Badge, e, n)) + })), + (DC.defaultProps = {color: WE.Secondary, inline: !1}), + (DC.propTypes = { + color: on.oneOf(Vh(WE)), + badgeContent: on.node, + size: on.oneOfType([on.number]), + fontSize: on.oneOfType([on.number, on.string]), + padding: on.oneOfType([on.number, on.string]), + inline: on.bool, + }), + DC), + CE = + (n((bp = {}), gE.Primary, function (e) { + return Bd( + [ + 'background-color:', + ';color:', + ';', + '{background-color:', + ';}&:hover{background-color:', + ';}&:active{background-color:', + ';}&:disabled{color:', + ';background:', + ';', + '{background-color:', + ';color:', + ';}}', + ], + (e = e.theme.palette)[pp.AccentPrimary], + e[pp.ButtonPrimaryText], + yE.Badge, + e[pp.ButtonPrimaryText], + e[pp.AccentPrimaryHover], + e[pp.AccentPrimaryActive], + e[pp.ButtonDisabledText], + e[pp.AccentPrimaryDisabled], + yE.Badge, + e[pp.ButtonDisabledText], + e[pp.AccentPrimaryDisabled], + ) + }), + n(bp, gE.Secondary, function (e) { + return Bd( + [ + 'background-color:', + ';color:', + ';&:hover{background-color:', + ';}&:active{background-color:', + ';}&:disabled{color:', + ';background:', + ';', + '{background-color:', + ';}}', + '{background-color:', + ';}', + ], + (e = e.theme.palette)[pp.ActiveSecondary], + e[pp.IconsPrimary], + e[pp.ActiveSecondaryHover], + e[pp.ActiveSecondaryActive], + e[pp.ButtonDisabledText], + e[pp.AccentPrimaryDisabled], + yE.Badge, + e[pp.ButtonDisabledText], + yE.Badge, + e[pp.IconsPrimary], + ) + }), + n(bp, gE.Link, function (e) { + return Bd( + [ + 'background-color:transparent;color:', + ';&:hover{color:', + ';', + '{background-color:', + ';}}&:active{color:', + ';', + '{background-color:', + ';}}&:disabled{color:', + ';', + '{background-color:', + ';}}', + ], + (e = e.theme.palette)[pp.LinkPrimary], + e[pp.LinkHover], + yE.Badge, + e[pp.LinkHover], + e[pp.LinkActive], + yE.Badge, + e[pp.LinkActive], + e[pp.ButtonDisabledText], + yE.Badge, + e[pp.ButtonDisabledText], + ) + }), + n(bp, gE.Error, function (e) { + return Bd( + [ + 'background-color:', + ';color:', + ';', + '{background-color:', + ';}&:hover{background-color:rgba(224,81,44,1);}&:active{background-color:rgba(201,58,23,1);}&:disabled{color:', + ';background:', + ';', + '{background-color:', + ';color:', + ';}}', + ], + (e = e.theme.palette)[pp.Error], + e[pp.ButtonPrimaryText], + yE.Badge, + e[pp.ButtonPrimaryText], + e[pp.ButtonDisabledText], + e[pp.AccentPrimaryDisabled], + yE.Badge, + e[pp.ButtonDisabledText], + e[pp.AccentPrimaryDisabled], + ) + }), + bp), + xE = + (n((Zr = {}), mE.Xs, Bd(['padding:4px 8px;'])), + n(Zr, mE.Sm, Bd(['padding:6px 10px;'])), + n(Zr, mE.Md, Bd(['padding:8px 12px;'])), + n(Zr, mE.Lg, Bd(['padding:10px 14px;'])), + n(Zr, mE.Xl, Bd(['padding:12px 16px;'])), + Zr), + EE = + (n((a = {}), mE.Xs, function (e) { + return Bd(e.theme.typography.font[gp.ButtonXs]) + }), + n(a, mE.Sm, function (e) { + return Bd(e.theme.typography.font[gp.ButtonSm]) + }), + n(a, mE.Md, function (e) { + return Bd(e.theme.typography.font[gp.ButtonMd]) + }), + n(a, mE.Lg, function (e) { + return Bd(e.theme.typography.font[gp.ButtonLg]) + }), + n(a, mE.Xl, function (e) { + return Bd(e.theme.typography.font[gp.ButtonXl]) + }), + a), + OE = + ((sv = 'Button'), + fe.span.attrs({className: Fh(sv, 'Label')}).withConfig({componentId: 'sc-lxwit0-0'})([ + 'display:flex;', + ])), + SE = + ((kr = fe.span + .attrs({className: Fh(sv, 'Badge')}) + .withConfig({componentId: 'sc-lxwit0-1'})(['display:flex;margin-left:5px;'])), + Wh({ + Button: fe.button + .attrs({className: Fh(sv, 'root')}) + .withConfig({componentId: 'sc-lxwit0-2'})(function (e) { + var t = e.color, + n = void 0 === (n = e.size) ? mE.Md : n + return Bd( + [ + 'display:inline-flex;flex-shrink:0;flex-direction:row;align-items:center;border-radius:', + ';border:0;cursor:pointer;outline:none;', + ' ', + ' ', + '{', + '}', + ], + e.theme.shape.borderRadius[mp.Sm], + CE[void 0 === t ? gE.Secondary : t], + xE[n], + OE, + EE[n], + ) + }), + Label: OE, + Icon: fe.span + .attrs({className: Fh(sv, 'Icon')}) + .withConfig({componentId: 'sc-lxwit0-3'})(function (e) { + return Bd( + ['display:flex;margin-right:4px;margin-left:1px;svg{animation:', ';}'], + e.$loading ? 'spinner 1.2s linear infinite' : '1.2s', + ) + }), + Badge: kr, + })), + kE = ['children', 'icon', 'badge', 'color', 'size', 'loading', 'disabled'], + PE = + ((hp = Bh(function (e, t) { + var n = e.children, + r = e.icon, + i = e.badge, + o = e.color, + a = e.size, + l = e.loading, + s = e.disabled + e = Yc(e, kE) + return he.createElement( + SE.Button, + Ip({}, e, {disabled: l || s, color: o, size: a, ref: t}), + r && + he.createElement( + SE.Icon, + {$loading: l}, + 'function' == typeof r + ? l + ? he.createElement(hE, {size: dE(a)}) + : r({size: dE(a)}) + : l + ? he.createElement(hE, {size: dE(a)}) + : r, + ), + l && + !r && + he.createElement(SE.Icon, {$loading: l}, he.createElement(hE, {size: dE(a)})), + he.createElement(SE.Label, null, n), + i && + he.createElement( + SE.Badge, + null, + he.createElement(wE, { + inline: !0, + size: 14, + fontSize: 10, + padding: '0 1px', + badgeContent: i, + color: o === gE.Primary ? 'white' : 'secondary', + }), + ), + ) + })), + (hp.defaultProps = {size: mE.Md, color: gE.Secondary}), + (hp.propTypes = { + size: on.oneOf(Vh(mE)), + color: on.oneOf(Vh(gE)), + icon: on.oneOfType([on.node, on.func]), + badge: on.node, + loading: on.bool, + disabled: on.bool, + }), + hp), + _E = fe(PE).withConfig({componentId: 'sc-ldar2z-0'})(['margin:0 0 0 6px;padding:0;']), + LE = fe.div.withConfig({componentId: 'sc-ldar2z-1'})([ + 'margin-right:6px;svg,span{vertical-align:middle;}', + ]), + TE = fe(Jb).withConfig({componentId: 'sc-ldar2z-2'})(['margin-left:4px;cursor:pointer;']), + jE = ['color', 'size'], + IE = + ((Pp = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, jE) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M0.562515 0.562512H3.68752V2.90626H2.90627V3.68751H0.562515V0.562512ZM0.562515 44.3125V47.4375H3.68752V45.0938H2.90627V44.3125H0.562515ZM44.3125 47.4375H47.4375V44.3125H45.0938V45.0938H44.3125V47.4375ZM47.4375 3.68751V0.562512H44.3125V2.90626H45.0938V3.68751H47.4375ZM7.59376 0.562512V3.68751H12.2813V0.562512H7.59376ZM16.9688 0.562512V3.68751H21.6563V0.562512H16.9688ZM26.3438 0.562512V3.68751H31.0313V0.562512H26.3438ZM35.7188 0.562512V3.68751H40.4063V0.562512H35.7188ZM47.4375 7.59376H44.3125V12.2813H47.4375V7.59376ZM47.4375 16.9688H44.3125V21.6563H47.4375V16.9688ZM47.4375 26.3438H44.3125V31.0313H47.4375V26.3438ZM47.4375 35.7188H44.3125V40.4063H47.4375V35.7188ZM40.4063 47.4375V44.3125H35.7188V47.4375H40.4063ZM31.0313 47.4375V44.3125H26.3438V47.4375H31.0313ZM21.6563 47.4375V44.3125H16.9688V47.4375H21.6563ZM12.2813 47.4375V44.3125H7.59377V47.4375H12.2813ZM0.562515 40.4063H3.68752V35.7188H0.562515V40.4063ZM0.562515 31.0313H3.68752V26.3438H0.562515V31.0313ZM0.562515 21.6563H3.68752V16.9688H0.562515V21.6563ZM0.562515 12.2813H3.68752V7.59376H0.562515V12.2813Z', + fill: n, + }), + ) + })), + ['color', 'size']), + ME = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, IE) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M25.2047 46.875C37.2859 46.875 47.0797 37.0812 47.0797 25C47.0797 12.9188 37.2859 3.125 25.2047 3.125C13.1235 3.125 3.32968 12.9188 3.32968 25C3.32968 37.0812 13.1235 46.875 25.2047 46.875ZM25.2047 50C39.0118 50 50.2047 38.8071 50.2047 25C50.2047 11.1929 39.0118 0 25.2047 0C11.3976 0 0.204681 11.1929 0.204681 25C0.204681 38.8071 11.3976 50 25.2047 50Z', + fill: n, + }), + ) + }), + RE = ((s = ME), ['color', 'size']), + DE = + ((Zv = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, RE) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 51 36', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M4.11841 3.93805V32.063H47.8684V3.93805H4.11841ZM3.49341 0.813049C2.1127 0.813049 0.993408 1.91235 0.993408 3.26841V32.7327C0.993408 34.0887 2.1127 35.188 3.49341 35.188H48.4934C49.8741 35.188 50.9934 34.0887 50.9934 32.7327V3.26841C50.9934 1.91235 49.8741 0.813049 48.4934 0.813049H3.49341Z', + fill: n, + }), + ) + })), + ['color', 'size']), + AE = + ((Gv = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, DE) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 36 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M32.0559 46.8755L32.0559 3.12555L3.93091 3.12555L3.93091 46.8755H32.0559ZM35.1809 3.12555C35.1809 1.39966 33.7818 0.000549316 32.0559 0.000549316H3.93091C2.20502 0.000549316 0.805908 1.39966 0.805908 3.12555V46.8755C0.805908 48.6014 2.20502 50.0005 3.93091 50.0005H32.0559C33.7818 50.0005 35.1809 48.6014 35.1809 46.8755L35.1809 3.12555Z', + fill: n, + }), + ) + })), + ['color', 'size']), + zE = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, AE) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M31.3032 17.8662C34.0646 17.8662 36.3032 15.6276 36.3032 12.8662C36.3032 10.1048 34.0646 7.86618 31.3032 7.86618C28.5418 7.86618 26.3032 10.1048 26.3032 12.8662C26.3032 15.6276 28.5418 17.8662 31.3032 17.8662ZM31.3032 15.3662C32.6839 15.3662 33.8032 14.2469 33.8032 12.8662C33.8032 11.4855 32.6839 10.3662 31.3032 10.3662C29.9225 10.3662 28.8032 11.4855 28.8032 12.8662C28.8032 14.2469 29.9225 15.3662 31.3032 15.3662Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M15.9372 15.1063C16.3967 15.0794 16.8338 15.3071 17.075 15.6991L25.0831 28.7141L29.8357 24.4289C30.0935 24.1966 30.4362 24.0818 30.7819 24.1121C31.1276 24.1424 31.4452 24.3151 31.6586 24.5887L40.2822 35.6497C40.5759 36.0264 40.6292 36.5376 40.4196 36.9668C40.21 37.396 39.7741 37.6683 39.2964 37.6683H6.70331C6.2766 37.6683 5.87937 37.4506 5.64974 37.091C5.42011 36.7313 5.38981 36.2794 5.56937 35.8923L14.8765 15.8282C15.0702 15.4106 15.4777 15.1333 15.9372 15.1063ZM16.1652 18.991L8.66108 35.1683H36.7368L30.5126 27.1848L25.6422 31.5761C25.3666 31.8246 24.9947 31.9378 24.6274 31.885C24.26 31.8322 23.9351 31.6189 23.7406 31.3027L16.1652 18.991Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V43C45.5 44.3807 44.3807 45.5 43 45.5H3C1.61929 45.5 0.5 44.3807 0.5 43V3ZM3 3H43V43H3V3Z', + fill: n, + }), + ) + }), + NE = [ + {titleKey: 'original', ratio: Bv, icon: zE}, + {titleKey: 'custom', ratio: 'custom', icon: Pp}, + { + titleKey: 'landscape', + descriptionKey: '16:9', + ratio: CC(16 / 9), + icon: Zv, + }, + { + titleKey: 'portrait', + descriptionKey: '9:16', + ratio: CC(9 / 16), + icon: Gv, + }, + {titleKey: 'ellipse', ratio: Vv, icon: s}, + ], + HE = ['color', 'size'], + FE = uE(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 8 : r + e = Yc(e, HE) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M37.2754 25L12.2754 -1.03614e-06L12.2754 50L37.2754 25Z', + fill: n, + }), + ) + }), + BE = {Sm: 'sm', Md: 'md'}, + VE = + (n((rE = {}), BE.Sm, function (e) { + return Bd(['padding:4px 8px;min-height:22px;', ''], e.theme.typography.font[gp.LabelSmall]) + }), + n(rE, BE.Md, function (e) { + return Bd( + ['padding:8px 12px;min-height:32px;', ''], + e.theme.typography.font[gp.LabelNormal], + ) + }), + rE), + WE = + ((Qb = 'MenuItem'), + (Yb = fe.div.attrs({className: Fh(Qb, 'Icon')}).withConfig({componentId: 'sc-rrzye0-0'})( + function (e) { + return Bd( + [ + 'display:flex;flex-shrink:0;color:', + ';&:first-child{margin-right:8px;}&:last-child{margin-left:8px;}', + ], + e.theme.palette[pp.IconsPrimary], + ) + }, + )), + (RC = fe(Yb) + .attrs({className: Fh(Qb, 'Actions')}) + .withConfig({componentId: 'sc-rrzye0-1'})(function () { + return Bd(['']) + })), + fe.div.attrs({className: Fh(Qb, 'Label')}).withConfig({componentId: 'sc-rrzye0-2'})([ + 'flex-grow:1;', + ])), + GE = Wh({ + MenuItemWrapper: fe.div + .attrs({className: Fh(Qb, 'wrapper')}) + .withConfig({componentId: 'sc-rrzye0-3'})(function (e) { + var t = e.disabled + e = e.theme + return Bd( + ['', ''], + t && + Bd( + ['width:100%;height:1px;background:', ';box-sizing:border-box;'], + e.palette[pp.BordersSecondary], + ), + ) + }), + MenuItem: fe.div + .attrs({className: Fh(Qb, 'root')}) + .withConfig({componentId: 'sc-rrzye0-4'})(function (e) { + var t = e.size, + n = e.active, + r = e.theme + e = e.disableHover + return Bd( + [ + 'display:flex;flex-direction:row;align-items:center;width:100%;background:', + ';cursor:pointer;box-sizing:border-box;', + ' &:focus-within,&:focus,&:hover{', + ';}', + ], + r.palette[n ? pp.BackgroundPrimaryHover : pp.BackgroundSecondary], + VE[void 0 === t ? BE.Md : t], + !(void 0 !== e && e) && 'background-color: '.concat(r.palette[pp.BackgroundPrimaryHover]), + ) + }), + MenuPrefix: fe.div + .attrs({className: Fh(Qb, 'prefix')}) + .withConfig({componentId: 'sc-rrzye0-5'})(function () { + return Bd(['display:flex;margin-right:8px;']) + }), + MenuContent: fe.div + .attrs({className: Fh(Qb, 'content')}) + .withConfig({componentId: 'sc-rrzye0-6'})(function () { + return Bd(['flex-grow:1;line-height:16px;']) + }), + MenuSuffix: fe.div + .attrs({className: Fh(Qb, 'suffix')}) + .withConfig({componentId: 'sc-rrzye0-7'})(function () { + return Bd(['display:flex;margin-left:8px;']) + }), + Label: WE, + Icon: Yb, + Actions: RC, + }), + ZE = ['list', 'depth', 'children', 'disableHover'] + + function UE(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + var XE = Bh(function (e, t) { + var r = e.list, + i = void 0 === (i = e.depth) ? 0 : i, + o = e.children, + a = e.disableHover, + l = Yc(e, ZE), + s = (e = jp(he.useState(null), 2))[0], + c = e[1], + u = (e = jp(he.useState([]), 2))[0], + d = e[1], + f = function (e) { + c(e.currentTarget) + } + return r + ? he.createElement( + he.Fragment, + null, + (function (e) { + var r = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 0 + return e.map(function (e) { + var i, + o = e.subList && 0 < e.subList.length + return ( + u[r] === e.key && + o && + ((o = r + 1), + (i = he.createElement( + cE, + Ip( + { + key: e.key, + position: 'right', + open: Boolean(s), + anchorEl: s, + enableOverlay: !1, + }, + e.subMenuProps, + ), + he.createElement(XE, Ip({list: e.subList, depth: o}, l)), + ))), + e.disabled + ? he.createElement(GE.MenuItemWrapper, { + disabled: !0, + key: e.key, + }) + : he.createElement( + GE.MenuItemWrapper, + {disabled: !1, key: e.key}, + he.createElement( + GE.MenuItem, + Ip({}, l, { + className: e.className, + ref: t, + active: Boolean(e.active), + onClick: e.onClick + ? function (t) { + return e.onClick( + (function (e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? UE(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + e, + Object.getOwnPropertyDescriptors(r), + ) + : UE(Object(r)).forEach(function (t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(r, t), + ) + }) + } + return e + })({event: t}, l), + ) + } + : void 0, + onMouseEnter: function (t) { + return ( + (t = t), + (n = e.key), + (i = r), + ((o = u.slice(0))[i] = n), + d(o), + void f(t) + ) + var n, i, o + }, + disableHover: a || e.disableHover, + }), + e.prefix && + he.createElement( + GE.MenuPrefix, + null, + 'function' == typeof e.prefix ? e.prefix(l) : e.prefix, + ), + e.content && + he.createElement( + GE.MenuContent, + null, + 'function' == typeof e.content ? e.content(l) : e.content, + ), + (e.suffix || e.subList) && + he.createElement( + GE.MenuSuffix, + null, + 'function' == typeof e.suffix ? e.suffix(l) : e.suffix, + e.subList && + he.createElement(FE, { + size: 8, + color: '#768184', + }), + ), + ), + i, + ) + ) + }) + })(r, i), + ) + : he.createElement( + GE.MenuItemWrapper, + {disabled: !1}, + he.createElement(GE.MenuItem, Ip({}, l, {ref: t, disableHover: a}), o), + ) + }), + YE = + ((DC = ((XE.displayName = 'MenuItem'), {size: BE.Md, active: !1})), + (XE.defaultProps = DC), + (XE.propTypes = { + size: on.oneOf(Vh(BE)), + children: on.oneOfType([on.node, on.func]), + active: on.bool, + value: on.oneOfType([on.string, on.number, on.oneOf([null])]), + depth: on.number, + disableHover: on.bool, + }), + XE), + qE = ['children', 'size'], + $E = + ((bp = Bh(function (e, t) { + var n = e.children, + r = void 0 === (r = e.size) ? BE.Md : r + e = Yc(e, qE) + return he.createElement( + GE.Icon, + Ip({}, e, {ref: t}), + n && 'function' == typeof n ? n({size: r !== BE.Md ? 12 : 16}) : n, + ) + })), + (bp.defaultProps = {size: BE.Md}), + (bp.propTypes = { + size: on.oneOf(Vh(BE)), + children: on.oneOfType([on.node, on.func]).isRequired, + }), + bp), + KE = ['children'], + QE = + ((Zr = Bh(function (e, t) { + var n = e.children + e = Yc(e, KE) + return he.createElement(GE.Label, Ip({}, e, {ref: t}), n) + })), + (Zr.displayName = 'MenuItemLabel'), + Zr), + JE = ['children'], + eO = + ((a = Bh(function (e, t) { + var n = e.children + e = Yc(e, JE) + return he.createElement( + GE.Actions, + Ip({}, e, {ref: t}), + n && 'function' == typeof n ? n({size: e.size}) : n, + ) + })), + (a.displayName = 'MenuItemActions'), + (a.defaultProps = {size: BE.Md}), + (a.propTypes = { + size: on.oneOf(Vh(BE)), + children: on.oneOfType([on.node, on.func]).isRequired, + }), + a), + tO = + ((sv = { + size: on.number, + width: on.oneOfType([on.string, on.number]), + height: on.oneOfType([on.string, on.number]), + color: on.string, + color2: on.string, + stroke: on.string, + stroke2: on.string, + viewBox: on.string, + }), + n((kr = {}), pE.Right, Bd(['svg{transform:rotate(0);transition:transform 150ms;}'])), + n(kr, pE.Left, Bd(['svg{transform:rotate(180deg);transition:transform 150ms;}'])), + n(kr, pE.Top, Bd(['svg{transform:rotate(-90deg);transition:transform 150ms;}'])), + n(kr, pE.Bottom, Bd(['svg{transform:rotate(90deg);transition:transform 150ms;}'])), + kr), + nO = Wh({ + ArrowTick: fe.span + .attrs({className: Fh('ArrowTick', 'root')}) + .withConfig({componentId: 'sc-tlypde-0'})(function (e) { + return (e = e.type), Bd(['display:inline-flex;', ''], tO[void 0 === e ? pE.Right : e]) + }), + }), + rO = ['IconProps'], + iO = + ((hp = Bh(function (e, t) { + var n = e.IconProps + e = Yc(e, rO) + return he.createElement(nO.ArrowTick, Ip({}, e, {ref: t}), he.createElement(FE, n)) + })), + (hp.defaultProps = {type: pE.Right}), + (hp.propTypes = {type: on.oneOf(Vh(pE)), IconProps: on.exact(sv)}), + hp), + oO = + ((Pp = 'AccordionHeader'), + (Zv = fe.span + .attrs({className: Fh(Pp, 'Icon')}) + .withConfig({componentId: 'sc-1dtjsgt-0'})(function () { + return Bd(['display:inline-flex;padding-right:8px;']) + })), + (Gv = fe.span + .attrs({className: Fh(Pp, 'Label')}) + .withConfig({componentId: 'sc-1dtjsgt-1'})([''])), + Wh({ + AccordionHeader: fe.div + .attrs({className: Fh(Pp, 'root')}) + .withConfig({componentId: 'sc-1dtjsgt-2'})(function (e) { + return Bd( + ['', ' display:flex;align-items:center;cursor:pointer;color:', ';'], + Bd((e = e.theme).typography.font[gp.ButtonXs]), + e.palette[pp.LinkPrimary], + ) + }), + Icon: Zv, + Label: Gv, + })), + aO = ['expanded', 'label', 'onChange', 'onClick', 'onContextMenu', 'iconProps'] + + function lO(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + s = Bh(function (e, t) { + var r = e.expanded, + i = e.label, + o = e.onChange, + a = e.onClick, + l = e.onContextMenu, + s = e.iconProps + e = Yc(e, aO) + return he.createElement( + oO.AccordionHeader, + Ip( + { + ref: t, + onClick: function (e) { + 'function' == typeof o && o(!r), 'function' == typeof a && a(e) + }, + }, + e, + ), + he.createElement( + oO.Icon, + {onContextMenu: l}, + he.createElement(iO, { + type: r ? pE.Bottom : pE.Right, + IconProps: (function (e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? lO(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : lO(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + })({size: 8}, s), + }), + ), + he.createElement(oO.Label, {onContextMenu: l}, i), + ) + }) + var sO = + ((s.defaultProps = {expanded: !1}), + (s.propTypes = { + label: on.node.isRequired, + expanded: on.bool, + onChange: on.func, + iconProps: on.exact(sv), + }), + s), + cO = Wh({ + AccordionDetails: fe.div + .attrs({className: Fh('AccordionDetails', 'root')}) + .withConfig({componentId: 'sc-1wr6wpr-0'})(['margin:16px 0;']), + }), + uO = ['expanded', 'children'], + dO = + ((rE = Bh(function (e, t) { + var n = e.expanded, + r = e.children + e = Yc(e, uO) + return he.createElement( + he.Fragment, + null, + n && he.createElement(cO.AccordionDetails, Ip({ref: t}, e), r), + ) + })), + (rE.defaultProps = {expanded: !1}), + (rE.propTypes = {expanded: on.bool}), + rE), + fO = Wh({ + Accordion: fe.div + .attrs({className: Fh('Accordion', 'root')}) + .withConfig({componentId: 'sc-1g4tz7s-0'})(['']), + }), + hO = [ + 'label', + 'expanded', + 'children', + 'detailStyle', + 'headerStyle', + 'iconProps', + 'onClick', + 'onChange', + 'onContextMenu', + ] + + function pO(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function gO(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? pO(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : pO(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + Qb = Bh(function (e, t) { + var n = e.label, + r = e.expanded, + i = e.children, + o = e.detailStyle, + a = e.headerStyle, + l = e.iconProps, + s = e.onClick, + c = e.onChange, + u = e.onContextMenu + e = Yc(e, hO) + return he.createElement( + fO.Accordion, + Ip({ref: t}, e), + he.createElement(sO, { + label: n, + expanded: r, + style: gO({}, a), + onClick: function (e) { + 'function' == typeof c && c(!r, e), 'function' == typeof s && s(e) + }, + onContextMenu: u, + iconProps: l, + }), + he.createElement(dO, {expanded: r, style: gO({}, o)}, i), + ) + }) + var mO = + ((Qb.defaultProps = {expanded: !1}), + (Qb.propTypes = { + label: on.node.isRequired, + expanded: on.bool, + detailStyle: on.object, + headerStyle: on.object, + onChange: on.func, + onContextMenu: on.func, + iconProps: on.exact(sv), + }), + Qb), + vO = {height: 16, width: 16}, + yO = function (e) { + var t = e.titleKey, + n = e.description, + r = e.ratio, + i = e.onClick, + o = e.Icon, + a = e.isActive, + l = e.width, + s = e.height, + c = e.t, + u = e.disableManualResize + return he.createElement( + YE, + { + active: a, + onClick: function (e) { + return i(e, r, { + ratioTitleKey: t, + width: l, + height: s, + disableManualResize: u, + }) + }, + size: 'sm', + }, + o && + he.createElement( + LE, + null, + 'string' == typeof o + ? he.createElement('span', { + dangerouslySetInnerHTML: {__html: o}, + }) + : he.createElement(o, vO), + ), + c(t), + n && he.createElement(TE, null, n), + ) + } + + function bO(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function wO(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? bO(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : bO(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function CO(e) { + function t(e, t, r) { + i(e, t, wO(wO({}, r), {}, {ratioGroupKey: n})) + } + + var n = e.groupTitleKey, + r = e.items, + i = e.onItemSelect, + o = e.t, + a = e.isExpanded, + l = e.setExpandedGroup, + s = (e = xw().adjustments.crop).ratio, + c = e.ratioGroupKey, + u = e.ratioTitleKey + return he.createElement( + mO, + { + label: o(n), + onChange: function () { + l(a ? null : n) + }, + expanded: a, + }, + r.map(function (e) { + var r = e.titleKey, + i = e.ratio, + a = e.width, + l = e.height, + d = e.descriptionKey, + f = e.icon + ;(e = e.disableManualResize), (i = null != i ? i : CC(a / l)) + return he.createElement(yO, { + key: r, + titleKey: r, + t: o, + description: o(d), + size: 'sm', + onClick: t, + width: a, + height: l, + ratio: i, + Icon: f, + disableManualResize: e, + isActive: s === i && u === r && c === n, + }) + }), + ) + } + + function xO(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function EO(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? xO(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : xO(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function OO(e) { + function t(e, t, r) { + o(e, t, EO(EO({}, r), {}, {ratioFolderKey: n})) + } + + var n = e.titleKey, + r = e.Icon, + i = e.groups, + o = e.onItemSelect, + a = e.prefixIconDimensions, + s = e.t, + c = (e = xw().adjustments.crop).ratioFolderKey, + u = e.ratioGroupKey, + d = (e = jp(l.exports.useState(''), 2))[0], + f = e[1] + return he.createElement(YE, { + size: 'sm', + list: [ + { + content: s(n), + key: n, + active: n === c, + prefix: + r && + ('string' == typeof r + ? he.createElement('span', { + dangerouslySetInnerHTML: {__html: r}, + }) + : he.createElement(r, a)), + subList: i.map(function (e) { + var n = e.titleKey + e = e.items + return { + content: he.createElement(CO, { + groupTitleKey: n, + setExpandedGroup: f, + isExpanded: '' === d ? u === n : d === n, + t: s, + items: e, + onItemSelect: t, + }), + key: n, + disableHover: !0, + } + }), + }, + ], + }) + } + + function SO(e) { + function t(e, t, n) { + e.stopPropagation(), + (e = { + ratio: t, + ratioTitleKey: n.ratioTitleKey, + ratioGroupKey: n.ratioGroupKey, + ratioFolderKey: n.ratioFolderKey, + }), + i({type: vL, payload: e}), + d.autoResize && + (i({ + type: XL, + payload: { + width: n.width, + height: n.height, + manualChangeDisabled: n.disableManualResize, + }, + }), + i({ + type: kL, + payload: { + factor: n.width > u.width || n.height > u.height ? sE(u, n) : 1, + }, + })), + r() + } + + var n = e.anchorEl, + r = e.onClose, + i = (e = xw()).dispatch, + o = e.t, + a = (f = void 0 === (f = (f = void 0 === (f = e.adjustments) ? {} : f).crop) ? {} : f).ratio, + s = f.ratioTitleKey, + c = f.ratioFolderKey, + u = e.shownImageDimensions, + d = e.config[Av.CROP], + f = l.exports.useMemo( + function () { + var e = void 0 === (e = d.presetsItems) ? [] : e, + t = d.presetsFolders + return [].concat(Hh(void 0 === t ? [] : t), Hh(NE), Hh(e)) + }, + [d], + ) + return he.createElement( + he.Fragment, + null, + he.createElement( + rw, + {className: 'FIE_crop-tool-label FIE_selected-crop-preset-label'}, + o(s || 'cropTool'), + ), + he.createElement( + _E, + { + className: 'FIE_crop-presets-opener-button', + color: 'link', + size: 'lg', + }, + n ? he.createElement(he.Fragment, null, '▴') : he.createElement(he.Fragment, null, '▾'), + ), + he.createElement( + cE, + { + className: 'FIE_crop-presets-menu', + anchorEl: n, + enableOverlay: !0, + onClose: r, + open: !!n, + position: 'top', + }, + f.map(function (e) { + var n = e.titleKey, + r = e.descriptionKey, + i = e.ratio, + l = e.width, + s = e.height, + u = e.groups, + d = e.icon + e = e.disableManualResize + return u + ? he.createElement(OO, { + key: n, + titleKey: n, + groups: u, + Icon: d, + onItemSelect: t, + prefixIconDimensions: TO, + t: o, + disableManualResize: e, + }) + : he.createElement(yO, { + key: i, + ratio: null != i ? i : CC(l / s), + titleKey: n, + t: o, + description: o(r), + Icon: d, + isActive: a === (null != i ? i : CC(l / s)) && !c, + width: l, + height: s, + onClick: t, + disableManualResize: e, + }) + }), + ), + ) + } + + function kO(e) { + var t = e.selectTool, + n = ((e = e.isSelected), (r = xw()).config), + r = r.t, + i = jp(l.exports.useState(), 2), + o = i[0], + a = i[1] + return he.createElement( + ow, + { + className: 'FIE_crop-tool', + id: Av.CROP, + Icon: YC, + onClick: function (e, n) { + t(e), a(n.currentTarget) + }, + isSelected: e, + }, + n[Av.CROP].noPresets + ? he.createElement(rw, {className: 'FIE_crop-tool-label'}, r('cropTool')) + : he.createElement(SO, { + anchorEl: o, + onClose: function () { + a(null) + }, + }), + ) + } + + function PO(e) { + var t = e.selectTool, + n = e.isSelected, + r = e.t, + i = (e = xw()).dispatch, + o = e.adjustments.isFlippedX, + a = (e = l.exports.useMemo( + function () { + return { + reverseLabelOfCurrXFlipDir: r(o ? 'unFlipX' : 'flipX'), + reverseIconOfCurrXFlipDir: function () { + return he.createElement(IO, {style: o ? MO : void 0}) + }, + } + }, + [o], + )).reverseLabelOfCurrXFlipDir, + s = + ((e = e.reverseIconOfCurrXFlipDir), + l.exports.useCallback(function () { + i({type: pL, payload: {direction: 'X'}}) + }, [])), + c = l.exports.useCallback(function (e) { + t(e), s() + }, []) + return he.createElement(ow, { + className: 'FIE_flip-x-tool-button', + id: Av.FLIP_X, + label: a, + Icon: e, + onClick: c, + isSelected: n, + }) + } + + function _O(e) { + var t = e.selectTool, + n = e.isSelected, + r = e.t, + i = (e = xw()).dispatch, + o = e.adjustments.isFlippedY, + a = (e = l.exports.useMemo( + function () { + return { + reverseLabelOfCurrXFlipDir: r(o ? 'unFlipY' : 'flipY'), + reverseIconOfCurrXFlipDir: function () { + return he.createElement(DO, {style: o ? AO : void 0}) + }, + } + }, + [o], + )).reverseLabelOfCurrXFlipDir, + s = + ((e = e.reverseIconOfCurrXFlipDir), + l.exports.useCallback(function () { + i({type: pL, payload: {direction: 'Y'}}) + }, [])), + c = l.exports.useCallback(function (e) { + t(e), s() + }, []) + return he.createElement(ow, { + className: 'FIE_flip-y-tool-button', + id: Av.FLIP_Y, + label: a, + Icon: e, + onClick: c, + isSelected: n, + }) + } + + function LO(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_rotate-tool-button', + id: Av.ROTATE, + label: e('rotateTool'), + Icon: NO, + onClick: t, + isSelected: n, + }) + } + ;(yO.defaultProps = { + Icon: void 0, + width: void 0, + height: void 0, + disableManualResize: !1, + }), + (OO.defaultProps = {Icon: void 0}) + var TO = {height: 16, width: 16}, + jO = + ((kO.defaultProps = { + isSelected: !(SO.defaultProps = {anchorEl: null}), + }), + ['color', 'size']), + IO = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, jO) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M24.0625 1.93758C24.0625 1.22909 23.5858 0.609274 22.901 0.427427C22.2163 0.245581 21.4949 0.547225 21.1434 1.16237L1.14337 39.2874C0.867028 39.771 0.869012 40.3651 1.14858 40.8468C1.42814 41.3286 1.94302 41.6251 2.5 41.6251H22.5C23.3629 41.6251 24.0625 40.9255 24.0625 40.0626V1.93758ZM20.9375 38.5001H5.19247L20.9375 7.82128V38.5001Z', + fill: n, + }), + he.createElement('path', { + d: 'M28.8566 1.16237C28.5051 0.547225 27.7837 0.245581 27.099 0.427428C26.4142 0.609274 25.9375 1.22909 25.9375 1.93758V4.12508H26.9504L27.3934 4.9003L28.75 4.12508H29.0625V3.94651L30.1066 3.34986L28.8566 1.16237Z', + fill: n, + }), + he.createElement('path', { + d: 'M35.1066 12.0999L32.6066 7.72486L29.8934 9.2753L32.3934 13.6503L35.1066 12.0999Z', + fill: n, + }), + he.createElement('path', { + d: 'M25.9375 8.50008V12.8751H29.0625V8.50008H25.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M40.1066 23.9749L37.6066 19.5999L34.8934 21.1503L37.3934 25.5253L40.1066 23.9749Z', + fill: n, + }), + he.createElement('path', { + d: 'M25.9375 20.3751V24.7501H29.0625V20.3751H25.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.1066 32.7249L42.6066 28.3499L39.8934 29.9003L42.3934 34.2753L45.1066 32.7249Z', + fill: n, + }), + he.createElement('path', { + d: 'M25.9375 29.1251V33.5001H29.0625V29.1251H25.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M48.8566 39.2874L47.6066 37.0999L45.1562 38.5001H45V38.5894L44.8934 38.6503L45 38.8369V41.6251H47.5C48.057 41.6251 48.5719 41.3286 48.8514 40.8468C49.131 40.3651 49.133 39.771 48.8566 39.2874Z', + fill: n, + }), + he.createElement('path', { + d: 'M25.9375 37.8751V40.0626C25.9375 40.9255 26.6371 41.6251 27.5 41.6251H30V38.5001H29.0625V37.8751H25.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M35 41.6251H40V38.5001H35V41.6251Z', + fill: n, + }), + ) + }), + MO = {transform: 'scaleX(-1)'}, + RO = ((PO.defaultProps = {isSelected: !1}), ['color', 'size']), + DO = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, RO) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M37.5001 24.0625C38.2086 24.0625 38.8284 23.5858 39.0102 22.901C39.1921 22.2162 38.8904 21.4948 38.2753 21.1433L3.27531 1.14333C2.79171 0.866989 2.19757 0.868973 1.71583 1.14854C1.23409 1.4281 0.937592 1.94298 0.937592 2.49996V22.5C0.937592 23.3629 1.63715 24.0625 2.50009 24.0625L37.5001 24.0625ZM4.06259 20.9375L4.06259 5.19243L31.6164 20.9375L4.06259 20.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M38.2753 28.8566C38.8904 28.5051 39.1921 27.7837 39.0102 27.0989C38.8284 26.4142 38.2086 25.9375 37.5001 25.9375H35.3126V26.9504L34.5374 27.3933L35.3126 28.75V29.0625H35.4912L36.0878 30.1066L38.2753 28.8566Z', + fill: n, + }), + he.createElement('path', { + d: 'M27.3378 35.1066L31.7128 32.6066L30.1624 29.8933L25.7874 32.3933L27.3378 35.1066Z', + fill: n, + }), + he.createElement('path', { + d: 'M30.9376 25.9375H26.5626L26.5626 29.0625H30.9376L30.9376 25.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M18.5878 40.1066L22.9628 37.6066L21.4124 34.8933L17.0374 37.3933L18.5878 40.1066Z', + fill: n, + }), + he.createElement('path', { + d: 'M22.1876 25.9375H17.8126V29.0625H22.1876V25.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M9.83781 45.1066L14.2128 42.6066L12.6624 39.8933L8.28738 42.3933L9.83781 45.1066Z', + fill: n, + }), + he.createElement('path', { + d: 'M13.4376 25.9375H9.0626V29.0625H13.4376V25.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M3.27531 48.8566L5.46281 47.6066L4.06259 45.1562V45H3.97331L3.91238 44.8933L3.72578 45H0.937592V47.5C0.937592 48.0569 1.23409 48.5718 1.71583 48.8514C2.19758 49.1309 2.79171 49.1329 3.27531 48.8566Z', + fill: n, + }), + he.createElement('path', { + d: 'M4.6876 25.9375L2.50009 25.9375C1.63715 25.9375 0.937592 26.637 0.937592 27.5V30H4.06259V29.0625H4.6876V25.9375Z', + fill: n, + }), + he.createElement('path', { + d: 'M0.937592 35V40L4.06259 40V35H0.937592Z', + fill: n, + }), + ) + }), + AO = {transform: 'scaleY(-1)'}, + zO = ((_O.defaultProps = {isSelected: !1}), ['color', 'size']), + NO = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, zO) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M2.66029 14.6992L3.59754 14.4432L3.09234 3.93169C3.05919 3.24213 2.47333 2.71 1.78377 2.74314C1.09421 2.77628 0.562076 3.36215 0.595218 4.05171L1.16043 15.8118C1.19357 16.5014 1.77943 17.0335 2.46899 17.0004L14.2291 16.4351C14.9186 16.402 15.4508 15.8161 15.4176 15.1266C15.3845 14.437 14.7986 13.9049 14.1091 13.938L5.48449 14.3525C8.23226 7.41028 15.0052 2.5 22.925 2.5C33.2802 2.5 41.6748 10.8946 41.6748 21.2498C41.6748 22.403 41.5707 23.5319 41.3713 24.6276L43.7968 25.2605C44.0449 23.9617 44.1748 22.6209 44.1748 21.2498C44.1748 9.51386 34.6609 0 22.925 0C15.0467 0 8.16976 4.2873 4.50003 10.6561L2.66029 14.6992Z', + fill: n, + }), + he.createElement('path', { + d: 'M9.88493 34.7076L8.27775 36.6304C8.82615 37.1534 9.40249 37.6474 10.0043 38.1098L11.5276 36.1275C10.9528 35.6859 10.4044 35.2116 9.88493 34.7076Z', + fill: n, + }), + he.createElement('path', { + d: 'M12.3142 39.6562C13.9038 40.5759 15.6235 41.2956 17.439 41.7809L18.0846 39.3657C16.4846 38.938 14.9685 38.3036 13.5663 37.4923L12.3142 39.6562Z', + fill: n, + }), + he.createElement('path', { + d: 'M20.1654 42.3204C21.0738 42.4389 22.0002 42.5001 22.9408 42.5001C23.8815 42.5001 24.8079 42.4389 25.7163 42.3204L25.3929 39.8414C24.5915 39.946 23.7731 40.0001 22.9408 40.0001C22.1086 40.0001 21.2902 39.946 20.4888 39.8414L20.1654 42.3204Z', + fill: n, + }), + he.createElement('path', { + d: 'M28.4427 41.7809C30.2582 41.2956 31.9779 40.5759 33.5674 39.6562L32.3154 37.4923C30.9132 38.3036 29.3971 38.938 27.7971 39.3657L28.4427 41.7809Z', + fill: n, + }), + he.createElement('path', { + d: 'M35.8774 38.1098C37.3495 36.9786 38.6692 35.6589 39.8004 34.1868L37.8181 32.6635C36.8193 33.9633 35.6539 35.1287 34.3541 36.1275L35.8774 38.1098Z', + fill: n, + }), + he.createElement('path', { + d: 'M41.3468 31.8769C42.2665 30.2873 42.9862 28.5676 43.4715 26.7521L41.0563 26.1065C40.6286 27.7065 39.9942 29.2226 39.1829 30.6248L41.3468 31.8769Z', + fill: n, + }), + ) + }), + HO = + ((WE = ((LO.defaultProps = {isSelected: !1}), 'RotationSlider')), + Wh({ + RotationSliderList: fe.ul + .attrs({className: Fh(WE, 'list')}) + .withConfig({componentId: 'sc-1xuruq0-0'})([ + 'display:flex;align-items:center;position:relative;padding:0;width:100%;list-style:none;', + ]), + RotationSliderBigDot: fe.li + .attrs({className: Fh(WE, 'big-dot')}) + .withConfig({componentId: 'sc-1xuruq0-1'})(function (e) { + return Bd( + ['width:8px;height:8px;border-radius:50%;background-color:', ';cursor:pointer;'], + e.theme.palette[pp.LinkPrimary], + ) + }), + RotationSliderSmallDotWrapper: fe.div + .attrs({className: Fh(WE, 'small-dot-wrapper')}) + .withConfig({componentId: 'sc-1xuruq0-2'})(['padding:2px;']), + RotationSliderSmallDot: fe.li + .attrs({className: Fh(WE, 'small-dot')}) + .withConfig({componentId: 'sc-1xuruq0-3'})(function (e) { + return Bd( + ['width:2px;height:2px;border-radius:50%;background-color:', ';cursor:pointer;'], + e.theme.palette[pp.LinkPrimary], + ) + }), + RotationSliderControl: fe.span + .attrs({className: Fh(WE, 'control')}) + .withConfig({componentId: 'sc-1xuruq0-4'})(function (e) { + return Bd( + [ + 'display:flex;justify-content:center;align-items:center;position:absolute;height:18px;width:2px;transform:translate(-50%,-50%);top:50%;background-color:', + ";& > input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}", + ], + e.theme.palette[pp.LinkActive], + ) + }), + RotationSliderMark: fe.div + .attrs({className: Fh(WE, 'mark')}) + .withConfig({componentId: 'sc-1xuruq0-5'})(['padding:4px;']), + RotationSliderMarkText: fe.span + .attrs({className: Fh(WE, 'mark-text')}) + .withConfig({componentId: 'sc-1xuruq0-6'})(function (e) { + return Bd( + ['position:absolute;top:20px;font-size:14px;transform:translateX(-10%);color:', ';'], + e.theme.palette[pp.TextPrimary], + ) + }), + })), + FO = [ + 'min', + 'max', + 'angle', + 'onChange', + 'onMouseDown', + 'onMouseUp', + 'step', + 'labelTooltipOptions', + 'annotation', + 'hideMarkText', + 'value', + 'railProps', + 'trackProps', + 'thumbProps', + 'labelTooltipProps', + 'markStyles', + 'markTextStyles', + ] + + function BO(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function VO(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? BO(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : BO(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + function WO(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_contrast-tool-button', + id: Av.CONTRAST, + label: e('contrastTool'), + Icon: eS, + onClick: t, + isSelected: n, + }) + } + + function GO(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_hsv-tool-button', + id: Av.HSV, + label: e('hsvTool'), + Icon: iS, + onClick: t, + isSelected: n, + }) + } + + function ZO(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_blur-tool-button', + id: Av.BLUR, + label: e('blurTool'), + Icon: cS, + onClick: t, + isSelected: n, + }) + } + + function UO(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_warmth-tool-button', + id: Av.WARMTH, + label: e('warmthTool'), + Icon: hS, + onClick: t, + isSelected: n, + }) + } + + function XO(e) { + function t(e, t) { + var n = e.findIndex(function (e) { + return e.classList.contains('FIE_carousel-item') + }) + ;-1 !== n && + (e[n].scrollIntoView({ + inline: t, + behavior: 'smooth', + block: 'nearest', + }), + setTimeout(function () { + p() + }, 500)) + } + + function n(e) { + var t + ;(a.current = ((null == (t = e.touches) ? void 0 : t[0]) || e).pageX), + document.addEventListener('mousemove', g), + document.addEventListener('mouseup', m), + document.addEventListener('touchmove', g), + document.addEventListener('touchcancel', m), + document.addEventListener('touchend', m) + } + + var r = e.children, + i = e.style, + o = e.className, + a = l.exports.useRef(!1), + s = l.exports.useRef(), + c = jp(cC(), 1)[0], + u = (e = jp(l.exports.useState(!1), 2))[0], + d = e[1], + f = (e = jp(l.exports.useState(!1), 2))[0], + h = e[1], + p = + ((e = l.exports.Children.toArray(r)), + function () { + var e, t, n + s.current && + ((t = (e = s.current).scrollWidth), + (n = e.offsetWidth), + (e = e.scrollLeft), + (t = Math.round(t - n)), + (n = Math.round(t - e)), + d(0 < e), + h(0 < n)) + }), + g = function (e) { + var t + a.current && + ((t = ((null == (t = e.touches) ? void 0 : t[0]) || e).pageX), + s.current.scrollBy(a.current - t, 0), + (a.current = t), + Tw(p, 30)()) + }, + m = function () { + ;(a.current = null), + document.removeEventListener('mousemove', g), + document.removeEventListener('mouseup', m), + document.removeEventListener('touchmove', g), + document.removeEventListener('touchcancel', m), + document.removeEventListener('touchend', m) + } + return ( + l.exports.useEffect(function () { + s.current && c(s.current, p) + }, []), + he.createElement( + yS, + { + className: ''.concat(o, '-wrapper'), + style: i, + onMouseDown: n, + onTouchStart: n, + }, + u && + he.createElement( + CS, + { + className: 'FIE_carousel-prev-button', + onClick: function (e) { + var n = (r = jw()).topOffset, + r = r.leftOffset + t( + (r = document.elementsFromPoint( + e.pageX + e.currentTarget.offsetWidth - r, + e.pageY - n, + )), + 'end', + ) + }, + }, + he.createElement(vS, null), + ), + he.createElement( + bS, + {className: ''.concat(o, '-items'), ref: s}, + e.map(function (e) { + return he.createElement( + wS, + { + className: ''.concat(o, '-item-wrapper FIE_carousel-item'), + key: e.key, + }, + e, + ) + }), + ), + f && + he.createElement( + xS, + { + className: 'FIE_carousel-next-button', + onClick: function (e) { + var n = (r = jw()).topOffset, + r = r.leftOffset + t( + (r = document.elementsFromPoint( + e.pageX - e.currentTarget.offsetWidth - r, + e.pageY - n, + )), + 'start', + ) + }, + }, + he.createElement(vS, null), + ), + ) + ) + } + + function YO(e) { + var t = e.filterLabel, + n = e.filterFn, + r = e.applyFilter, + i = e.isActive, + o = e.image, + a = l.exports.useRef(), + s = + ((e = l.exports.useCallback( + function () { + r(n) + }, + [n], + )), + l.exports.useCallback(function () { + a.current ? a.current.cache() : setTimeout(s, 0) + }, [])) + return ( + l.exports.useEffect( + function () { + return ( + o && s(), + function () { + var e + null != (e = a.current) && e.clearCache() + } + ) + }, + [o], + ), + he.createElement( + ES, + {className: 'FIE_filters-item', onClick: e, 'aria-selected': i}, + he.createElement( + OS, + {className: 'FIE_filters-item-preview', width: 60, height: 45}, + he.createElement( + Ev, + {onTap: e}, + he.createElement(Sv, { + image: o, + filters: n ? [n] : [], + width: 60, + height: 45, + x: 0, + y: 0, + ref: a, + }), + ), + ), + he.createElement(SS, {className: 'FIE_filters-item-label'}, t), + ) + ) + } + + function qO(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_text-tool-button', + id: Av.TEXT, + label: e('textTool'), + Icon: TS, + onClick: t, + isSelected: n, + }) + } + + function $O(e) { + var t = e.annotation, + n = e.updateAnnotation + ;(e = e.t), (t = t.opacity) + return he.createElement( + US, + null, + he.createElement(Jb, null, e('opacity')), + he.createElement(GC, { + annotation: '%', + onChange: function (e) { + n({opacity: Iw(e / 100, KS, QS)}) + }, + value: Math.round(100 * t), + }), + ) + } + + function KO(e) { + return Bd( + ['background:', ' !important;border:1px solid ', ' !important;'], + (e = e.theme.palette)[pp.BackgroundSecondary], + e[pp.Error], + ) + } + + Yb = Bh(function (e, t) { + var n = void 0 === (l = e.min) ? 0 : l, + r = void 0 === (l = e.max) ? 100 : l, + i = void 0 === (l = e.angle) ? 10 : l, + o = e.onChange, + a = void 0 === (l = (e.onMouseDown, e.onMouseUp, e.step)) ? 1 : l, + l = void 0 === (l = e.labelTooltipOptions) ? MC.Off : l, + s = void 0 === (u = e.annotation) ? '°' : u, + c = void 0 !== (u = e.hideMarkText) && u, + u = e.value, + d = void 0 === (d = e.railProps) ? {} : d, + f = void 0 === (f = e.trackProps) ? {} : f, + h = void 0 === (h = e.thumbProps) ? {} : h, + p = void 0 === (p = e.labelTooltipProps) ? {} : p, + g = void 0 === (v = e.markStyles) ? {} : v, + m = void 0 === (v = e.markTextStyles) ? {} : v, + v = Yc(e, FO) + return he.createElement( + BC, + Ip( + { + min: n, + max: r, + step: a, + value: u || 0 === u ? (r < u ? r : u < n ? n : u) : n, + hideTrack: !0, + hideAnnotation: !0, + annotation: s, + onChange: function (e, t) { + o && o(e, t) + }, + labelTooltip: l, + ref: t, + components: { + Rail: function (e, t) { + return he.createElement( + HO.RotationSliderList, + Ip({}, e, {styles: VO({}, t)}), + (function () { + for (var e, t = [], o = n; o <= r; o += a) + (e = []), + o % i == 0 || o === r + ? (e = he.createElement( + HO.RotationSliderMark, + {key: o, style: VO({}, g)}, + !c && + he.createElement( + HO.RotationSliderMarkText, + {style: VO({}, m)}, + o === n + 1 ? r : o, + he.createElement('sup', null, s), + ), + he.createElement(HO.RotationSliderBigDot, null), + )) + : o % 10 == 0 && + (e = he.createElement( + HO.RotationSliderSmallDotWrapper, + {key: o}, + he.createElement(HO.RotationSliderSmallDot, null), + )), + Array.isArray(e) || t.push(e) + return t + })(), + ) + }, + Thumb: HO.RotationSliderControl, + }, + componentsProps: { + rail: VO(VO({}, d), {}, {style: VO({}, d.style)}), + track: VO(VO({}, f), {}, {style: VO({}, f.style)}), + thumb: VO(VO({}, h), {}, {style: VO({top: '15%'}, h.style)}), + labelTooltip: VO(VO({}, p), {}, {style: VO({}, p.style)}), + }, + }, + v, + { + defaultValue: Number(v.defaultValue), + style: VO({width: 'auto', height: 'auto'}, v.style), + }, + ), + ) + }) + var QO = + ((Yb.defaultProps = { + annotation: '°', + min: 0, + max: 100, + step: 1, + labelTooltipOptions: MC.Off, + }), + (Yb.propTypes = { + value: on.oneOfType([on.array, on.number]), + min: on.number, + max: on.number, + angle: on.number, + onChange: on.func, + onMouseDown: on.func, + onMouseUp: on.func, + step: on.number, + annotation: on.string, + hideMarkText: on.bool, + railProps: on.object, + trackProps: on.object, + thumbProps: on.object, + labelTooltipProps: on.object, + markStyles: on.object, + markTextStyles: on.object, + labelTooltipOptions: on.oneOf(Vh(MC)), + }), + Yb), + JO = ['color', 'size'], + eS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, JO) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M20.4376 40.6858V38.5625V4.18746V3.31418C10.8133 4.10816 3.25006 12.1708 3.25006 22C3.25006 31.8292 10.8133 39.8918 20.4376 40.6858ZM40.7501 22C40.7501 31.8292 33.1868 39.8918 23.5626 40.6858V38.5625V4.18746V3.31418C33.1868 4.10816 40.7501 12.1708 40.7501 22ZM43.8751 22C43.8751 34.0812 34.0813 43.875 22.0001 43.875C9.91883 43.875 0.125061 34.0812 0.125061 22C0.125061 9.91877 9.91883 0.125 22.0001 0.125C34.0813 0.125 43.8751 9.91877 43.8751 22Z', + fill: n, + }), + ) + }), + tS = ((WO.defaultProps = {isSelected: !1}), {contrast: 0}), + nS = {width: 150, padding: 0}, + rS = ['color', 'size'], + iS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, rS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M37.2341 37.6984H37.5121V37.4237C41.4447 33.4687 43.875 28.0182 43.875 22C43.875 15.9819 41.4447 10.5314 37.5121 6.57632V6.30045H37.2328C33.2942 2.47819 27.9219 0.125031 22 0.125031C9.91877 0.125031 0.125 9.9188 0.125 22C0.125 34.0813 9.91877 43.875 22 43.875C24.718 43.875 27.3203 43.3793 29.7213 42.4733H30.5303V42.1494C33.0389 41.0861 35.308 39.5679 37.2341 37.6984ZM20.4257 3.31519C10.807 4.1148 3.25 12.1749 3.25 22C3.25 31.8252 10.807 39.8853 20.4257 40.6849V3.31519ZM34.3871 36.0759C33.221 37.1029 31.9263 37.9873 30.5303 38.7017V5.29836C31.9263 6.01281 33.221 6.89715 34.3871 7.92411V36.0759ZM37.5121 11.4641C39.5556 14.4669 40.75 18.094 40.75 22C40.75 25.9061 39.5556 29.5332 37.5121 32.536V11.4641ZM23.5507 40.6868C24.8796 40.578 26.1693 40.3307 27.4053 39.9592V4.04089C26.1693 3.66941 24.8796 3.42203 23.5507 3.31324V40.6868Z', + fill: n, + }), + ) + }), + oS = + ((GO.defaultProps = {isSelected: !1}), + fe.div.withConfig({componentId: 'sc-tm5uj2-0'})(['margin:6px;'])), + aS = {hue: 0, saturation: 0, value: 0}, + lS = {padding: 0}, + sS = ['color', 'size'], + cS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, sS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M18.3626 41.293C17.5103 41.4285 16.7096 40.8474 16.5742 39.9952C16.4387 39.143 17.0198 38.3423 17.872 38.2068C18.2902 38.1403 18.6988 38.0456 19.0958 37.9246C21.9368 37.059 24.1957 34.8468 25.1254 32.0335C25.2671 31.6049 25.378 31.1621 25.4555 30.7076C25.6005 29.857 26.4076 29.2849 27.2583 29.4299C28.109 29.5749 28.681 30.3821 28.536 31.2327C28.432 31.8429 28.283 32.4379 28.0926 33.0142C26.8449 36.7893 23.8206 39.7519 20.0065 40.914C19.4728 41.0766 18.9239 41.2038 18.3626 41.293Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M33.9356 31.0645C33.9356 23.9644 24.1764 8.59028 19.4747 1.59549C18.2785 -0.184172 15.7216 -0.184172 14.5254 1.59548C9.82374 8.59028 0.0645752 23.9644 0.0645752 31.0645C0.0645752 40.4177 7.64685 48 17.0001 48C26.3533 48 33.9356 40.4177 33.9356 31.0645ZM30.8106 31.0645C30.8106 29.8836 30.375 28.0316 29.4236 25.578C28.5 23.1959 27.1988 20.5159 25.7187 17.7756C22.8106 12.3913 19.3287 6.98743 17.0001 3.51586C14.6715 6.98743 11.1895 12.3913 8.28145 17.7756C6.80135 20.5159 5.50017 23.1959 4.57655 25.578C3.62517 28.0316 3.18958 29.8836 3.18958 31.0645C3.18958 38.6918 9.37274 44.875 17.0001 44.875C24.6274 44.875 30.8106 38.6918 30.8106 31.0645Z', + fill: n, + }), + ) + }), + uS = ((ZO.defaultProps = {isSelected: !1}), {blurRadius: 0}), + dS = {width: 150, padding: 0}, + fS = ['color', 'size'], + hS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, fS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M9.48799 3.125H17.0311L17.0311 24.4063C17.0311 26.6148 18.1889 28.4084 19.5429 29.5401C21.7011 31.3438 23.0656 34.0456 23.0656 37.069C23.0656 42.4847 18.6753 46.875 13.2595 46.875C7.84382 46.875 3.45351 42.4847 3.45351 37.069C3.45351 34.0456 4.81799 31.3438 6.97617 29.5401C8.33021 28.4084 9.48799 26.6148 9.48799 24.4063V3.125ZM20.1561 3.125C20.1561 1.39911 18.757 0 17.0311 0H9.48799C7.7621 0 6.36299 1.39911 6.36299 3.125V24.4063C6.36299 25.4785 5.79482 26.4547 4.97216 27.1423C2.13398 29.5143 0.328506 33.0808 0.328506 37.069C0.328506 44.2106 6.11793 50 13.2595 50C20.4012 50 26.1906 44.2106 26.1906 37.069C26.1906 33.0808 24.3851 29.5143 21.5469 27.1423C20.7243 26.4547 20.1561 25.4785 20.1561 24.4063V3.125ZM35.6715 1.25C35.6715 0.559645 35.1119 0 34.4215 0H28.1715C27.4812 0 26.9215 0.559644 26.9215 1.25C26.9215 1.94036 27.4812 2.5 28.1715 2.5L34.4215 2.5C35.1119 2.5 35.6715 1.94036 35.6715 1.25ZM35.6715 8.24951C35.6715 7.55916 35.1119 6.99951 34.4215 6.99951H28.1715C27.4812 6.99951 26.9215 7.55916 26.9215 8.24951C26.9215 8.93987 27.4812 9.49951 28.1715 9.49951H34.4215C35.1119 9.49951 35.6715 8.93987 35.6715 8.24951ZM34.4215 13.999C35.1119 13.999 35.6715 14.5587 35.6715 15.249C35.6715 15.9394 35.1119 16.499 34.4215 16.499H28.1715C27.4812 16.499 26.9215 15.9394 26.9215 15.249C26.9215 14.5587 27.4812 13.999 28.1715 13.999H34.4215ZM13.2594 43.7501C16.366 43.7501 18.8844 41.2317 18.8844 38.1251C18.8844 35.4037 16.9519 33.1337 14.3844 32.6126V10.3662C14.3844 9.67582 13.8247 9.11617 13.1344 9.11617C12.444 9.11617 11.8844 9.67582 11.8844 10.3662V32.6694C9.44245 33.2829 7.63441 35.4928 7.63441 38.1251C7.63441 41.2317 10.1528 43.7501 13.2594 43.7501Z', + fill: n, + }), + ) + }), + pS = ((UO.defaultProps = {isSelected: !1}), {warmth: 0}), + gS = {width: 150, padding: 0}, + mS = ['stroke', 'size'], + vS = Vb(function (e, t) { + var n = void 0 === (n = e.stroke) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 10 : r + e = Yc(e, mS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r * (51 / 56), + height: r, + viewBox: '0 0 51 56', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M12.2754 3L37.2754 27.0741L12.2754 53', + stroke: n, + strokeWidth: '5', + strokeLinecap: 'round', + strokeLinejoin: 'round', + }), + ) + }), + yS = fe.div.withConfig({componentId: 'sc-1nr0bka-0'})([ + 'max-width:680px;min-width:150px;position:relative;overflow:hidden;touch-action:pan-y pinch-zoom;', + ]), + bS = fe.ul.withConfig({componentId: 'sc-1nr0bka-1'})([ + 'padding:0;margin:0;white-space:nowrap;overflow:hidden;', + ]), + wS = fe.li.withConfig({componentId: 'sc-1nr0bka-2'})([ + 'padding:4px;display:inline-block;list-style-type:none;user-select:none;', + ]), + CS = fe.div.withConfig({componentId: 'sc-1nr0bka-3'})( + [ + '', + ' left:0;background:linear-gradient( 90deg,#ffffff 1.56%,rgba(255,255,255,0.93) 70%,rgba(255,255,255,0) 100% );svg{transform:scaleX(-1);}', + ], + '\n position: absolute;\n top: 0;\n height: 100%;\n width: 30px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n', + ), + xS = fe.div.withConfig({componentId: 'sc-1nr0bka-4'})( + [ + '', + ' background:linear-gradient( 270deg,#ffffff 1.56%,rgba(255,255,255,0.93) 70%,rgba(255,255,255,0) 100% );right:0;', + ], + '\n position: absolute;\n top: 0;\n height: 100%;\n width: 30px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n', + ), + ES = + ((XO.defaultProps = {style: null}), + fe.div.withConfig({componentId: 'sc-oxugzy-0'})([ + 'display:inline-flex;flex-direction:column;align-items:center;justify-content:center;margin:0 4px;padding:2px;cursor:pointer;border-radius:2px;canvas{border-radius:2px;}', + ])), + OS = fe(_v).withConfig({componentId: 'sc-oxugzy-1'})( + ["[aria-selected='true'] &{padding:1px;border:2px solid ", ';border-radius:2px;}'], + function (e) { + return e.theme.palette['accent-primary-active'] + }, + ), + SS = fe(Jb).withConfig({componentId: 'sc-oxugzy-2'})( + ["margin-top:6px;font-size:11px;line-height:12px;[aria-selected='true'] &{color:", ';}'], + function (e) { + return e.theme.palette['accent-primary-active'] + }, + ), + kS = ((YO.defaultProps = {filterFn: void 0}), l.exports.memo(YO)), + PS = [ + {label: 'Original', filterFn: null}, + {label: 'Invert', filterFn: (RC = av.Filters).Invert}, + {label: 'Black & White', filterFn: ry}, + {label: 'Sepia', filterFn: RC.Sepia}, + {label: 'Solarize', filterFn: RC.Solarize}, + {label: 'Clarendon', filterFn: dy}, + {label: 'Gingham', filterFn: fy}, + {label: 'Moon', filterFn: hy}, + {label: 'Lark', filterFn: gy}, + {label: 'Reyes', filterFn: my}, + {label: 'Juno', filterFn: yy}, + {label: 'Slumber', filterFn: by}, + {label: 'Crema', filterFn: Cy}, + {label: 'Ludwig', filterFn: xy}, + {label: 'Aden', filterFn: Oy}, + {label: 'Perpetua', filterFn: ky}, + {label: 'Amaro', filterFn: Py}, + {label: 'Mayfair', filterFn: Ly}, + {label: 'Rise', filterFn: jy}, + {label: 'Hudson', filterFn: My}, + {label: 'Valencia', filterFn: Dy}, + {label: 'X-Pro II', filterFn: zy}, + {label: 'Sierra', filterFn: Ny}, + {label: 'Willow', filterFn: Fy}, + {label: 'Lo-Fi', filterFn: By}, + {label: 'Inkwell', filterFn: RC.Grayscale}, + {label: 'Hefe', filterFn: Vy}, + {label: 'Nashville', filterFn: Gy}, + {label: 'Stinson', filterFn: Zy}, + {label: 'Vesper', filterFn: Xy}, + {label: 'Earlybird', filterFn: qy}, + {label: 'Brannan', filterFn: Ky}, + {label: 'Sutro', filterFn: Qy}, + {label: 'Toaster', filterFn: eb}, + {label: 'Walden', filterFn: nb}, + {label: '1977', filterFn: ib}, + {label: 'Kelvin', filterFn: lb}, + {label: 'Maven', filterFn: cb}, + {label: 'Ginza', filterFn: ub}, + {label: 'Skyline', filterFn: db}, + {label: 'Dogpatch', filterFn: fb}, + {label: 'Brooklyn', filterFn: pb}, + {label: 'Helena', filterFn: mb}, + {label: 'Ashby', filterFn: yb}, + {label: 'Charmes', filterFn: wb}, + ], + _S = {maxWidth: '100%', width: '100%'}, + LS = ['color', 'size'], + TS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, LS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M39.4229 8.89453L39.7891 16.6582H38.8613C38.6823 15.291 38.4382 14.3145 38.1289 13.7285C37.6243 12.7845 36.9489 12.0928 36.1025 11.6533C35.2725 11.1976 34.1738 10.9697 32.8066 10.9697H28.1436V36.2627C28.1436 38.2972 28.3633 39.5667 28.8027 40.0713C29.4212 40.7549 30.3734 41.0967 31.6592 41.0967H32.8066V42H18.7686V41.0967H19.9404C21.3402 41.0967 22.333 40.6735 22.9189 39.8271C23.277 39.3063 23.4561 38.1182 23.4561 36.2627V10.9697H19.4766C17.9303 10.9697 16.8317 11.0837 16.1807 11.3115C15.3343 11.6208 14.61 12.2148 14.0078 13.0938C13.4056 13.9727 13.0475 15.1608 12.9336 16.6582H12.0059L12.3965 8.89453H39.4229Z', + fill: n, + }), + ) + }), + jS = TS, + IS = ((qO.defaultProps = {isSelected: !1}), ['color', 'size']), + MS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, IS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 14 18', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M0.214966 17.4813V0.518677H6.61123C8.82693 0.518677 10.5075 0.914783 11.653 1.70699C12.7985 2.49144 13.3712 3.64481 13.3712 5.16709C13.3712 5.99814 13.1413 6.7321 12.6814 7.36898C12.2216 7.99809 11.5819 8.46021 10.7625 8.75535C11.699 8.97282 12.4348 9.41164 12.9699 10.0718C13.5133 10.732 13.7851 11.5397 13.7851 12.4951C13.7851 14.1261 13.2249 15.361 12.1045 16.1998C10.9841 17.0386 9.38713 17.4658 7.31357 17.4813H0.214966ZM3.97748 10.0951V14.6736H7.20069C8.08697 14.6736 8.77677 14.4795 9.27007 14.0911C9.77174 13.695 10.0226 13.1513 10.0226 12.4601C10.0226 10.9067 9.1572 10.1184 7.42644 10.0951H3.97748ZM3.97748 7.62528H6.76173C8.65971 7.59421 9.6087 6.89132 9.6087 5.5166C9.6087 4.74769 9.36623 4.19625 8.88128 3.86228C8.4047 3.52054 7.64801 3.34967 6.61123 3.34967H3.97748V7.62528Z', + fill: n, + }), + ) + }), + RS = ['color', 'size'], + DS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, RS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 14 18', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M2.57409 19.3964H0.160461L3.42596 0.603638H5.83958L2.57409 19.3964Z', + fill: n, + }), + ) + }), + AS = ['color', 'size'], + zS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, AS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M0.166672 0.166664H8.50001V8.5H0.166672V0.166664Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M16.8333 8.5H8.50001V16.8333H0.166672V25.1667H8.50001V33.5H0.166672V41.8333H8.50001V33.5H16.8333V41.8333H25.1667V33.5H33.5V41.8333H41.8333V33.5H33.5V25.1667H41.8333V16.8333H33.5V8.5H41.8333V0.166664H33.5V8.5H25.1667V0.166664H16.8333V8.5ZM16.8333 16.8333V8.5H25.1667V16.8333H16.8333ZM16.8333 25.1667V33.5H25.1667V25.1667H33.5V16.8333H25.1667V25.1667H16.8333ZM16.8333 25.1667H8.50001V16.8333H16.8333V25.1667Z', + fill: n, + }), + ) + }), + NS = ['color', 'size'], + HS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, NS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M2.95831 0.458374C1.5776 0.458374 0.458313 1.57766 0.458313 2.95837V35.4584C0.458313 36.8391 1.5776 37.9584 2.95831 37.9584H7.54167V43.7917C7.54167 45.8627 9.2206 47.5417 11.2917 47.5417H43.7917C45.8627 47.5417 47.5417 45.8627 47.5417 43.7917V11.2917C47.5417 9.22059 45.8627 7.54166 43.7917 7.54166H37.9583V2.95837C37.9583 1.57766 36.839 0.458374 35.4583 0.458374H2.95831ZM35.4583 2.95837H2.95831L2.95831 35.4584H35.4583V2.95837ZM15.7267 37.9584L10.0417 43.746V37.9584H15.7267ZM11.5135 45.0417L18.4712 37.9584H28.5529L21.4696 45.0417H11.5135ZM24.4159 45.0417H34.2932L45.0417 34.1339V24.0207L37.9583 31.3242V35.4584C37.9583 36.8391 36.839 37.9584 35.4583 37.9584H31.4912C31.4689 37.9859 31.445 38.0126 31.4194 38.0382L24.4159 45.0417ZM45.0417 21.3515L37.9583 28.655V18.9107L45.0417 11.8338V21.3515ZM37.0311 45.0417H43.7917C44.482 45.0417 45.0417 44.482 45.0417 43.7917V36.9124L37.0311 45.0417ZM43.8844 10.045C43.8538 10.0428 43.8229 10.0417 43.7917 10.0417H37.9583V15.9657L43.8844 10.045Z', + fill: n, + }), + ) + }), + FS = ['color', 'size'], + BS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, FS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M5.50015 7.9997C5.50015 6.61898 6.61944 5.49969 8.00015 5.49969H38.0002C39.3809 5.49969 40.5002 6.61898 40.5002 7.99969V37.9997C40.5002 39.3804 39.3809 40.4997 38.0002 40.4997H8.00015C6.61944 40.4997 5.50015 39.3804 5.50015 37.9997V7.9997ZM8.00015 7.99969H38.0002V37.9997H8.00015V7.99969Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V43C45.5 44.3807 44.3807 45.5 43 45.5H3C1.61929 45.5 0.5 44.3807 0.5 43V3ZM3 3H43V43H3V3Z', + fill: n, + }), + ) + }), + VS = ['color', 'size'], + WS = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, VS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M9.25008 9.24878H11.7501V10.9675H10.9688V11.7488H9.25008V9.24878Z', + fill: n, + }), + he.createElement('path', { + d: 'M9.25008 34.2488V36.7488H11.7501V35.03H10.9688V34.2488H9.25008Z', + fill: n, + }), + he.createElement('path', { + d: 'M34.2501 36.7488H36.7501V34.2488H35.0313V35.03H34.2501V36.7488Z', + fill: n, + }), + he.createElement('path', { + d: 'M36.7501 11.7488V9.24878H34.2501V10.9675H35.0313V11.7488H36.7501Z', + fill: n, + }), + he.createElement('path', { + d: 'M14.4063 9.24878V11.7488H17.8438V9.24878H14.4063Z', + fill: n, + }), + he.createElement('path', { + d: 'M21.2813 9.24878V11.7488H24.7188V9.24878H21.2813Z', + fill: n, + }), + he.createElement('path', { + d: 'M28.1563 9.24878V11.7488H31.5938V9.24878H28.1563Z', + fill: n, + }), + he.createElement('path', { + d: 'M36.7501 14.405H34.2501V17.8425H36.7501V14.405Z', + fill: n, + }), + he.createElement('path', { + d: 'M36.7501 21.28H34.2501V24.7175H36.7501V21.28Z', + fill: n, + }), + he.createElement('path', { + d: 'M36.7501 28.155H34.2501V31.5925H36.7501V28.155Z', + fill: n, + }), + he.createElement('path', { + d: 'M31.5938 36.7488V34.2488H28.1563V36.7488H31.5938Z', + fill: n, + }), + he.createElement('path', { + d: 'M24.7188 36.7488V34.2488H21.2813V36.7488H24.7188Z', + fill: n, + }), + he.createElement('path', { + d: 'M17.8438 36.7488V34.2488H14.4063V36.7488H17.8438Z', + fill: n, + }), + he.createElement('path', { + d: 'M9.25008 31.5925H11.7501V28.155H9.25008V31.5925Z', + fill: n, + }), + he.createElement('path', { + d: 'M9.25008 24.7175H11.7501V21.28H9.25008V24.7175Z', + fill: n, + }), + he.createElement('path', { + d: 'M9.25008 17.8425H11.7501V14.405H9.25008V17.8425Z', + fill: n, + }), + he.createElement('path', { + d: 'M23.0002 26.7497C25.0712 26.7497 26.7502 25.0708 26.7502 22.9997C26.7502 20.9286 25.0712 19.2497 23.0002 19.2497C20.9291 19.2497 19.2502 20.9286 19.2502 22.9997C19.2502 25.0708 20.9291 26.7497 23.0002 26.7497Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M3 0.5C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V3C45.5 1.61929 44.3807 0.5 43 0.5H3ZM43 3H3V43H43V3Z', + fill: n, + }), + ) + }), + GS = fe.div.withConfig({componentId: 'sc-qvjmv1-0'})([ + 'display:flex;align-items:center;justify-content:center;margin-top:8px;flex-wrap:wrap;', + ]), + ZS = fe.div.withConfig({componentId: 'sc-qvjmv1-1'})( + [ + 'background:', + ';box-shadow:0px 1px 2px ', + ";border-radius:2px;overflow:visible;*{font-family:'Roboto',sans-serif;}", + ], + function (e) { + return e.theme.palette['bg-secondary'] + }, + function (e) { + return e.theme.palette['light-shadow'] + }, + ), + US = fe.div.withConfig({componentId: 'sc-qvjmv1-2'})(['padding:8px 12px;']), + XS = fe(Jb).withConfig({componentId: 'sc-qvjmv1-3'})(['font-weight:500;margin-bottom:12px;']), + YS = fe.div.withConfig({componentId: 'sc-qvjmv1-4'})([ + 'display:flex;align-items:center;justify-content:space-between;', + ]), + qS = fe.div.withConfig({componentId: 'sc-qvjmv1-5'})([ + '&:not(:first-child){margin-left:12px;}', + ]), + $S = fe.div.withConfig({componentId: 'sc-qvjmv1-6'})(function (e) { + var t = e.theme, + n = e.addThinBorder, + r = e.noMargin + e = e.secondaryIconColor + return '\n cursor: pointer;\n padding: 3px 6px;\n margin: ' + .concat( + r ? 0 : '0 4px', + ';\n display: inline-block;\n\n svg {\n vertical-align: middle;\n margin: 0 auto;\n }\n\n ', + ) + .concat( + n ? 'border: 0.5px solid '.concat(t.palette['borders-secondary']) : '', + ';\n color: ', + ) + .concat(e ? '#959DA8' : '', ";\n\n &[aria-selected='true'] {\n background: ") + .concat(t.palette['bg-primary-active'], ';\n\n * {\n color: ') + .concat( + t.palette['accent-primary-active'], + ';\n }\n }\n\n :hover {\n background: ', + ) + .concat(t.palette['bg-primary-active'], ';\n }\n ') + }), + KS = 0, + QS = 1, + JS = ['size'], + ek = uE(function (e, t) { + var n = void 0 === (n = e.size) ? 59 : n + e = Yc(e, JS) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: n, + height: n, + viewBox: '0 0 59 59', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M50.8184 49.7351C50.7251 49.8331 50.6271 49.9264 50.5326 50.0232C50.3828 50.1788 50.2342 50.3309 50.0786 50.4841C50.0717 50.4899 50.0659 50.5003 50.0556 50.506L49.6995 50.8517C48.0352 52.4221 46.1932 53.7927 44.2109 54.9356C44.2043 54.941 44.1969 54.9453 44.189 54.9483L44.068 55.0152C43.7661 55.1834 43.4641 55.3516 43.1553 55.5107L43.0482 55.5683C42.714 55.74 42.3775 55.9048 42.0341 56.0672C41.3427 56.3911 40.6351 56.6907 39.9138 56.9603C39.2915 57.1988 38.6554 57.412 38.0136 57.6056C37.8799 57.6494 37.7462 57.6886 37.6125 57.7266C31.4734 59.4637 24.936 59.1591 18.9849 56.8589L18.9561 56.8485C17.5942 56.3173 16.2738 55.6852 15.0059 54.9575C14.999 54.9575 14.9955 54.9518 14.9897 54.9518L14.9483 54.9299C14.6498 54.7582 14.3571 54.5842 14.0644 54.3952C12.0372 53.1261 10.1717 51.6155 8.50895 49.8964L8.47669 49.8642C8.45825 49.8423 8.4352 49.8204 8.41331 49.7973C3.18291 44.3478 0.267746 37.0834 0.280068 29.5299C0.280068 13.3464 13.4007 0.223511 29.5876 0.223511C45.7746 0.223511 58.894 13.3464 58.894 29.5299C58.9055 37.0538 56.0126 44.2919 50.8184 49.7351Z', + fill: '#3ECF8B', + }), + he.createElement('path', { + d: 'M50.5292 50.0244C50.3794 50.18 50.2308 50.3321 50.0752 50.4854C50.0683 50.4911 50.0625 50.5015 50.0522 50.5073L49.6961 50.853C48.0318 52.4233 46.1898 53.7939 44.2075 54.9369C44.2009 54.9422 44.1935 54.9465 44.1856 54.9495L44.0646 55.0164C43.7627 55.1881 43.4608 55.354 43.1519 55.5153L43.0448 55.573C42.7106 55.7447 42.3741 55.9094 42.0307 56.0719C41.3393 56.3957 40.6318 56.6953 39.9104 56.965C39.2881 57.2035 38.652 57.4167 38.0102 57.6103C37.8765 57.6541 37.7428 57.6933 37.6092 57.7313C31.47 59.4683 24.9326 59.1638 18.9815 56.8636L18.9527 56.8532C17.5908 56.3219 16.2704 55.6898 15.0025 54.9622C14.9967 54.9598 14.9913 54.9567 14.9864 54.953C14.9737 54.9438 14.9575 54.9369 14.9449 54.9276C14.6464 54.7559 14.3537 54.5819 14.061 54.393C12.0352 53.1244 10.1709 51.6145 8.50903 49.8965C9.43091 46.6642 13.1184 46.1203 13.5206 46.073L13.4929 45.9013L12.7105 41.0477C12.3851 38.9396 12.5084 36.7865 13.0723 34.7294L13.1207 34.5646C13.1368 34.5104 13.1518 34.4597 13.1714 34.4056C13.5717 33.0639 14.2064 31.8037 15.0463 30.6835C15.6608 29.8717 16.3813 29.1458 17.1885 28.5251L14.4044 15.9024L16.1018 15.4829L19.3088 27.1896C21.2574 26.2066 23.7557 25.5048 26.9523 25.2721C27.0065 25.2663 27.0572 25.2629 27.1113 25.2594L27.2703 25.2502C27.9617 25.2029 28.6716 25.1799 29.4218 25.1799C30.2284 25.1799 30.989 25.2052 31.7195 25.2571L31.8786 25.2663C31.9327 25.2663 31.9834 25.2721 32.0376 25.279C35.3909 25.5302 37.9745 26.2769 39.9646 27.3129L43.137 15.7214L44.8332 16.1409L42.0676 28.6738C42.7757 29.2352 43.4137 29.8798 43.9678 30.5936C44.4899 31.2652 44.9334 31.9944 45.2895 32.7669C45.3276 32.8464 45.3667 32.9259 45.3979 33.0055C45.4843 33.1956 45.5638 33.3869 45.6283 33.5816C45.6606 33.6681 45.6917 33.7499 45.7205 33.8328C45.7908 34.0264 45.8542 34.2177 45.9118 34.409C45.9279 34.4632 45.9429 34.5242 45.959 34.5738L46.0063 34.7432C46.042 34.8699 46.0731 34.9944 46.1019 35.1177C46.125 35.2064 46.1434 35.2963 46.163 35.385C46.1826 35.4738 46.201 35.559 46.2172 35.6455C46.2448 35.7849 46.2702 35.9255 46.2932 36.0649C46.3947 36.6628 46.4563 37.2669 46.4776 37.873C46.4776 37.9432 46.4776 38.0101 46.4776 38.0769C46.5071 38.8666 46.4604 39.6573 46.3382 40.4381L45.5684 45.6409L45.4866 46.1975C45.4915 46.1959 45.4967 46.1959 45.5016 46.1975C45.9176 46.2482 49.6039 46.7852 50.5292 50.0244Z', + fill: 'white', + }), + he.createElement('path', { + d: 'M14.8608 16.7251C16.1775 16.7251 17.245 15.6576 17.245 14.3409C17.245 13.0241 16.1775 11.9567 14.8608 11.9567C13.544 11.9567 12.4766 13.0241 12.4766 14.3409C12.4766 15.6576 13.544 16.7251 14.8608 16.7251Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M44.3791 16.7251C45.6958 16.7251 46.7633 15.6576 46.7633 14.3409C46.7633 13.0241 45.6958 11.9567 44.3791 11.9567C43.0623 11.9567 41.9949 13.0241 41.9949 14.3409C41.9949 15.6576 43.0623 16.7251 44.3791 16.7251Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M46.353 40.438L45.5833 45.6408L45.5014 46.1974L44.8942 50.3193L44.8527 50.5866L44.2074 54.931C44.2008 54.9364 44.1934 54.9406 44.1855 54.9437L44.0645 55.0105C43.7626 55.1787 43.4606 55.347 43.1518 55.506L43.0447 55.5636C42.7105 55.7353 42.374 55.9001 42.0306 56.0626C41.3392 56.3864 40.6316 56.686 39.9103 56.9556C40.12 54.4205 40.324 51.8992 40.5083 49.5691L40.5176 49.4839V49.4677L40.5268 49.3248V49.3018C40.5268 49.258 40.5268 49.2096 40.5395 49.1658C40.559 48.9238 40.574 48.6853 40.5971 48.4537L40.6478 47.8533C40.6639 47.6562 40.6789 47.4649 40.6985 47.2771C41.1214 42.8279 42.0433 40.6062 42.2299 38.4202V38.3845C42.2588 38.0388 42.2772 37.7138 42.2876 37.3992C42.2876 37.3358 42.2876 37.2725 42.2933 37.2056C42.3821 34.6221 42.0871 33.071 43.9654 30.5889C44.4875 31.2605 44.931 31.9896 45.2871 32.7622C45.3251 32.8417 45.3643 32.9212 45.3954 33.0007C45.4819 33.1909 45.5614 33.3821 45.6259 33.5769C45.6582 33.6633 45.6893 33.7451 45.7181 33.8281C45.7884 34.0217 45.8518 34.213 45.9094 34.4043C45.9255 34.4584 45.9405 34.5195 45.9566 34.5691L46.0039 34.7385C46.0396 34.8652 46.0707 34.9897 46.0995 35.113C46.1226 35.2017 46.141 35.2916 46.1606 35.3803C46.1802 35.469 46.1986 35.5543 46.2147 35.6407C46.2424 35.7802 46.2678 35.9208 46.2908 36.0602C46.3923 36.6581 46.4539 37.2621 46.4752 37.8682C46.4752 37.9385 46.4752 38.0054 46.4752 38.0722C46.5107 38.8629 46.4698 39.6551 46.353 40.438Z', + fill: '#D8DDEE', + }), + he.createElement('path', { + d: 'M18.9527 56.8474C17.5908 56.3161 16.2704 55.684 15.0025 54.9564C14.9829 54.9471 14.9644 54.9345 14.9449 54.9252L13.4929 45.8955L12.7105 41.0418C12.3769 38.8765 12.5169 36.6647 13.1207 34.5587C13.5216 33.1588 14.1741 31.8437 15.0463 30.6776C16.7183 33.0491 16.5017 34.6025 16.5685 37.0697C16.5685 37.1768 16.5754 37.2921 16.5789 37.4027C16.5916 37.7426 16.61 38.0941 16.6423 38.4744V38.5089C16.8266 40.6926 17.7128 42.9109 18.161 47.246C18.168 47.329 18.1772 47.412 18.1829 47.4938C18.206 47.7242 18.2279 47.9708 18.2498 48.2151L18.3005 48.8259C18.3132 48.9722 18.3258 49.1151 18.3362 49.258C18.3362 49.2799 18.3362 49.3053 18.3362 49.3283C18.3454 49.4493 18.3558 49.5738 18.365 49.6947L18.3869 49.9736C18.5678 52.1504 18.7591 54.4897 18.9527 56.8474Z', + fill: '#D8DDEE', + }), + he.createElement('path', { + d: 'M26.565 37.1273L25.4092 34.8411L24.1774 37.1262L26.565 37.1273Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M26.8231 37.2864H23.9111L25.4092 34.5L26.8231 37.2864ZM24.4435 36.9672H26.3057L25.4034 35.1833L24.4435 36.9672Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M34.378 37.1273L33.2222 34.8411L31.9904 37.1262L34.378 37.1273Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M34.636 37.2864H31.724L33.222 34.5L34.636 37.2864ZM32.2564 36.9672H34.1197L33.2174 35.1833L32.2564 36.9672Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M37.2277 41.7274C38.1346 41.7274 38.8698 40.9922 38.8698 40.0853C38.8698 39.1784 38.1346 38.4432 37.2277 38.4432C36.3208 38.4432 35.5856 39.1784 35.5856 40.0853C35.5856 40.9922 36.3208 41.7274 37.2277 41.7274Z', + fill: '#F7EBE4', + }), + he.createElement('path', { + d: 'M21.6537 42.1515C22.5606 42.1515 23.2958 41.4163 23.2958 40.5094C23.2958 39.6025 22.5606 38.8673 21.6537 38.8673C20.7468 38.8673 20.0116 39.6025 20.0116 40.5094C20.0116 41.4163 20.7468 42.1515 21.6537 42.1515Z', + fill: '#F7EBE4', + }), + he.createElement('path', { + d: 'M33.493 42.0801C33.493 43.1622 31.6677 44.0391 29.4149 44.0391C27.162 44.0391 25.3356 43.1622 25.3356 42.0801C25.3356 40.9981 27.2277 41.9476 29.484 41.9476C31.7403 41.9476 33.493 40.9969 33.493 42.0801Z', + fill: '#C9D1E5', + }), + he.createElement('path', { + d: 'M46.5432 34.1796C46.3173 34.1921 46.1005 34.2724 45.9209 34.41L45.9083 34.4193C45.3194 34.8514 44.764 35.9231 44.2616 37.6009C43.4549 40.2674 42.9836 43.7705 42.7635 45.6201C42.6713 46.4371 42.6045 47.1388 42.5596 47.7081C42.5324 48.1055 42.3551 48.4777 42.0636 48.7492C41.7722 49.0208 41.3884 49.1714 40.9901 49.1704H18.0504C17.6431 49.1692 17.2522 49.0106 16.9592 48.7278C16.6662 48.4449 16.494 48.0597 16.4786 47.6528C16.4474 46.9729 16.4094 46.308 16.3633 45.6765C16.1248 42.3001 15.68 39.5829 15.0439 37.5963C14.3525 35.4449 13.5885 34.682 13.2197 34.4412C13.2063 34.4236 13.1889 34.4094 13.169 34.3997C13.169 34.3997 13.1598 34.3997 13.1564 34.3928C13.0595 34.3224 12.9493 34.2726 12.8325 34.2464C12.7916 34.2403 12.7498 34.2501 12.7159 34.274C12.682 34.2978 12.6586 34.3337 12.6505 34.3743C12.6446 34.4155 12.6545 34.4574 12.6782 34.4917C12.7019 34.5259 12.7377 34.5498 12.7784 34.5587C12.8547 34.5827 12.9267 34.6189 12.9916 34.6659L13.01 34.6762L13.0192 34.6855C13.0373 34.6964 13.0543 34.7092 13.0699 34.7235C13.4421 34.9908 14.107 35.7283 14.7385 37.6919C15.37 39.6555 15.8102 42.3485 16.0453 45.7019C16.0902 46.3276 16.1282 46.989 16.1605 47.6609C16.1793 48.1496 16.3863 48.6122 16.7383 48.9517C17.0904 49.2913 17.5601 49.4816 18.0492 49.4827H40.9947C41.4732 49.4842 41.9344 49.3037 42.2849 48.9778C42.6354 48.652 42.8489 48.2051 42.8822 47.7277C42.9237 47.1584 42.9974 46.4601 43.085 45.6535C43.2982 43.8097 43.7764 40.3296 44.5669 37.685C45.0279 36.1628 45.5107 35.1717 46.0154 34.7396C46.0411 34.714 46.0689 34.6905 46.0984 34.6693C46.2303 34.5649 46.3913 34.5037 46.5593 34.4942C46.5802 34.4934 46.6008 34.4886 46.6198 34.4799C46.6388 34.4712 46.6559 34.4589 46.6701 34.4435C46.6844 34.4282 46.6954 34.4103 46.7027 34.3907C46.71 34.3711 46.7134 34.3503 46.7126 34.3294C46.7119 34.3082 46.7069 34.2874 46.6979 34.2683C46.6889 34.2491 46.676 34.232 46.6602 34.218C46.6443 34.204 46.6258 34.1933 46.6057 34.1867C46.5855 34.1801 46.5643 34.1777 46.5432 34.1796Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M31.8784 25.2652L31.7194 25.2559V30.0612H27.2702V25.249L27.1112 25.2582C27.057 25.2582 27.0063 25.2652 26.9521 25.2709V30.2202C26.9525 30.2623 26.9693 30.3026 26.9991 30.3323C27.0288 30.3621 27.0691 30.379 27.1112 30.3793H31.8784C31.9204 30.3787 31.9605 30.3617 31.9902 30.332C32.0199 30.3023 32.0368 30.2622 32.0374 30.2202V25.2778C31.9833 25.2709 31.9326 25.2686 31.8784 25.2652Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M22.5457 33.9514C22.5457 33.9514 23.3246 31.6156 25.9117 31.5315', + stroke: '#7386F3', + strokeMiterlimit: '10', + strokeLinecap: 'round', + }), + he.createElement('path', { + d: 'M36.2574 33.9514C36.2574 33.9514 35.4784 31.6156 32.8926 31.5315', + stroke: '#7386F3', + strokeMiterlimit: '10', + strokeLinecap: 'round', + }), + he.createElement('path', { + d: 'M12.9363 35.1959L13.2497 34.1323L12.3382 33.4017L11.9625 34.3824L12.9363 35.1959Z', + fill: '#3ECF8B', + }), + he.createElement('path', { + d: 'M46.1445 35.1649L45.8311 34.1013L46.7426 33.3707L47.1171 34.3514L46.1445 35.1649Z', + fill: '#3ECF8B', + }), + ) + }), + tk = ['size'], + nk = uE(function (e, t) { + var n = void 0 === (n = e.size) ? 59 : n + e = Yc(e, tk) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: n, + height: n, + viewBox: '0 0 59 59', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M50.8183 49.6509C50.7249 49.7488 50.627 49.8422 50.5325 49.939C50.3827 50.0945 50.234 50.2466 50.0785 50.3999C50.0716 50.4057 50.0658 50.416 50.0554 50.4218C49.9402 50.537 49.8169 50.6523 49.6994 50.7675C48.0341 52.3385 46.1909 53.7095 44.2073 54.8526C44.2007 54.8579 44.1933 54.8622 44.1854 54.8652L44.0644 54.9321C43.7625 55.1003 43.4606 55.2685 43.1517 55.4276L43.0446 55.4852C42.7104 55.6569 42.3739 55.8217 42.0305 55.9842C41.3391 56.308 40.6316 56.6076 39.9102 56.8772C39.2879 57.1158 38.6518 57.3289 38.01 57.5225C37.8763 57.5663 37.7426 57.6055 37.609 57.6435C31.4698 59.3806 24.9324 59.076 18.9813 56.7758L18.9525 56.7654C17.5906 56.2342 16.2702 55.6021 15.0023 54.8744C14.9954 54.8744 14.9919 54.8687 14.9862 54.8687L14.9447 54.8468C14.6462 54.6751 14.3535 54.5011 14.0608 54.3121C12.0345 53.0428 10.1702 51.5317 8.50883 49.8122L8.47657 49.7799C8.45813 49.758 8.43508 49.7361 8.41319 49.7131C3.18279 44.2635 0.267624 36.9991 0.279946 29.4457C0.279946 13.2622 13.4005 0.139282 29.5875 0.139282C45.7745 0.139282 58.8939 13.2622 58.8939 29.4457C58.9054 36.9696 56.0125 44.2076 50.8183 49.6509Z', + fill: '#6E7BB2', + }), + he.createElement('path', { + d: 'M50.529 49.9391C50.3792 50.0947 50.2305 50.2468 50.075 50.4001C50.0681 50.4058 50.0623 50.4162 50.0519 50.422C49.9367 50.5372 49.8134 50.6524 49.6959 50.7677C48.0316 52.338 46.1895 53.7086 44.2072 54.8516C44.2007 54.857 44.1933 54.8612 44.1853 54.8643L44.0644 54.9311C43.7624 55.1028 43.4605 55.2687 43.1517 55.4301L43.0445 55.4877C42.7104 55.6594 42.3739 55.8242 42.0305 55.9866C41.3391 56.3104 40.6315 56.6101 39.9102 56.8797C39.2879 57.1182 38.6518 57.3314 38.0099 57.525C37.8763 57.5688 37.7426 57.608 37.6089 57.646C31.4697 59.383 24.9324 59.0785 18.9813 56.7783L18.9525 56.7679C17.5906 56.2367 16.2702 55.6046 15.0022 54.8769C14.9965 54.8745 14.9911 54.8715 14.9861 54.8677C14.9734 54.8585 14.9573 54.8516 14.9446 54.8424C14.6462 54.6707 14.3535 54.4967 14.0608 54.3077C12.0345 53.0384 10.1701 51.5273 8.50879 49.8078C9.43066 46.5812 13.1182 46.0315 13.5203 45.9843L13.4927 45.8126L12.7102 40.9589C12.3849 38.8508 12.5082 36.6978 13.0721 34.6406L13.1205 34.4758C13.1366 34.4217 13.1516 34.371 13.1712 34.3168C13.5714 32.9751 14.2062 31.715 15.046 30.5947C15.6603 29.7827 16.3808 29.0568 17.1882 28.4364L14.4042 15.8159L16.1016 15.3965L19.3086 27.1031C21.2572 26.1202 23.7554 25.4184 26.952 25.1856C27.0062 25.1799 27.0569 25.1764 27.1111 25.173L27.2701 25.1637C27.9615 25.1165 28.6713 25.0935 29.4215 25.0935C30.2282 25.0935 30.9887 25.12 31.7193 25.1707L31.8783 25.1799C31.9325 25.1799 31.9832 25.1856 32.0373 25.1926C35.3907 25.4438 37.9742 26.1905 39.9643 27.2264L43.1367 15.635L44.833 16.0545L42.0673 28.5874C42.7755 29.1488 43.4135 29.7933 43.9676 30.5072C44.4897 31.1788 44.9332 31.9079 45.2893 32.6805C45.3273 32.76 45.3665 32.8395 45.3976 32.919C45.484 33.1092 45.5636 33.3005 45.6281 33.4952C45.6603 33.5816 45.6915 33.6634 45.7203 33.7464C45.7906 33.94 45.8539 34.1313 45.9116 34.3226C45.9277 34.3767 45.9427 34.4378 45.9588 34.4874L46.0061 34.6568C46.0418 34.7835 46.0729 34.908 46.1017 35.0313C46.1247 35.12 46.1432 35.2099 46.1628 35.2986C46.1824 35.3873 46.2008 35.4726 46.2169 35.559C46.2446 35.6985 46.2699 35.8391 46.293 35.9785C46.3945 36.5764 46.4561 37.1804 46.4774 37.7865C46.4774 37.8568 46.4774 37.9237 46.4774 37.9905C46.5068 38.7802 46.4601 39.5709 46.3379 40.3516L45.5682 45.5545L45.4863 46.1111C45.4912 46.1095 45.4965 46.1095 45.5013 46.1111C45.9173 46.1629 49.6037 46.7034 50.529 49.9391Z', + fill: 'white', + }), + he.createElement('path', { + d: 'M14.8605 16.6399C16.1773 16.6399 17.2447 15.5724 17.2447 14.2557C17.2447 12.9389 16.1773 11.8715 14.8605 11.8715C13.5438 11.8715 12.4763 12.9389 12.4763 14.2557C12.4763 15.5724 13.5438 16.6399 14.8605 16.6399Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M44.3791 16.6399C45.6958 16.6399 46.7633 15.5724 46.7633 14.2557C46.7633 12.9389 45.6958 11.8715 44.3791 11.8715C43.0623 11.8715 41.9949 12.9389 41.9949 14.2557C41.9949 15.5724 43.0623 16.6399 44.3791 16.6399Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M46.3529 40.3529L45.5831 45.5557L45.5013 46.1123L44.894 50.2342L44.8526 50.5016L44.2072 54.8459C44.2007 54.8513 44.1933 54.8556 44.1854 54.8586L44.0644 54.9254C43.7624 55.0937 43.4605 55.2619 43.1517 55.4209L43.0445 55.4785C42.7104 55.6502 42.3739 55.815 42.0305 55.9775C41.3391 56.3013 40.6315 56.6009 39.9102 56.8706C40.1199 54.3354 40.3238 51.8141 40.5082 49.4841L40.5174 49.3988V49.3826L40.5267 49.2397V49.2167C40.5267 49.1729 40.5267 49.1245 40.5393 49.0807C40.5589 48.8387 40.5739 48.6002 40.597 48.3686L40.6477 47.7682C40.6638 47.5712 40.6788 47.3799 40.6984 47.192C41.1213 42.7428 42.0431 40.5211 42.2298 38.3351V38.2994C42.2586 37.9537 42.2771 37.6287 42.2874 37.3141C42.2874 37.2508 42.2874 37.1874 42.2932 37.1205C42.3819 34.537 42.0869 32.9859 43.9653 30.5038C44.4874 31.1754 44.9309 31.9046 45.287 32.6771C45.325 32.7566 45.3642 32.8361 45.3953 32.9156C45.4817 33.1058 45.5613 33.2971 45.6258 33.4918C45.658 33.5782 45.6892 33.6601 45.718 33.743C45.7883 33.9366 45.8516 34.1279 45.9093 34.3192C45.9254 34.3734 45.9404 34.4344 45.9565 34.484L46.0038 34.6534C46.0395 34.7801 46.0706 34.9046 46.0994 35.0279C46.1224 35.1166 46.1409 35.2065 46.1605 35.2952C46.1801 35.384 46.1985 35.4692 46.2146 35.5557C46.2423 35.6951 46.2676 35.8357 46.2907 35.9751C46.3922 36.573 46.4538 37.177 46.4751 37.7831C46.4751 37.8534 46.4751 37.9203 46.4751 37.9871C46.5105 38.7778 46.4696 39.57 46.3529 40.3529Z', + fill: '#D8DDEE', + }), + he.createElement('path', { + d: 'M18.9526 56.7623C17.5907 56.231 16.2703 55.5989 15.0023 54.8713C14.9828 54.862 14.9643 54.8494 14.9447 54.8401L13.4928 45.8104L12.7103 40.9567C12.3768 38.7914 12.5167 36.5796 13.1206 34.4736C13.5215 33.0738 14.174 31.7586 15.0461 30.5925C16.7182 32.9641 16.5015 34.5174 16.5684 36.9846C16.5684 37.0917 16.5753 37.207 16.5788 37.3176C16.5914 37.6633 16.6099 38.009 16.6421 38.3893V38.4239C16.8265 40.6075 17.7127 42.8258 18.1609 47.1609C18.1667 47.2439 18.1771 47.3269 18.1828 47.4087C18.2059 47.6392 18.2278 47.8858 18.2497 48.1301L18.3004 48.7408C18.313 48.8871 18.3257 49.03 18.3361 49.1729C18.3361 49.1948 18.3361 49.2202 18.3361 49.2432C18.3453 49.3584 18.3557 49.4887 18.3649 49.6097L18.3868 49.8885C18.5677 52.0653 18.759 54.4046 18.9526 56.7623Z', + fill: '#D8DDEE', + }), + he.createElement('path', { + d: 'M26.5649 37.0421L25.4079 34.7559L24.1772 37.041L26.5649 37.0421Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M26.8231 37.2012H23.9111L25.4092 34.4148L26.8231 37.2012ZM24.4435 36.882H26.3057L25.4034 35.0981L24.4435 36.882Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M34.3778 37.0421L33.222 34.7559L31.9901 37.041L34.3778 37.0421Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M34.6359 37.2012H31.7239L33.2219 34.4148L34.6359 37.2012ZM32.2563 36.882H34.1196L33.2173 35.0981L32.2563 36.882Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M37.2275 41.6423C38.1344 41.6423 38.8696 40.9071 38.8696 40.0002C38.8696 39.0933 38.1344 38.3582 37.2275 38.3582C36.3206 38.3582 35.5854 39.0933 35.5854 40.0002C35.5854 40.9071 36.3206 41.6423 37.2275 41.6423Z', + fill: '#F7EBE4', + }), + he.createElement('path', { + d: 'M21.6537 42.0664C22.5606 42.0664 23.2958 41.3312 23.2958 40.4243C23.2958 39.5174 22.5606 38.7822 21.6537 38.7822C20.7468 38.7822 20.0116 39.5174 20.0116 40.4243C20.0116 41.3312 20.7468 42.0664 21.6537 42.0664Z', + fill: '#F7EBE4', + }), + he.createElement('path', { + d: 'M33.4927 41.4844C33.4927 42.5664 31.6674 42.6863 29.4146 42.6863C27.1617 42.6863 25.3341 42.571 25.3341 41.4844C25.3341 40.3977 27.2274 40.5948 29.4825 40.5948C31.7377 40.5948 33.4927 40.4046 33.4927 41.4844Z', + fill: '#C9D1E5', + }), + he.createElement('path', { + d: 'M46.5431 34.0945C46.3172 34.107 46.1003 34.1873 45.9208 34.325L45.9081 34.3342C45.3193 34.7663 44.7639 35.838 44.2614 37.5158C43.4548 40.1823 42.9835 43.6855 42.7634 45.535C42.6712 46.352 42.6044 47.0538 42.5594 47.623C42.5334 48.0204 42.3573 48.3931 42.0667 48.6655C41.7761 48.9379 41.3928 49.0896 40.9946 49.0899H18.0502C17.6422 49.0887 17.2506 48.9295 16.9575 48.6456C16.6645 48.3618 16.4927 47.9754 16.4784 47.5677C16.4473 46.8878 16.4093 46.2229 16.3632 45.5914C16.1247 42.2151 15.6799 39.4978 15.0438 37.5112C14.3524 35.3598 13.5884 34.5969 13.2196 34.3561C13.2062 34.3385 13.1888 34.3243 13.1689 34.3146C13.1689 34.3146 13.1597 34.3146 13.1562 34.3077C13.0594 34.2373 12.9492 34.1875 12.8324 34.1613C12.7915 34.1552 12.7497 34.1651 12.7158 34.1889C12.6819 34.2127 12.6585 34.2486 12.6504 34.2892C12.6444 34.3304 12.6543 34.3724 12.6781 34.4066C12.7018 34.4408 12.7376 34.4647 12.7783 34.4736C12.8546 34.4977 12.9266 34.5338 12.9914 34.5808L13.0099 34.5912L13.0191 34.6004C13.0372 34.6114 13.0542 34.6241 13.0698 34.6384C13.442 34.9057 14.1069 35.6432 14.7384 37.6068C15.3699 39.5704 15.8101 42.2635 16.0452 45.6168C16.0901 46.2425 16.1281 46.9039 16.1604 47.5758C16.1791 48.0645 16.3862 48.5271 16.7382 48.8667C17.0902 49.2062 17.56 49.3965 18.0491 49.3976H40.9946C41.4731 49.3991 41.9343 49.2186 42.2848 48.8927C42.6353 48.5669 42.8488 48.12 42.8821 47.6426C42.9236 47.0733 42.9973 46.375 43.0849 45.5684C43.2981 43.7246 43.7763 40.2446 44.5668 37.5999C45.0278 36.0777 45.5106 35.0867 46.0153 34.6545C46.041 34.6289 46.0688 34.6054 46.0983 34.5842C46.2302 34.4798 46.3912 34.4186 46.5592 34.4091C46.5801 34.4083 46.6006 34.4035 46.6197 34.3948C46.6387 34.3861 46.6558 34.3738 46.67 34.3585C46.6842 34.3432 46.6953 34.3252 46.7026 34.3056C46.7099 34.286 46.7132 34.2652 46.7125 34.2443C46.7118 34.2231 46.7068 34.2024 46.6978 34.1832C46.6887 34.164 46.6759 34.1469 46.6601 34.1329C46.6442 34.1189 46.6256 34.1082 46.6055 34.1016C46.5854 34.095 46.5642 34.0926 46.5431 34.0945Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M31.8784 25.18L31.7194 25.1707V29.976H27.2702V25.1638L27.1112 25.173C27.057 25.173 27.0063 25.18 26.9521 25.1857V30.135C26.9525 30.1771 26.9693 30.2174 26.9991 30.2471C27.0288 30.2769 27.0691 30.2938 27.1112 30.2941H31.8784C31.9204 30.2935 31.9605 30.2765 31.9902 30.2468C32.0199 30.2171 32.0368 30.177 32.0374 30.135V25.1926C31.9833 25.1857 31.9326 25.1834 31.8784 25.18Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M13.1712 34.3146L13.0721 34.6384L12.587 34.5059L12.4729 34.0103L12.8635 33.9954L13.1712 34.3146Z', + fill: '#6E7BB2', + }), + he.createElement('path', { + d: 'M45.9209 34.3237L46.0154 34.6579L46.8359 34.356L46.6861 34.0264L46.3 33.978L45.9209 34.3237Z', + fill: '#6E7BB2', + }), + ) + }), + rk = ['size'], + ik = uE(function (e, t) { + var n = void 0 === (n = e.size) ? 59 : n + e = Yc(e, rk) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: n, + height: n, + viewBox: '0 0 59 59', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M50.8184 49.6567C50.725 49.7547 50.6271 49.8492 50.5326 49.9448C50.3828 50.1004 50.2341 50.2525 50.0786 50.4058C50.0721 50.4142 50.0643 50.4216 50.0555 50.4277C49.9403 50.5429 49.817 50.6581 49.6995 50.7734C48.0335 52.3415 46.1903 53.7102 44.2074 54.8515C44.2016 54.8515 44.1947 54.8607 44.1855 54.8642L44.0645 54.9299C43.7626 55.0981 43.4607 55.2675 43.1518 55.4254L43.0447 55.483C42.7105 55.6547 42.374 55.8195 42.0306 55.9819C41.3392 56.3058 40.6317 56.6054 39.9103 56.875C39.288 57.1136 38.6519 57.3267 38.0101 57.5203C37.8764 57.5653 37.7427 57.6033 37.6091 57.6413C31.4699 59.3784 24.9326 59.0738 18.9814 56.7736L18.9526 56.7644C17.5909 56.2326 16.2706 55.6006 15.0024 54.8734C14.9955 54.8734 14.992 54.8665 14.9863 54.8665L14.9448 54.8446C14.6463 54.6729 14.3536 54.4989 14.0609 54.3111C12.0349 53.041 10.1706 51.5296 8.50894 49.81L8.47667 49.7789C8.45676 49.7555 8.4356 49.7332 8.41329 49.712C3.18524 44.2642 0.270299 37.0033 0.280054 29.4527C0.280054 13.268 13.4006 0.145142 29.5876 0.145142C45.7746 0.145142 58.894 13.268 58.894 29.4527C58.9053 36.9762 56.0125 44.2138 50.8184 49.6567Z', + fill: '#E85B46', + }), + he.createElement('path', { + d: 'M50.5291 49.9459C50.3793 50.1015 50.2307 50.2536 50.0751 50.4069C50.0686 50.4153 50.0608 50.4227 50.0521 50.4288C49.9368 50.544 49.8135 50.6592 49.696 50.7745C48.031 52.342 46.189 53.7102 44.2074 54.8515C44.2016 54.8515 44.1947 54.8607 44.1855 54.8641L44.0645 54.9298C43.7626 55.1015 43.4607 55.2675 43.1518 55.4288L43.0447 55.4864C42.7105 55.6581 42.374 55.8229 42.0306 55.9854C41.3392 56.3092 40.6316 56.6088 39.9103 56.8784C39.288 57.117 38.6519 57.3301 38.0101 57.5237C37.8764 57.5687 37.7427 57.6067 37.609 57.6447C31.4699 59.3818 24.9325 59.0772 18.9814 56.777L18.9526 56.7678C17.5909 56.236 16.2705 55.604 15.0024 54.8768L14.9862 54.8664C14.9736 54.8572 14.9574 54.8503 14.9448 54.8411C14.6463 54.6694 14.3536 54.4954 14.0609 54.3075C12.0348 53.0375 10.1705 51.5261 8.50891 49.8065C9.43079 46.5799 13.1183 46.0303 13.5205 45.983L13.4928 45.8113L12.7104 40.9576C12.385 38.8495 12.5083 36.6965 13.0722 34.6393L13.1206 34.4746C13.1367 34.4204 13.1517 34.3697 13.1713 34.3155C13.5716 32.9739 14.2063 31.7137 15.0462 30.5935C15.6604 29.7814 16.3809 29.0555 17.1884 28.4351L14.4043 15.8239L16.1017 15.4044L19.3087 27.1099C21.2573 26.1281 23.7556 25.4252 26.9522 25.1936C27.0063 25.1867 27.057 25.1832 27.1112 25.1809L27.2702 25.1705C27.9616 25.1233 28.6715 25.1014 29.4216 25.1014C30.2283 25.1014 30.9888 25.1267 31.7194 25.1774L31.8784 25.1867C31.9326 25.1867 31.9833 25.1936 32.0375 25.1993C35.3908 25.4506 37.9743 26.1973 39.9644 27.2332L43.1368 15.6418L44.8331 16.0624L42.0675 28.5941C42.7756 29.1555 43.4136 29.8001 43.9677 30.514C44.4898 31.1855 44.9333 31.9147 45.2894 32.6873C45.3274 32.7668 45.3666 32.8463 45.3977 32.9258C45.4842 33.1171 45.5637 33.3072 45.6282 33.502C45.6605 33.5884 45.6916 33.6714 45.7204 33.7532C45.7907 33.9479 45.8541 34.1381 45.9117 34.3294C45.9278 34.3835 45.9428 34.4446 45.9589 34.4953L46.0062 34.6635C46.0419 34.7903 46.073 34.9148 46.1018 35.0381C46.1249 35.1279 46.1433 35.2167 46.1629 35.3054C46.1825 35.3941 46.2009 35.4806 46.2171 35.5658C46.2447 35.7064 46.2701 35.8458 46.2931 35.9853C46.3947 36.5836 46.4563 37.188 46.4775 37.7945C46.4775 37.8636 46.4775 37.9304 46.4775 37.9973C46.507 38.787 46.4603 39.5777 46.3381 40.3584L45.5683 45.5613L45.4865 46.1178C45.4913 46.1163 45.4966 46.1163 45.5014 46.1178C45.9174 46.1697 49.6038 46.7101 50.5291 49.9459Z', + fill: 'white', + }), + he.createElement('path', { + d: 'M14.8606 16.6467C16.1774 16.6467 17.2448 15.5793 17.2448 14.2625C17.2448 12.9457 16.1774 11.8783 14.8606 11.8783C13.5439 11.8783 12.4764 12.9457 12.4764 14.2625C12.4764 15.5793 13.5439 16.6467 14.8606 16.6467Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M44.3791 16.6467C45.6958 16.6467 46.7633 15.5793 46.7633 14.2625C46.7633 12.9457 45.6958 11.8783 44.3791 11.8783C43.0623 11.8783 41.9949 12.9457 41.9949 14.2625C41.9949 15.5793 43.0623 16.6467 44.3791 16.6467Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M46.3532 40.3596L45.5834 45.5625L45.5016 46.119L44.8943 50.2421L44.8528 50.5095L44.2075 54.8515C44.2017 54.8515 44.1948 54.8607 44.1856 54.8642L44.0646 54.9299C43.7627 55.0981 43.4608 55.2675 43.1519 55.4254L43.0448 55.483C42.7106 55.6547 42.3741 55.8195 42.0307 55.9819C41.3393 56.3058 40.6318 56.6054 39.9104 56.875C40.1201 54.3399 40.3241 51.8185 40.5085 49.4885L40.5177 49.4032V49.3871L40.5269 49.2442V49.2223C40.5269 49.1774 40.5269 49.1301 40.5396 49.0852C40.5592 48.8432 40.5741 48.6058 40.5972 48.373L40.6479 47.7726C40.664 47.5756 40.679 47.3843 40.6986 47.1965C41.1215 42.7461 42.0434 40.5244 42.2301 38.3384V38.3027C42.2589 37.957 42.2773 37.632 42.2877 37.3174C42.2877 37.2541 42.2877 37.1907 42.2934 37.1238C42.3822 34.5403 42.0872 32.9892 43.9655 30.5071C44.4876 31.1787 44.9311 31.9079 45.2872 32.6804C45.3253 32.7599 45.3644 32.8394 45.3956 32.9189C45.482 33.1102 45.5615 33.3004 45.626 33.4951C45.6583 33.5815 45.6894 33.6645 45.7182 33.7463C45.7885 33.9411 45.8519 34.1312 45.9095 34.3225C45.9256 34.3767 45.9406 34.4377 45.9567 34.4884L46.004 34.6567C46.0397 34.7834 46.0708 34.9079 46.0996 35.0312C46.1227 35.1211 46.1411 35.2098 46.1607 35.2985C46.1803 35.3873 46.1987 35.4737 46.2149 35.559C46.2425 35.6995 46.2679 35.839 46.2909 35.9784C46.3925 36.5767 46.4541 37.1811 46.4753 37.7876C46.4753 37.8567 46.4753 37.9236 46.4753 37.9904C46.511 38.7822 46.4701 39.5757 46.3532 40.3596Z', + fill: '#D8DDEE', + }), + he.createElement('path', { + d: 'M18.9526 56.7701C17.5909 56.2384 16.2705 55.6063 15.0023 54.8791C14.9828 54.8687 14.9643 54.8561 14.9447 54.8469L13.4928 45.8171L12.7103 40.9634C12.3768 38.7981 12.5167 36.5863 13.1206 34.4803C13.5215 33.0805 14.174 31.7653 15.0461 30.5992C16.7182 32.9708 16.5015 34.5253 16.5684 36.9913C16.5684 37.0996 16.5753 37.2137 16.5788 37.3243C16.5914 37.67 16.6099 38.0157 16.6421 38.396V38.4306C16.8265 40.6143 17.7127 42.8325 18.1609 47.1676C18.1667 47.2506 18.1771 47.3336 18.1828 47.4154C18.2059 47.6459 18.2278 47.8925 18.2497 48.1379L18.3004 48.7475C18.313 48.8938 18.3257 49.0367 18.3361 49.1796C18.3361 49.2027 18.3361 49.228 18.3361 49.2499C18.3453 49.3652 18.3557 49.4942 18.3649 49.6152L18.3868 49.8952C18.5677 52.072 18.759 54.4113 18.9526 56.7701Z', + fill: '#D8DDEE', + }), + he.createElement('path', { + d: 'M26.565 37.0489L25.4081 34.7627L24.1774 37.0478L26.565 37.0489Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M26.8231 37.2079H23.9111L25.4092 34.4204L26.8231 37.2079ZM24.4435 36.8887H26.3057L25.4034 35.1049L24.4435 36.8887Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M34.3779 37.0489L33.2221 34.7627L31.9902 37.0478L34.3779 37.0489Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M34.6361 37.2079H31.7241L33.2222 34.4204L34.6361 37.2079ZM32.2565 36.8887H34.1198L33.2176 35.1049L32.2565 36.8887Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M37.2277 41.649C38.1346 41.649 38.8698 40.9139 38.8698 40.007C38.8698 39.1001 38.1346 38.3649 37.2277 38.3649C36.3208 38.3649 35.5856 39.1001 35.5856 40.007C35.5856 40.9139 36.3208 41.649 37.2277 41.649Z', + fill: '#F7DDE4', + }), + he.createElement('path', { + d: 'M21.6538 42.0731C22.5607 42.0731 23.2959 41.3379 23.2959 40.431C23.2959 39.5241 22.5607 38.7889 21.6538 38.7889C20.7469 38.7889 20.0117 39.5241 20.0117 40.431C20.0117 41.3379 20.7469 42.0731 21.6538 42.0731Z', + fill: '#F7EBE4', + }), + he.createElement('path', { + d: 'M25.3354 42.6643C25.3354 41.5823 27.1619 40.7053 29.4147 40.7053C31.6676 40.7053 33.4929 41.5823 33.4929 42.6643C33.4929 43.7464 31.6007 42.7968 29.3445 42.7968C27.0882 42.7968 25.3354 43.7475 25.3354 42.6643Z', + fill: '#C9D1E5', + }), + he.createElement('path', { + d: 'M46.5432 34.1024C46.3172 34.1143 46.1002 34.1947 45.9209 34.3329C45.9209 34.3329 45.9106 34.3398 45.9083 34.3433C45.3194 34.7754 44.764 35.8413 44.2616 37.5237C43.4549 40.1914 42.9836 43.6934 42.7635 45.5429C42.6713 46.3599 42.6045 47.0628 42.5596 47.6309C42.5316 48.0269 42.3546 48.3976 42.0642 48.6683C41.7738 48.939 41.3917 49.0896 40.9947 49.0898H18.0504C17.6435 49.0886 17.2529 48.9303 16.96 48.648C16.6671 48.3656 16.4946 47.981 16.4786 47.5745C16.4474 46.8946 16.4094 46.2308 16.3633 45.5982C16.1248 42.223 15.68 39.5058 15.0439 37.5191C14.3525 35.3666 13.5885 34.6037 13.2197 34.3629C13.2063 34.3453 13.1889 34.3311 13.169 34.3214C13.169 34.3214 13.1598 34.3214 13.1564 34.3145C13.0596 34.2442 12.9494 34.1947 12.8325 34.1693C12.7917 34.1628 12.7499 34.1724 12.716 34.196C12.6821 34.2197 12.6586 34.2555 12.6505 34.296C12.6446 34.3372 12.6545 34.3791 12.6782 34.4133C12.7019 34.4476 12.7377 34.4715 12.7784 34.4804C12.8549 34.5046 12.9269 34.5412 12.9916 34.5887L13.01 34.5979L13.0192 34.6072C13.0368 34.6189 13.0537 34.6316 13.0699 34.6452C13.4421 34.9125 14.107 35.65 14.7385 37.6136C15.37 39.5772 15.8102 42.2702 16.0453 45.6236C16.0902 46.2493 16.1282 46.9107 16.1605 47.5825C16.1793 48.0713 16.3863 48.5339 16.7383 48.8734C17.0904 49.213 17.5601 49.4033 18.0492 49.4044H40.9947C41.4732 49.4059 41.9344 49.2254 42.2849 48.8995C42.6354 48.5737 42.8489 48.1268 42.8822 47.6494C42.9237 47.0813 42.9975 46.3818 43.085 45.5752C43.2982 43.7314 43.7764 40.2513 44.5669 37.6079C45.0279 36.0856 45.5107 35.0934 46.0154 34.6613C46.0411 34.6357 46.0689 34.6122 46.0984 34.591C46.2304 34.4868 46.3914 34.4261 46.5593 34.417C46.6016 34.4152 46.6415 34.3968 46.6702 34.3657C46.6989 34.3346 46.7142 34.2934 46.7126 34.2511C46.7118 34.23 46.7066 34.2094 46.6976 34.1903C46.6885 34.1713 46.6756 34.1543 46.6598 34.1404C46.6439 34.1265 46.6254 34.116 46.6054 34.1095C46.5854 34.1029 46.5642 34.1005 46.5432 34.1024Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M31.8785 25.1867L31.7195 25.1774V29.9827H27.2703V25.1705L27.1113 25.1809C27.0571 25.1809 27.0064 25.1809 26.9523 25.1936V30.1417C26.9523 30.1839 26.969 30.2244 26.9988 30.2542C27.0287 30.284 27.0691 30.3008 27.1113 30.3008H31.8785C31.9205 30.3002 31.9606 30.2832 31.9903 30.2535C32.02 30.2238 32.037 30.1837 32.0376 30.1417V25.1993C31.9834 25.1936 31.9327 25.1901 31.8785 25.1867Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M25.7239 32.0098C25.7239 32.0098 24.946 34.3456 22.359 34.4297', + stroke: '#7386F3', + strokeMiterlimit: '10', + strokeLinecap: 'round', + }), + he.createElement('path', { + d: 'M32.7059 32.0098C32.7059 32.0098 33.4838 34.3456 36.0708 34.4297', + stroke: '#7386F3', + strokeMiterlimit: '10', + strokeLinecap: 'round', + }), + he.createElement('path', { + d: 'M13.2519 34.0667C13.2519 34.0667 13.0399 34.7316 12.9523 35.1233L12.5559 34.2084L13.2519 34.0667Z', + fill: '#E85B46', + }), + he.createElement('path', { + d: 'M45.9209 34.3306L46.0154 34.6647L46.0557 34.7177L46.701 34.5195L46.7932 34.1266L46.4971 33.8961L45.9209 34.3306Z', + fill: '#E85B46', + }), + ) + }), + ok = ['size'], + ak = uE(function (e, t) { + var n = void 0 === (n = e.size) ? 59 : n + e = Yc(e, ok) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: n, + height: n, + viewBox: '0 0 59 59', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M50.8184 49.7317C50.725 49.8308 50.6271 49.9241 50.5326 50.0209C50.3828 50.1776 50.2341 50.3298 50.0786 50.4819C50.0714 50.4897 50.0637 50.497 50.0555 50.5038C49.9403 50.619 49.817 50.7342 49.6995 50.8495C48.0349 52.4195 46.1929 53.79 44.2108 54.9334C44.204 54.9383 44.1967 54.9426 44.189 54.946L44.068 55.0129C43.766 55.1811 43.4641 55.3494 43.1553 55.5084L43.0481 55.566C42.714 55.7377 42.3775 55.9025 42.0341 56.065C41.3427 56.3892 40.6359 56.6869 39.9138 56.958C39.2915 57.1954 38.6554 57.4086 38.0135 57.6034C37.8799 57.6471 37.7462 57.6852 37.6125 57.7186C31.4735 59.4572 24.9357 59.1527 18.9849 56.8509L18.9561 56.8416C17.5942 56.3104 16.2738 55.6783 15.0059 54.9507C14.9989 54.9507 14.9955 54.9437 14.9897 54.9437L14.9482 54.9207C14.6498 54.749 14.3571 54.575 14.0644 54.3872C12.0384 53.1175 10.174 51.6065 8.5124 49.8873C8.50318 49.8769 8.48935 49.8642 8.48013 49.855C8.47091 49.8458 8.43865 49.8101 8.41675 49.7882C3.18695 44.3407 0.270688 37.0792 0.280052 29.5276C0.280052 13.3441 13.4006 0.220093 29.5876 0.220093C45.7746 0.220093 58.894 13.3441 58.894 29.5276C58.9056 37.0512 56.0127 44.2889 50.8184 49.7317Z', + fill: '#FFAC4A', + }), + he.createElement('path', { + d: 'M50.5293 50.021C50.3794 50.1777 50.2308 50.3298 50.0752 50.4819C50.0681 50.4897 50.0604 50.4971 50.0522 50.5038C49.9369 50.619 49.8136 50.7343 49.6961 50.8495C48.0315 52.4195 46.1896 53.7901 44.2075 54.9334C44.2007 54.9384 44.1933 54.9426 44.1856 54.9461L44.0646 55.0129C43.7627 55.1846 43.4608 55.3494 43.1519 55.5119L43.0448 55.5695C42.7106 55.7412 42.3741 55.906 42.0307 56.0685C41.3393 56.3927 40.6325 56.6903 39.9104 56.9615C39.2881 57.1989 38.652 57.4121 38.0102 57.6068C37.8765 57.6506 37.7428 57.6887 37.6092 57.7221C31.4702 59.4607 24.9323 59.1562 18.9815 56.8544L18.9527 56.8451C17.5908 56.3139 16.2704 55.6818 15.0025 54.9541L14.9864 54.9449C14.9737 54.9357 14.9576 54.9299 14.9449 54.9196C14.6464 54.7479 14.3537 54.5739 14.061 54.386C12.035 53.1164 10.1707 51.6054 8.50903 49.8861C9.43091 46.6538 13.1184 46.1099 13.5206 46.0627L13.4929 45.891L12.7105 41.0373C12.3851 38.9292 12.5084 36.7762 13.0723 34.719C13.0884 34.6648 13.1046 34.6038 13.1207 34.553C13.1368 34.5023 13.1518 34.4482 13.1714 34.394C13.5717 33.0527 14.2065 31.7929 15.0463 30.6731C15.6603 29.8608 16.3808 29.1348 17.1885 28.5148L14.4044 15.9024L16.1018 15.4829L19.3088 27.1884C21.2574 26.2066 23.7557 25.5037 26.9523 25.2721C27.0065 25.2663 27.0572 25.2629 27.1113 25.2594L27.2703 25.2502C27.9617 25.2018 28.6716 25.1799 29.4218 25.1799C30.2284 25.1799 30.989 25.2052 31.7195 25.2559L31.8786 25.2663C31.9327 25.2663 31.9834 25.2721 32.0376 25.279C35.3909 25.529 37.9745 26.2769 39.9646 27.3129L43.137 15.718L44.8332 16.1328L42.0676 28.6646C42.7754 29.2263 43.4134 29.8708 43.9678 30.5844C44.49 31.2564 44.9334 31.9859 45.2895 32.7588C45.3276 32.8384 45.3667 32.9179 45.3979 32.9974C45.4843 33.1875 45.5638 33.3788 45.6283 33.5736C45.6606 33.6588 45.6917 33.7418 45.7205 33.8248C45.7908 34.0184 45.8542 34.2085 45.9118 34.4009C45.9279 34.4551 45.9429 34.5162 45.9591 34.5657L46.0063 34.734C46.042 34.8619 46.0731 34.9852 46.1019 35.1096C46.125 35.1984 46.1434 35.2871 46.163 35.3758C46.1826 35.4646 46.201 35.551 46.2172 35.6374C46.2448 35.7768 46.2702 35.9163 46.2932 36.0569C46.3948 36.6548 46.4564 37.2588 46.4776 37.8649C46.4776 37.9352 46.4776 38.002 46.4776 38.0688C46.5071 38.8585 46.4604 39.6493 46.3382 40.43L45.5684 45.6328L45.4866 46.1894C45.4915 46.1883 45.4966 46.1883 45.5016 46.1894C45.9176 46.2459 49.6039 46.7852 50.5293 50.021Z', + fill: 'white', + }), + he.createElement('path', { + d: 'M14.8608 16.7227C16.1775 16.7227 17.245 15.6553 17.245 14.3385C17.245 13.0218 16.1775 11.9543 14.8608 11.9543C13.544 11.9543 12.4766 13.0218 12.4766 14.3385C12.4766 15.6553 13.544 16.7227 14.8608 16.7227Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M44.3791 16.7227C45.6958 16.7227 46.7633 15.6553 46.7633 14.3385C46.7633 13.0218 45.6958 11.9543 44.3791 11.9543C43.0623 11.9543 41.9949 13.0218 41.9949 14.3385C41.9949 15.6553 43.0623 16.7227 44.3791 16.7227Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M46.3532 40.4357L45.5834 45.6386L45.5016 46.1952L44.8943 50.3171L44.8528 50.5844L44.2075 54.9288C44.2007 54.9337 44.1933 54.938 44.1856 54.9414L44.0646 55.0083C43.7627 55.1765 43.4608 55.3448 43.1519 55.5038L43.0448 55.5614C42.7106 55.7331 42.3741 55.8979 42.0307 56.0604C41.3393 56.3846 40.6325 56.6822 39.9104 56.9534C40.1201 54.4183 40.3241 51.8958 40.5085 49.5669L40.5177 49.4805V49.4644L40.5269 49.3215V49.2996C40.5269 49.2546 40.5269 49.2074 40.5396 49.1624C40.5592 48.9216 40.5741 48.6831 40.5972 48.4514L40.6479 47.8499C40.664 47.6529 40.679 47.4627 40.6986 47.2737C41.1215 42.8245 42.0434 40.6028 42.2301 38.4157V38.3811C42.2589 38.0354 42.2773 37.7104 42.2877 37.3959C42.2877 37.3325 42.2877 37.2691 42.2934 37.2023C42.3822 34.6176 42.0872 33.0665 43.9655 30.5844C44.4876 31.2563 44.9311 31.9859 45.2872 32.7588C45.3253 32.8383 45.3644 32.9178 45.3956 32.9974C45.482 33.1875 45.5615 33.3788 45.626 33.5735C45.6583 33.6588 45.6894 33.7418 45.7182 33.8247C45.7885 34.0183 45.8519 34.2085 45.9095 34.4009C45.9256 34.4551 45.9406 34.5161 45.9567 34.5657L46.004 34.7339C46.0397 34.8619 46.0708 34.9852 46.0996 35.1096C46.1227 35.1983 46.1411 35.2871 46.1607 35.3758C46.1803 35.4645 46.1987 35.551 46.2149 35.6374C46.2425 35.7768 46.2679 35.9162 46.2909 36.0568C46.3925 36.6547 46.4541 37.2588 46.4753 37.8649C46.4753 37.9352 46.4753 38.002 46.4753 38.0688C46.5109 38.8599 46.47 39.6525 46.3532 40.4357Z', + fill: '#D8DDEE', + }), + he.createElement('path', { + d: 'M18.9526 56.8451C17.5907 56.3139 16.2703 55.6818 15.0023 54.9541C14.9827 54.9449 14.9643 54.9322 14.9447 54.9219L13.4928 45.8933L12.7103 41.0396C12.3768 38.8739 12.5167 36.6617 13.1206 34.5554C13.5212 33.1557 14.1738 31.8409 15.0461 30.6754C16.7182 33.0458 16.5015 34.6003 16.5684 37.0663C16.5684 37.1746 16.5753 37.2887 16.5787 37.4005C16.5914 37.7404 16.6099 38.0919 16.6421 38.471V38.5067C16.8265 40.6904 17.7126 42.9087 18.1609 47.2438C18.1667 47.3256 18.177 47.4086 18.1828 47.4916C18.2058 47.722 18.2277 47.9686 18.2496 48.2129L18.3003 48.8237C18.313 48.9689 18.3257 49.1129 18.3361 49.2558C18.3361 49.2777 18.3361 49.303 18.3361 49.3249C18.3453 49.4459 18.3557 49.5692 18.3649 49.6902L18.3868 49.9703C18.5677 52.1482 18.759 54.4874 18.9526 56.8451Z', + fill: '#D8DDEE', + }), + he.createElement('path', { + d: 'M26.565 37.1251L25.4081 34.8389L24.1774 37.1228L26.565 37.1251Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M26.8231 37.284H23.9111L25.4092 34.4977L26.8231 37.284ZM24.4435 36.9637H26.3057L25.4034 35.1799L24.4435 36.9637Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M34.3779 37.1251L33.2221 34.8389L31.9902 37.1228L34.3779 37.1251Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M34.6361 37.284H31.7241L33.2222 34.4977L34.6361 37.284ZM32.2565 36.9637H34.1198L33.2176 35.1799L32.2565 36.9637Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M37.2277 41.7252C38.1346 41.7252 38.8698 40.99 38.8698 40.0831C38.8698 39.1762 38.1346 38.441 37.2277 38.441C36.3208 38.441 35.5856 39.1762 35.5856 40.0831C35.5856 40.99 36.3208 41.7252 37.2277 41.7252Z', + fill: '#F7EBE4', + }), + he.createElement('path', { + d: 'M21.6537 42.1493C22.5606 42.1493 23.2958 41.4141 23.2958 40.5072C23.2958 39.6003 22.5606 38.8651 21.6537 38.8651C20.7468 38.8651 20.0116 39.6003 20.0116 40.5072C20.0116 41.4141 20.7468 42.1493 21.6537 42.1493Z', + fill: '#F7EBE4', + }), + he.createElement('path', { + d: 'M46.5431 34.1774C46.3172 34.1899 46.1004 34.2702 45.9208 34.4078C45.9162 34.4102 45.9119 34.4134 45.9082 34.4171C45.3193 34.8492 44.7639 35.9151 44.2615 37.5987C43.4548 40.2652 42.9835 43.7672 42.7634 45.6178C42.6712 46.4337 42.6044 47.1366 42.5595 47.7059C42.532 48.1031 42.3546 48.475 42.0632 48.7463C41.7717 49.0176 41.3881 49.168 40.99 49.1671H18.0503C17.6432 49.1659 17.2524 49.0074 16.9595 48.7248C16.6666 48.4422 16.4942 48.0573 16.4785 47.6506C16.4473 46.9707 16.4093 46.3058 16.3632 45.6732C16.1247 42.2979 15.6799 39.5807 15.0438 37.5941C14.3524 35.4426 13.5884 34.6798 13.2196 34.4378C13.2056 34.4208 13.1884 34.4067 13.1689 34.3963C13.1689 34.3963 13.1597 34.3963 13.1563 34.3906C13.0594 34.3202 12.9492 34.2704 12.8324 34.2442C12.812 34.2407 12.7911 34.2412 12.7709 34.2457C12.7506 34.2502 12.7315 34.2587 12.7145 34.2706C12.6803 34.2947 12.657 34.3314 12.6498 34.3727C12.6426 34.414 12.6521 34.4564 12.6762 34.4906C12.7003 34.5249 12.737 34.5482 12.7783 34.5553C12.8545 34.5802 12.9264 34.6168 12.9915 34.6637L13.0099 34.6729L13.0191 34.6833C13.0372 34.6942 13.0542 34.707 13.0698 34.7213C13.442 34.9875 14.1069 35.725 14.7384 37.6897C15.3699 39.6545 15.8101 42.3463 16.0452 45.6985C16.0901 46.3254 16.1282 46.9857 16.1604 47.6633C16.1794 48.1518 16.3866 48.6141 16.7386 48.9534C17.0906 49.2927 17.5602 49.4828 18.0491 49.484H40.9946C41.473 49.4857 41.9342 49.3055 42.2847 48.9798C42.6352 48.6541 42.8488 48.2074 42.8821 47.7301C42.9236 47.1608 42.9973 46.4625 43.0849 45.6559C43.2981 43.8121 43.7763 40.332 44.5668 37.6874C45.0278 36.1652 45.5106 35.173 46.0153 34.7409C46.0408 34.7153 46.0685 34.6921 46.0983 34.6717C46.2299 34.5667 46.3911 34.5054 46.5592 34.4966C46.6015 34.4948 46.6414 34.4763 46.6701 34.4452C46.6988 34.4141 46.7141 34.3729 46.7125 34.3306C46.7123 34.3092 46.7076 34.288 46.6988 34.2684C46.69 34.2489 46.6772 34.2314 46.6613 34.217C46.6454 34.2026 46.6267 34.1916 46.6063 34.1848C46.586 34.178 46.5645 34.1755 46.5431 34.1774Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M31.8784 25.2628L31.7194 25.2525V30.0589H27.2702V25.2467L27.1112 25.2559C27.057 25.2559 27.0063 25.2628 26.9521 25.2686V30.2168C26.9521 30.2589 26.9689 30.2994 26.9987 30.3292C27.0285 30.359 27.069 30.3758 27.1112 30.3758H31.8784C31.9204 30.3752 31.9605 30.3582 31.9902 30.3286C32.0199 30.2989 32.0368 30.2588 32.0374 30.2168V25.2755C31.9833 25.2686 31.9326 25.2651 31.8784 25.2628Z', + fill: '#7386F3', + }), + he.createElement('path', { + d: 'M29.5681 44.0449C30.3363 44.0449 30.959 42.9615 30.959 41.625C30.959 40.2885 30.3363 39.2051 29.5681 39.2051C28.8 39.2051 28.1772 40.2885 28.1772 41.625C28.1772 42.9615 28.8 44.0449 29.5681 44.0449Z', + fill: '#C9D1E5', + }), + he.createElement('path', { + d: 'M22.9202 33.3396C22.9202 33.3396 24.8791 30.3965 27.0087 33.1218', + stroke: '#7386F3', + strokeMiterlimit: '10', + strokeLinecap: 'round', + }), + he.createElement('path', { + d: 'M35.4922 33.3396C35.4922 33.3396 33.5332 30.3965 31.4037 33.1218', + stroke: '#7386F3', + strokeMiterlimit: '10', + strokeLinecap: 'round', + }), + he.createElement('path', { + d: 'M13.1714 34.3963L13.0723 34.7212L12.7934 34.659L12.4362 34.5023L12.5399 34.1715L12.8187 34.1681L13.1714 34.3963Z', + fill: '#FFAC4A', + }), + he.createElement('path', { + d: 'M45.9209 34.4067L46.0154 34.7397L46.7679 34.4401L46.6745 34.1405L46.2747 34.0645L45.9209 34.4067Z', + fill: '#FFAC4A', + }), + ) + }), + lk = ['color', 'size'], + sk = uE(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 12 : r + e = Yc(e, lk) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 55 55', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M3.40256 25.4517C2.58445 24.1661 3.05194 21.8287 4.45442 20.8937C5.85689 19.9587 8.31122 20.5431 9.24621 21.5949L19.6479 36.0872L40.685 4.41461C41.62 3.01213 43.9575 2.42777 45.5937 3.71337C46.7624 4.64835 47.4636 6.28457 46.6455 7.68705L21.6347 45.437C20.5829 46.6057 18.8298 46.6057 17.7779 45.437L3.40256 25.4517Z', + fill: n, + }), + ) + }), + ck = ['color', 'size'], + uk = uE(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, ck) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M29.9081 25.0577L45.8451 9.12074C46.5381 8.42782 46.8845 7.61942 46.8845 6.58005C46.8845 5.54068 46.5381 4.73228 45.8451 4.03937C44.4593 2.65354 42.1496 2.65354 40.8793 4.03937L24.9423 20.0919L9.00525 4.15486C7.61942 2.76903 5.4252 2.76903 4.03937 4.15486C3.34646 4.84777 3 5.65617 3 6.58005C3 7.50394 3.34646 8.42782 4.03937 9.12074L19.9764 25.0577L4.03937 40.9948C3.34646 41.6877 3 42.4961 3 43.42C3 44.3438 3.34646 45.2677 4.03937 45.9606C5.4252 47.3465 7.73491 47.3465 9.00525 45.9606L24.9423 30.0236L40.8793 45.9606C41.5722 46.6535 42.3806 47 43.42 47C44.4593 47 45.2677 46.6535 45.9606 45.9606C46.6535 45.2677 47 44.4593 47 43.42C47 42.3806 46.6535 41.5722 45.9606 40.8793L29.9081 25.0577Z', + fill: n, + }), + ) + }), + dk = ['color', 'size'], + fk = uE(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, dk) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M43.0081 15.2287L36.7869 17.6214L28.935 29.9601C30.5809 33.9266 30.3662 38.0903 27.1408 41.3158L26.5656 41.8909C25.9554 42.5011 24.9661 42.5011 24.3559 41.8909L14.4122 31.9472L2.99211 43.3673C2.38192 43.9775 1.3926 43.9775 0.782403 43.3673C0.17221 42.7571 0.172211 41.7678 0.782403 41.1576L12.2025 29.7375L2.25883 19.7938C1.64864 19.1836 1.64864 18.1943 2.25883 17.5841L2.50512 17.3378C5.73058 14.1123 10.2231 13.5688 14.1897 15.2147L26.5283 7.36283L28.9211 1.14165C29.327 0.0863053 30.6847 -0.201832 31.4843 0.597706L43.552 12.6655C44.3516 13.465 44.0634 14.8228 43.0081 15.2287ZM29.0752 9.44618L30.9747 4.50752L39.6422 13.1751L34.7035 15.0745L25.4251 29.655L26.0486 31.1577C27.234 34.0146 27.0773 36.5309 25.4342 38.5498L5.64209 18.7576C7.75439 17.2384 10.4304 17.0382 12.992 18.1011L14.4948 18.7246L29.0752 9.44618Z', + fill: n, + }), + ) + }), + hk = ['color', 'size'], + pk = uE(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, hk) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M15.75 17.3125C15.75 16.4496 16.4496 15.75 17.3125 15.75C18.1754 15.75 18.875 16.4496 18.875 17.3125L18.875 32.9375C18.875 33.8005 18.1754 34.5 17.3125 34.5C16.4496 34.5 15.75 33.8005 15.75 32.9375L15.75 17.3125Z', + fill: n, + }), + he.createElement('path', { + d: 'M26.6875 15.75C25.8246 15.75 25.125 16.4496 25.125 17.3125L25.125 32.9375C25.125 33.8005 25.8246 34.5 26.6875 34.5C27.5504 34.5 28.25 33.8005 28.25 32.9375V17.3125C28.25 16.4496 27.5504 15.75 26.6875 15.75Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M12.625 6.37503V3.25003C12.625 1.52414 14.0241 0.125031 15.75 0.125031H28.25C29.9759 0.125031 31.375 1.52414 31.375 3.25003V6.37503H42.3125C43.1754 6.37503 43.875 7.07459 43.875 7.93753C43.875 8.80048 43.1754 9.50003 42.3125 9.50003H39.1875V40.75C39.1875 42.4759 37.7884 43.875 36.0625 43.875H7.9375C6.21161 43.875 4.8125 42.4759 4.8125 40.75V9.50003L1.6875 9.50003C0.824554 9.50003 0.125 8.80048 0.125 7.93753C0.125 7.07459 0.824555 6.37503 1.6875 6.37503H12.625ZM15.75 3.25003H28.25V6.37503H15.75V3.25003ZM7.9375 9.50003L7.9375 40.75H36.0625V9.50003H7.9375Z', + fill: n, + }), + ) + }), + gk = {Sm: 'sm', Md: 'md'}, + mk = {Primary: 'primary', Secondary: 'secondary'}, + vk = {Sm: 'sm', Md: 'md'}, + yk = {Primary: 'primary', Secondary: 'secondary'}, + bk = + (n((DC = {}), vk.Sm, function (e) { + return Bd(['padding:4px 8px;height:24px;', ''], e.theme.typography.font[gp.InputSm]) + }), + n(DC, vk.Md, function (e) { + return Bd(['padding:8px 12px;height:30px;', ''], e.theme.typography.font[gp.InputMd]) + }), + DC), + wk = + ((bp = 'Input'), + (Zr = fe.span + .attrs({className: Fh(bp, 'Icon')}) + .withConfig({componentId: 'sc-150k0cz-0'})(function (e) { + var t = e.iconClickStart, + n = e.iconClickEnd + return Bd( + [ + 'display:flex;color:', + ';cursor:', + ';&:first-child{margin-right:7px;}&:last-child{margin-left:7px;}', + ], + e.theme.palette[pp.IconsPrimary], + t || n ? 'pointer' : 'default', + ) + })), + Wh({ + Input: fe.div + .attrs({className: Fh(bp, 'root')}) + .withConfig({componentId: 'sc-150k0cz-1'})(function (e) { + var t = void 0 === (t = e.size) ? vk.Md : t, + n = e.error, + r = e.fullWidth, + i = e.theme + return Bd( + [ + 'position:relative;display:inline-flex;align-items:center;cursor:text;width:', + ';background:', + ';border:1px solid ', + ';border-radius:', + ';box-sizing:border-box;color:', + ';', + ' &:focus-within{background-color:', + '!important;border:1px solid ', + ';}&:hover{background-color:', + ';}', + '', + ], + void 0 !== r && r ? '100%' : '300px', + 'primary' === (void 0 === (e = e.background) ? yk.Primary : e) + ? i.palette[pp.BackgroundPrimary] + : i.palette[pp.BackgroundSecondary], + i.palette[pp.BordersSecondary], + i.shape.borderRadius[mp.Sm], + i.palette[pp.TextPrimary], + bk[t], + i.palette[pp.BackgroundSecondary], + i.palette[pp.AccentPrimary], + i.palette[pp.BackgroundPrimaryHover], + void 0 !== n && n && KO, + ) + }), + Base: fe.input + .attrs({className: Fh(bp, 'Base')}) + .withConfig({componentId: 'sc-150k0cz-2'})(function (e) { + return Bd( + [ + 'display:block;color:inherit;width:100%;min-width:0;margin:0;padding:0;border:0;background-color:transparent;outline:none;&::placeholder{color:', + ';}', + ], + e.theme.palette[pp.TextPlaceholder], + ) + }), + Icon: Zr, + })), + Ck = + ((a = 'Select'), + (kr = fe.span.attrs({className: Fh(a, 'Icon')}).withConfig({componentId: 'sc-mfrapg-0'})( + function (e) { + return Bd(['display:flex;flex-shrink:0;color:', ';'], e.theme.palette[pp.IconsPrimary]) + }, + )), + Wh({ + Container: fe.div + .attrs({className: Fh(a, 'Container')}) + .withConfig({componentId: 'sc-mfrapg-1'})(function (e) { + return Bd( + ['position:relative;display:inline-flex;', ''], + void 0 !== (e = e.fullWidth) && e ? 'width: 100%' : '', + ) + }), + Select: fe(wk.Input) + .attrs({className: Fh(a, 'root')}) + .withConfig({componentId: 'sc-mfrapg-2'})(function (e) { + var t = e.theme.palette + return Bd( + ['cursor:pointer;user-select:none;background:', ';'], + 'primary' === (void 0 === (e = e.background) ? mk.Primary : e) + ? t[pp.BackgroundPrimary] + : t[pp.BackgroundSecondary], + ) + }), + Label: fe.label + .attrs({className: Fh(a, 'Label')}) + .withConfig({componentId: 'sc-mfrapg-3'})([ + 'flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;', + ]), + Icon: kr, + Input: fe.input + .attrs({ + className: Fh(a, 'Input'), + 'aria-hidden': 'true', + tabindex: '-1', + }) + .withConfig({componentId: 'sc-mfrapg-4'})([ + 'left:0;width:100%;bottom:0;opacity:0;position:absolute;pointer-events:none;box-sizing:border-box;', + ]), + })) + + function xk(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Ek(e) { + var t + if (e && e.children) + return Array.isArray(e.children) + ? null == (t = e.children) || + null == + (t = t.filter(function (e) { + return 'string' == typeof e + })) + ? void 0 + : t.join(' ') + : e.children + } + + var Ok = [ + 'children', + 'size', + 'error', + 'multiple', + 'onChange', + 'value', + 'fullWidth', + 'selectProps', + 'MenuProps', + 'readOnly', + 'disabled', + 'background', + 'renderLabel', + ], + Sk = + ((hp = Bh(function (e, t) { + function r() { + return b(void 0) + } + + var i = e.children, + o = e.size, + a = e.error, + s = e.multiple, + c = e.onChange, + u = e.value, + d = e.fullWidth, + f = e.selectProps, + h = e.MenuProps, + p = e.readOnly, + g = e.disabled, + m = e.background, + v = e.renderLabel, + y = ((e = Yc(e, Ok)), (w = jp(l.exports.useState(void 0), 2))[0]), + b = w[1], + w = Boolean(y) + return he.createElement( + Ck.Container, + {ref: t, fullWidth: Boolean(d)}, + he.createElement( + Ck.Select, + Ip({}, e, { + size: o, + background: m, + error: a, + fullWidth: Boolean(d), + readOnly: p, + onClick: + p || g + ? void 0 + : function (e) { + return b(e.currentTarget) + }, + }), + he.createElement( + Ck.Label, + null, + 'function' == typeof v + ? v(u) + : (function (e) { + var t = e.value, + r = void 0 !== (r = e.multiple) && r, + i = ((e = e.children), []) + return ( + he.Children.forEach(e, function (e) { + he.isValidElement(e) && + 'MenuItem' === (null == e ? void 0 : e.type).displayName && + Boolean(e.props) && + i.push( + (function (e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? xk(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + e, + Object.getOwnPropertyDescriptors(r), + ) + : xk(Object(r)).forEach(function (t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(r, t), + ) + }) + } + return e + })({}, e.props), + ) + }), + 0 < + (e = r + ? i.filter(function (e) { + return Array.isArray(t) && t.includes(e.value) + }) + : [ + i.find(function (e) { + return e.value === t + }), + ]).length + ? e.map(Ek).join(', ') + : Array.isArray(t) + ? t.join(', ') + : t + ) + })({value: u, multiple: s, children: i}), + ), + he.createElement( + Ck.Icon, + null, + he.createElement(iO, { + type: w ? 'top' : 'bottom', + IconProps: {size: 8}, + }), + ), + he.createElement(Ck.Input, f), + ), + he.createElement( + cE, + Ip({onClose: r, open: w, anchorEl: y}, h), + he.Children.map(i, function (e) { + return (function (e, t) { + var n = t.value, + r = void 0 !== (i = t.multiple) && i, + i = void 0 === (i = t.size) ? gk.Md : i, + o = t.onClose, + a = t.onChange + if (!he.isValidElement(e)) return e + if ('MenuItem' !== (null == (t = e.type) ? void 0 : t.displayName)) + return he.cloneElement(e) + var l = null == e || null == (t = e.props) ? void 0 : t.value + return ( + (t = 0 < (t = r ? (Array.isArray(n) ? n : []) : [n]).length && t.includes(l)), + he.cloneElement(e, { + active: t, + size: i, + children: (function (e) { + var t = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : gk.Md + if ( + (r = 1 < arguments.length && void 0 !== arguments[1] && arguments[1]) && + e + ) { + var n, + r = he.createElement( + eO, + null, + he.createElement(sk, {size: t === gk.Md ? 11 : 9}), + ) + if (1 === he.Children.count(e)) + return ( + he.isValidElement((t = e)) && + 'MenuItemLabel' !== + (null == e || null == (n = e.type) ? void 0 : n.displayName) && + (t = he.createElement(QE, null, e)), + he.createElement(he.Fragment, null, t, r) + ) + if ( + 1 < he.Children.count(e) && + !he.Children.toArray(e).some(function (e) { + return ( + 'MenuItemActions' === + (null == e || null == (e = e.type) ? void 0 : e.displayName) + ) + }) + ) + return he.createElement(he.Fragment, null, e, r) + } + return e + })(null == e || null == (e = e.props) ? void 0 : e.children, t, i), + onClick: function () { + var e, t + r || 'function' != typeof o || o(), + 'function' == typeof a && + ((e = l), + r && + (-1 < (t = (e = Hh(Array.isArray(n) ? n : [])).indexOf(l)) + ? e.splice(t, 1) + : e.push(l)), + a(e)) + }, + }) + ) + })(e, { + value: u, + multiple: s, + size: o, + onClose: r, + onChange: p || g ? void 0 : c, + }) + }), + ), + ) + })), + (Pp = { + size: gk.Md, + error: !1, + multiple: !1, + fullWidth: !1, + readOnly: !1, + disabled: !1, + background: mk.Primary, + }), + (Zv = ((hp.defaultProps = Pp), on.oneOfType([on.string, on.number, on.oneOf([null])]))), + (Gv = { + size: on.oneOf(Vh(gk)), + error: on.bool, + multiple: on.bool, + fullWidth: on.bool, + children: on.oneOfType([on.element, on.arrayOf(on.element)]), + value: on.oneOfType([on.string, on.number, on.oneOf([null]), on.arrayOf(Zv)]), + onChange: on.func, + MenuProps: on.exact(Kb), + selectProps: on.object, + readOnly: on.bool, + disabled: on.bool, + background: on.oneOf(Vh(mk)), + renderLabel: on.func, + }), + (hp.propTypes = Gv), + hp), + kk = [ + 'children', + 'iconStart', + 'iconEnd', + 'iconClickStart', + 'iconClickEnd', + 'size', + 'className', + 'style', + 'fullWidth', + 'readOnly', + 'background', + 'focusOnMount', + 'focusOnClick', + ], + Pk = + ((s = Bh(function (e, t) { + function n(e, t) { + return e + ? he.createElement( + wk.Icon, + { + onClick: function () { + return (e = t), m && b(), void ('start' === e ? a && a() : s && s()) + var e + }, + iconClickStart: a, + iconClickEnd: s, + }, + 'function' == typeof e ? e({size: c !== vk.Md ? 14 : 16}) : e, + ) + : void 0 + } + + var r = e.children, + i = e.iconStart, + o = e.iconEnd, + a = e.iconClickStart, + s = e.iconClickEnd, + c = e.size, + u = e.className, + d = e.style, + f = e.fullWidth, + h = e.readOnly, + p = void 0 === (p = e.background) ? 'primary' : p, + g = void 0 !== (v = e.focusOnMount) && v, + m = void 0 === (v = e.focusOnClick) || v, + v = Yc(e, kk), + y = l.exports.useRef(null), + b = function () { + var e + null != (e = y.current) && e.focus() + } + return ( + l.exports.useEffect(function () { + g && b() + }, []), + he.createElement( + wk.Input, + { + onClick: m ? b : void 0, + ref: t, + size: c, + className: u, + style: d, + fullWidth: Boolean(f), + background: p, + }, + n(i, 'start'), + he.createElement(wk.Base, Ip({}, v, {ref: y, readOnly: Boolean(h)})), + n(o, 'end'), + r && he.createElement(he.Fragment, null, r), + ) + ) + })), + (rE = { + size: vk.Md, + background: yk.Primary, + error: !1, + fullWidth: !1, + readOnly: !1, + }), + (sv = + ((s.defaultProps = rE), + { + size: on.oneOf(Vh(vk)), + iconStart: on.oneOfType([on.node, on.func]), + iconEnd: on.oneOfType([on.node, on.func]), + error: on.bool, + fullWidth: on.bool, + value: on.any, + readOnly: on.bool, + iconClickStart: on.func, + iconClickEnd: on.func, + background: on.oneOf(Vh(yk)), + focusOnMount: on.bool, + focusOnClick: on.bool, + })), + (s.propTypes = sv), + s) + + function _k(e, t, n) { + function r(e) { + var t + document.removeEventListener('mousemove', o), + document.removeEventListener('mouseup', r), + document.removeEventListener('mouseleave', r), + document.removeEventListener('touchmove', o), + document.removeEventListener('touchend', r), + document.removeEventListener('touchcancel', r), + 'function' == typeof n && n((null == (t = e.touches) ? void 0 : t[0]) || e) + } + + function i(e) { + var n + document.addEventListener('mousemove', o), + document.addEventListener('mouseup', r), + document.addEventListener('mouseleave', r), + document.addEventListener('touchmove', o), + document.addEventListener('touchend', r), + document.addEventListener('touchcancel', r), + 'function' == typeof t && t((null == (n = e.touches) ? void 0 : n[0]) || e) + } + + var o = function (t) { + var n + 'function' == typeof e && e((null == (n = t.touches) ? void 0 : n[0]) || t) + } + return {onMouseDown: i, onTouchStart: i} + } + + function Lk(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + var Tk = 'ColorPicker', + jk = + ((Qb = fe.div.attrs({className: Fh(Tk, 'root')}).withConfig({componentId: 'sc-qj4xo5-0'})( + [ + 'background-color:', + ';box-shadow:0px 1px 2px rgba(78,77,77,0.15);border-radius:2px;padding:12px;max-width:200px;', + ], + function (e) { + return e.theme.palette[pp.BackgroundSecondary] + }, + )), + (WE = fe.div.attrs({className: Fh(Tk, 'icon')}).withConfig({componentId: 'sc-qj4xo5-1'})([ + 'display:flex;justify-content:space-between;align-items:center;cursor:pointer;', + ])), + (Yb = fe.div + .attrs({className: Fh(Tk, 'range-picker')}) + .withConfig({componentId: 'sc-qj4xo5-2'})(function (e) { + return Bd( + [ + 'position:relative;border-radius:2px;width:186px;height:180px;user-select:none;cursor:crosshair;background-color:', + ';', + ], + e.color, + ) + })), + (RC = fe.div + .attrs({className: Fh(Tk, 'white-gradient')}) + .withConfig({componentId: 'sc-qj4xo5-3'})([ + 'background:linear-gradient(to right,white 0%,rgba(255,255,255,0) 100%);z-index:0;position:absolute;width:100%;height:100%;border-radius:2px;user-select:none;pointer-events:none;top:-1px;', + ])), + (DC = fe.div + .attrs({className: Fh(Tk, 'black-gradient')}) + .withConfig({componentId: 'sc-qj4xo5-4'})([ + 'background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black 100%);z-index:1;position:absolute;width:100%;height:100%;border-radius:2px;user-select:none;pointer-events:none;', + ])), + (bp = fe.span + .attrs(function (e) { + var t = void 0 === (t = e.left) ? 0 : t, + r = void 0 === (r = e.top) ? 0 : r, + i = void 0 !== (i = e.considerTopWidth) && i + e = e.style + return { + className: Fh(Tk, 'pointer'), + style: (function (e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? Lk(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : Lk(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + })({left: t - 7, top: r - (i ? 7 : 0)}, e), + } + }) + .withConfig({componentId: 'sc-qj4xo5-5'})(function (e) { + return Bd( + [ + 'display:inline-block;box-sizing:border-box;width:15px;height:15px;border-radius:20px;box-shadow:0px 1px 2px rgba(78,77,77,0.15);border:2px solid ', + ';background-color:', + ';position:absolute;cursor:pointer;z-index:11;user-select:none;outline:none;', + ], + (e = e.theme).palette[pp.BackgroundSecondary], + e.palette[pp.AccentPrimary], + ) + })), + (Zr = fe.div + .attrs({className: Fh(Tk, 'bar-wrapper')}) + .withConfig({componentId: 'sc-qj4xo5-6'})([ + 'margin-top:8px;position:relative;width:186px;height:12px;', + ])), + (kr = fe.table.attrs({className: Fh(Tk, 'bar')}).withConfig({componentId: 'sc-qj4xo5-7'})( + ['border-radius:4px;width:100%;height:8px;border-collapse:collapse;'], + )), + (a = fe.td + .attrs(function (e) { + return (e = e.$color), {className: Fh(Tk, 'stop'), style: {backgroundColor: e}} + }) + .withConfig({componentId: 'sc-qj4xo5-8'})([ + 'padding:0;user-select:none;pointer-events:none;&:first-child{width:4px;border-top-left-radius:4px;border-bottom-left-radius:4px;}&:last-child{width:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;}', + ])), + (Pp = fe.div + .attrs({className: Fh(Tk, 'action')}) + .withConfig({componentId: 'sc-qj4xo5-9'})([ + 'display:flex;justify-content:space-between;align-items:center;', + ])), + (Zv = fe.label + .attrs({className: Fh('ColorItem', 'label')}) + .withConfig({componentId: 'sc-qj4xo5-10'})(function (e) { + var t = e.theme, + n = e.size, + r = e.color, + i = e.stroke + e = e.value + return Bd( + [ + 'border-radius:2px;border:', + ';box-sizing:border-box;width:', + 'px;height:', + 'px;background-color:', + ';user-select:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 300ms;margin-bottom:8px;background:', + ';input{display:none;}', + ], + '1px solid '.concat(i), + n, + n, + r, + 'rgba(0,0,0,0)' === e && + 'repeating-conic-gradient('.concat( + t.palette[pp.LinkPrimary], + ' 0% 25%, transparent 0% 50%) 50% / 8px 8px', + ), + ) + })), + Wh({ + ColorPickerWrapper: Qb, + RangePickerWrapper: Yb, + WhiteGradient: RC, + BlackGradient: DC, + ColorPointer: bp, + BarWrapper: Zr, + Bar: kr, + BarColorStop: a, + ColorPickerAction: Pp, + ColorPickerIcon: WE, + ColorItemsContainer: fe.div.withConfig({componentId: 'sc-qj4xo5-11'})([ + 'display:flex;flex-wrap:wrap;align-content:space-between;margin-top:14px;margin-bottom:12px;margin-left:12px;& > .item{margin-right:8px;display:flex;justify-content:center;}', + ]), + ColorItemWrapper: Zv, + Select: fe.div + .attrs({className: Fh(Tk, 'select')}) + .withConfig({componentId: 'sc-qj4xo5-12'})(function (e) { + return Bd(['width:', ';'], 'rgb' === e.value ? '25%' : '35%') + }), + })), + Ik = + ((Kb = Bh(function (e, t) { + var n = e.value, + r = e.onChange, + i = e.checked, + o = + ((e = void 0 === (e = e.size) ? 24 : e), + l.exports.useMemo( + function () { + return '#ffffff' === n || 'rgba(0,0,0,0)' === n ? 'black' : 'white' + }, + [n], + )) + return he.createElement( + jk.ColorItemWrapper, + { + ref: t, + color: n, + size: e, + stroke: 'rgba(0,0,0,0)' === n ? '#a8a8a8' : '#E9EEF2', + value: n, + }, + he.createElement('input', { + type: 'radio', + value: n, + checked: i, + onChange: r, + }), + i && he.createElement(sk, {color: o}), + ) + })), + (Kb.defaultProps = {}), + (Kb.propTypes = { + value: on.string.isRequired, + checked: on.bool, + onChange: on.func.isRequired, + size: on.number, + }), + Kb), + Mk = ['defaultColor', 'onChange', 'pinnedColors', 'showTransparentColor'] + + function Rk(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Dk(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? Rk(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : Rk(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + function Ak(e) { + var t = e.annotation, + n = e.updateAnnotation, + r = ((e = e.t), t.stroke) + t = t.strokeWidth + return he.createElement( + US, + null, + he.createElement(Jb, null, e('stroke')), + he.createElement(GC, { + annotation: 'px', + onChange: function (e) { + n({strokeWidth: Iw(e, Zk, Uk)}) + }, + value: t, + }), + he.createElement(Gk, { + color: r, + onChange: function (e) { + n({stroke: e}) + }, + }), + ) + } + + function zk(e) { + function t(e, t) { + i( + n( + {}, + e, + Iw( + t, + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : 0, + 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : 100, + ), + ), + ) + } + + var r = e.annotation, + i = e.updateAnnotation, + o = ((e = e.t), r.shadowOffsetX), + a = r.shadowOffsetY, + l = r.shadowBlur, + s = r.shadowColor + r = r.shadowOpacity + return he.createElement( + US, + null, + he.createElement(XS, null, e('shadow')), + he.createElement( + YS, + null, + he.createElement( + qS, + null, + he.createElement(Jb, null, e('horizontal')), + he.createElement(GC, { + annotation: 'px', + min: -100, + max: 100, + onChange: function (e) { + return t('shadowOffsetX', e, -100, 100) + }, + value: o || 0, + hideTrack: !0, + }), + ), + he.createElement( + qS, + null, + he.createElement(Jb, null, e('vertical')), + he.createElement(GC, { + annotation: 'px', + min: -100, + max: 100, + onChange: function (e) { + return t('shadowOffsetY', e, -100, 100) + }, + value: a || 0, + hideTrack: !0, + }), + ), + ), + he.createElement( + YS, + null, + he.createElement( + qS, + null, + he.createElement(Jb, null, e('blur')), + he.createElement(GC, { + annotation: '%', + onChange: function (e) { + return t('shadowBlur', e) + }, + value: l, + }), + ), + he.createElement( + qS, + null, + he.createElement(Jb, null, e('opacity')), + he.createElement(GC, { + annotation: '%', + onChange: function (e) { + return t('shadowOpacity', e / 100, 0, 1) + }, + value: Math.round(100 * r), + }), + ), + ), + he.createElement(Gk, { + color: s, + onChange: function (e) { + i({shadowColor: e}) + }, + }), + ) + } + + function Nk(e) { + var t = e.annotation, + n = e.updateAnnotation, + r = xw().designLayer, + i = Qk.length + return Qk.map(function (e, o) { + return he.createElement( + l.exports.Fragment, + {key: e}, + he.createElement( + $S, + { + onClick: function () { + n(Kk(t, r, e)) + }, + secondaryIconColor: !0, + addThinBorder: !0, + noMargin: !0, + }, + e === Wv.MIDDLE_CENTER + ? he.createElement($k, null) + : he.createElement(Yk, { + style: {transform: 'rotate('.concat(Jk[e], 'deg)')}, + }), + ), + (o + 1) % 3 == 0 && o + 1 !== i && he.createElement('div', null), + ) + }) + } + + var Hk = ['rgba(0,0,0,0)'], + Fk = '#00000000', + Bk = + ((Gv = Bh(function (e, t) { + function n(e) { + return (e === Hk[0] && C.color === Fk) || e === C.color + } + + function r(e) { + return y(e) ? Hk[0] : 'rgb('.concat(Jh(e).join(', '), ')') + } + + function i(e, t) { + 'add' === t + ? ((t = [].concat(Hh(E), [e])), O(t), 'function' == typeof g && g(C.color, r(e), I(t))) + : ((t = E.filter(function (e) { + return e !== C.color + })), + O(t), + 'function' == typeof g && g(C.color, r(e), I(t))) + } + + function o(e) { + var t, n + null !== L && + ((t = ip(L).left), + (e = jp(qh(e || C.color), 1)[0]), + null !== (e = L.querySelector("[data-hue='".concat(e, "']"))) && + ((n = e.style.backgroundColor || b.color), + w({color: n, pointerLeft: ip(e).left - t || b.pointerLeft}))) + } + + function a(e) { + e.includes('rgb') ? P(Qh(e)) : P(Jh(e)) + } + + function s(e) { + return y(e) ? Fk : e + } + + function c(e) { + var t, n, i, l, c, u, d + null !== T && + ((t = (n = ip(T)).width), + (n = n.height), + (i = (c = qh(e))[0]), + (l = c[1] / 100), + (d = ((u = 2 * (c = c[2] / 100)) + (l *= u <= 1 ? u : 2 - u)) / 2), + (i = Xh( + (c = [ + (u = np((l = (2 * l) / (u + l)), c)) || rp(l, c) ? 0 : i, + u ? 0 : Math.round(100 * l), + Math.round(100 * d), + ])[1], + 0, + 100, + 0, + t, + )), + (u = n - Xh(c[2], 0, 100, 0, n)), + x({color: s(e), pointer: {left: i, top: u}}), + o(e), + a(e), + 'function' == typeof g && g(s(e), r(e), I(E))) + } + + function u(e, t, n) { + var r, i, o + null !== T && + ((r = (i = ip(T)).width), + (i = i.height), + (n = jp(qh(n), 1)[0]), + (e = Uh(e, 0, r) || 0), + (t = Uh(t, 0, i) || 0), + (n = n), + (n = [ + (i = np( + (o = + 0 != (r = ((2 - (o = r = e / r)) * (i = (i - t) / i)) / 2) + ? 1 == r + ? 0 + : r < 0.5 + ? (o * i) / (2 * r) + : (o * i) / (2 - 2 * r) + : o), + r, + )) || rp(o, r) + ? 0 + : n, + i ? 0 : Math.round(100 * o), + Math.round(100 * r), + ]), + (i = (function (e, t, n) { + function r(t) { + return ( + (t = (t + e / 30) % 12), + (t = i - o * Math.max(Math.min(t - 3, 9 - t, 1), -1)), + ep(Math.round(255 * t)) + ) + } + + var i = n / 100, + o = (t * Math.min(i, 1 - i)) / 100 + return '#'.concat(r(0)).concat(r(8)).concat(r(4)) + })(n[0], n[1], n[2])), + x({color: i, pointer: {left: e, top: t}}), + 'function' == typeof g && g(i, 'rgb('.concat(Jh(i).join(', '), ')'), I(E))) + } + + function d(e) { + var t, + n, + r = L + return null !== r + ? ((t = ip(r).width), + (n = Uh(Math.round(Xh(e, 0, t, 0, 360)), 0, 360)), + (r = r.querySelector("[data-hue='".concat(n, "']")).style.backgroundColor), + w({color: r, pointerLeft: Uh(e, 0, t)}), + r) + : b.color + } + + function f(e) { + var t, n + null !== L && + ((t = ip(L).left), + (e = d((n = (null == (n = e.touches) ? void 0 : n[0]) || e).pageX - t)), + u(C.pointer.left, C.pointer.top, e)) + } + + function h(e) { + var t, n, r, i + null !== T && + ((r = (i = ip(T)).left), + (t = i.top), + (n = i.height), + (i = i.width), + u( + (r = e ? Uh(e.pageX - r, 0, i) : C.pointer.left || 0), + (i = e ? Uh(e.pageY - t, 0, n) : C.pointer.left || 0), + b.color, + )) + } + + var p = void 0 === (p = e.defaultColor) ? '#000000' : p, + g = e.onChange, + m = void 0 === (m = e.pinnedColors) ? [] : m, + v = void 0 !== (v = e.showTransparentColor) && v, + y = + ((e = Yc(e, Mk)), + (v = v ? Hk.concat(m) : m), + function (e) { + return e === Fk || e === Hk[0] + }), + b = (m = jp(l.exports.useState({color: '#ff0000', pointerLeft: 0}), 2))[0], + w = m[1], + C = (m = jp( + l.exports.useState({ + color: y(p) ? '#00000000' : $h(p) || '#000000', + pointer: {left: 0, top: 0}, + }), + 2, + ))[0], + x = m[1], + E = (p = jp(l.exports.useState(v), 2))[0], + O = p[1], + S = ((v = (m = jp(l.exports.useState('hex'), 2))[0]), m[1]), + k = (p = jp(l.exports.useState([]), 2))[0], + P = p[1], + _ = ((p = (m = jp(l.exports.useState($h(C.color)), 2))[0]), m[1]), + L = (m = jp(l.exports.useState(null), 2))[0], + T = ((m = m[1]), (j = jp(l.exports.useState(null), 2))[0]), + j = j[1], + I = function (e) { + return e.filter(function (e) { + return 'rgba(0,0,0,0)' !== e + }) + }, + M = + (l.exports.useEffect( + function () { + o(C.color), c(C.color) + }, + [L], + ), + l.exports.useEffect( + function () { + _(C.color), a(C.color) + }, + [C.color], + ), + l.exports.useMemo(function () { + return Hh(new Array(361)).map(function (e, t) { + return he.createElement(jk.BarColorStop, { + key: t, + $color: 'hsl('.concat(t, ', 100%, 50%)'), + 'data-hue': t, + }) + }) + }, [])), + R = _k(f, f, null), + D = _k(h, h, null) + return he.createElement( + jk.ColorPickerWrapper, + Ip({ref: t}, e), + he.createElement( + jk.RangePickerWrapper, + Ip({ref: j, color: b.color}, D), + he.createElement(jk.WhiteGradient, null), + he.createElement(jk.BlackGradient, null), + he.createElement(jk.ColorPointer, { + tabIndex: -1, + left: C.pointer.left || 0, + top: C.pointer.top || 0, + onKeyDown: function (e) { + var t = 0 + 'ArrowLeft' === e.key || 'ArrowUp' === e.key + ? (t = -1) + : ('ArrowRight' !== e.key && 'ArrowDown' !== e.key) || (t = 1), + t && + u( + (C.pointer.left || 0) + (['ArrowLeft', 'ArrowRight'].includes(e.key) ? t : 0), + (C.pointer.top || 0) + (['ArrowUp', 'ArrowDown'].includes(e.key) ? t : 0), + b.color, + ) + }, + considerTopWidth: !0, + }), + ), + he.createElement( + jk.BarWrapper, + R, + he.createElement( + jk.Bar, + {ref: m}, + he.createElement('tbody', null, he.createElement('tr', null, M)), + ), + he.createElement(jk.ColorPointer, { + tabIndex: -1, + left: b.pointerLeft, + onKeyDown: function (e) { + ;('ArrowLeft' !== e.key && 'ArrowRight' !== e.key) || + d(b.pointerLeft + ('ArrowLeft' === e.key ? -1 : 1)) + }, + considerTopWidth: !1, + style: {top: -3}, + }), + ), + he.createElement( + jk.ColorItemsContainer, + null, + E.map(function (e) { + return he.createElement( + 'div', + {className: 'item', key: e}, + he.createElement(Ik, { + value: e, + checked: n(e), + onChange: function (e) { + return c(e.target.value) + }, + }), + ) + }), + ), + he.createElement( + jk.ColorPickerAction, + null, + he.createElement( + jk.Select, + {value: v}, + he.createElement( + Sk, + { + size: 'sm', + value: v, + MenuProps: {zIndex: 11112}, + onChange: function (e) { + return S(e) + }, + fullWidth: !0, + }, + he.createElement(YE, {value: 'hex'}, 'Hex'), + he.createElement(YE, {value: 'rgb'}, 'RGB'), + ), + ), + 'hex' === v + ? he.createElement(Pk, { + size: 'sm', + error: !/^#([\da-f]{3}){1,2}$/i.test(C.color), + value: p, + onChange: function (e) { + return Kh((e = e.target.value)) && c(e), void _(e) + }, + style: {width: '45%'}, + }) + : k.map(function (e, t) { + return he.createElement(Pk, { + key: t, + size: 'sm', + value: e, + onChange: function (e) { + var n, r + ;(e = Number(null == (e = e.target) ? void 0 : e.value)), + (n = t), + 255 < e || + Number.isNaN(e) || + (((r = k)[n] = e), + (n = Yh.apply(void 0, Hh(r))), + P(Hh(r)), + Kh(n) && (x(Dk(Dk({}, C), {}, {color: n})), o(n))) + }, + style: {width: '20%'}, + }) + }), + C.color !== Fk && + he.createElement( + jk.ColorPickerIcon, + { + onClick: function () { + return E.some(n) ? i(C.color, 'delete') : i(C.color, 'add') + }, + }, + E.some(n) ? he.createElement(pk, null) : he.createElement(fk, null), + ), + ), + ) + })), + (hp = + ((Gv.defaultProps = { + defaultColor: '#000000', + pinnedColors: [], + showTransparentColor: !1, + }), + (Gv.propTypes = { + defaultColor: on.string, + onChange: on.func, + pinnedColors: on.array, + showTransparentColor: on.bool, + }), + Gv)), + fe.div + .attrs(function (e) { + return { + style: { + background: + 'rgba(0,0,0,0)' === (e = e.$color) + ? 'repeating-conic-gradient(#5d6d7e 0% 25%, transparent 0% 50%) 50% / 8px 8px' + : e, + }, + } + }) + .withConfig({componentId: 'sc-zmv0gj-0'})( + [ + 'background:', + ';border-radius:2px;width:24px;height:24px;border:2px solid ', + ';cursor:pointer;box-sizing:border-box;', + ], + function (e) { + return e.theme.palette['icons-primary'] + }, + function (e) { + return e.theme.palette['borders-strong'] + }, + )), + Vk = fe(hp).withConfig({componentId: 'sc-zmv0gj-1'})(['max-width:212px;']), + Wk = 'FIE_pinnedColors', + Gk = function (e) { + function t(e) { + d(u ? null : e.currentTarget) + } + + var n = void 0 === (n = e.position) ? 'top' : n, + r = e.onChange, + i = e.color, + o = void 0 === (f = (e = xw()).selectionsIds) ? [] : f, + a = void 0 === (f = e.config.annotationsCommon) ? {} : f, + s = e.dispatch, + c = e.latestColor, + u = (f = jp(l.exports.useState(), 2))[0], + d = f[1], + f = (e = jp( + l.exports.useState(function () { + return c || i || a.fill + }), + 2, + ))[0], + h = e[1], + p = (e = jp( + l.exports.useState( + null != (e = window) && e.localStorage + ? JSON.parse(localStorage.getItem(Wk) || '[]') + : [], + ), + 2, + ))[0], + g = e[1] + return ( + l.exports.useEffect( + function () { + var e = (0 === o.length && c) || i + h(e), r(e) + }, + [i, o], + ), + he.createElement( + he.Fragment, + null, + he.createElement(Bk, { + className: 'FIE_color-picker-triggerer', + onClick: t, + $color: f, + onChange: r, + }), + he.createElement( + iE, + { + className: 'FIE_color-picker', + anchorEl: u, + open: !!u, + position: n, + onClick: t, + overlay: !0, + zIndex: 11111, + }, + he.createElement(Vk, { + onChange: function (e, t, n) { + var i + h(t), + r(t), + (n = n), + null != (i = window) && + i.localStorage && + ((i = window.localStorage.getItem(Wk)), + JSON.stringify(n) !== i && + ((i = n.slice(-9)), + window.localStorage.setItem(Wk, JSON.stringify(i)), + g(i))), + c !== t && s({type: rT, payload: {latestColor: t}}) + }, + defaultColor: f, + pinnedColors: p, + showTransparentColor: !0, + }), + ), + ) + ) + }, + Zk = ((Gk.defaultProps = {position: 'top', color: void 0}), 0), + Uk = 100, + Xk = ['color', 'size'], + Yk = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, Xk) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M49.7025 23.7268L49.7008 23.725L39.4953 13.5687C38.7308 12.8079 37.4941 12.8107 36.7331 13.5754C35.9722 14.3399 35.9751 15.5766 36.7397 16.3375L43.5916 23.1562H2.22852C1.1498 23.1562 0.275391 24.0307 0.275391 25.1094C0.275391 26.1881 1.1498 27.0625 2.22852 27.0625H43.5915L36.7397 33.8812C35.9752 34.6422 35.9723 35.8788 36.7332 36.6433C37.4942 37.4081 38.731 37.4107 39.4954 36.65L49.7009 26.4937L49.7026 26.4919C50.4676 25.7284 50.4651 24.4878 49.7025 23.7268Z', + fill: n, + }), + ) + }), + qk = ['color', 'size'], + $k = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, qk) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('circle', { + cx: '25', + cy: '25', + r: '8.33333', + fill: n, + }), + ) + }), + Kk = function (e, t, r) { + var i = e.width, + o = e.height, + a = e.scaleX, + l = e.scaleY, + s = e.rotation, + c = void 0 === (c = e.padding) ? 0 : c, + u = e.radius, + d = e.radiusX, + f = + ((e = e.radiusY), + (i = yC( + (i || 2 * (u || d)) * (void 0 === a ? 1 : a), + (o || 2 * (u || e)) * (void 0 === l ? 1 : l), + void 0 === s ? 0 : s, + )), + (a = (d = t.attrs).clipWidth), + (o = d.clipHeight), + (e = void 0 === (u = d.clipX) ? 0 : u), + (s = void 0 === (l = d.clipY) ? 0 : l), + { + left: e + i.offsetLeft + c, + center: e + a / 2 - (i.width / 2 - i.offsetLeft) + c, + right: e + a - i.width - c + i.offsetLeft, + }), + h = { + top: s + i.offsetTop + c, + middle: s + o / 2 - (i.height / 2 - i.offsetTop) + c, + bottom: s + o - i.height - c + i.offsetTop, + } + return ( + n((t = {}), Wv.TOP_LEFT, function () { + return {x: f.left, y: h.top} + }), + n(t, Wv.TOP_CENTER, function () { + return {x: f.center, y: h.top} + }), + n(t, Wv.TOP_RIGHT, function () { + return {x: f.right, y: h.top} + }), + n(t, Wv.MIDDLE_LEFT, function () { + return {x: f.left, y: h.middle} + }), + n(t, Wv.MIDDLE_CENTER, function () { + return {x: f.center, y: h.middle} + }), + n(t, Wv.MIDDLE_RIGHT, function () { + return {x: f.right, y: h.middle} + }), + n(t, Wv.BOTTOM_LEFT, function () { + return {x: f.left, y: h.bottom} + }), + n(t, Wv.BOTTOM_CENTER, function () { + return {x: f.center, y: h.bottom} + }), + n(t, Wv.BOTTOM_RIGHT, function () { + return {x: f.right, y: h.bottom} + }), + t[r]() + ) + }, + Qk = Object.values(Wv), + Jk = + (n((rE = {}), Wv.TOP_LEFT, -145), + n(rE, Wv.TOP_CENTER, -90), + n(rE, Wv.TOP_RIGHT, -45), + n(rE, Wv.MIDDLE_LEFT, 180), + n(rE, Wv.MIDDLE_CENTER, 0), + n(rE, Wv.MIDDLE_RIGHT, 0), + n(rE, Wv.BOTTOM_LEFT, 135), + n(rE, Wv.BOTTOM_CENTER, 90), + n(rE, Wv.BOTTOM_RIGHT, 45), + rE), + eP = 'opacity', + tP = 'stroke', + nP = 'shadow', + rP = 'position', + iP = [ + 'children', + 'morePoppableOptionsPrepended', + 'moreOptionsPopupComponentsObj', + 'morePoppableOptionsAppended', + 'annotation', + 'updateAnnotation', + 'hideFillOption', + 'hidePositionField', + 'className', + ] + + function oP(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function aP(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? oP(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : oP(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function lP(e) { + var t = e.children, + r = e.morePoppableOptionsPrepended, + i = e.moreOptionsPopupComponentsObj, + o = e.morePoppableOptionsAppended, + a = e.annotation, + s = e.updateAnnotation, + c = e.hideFillOption, + u = e.hidePositionField, + d = e.className, + f = ((e = Yc(e, iP)), (y = jp(l.exports.useState(null), 2))[0]), + h = y[1], + p = (y = jp(l.exports.useState(null), 2))[0], + g = y[1], + m = (y = xw()).config.useCloudimage, + v = y.t, + y = l.exports.useMemo( + function () { + return [].concat( + Hh(r), + [{titleKey: 'opacity', name: eP, Icon: zS}], + Hh( + m + ? [] + : [ + {titleKey: 'stroke', name: tP, Icon: BS}, + {titleKey: 'shadow', name: nP, Icon: HS}, + ], + ), + [u ? void 0 : {titleKey: 'position', name: rP, Icon: WS}], + ) + }, + [r], + ), + b = l.exports.useMemo( + function () { + var e + return aP( + aP({}, i), + {}, + (n((e = {}), eP, $O), n(e, tP, Ak), n(e, nP, zk), n(e, rP, Nk), e), + o, + ) + }, + [i], + ), + w = l.exports.useCallback(function (e, t) { + ;(e = null == e ? void 0 : e.currentTarget), h(e), g(t) + }, []), + C = l.exports.useCallback( + function (e) { + s({fill: e}) + }, + [s], + ) + b = f && p && b[p] + return he.createElement( + GS, + {className: 'FIE_annotations-options'.concat(d ? ' '.concat(d) : '')}, + !c && he.createElement(Gk, {color: a.fill, onChange: C}), + t, + y.map(function (e) { + return ( + e && + he.createElement( + $S, + { + className: 'FIE_annotation-option-triggerer', + key: e.name, + title: v(e.titleKey), + onClick: function (t) { + return w(t, e.name) + }, + }, + he.createElement(e.Icon, {size: 18}), + ) + ) + }), + b && + he.createElement( + cE, + { + className: 'FIE_annotation-option-popup', + anchorEl: f, + open: !!f, + onClose: w, + position: 'top', + }, + he.createElement( + ZS, + null, + he.createElement(b, Ip({annotation: a, updateAnnotation: s}, e)), + ), + ), + ) + } + + function sP(e) { + var t = e.text, + r = e.saveText, + i = ((e = e.children), (h = xw()).dispatch), + o = h.textIdOfEditableContent, + a = h.designLayer, + s = h.t, + c = (h = h.config).useCloudimage, + u = void 0 === (u = (h = h[Av.TEXT]).fonts) ? [] : u, + d = h.onFontChange, + f = l.exports.useCallback( + function (e) { + var t = (e = e.target).name, + i = e.value, + o = e.type + r(function (e) { + return n({id: e.id}, t, 'number' === o ? Iw(i, 1, 500) : i) + }) + }, + [r], + ), + h = l.exports.useCallback( + function (e) { + var n + f({target: {name: 'fontFamily', value: e}}), + t.fontFamily !== e && 'function' == typeof d && ((n = a.draw.bind(a)), d(e, n)) + }, + [f, t, a], + ), + p = l.exports.useCallback( + function (e) { + var n = (null == (n = t.fontStyle) ? void 0 : n.replace('normal', '').split(' ')) || [] + 0 < Object.keys(n).length && n.includes(e) + ? (n = n.filter(function (t) { + return t !== e + })) + : n.push(e), + f({ + target: { + name: 'fontStyle', + value: n.join(' ').trim() || 'normal', + }, + }) + }, + [t], + ), + g = l.exports.useCallback(function () { + i({type: GL, payload: {textIdOfEditableContent: null}}) + }, []), + m = l.exports.useCallback(function (e) { + f({target: {name: 'text', value: e}}), g() + }, []) + return ( + l.exports.useEffect( + function () { + var e, n + return ( + o && + t.id === o && + ((e = a.getStage()), + (n = jp(e.findOne('#'.concat(Tv)).children, 1)[0]), + (function (e, t, n, r, i) { + ;(vP = r), + (yP = i), + (mP = n), + (gP = t.findOne('#'.concat(e))).hide(), + mP.hide(), + (r = gP.absolutePosition()), + (n = ''), + (pP = document.createElement('textarea')), + t.container().parentNode.appendChild(pP), + (pP.value = gP.text()), + (pP.style.position = 'absolute'), + (pP.style.top = ''.concat(r.y, 'px')), + (pP.style.left = ''.concat(r.x, 'px')), + (pP.style.width = ''.concat(gP.width() - 2 * gP.padding(), 'px')), + (pP.style.height = ''.concat(gP.height() - 2 * gP.padding() + 5, 'px')), + (pP.style.maxWidth = ''.concat(gP.width() - 2 * gP.padding(), 'px')), + (pP.style.maxHeight = ''.concat(gP.height() - 2 * gP.padding() + 5, 'px')), + (pP.style.fontSize = ''.concat(gP.fontSize(), 'px')), + (pP.style.border = '1px solid rgba(0, 0, 0, 0.5)'), + (pP.style.padding = '0px'), + (pP.style.margin = '0px'), + (pP.style.overflow = 'hidden'), + (pP.style.background = 'none'), + (pP.style.outline = 'none'), + (pP.style.resize = 'none'), + (pP.style.lineHeight = gP.lineHeight()), + (pP.style.fontFamily = gP.fontFamily()), + (pP.style.transformOrigin = 'left top'), + (pP.style.textAlign = gP.align()), + (pP.style.fontStyle = gP.fontStyle()), + (pP.style.letterSpacing = gP.letterSpacing()), + (pP.style.lineHeight = gP.lineHeight()), + (pP.style.color = gP.fill()), + (i = gP.rotation()) && (n += 'rotateZ('.concat(i, 'deg)')), + (e = 0) + var o = -1 < navigator.userAgent.toLowerCase().indexOf('firefox') + o && (e += 2 + Math.round(gP.fontSize() / 20)), + (n += 'translateY(-'.concat(e, 'px)')), + (pP.style.transform = n), + (pP.style.height = 'auto'), + (pP.style.height = ''.concat(pP.scrollHeight + 3, 'px')), + pP.focus(), + pP.addEventListener('keydown', function (e) { + var t + 'Enter' !== e.key || e.shiftKey || ((t = pP.value), TP(), vP(t)), + 'Escape' === e.key && TP() + }), + pP.addEventListener('keydown', function (e) { + 'Enter' !== e.key && + 'Escape' !== e.key && + ((e = gP.getAbsoluteScale().x), + (e = (e = gP.width() * e) || gP.placeholder.length * gP.fontSize()), + (/^((?!chrome|android).)*safari/i.test(navigator.userAgent) || o) && + (e = Math.ceil(e)), + (document.documentMode || /Edge/.test(navigator.userAgent)) && (e += 1), + (pP.style.width = ''.concat(e, 'px')), + (pP.style.height = 'auto'), + (pP.style.height = ''.concat(pP.scrollHeight + gP.fontSize(), 'px'))) + }), + window && + setTimeout(function () { + window.addEventListener('click', LP) + }) + })(o, e, n, m, g)), + function () { + n && o && TP() + } + ) + }, + [o], + ), + he.createElement( + lP, + { + className: 'FIE_text-tool-options', + annotation: t, + updateAnnotation: r, + morePoppableOptionsPrepended: c ? [] : PP, + moreOptionsPopupComponentsObj: c ? {} : _P, + t: s, + }, + Array.isArray(u) && + 1 < u.length && + he.createElement( + bP, + { + className: 'FIE_text-font-family-option', + onChange: h, + value: t.fontFamily, + placeholder: s('fontFamily'), + size: 'sm', + }, + u.map(function () { + var e, + t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : '' + return he.createElement( + YE, + { + className: 'FIE_text-font-family-item', + key: null != (e = t.value) ? e : t, + value: null != (e = t.value) ? e : t, + }, + null != (e = t.label) ? e : t, + ) + }), + ), + he.createElement(wP, { + className: 'FIE_text-size-option', + value: t.fontSize || '', + name: 'fontSize', + onChange: f, + inputMode: 'numeric', + type: 'number', + size: 'sm', + placeholder: s('size'), + }), + !c && + he.createElement( + he.Fragment, + null, + he.createElement( + $S, + { + className: 'FIE_text-bold-option', + 'aria-selected': (t.fontStyle || '').includes('bold'), + onClick: function () { + return p('bold') + }, + }, + he.createElement(MS, null), + ), + he.createElement( + $S, + { + className: 'FIE_text-italic-option', + 'aria-selected': (t.fontStyle || '').includes('italic'), + onClick: function () { + return p('italic') + }, + }, + he.createElement(DS, null), + ), + ), + e, + ) + ) + } + + function cP(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_image-tool-button', + id: Av.IMAGE, + label: e('imageTool'), + Icon: zE, + onClick: t, + isSelected: n, + }) + } + + function uP(e) { + var t = e.image, + n = e.saveImage, + r = e.children + e = e.t + return he.createElement( + lP, + { + className: 'FIE_image-tool-options', + annotation: t, + updateAnnotation: n, + t: e, + hideFillOption: !0, + }, + r, + ) + } + + function dP(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_rect-tool-button', + id: Av.RECT, + label: e('rectangleTool'), + Icon: RP, + onClick: t, + isSelected: n, + }) + } + + function fP(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_ellipse-tool-button', + id: Av.ELLIPSE, + label: e('ellipseTool'), + Icon: ME, + onClick: t, + isSelected: n, + }) + } + + function hP(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_pen-tool-button', + id: Av.PEN, + label: e('penTool'), + Icon: HP, + onClick: t, + isSelected: n, + }) + } + + lP.defaultProps = { + children: void 0, + morePoppableOptionsPrepended: [], + moreOptionsPopupComponentsObj: {}, + morePoppableOptionsAppended: [], + hideFillOption: !1, + hidePositionField: !1, + className: void 0, + } + var pP, + gP, + mP, + vP, + yP, + bP = fe(Sk).withConfig({componentId: 'sc-1cwdnjz-0'})(['width:88px;margin:0 4px;']), + wP = fe(Pk).withConfig({componentId: 'sc-1cwdnjz-1'})(['width:70px;margin:0 4px;']), + CP = ['color', 'size'], + xP = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, CP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M38 1.5C38 0.809644 37.4404 0.25 36.75 0.25H9.25C8.55964 0.25 8 0.809644 8 1.5C8 2.19036 8.55964 2.75 9.25 2.75H36.75C37.4404 2.75 38 2.19036 38 1.5Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 14C45.5 13.3096 44.9404 12.75 44.25 12.75H1.75C1.05964 12.75 0.5 13.3096 0.5 14C0.5 14.6904 1.05964 15.25 1.75 15.25H44.25C44.9404 15.25 45.5 14.6904 45.5 14Z', + fill: n, + }), + he.createElement('path', { + d: 'M36.75 25.25C37.4404 25.25 38 25.8096 38 26.5C38 27.1904 37.4404 27.75 36.75 27.75H9.25C8.55964 27.75 8 27.1904 8 26.5C8 25.8096 8.55964 25.25 9.25 25.25H36.75Z', + fill: n, + }), + ) + }), + EP = ['color', 'size'], + OP = + ((sv = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, EP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M4.29986 0.991788C4.78802 0.503633 5.57947 0.503633 6.06763 0.991788L9.367 4.29116C9.85516 4.77932 9.85516 5.57077 9.367 6.05893C8.87885 6.54708 8.08739 6.54708 7.59924 6.05893L6.43374 4.89344V34.0829L7.59924 32.9174C8.08739 32.4293 8.87885 32.4293 9.367 32.9174C9.85516 33.4056 9.85516 34.197 9.367 34.6852L6.06763 37.9846C5.8332 38.219 5.51524 38.3507 5.18371 38.3507C4.85217 38.3507 4.53422 38.219 4.29981 37.9845L1.00084 34.6851C0.512712 34.1969 0.512761 33.4055 1.00095 32.9174C1.48913 32.4292 2.28059 32.4293 2.76871 32.9175L3.93374 34.0827V4.89344L2.76825 6.05893C2.2801 6.54708 1.48864 6.54708 1.00049 6.05893C0.51233 5.57077 0.51233 4.77932 1.00049 4.29116L4.29986 0.991788ZM13.1588 8.34109V1.49725H46.3156V8.34102H43.398V7.19776C43.398 5.54595 42.0562 4.20442 40.4047 4.20442H31.8516V26.0992C31.8516 28.1387 33.5088 29.7957 35.5481 29.7957H36.5137V32.4599H23.01V29.7957H23.9756C26.0151 29.7957 27.6721 28.1387 27.6721 26.0992V4.20448H19.0697C17.418 4.20448 16.0763 5.54604 16.0763 7.19783V8.34109H13.1588ZM46.9995 39.7088C47.4877 39.2207 47.4877 38.4292 46.9995 37.9411L43.7001 34.6417C43.212 34.1535 42.4205 34.1535 41.9324 34.6417C41.4442 35.1298 41.4442 35.9213 41.9324 36.4095L43.0979 37.5749L15.0832 37.5749L16.2484 36.4099C16.7366 35.9218 16.7366 35.1303 16.2485 34.6421C15.7604 34.154 14.9689 34.1539 14.4807 34.642L11.1814 37.941C10.9469 38.1754 10.8152 38.4934 10.8152 38.8249C10.8152 39.1564 10.9469 39.4744 11.1813 39.7088L14.4807 43.0082C14.9688 43.4964 15.7603 43.4964 16.2485 43.0082C16.7366 42.5201 16.7366 41.7286 16.2485 41.2404L15.083 40.0749L43.0979 40.0749L41.9324 41.2404C41.4442 41.7286 41.4442 42.5201 41.9324 43.0082C42.4205 43.4964 43.212 43.4964 43.7001 43.0082L46.9995 39.7088Z', + fill: n, + }), + ) + })), + ['color', 'size']), + SP = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, OP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M0 1.89453C0 1.20418 0.559644 0.644531 1.25 0.644531H28.75C29.4404 0.644531 30 1.20418 30 1.89453C30 2.58489 29.4404 3.14453 28.75 3.14453H1.25C0.559645 3.14453 0 2.58489 0 1.89453Z', + fill: n, + }), + he.createElement('path', { + d: 'M0 14.3945C0 13.7042 0.559644 13.1445 1.25 13.1445H43.75C44.4404 13.1445 45 13.7042 45 14.3945C45 15.0849 44.4404 15.6445 43.75 15.6445H1.25C0.559645 15.6445 0 15.0849 0 14.3945Z', + fill: n, + }), + he.createElement('path', { + d: 'M1.25 25.6445C0.559644 25.6445 0 26.2042 0 26.8945C0 27.5849 0.559645 28.1445 1.25 28.1445H28.75C29.4404 28.1445 30 27.5849 30 26.8945C30 26.2042 29.4404 25.6445 28.75 25.6445H1.25Z', + fill: n, + }), + ) + }), + kP = {transform: 'scaleX(-1)'}, + PP = [ + {titleKey: 'textAlignment', name: 'text-alignment', Icon: xP}, + {titleKey: 'textSpacings', name: 'text-spacings', Icon: sv}, + ], + _P = + (n((s = {}), 'text-alignment', function (e) { + function t(e) { + r({align: e}) + } + + var n = e.annotation, + r = e.updateAnnotation + e = n.align + return he.createElement( + US, + null, + he.createElement( + $S, + { + onClick: function () { + return t('left') + }, + 'aria-selected': 'left' === e, + }, + he.createElement(SP, null), + ), + he.createElement( + $S, + { + onClick: function () { + return t('center') + }, + 'aria-selected': 'center' === e, + }, + he.createElement(xP, null), + ), + he.createElement( + $S, + { + onClick: function () { + return t('right') + }, + 'aria-selected': 'right' === e, + }, + he.createElement(SP, {style: kP}), + ), + ) + }), + n(s, 'text-spacings', function (e) { + function t(e, t) { + i(n({}, e, Iw(t, 0, 100))) + } + + var r = e.annotation, + i = e.updateAnnotation, + o = ((e = e.t), r.letterSpacing) + r = r.lineHeight + return he.createElement( + US, + null, + he.createElement(Jb, null, e('letterSpacing')), + he.createElement(GC, { + annotation: 'px', + isActive: !!o, + onChange: function (e) { + return t('letterSpacing', e) + }, + value: o, + step: 1, + }), + he.createElement(Jb, null, e('lineHeight')), + he.createElement(GC, { + annotation: 'px', + isActive: !!r, + onChange: function (e) { + return t('lineHeight', e) + }, + value: r, + step: 1, + }), + ) + }), + s), + LP = function (e) { + e.target !== pP && ((e = pP.value), TP(), vP(e)) + }, + TP = function () { + pP && pP.remove(pP), + window && window.removeEventListener('click', LP), + gP && gP.show(), + mP && (mP.show(), mP.forceUpdate()), + 'function' == typeof yP && yP(), + (mP = pP = gP = null) + }, + jP = + ((cP.defaultProps = { + isSelected: !(sP.defaultProps = {children: null}), + }), + fe.input.withConfig({componentId: 'sc-h20emh-0'})([ + 'display:none;width:1px;height:1px;position:absolute;z-index:-1;', + ])), + IP = l.exports.forwardRef(function (e, t) { + return he.createElement(jP, Ip({type: 'file', ref: t}, e)) + }), + MP = ((uP.defaultProps = {children: null}), ['color', 'size']), + RP = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, MP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M42.4624 0H8.0874C3.77959 0 0.274902 3.50469 0.274902 7.8125V42.1875C0.274902 46.4953 3.77959 50 8.0874 50H42.4624C46.7702 50 50.2749 46.4953 50.2749 42.1875V7.8125C50.2749 3.50469 46.7702 0 42.4624 0ZM46.3687 42.1875C46.3687 44.3414 44.6163 46.0938 42.4624 46.0938H8.0874C5.9335 46.0938 4.18115 44.3414 4.18115 42.1875V7.8125C4.18115 5.65859 5.9335 3.90625 8.0874 3.90625H42.4624C44.6163 3.90625 46.3687 5.65859 46.3687 7.8125V42.1875Z', + fill: n, + }), + ) + }), + DP = ((dP.defaultProps = {isSelected: !1}), ['color', 'size']), + AP = + ((Qb = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, DP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M3 3H23V0.5H3C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V23H43V43H3V3Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 7.25076H43V5.50076C43 5.15718 42.9321 4.83576 42.8113 4.54446L45.1206 3.58682C45.3651 4.17636 45.5 4.82281 45.5 5.50076V7.25076Z', + fill: n, + }), + he.createElement('path', { + d: 'M24.75 0.500763V3.00076H28.25V0.500763H24.75Z', + fill: n, + }), + he.createElement('path', { + d: 'M31.75 0.500763V3.00076H35.25V0.500763H31.75Z', + fill: n, + }), + he.createElement('path', { + d: 'M38.75 0.500763V3.00076H40.5C40.8436 3.00076 41.165 3.06868 41.4563 3.18948L42.414 0.880166C41.8244 0.635694 41.178 0.500763 40.5 0.500763H38.75Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 10.7508H43V14.2508H45.5V10.7508Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 17.7508H43V21.2508H45.5V17.7508Z', + fill: n, + }), + ) + })), + [{titleKey: 'cornerRadius', name: 'corner-radius', Icon: Qb}]), + zP = n({}, 'corner-radius', function (e) { + var t = e.annotation, + n = e.updateAnnotation + ;(e = e.t), (t = t.cornerRadius) + return he.createElement( + US, + null, + he.createElement(Jb, null, e('cornerRadius')), + he.createElement(GC, { + annotation: 'px', + onChange: function (e) { + n({cornerRadius: Iw(e, 0, 150)}) + }, + value: t, + min: 0, + max: 150, + }), + ) + }), + NP = ((fP.defaultProps = {isSelected: !1}), ['color', 'size']), + HP = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, NP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M48.8326 38.9412H35.1306C32.0818 38.9412 29.6019 41.4211 29.6019 44.4698C29.6019 45.9278 28.4155 47.1142 26.9576 47.1142H5.80392C4.34557 47.1142 3.15958 45.9278 3.15958 44.4698V42.5446C3.15958 41.0873 4.34518 39.9014 5.8024 39.9006L9.61443 39.8987C9.61557 39.8987 9.6171 39.8983 9.61824 39.8983C9.66173 39.8983 9.70522 39.8956 9.74908 39.8918C9.76701 39.8903 9.78456 39.8872 9.80249 39.885C9.82118 39.8823 9.84026 39.8808 9.85895 39.8777L20.0385 38.1218C20.0438 38.1207 20.0488 38.1195 20.0537 38.1184C20.0697 38.1153 20.0854 38.1119 20.101 38.1084C20.1266 38.1027 20.1518 38.097 20.1766 38.0898C20.1941 38.0852 20.2117 38.0798 20.2292 38.0745C20.2525 38.0669 20.2757 38.0589 20.299 38.0501C20.3158 38.0436 20.333 38.0379 20.3497 38.031C20.3856 38.0158 20.4207 37.9997 20.4554 37.9818C20.4691 37.9746 20.4829 37.9662 20.4966 37.9585C20.521 37.9448 20.5451 37.9311 20.5687 37.9158C20.5832 37.9067 20.5977 37.8967 20.6122 37.8868C20.6351 37.8708 20.658 37.854 20.6801 37.8365C20.6919 37.8273 20.7041 37.8181 20.716 37.8082C20.7495 37.7804 20.7823 37.7514 20.8132 37.7201L46.5228 12.011C48.5846 9.94911 48.5846 6.59409 46.5228 4.53186L43.5381 1.54762C41.4763 -0.514601 38.1209 -0.514219 36.0591 1.54762L10.3499 27.2568C10.3186 27.2877 10.2896 27.3209 10.2614 27.3544C10.2519 27.3659 10.2427 27.3777 10.2336 27.3895C10.216 27.412 10.1992 27.4349 10.1832 27.4582C10.1733 27.4723 10.1634 27.4868 10.1542 27.5013C10.1393 27.5246 10.1256 27.5482 10.1122 27.5723C10.1035 27.5879 10.0943 27.6035 10.0859 27.6192C10.0691 27.6524 10.0539 27.6856 10.0394 27.7199C10.0321 27.737 10.026 27.755 10.0192 27.7725C10.0112 27.7947 10.0031 27.8172 9.9959 27.8397C9.99017 27.858 9.98483 27.8763 9.97987 27.8946C9.97339 27.9182 9.96767 27.9423 9.96233 27.9667C9.95851 27.9835 9.9547 28.0003 9.95164 28.017C9.9505 28.022 9.94936 28.0266 9.94859 28.0312L8.39868 37.0148L5.80087 37.0159C2.75369 37.0174 0.274902 39.4978 0.274902 42.5446V44.4698C0.274902 47.5185 2.75522 49.9989 5.80392 49.9989H26.9576C30.0063 49.9989 32.4866 47.5185 32.4866 44.4698C32.4866 43.0119 33.6726 41.8255 35.1306 41.8255H48.8326C49.6291 41.8255 50.2749 41.18 50.2749 40.3835C50.2749 39.5866 49.6291 38.9412 48.8326 38.9412ZM12.3179 31.2645L16.8055 35.7521L11.3825 36.6875L12.3179 31.2645ZM33.8316 7.85408L36.0037 10.0262L15.5814 30.4485L13.4093 28.2764L33.8316 7.85408ZM19.7932 34.6603L17.6211 32.4883L38.0438 12.0659L40.2159 14.238L19.7932 34.6603ZM38.0988 3.58696C39.036 2.65007 40.5608 2.65007 41.4984 3.58696L44.4827 6.57158C45.4199 7.50885 45.4199 9.03397 44.4827 9.97124L42.2553 12.1986L35.8714 5.81436L38.0988 3.58696Z', + fill: n, + }), + ) + }) + + function FP(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function BP(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? FP(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : FP(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function VP(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_line-tool-button', + id: Av.LINE, + label: e('lineTool'), + Icon: XP, + onClick: t, + isSelected: n, + }) + } + + function WP(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_arrow-tool-button', + id: Av.ARROW, + label: e('arrowTool'), + Icon: qP, + onClick: t, + isSelected: n, + }) + } + + function GP(e) { + var t = e.selectTool, + n = e.isSelected + e = e.t + return he.createElement(ow, { + className: 'FIE_polygon-tool-button', + id: Av.POLYGON, + label: e('polygonTool'), + Icon: KP, + onClick: t, + isSelected: n, + }) + } + + hP.defaultProps = {isSelected: !1} + var ZP = {passive: !0}, + UP = ['color', 'size'], + XP = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, UP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M40.1901 7.27549L7.59689 39.8687C6.83412 40.6315 6.83412 41.8681 7.59689 42.6308C8.35965 43.3936 9.59626 43.3936 10.359 42.6308L42.9522 10.0376C43.715 9.27486 43.715 8.03825 42.9522 7.27549C42.1895 6.51272 40.9529 6.51272 40.1901 7.27549Z', + fill: n, + }), + ) + }), + YP = ((VP.defaultProps = {isSelected: !1}), ['color', 'size']), + qP = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, YP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M1.04757 38.9503C0.437373 38.3401 0.437373 37.3508 1.04757 36.7406L33.9229 3.86697L23.8354 3.33584C22.9736 3.29047 22.3118 2.5551 22.3572 1.69335C22.4026 0.831601 23.138 0.169794 23.9997 0.215167L37.5909 0.930759C38.3892 0.972794 39.027 1.61063 39.0691 2.40894L39.7846 16.0001C39.83 16.8619 39.1682 17.5972 38.3065 17.6426C37.4447 17.688 36.7093 17.0262 36.664 16.1644L36.1328 6.07651L3.25728 38.9503C2.64708 39.5605 1.65776 39.5605 1.04757 38.9503Z', + fill: n, + }), + ) + }), + $P = ((WP.defaultProps = {isSelected: !1}), ['color', 'size']), + KP = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, $P) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M44.103 18.4866L24.0002 3.8811L3.89749 18.4866L11.5761 42.1188H36.4244L44.103 18.4866ZM25.8371 1.35293C24.7418 0.557164 23.2587 0.557162 22.1634 1.35292L2.06066 15.9584C0.96539 16.7542 0.507082 18.1647 0.925439 19.4523L8.604 43.0845C9.02236 44.372 10.2222 45.2438 11.5761 45.2438H36.4244C37.7782 45.2438 38.9781 44.372 39.3965 43.0845L47.075 19.4523C47.4934 18.1647 47.0351 16.7542 45.9398 15.9584L25.8371 1.35293Z', + fill: n, + }), + ) + }), + QP = ((GP.defaultProps = {isSelected: !1}), ['color', 'size']), + JP = + ((Yb = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, QP) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M23.0078 29.9668H25.835L24.7803 35.9727H27.4609L28.5156 29.9668H32.2363V27.4473H28.9551L29.6875 23.2871H33.3496V20.7383H30.1416L31.2109 14.6445H28.5303L27.4609 20.7383H24.6191L25.6885 14.6445H23.0225L21.9531 20.7383H18.1006V23.2871H21.499L20.7666 27.4473H17.002V29.9668H20.3271L19.2725 35.9727H21.9531L23.0078 29.9668ZM26.2744 27.4473H23.4473L24.165 23.2871H27.0068L26.2744 27.4473Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M23.5448 0.821147C24.421 0.184537 25.6075 0.184536 26.4837 0.821146L48.4803 16.8026C49.3565 17.4392 49.7231 18.5676 49.3885 19.5977L40.9865 45.4561C40.6518 46.4862 39.692 47.1836 38.6089 47.1836H11.4197C10.3366 47.1836 9.37672 46.4862 9.04204 45.4561L0.640107 19.5977C0.305422 18.5676 0.672067 17.4392 1.54829 16.8026L23.5448 0.821147ZM25.0143 2.84369L47.0108 18.8251L38.6089 44.6836H11.4197L3.01775 18.8251L25.0143 2.84369Z', + fill: n, + }), + ) + })), + [{titleKey: 'sides', name: 'sides-number', Icon: Yb}]), + e_ = n({}, 'sides-number', function (e) { + var t = e.annotation, + n = e.updateAnnotation + ;(e = e.t), (t = t.sides) + return he.createElement( + US, + null, + he.createElement(Jb, null, e('sides')), + he.createElement(GC, { + annotation: '', + onChange: function (e) { + n({sides: Iw(e, 3, 25)}) + }, + value: t, + min: 3, + max: 25, + }), + ) + }), + t_ = ['color', 'size'], + n_ = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, t_) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M40.5 20H38V12.5C38 5.6 32.4 0 25.5 0C18.6 0 13 5.6 13 12.5V20H10.5C9.1 20 8 21.1 8 22.5V47.5C8 48.9 9.1 50 10.5 50H40.5C41.9 50 43 48.9 43 47.5V22.5C43 21.1 41.9 20 40.5 20ZM15.5 12.5C15.5 7 20 2.5 25.5 2.5C31 2.5 35.5 7 35.5 12.5V20H15.5V12.5ZM40.5 47.5H10.5V22.5H40.5V47.5Z', + fill: n, + }), + he.createElement('path', { + d: 'M24.3 37.3V41.3H26.8V37.3C28.3 36.8 29.3 35.4 29.3 33.8C29.3 31.7 27.6 30 25.5 30C23.4 30 21.7 31.7 21.7 33.8C21.8 35.4 22.8 36.8 24.3 37.3ZM25.5 32.5C26.2 32.5 26.8 33.1 26.8 33.8C26.8 34.5 26.2 35.1 25.5 35.1C24.8 35.1 24.2 34.5 24.2 33.8C24.3 33.1 24.8 32.5 25.5 32.5Z', + fill: n, + }), + ) + }), + r_ = ['color', 'size'], + i_ = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, r_) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M36.2754 7.5C34.2754 3.1 29.8754 0 24.7754 0C17.8754 0 12.2754 5.6 12.2754 12.5V20H9.77539C8.37539 20 7.27539 21.1 7.27539 22.5V47.5C7.27539 48.9 8.37539 50 9.77539 50H39.7754C41.1754 50 42.2754 48.9 42.2754 47.5V22.5C42.2754 21.1 41.1754 20 39.7754 20H14.7754V12.5C14.7754 7 19.2754 2.5 24.7754 2.5C28.4754 2.5 31.7754 4.5 33.4754 7.6L36.2754 7.5ZM39.7754 47.5H9.77539V22.5H39.7754V47.5Z', + fill: n, + }), + he.createElement('path', { + d: 'M24.7754 30C22.6754 30 20.9754 31.7 20.9754 33.7C20.9754 35.3 21.9754 36.7 23.4754 37.2V41.2H25.9754V37.2C27.4754 36.7 28.4754 35.3 28.4754 33.7C28.5754 31.7 26.8754 30 24.7754 30ZM24.7754 35C24.0754 35 23.4754 34.4 23.4754 33.7C23.4754 33 24.0754 32.4 24.7754 32.4C25.4754 32.4 25.9754 33 25.9754 33.7C25.9754 34.4 25.4754 35 24.7754 35Z', + fill: n, + }), + ) + }) + + function o_(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function a_(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? o_(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : o_(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function l_(e, t, n, r) { + var i = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 0 + return e.width && e.height + ? e + : ((t = vC(t, n, r)), + (n = yC(t.width, t.height, i)), + e.width || e.height + ? {width: e.width || n.width, height: e.height || n.height} + : (n.width && n.height && n) || a_(a_({}, r), yC(r.width, r.height, i))) + } + + function s_(e) { + function t(e) { + var t, + o = (e = e.target).name, + f = ((e = e.value), yC(l.width, l.height, d)), + h = ((e = n({}, o, Iw(e, 1))), 'height' === o), + p = h ? 'width' : 'height' + ;(null != (t = i.ratioUnlocked) ? t : s.ratioUnlocked) || + ((t = f.width / f.height), (e[p] = h ? Math.round(e[o] * t) : Math.round(e[o] / t))), + (e[o] === s[o] && e[p] === s[p]) || + ('function' == typeof r + ? r(e) + : (a({type: XL, payload: e}), + (s.width && s.height) || + ((f = (u.width && u.height && u) || c), + a({type: kL, payload: {factor: sE(f, e)}})))) + } + + var r = e.onChange, + i = e.currentSize, + o = e.hideResetButton, + a = ((e = e.alignLeft), (h = xw()).dispatch), + l = h.originalImage, + s = h.resize, + c = h.shownImageDimensions, + u = (f = h.adjustments).crop, + d = void 0 === (f = f.rotation) ? 0 : f, + f = h.theme, + h = h.t, + p = (!s.width && !s.height) || (l.width === s.width && l.height === s.height), + g = l_(((i.width || i.height) && i) || s, u, c, l, d), + m = s.manualChangeDisabled + return he.createElement( + m_, + {className: 'FIE_resize-tool-options', alignLeft: e}, + he.createElement(v_, { + className: 'FIE_resize-width-option', + value: g.width, + name: 'width', + onChange: m ? void 0 : t, + inputMode: 'numeric', + title: h('resizeWidthTitle'), + type: 'number', + size: 'sm', + placeholder: 'Width', + noLeftMargin: e, + disabled: m, + }), + he.createElement(b_, {className: 'FIE_resize-x-label'}, 'x'), + he.createElement(v_, { + className: 'FIE_resize-height-option', + value: g.height, + name: 'height', + onChange: m ? void 0 : t, + inputMode: 'numeric', + title: h('resizeHeightTitle'), + type: 'number', + size: 'sm', + placeholder: 'Height', + disabled: m, + }), + he.createElement( + y_, + { + className: 'FIE_resize-ratio-locker', + title: h('toggleRatioLockTitle'), + onClick: m + ? void 0 + : function () { + return 'function' == typeof r + ? void r({ratioUnlocked: !i.ratioUnlocked}) + : void a({ + type: XL, + payload: {ratioUnlocked: !s.ratioUnlocked}, + }) + }, + color: 'link', + size: 'sm', + disabled: m, + }, + i.ratioUnlocked || s.ratioUnlocked + ? he.createElement(i_, {color: f.palette['icons-secondary']}) + : he.createElement(n_, {color: f.palette['icons-secondary']}), + ), + !o && + he.createElement( + PE, + { + className: 'FIE_resize-reset-button', + size: 'sm', + onClick: + p || m + ? void 0 + : function () { + a({ + type: XL, + payload: {width: null, height: null, ratioUnlocked: !1}, + }) + var e = (u.width && u.height && u) || c + a({type: kL, payload: {factor: sE(e, e)}}) + }, + disabled: p || m, + title: h('resetSize'), + }, + h('reset'), + ), + ) + } + + function c_(e) { + function t(e) { + P_ && (e.stopPropagation(), m(e.currentTarget)) + } + + function n() { + P_ && m(null) + } + + var r = e.label, + i = e.onClick, + o = e.title, + a = e.color, + s = e.menuFromBtn, + c = e.menuItems, + u = void 0 === (u = e.menuPosition) ? 'bottom' : u, + d = e.arrowColor, + f = void 0 !== (f = e.disabled) && f, + h = e.className, + p = e.menuStyle, + g = ((e = e.wrapperStyle), (v = jp(l.exports.useState(null), 2))[0]), + m = v[1], + v = + (l.exports.useEffect(function () { + return ( + (P_ = !0), + function () { + P_ = !1 + } + ) + }, []), + 0 < c.length) + return he.createElement( + he.Fragment, + null, + he.createElement( + O_, + { + className: ''.concat(h, '-wrapper'), + onClick: f + ? void 0 + : function (e) { + s && t(e), 'function' == typeof i && i() + }, + style: e, + }, + he.createElement( + S_, + { + className: ''.concat(h, '-button'), + color: a, + size: 'md', + title: o, + keepBorderRadius: !v, + disabled: f, + }, + r, + ), + v && + he.createElement( + k_, + { + className: ''.concat(h, '-menu-opener'), + color: a, + size: 'md', + onClick: s || f ? void 0 : t, + disabled: f, + }, + he.createElement(E_, {color: d}), + ), + ), + v && + he.createElement( + cE, + { + className: ''.concat(h, '-menu'), + anchorEl: g, + onClose: n, + open: !0, + style: p, + position: u, + }, + c.map(function (e) { + return ( + e && + he.createElement( + YE, + { + className: ''.concat(h, '-menu-item'), + key: e.key, + active: e.isActive, + onClick: function () { + var t + 'function' == typeof (t = e.onClick) && t(), n() + }, + size: 'md', + }, + e.icon && + he.createElement( + $E, + {size: 'md'}, + 'string' == typeof e.icon + ? he.createElement('span', { + dangerouslySetInnerHTML: {__html: e.icon}, + }) + : he.createElement(e.icon, null), + ), + he.createElement(QE, null, e.label), + ) + ) + }), + ), + ) + } + + function u_(e) { + function t(e) { + n(e.currentTarget.children[0]) + } + + var n = e.selectWatermark, + r = ((e = e.style), (a = xw()).config), + i = a.annotations, + o = l.exports.useMemo( + function () { + var e + return null == (e = (i[Mv] || {}).image) ? void 0 : e.src + }, + [i[Mv]], + ), + a = (r[Av.WATERMARK] || {}).gallery + return 0 === (r = void 0 === a ? [] : a).length + ? null + : he.createElement( + XO, + {className: 'FIE_watermark-gallery', style: e}, + r.map(function (e) { + return he.createElement( + T_, + { + className: 'FIE_watermark-selected-item', + onClick: t, + key: e, + 'aria-selected': e === o, + }, + he.createElement('img', { + src: e, + alt: e, + crossOrigin: 'Anonymous', + draggable: !1, + }), + ) + }), + ) + } + + function d_(e) { + var t = e.watermark, + n = e.saveWatermark, + r = ((e = e.t), (o = jp(l.exports.useState(null), 2))[0]), + i = o[1], + o = t.padding + return he.createElement( + he.Fragment, + null, + he.createElement( + $S, + { + className: 'FIE_watermark-padding-triggerer', + title: e('padding'), + onClick: function (e) { + i(e.currentTarget) + }, + }, + he.createElement(I_, {size: 18}), + ), + he.createElement( + cE, + { + className: 'FIE_watermark-padding-popup', + anchorEl: r, + open: !!r, + onClose: function () { + i(null) + }, + position: 'top', + }, + he.createElement( + ZS, + null, + he.createElement( + US, + null, + he.createElement(Jb, null, e('padding')), + he.createElement(GC, { + annotation: 'px', + onChange: function (e) { + n({padding: Iw(e, 0, 100)}) + }, + value: o, + }), + ), + ), + ), + ) + } + + n((RC = {}), mE.Xs, Bd(['padding:6px;'])), + n(RC, mE.Sm, Bd(['padding:8px;'])), + n(RC, mE.Md, Bd(['padding:8px;'])), + n(RC, mE.Lg, Bd(['padding:10px;'])), + n(RC, mE.Xl, Bd(['padding:11px;'])) + var f_ = RC, + h_ = Wh({ + IconButton: fe(SE.Button) + .attrs({className: Fh('IconButton', 'root')}) + .withConfig({componentId: 'sc-10edh45-0'})(function (e) { + var t = e.square + e = e.size + return Bd(['', ''], void 0 !== t && t && f_[void 0 === e ? mE.Md : e]) + }), + }), + p_ = ['children'], + g_ = + ((DC = Bh(function (e, t) { + var n = e.children + e = Yc(e, p_) + return he.createElement( + h_.IconButton, + Ip({}, e, {ref: t}), + n && + ('function' == typeof n + ? n({ + size: (function (e, t) { + switch (e) { + case mE.Xl: + return t ? 18 : 16 + case mE.Lg: + case mE.Md: + return t ? 16 : 14 + default: + return dE(e) + } + })(e.size, e.square), + }) + : n), + ) + })), + (DC.defaultProps = {size: mE.Md, color: gE.Secondary, square: !1}), + (DC.propTypes = { + children: on.oneOfType([on.node, on.func]).isRequired, + size: on.oneOf(Vh(mE)), + color: on.oneOf(Vh(gE)), + square: on.bool, + }), + DC), + m_ = fe.div.withConfig({componentId: 'sc-17otqpz-0'})( + ['display:flex;justify-content:', ';align-items:center;flex-wrap:wrap;'], + function (e) { + return e.alignLeft ? 'left' : 'center' + }, + ), + v_ = fe(Pk).withConfig({componentId: 'sc-17otqpz-1'})( + ['width:70px;height:24px;margin:', ';'], + function (e) { + return e.noLeftMargin ? '8px 8px 8px 0' : '8px' + }, + ), + y_ = fe(g_).withConfig({componentId: 'sc-17otqpz-2'})(['margin-right:16px;']), + b_ = fe(Jb).withConfig({componentId: 'sc-17otqpz-3'})(['font-size:13px;line-height:15px;']), + w_ = + ((s_.defaultProps = { + onChange: void 0, + currentSize: {}, + hideResetButton: !1, + alignLeft: !1, + }), + ['color', 'size']), + C_ = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, w_) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M17.5911 1.54582C16.7075 0.680052 15.2937 0.680014 14.4101 1.54573L4.05296 11.6925C3.15635 12.5709 3.14159 14.0098 4.01999 14.9064C4.89839 15.8031 6.33733 15.8178 7.23394 14.9394L13.7278 8.57741V30.4419C13.7278 31.6971 14.7454 32.7147 16.0006 32.7147C17.2558 32.7147 18.2733 31.6971 18.2733 30.4419V8.57782L24.766 14.9393C25.6625 15.8178 27.1015 15.8031 27.9799 14.9065C28.8584 14.01 28.8437 12.571 27.9471 11.6926L17.5911 1.54582Z', + fill: n, + }), + he.createElement('path', { + d: 'M2.78827 36.5543C1.53308 36.5543 0.515541 37.5719 0.515541 38.827C0.515541 40.0822 1.53308 41.0998 2.78827 41.0998H29.1519C30.4071 41.0998 31.4246 40.0822 31.4246 38.827C31.4246 37.5719 30.4071 36.5543 29.1519 36.5543H2.78827Z', + fill: n, + }), + ) + }), + x_ = ['color', 'size'], + E_ = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, x_) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M26.907 0.710361C25.7493 -0.293042 23.9445 -0.225257 22.8758 0.861763L0.931376 23.1832C-0.0773525 24.2092 -0.0773525 25.7908 0.931376 26.8168L22.8758 49.1383C23.9445 50.2253 25.7493 50.2931 26.907 49.2897C28.0647 48.2863 28.1369 46.5916 27.0683 45.5046L6.90997 25L27.0683 4.49541C28.1369 3.40839 28.0647 1.71376 26.907 0.710361Z', + fill: n, + }), + ) + }), + O_ = fe.div.withConfig({componentId: 'sc-m9ezm7-0'})([ + 'height:22px;display:flex;align-items:center;margin-right:4px;', + ]), + S_ = fe(PE).withConfig({componentId: 'sc-m9ezm7-1'})( + [ + 'height:100%;padding:4px 8px;flex-grow:1;justify-content:center;align-items:center;', + ';span{font-size:12px !important;line-height:14px !important;}', + ], + function (e) { + return e.keepBorderRadius ? '' : 'border-top-right-radius: 0; border-bottom-right-radius: 0' + }, + ), + k_ = fe(g_).withConfig({componentId: 'sc-m9ezm7-2'})([ + 'border-top-left-radius:0;border-bottom-left-radius:0;margin-left:1px;height:100%;padding:4px 8px;svg{transform:rotate(-90deg);width:10px;margin-top:-4px;}', + ]), + P_ = !0, + __ = + ((c_.defaultProps = { + title: '', + color: 'primary', + menuFromBtn: !1, + menuPosition: 'bottom', + onClick: void 0, + disabled: !1, + arrowColor: void 0, + menuStyle: void 0, + wrapperStyle: void 0, + }), + fe.div.withConfig({componentId: 'sc-fvaj5j-0'})( + [ + 'display:flex;align-items:center;justify-content:center;flex-wrap:wrap;overflow:hidden;', + ';', + ], + function (e) { + return e.noWrap ? 'margin-left: 4px; flex-wrap: nowrap;' : '' + }, + )), + L_ = fe.div.withConfig({componentId: 'sc-fvaj5j-1'})(['margin-bottom:8px;']), + T_ = fe.div.withConfig({componentId: 'sc-fvaj5j-2'})(function (e) { + return ( + (e = e.theme), + '\n padding: 4px;\n border: 1px solid ' + .concat( + e.palette['borders-primary'], + ';\n width: fit-content;\n height: 32px;\n border-radius: 2px;\n overflow: hidden;\n cursor: pointer;\n\n :hover {\n background: ', + ) + .concat( + e.palette['bg-primary-active'], + ";\n }\n\n &[aria-selected='true'] {\n background: ", + ) + .concat(e.palette['bg-primary-active'], ';\n border-color: ') + .concat( + e.palette['accent-primary-active'], + ';\n }\n\n img {\n max-width: 100%;\n max-height: 100%;\n }\n ', + ) + ) + }), + j_ = ((u_.defaultProps = {style: void 0}), ['color', 'size']), + I_ = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, j_) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M13.8334 9.19949C13.8334 8.50914 14.3931 7.94949 15.0834 7.94949H31.3334C32.0238 7.94949 32.5834 8.50914 32.5834 9.19949C32.5834 9.88985 32.0238 10.4495 31.3334 10.4495H15.0834C14.3931 10.4495 13.8334 9.88985 13.8334 9.19949Z', + fill: n, + }), + he.createElement('path', { + d: 'M15.0834 35.5496C14.3931 35.5496 13.8334 36.1092 13.8334 36.7996C13.8334 37.4899 14.3931 38.0496 15.0834 38.0496H31.3334C32.0238 38.0496 32.5834 37.4899 32.5834 36.7996C32.5834 36.1092 32.0238 35.5496 31.3334 35.5496H15.0834Z', + fill: n, + }), + he.createElement('path', { + d: 'M36.8001 13.4163C37.4905 13.4163 38.0501 13.9759 38.0501 14.6663V30.9163C38.0501 31.6066 37.4905 32.1663 36.8001 32.1663C36.1098 32.1663 35.5501 31.6066 35.5501 30.9163V14.6663C35.5501 13.9759 36.1098 13.4163 36.8001 13.4163Z', + fill: n, + }), + he.createElement('path', { + d: 'M10.45 14.6663C10.45 13.9759 9.89038 13.4163 9.20003 13.4163C8.50967 13.4163 7.95003 13.9759 7.95003 14.6663L7.95003 30.9163C7.95003 31.6066 8.50967 32.1663 9.20003 32.1663C9.89038 32.1663 10.45 31.6066 10.45 30.9163L10.45 14.6663Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M3 0.5C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V3C45.5 1.61929 44.3807 0.5 43 0.5H3ZM43 3H3V43H43V3Z', + fill: n, + }), + ) + }) + + function M_(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function R_(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? M_(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : M_(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var D_ = 'watermark', + A_ = + (n((bp = {}), Av.CROP, {id: Av.CROP, Item: kO}), + n(bp, Av.ROTATE, { + id: Av.ROTATE, + Item: LO, + ItemOptions: function () { + var e = (r = xw()).dispatch, + t = void 0 === (t = r.adjustments.rotation) ? 0 : t, + n = void 0 === (r = r.resize) ? {} : r, + r = $w(function (t, r) { + r = Iw(r, -180, 180) + e({type: wL, payload: {rotation: r}}), + n.width && + n.height && + ((r = yC(n.width, n.height, r)), + e({ + type: XL, + payload: {width: r.width, height: r.height}, + })) + }, 20) + return he.createElement(QO, { + className: 'FIE_rotate-slider', + min: -180, + max: 180, + value: t, + angle: 60, + onChange: r, + style: {marginBottom: 20}, + }) + }, + }), + n(bp, Av.FLIP_X, {id: Av.FLIP_X, Item: PO}), + n(bp, Av.FLIP_Y, {id: Av.FLIP_Y, Item: _O}), + n(bp, Av.BRIGHTNESS, { + id: Av.BRIGHTNESS, + Item: Zb, + ItemOptions: function () { + var e = jp(Sw(av.Filters.Brighten, ZC), 2), + t = e[0], + n = e[1] + return he.createElement(GC, { + className: 'FIE_brightness-option', + min: -1, + step: 0.05, + max: 1, + value: null != (e = t.brightness) ? e : ZC.brightness, + onChange: function (e) { + n({brightness: Iw(e, -1, 1)}) + }, + style: UC, + }) + }, + }), + n(bp, Av.CONTRAST, { + id: Av.CONTRAST, + Item: WO, + ItemOptions: function () { + var e = jp(Sw(av.Filters.Contrast, tS), 2), + t = e[0], + n = e[1] + return he.createElement(GC, { + className: 'FIE_contrast-option', + min: -100, + max: 100, + value: null != (e = t.contrast) ? e : tS.contrast, + onChange: function (e) { + n({contrast: Iw(e, -100, 100)}) + }, + style: nS, + }) + }, + }), + n(bp, Av.HSV, { + id: Av.HSV, + Item: GO, + ItemOptions: function (e) { + function t(e, t) { + o(n({}, e, +t)) + } + + e = e.t + var r = jp(Sw(av.Filters.HSV, aS), 2), + i = r[0], + o = r[1] + return he.createElement( + he.Fragment, + null, + he.createElement( + oS, + {className: 'FIE_hue-option-wrapper'}, + he.createElement(Jb, {className: 'FIE_hue-option-label'}, e('hue')), + he.createElement(GC, { + className: 'FIE_hue-option', + min: 0, + step: 1, + max: 259, + value: null != (r = i.hue) ? r : aS.hue, + onChange: function (e) { + return t('hue', e) + }, + style: lS, + }), + ), + he.createElement( + oS, + {className: 'FIE_saturation-option-wrapper'}, + he.createElement(Jb, {className: 'FIE_saturation-option-label'}, e('saturation')), + he.createElement(GC, { + className: 'FIE_saturation-option', + min: -2, + step: 0.5, + max: 10, + value: null != (r = i.saturation) ? r : aS.saturation, + onChange: function (e) { + return t('saturation', e) + }, + style: lS, + }), + ), + he.createElement( + oS, + {className: 'FIE_value-option-wrapper'}, + he.createElement(Jb, {className: 'FIE_value-option-label'}, e('value')), + he.createElement(GC, { + className: 'FIE_value-option', + min: -2, + step: 0.1, + max: 2, + value: null != (r = i.value) ? r : aS.value, + onChange: function (e) { + return t('value', e) + }, + style: lS, + }), + ), + ) + }, + hideFn: function (e) { + return e.useCloudimage + }, + }), + n(bp, Av.BLUR, { + id: Av.BLUR, + Item: ZO, + ItemOptions: function () { + var e = jp(Sw(av.Filters.Blur, uS), 2), + t = e[0], + n = e[1] + return he.createElement(GC, { + className: 'FIE_blur-option', + min: 0, + max: 100, + value: null != (e = t.blurRadius) ? e : uS.blurRadius, + onChange: function (e) { + n({blurRadius: Iw(e, 0, 100)}) + }, + style: dS, + }) + }, + }), + n(bp, Av.WARMTH, { + id: Av.WARMTH, + Item: UO, + ItemOptions: function () { + var e = jp(Sw(Eb, pS), 2), + t = e[0], + n = e[1] + return he.createElement(GC, { + className: 'FIE_warmth-option', + min: 0, + max: 200, + value: null != (e = t.warmth) ? e : pS.warmth, + onChange: function (e) { + n({warmth: Iw(e, 0, 200)}) + }, + style: gS, + }) + }, + hideFn: function (e) { + return e.useCloudimage + }, + }), + n(bp, Av.FILTERS, { + id: Av.FILTERS, + Item: function () { + var e = xw().originalImage + ;(i = xw()), + (t = i.dispatch), + (n = i.filter), + (r = l.exports.useCallback(function (e) { + t({type: Kv, payload: {filter: e}}) + }, [])) + var t, + n, + r, + i = jp( + l.exports.useMemo( + function () { + return [n, r] + }, + [n], + ), + 2, + ), + o = i[0], + a = i[1] + return he.createElement( + XO, + {className: 'FIE_filters', style: _S}, + PS.map(function (t) { + return he.createElement(kS, { + key: t.label, + filterLabel: t.label, + filterFn: t.filterFn, + applyFilter: a, + isActive: o === t.filterFn, + image: e, + }) + }), + ) + }, + }), + n(bp, Av.WATERMARK, { + id: Av.WATERMARK, + Item: function () { + function e(e) { + var t = e.width / e.height, + n = {}, + r = + (m < v + ? ((r = (0.33 * v) / e.height), + (n.height = e.height * r), + (n.width = n.height * t)) + : ((r = (0.33 * m) / e.width), (n.width = e.width * r), (n.height = n.width / t)), + R_( + R_(R_(R_({}, a.annotationsCommon), a[Av.IMAGE]), n), + {}, + { + padding: 1, + image: e, + x: y + m / 2 - n.width / 2, + y: b + v / 2 - n.height / 2, + id: D_, + name: Av.IMAGE, + replaceCurrent: !0, + }, + )) + s({type: $_, payload: r}) + } + + function t(e) { + s({ + type: $_, + payload: R_(R_({}, 'function' == typeof e ? e(g) : e), {}, {id: D_}), + }) + } + + function n() { + return he.createElement(d_, { + watermark: g, + saveWatermark: t, + t: c, + }) + } + + var r = (u = xw()).annotations, + i = u.shownImageDimensions, + o = u.selectionsIds, + a = u.config, + s = u.dispatch, + c = u.t, + u = void 0 === (u = u.adjustments.crop) ? {} : u, + d = uC(), + f = (w = jp(l.exports.useState(!1), 2))[0], + h = w[1], + p = l.exports.useRef(), + g = l.exports.useMemo( + function () { + return r[D_] + }, + [r[D_]], + ), + m = u.width || i.width, + v = u.height || i.height, + y = u.x || 0, + b = u.y || 0, + w = [ + !a.useCloudimage && { + key: 'upload-watermark', + label: c('uploadWatermark'), + icon: C_, + onClick: function () { + p.current && p.current.click() + }, + }, + { + key: 'add-text-watermark', + label: c('addWatermarkAsText'), + icon: jS, + onClick: function () { + var e = {height: 0.33 * v, width: 0.33 * m} + e = R_( + R_(R_(R_({}, a.annotationsCommon), a[Av.TEXT]), e), + {}, + { + padding: 1, + x: y + m / 2 - e.width / 2, + y: b + v / 2 - e.height / 2, + fill: '#000000', + id: D_, + name: Av.TEXT, + replaceCurrent: !0, + }, + ) + s({type: $_, payload: e}) + }, + }, + ] + return ( + l.exports.useEffect( + function () { + g && (s({type: oL}), s({type: nL, payload: {annotationId: 'watermark'}})) + }, + [g], + ), + l.exports.useEffect( + function () { + !g || + (0 !== o.length && o[0].id === D_) || + s({type: nL, payload: {annotationId: 'watermark'}}) + }, + [o], + ), + he.createElement( + 'div', + {className: 'FIE_watermark-tool-wrapper'}, + (null == g ? void 0 : g.name) === Av.TEXT && + he.createElement( + L_, + {className: 'FIE_watermark-options-wrapper'}, + he.createElement(sP, {text: g, saveText: t, t: c}, n()), + ), + (null == g ? void 0 : g.name) === Av.IMAGE && + he.createElement( + L_, + {className: 'FIE_watermark-options-wrapper'}, + he.createElement(uP, {image: g, saveImage: t, t: c}, n()), + ), + he.createElement( + __, + { + className: 'FIE_watermark-add-wrapper', + noWrap: null != g && g.name, + }, + he.createElement(c_, { + className: 'FIE_watermark-add', + color: 'secondary', + label: c('addWatermark'), + title: c('addWatermarkTitle'), + menuPosition: 'top', + menuItems: w, + menuFromBtn: !0, + }), + he.createElement(u_, { + selectWatermark: e, + style: d && null != g && g.name ? {width: '55%'} : void 0, + }), + he.createElement(IP, { + onChange: f + ? void 0 + : function (t) { + var n, r + t.target.files && + (h(!0), + (n = t.target.files[0]).type.startsWith('image/') && + (((r = new Image()).onload = function () { + e(r), URL.revokeObjectURL(n), h(!1) + }), + (r.onerror = function () { + var e + ;(e = c('uploadImageError')), + s({ + type: Nb, + payload: { + feedback: {message: e, status: Xv}, + }, + }), + h(!1) + }), + (r.src = URL.createObjectURL(n)))), + (t.target.value = '') + }, + disabled: f, + ref: p, + }), + ), + ) + ) + }, + }), + n(bp, Av.TEXT, { + id: Av.TEXT, + Item: qO, + ItemOptions: function (e) { + e = e.t + var t = (n = jp(nC({name: Av.TEXT}), 2))[0], + n = n[1] + return he.createElement(sP, {text: t, saveText: n, t: e}) + }, + }), + n(bp, Av.IMAGE, { + id: Av.IMAGE, + Item: cP, + ItemOptions: function () { + function e(e) { + ;(p.current += 1), p.current === e && ((p.current = 0), i(!1)) + } + + function t(e) { + s({type: Nb, payload: {feedback: {message: e, status: Xv}}}) + } + + var n, + r = (d = jp(l.exports.useState(), 2))[0], + i = d[1], + o = l.exports.useRef(), + a = (d = xw()).shownImageDimensions, + s = d.dispatch, + c = void 0 === (n = d.adjustments.crop) ? {} : n, + u = d.t, + d = (n = jp(nC({name: Av.IMAGE, opacity: 1}, !1), 3))[0], + f = n[1], + h = n[2], + p = l.exports.useRef(0) + return he.createElement( + uP, + {image: d, saveImage: f, t: u}, + he.createElement( + PE, + { + className: 'FIE_image-tool-add-option', + color: 'secondary', + onClick: r + ? void 0 + : function () { + o.current && o.current.click() + }, + disabled: r, + size: 'sm', + style: {maxHeight: 24}, + }, + u(r ? 'importing' : 'addImage'), + ), + he.createElement(IP, { + ref: o, + onChange: r + ? void 0 + : function (n) { + var r, o, l + n.target.files && + (i(!0), + (r = []), + (l = Array.from(n.target.files)), + (o = l.length), + l.forEach(function (n) { + var i + n.type.startsWith('image/') + ? (((i = new Image()).onload = function () { + var t, r, l, s, u, d + ;(t = i), + (r = c.width || a.width), + (l = c.height || a.height), + (s = c.x || 0), + (u = c.y || 0), + (d = Math.min( + 1, + r / (t.width + 0.15 * t.width), + l / (t.height + 0.15 * t.height), + )), + h({ + image: t, + x: s + r / 2 - (t.width * d) / 2, + y: u + l / 2 - (t.height * d) / 2, + width: t.width * d, + height: t.height * d, + }), + URL.revokeObjectURL(n), + e(o) + }), + (i.onerror = function () { + t(u('uploadImageError')), e(o) + }), + (i.src = URL.createObjectURL(n))) + : (r.push(n.name), e(o)) + }), + 0 < r.length && + ((l = 1 < r.length ? u('areNotImages') : u('isNotImage')), + t( + '' + .concat(r.join(', '), ' ') + .concat(l, ' ') + .concat(u('toBeUploaded'), '.'), + ))), + (n.target.value = '') + }, + disabled: r, + multiple: !0, + }), + ) + }, + }), + n(bp, Av.RECT, { + id: Av.RECT, + Item: dP, + ItemOptions: function (e) { + e = e.t + var t = (n = jp(nC({name: Av.RECT}), 2))[0], + n = n[1] + return he.createElement(lP, { + className: 'FIE_rect-tool-options', + moreOptionsPopupComponentsObj: zP, + morePoppableOptionsPrepended: AP, + annotation: t, + updateAnnotation: n, + t: e, + }) + }, + }), + n(bp, Av.POLYGON, { + id: Av.POLYGON, + Item: GP, + ItemOptions: function (e) { + e = e.t + var t = (n = jp(nC({name: Av.POLYGON}), 2))[0], + n = n[1] + return he.createElement(lP, { + className: 'FIE_polygon-tool-options', + morePoppableOptionsPrepended: JP, + moreOptionsPopupComponentsObj: e_, + annotation: t, + updateAnnotation: n, + t: e, + hidePositionField: !0, + }) + }, + }), + n(bp, Av.ELLIPSE, { + id: Av.ELLIPSE, + Item: fP, + ItemOptions: function (e) { + e = e.t + var t = (n = jp(nC({name: Av.ELLIPSE}), 2))[0], + n = n[1] + return he.createElement(lP, { + className: 'FIE_ellipse-tool-options', + annotation: t, + updateAnnotation: n, + t: e, + }) + }, + }), + n(bp, Av.PEN, { + id: Av.PEN, + Item: hP, + ItemOptions: function (e) { + e = e.t + var t, + n = (t = xw()).dispatch, + r = t.designLayer, + i = t.previewGroup, + o = (t = jp( + nC( + BP(BP(BP({}, (t = t.config).annotationsCommon), t[Av.PEN]), {}, {name: Av.PEN}), + !1, + ), + 3, + ))[0], + a = t[1], + s = t[2], + c = l.exports.useRef(null), + u = l.exports.useRef({points: [], moved: !1, id: ''}), + d = l.exports.useCallback(function () { + var e = kw(c.current.content) + return [ + (e = Pw(i, e)).offsetX - (r.attrs.xPadding || 0), + e.offsetY - (r.attrs.yPadding || 0), + ] + }, []), + f = l.exports.useCallback(function () { + u.current.moved + ? ((u.current.points = u.current.points.concat(d())), + n({ + type: $_, + payload: { + id: u.current.id, + points: u.current.points, + dismissHistory: !0, + }, + })) + : ((u.current = { + moved: !0, + id: Lw(Av.PEN), + points: [].concat(Hh(u.current.points), Hh(d())), + }), + s({ + id: u.current.id, + name: Av.PEN, + points: u.current.points, + })) + }, []), + h = l.exports.useCallback(function () { + u.current.id && n({type: nL, payload: {annotationId: u.current.id}}), + (u.current = null), + c.current.off('mousemove touchmove', f), + c.current.off('mouseleave touchcancel', h), + document.removeEventListener('mouseup', h, ZP), + document.removeEventListener('touchend', h, ZP), + document.removeEventListener('mouseleave', h, ZP), + document.removeEventListener('touchcancel', h, ZP) + }, []), + p = l.exports.useCallback(function (e) { + e.target.attrs.draggable || + (e.evt.preventDefault(), + (u.current = {points: d()}), + c.current.on('mousemove touchmove', f), + c.current.on('mouseleave touchcancel', h), + document.addEventListener('mouseup', h, ZP), + document.addEventListener('touchend', h, ZP), + document.addEventListener('mouseleave', h, ZP), + document.addEventListener('touchcancel', h, ZP)) + }, []) + return ( + l.exports.useEffect(function () { + return ( + (c.current = null == r ? void 0 : r.getStage()), + c.current && c.current.on('mousedown touchstart', p), + function () { + c.current && c.current.off('mousedown touchstart', p) + } + ) + }, []), + he.createElement(lP, { + className: 'FIE_pen-tool-options', + annotation: o, + updateAnnotation: a, + t: e, + hidePositionField: !0, + hideFillOption: !0, + }) + ) + }, + }), + n(bp, Av.LINE, { + id: Av.LINE, + Item: VP, + ItemOptions: function (e) { + e = e.t + var t = (n = jp(nC({name: Av.LINE}), 2))[0], + n = n[1] + return he.createElement(lP, { + className: 'FIE_line-tool-options', + annotation: t, + updateAnnotation: n, + t: e, + hidePositionField: !0, + hideFillOption: !0, + }) + }, + }), + n(bp, Av.ARROW, { + id: Av.ARROW, + Item: WP, + ItemOptions: function (e) { + e = e.t + var t = (n = jp(nC({name: Av.ARROW}), 2))[0], + n = n[1] + return he.createElement(lP, { + className: 'FIE_arrow-tool-options', + annotation: t, + updateAnnotation: n, + t: e, + hidePositionField: !0, + hideFillOption: !0, + }) + }, + }), + n(bp, Av.RESIZE, {id: Av.RESIZE, Item: s_}), + bp), + z_ = + (n((Zr = {}), Dv.ADJUST, [Av.CROP, Av.ROTATE, Av.FLIP_X, Av.FLIP_Y]), + n(Zr, Dv.FINETUNE, [Av.BRIGHTNESS, Av.CONTRAST, Av.HSV, Av.BLUR, Av.WARMTH]), + n(Zr, Dv.FILTERS, [Av.FILTERS]), + n(Zr, Dv.WATERMARK, [Av.WATERMARK]), + n(Zr, Dv.ANNOTATE, [ + Av.TEXT, + Av.IMAGE, + Av.RECT, + Av.ELLIPSE, + Av.POLYGON, + Av.PEN, + Av.LINE, + Av.ARROW, + ]), + n(Zr, Dv.RESIZE, [Av.RESIZE]), + Zr) + + function N_(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function H_(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? N_(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : N_(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var F_ = 'SELECT_TAB' + + function B_(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function V_(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? B_(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : B_(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var W_ = 'UNDO' + + function G_(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Z_(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? G_(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : G_(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var U_ = 'SET_FINETUNE', + X_ = ['dismissHistory', 'replaceCurrent'] + + function Y_(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function q_(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? Y_(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : Y_(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var $_ = 'SET_ANNOTATION' + + function K_(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function Q_(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? K_(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : K_(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var J_ = 'CHANGE_POINTER_ICON' + + function eL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function tL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? eL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : eL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var nL = 'SELECT_ANNOTATION' + + function rL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function iL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? rL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : rL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var oL = 'CLEAR_ANNOTATIONS_SELECTIONS' + + function aL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function lL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? aL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : aL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var sL = 'TOGGLE_ORIGINAL_IMAGE_DISPLAY' + + function cL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function uL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? cL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : cL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var dL = 'SELECT_TOOL' + + function fL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function hL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? fL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : fL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var pL = 'TOGGLE_FLIP' + + function gL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function mL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? gL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : gL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var vL = 'SET_CROP' + + function yL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function bL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? yL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : yL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var wL = 'CHANGE_ROTATION' + + function CL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function xL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? CL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : CL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var EL = ['preparedDimensions'] + + function OL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function SL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? OL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : OL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var kL = 'ZOOM_CANVAS' + + function PL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function _L(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? PL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : PL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var LL = 'SET_CANVAS_SIZE' + + function TL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function jL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? TL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : TL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var IL = 'SET_ORIGINAL_IMAGE' + + function ML(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function RL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? ML(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ML(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var DL = 'SET_SHOWN_IMAGE_DIMENSIONS' + + function AL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function zL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? AL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : AL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var NL = 'REMOVE_ANNOTATIONS' + + function HL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function FL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? HL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : HL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var BL = 'DUPLICATE_ANNOTATIONS' + + function VL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function WL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? VL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : VL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var GL = 'ENABLE_TEXT_CONTENT_EDIT' + + function ZL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function UL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? ZL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ZL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var XL = 'SET_RESIZE' + + function YL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function qL(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? YL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : YL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var $L = 'SET_SAVED' + + function KL(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + var QL = function (t) { + var r = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, + i = !!(2 < arguments.length && void 0 !== arguments[2]) && arguments[2], + o = (function (e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? KL(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : KL(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + })({}, t) + return ( + Object.keys(r).forEach(function (n) { + var a = r[n] + void 0 !== a && + ('object' !== e(a) || null === a || Array.isArray(a) || !t[n] || 'object' !== e(t[n]) + ? (o[n] = + i && Array.isArray(o[n]) && Array.isArray(a) ? [].concat(Hh(o[n]), Hh(a)) : a) + : (o[n] = QL(t[n], a))) + }), + o + ) + }, + JL = 'UPDATE_STATE' + + function eT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function tT(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? eT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : eT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function nT(e, t) { + var n = e.x, + r = ((e = e.y), (t = (t * Math.PI) / 180), Math.cos(t)) + return {x: n * r - e * (t = Math.sin(t)), y: e * r + n * t} + } + + var rT = 'SET_LATEST_COLOR', + iT = + (n((kr = {}), IL, function (e, t) { + return jL( + jL({}, e), + {}, + { + feedback: {}, + originalImage: t.originalImage, + imgSrc: t.originalImage.src, + }, + ) + }), + n(kr, Nb, function (e, t) { + return zb(zb({}, e), {}, {isLoadingGlobally: !1, feedback: t.feedback || {}}) + }), + n(kr, Bb, function (e) { + return Fb(Fb({}, e), {}, {isLoadingGlobally: !0}) + }), + n(kr, ey, function (e) { + return Jv(Jv({}, e), {}, {isLoadingGlobally: !1}) + }), + n(kr, J_, function (e, t) { + return e.pointerCssIcon === t.pointerCssIcon + ? e + : Q_(Q_({}, e), {}, {pointerCssIcon: t.pointerCssIcon}) + }), + n(kr, nL, function (e, t) { + return 1 === e.selectionsIds.length && e.selectionsIds[0] === t.annotationId + ? e + : (t.multiple + ? (n = e.selectionsIds.filter(function (e) { + return e !== t.annotationId + })).length === e.selectionsIds.length && n.push(t.annotationId) + : (n = [t.annotationId]), + tL(tL({}, e), {}, {selectionsIds: n})) + var n + }), + n(kr, oL, function (e) { + return 0 === e.selectionsIds.length ? e : iL(iL({}, e), {}, {selectionsIds: []}) + }), + n(kr, sL, function (e, t) { + return lL(lL({}, e), {}, {isShowOriginalImage: t.isShow}) + }), + n(kr, F_, function (e, t) { + return t.tabId === e.tabId + ? e + : H_( + H_({}, e), + {}, + { + tabId: t.tabId, + toolId: z_[t.tabId][0], + selectionsIds: [], + pointerCssIcon: t.tabId === Dv.ANNOTATE ? Fv.DRAW : Fv.DEFAULT, + }, + ) + }), + n(kr, dL, function (e, t) { + return e.toolId === t.toolId + ? e + : uL( + uL({}, e), + {}, + { + toolId: t.toolId, + selectionsIds: t.keepSelections ? e.selectionsIds : [], + }, + ) + }), + n(kr, kL, function (e, t) { + var n, + r = Iw(parseFloat(t.factor).toFixed(2), 0.05, 55) + return (t = t.preparedDimensions + ? (t.preparedDimensions, Yc(t, EL)) + : (function (e, t, n, r) { + if (1 === e.factor) return {x: 0, y: 0, factor: 1} + var i = e.factor > t.factor, + o = (e.x - t.x || 0) / t.factor, + a = (e.y - t.y || 0) / t.factor + o = {x: e.x - o * e.factor, y: e.y - a * e.factor} + return ( + (i && 1 === t.factor) || + ((o.x = Math.min(0, Math.max(o.x, n * (1 - t.factor)))), + (o.y = Math.min(0, Math.max(o.y, r * (1 - t.factor))))), + e.factor < 1 && + ((a = n - n * e.factor), (i = r - r * e.factor), (o.x += a / 2), (o.y += i / 2)), + xL(xL({}, o), {}, {factor: e.factor}) + ) + })( + SL( + SL( + {}, + { + x: t.x || 0 === t.x ? (null != (n = t.x) ? n : e.zoom.x) : e.canvasWidth / 2, + y: t.y || 0 === t.y ? (null != (n = t.y) ? n : e.zoom.y) : e.canvasHeight / 2, + }, + ), + {}, + {factor: r}, + ), + e.zoom, + e.canvasWidth, + e.canvasHeight, + )).factor === e.zoom.factor && + t.x === e.zoom.x && + t.y === e.zoom.y + ? e + : SL(SL({}, e), {}, {zoom: SL(SL({}, e.zoom), t)}) + }), + n(kr, LL, function (e, t) { + if (e.canvasWidth === t.canvasWidth && e.canvasHeight === t.canvasHeight) return e + var n = void 0 === (n = e.initialCanvasWidth) ? t.canvasWidth : n, + r = void 0 === (r = e.initialCanvasHeight) ? t.canvasHeight : r, + i = + (o = xv( + e.initialCanvasWidth, + e.initialCanvasHeight, + e.originalImage.width, + e.originalImage.height, + )) * e.originalImage.width, + o = o * e.originalImage.height, + a = 1 + return ( + (n === t.canvasWidth && r === t.canvasHeight) || + ((i = t.canvasWidth / i), (o = t.canvasHeight / o), (a = Math.min(i, o))), + _L( + _L({}, e), + {}, + { + initialCanvasWidth: n, + initialCanvasHeight: r, + canvasWidth: t.canvasWidth, + canvasHeight: t.canvasHeight, + canvasScale: a, + }, + ) + ) + }), + n(kr, DL, function (e, t) { + return RL( + RL({}, e), + {}, + { + shownImageDimensions: RL(RL({}, e.shownImageDimensions), t.shownImageDimensions), + designLayer: t.designLayer || e.designLayer, + previewGroup: t.previewGroup || e.previewGroup, + }, + ) + }), + n(kr, GL, function (e, t) { + return WL(WL({}, e), {}, {textIdOfEditableContent: t.textIdOfEditableContent || null}) + }), + n(kr, rT, function (e, t) { + return e.latestColor === t.latestColor + ? e + : tT(tT({}, e), {}, {latestColor: t.latestColor}) + }), + n(kr, Kv, function (e, t) { + return $v($v({}, e), {}, {isDesignState: !t.dismissHistory, filter: t.filter || null}) + }), + n(kr, U_, function (e, t) { + return Z_( + Z_({}, e), + {}, + { + isDesignState: !t.dismissHistory, + finetunes: + !t.finetune || e.finetunes.includes(t.finetune) + ? e.finetunes + : [].concat(Hh(e.finetunes), [t.finetune]), + finetunesProps: Z_(Z_({}, e.finetunesProps), t.finetuneProps), + }, + ) + }), + n(kr, $_, function (e) { + var t = (o = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}) + .dismissHistory, + r = o.replaceCurrent, + i = Yc(o, X_), + o = null != (o = i.id) ? o : Lw(i.name), + a = e.annotations[o] + return a && + !Object.keys(i).some(function (e) { + return (i[e] || 0 === i[e]) && i[e] !== a[e] + }) + ? e + : q_( + q_({}, e), + {}, + { + isDesignState: !(void 0 !== t && t), + annotations: q_( + q_({}, e.annotations), + {}, + n({}, o, q_(q_({}, void 0 !== r && r ? {} : a), i)), + ), + }, + ) + }), + n(kr, vL, function (e, t) { + var n = null != (n = e.adjustments.crop) ? n : {}, + r = { + x: null != (r = CC(t.x)) ? r : n.x, + y: null != (r = CC(t.y)) ? r : n.y, + ratio: 'string' == typeof t.ratio ? t.ratio : null != (r = CC(t.ratio)) ? r : n.ratio, + width: null != (r = CC(t.width)) ? r : n.width, + height: null != (r = CC(t.height)) ? r : n.height, + ratioTitleKey: null != (r = t.ratioTitleKey) ? r : n.ratioTitleKey, + ratioGroupKey: t.ratioGroupKey, + ratioFolderKey: t.ratioFolderKey, + } + return n.x !== r.x || + n.y !== r.y || + (n.width !== r.width && (r.width !== CC(e.shownImageDimensions.width) || n.width)) || + (n.height !== r.height && (r.height !== CC(e.shownImageDimensions.height) || n.height)) || + n.ratio !== r.ratio || + n.ratioTitleKey !== r.ratioTitleKey || + n.ratioGroupKey !== r.ratioGroupKey || + n.ratioFolderKey !== r.ratioFolderKey + ? mL( + mL({}, e), + {}, + { + isDesignState: !t.dismissHistory, + adjustments: mL(mL({}, e.adjustments), {}, {crop: mL(mL({}, n), r)}), + }, + ) + : e + }), + n(kr, wL, function (e, t) { + return e.adjustments.rotation === t.rotation + ? e + : bL( + bL({}, e), + {}, + { + isDesignState: !t.dismissHistory, + adjustments: bL(bL({}, e.adjustments), {}, {rotation: t.rotation}), + }, + ) + }), + n(kr, pL, function (e, t) { + var r = 'isFlipped'.concat('X' === t.direction ? 'X' : 'Y') + return hL( + hL({}, e), + {}, + { + isDesignState: !t.dismissHistory, + adjustments: hL(hL({}, e.adjustments), {}, n({}, r, !e.adjustments[r])), + }, + ) + }), + n(kr, XL, function (e, t) { + return UL( + UL({}, e), + {}, + { + isDesignState: !t.dismissHistory, + resize: UL( + UL(UL({}, e.resize), t), + {}, + { + manualChangeDisabled: null != (e = t.manualChangeDisabled) && e, + }, + ), + }, + ) + }), + n(kr, NL, function (e, t) { + var n = e.annotations, + r = e.selectionsIds + return ( + t.annotationsIds.forEach(function (t) { + var i + ;(r = r.filter(function (e) { + return e !== t + })), + e.designLayer && + n[t] && + ((i = e.designLayer.findOne('#'.concat(t))) && i.destroy(), delete n[t]) + }), + zL( + zL({}, e), + {}, + { + isDesignState: t.isDesignState || !0, + annotations: n, + selectionsIds: [], + }, + ) + ) + }), + n(kr, BL, function (e, t) { + var n = e.annotations, + r = {} + return ( + t.annotationsIds.forEach(function (e) { + var t + ;(e = n[e]) && + ((t = Lw(e.name)), (r[t] = FL(FL({}, e), {}, {id: t, x: e.x + 20, y: e.y + 20}))) + }), + FL(FL({}, e), {}, {isDesignState: !t.dismissHistory, annotations: FL(FL({}, n), r)}) + ) + }), + n(kr, W_, function (e) { + var t, n, r + return e.pastDesignStates && 0 < e.pastDesignStates.length + ? ((r = Lb(e)), + (t = (n = ty(e.pastDesignStates))[0]), + (n = n.slice(1)), + (r = [r].concat(Hh(e.futureDesignStates || []))), + V_( + V_(V_({}, e), t), + {}, + { + selectionsIds: [], + pastDesignStates: n, + futureDesignStates: r, + hasUndo: 0 < n.length, + hasRedo: !0, + haveNotSavedChanges: 0 < n.length, + }, + )) + : e + }), + n(kr, Ib, function (e) { + var t, n, r + return e.futureDesignStates && 0 < e.futureDesignStates.length + ? ((r = Lb(e)), + (t = (n = ty(e.futureDesignStates))[0]), + (n = n.slice(1)), + (r = [r].concat(Hh(e.pastDesignStates || []))), + jb( + jb(jb({}, e), t), + {}, + { + selectionsIds: [], + pastDesignStates: r, + futureDesignStates: n, + hasUndo: !0, + hasRedo: 0 < n.length, + haveNotSavedChanges: !0, + }, + )) + : e + }), + n(kr, Db, function (e, t) { + return ( + (t = Lb(Rb(Rb({}, t.config), {}, {imgSrc: e.imgSrc}), !0)), + Rb( + Rb(Rb({}, e), t), + {}, + { + selectionsIds: [], + isResetted: !0, + pastDesignStates: [], + futureDesignStates: [], + hasUndo: !1, + hasRedo: !1, + haveNotSavedChanges: !1, + }, + ) + ) + }), + n(kr, $L, function (e) { + return e.haveNotSavedChanges ? qL(qL({}, e), {}, {haveNotSavedChanges: !1}) : e + }), + n(kr, JL, function (e, t) { + return (t = t && 'function' == typeof t ? t(e) : t) ? QL(e, t) : e + }), + kr) + a = {exports: {}} + + function oT() { + } + + function aT() { + } + + function lT(e, t, n, r, i, o) { + if ('SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED' !== o) + throw ( + (((o = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types', + )).name = 'Invariant Violation'), + o) + ) + } + + function sT() { + return lT + } + ;(aT.resetWarningCache = oT), + (a.exports = (Pp = { + array: (lT.isRequired = lT), + bool: lT, + func: lT, + number: lT, + object: lT, + string: lT, + symbol: lT, + any: lT, + arrayOf: sT, + element: lT, + elementType: lT, + instanceOf: sT, + node: lT, + objectOf: sT, + oneOf: sT, + oneOfType: sT, + shape: sT, + exact: sT, + checkPropTypes: aT, + resetWarningCache: oT, + }).PropTypes = + Pp) + ;(WE = a.exports).string.isRequired, + WE.string.isRequired, + WE.number, + WE.number, + WE.number, + WE.string, + WE.number, + WE.number, + WE.number, + WE.number, + WE.string, + WE.number, + WE.number, + (Zv = { + rotation: 0, + scaleX: 1, + scaleY: 1, + stroke: void 0, + strokeWidth: void 0, + shadowOffsetX: void 0, + shadowOffsetY: void 0, + shadowBlur: void 0, + shadowColor: void 0, + shadowOpacity: void 0, + opacity: 1, + }) + var cT = [ + 'id', + 'name', + 'fill', + 'x', + 'y', + 'width', + 'height', + 'scaleX', + 'scaleY', + 'rotation', + 'annotationEvents', + 'stroke', + 'strokeWidth', + 'shadowOffsetX', + 'shadowOffsetY', + 'shadowBlur', + 'shadowColor', + 'shadowOpacity', + 'opacity', + 'cornerRadius', + ] + + function uT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function dT(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? uT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : uT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function fT(e) { + var t = e.id, + n = e.name, + r = e.fill, + i = e.x, + o = e.y, + a = e.width, + l = e.height, + s = e.scaleX, + c = e.scaleY, + u = e.rotation, + d = e.annotationEvents, + f = e.stroke, + h = e.strokeWidth, + p = e.shadowOffsetX, + g = e.shadowOffsetY, + m = e.shadowBlur, + v = e.shadowColor, + y = e.shadowOpacity, + b = e.opacity, + w = e.cornerRadius + e = Yc(e, cT) + return he.createElement( + 'Rect', + Ip( + { + id: t, + name: n, + rotation: u, + scaleX: s, + scaleY: c, + stroke: f, + strokeWidth: h, + shadowOffsetX: p, + shadowOffsetY: g, + shadowBlur: m, + shadowColor: v, + shadowOpacity: y, + fill: r, + x: i, + y: o, + width: a, + height: l, + opacity: b, + cornerRadius: w, + }, + d, + e, + ), + ) + } + + fT.defaultProps = dT(dT({}, Zv), {}, {fill: '#000', cornerRadius: 0, width: 0, height: 0}) + var hT = [ + 'id', + 'name', + 'fill', + 'x', + 'y', + 'radiusX', + 'radiusY', + 'scaleX', + 'scaleY', + 'rotation', + 'annotationEvents', + 'stroke', + 'strokeWidth', + 'shadowOffsetX', + 'shadowOffsetY', + 'shadowBlur', + 'shadowColor', + 'shadowOpacity', + 'opacity', + ] + + function pT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function gT(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? pT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : pT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function mT(e) { + var t = e.id, + n = e.name, + r = e.fill, + i = e.x, + o = e.y, + a = e.radiusX, + l = e.radiusY, + s = e.scaleX, + c = e.scaleY, + u = e.rotation, + d = e.annotationEvents, + f = e.stroke, + h = e.strokeWidth, + p = e.shadowOffsetX, + g = e.shadowOffsetY, + m = e.shadowBlur, + v = e.shadowColor, + y = e.shadowOpacity, + b = e.opacity + e = Yc(e, hT) + return he.createElement( + Ov, + Ip( + { + id: t, + name: n, + rotation: u, + scaleX: s, + scaleY: c, + stroke: f, + strokeWidth: h, + shadowOffsetX: p, + shadowOffsetY: g, + shadowBlur: m, + shadowColor: v, + shadowOpacity: y, + fill: r, + x: i, + y: o, + radiusX: a, + radiusY: l, + offsetX: -a, + offsetY: -l, + opacity: b, + }, + d, + e, + ), + ) + } + + mT.defaultProps = gT(gT({}, Zv), {}, {fill: '#000', radiusX: 0, radiusY: 0}) + var vT = [ + 'id', + 'name', + 'fill', + 'x', + 'y', + 'radius', + 'scaleX', + 'scaleY', + 'rotation', + 'sides', + 'annotationEvents', + 'stroke', + 'strokeWidth', + 'shadowOffsetX', + 'shadowOffsetY', + 'shadowBlur', + 'shadowColor', + 'shadowOpacity', + 'opacity', + ] + + function yT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function bT(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? yT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : yT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function wT(e) { + var t = e.id, + n = e.name, + r = e.fill, + i = e.x, + o = e.y, + a = e.radius, + l = e.scaleX, + s = e.scaleY, + c = e.rotation, + u = e.sides, + d = e.annotationEvents, + f = e.stroke, + h = e.strokeWidth, + p = e.shadowOffsetX, + g = e.shadowOffsetY, + m = e.shadowBlur, + v = e.shadowColor, + y = e.shadowOpacity, + b = e.opacity + e = Yc(e, vT) + return he.createElement( + 'RegularPolygon', + Ip( + { + id: t, + name: n, + rotation: c, + scaleX: l, + scaleY: s, + stroke: f, + strokeWidth: h, + shadowOffsetX: p, + shadowOffsetY: g, + shadowBlur: m, + shadowColor: v, + shadowOpacity: y, + fill: r, + x: i, + y: o, + radius: a, + offsetX: -a, + offsetY: -a, + sides: u, + opacity: b, + }, + d, + e, + ), + ) + } + + wT.defaultProps = bT(bT({}, Zv), {}, {fill: '#000', sides: 3}) + var CT = [ + 'id', + 'name', + 'text', + 'fontFamily', + 'fontSize', + 'fontStyle', + 'fill', + 'x', + 'y', + 'width', + 'height', + 'scaleX', + 'scaleY', + 'rotation', + 'annotationEvents', + 'stroke', + 'strokeWidth', + 'shadowOffsetX', + 'shadowOffsetY', + 'shadowBlur', + 'shadowColor', + 'shadowOpacity', + 'opacity', + 'letterSpacing', + 'lineHeight', + 'align', + ] + + function xT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function ET(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? xT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : xT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function OT(e) { + var t = e.id, + n = e.name, + r = e.text, + i = e.fontFamily, + o = e.fontSize, + a = e.fontStyle, + l = e.fill, + s = e.x, + c = e.y, + u = e.width, + d = e.height, + f = e.scaleX, + h = e.scaleY, + p = e.rotation, + g = e.annotationEvents, + m = e.stroke, + v = e.strokeWidth, + y = e.shadowOffsetX, + b = e.shadowOffsetY, + w = e.shadowBlur, + C = e.shadowColor, + x = e.shadowOpacity, + E = e.opacity, + O = e.letterSpacing, + S = e.lineHeight, + k = e.align + e = Yc(e, CT) + return he.createElement( + 'Text', + Ip( + { + id: t, + name: n, + rotation: p, + scaleX: f, + scaleY: h, + stroke: m, + strokeWidth: v, + shadowOffsetX: y, + shadowOffsetY: b, + shadowBlur: w, + shadowColor: C, + shadowOpacity: x, + opacity: E, + fill: l, + text: r, + fontFamily: i, + fontStyle: a, + fontSize: o, + letterSpacing: O, + lineHeight: S, + align: k, + x: s, + y: c, + width: u, + height: d, + }, + g, + e, + ), + ) + } + + function ST(e, t) { + return new Promise(function (n, r) { + var i = new Image() + ;(i.src = e), + (i.crossOrigin = 'Anonymous'), + (i.name = null != t ? t : kT(e)), + (i.onload = function () { + n(i) + }), + (i.onerror = function () { + r(new Error('Error in loading the image with the provided url: '.concat(e))) + }) + }) + } + + OT.defaultProps = ET( + ET({}, Zv), + {}, + { + text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur imperdiet tortor quis odio facilisis, id aliquet nulla facilisis. Etiam tincidunt tempor odio nec placerat.', + fontFamily: 'Arial', + fontSize: 14, + fill: '#000', + width: 0, + height: 0, + letterSpacing: void 0, + lineHeight: void 0, + align: 'left', + }, + ) + var kT = function (e) { + return (e = e.split('/'))[e.length - 1].split('?')[0] + }, + PT = [ + 'id', + 'name', + 'image', + 'x', + 'y', + 'width', + 'height', + 'scaleX', + 'scaleY', + 'rotation', + 'annotationEvents', + 'stroke', + 'strokeWidth', + 'shadowOffsetX', + 'shadowOffsetY', + 'shadowBlur', + 'shadowColor', + 'shadowOpacity', + 'opacity', + ] + + function _T(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function LT(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? _T(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : _T(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function TT(e) { + var t = e.id, + n = e.name, + r = e.image, + i = e.x, + o = e.y, + a = e.width, + s = e.height, + c = e.scaleX, + u = e.scaleY, + d = e.rotation, + f = e.annotationEvents, + h = e.stroke, + p = e.strokeWidth, + g = e.shadowOffsetX, + m = e.shadowOffsetY, + v = e.shadowBlur, + y = e.shadowColor, + b = e.shadowOpacity, + w = e.opacity, + C = ((e = Yc(e, PT)), jp(l.exports.useState(null), 2)), + x = C[0], + E = C[1] + return ( + l.exports.useEffect( + function () { + 'string' == typeof r && ST(r).then(E) + }, + [r], + ), + (C = r instanceof HTMLImageElement) || x + ? he.createElement( + Sv, + Ip( + { + id: t, + name: n, + rotation: d, + scaleX: c, + scaleY: u, + stroke: h, + strokeWidth: p, + shadowOffsetX: g, + shadowOffsetY: m, + shadowBlur: v, + shadowColor: y, + shadowOpacity: b, + image: C ? r : x, + x: i, + y: o, + width: a, + height: s, + opacity: w, + }, + e, + f, + e, + ), + ) + : null + ) + } + + TT.defaultProps = LT(LT({}, Zv), {}, {width: 0, height: 0}) + var jT = [ + 'id', + 'name', + 'scaleX', + 'scaleY', + 'rotation', + 'annotationEvents', + 'points', + 'lineCap', + 'stroke', + 'strokeWidth', + 'shadowOffsetX', + 'shadowOffsetY', + 'shadowBlur', + 'shadowColor', + 'shadowOpacity', + 'tension', + 'opacity', + ] + + function IT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function MT(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? IT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : IT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function RT(e) { + var t = e.id, + n = e.name, + r = e.scaleX, + i = e.scaleY, + o = e.rotation, + a = e.annotationEvents, + l = e.points, + s = e.lineCap, + c = e.stroke, + u = e.strokeWidth, + d = e.shadowOffsetX, + f = e.shadowOffsetY, + h = e.shadowBlur, + p = e.shadowColor, + g = e.shadowOpacity, + m = e.tension, + v = e.opacity + e = Yc(e, jT) + return he.createElement( + 'Line', + Ip( + { + id: t, + name: n, + rotation: o, + scaleX: r, + scaleY: i, + stroke: c, + strokeWidth: u, + shadowOffsetX: d, + shadowOffsetY: f, + shadowBlur: h, + shadowColor: p, + shadowOpacity: g, + points: l, + lineCap: s, + tension: m, + hitStrokeWidth: 20, + x: 0, + y: 0, + opacity: v, + }, + a, + e, + ), + ) + } + + RT.defaultProps = MT( + MT({}, Zv), + {}, + { + stroke: '#000000', + strokeWidth: 1, + lineCap: 'butt', + annotationEvents: {}, + tension: void 0, + }, + ) + var DT = [ + 'id', + 'name', + 'fill', + 'pointerLength', + 'pointerWidth', + 'scaleX', + 'scaleY', + 'rotation', + 'annotationEvents', + 'points', + 'lineCap', + 'stroke', + 'strokeWidth', + 'shadowOffsetX', + 'shadowOffsetY', + 'shadowBlur', + 'shadowColor', + 'shadowOpacity', + 'opacity', + ] + + function AT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function zT(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? AT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : AT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function NT(e) { + var t = e.id, + n = e.name, + r = e.fill, + i = e.pointerLength, + o = e.pointerWidth, + a = e.scaleX, + l = e.scaleY, + s = e.rotation, + c = e.annotationEvents, + u = e.points, + d = e.lineCap, + f = e.stroke, + h = e.strokeWidth, + p = e.shadowOffsetX, + g = e.shadowOffsetY, + m = e.shadowBlur, + v = e.shadowColor, + y = e.shadowOpacity, + b = e.opacity + e = Yc(e, DT) + return he.createElement( + 'Arrow', + Ip( + { + id: t, + name: n, + rotation: s, + scaleX: a, + scaleY: l, + stroke: f, + strokeWidth: h, + shadowOffsetX: p, + shadowOffsetY: g, + shadowBlur: m, + shadowColor: v, + shadowOpacity: y, + fill: r, + x: 0, + y: 0, + points: u, + pointerLength: i, + pointerWidth: o, + lineCap: d, + opacity: b, + }, + c, + e, + ), + ) + } + + function HT() { + var e, + t, + n, + r, + i, + o, + a, + s, + c, + u = xw(), + d = u.annotations, + f = void 0 === d ? {} : d, + h = void 0 === (d = u.selectionsIds) ? [] : d, + p = + ((u = xw()), + (e = u.tabId), + (t = u.dispatch), + (n = l.exports.useMemo( + function () { + return e !== Dv.ANNOTATE && e !== Dv.WATERMARK + }, + [e], + )), + (r = l.exports.useCallback(function (e) { + t({type: $_, payload: e}) + }, [])), + (i = l.exports.useCallback(function (e) { + r({id: e.target.id(), x: e.target.x(), y: e.target.y()}) + }, [])), + (o = l.exports.useCallback(function (e) { + var t = { + id: e.target.id(), + rotation: e.target.rotation(), + x: e.target.x(), + y: e.target.y(), + } + return ( + e.target.name() === Av.TEXT + ? ((t.width = e.target.width() * e.target.scaleX()), + (t.height = e.target.height() * e.target.scaleY()), + (t.scaleX = 1), + (t.scaleY = 1)) + : ((t.scaleX = e.target.scaleX()), (t.scaleY = e.target.scaleY())), + t + ) + }, [])), + (a = l.exports.useCallback(function (e) { + r(o(e)) + }, [])), + (s = l.exports.useCallback(function (e) { + e.target.name() === Av.TEXT && e.target.setAttrs(o(e)) + })), + (c = l.exports.useCallback(function (e) { + var n + e.target.id() !== Mv && + ((n = e.evt.ctrlKey || e.evt.shiftKey || e.evt.metaKey), + t({ + type: nL, + payload: {annotationId: e.target.id(), multiple: n}, + }), + t({ + type: dL, + payload: {toolId: e.target.name(), keepSelections: n}, + })) + }, [])), + l.exports.useMemo( + function () { + return n + ? {} + : { + onTransform: s, + onTransformEnd: a, + onDragEnd: i, + onClick: c, + onTap: c, + } + }, + [n], + )) + return l.exports.useMemo( + function () { + return Object.values(f).map(function (e) { + return he.createElement(BT, { + key: e.id, + annotation: e, + annotationEvents: p, + selectionsIds: h, + }) + }) + }, + [f, p, h], + ) + } + ;(NT.defaultProps = zT( + zT({}, Zv), + {}, + { + stroke: '#000000', + strokeWidth: 6, + fill: void 0, + lineCap: 'butt', + pointerLength: void 0, + pointerWidth: void 0, + }, + )), + n((Kb = {}), Av.RECT, fT), + n(Kb, Av.ELLIPSE, mT), + n(Kb, Av.POLYGON, wT), + n(Kb, Av.TEXT, OT), + n(Kb, Av.IMAGE, TT), + n(Kb, Av.LINE, RT), + n(Kb, Av.ARROW, NT), + n(Kb, Av.PEN, RT) + var FT = Kb, + BT = l.exports.memo(function (e) { + var t = e.annotation, + n = e.annotationEvents, + r = ((e = e.selectionsIds), FT[t.name]) + return he.createElement( + r, + Ip({key: t.id, annotationEvents: n, draggable: e.includes(t.id)}, t), + ) + }), + VT = l.exports.forwardRef(function (e, t) { + return he.createElement('Group', Ip({ref: t}, e)) + }) + + function WT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function GT(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? WT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : WT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + var ZT = 2 * (window ? 0.05 * Math.min(window.innerHeight, window.innerWidth) : 12), + UT = function () { + var e, + t, + n, + r = l.exports.useRef(), + i = (w = xw()).initialCanvasWidth, + o = w.initialCanvasHeight, + a = w.canvasWidth, + s = w.canvasHeight, + c = w.dispatch, + u = w.toolId, + d = w.canvasScale, + f = void 0 === (p = w.originalImage) ? {} : p, + h = void 0 === (p = w.finetunes) ? [] : p, + p = void 0 === (p = w.finetunesProps) ? {} : p, + g = void 0 === (b = w.filter) ? null : b, + m = void 0 === (y = (b = void 0 === (b = w.adjustments) ? {} : b).rotation) ? 0 : y, + v = void 0 === (y = b.crop) ? {} : y, + y = b.isFlippedX, + b = b.isFlippedY, + w = w.resize, + C = l.exports.useRef(), + x = l.exports.useRef(), + E = u === Av.CROP, + O = + ((u = l.exports.useMemo( + function () { + return g ? [].concat(Hh(h), [g]) : h + }, + [h, g], + )), + l.exports.useMemo( + function () { + var e = f.width - ZT + return {width: e, height: e / (f.width / f.height)} + }, + [f], + )), + S = l.exports.useMemo( + function () { + return yC(f.width, f.height, m) + }, + [f, m], + ), + k = l.exports.useMemo( + function () { + return xv(i, o, f.width, f.height) + }, + [f, i, o], + ), + P = l.exports.useMemo( + function () { + return {width: O.width * k, height: O.height * k} + }, + [O, k], + ), + _ = + w.width && !E + ? w.width / (null != (_ = null != (_ = v.width) ? _ : P.width) ? _ : S.width) + : 1, + L = + ((w = + w.height && !E + ? w.height / (null != (w = null != (w = v.height) ? w : P.height) ? w : S.height) + : 1), + a / (2 * d) - (P.width * _) / 2), + T = s / (2 * d) - (P.height * w) / 2, + j = a / (2 * d) - P.width / 2, + I = s / (2 * d) - P.height / 2, + M = l.exports.useMemo( + function () { + return { + x: Math.round(L), + y: Math.round(T), + abstractX: Math.round(j), + abstractY: Math.round(I), + width: P.width, + height: P.height, + scaledBy: d, + } + }, + [d, L, T, j, I, P], + ), + R = l.exports.useCallback(function () { + C.current ? C.current.cache() : setTimeout(R, 0) + }, []) + ;(S = yC(M.width, M.height, m)), (a = E ? 1 : xv(M.width, M.height, S.width, S.height)) + return ( + l.exports.useEffect( + function () { + return ( + f && R(), + function () { + var e + null != (e = C.current) && e.clearCache() + } + ) + }, + [f], + ), + l.exports.useEffect( + function () { + M && + c({ + type: DL, + payload: { + shownImageDimensions: M, + designLayer: r.current, + previewGroup: x.current, + }, + }) + }, + [M], + ), + L && T && M + ? ((e = v.x), + (t = v.y), + (n = m), + (s = + e && t && (n || 0 === n) + ? ((t = nT((e = {x: -e / 2, y: -t / 2}), 0)), + {x: (e = nT(e, n)).x - t.x, y: e.y - t.y, rotation: n}) + : {x: 0, y: 0, rotation: n}), + (S = + L + (!E && v.width ? (y ? -1 : 1) * (M.width / 2 - v.x - v.width / 2 + s.x) * _ : 0)), + (s = + T + + (!E && v.height ? (b ? -1 : 1) * (M.height / 2 - v.y - v.height / 2 + s.y) * w : 0)), + (S = E ? j : S), + (s = E ? I : s), + he.createElement( + Ev, + { + id: 'FIE_design-layer', + ref: r, + xPadding: S, + yPadding: s, + offsetX: P.width / 2, + offsetY: P.height / 2, + x: (P.width * _) / 2 + S, + y: (P.height * w) / 2 + s, + scaleX: (y ? -1 : 1) * (E ? 1 : _) * a, + scaleY: (b ? -1 : 1) * (E ? 1 : w) * a, + rotation: E ? 0 : m, + clipFunc: function (e) { + var t = E && !(null != (t = r.current) && null != (t = t.attrs) && t.isSaving), + n = t + ? GT(GT({}, M), {}, {x: 0, y: 0}) + : { + width: v.width || M.width, + height: v.height || M.height, + x: v.x || 0, + y: v.y || 0, + } + ;(function (e, t) { + t.ratio !== Vv || + (2 < arguments.length && void 0 !== arguments[2] && arguments[2]) + ? e.rect(t.x, t.y, t.width, t.height) + : e.ellipse( + t.x + t.width / 2, + t.y + t.height / 2, + t.width / 2, + t.height / 2, + 0, + 0, + 2 * Math.PI, + ) + })(e, GT({ratio: v.ratio}, n), t), + r.current && + r.current.setAttrs({ + clipX: n.x, + clipY: n.y, + clipWidth: n.width, + clipHeight: n.height, + }) + }, + }, + he.createElement( + Sv, + Ip( + { + id: jv, + image: f, + width: P.width, + height: P.height, + offsetX: P.width / 2, + offsetY: P.height / 2, + x: P.width / 2, + y: P.height / 2, + listening: !1, + filters: u, + ref: C, + }, + p, + ), + ), + he.createElement(HT, null), + he.createElement(VT, {ref: x}), + )) + : null + ) + } + + function XT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function YT(e, t, r, i) { + var o, + a, + l = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : {}, + s = + ((r = { + x: CC(r.abstractX * r.scaledBy), + y: CC(r.abstractY * r.scaledBy), + width: CC(r.width * r.scaledBy), + height: CC(r.height * r.scaledBy), + }), + (function (e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? XT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : XT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + })({}, t)) + return ( + t.x < r.x && ((s.x = r.x), (s.width = e.x - r.x + e.width)), + t.y < r.y && ((s.y = r.y), (s.height = e.y - r.y + e.height)), + s.x + s.width > r.x + r.width && (s.width = r.x + r.width - s.x), + s.y + s.height > r.y + r.height && (s.height = r.y + r.height - s.y), + i && + ((o = s.width / s.height), (a = i), CC(o) !== CC(a)) && + ((o = s.height * i), + (a = s.width / i), + CC(s.y + a) <= r.y + r.height ? (s.height = a) : (s.width = o)), + ((l.minWidth && s.width <= l.minWidth) || (l.maxWidth && s.width >= l.maxWidth)) && + ((s.width = Iw(s.width, l.minWidth, l.maxWidth)), + (s.x = e.x), + (s.y = e.y), + i && (s.height = s.width / i)), + ((l.minHeight && t.height <= l.minHeight) || (l.maxHeight && t.height >= l.maxHeight)) && + ((s.height = Iw(s.height, l.minHeight, l.maxHeight)), + (s.x = e.x), + (s.y = e.y), + i && (s.width = s.height * i)), + s + ) + } + + function qT(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function $T(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? qT(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : qT(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function KT() { + function e() { + return w === Bv ? a.width / a.height : w + } + + function t(e, t) { + var n = e.width, + i = e.height, + o = e.x + ;(e = e.y), + (o = { + x: u ? s.width - o - n : o, + y: d ? s.height - e - i : e, + width: n, + height: i, + }), + (e = c.width >= f.width && c.height >= f.height) + f.width && + f.height && + (n < f.width || i < f.height) && + e && + r({ + type: Nb, + payload: { + feedback: { + message: p('cropSizeLowerThanResizedWarning'), + status: Xv, + }, + }, + }), + r({ + type: vL, + payload: $T($T($T({}, c), o), {}, {dismissHistory: t}), + }) + } + + function n(n, r) { + m.current && g.current && m.current.nodes([g.current]) + var i = y.current + t( + YT( + (n = { + width: n, + height: r, + x: null != (n = c.x) ? n : 0, + y: null != (r = c.y) ? r : 0, + }), + n, + $T($T({}, i), {}, {abstractX: 0, abstractY: 0}), + !(C || x) && e(), + b, + ), + !0, + ) + } + + var r = (P = xw()).dispatch, + i = P.theme, + o = P.designLayer, + a = P.originalImage, + s = P.shownImageDimensions, + c = void 0 === (O = (h = void 0 === (h = P.adjustments) ? {} : h).crop) ? {} : O, + u = h.isFlippedX, + d = h.isFlippedY, + f = void 0 === (O = P.resize) ? {} : O, + h = P.config, + p = P.t, + g = l.exports.useRef(), + m = l.exports.useRef(), + v = l.exports.useRef(), + y = l.exports.useRef(), + b = h[Av.CROP], + w = c.ratio || b.ratio, + C = 'custom' === w, + x = w === Vv + if ( + (l.exports.useEffect( + function () { + return ( + o && + m.current && + g.current && + (v.current && v.current.cache(), m.current.nodes([g.current])), + function () { + v.current && v.current.clearCache() + } + ) + }, + [o, a, s], + ), + l.exports.useEffect( + function () { + var e, t + y.current && + ((t = y.current), + n(null != (e = c.width) ? e : t.width, null != (e = c.height) ? e : t.height)) + }, + [w], + ), + l.exports.useEffect( + function () { + m.current && g.current && y.current && c.width && c.height && n(c.width, c.height) + }, + [b, s.width, s.height], + ), + l.exports.useEffect( + function () { + s && (y.current = s) + }, + [s], + ), + !o) + ) + return null + + function E(e) { + var n = !!(1 < arguments.length && void 0 !== arguments[1]) && arguments[1] + e.target && + t( + { + width: e.target.width() * e.target.scaleX(), + height: e.target.height() * e.target.scaleY(), + x: e.target.x(), + y: e.target.y(), + }, + n, + ) + } + + var O = C || x ? void 0 : ['top-left', 'bottom-left', 'top-right', 'bottom-right'], + S = + ((h = + void 0 === + (h = (P = + c.width || c.height + ? c + : ((P = s.scaledBy < 1 ? s.scaledBy : 1), + (h = $T($T({}, s), {}, {width: s.width / P, height: s.height / P})), + YT( + h, + $T($T({}, h), {}, {x: 0, y: 0}), + $T($T({}, h), {}, {abstractX: 0, abstractY: 0}), + !(C || x) && e(), + b, + ))).x) + ? 0 + : h), + void 0 === (S = P.y) ? 0 : S), + k = P.width, + P = P.height + h = { + x: u ? s.width - h - k : h, + y: d ? s.height - S - P : S, + ref: g, + fill: '#FFFFFF', + scaleX: 1, + scaleY: 1, + globalCompositeOperation: 'destination-out', + onDragEnd: E, + onDragMove: function (e) { + var t, n + ;(e = e.target).setAttrs( + ((e = e.attrs), + (n = (t = y.current).width - (2 * e.radiusX || e.width)), + (t = t.height - (2 * e.radiusY || e.height)), + { + x: CC(Math.min(Math.max(e.x, 0), n)), + y: CC(Math.min(Math.max(e.y, 0), t)), + }), + ) + }, + onTransformEnd: E, + draggable: !0, + } + return he.createElement( + he.Fragment, + null, + he.createElement(Sv, { + image: a, + x: u ? s.width : 0, + y: d ? s.height : 0, + width: s.width, + height: s.height, + filters: [av.Filters.Blur, av.Filters.Brighten], + blurRadius: 10, + brightness: -0.3, + scaleX: u ? -1 : 1, + scaleY: d ? -1 : 1, + ref: v, + }), + x + ? he.createElement( + Ov, + Ip({}, h, { + radiusX: k / 2, + radiusY: P / 2, + offset: {x: -k / 2, y: -P / 2}, + }), + ) + : he.createElement('Rect', Ip({}, h, {width: k, height: P})), + he.createElement(kv, { + centeredScaling: !1, + flipEnabled: !1, + rotateEnabled: !1, + nodes: g.current ? [g.current] : [], + anchorSize: 14, + anchorCornerRadius: 7, + enabledAnchors: O, + ignoreStroke: !1, + anchorStroke: i.palette['accent-primary'], + anchorFill: i.palette['access-primary'], + anchorStrokeWidth: 2, + borderStroke: i.palette['accent-primary'], + borderStrokeWidth: 2, + borderDash: [4], + keepRatio: !C || !x, + ref: m, + boundBoxFunc: function (t, n) { + return YT(t, n, y.current, !(C || x) && e(), b) + }, + }), + ) + } + + function QT() { + function e() { + 1 === s.length && + s[0].name() === Av.TEXT && + o({type: GL, payload: {textIdOfEditableContent: s[0].id()}}) + } + + var t, + n = void 0 === (r = (a = xw()).selectionsIds) ? [] : r, + r = a.theme, + i = a.designLayer, + o = a.dispatch, + a = a.config.useCloudimage, + s = l.exports.useMemo( + function () { + return null != i && i.findOne + ? n + .map(function (e) { + return i.findOne('#'.concat(e)) + }) + .filter(Boolean) + : [] + }, + [n], + ) + return he.createElement(kv, { + id: Iv, + centeredScaling: !1, + rotationSnaps: [0, 45, 90, 135, 180, 225, 270, 315], + nodes: s, + rotateAnchorOffset: 30, + anchorSize: 14, + anchorCornerRadius: 7, + padding: 1 === s.length && null != (t = s[0].attrs.padding) ? t : 1, + ignoreStroke: !1, + anchorStroke: r.palette['accent-primary'], + anchorFill: r.palette['access-primary'], + anchorStrokeWidth: 2, + borderStroke: r.palette['accent-primary'], + borderStrokeWidth: 2, + borderDash: [4], + rotateEnabled: !a, + onMouseOver: function () { + o({type: J_, payload: {pointerCssIcon: Fv.MOVE}}) + }, + onMouseLeave: function () { + o({type: J_, payload: {pointerCssIcon: Fv.DRAW}}) + }, + onDblClick: e, + onDblTap: e, + flipEnabled: !0, + shouldOverdrawWholeArea: !0, + }) + } + + var JT = function () { + var e = (t = xw()).toolId, + t = t.shownImageDimensions + return he.createElement( + Ev, + {id: Tv, x: t.abstractX || 0, y: t.abstractY || 0}, + he.createElement(QT, null), + e === Av.CROP && he.createElement(KT, null), + ) + }, + ej = ['color', 'size'], + tj = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, ej) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M15.75 17.3125C15.75 16.4496 16.4496 15.75 17.3125 15.75C18.1754 15.75 18.875 16.4496 18.875 17.3125L18.875 32.9375C18.875 33.8005 18.1754 34.5 17.3125 34.5C16.4496 34.5 15.75 33.8005 15.75 32.9375L15.75 17.3125Z', + fill: n, + }), + he.createElement('path', { + d: 'M26.6875 15.75C25.8246 15.75 25.125 16.4496 25.125 17.3125L25.125 32.9375C25.125 33.8005 25.8246 34.5 26.6875 34.5C27.5504 34.5 28.25 33.8005 28.25 32.9375V17.3125C28.25 16.4496 27.5504 15.75 26.6875 15.75Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M12.625 6.37503V3.25003C12.625 1.52414 14.0241 0.125031 15.75 0.125031H28.25C29.9759 0.125031 31.375 1.52414 31.375 3.25003V6.37503H42.3125C43.1754 6.37503 43.875 7.07459 43.875 7.93753C43.875 8.80048 43.1754 9.50003 42.3125 9.50003H39.1875V40.75C39.1875 42.4759 37.7884 43.875 36.0625 43.875H7.9375C6.21161 43.875 4.8125 42.4759 4.8125 40.75V9.50003L1.6875 9.50003C0.824554 9.50003 0.125 8.80048 0.125 7.93753C0.125 7.07459 0.824555 6.37503 1.6875 6.37503H12.625ZM15.75 3.25003H28.25V6.37503H15.75V3.25003ZM7.9375 9.50003L7.9375 40.75H36.0625V9.50003H7.9375Z', + fill: n, + }), + ) + }), + nj = ['color', 'size'], + rj = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, nj) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M0.312012 34.847V3.39883C0.312012 1.67294 1.71112 0.273834 3.43701 0.273834H26.807C28.5329 0.273834 29.932 1.67294 29.932 3.39883V34.847C29.932 36.5729 28.5329 37.972 26.807 37.972H3.43701C1.71112 37.972 0.312012 36.5729 0.312012 34.847ZM3.43701 34.847V3.39883L26.807 3.39883L26.807 34.847L3.43701 34.847Z', + fill: n, + }), + he.createElement('path', { + d: 'M35.6874 12.5434C35.6874 11.6805 34.9878 10.9809 34.1249 10.9809C33.2619 10.9809 32.5624 11.6805 32.5624 12.5434V40.6009H9.89033C9.02739 40.6009 8.32783 41.3005 8.32783 42.1634C8.32783 43.0263 9.02739 43.7259 9.89033 43.7259H34.1249C34.9878 43.7259 35.6874 43.0263 35.6874 42.1634V12.5434Z', + fill: n, + }), + ) + }), + ij = fe.div.withConfig({componentId: 'sc-1tst9ex-0'})(function (e) { + var t = e.theme, + n = e.top + e = e.left + return '\n position: absolute;\n z-index: 1;\n background: ' + .concat( + t.palette['bg-secondary'], + ';\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0px 1px 2px ', + ) + .concat(t.palette['light-shadow'], ';\n top: ') + .concat((n || 0) + 8, 'px;\n left: ') + .concat((e || 0) + 4, 'px;\n transform: translateX(-50%);\n height: 32px;\n') + }), + oj = function () { + var e = void 0 === (n = (s = xw()).selectionsIds) ? [] : n, + t = s.designLayer, + n = s.annotations, + r = s.dispatch, + i = (s = jp(l.exports.useState({left: 0, top: 0}), 2))[0], + o = s[1], + a = l.exports.useMemo( + function () { + var e + return null == t || null == (e = t.getStage()) ? void 0 : e.findOne('#'.concat(Iv)) + }, + [t], + ), + s = e.length, + c = Tw(function () { + a && + o({ + left: (a.x() + a.width() / 2) * a.scaleX(), + top: (a.y() + a.height()) * a.scaleY(), + }) + }, 0) + return ( + l.exports.useEffect( + function () { + c() + }, + [e, a, n], + ), + 0 !== s && a + ? he.createElement( + ij, + { + className: 'FIE_annotation-controls-overlay', + left: i.left, + top: i.top, + }, + e[0] !== Mv && + he.createElement( + g_, + { + color: 'link', + size: 'sm', + onClick: function () { + r({type: BL, payload: {annotationsIds: e}}) + }, + }, + he.createElement(rj, null), + ), + he.createElement( + g_, + { + color: 'link', + size: 'sm', + onClick: function () { + r({type: NL, payload: {annotationsIds: e}}) + }, + }, + he.createElement(tj, null), + ), + ) + : null + ) + } + + function aj(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function lj(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? aj(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : aj(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function sj(e, t) { + return {x: (e.x + t.x) / 2, y: (e.y + t.y) / 2} + } + + var cj = null, + uj = 0, + dj = fe.div.withConfig({componentId: 'sc-3ln9py-0'})( + [ + 'width:100%;position:relative;height:calc(100% - 94px - 12px);background:', + ';overflow:hidden;min-height:250px;flex-grow:1;', + ], + function (e) { + return e.theme.palette['bg-primary'] + }, + ), + fj = fe.img.withConfig({componentId: 'sc-3ln9py-1'})([ + 'max-width:98%;max-height:98%;box-shadow:0 0 0 5px rgba(0,0,0,0.1);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;', + ]), + hj = fe(_v).withConfig({componentId: 'sc-3ln9py-2'})( + ['outline:none;background:', ';'], + function (e) { + return e.theme.palette['bg-secondary'] + }, + ) + + function pj(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function gj(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? pj(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : pj(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function mj() { + var e = jp(cC(), 1)[0], + t = xw(), + n = l.exports.useCallback(function (e) { + var n = e.width + e = e.height + t.dispatch({type: LL, payload: {canvasWidth: n, canvasHeight: e}}) + }, []), + r = l.exports.useCallback(function (t) { + e(t, n) + }, []) + return he.createElement( + dj, + {className: 'FIE_canvas-container', ref: r}, + !t.textIdOfEditableContent && he.createElement(oj, null), + t.isShowOriginalImage && + he.createElement(fj, { + className: 'FIE_original-image-compare', + src: t.originalImage.src, + }), + he.createElement( + vj, + null, + he.createElement( + Cw, + {overridingValue: t}, + he.createElement(UT, null), + he.createElement(JT, null), + ), + ), + ) + } + + var vj = l.exports.memo(function (e) { + function t(e) { + s({type: kL, payload: e}) + } + + function n() { + return x(u !== Dv.ANNOTATE || u === Dv.WATERMARK) + } + + function r(e) { + ;('Space' === e.code || 'Control' === e.key) && + !e.repeat && + m.factor > b && + w && + (e.preventDefault(), x(!0), s({type: J_, payload: {pointerCssIcon: Fv.DRAG}})) + } + + function i(e) { + 'Space' === e.code && (e.preventDefault(), n()) + } + + function o() { + a.current && a.current.container().focus() + } + + e = e.children + var a = + ((function (e) { + hv = e + })(!0), + l.exports.useRef()), + s = (v = xw()).dispatch, + c = v.pointerCssIcon, + u = v.tabId, + d = v.toolId, + f = v.canvasWidth, + h = v.canvasHeight, + p = v.canvasScale, + g = void 0 === (y = v.selectionsIds) ? [] : y, + m = void 0 === (y = v.zoom) ? {} : y, + v = (y = v.config).previewPixelRatio, + y = y.disableZooming, + b = ((av.pixelRatio = v), 1), + w = !y && d !== Av.CROP, + C = (v = jp( + l.exports.useState(u !== Dv.ANNOTATE && u !== Dv.WATERMARK && m.factor > b), + 2, + ))[0], + x = v[1] + ;(y = l.exports.useMemo( + function () { + return { + cursor: c === Fv.DEFAULT && u === Dv.ANNOTATE ? Fv.DRAW : c, + } + }, + [u, c], + )), + (d = l.exports.useCallback( + function (e) { + var t, n + e.evt.preventDefault(), + null != (t = (n = e.currentTarget).container) && t.call(n).focus(), + e.target instanceof av.Stage && 0 < g.length && s({type: oL}) + }, + [g], + )), + l.exports.useEffect( + function () { + s({ + type: J_, + payload: {pointerCssIcon: Fv[C ? 'DRAG' : 'DEFAULT']}, + }) + }, + [C], + ), + l.exports.useEffect( + function () { + var e + return ( + x(u !== Dv.ANNOTATE && u !== Dv.WATERMARK && m.factor > b), + a.current && + ((e = a.current.container()).addEventListener('mouseenter', o), + e.addEventListener('keydown', r), + e.addEventListener('keyup', i)), + function () { + e && + (e.removeEventListener('mouseenter', o), + e.removeEventListener('keydown', r), + e.removeEventListener('keyup', i)) + } + ) + }, + [u, m.factor, b], + ), + (v = p * ((w && m.factor) || b)) + return he.createElement( + hj, + { + className: 'FIE_canvas-node', + tabIndex: -1, + ref: a, + width: f, + height: h, + scaleX: v, + scaleY: v, + x: (w && m.x) || null, + y: (w && m.y) || null, + zoomFactor: (w && m.factor) || b, + onWheel: w + ? function (e) { + e.evt.preventDefault() + var n = (m.factor || b) + -0.006 * e.evt.deltaY + t(gj(gj({}, (e = e.currentTarget.getPointerPosition())), {}, {factor: n})) + } + : void 0, + onTap: d, + onClick: d, + onTouchMove: w + ? function (e) { + return (function (e, t) { + e.evt.preventDefault() + var n, + r, + i, + o, + a, + l, + s = e.evt.touches[0], + c = e.evt.touches[1] + s && + c && + ((e = e.currentTarget).isDragging() && e.stopDrag(), + (s = {x: s.clientX, y: s.clientY}), + (c = {x: c.clientX, y: c.clientY}), + cj + ? ((n = sj(s, c)), + (a = s), + (l = c), + (l = Math.sqrt(Math.pow(l.x - a.x, 2) + Math.pow(l.y - a.y, 2))), + (uj = uj || l), + (a = (n.x - e.x()) / e.scaleX()), + (r = (n.y - e.y()) / e.scaleX()), + (e = e.scaleX() * (l / uj)), + (i = n.x - cj.x), + (o = n.y - cj.y), + (a = {x: n.x - a * e + i, y: n.y - r * e + o}), + (uj = l), + (cj = n), + t(lj(lj({}, a), {}, {factor: e, preparedDimensions: !0}))) + : (cj = sj(s, c))) + })(e, t) + } + : void 0, + onDragStart: function (e) { + 1 < (null == (e = e.evt.touches) ? void 0 : e.length) && x(!1) + }, + onTouchEnd: w + ? function () { + var e + ;(uj = 0), (cj = null), 'function' == typeof (e = n) && e() + } + : void 0, + dragBoundFunc: function (e) { + return { + x: Math.min(0, Math.max(e.x, f * (1 - m.factor))), + y: Math.min(0, Math.max(e.y, h * (1 - m.factor))), + } + }, + draggable: w && C, + onDragEnd: function (e) { + e.currentTarget.draggable() && + 'stage' === e.target.nodeType.toLowerCase() && + w && + C && + t({ + factor: m.factor, + x: e.target.x(), + y: e.target.y(), + preparedDimensions: !0, + }) + }, + style: y, + }, + e, + ) + }), + yj = fe.div.withConfig({componentId: 'sc-etsyb6-0'})( + ['display:inline-block;height:', ';width:', ';border-radius:1px;background:#dfe7ed;'], + function (e) { + return e.height + }, + function (e) { + return e.width + }, + ), + bj = function (e) { + var t = e.height + e = e.width + return he.createElement(yj, {height: t, width: e}) + }, + wj = ((bj.defaultProps = {height: '11px', width: '1px'}), ['color', 'size']), + Cj = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, wj) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M29.5089 27.2774C30.1253 27.8938 30.1253 28.8932 29.5089 29.5096C28.8925 30.126 27.8932 30.126 27.2768 29.5096L15.0002 17.2327L2.72342 29.5097C2.10703 30.1261 1.10767 30.1261 0.491282 29.5097C-0.125105 28.8934 -0.125105 27.894 0.491283 27.2776L12.7681 15.0006L0.491159 2.72344C-0.125226 2.10704 -0.125228 1.10766 0.49116 0.49126C1.10755 -0.125138 2.10691 -0.125139 2.72329 0.49126L15.0002 12.7684L27.2769 0.491449C27.8933 -0.124948 28.8927 -0.12495 29.5091 0.491449C30.1254 1.10785 30.1254 2.10723 29.5091 2.72363L17.2323 15.0006L29.5089 27.2774Z', + fill: n, + }), + ) + }), + xj = fe.div.withConfig({componentId: 'sc-21g986-0'})( + [ + 'padding:12px 12px 8px 12px;box-sizing:border-box;position:relative;width:100%;display:flex;align-items:center;justify-content:space-between;', + ";[data-phone='true'] &{padding:6px 6px 4px 6px;}", + ], + function (e) { + return e.reverseDirection ? 'flex-direction: row-reverse' : '' + }, + ), + Ej = fe(g_).withConfig({componentId: 'sc-21g986-1'})( + ['margin:', ';:first-of-type{margin:', ';}width:23px;height:23px;padding:4px;'], + function (e) { + return null != (e = e.margin) ? e : '0 4px' + }, + function (e) { + return null != (e = e.margin) ? e : '0 4px 0 8px' + }, + ), + Oj = fe(g_).withConfig({componentId: 'sc-21g986-2'})( + ['width:20px;height:20px;margin:0 ', ';padding:4px;'], + function (e) { + return null != (e = e.horizontalMargin) ? e : '4px' + }, + ), + Sj = fe.div.withConfig({componentId: 'sc-21g986-3'})( + ['display:flex;align-items:center;', ';'], + function (e) { + return e.reverseDirection ? 'flex-direction: row-reverse' : '' + }, + ), + kj = fe(Jb).withConfig({componentId: 'sc-21g986-4'})(['cursor:pointer;']), + Pj = fe.span.withConfig({componentId: 'sc-21g986-5'})(['font-size:11px;line-height:12px;']), + _j = fe(g_).withConfig({componentId: 'sc-21g986-6'})(['padding:0;z-index:111;']), + Lj = + (fe(PE).withConfig({componentId: 'sc-21g986-7'})(['padding:4px 12px;']), + fe(Pk).withConfig({componentId: 'sc-21g986-8'})(['width:200px;'])), + Tj = fe(Sk).withConfig({componentId: 'sc-21g986-9'})(['width:60px;margin-left:4px;']), + jj = fe.div.withConfig({componentId: 'sc-21g986-10'})(['width:100%;margin-top:8px;']), + Ij = fe.div.withConfig({componentId: 'sc-21g986-11'})(['margin-top:8px;width:100%;']), + Mj = function () { + var e = xw(), + t = e.haveNotSavedChanges, + n = e.config.onClose + return 'function' == typeof n + ? he.createElement( + _j, + { + className: 'FIE_topbar-close-button', + color: 'link', + size: 'sm', + onClick: function () { + n(Uv, t) + }, + }, + n && he.createElement(Cj, null), + ) + : he.createElement('span', null) + }, + Rj = ['color', 'size'], + Dj = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, Rj) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 26 26', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M17.3945 21.1062H8.60547C8.20098 21.1062 7.87305 21.4342 7.87305 21.8387C7.87305 22.2431 8.20098 22.5711 8.60547 22.5711H17.3945C17.799 22.5711 18.127 22.2431 18.127 21.8387C18.127 21.4342 17.799 21.1062 17.3945 21.1062Z', + fill: n, + }), + he.createElement('path', { + d: 'M17.3945 15.2469H8.60547C8.20098 15.2469 7.87305 15.5748 7.87305 15.9793C7.87305 16.3838 8.20098 16.7117 8.60547 16.7117H17.3945C17.799 16.7117 18.127 16.3838 18.127 15.9793C18.127 15.5748 17.799 15.2469 17.3945 15.2469Z', + fill: n, + }), + he.createElement('path', { + d: 'M17.3945 18.1765H8.60547C8.20098 18.1765 7.87305 18.5045 7.87305 18.909C7.87305 19.3135 8.20098 19.6414 8.60547 19.6414H17.3945C17.799 19.6414 18.127 19.3135 18.127 18.909C18.127 18.5045 17.799 18.1765 17.3945 18.1765Z', + fill: n, + }), + he.createElement('path', { + d: 'M16.6621 0.5H6.4082V6.84766H16.6621V0.5Z', + fill: n, + }), + he.createElement('path', { + d: 'M25.2854 4.6208L21.3792 0.714551C21.2418 0.577197 21.0556 0.5 20.8613 0.5H18.127V7.58008C18.127 7.98457 17.799 8.3125 17.3945 8.3125H5.67578C5.27129 8.3125 4.94336 7.98457 4.94336 7.58008V0.5H1.23242C0.82793 0.5 0.5 0.82793 0.5 1.23242V24.7676C0.5 25.1721 0.82793 25.5 1.23242 25.5C1.45923 25.5 24.463 25.5 24.7676 25.5C25.1721 25.5 25.5 25.1721 25.5 24.7676V5.13867C25.5 4.94443 25.4228 4.75815 25.2854 4.6208ZM19.5918 24.0352H6.4082V13.7812H19.5918V24.0352Z', + fill: n, + }), + ) + }), + Aj = {Xs: 'xs', Sm: 'sm', Md: 'md', Lg: 'lg', Xl: 'xl'}, + zj = l.exports.createContext({modalOpened: !1}), + Nj = + (n((Gv = {}), Aj.Xs, Bd(['max-width:300px;'])), + n(Gv, Aj.Sm, Bd(['max-width:600px;'])), + n(Gv, Aj.Md, Bd(['max-width:960px;'])), + n(Gv, Aj.Lg, Bd(['max-width:1280px;'])), + n(Gv, Aj.Xl, Bd(['max-width:1920px;'])), + Gv), + Hj = + ((hp = 'Modal'), + (rE = fe.div + .attrs({className: Fh(hp, 'Wrapper')}) + .withConfig({componentId: 'sc-80m07l-0'})(function (e) { + return Bd( + ['position:fixed;right:0px;bottom:0px;top:0px;left:0px;z-index:1200;visibility:', ';'], + e.open ? 'visible' : 'hidden', + ) + })), + (sv = fe.div + .attrs({className: Fh(hp, 'Overlay')}) + .withConfig({componentId: 'sc-80m07l-1'})(function (e) { + return Bd( + [ + 'position:fixed;right:0px;bottom:0px;top:0px;left:0px;background-color:rgba(0,0,0,0.5);z-index:-1;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms;opacity:', + ';', + ], + e.open ? '1' : '0', + ) + })), + (s = fe.div + .attrs({className: Fh(hp, 'Container')}) + .withConfig({componentId: 'sc-80m07l-2'})(function (e) { + var t = e.theme, + n = void 0 !== (n = e.open) && n, + r = e.fullWidth + e = void 0 === (e = e.maxWidth) ? Aj.Sm : e + return Bd( + [ + 'position:absolute;overflow-x:hidden;overflow-y:auto;transition:opacity 251ms cubic-bezier(0.4,0,0.2,1) 0ms,transform 167ms cubic-bezier(0.4,0,0.2,1) 0ms;outline:0;border-radius:', + ';background-color:', + ';box-shadow:0px 2px 4px ', + ';visibility:', + ';opacity:', + ';display:flex;max-height:calc(100% - 64px);flex-direction:column;', + ' ', + ' top:50%;left:50%;transform:translate(-50%,-50%);', + ], + t.shape.borderRadius[mp.Md], + t.palette[pp.BackgroundSecondary], + t.palette[pp.LightShadow], + n ? 'visible' : 'hidden', + n ? '1' : '0', + void 0 !== r && r && Bd(['width:calc(100% - 64px);']), + Nj[e], + ) + })), + Wh({ + Modal: fe.div + .attrs({className: Fh(hp, 'root')}) + .withConfig({componentId: 'sc-80m07l-3'})(function () { + return Bd([ + 'position:relative;padding-top:8px;padding-bottom:8px;margin:0;padding:0;outline:0;display:flex;flex-direction:column;', + ]) + }), + Wrapper: rE, + Overlay: sv, + Container: s, + })), + Fj = ['children', 'open', 'onClose', 'maxWidth', 'fullWidth'] + + function Bj(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + ;(Qb = Bh(function (e, t) { + function r() { + 'function' == typeof a && a() + } + + var i = e.children, + o = e.open, + a = e.onClose, + s = e.maxWidth, + c = e.fullWidth, + u = + ((e = Yc(e, Fj)), + (u = i) && + l.exports.isValidElement(u) && + 1 === he.Children.count(u) && + u.type === he.Fragment + ? i.props.children + : i) + i = document.querySelector('body') + return ( + l.exports.useEffect( + function () { + return ( + o + ? document.body.classList.add('Modal-open') + : document.body.classList.remove('Modal-open'), + function () { + document.body.classList.remove('Modal-open') + } + ) + }, + [o], + ), + l.exports.useEffect(function () { + function e(e) { + 'Escape' === e.key && r() + } + + return ( + document.addEventListener('keydown', e), + function () { + return document.removeEventListener('keydown', e) + } + ) + }), + pe.exports.createPortal( + he.createElement( + zj.Provider, + {value: {modalOpened: Boolean(o)}}, + he.createElement( + Hj.Wrapper, + {open: Boolean(o), ref: t}, + he.createElement(Hj.Overlay, {onClick: r, open: Boolean(o)}), + he.createElement( + Hj.Container, + Ip({}, e, {maxWidth: s, fullWidth: c, open: Boolean(o)}), + he.createElement( + Hj.Modal, + null, + he.Children.map(u, function (e) { + return l.exports.isValidElement(e) && 'ModalTitle' === e.type.displayName + ? he.cloneElement( + e, + (function (e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? Bj(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : Bj(Object(r)).forEach(function (t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(r, t), + ) + }) + } + return e + })({onClose: r}, e.props || {}), + ) + : e + }), + ), + ), + ), + ), + i, + ) + ) + })), + (Qb.defaultProps = {open: !1, fullWidth: !1, maxWidth: Aj.Xs}), + (Yb = { + onClose: on.func.isRequired, + children: on.node.isRequired, + maxWidth: on.oneOf(Vh(Aj)), + open: on.bool, + fullWidth: on.bool, + }) + var Vj = ((Qb.propTypes = Yb), Qb), + Wj = {Left: 'left', Center: 'center', Right: 'right'}, + Gj = Wh({ + ModalActions: fe.div + .attrs({className: Fh('ModalActions', 'root')}) + .withConfig({componentId: 'sc-1wg6u00-0'})(function (e) { + return Bd( + [ + 'position:relative;display:flex;align-items:center;padding:12px 16px;justify-content:', + ';> *:not(:first-child){margin-left:8px;}', + ], + (e = void 0 === (e = e.align) ? Wj.Center : e) === Wj.Right ? 'flex-end' : e, + ) + }), + }), + Zj = ['children'], + Uj = + ((RC = Bh(function (e, t) { + var n = e.children + e = Yc(e, Zj) + return he.createElement(Gj.ModalActions, Ip({}, e, {ref: t}), n) + })), + (RC.defaultProps = {align: Wj.Center}), + (RC.propTypes = { + children: on.node.isRequired, + align: on.oneOf(Vh(Wj)), + }), + (RC.displayName = 'ModalActions'), + RC), + Xj = Wh({ + ModalContent: fe.div + .attrs({className: Fh('ModalContent', 'root')}) + .withConfig({componentId: 'sc-1ng1w0v-0'})(function () { + return Bd(['position:relative;padding:15px 16px;']) + }), + }), + Yj = ['children'], + qj = + ((DC = Bh(function (e, t) { + var n = e.children + e = Yc(e, Yj) + return he.createElement(Xj.ModalContent, Ip({}, e, {ref: t}), n) + })), + (DC.defaultProps = {}), + (DC.propTypes = {children: on.node.isRequired}), + (DC.displayName = 'ModalContent'), + DC), + $j = {Default: 'default', WithIcon: 'with-icon'}, + Kj = + ((bp = 'ModalTitle'), + (Zr = fe.div.attrs({className: Fh(bp, 'Icon')}).withConfig({componentId: 'sc-l3tf49-0'})( + function (e) { + return Bd( + [ + 'display:flex;margin-bottom:8px;padding:12.5px;border-radius:50%;background:', + ';color:', + ';', + ], + (e = e.theme.palette)[pp.BackgroundPrimary], + e[pp.AccentPrimary], + ) + }, + )), + (kr = fe.div + .attrs({className: Fh(bp, 'LabelPrimary')}) + .withConfig({componentId: 'sc-l3tf49-1'})(function () { + return Bd(['font-size:16px;line-height:18px;']) + })), + (Pp = fe.div + .attrs({className: Fh(bp, 'LabelSecondary')}) + .withConfig({componentId: 'sc-l3tf49-2'})([ + 'font-size:12px;line-height:14px;margin-top:4px;', + ])), + (a = fe.div.attrs({className: Fh(bp, 'Close')}).withConfig({componentId: 'sc-l3tf49-3'})( + function (e) { + var t = void 0 === (t = e.variant) ? $j.Default : t + e = e.theme.palette + return Bd( + [ + 'position:absolute;display:flex;top:', + 'px;right:', + 'px;color:', + ';&:hover{color:', + ';}cursor:pointer;', + ], + t === $j.WithIcon ? 12 : 16, + t === $j.WithIcon ? 12 : 16, + e[pp.IconsSecondary], + e[pp.IconsPrimary], + ) + }, + )), + Wh({ + ModalTitle: fe.div + .attrs({className: Fh(bp, 'root')}) + .withConfig({componentId: 'sc-l3tf49-4'})(function (e) { + var t = void 0 === (n = e.variant) ? $j.Default : n, + n = ((e = (n = e.theme).palette), n.shape.borderRadius) + return Bd( + ['position:relative;color:', ';border-radius:', 'px ', 'px 0px 0px;', ' ', ' ', ''], + e[pp.TextPrimary], + n[mp.Md], + n[mp.Md], + function () { + var e = t === $j.WithIcon ? 12 : 11 + return Bd( + ['padding:', 'px ', 'px ', 'px ', 'px;'], + e, + t === $j.WithIcon ? 18 : 40, + e, + 18, + ) + }, + t === $j.Default && + Bd( + ['background:', ';border-bottom:1px solid ', ';'], + e[pp.BackgroundPrimary], + e[pp.BordersSecondary], + ), + t === $j.WithIcon && Bd(['display:flex;align-items:center;flex-direction:column;']), + ) + }), + LabelPrimary: kr, + LabelSecondary: Pp, + Close: a, + Icon: Zr, + })), + Qj = ['secondary', 'onClose'], + Jj = + ((WE = Bh(function (e, t) { + var n = e.secondary, + r = e.onClose + e = Yc(e, Qj) + return he.createElement( + Kj.ModalTitle, + Ip({}, e, {ref: t}), + e.icon && he.createElement(Kj.Icon, {iconShadow: Boolean(e.iconShadow)}, e.icon), + he.createElement(Kj.LabelPrimary, null, e.primary), + e.variant === $j.WithIcon && n && he.createElement(Kj.LabelSecondary, null, n), + he.createElement( + Kj.Close, + {variant: e.variant, onClick: r}, + he.createElement(uk, {size: 11}), + ), + ) + })), + (Zv = + ((WE.defaultProps = {iconShadow: !0, variant: $j.Default}), + (WE.propTypes = { + primary: on.node.isRequired, + secondary: on.node, + icon: on.node, + iconShadow: on.bool, + onClose: on.func, + variant: on.oneOf(Vh($j)), + }), + (WE.displayName = 'ModalTitle'), + WE)), + {Happy: 'happy', Neutral: 'neutral', Sad: 'sad', Worried: 'worried'}), + eI = Wh({ + Robot: fe.span + .attrs({className: Fh('Robot', 'root')}) + .withConfig({componentId: 'sc-q3dl9f-0'})(function () { + return Bd(['display:flex;']) + }), + }), + tI = ['status'], + nI = + ((Kb = Bh(function (e, t) { + var n = e.status + e = Yc(e, tI) + return he.createElement( + eI.Robot, + Ip({}, e, {ref: t}), + (function (e) { + switch (e) { + case Jj.Worried: + return he.createElement(ak, null) + case Jj.Sad: + return he.createElement(ik, null) + case Jj.Neutral: + return he.createElement(nk, null) + default: + return he.createElement(ek, null) + } + })(n), + ) + })), + (_v = {status: Jj.Happy}), + (Gv = ((Kb.defaultProps = _v), {status: on.oneOf(Vh(Jj))})), + (Kb.propTypes = Gv), + Kb), + rI = + ((hp = 'PopupContent'), + (rE = fe.span + .attrs({className: Fh(hp, 'Label')}) + .withConfig({componentId: 'sc-njbmnt-0'})(function (e) { + var t = (e = e.theme).palette + e = e.shape + return Bd( + [ + 'display:flex;flex-grow:1;margin-left:31px;padding:8px 8px 8px 39px;background:', + ';border-radius:', + ';min-height:41px;', + ], + t[pp.ButtonPrimaryText], + e.borderRadius[mp.Sm], + ) + })), + (sv = fe.span + .attrs({className: Fh(hp, 'Label')}) + .withConfig({componentId: 'sc-njbmnt-1'})(function (e) { + var t = (e = e.theme).palette + e = e.typography.font + return Bd( + ['display:flex;align-items:center;color:', ';', ''], + t[pp.TextSecondary], + e[gp.LabelSmall], + ) + })), + Wh({ + PopupContent: fe.div + .attrs({className: Fh(hp, 'PopupContent')}) + .withConfig({componentId: 'sc-njbmnt-2'})([ + 'position:relative;display:flex;align-items:center;width:256px;filter:drop-shadow(0px 4px 4px rgba(0,0,0,0.25));', + ]), + Robot: fe.div + .attrs({className: Fh(hp, 'Robot')}) + .withConfig({componentId: 'sc-njbmnt-3'})(function (e) { + return Bd( + [ + 'position:absolute;left:0;display:flex;z-index:1;border-radius:50%;background:', + ';border:1px solid ', + ';box-sizing:border-box;', + ], + (e = e.theme.palette)[pp.ButtonPrimaryText], + e[pp.BackgroundSecondary], + ) + }), + LabelWrapper: rE, + Label: sv, + })), + iI = ['message', 'status'] + + function oI(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function aI(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? oI(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : oI(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + var lI = Bh(function (e, t) { + var n = e.message, + r = e.status + e = Yc(e, iI) + return he.createElement( + rI.PopupContent, + Ip({}, e, {ref: t}), + he.createElement(rI.Robot, null, he.createElement(nI, {status: r})), + he.createElement(rI.LabelWrapper, null, he.createElement(rI.Label, null, n)), + ) + }), + sI = + ((s = aI({}, _v)), + (Yb = ((lI.defaultProps = s), aI(aI({}, Gv), {}, {message: on.node.isRequired}))), + (lI.propTypes = Yb), + {Center: 'center', Left: 'left', Right: 'right'}), + cI = {Top: 'top', Bottom: 'bottom'}, + uI = + (n((Qb = {}), sI.Left, Bd(['left:25px;right:auto;'])), + n(Qb, sI.Center, Bd(['left:50%;right:auto;transform:translateX(-50%);'])), + n(Qb, sI.Right, Bd(['left:auto;right:25px;'])), + Qb), + dI = + (n((RC = {}), cI.Top, Bd(['top:25px;bottom:auto;'])), + n(RC, cI.Bottom, Bd(['top:auto;bottom:25px;'])), + RC), + fI = Wh({ + Popup: fe.div + .attrs({className: Fh('Popup', 'root')}) + .withConfig({componentId: 'sc-jmtjri-0'})(function (e) { + return ( + (e = e.anchorOrigin), + Bd( + [ + 'position:fixed;display:flex;align-items:center;justify-content:center;z-index:1400;', + ' ', + '', + ], + uI[(null == e ? void 0 : e.horizontal) || sI.Left], + dI[(null == e ? void 0 : e.vertical) || cI.Bottom], + ) + ) + }), + }), + hI = ['autoHideDuration', 'anchorOrigin', 'open', 'onClose'] + + function pI(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function gI(e) { + for (var t = 1; t < arguments.length; t++) { + var r = null != arguments[t] ? arguments[t] : {} + t % 2 + ? pI(Object(r), !0).forEach(function (t) { + n(e, t, r[t]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : pI(Object(r)).forEach(function (t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)) + }) + } + return e + } + + DC = Bh(function (e, t) { + var n = e.autoHideDuration, + r = (e.anchorOrigin, e.open), + i = e.onClose, + o = Yc(e, hI), + a = Kx(Fh('Popup')) + return ( + l.exports.useEffect( + function () { + var e = null + return ( + r && n && 'function' == typeof i && (e = setTimeout(i, n)), + function () { + e && clearTimeout(e) + } + ) + }, + [n, r, i], + ), + pe.exports.createPortal( + r ? he.createElement(fI.Popup, e, he.createElement(lI, Ip({}, o, {ref: t}))) : null, + a, + ) + ) + }) + var mI = + ((DC.defaultProps = gI( + gI({}, s), + {}, + {open: !1, anchorOrigin: {vertical: cI.Bottom, horizontal: sI.Left}}, + )), + (DC.propTypes = gI( + gI({}, Yb), + {}, + { + anchorOrigin: on.exact({ + vertical: on.oneOf(Vh(cI)), + horizontal: on.oneOf(Vh(sI)), + }), + open: on.bool, + autoHideDuration: on.number, + onClose: on.func, + }, + )), + DC), + vI = fe(Zv).withConfig({componentId: 'sc-kpjpf5-0'})([ + '.SfxModalTitle-LabelPrimary{font-size:14px;line-height:16px;font-weight:500;}', + ]) + + function yI(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function bI(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? yI(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : yI(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function wI(e) { + var t = e.title, + n = e.hint, + r = e.Icon, + i = e.onDone, + o = e.onCancel, + a = e.doneLabel, + l = e.cancelLabel, + s = e.isOpened, + c = e.doneButtonStyle, + u = void 0 === (u = e.doneButtonColor) ? 'link' : u, + d = void 0 === (d = e.cancelButtonColor) ? 'link' : d, + f = e.children, + h = e.areButtonsDisabled, + p = e.zIndex + e = e.className + return he.createElement( + Vj, + { + className: e, + open: s, + onClose: o, + style: bI(bI({}, CI), {}, {zIndex: p}), + onKeyUp: function (e) { + 'Enter' === e.key && i(e) + }, + }, + he.createElement(vI, { + icon: he.createElement(r, {size: 25}), + iconShadow: !0, + onClose: o, + primary: t, + secondary: n, + variant: 'with-icon', + }), + f && he.createElement(qj, null, f), + he.createElement( + Uj, + {align: 'center'}, + he.createElement(PE, {color: d, onClick: o, size: 'md', disabled: h}, l), + he.createElement(PE, {color: u, onClick: i, size: 'md', style: c, disabled: h}, a), + ), + ) + } + + var CI = {width: 300} + + function xI(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function EI(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? xI(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : xI(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function OI() { + var e = (t = xw().config).showBackButton, + t = t.disableZooming, + n = uC() + return he.createElement( + xj, + {reverseDirection: e, className: 'FIE_topbar'}, + he.createElement( + Sj, + {reverseDirection: e, className: 'FIE_topbar-buttons-wrapper'}, + n + ? he.createElement( + 'div', + null, + he.createElement(RI, null), + he.createElement( + 'div', + { + style: {marginTop: 6}, + className: 'FIE_topbar-history-buttons', + }, + he.createElement(HI, {margin: '0'}), + he.createElement(VI, {margin: '0'}), + he.createElement(ZI, {margin: '0'}), + ), + ) + : he.createElement( + he.Fragment, + null, + he.createElement(RI, null), + he.createElement( + 'div', + {className: 'FIE_topbar-history-buttons'}, + he.createElement(HI, null), + he.createElement(VI, null), + he.createElement(ZI, null), + ), + ), + ), + he.createElement( + Sj, + {className: 'FIE_topbar-center-options'}, + he.createElement(YI, null), + !t && + he.createElement( + he.Fragment, + null, + he.createElement(bj, null), + he.createElement(eM, null), + ), + ), + e ? he.createElement(tM, null) : he.createElement(Mj, null), + ) + } + + function SI(e) { + var t = e.id, + n = e.label, + r = e.Icon, + i = e.isSelected, + o = e.onClick + e = l.exports.useCallback( + function () { + 'function' == typeof o && o(t) + }, + [t], + ) + return he.createElement( + rM, + {className: 'FIE_tab', 'aria-selected': i, onClick: e}, + he.createElement(r, null), + n && he.createElement(iM, {className: 'FIE_tab-label'}, n), + ) + } + + function kI() { + var e = (s = xw()).t, + t = s.dispatch, + n = s.tabId, + r = void 0 === n ? null : n, + i = (n = s.config).tabsIds, + o = n.defaultTabId, + a = n.useCloudimage, + s = l.exports.useMemo( + function () { + var e = [] + return ( + 0 < Object.keys(i).length + ? fM.forEach(function (t) { + var n = i.indexOf(t.id) + ;-1 !== n && (e[n] = t) + }) + : (e = fM), + (0 < e.length ? e : fM).filter(function (e) { + return !(e = e.hideFn) || !e({useCloudimage: a}) + }) + ) + }, + [i], + ), + c = l.exports.useCallback(function (e) { + t({type: F_, payload: {tabId: e}}) + }, []) + return 1 === s.length + ? null + : he.createElement( + nM, + {className: 'FIE_tabs'}, + s.map(function (t) { + var n = t.id, + i = t.labelKey + t = t.icon + return he.createElement(oM, { + key: n, + id: n, + label: e(i), + Icon: t, + isSelected: (r || o) === n, + onClick: c, + }) + }), + ) + } + + function PI() { + var e = (s = xw()).t, + t = s.dispatch, + n = s.tabId, + r = s.toolId, + i = s.annotations, + o = s.selectionsIds, + a = void 0 === o ? [] : o, + s = (o = s.config).defaultTabId, + c = o.defaultToolId, + u = o.useCloudimage, + d = n || s, + f = r || c || (null == (o = z_[d]) ? void 0 : o[0]), + h = l.exports.useMemo( + function () { + return z_[d] || [] + }, + [d], + ), + p = l.exports.useCallback(function (e) { + t({type: dL, payload: {toolId: e}}) + }, []) + ;(n = l.exports.useMemo( + function () { + return h.map(function (t) { + var n = (r = A_[t]).Item, + r = r.hideFn + return ( + n && + (!r || !r({useCloudimage: u})) && + he.createElement(n, { + key: t, + selectTool: p, + t: e, + isSelected: f === t, + }) + ) + }) + }, + [h, f], + )), + (s = l.exports.useMemo( + function () { + if (!f) return !1 + if (d === Dv.ANNOTATE) { + var e, + t = a.length + if (1 === t) return (e = i[a[0]]), null == (e = A_[e.name]) ? void 0 : e.ItemOptions + if (1 < t) return null + } + return ( + d && + f && + z_[d].includes(f) && + (!(null != (e = A_[r]) && e.hideFn) || + !(null != (t = A_[r]) && t.hideFn({useCloudimage: u}))) && + (null == (e = A_[r]) ? void 0 : e.ItemOptions) + ) + }, + [d, f, i, a], + )) + return ( + l.exports.useEffect(function () { + !r && f && t({type: dL, payload: {toolId: f}}) + }, []), + he.createElement( + ew, + {className: 'FIE_tools-bar-wrapper'}, + he.createElement(hM, null, s && he.createElement(s, {t: e})), + n && he.createElement(tw, {className: 'FIE_tools-bar'}, n), + ) + ) + } + + function _I(e) { + e = e.anchorOrigin + var t = xw(), + n = void 0 === (n = t.feedback) ? {} : n, + r = t.dispatch + return n.message + ? he.createElement(mI, { + className: 'FIE_feedback-robot', + anchorOrigin: e, + autoHideDuration: null != (t = n.duration) ? t : 5e3, + message: n.message, + open: !!n.message, + status: pM[n.status || Yv], + onClose: function () { + r({type: Nb, payload: {feedback: {}}}) + }, + }) + : null + } + + function LI(e) { + return ( + (e = e.label), + he.createElement( + gM, + {className: 'FIE_spinner-wrapper'}, + he.createElement(mM, {className: 'FIE_spinner'}), + e && he.createElement(Jb, {className: 'FIE_spinner-label'}, e), + ) + ) + } + + wI.defaultProps = { + hint: '', + isOpened: !1, + doneLabel: 'Yes', + cancelLabel: 'No', + doneButtonStyle: void 0, + doneButtonColor: 'link', + cancelButtonColor: 'link', + children: void 0, + areButtonsDisabled: !1, + zIndex: void 0, + className: void 0, + } + var TI = {marginBottom: 16}, + jI = {width: 67}, + II = {marginLeft: 12}, + MI = !0, + RI = function () { + function e() { + function e() { + s({type: ey}) + } + + var t = P(S, !1, !0) + ;(t = (o.current || b)(t.imageData, t.designState)) instanceof Promise ? t.finally(e) : e(), + (o.current = null), + v && m && m('after-saving', f) + } + + function t() { + if ('function' != typeof (o.current || b)) + throw new Error('Please provide onSave function handler.') + return S.name && S.extension + ? void L() + : void s({ + type: Nb, + payload: {feedback: {message: p('nameIsRequired')}}, + }) + } + + function n() { + var e + return x + ? ((e = P(S)), void (o.current || b)(e.imageData, e.designState)) + : o.current || 'function' != typeof y || !1 !== y(S) + ? void O(!0) + : void t() + } + + function r(e, t) { + if ('function' != typeof e) + throw new Error( + 'onSave function callback is required as an argument to the passed function.', + ) + ; + (o.current = e), t() + } + + var i = xw(), + o = l.exports.useRef(), + a = i.theme, + s = i.dispatch, + c = i.originalImage, + u = i.resize, + d = i.isLoadingGlobally, + ssb = i.config.showSaveButton, + f = i.haveNotSavedChanges, + h = i.feedback, + p = i.t, + g = (_ = void 0 === (_ = i.adjustments) ? {} : _).crop, + m = (_ = i.config).onClose, + v = _.closeAfterSave, + y = _.onBeforeSave, + b = _.onSave, + w = _.forceToPngInEllipticalCrop, + C = _.defaultSavedImageType, + x = _.useCloudimage, + E = ((i = _.moreSaveOptions), (_ = jp(l.exports.useState(!1), 2))[0]), + O = _[1], + S = (_ = jp(l.exports.useState({quality: 0.92}), 2))[0], + k = _[1], + P = TC(), + _ = ['jpeg', 'jpg', 'webp'].includes(S.extension), + L = + ((h = 0 === h.duration), + function () { + s({type: Bb}), O(!1), setTimeout(e, 3) + }) + l.exports.useEffect( + function () { + var e, t + !c || + (S.name && S.extension) || + ((e = (t = wC( + c.name, + w && g.ratio === Vv ? 'png' : zv.includes(null == C ? void 0 : C.toLowerCase()) && C, + )).name), + (t = t.extension), + k(EI(EI({}, S), {}, {name: e, extension: t}))) + }, + [c, E], + ), + l.exports.useEffect( + function () { + k(EI(EI({}, S), {}, {size: {width: u.width, height: u.height}})) + }, + [u], + ), + l.exports.useEffect(function () { + return ( + (MI = !0), + function () { + MI = !1 + } + ) + }, []), + (i = + Array.isArray(i) && 0 < i.length + ? i.map(function (e, t) { + return EI( + EI({}, e), + {}, + { + key: ''.concat(e.label || t, '-option-key'), + onClick: + 'function' == typeof e.onClick + ? function () { + return e.onClick( + function (e) { + return r(e, n) + }, + function (e) { + return r(e, L) + }, + ) + } + : void 0, + }, + ) + }) + : []) + return he.createElement( + he.Fragment, + null, + ssb + ? he.createElement(c_, { + className: 'FIE_topbar-save', + color: 'primary', + label: p('save'), + onClick: n, + menuPosition: 'bottom', + menuItems: i, + menuStyle: II, + wrapperStyle: jI, + disabled: d || h, + }) + : '', + E && + he.createElement( + wI, + { + className: 'FIE_save-modal', + title: p('saveAsModalLabel'), + Icon: function (e) { + return he.createElement(Dj, Ip({color: a.palette['accent-primary']}, e)) + }, + isOpened: E, + onCancel: function () { + MI && E && ((o.current = null), O(!1)) + }, + onDone: t, + doneLabel: p('save'), + cancelLabel: p('cancel'), + doneButtonColor: 'primary', + areButtonsDisabled: d, + zIndex: 11110, + }, + he.createElement(Lj, { + className: 'FIE_save-file-name-input', + value: S.name, + onChange: function (e) { + ;(e = e.target.value), k(EI(EI({}, S), {}, {name: e})) + }, + size: 'sm', + placeholder: p('name'), + error: !!S.name, + focusOnMount: !0, + }), + he.createElement( + Tj, + { + className: 'FIE_save-extension-selector', + onChange: function (e) { + return k(EI(EI({}, S), {}, {extension: e})) + }, + value: S.extension, + placeholder: p('extension'), + size: 'sm', + }, + zv.map(function (e) { + return he.createElement(YE, {key: e, value: e}, e) + }), + ), + _ && + he.createElement( + jj, + {className: 'FIE_save-quality-wrapper'}, + he.createElement(Jb, null, p('quality')), + he.createElement(GC, { + annotation: '%', + min: 1, + max: 100, + onChange: function (e) { + k(EI(EI({}, S), {}, {quality: Iw(e / 100, 0.01, 1)})) + }, + value: parseInt(100 * S.quality, 10), + width: '100%', + style: TI, + }), + ), + he.createElement( + Ij, + {className: 'FIE_save-resize-wrapper'}, + he.createElement(Jb, null, p('resize')), + he.createElement(s_, { + onChange: function (e) { + k(EI(EI({}, S), {}, {size: EI(EI({}, S.size), e)})) + }, + currentSize: (null == S ? void 0 : S.size) || {}, + hideResetButton: !0, + alignLeft: !0, + }), + ), + ), + ) + }, + DI = ['color', 'size'], + AI = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, DI) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M8.98975 13.4455C11.7193 7.13719 18.2352 2.96448 25.4662 3.53775C32.897 4.12687 38.7924 9.54635 40.3073 16.4736C40.4916 17.3166 41.3245 17.8505 42.1675 17.6662C43.0105 17.4818 43.5445 16.649 43.3601 15.8059C41.5594 7.57149 34.5543 1.12345 25.7131 0.422526C17.1213 -0.258635 9.38658 4.69317 6.13434 12.1755L3.89818 6.84608C3.56429 6.05034 2.64855 5.67594 1.85282 6.00982C1.05708 6.3437 0.682677 7.25944 1.01656 8.05518L4.73787 16.9241C4.89821 17.3062 5.20378 17.609 5.58736 17.7658C5.97094 17.9226 6.40111 17.9206 6.78323 17.7603L15.6521 14.039C16.4478 13.7051 16.8222 12.7894 16.4884 11.9936C16.1545 11.1979 15.2387 10.8235 14.443 11.1574L8.98975 13.4455Z', + fill: n, + }), + he.createElement('path', { + d: 'M7.97987 23.3944C7.80368 22.5497 6.97603 22.0077 6.13126 22.1839C5.2865 22.3601 4.74451 23.1877 4.92071 24.0325C6.65659 32.3552 13.7002 38.8943 22.6071 39.6004C31.0811 40.2722 38.7213 35.4646 42.0496 28.154L44.2049 33.1157C44.5487 33.9072 45.4691 34.2701 46.2606 33.9263C47.0521 33.5825 47.415 32.6621 47.0712 31.8706L43.2414 23.0543C42.8976 22.2628 41.9772 21.8999 41.1857 22.2437L32.3694 26.0734C31.5779 26.4173 31.215 27.3376 31.5588 28.1291C31.9026 28.9206 32.823 29.2835 33.6145 28.9397L39.3938 26.4292C36.7027 32.8203 30.1416 37.063 22.8541 36.4852C15.3678 35.8917 9.4401 30.3955 7.97987 23.3944Z', + fill: n, + }), + ) + }), + zI = ['color', 'size'], + NI = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, zI) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M48.9856 38.314L31.3034 3.80423C29.9688 1.42247 27.6118 0 24.9985 0C22.3852 0 20.0282 1.42247 18.6936 3.80423C18.6836 3.82245 18.6751 3.84067 18.665 3.8589L1.04158 38.2594C-0.321602 40.6914 -0.347383 43.612 0.971367 46.0713C2.29314 48.5321 4.67439 50 7.345 50H42.5544C45.225 50 47.7041 48.5321 49.0258 46.0713C50.3445 43.6121 50.3188 40.6913 48.9856 38.314ZM22.0659 15.8013C22.0659 14.0842 23.3789 12.6924 24.9985 12.6924C26.6182 12.6924 27.9311 14.0843 27.9311 15.8013V28.2372C27.9311 29.9541 26.6181 31.3462 24.9985 31.3462C23.3789 31.3462 22.0659 29.954 22.0659 28.2372V15.8013ZM24.9985 43.7821C22.5728 43.7821 20.5995 41.6902 20.5995 39.1186C20.5995 36.5471 22.5727 34.4552 24.9985 34.4552C27.4242 34.4552 29.3974 36.5471 29.3974 39.1186C29.3975 41.6901 27.4243 43.7821 24.9985 43.7821Z', + fill: n, + }), + ) + }), + HI = function (e) { + function t() { + d(!1) + } + + e = e.margin + var n = (c = xw()).dispatch, + r = void 0 === (r = c.isResetted) || r, + i = c.theme, + o = c.feedback, + a = c.t, + s = c.config, + c = 0 === o.duration, + u = (o = jp(l.exports.useState(!1), 2))[0], + d = o[1] + o = l.exports.useCallback( + function () { + n({type: Db, payload: {config: s}}), t() + }, + [s], + ) + return he.createElement( + he.Fragment, + null, + he.createElement( + Ej, + { + className: 'FIE_topbar-reset-button', + color: 'link', + onClick: r + ? void 0 + : function () { + d(!0) + }, + disabled: r || c, + title: a('resetOperations'), + margin: e, + }, + he.createElement(AI, {size: 12}), + ), + u && + he.createElement(wI, { + title: a('changesLoseConfirmation'), + hint: a('changesLoseConfirmationHint'), + isOpened: u, + onCancel: t, + onDone: o, + Icon: function () { + return he.createElement(NI, { + color: i.palette.warning, + size: 25, + }) + }, + doneLabel: a('continue'), + cancelLabel: a('cancel'), + doneButtonColor: 'error', + doneButtonStyle: {background: i.palette.warning}, + }), + ) + }, + FI = ((HI.defaultProps = {margin: void 0}), ['color', 'size']), + BI = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, FI) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 40 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M39.5112 31.2036C39.5112 41.568 31.0785 50 20.7148 50H14.0613C12.9587 50 12.0652 49.1066 12.0652 48.004V47.3386C12.0652 46.2359 12.9586 45.3425 14.0613 45.3425H20.7148C28.5107 45.3425 34.8537 38.9995 34.8537 31.2036C34.8537 23.4078 28.5107 17.0648 20.7148 17.0648H8.4394L16.8935 25.5189C17.8015 26.4266 17.8015 27.9042 16.8935 28.8119C16.0124 29.6923 14.479 29.691 13.5999 28.8119L1.17111 16.3828C0.731285 15.943 0.488892 15.3581 0.488892 14.7359C0.488892 14.1142 0.731285 13.529 1.17111 13.0894L13.6006 0.65976C14.4797 -0.220001 16.0144 -0.220001 16.8936 0.65976C17.8016 1.56722 17.8016 3.04511 16.8936 3.95246L8.43951 12.4072H20.7148C31.0785 12.4072 39.5112 20.8395 39.5112 31.2036Z', + fill: n, + }), + ) + }), + VI = function (e) { + e = e.margin + var t = (i = xw()).dispatch, + n = void 0 !== (n = i.hasUndo) && n, + r = i.t, + i = 0 === i.feedback.duration, + o = l.exports.useCallback(function () { + t({type: W_}) + }, []) + return he.createElement( + Ej, + { + className: 'FIE_topbar-undo-button', + color: 'link', + onClick: n ? o : void 0, + disabled: !n || i, + title: r('undoTitle'), + margin: e, + }, + he.createElement(BI, {size: 12}), + ) + }, + WI = ((VI.defaultProps = {margin: void 0}), ['color', 'size']), + GI = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, WI) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 40 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M0.98 31.2037C0.98 41.568 9.41216 50 19.7752 50H26.4284C27.5309 50 28.4244 49.1066 28.4244 48.004V47.3386C28.4244 46.2359 27.531 45.3425 26.4284 45.3425H19.7752C11.9798 45.3425 5.6372 38.9995 5.6372 31.2037C5.6372 23.4079 11.9798 17.0648 19.7752 17.0648H32.05L23.5964 25.5189C22.6884 26.4266 22.6884 27.9043 23.5964 28.812C24.4774 29.6924 26.0107 29.6911 26.8897 28.812L39.3178 16.3828C39.7576 15.943 40 15.3582 40 14.736C40 14.1142 39.7576 13.5291 39.3178 13.0895L26.8891 0.659821C26.01 -0.21994 24.4754 -0.21994 23.5962 0.659821C22.6883 1.56728 22.6883 3.04517 23.5962 3.95252L32.0498 12.4073H19.7752C9.41216 12.4073 0.98 20.8396 0.98 31.2037Z', + fill: n, + }), + ) + }), + ZI = function (e) { + e = e.margin + var t = (r = xw()).dispatch, + n = void 0 !== (n = r.hasRedo) && n, + r = r.t, + i = l.exports.useCallback(function () { + t({type: Ib}) + }, []) + return he.createElement( + Ej, + { + className: 'FIE_topbar-redo-button', + color: 'link', + onClick: n ? i : void 0, + disabled: !n, + title: r('redoTitle'), + margin: e, + }, + he.createElement(GI, {size: 12}), + ) + }, + UI = ((ZI.defaultProps = {margin: void 0}), ['color', 'size']), + XI = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, UI) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M27.1607 4.16667V2.08333C27.1607 0.93274 26.2279 0 25.0773 0C23.9267 0 22.994 0.932741 22.994 2.08333V4.16667H4.244C1.94281 4.16667 0.0773315 6.03215 0.0773315 8.33333V41.6667C0.0773315 43.9679 1.94281 45.8333 4.244 45.8333H22.994V47.9167C22.994 49.0673 23.9267 50 25.0773 50C26.2279 50 27.1607 49.0673 27.1607 47.9167V45.8333H45.9107C48.2118 45.8333 50.0773 43.9678 50.0773 41.6667V8.33333C50.0773 6.03215 48.2119 4.16667 45.9107 4.16667H27.1607ZM22.994 8.33333H4.244L4.244 41.6667H22.994V8.33333ZM27.1607 41.6667V8.33333H45.9107V41.6667H27.1607Z', + fill: n, + }), + ) + }), + YI = function () { + function e() { + t({type: sL, payload: {isShow: !0}}), + document.addEventListener('mouseup', c), + document.addEventListener('mouseleave', c), + document.addEventListener('touchcancel', c), + document.addEventListener('touchend', c) + } + + var t = (s = xw()).dispatch, + n = void 0 === (n = s.isResetted) || n, + r = s.originalImage, + i = s.resize, + o = (a = s.adjustments).crop, + a = a.rotation, + l = s.shownImageDimensions, + s = s.t, + c = function () { + t({type: sL, payload: {isShow: !1}}), + document.removeEventListener('mouseup', c), + document.removeEventListener('mouseleave', c), + document.removeEventListener('touchcancel', c), + document.removeEventListener('touchend', c) + } + return r + ? ((i = l_(void 0 === i ? {} : i, o, l, r, void 0 === a ? 0 : a)), + he.createElement( + he.Fragment, + null, + he.createElement( + Jb, + {title: s('imageDimensionsHoverTitle')}, + ''.concat(i.width, ' x ').concat(i.height, ' px'), + ), + he.createElement( + Oj, + { + color: 'link', + horizontalMargin: '8px', + onMouseDown: n ? void 0 : e, + onTouchStart: n ? void 0 : e, + disabled: n, + title: s('showImageTitle'), + }, + he.createElement(XI, null), + ), + )) + : null + }, + qI = ['color', 'size'], + $I = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, qI) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M3.27478 28.001H47.2746C48.9318 28.001 50.2749 26.6579 50.2749 25.0003C50.2749 23.3431 48.9322 22 47.2746 22H3.27478C1.61803 22.0004 0.274902 23.3435 0.274902 25.0007C0.274902 26.6579 1.61803 28.001 3.27478 28.001Z', + fill: n, + }), + ) + }), + KI = ['color', 'size'], + QI = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, KI) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M47.7746 22.4999H27.775V2.49984C27.775 1.12014 26.6548 0 25.2747 0C23.895 0 22.7748 1.12014 22.7748 2.49984V22.4999H2.77474C1.39505 22.4999 0.274902 23.6201 0.274902 24.9998C0.274902 26.3799 1.39505 27.5001 2.77474 27.5001H22.7748V47.4997C22.7748 48.8799 23.895 50 25.2747 50C26.6548 50 27.775 48.8799 27.775 47.4997V27.5001H47.7746C49.1548 27.5001 50.2749 26.3799 50.2749 24.9998C50.2749 23.6201 49.1548 22.4999 47.7746 22.4999Z', + fill: n, + }), + ) + }), + JI = [ + {labelKey: 'fitSize', factor: 'fit'}, + {labelKey: 'actualSize', factor: 1}, + {label: '25%', factor: 0.25}, + {label: '50%', factor: 0.5}, + {label: '75%', factor: 0.75}, + {label: '125%', factor: 1.25}, + {label: '170%', factor: 1.7}, + {label: '300%', factor: 3}, + {label: '500%', factor: 5}, + {label: '1000%', factor: 10}, + ], + eM = function () { + function e(e) { + r({type: kL, payload: {factor: e}}) + } + + function t() { + var t = (u.width && u.height && u) || (f.width && f.height && f) || c + e((t = sE((f.width && f.height && f) || c, t)) || 1) + } + + function n(e) { + g(p ? null : e.target) + } + + var r = (h = xw()).dispatch, + i = void 0 === (o = h.zoom) ? {} : o, + o = h.toolId, + a = h.feedback, + s = h.t, + c = h.shownImageDimensions, + u = h.resize, + d = h.originalImage, + f = h.adjustments.crop, + h = h.config.useZoomPresetsMenu, + p = ((a = 0 === a.duration), (m = jp(l.exports.useState(null), 2))[0]), + g = m[1], + m = o === Av.CROP || a + o = + !d || u.width || u.height + ? i.factor + : Math.min((c.width * i.factor) / d.width, (c.height * i.factor) / d.height) + return he.createElement( + he.Fragment, + null, + he.createElement( + Oj, + { + onClick: function () { + e(i.factor / 1.1) + }, + color: 'link', + title: s('zoomOutTitle'), + disabled: m, + className: 'FIE_topbar-zoom-out-btn', + }, + he.createElement($I, null), + ), + he.createElement( + kj, + { + title: s('toggleZoomMenuTitle'), + onClick: m ? void 0 : h ? n : t, + 'aria-disabled': m, + className: 'FIE_topbar-zoom-label', + }, + ''.concat(CC(100 * o, 0), '%'), + ), + he.createElement( + Oj, + { + onClick: function () { + e(1.1 * i.factor) + }, + color: 'link', + title: s('zoomInTitle'), + disabled: m, + className: 'FIE_topbar-zoom-in-btn', + }, + he.createElement(QI, null), + ), + he.createElement( + cE, + { + anchorEl: p, + onClose: n, + open: !!p, + position: 'bottom', + className: 'FIE_topbar-zoom-menu', + }, + JI.map(function (r) { + var i = r.factor, + o = r.labelKey + r = r.label + return he.createElement( + YE, + { + key: r || o, + onClick: function () { + var r = i + if ('fit' === r) return t(), void n() + e((r = Math.min((r * d.width) / c.width, (r * d.height) / c.height))), n() + }, + }, + he.createElement(QE, null, null != r ? r : s(o)), + ) + }), + ), + ) + }, + tM = function () { + var e = xw(), + t = e.t, + n = e.haveNotSavedChanges, + r = e.config.onClose + return 'function' == typeof r + ? he.createElement( + _j, + { + className: 'FIE_topbar-back-button', + color: 'link', + size: 'sm', + onClick: function () { + r(Uv, n) + }, + }, + r && + he.createElement( + he.Fragment, + null, + he.createElement(E_, {size: 9}), + he.createElement(Pj, null, t('back')), + ), + ) + : he.createElement('span', null) + }, + nM = fe.div.withConfig({componentId: 'sc-qhd6ow-0'})([ + "padding:0 12px 12px 0;overflow-y:auto;max-height:100%;[data-phone='true'] &{display:flex;padding:0;}", + ]), + rM = fe.div.withConfig({componentId: 'sc-qhd6ow-1'})(function (e) { + return ( + (e = e.theme), + '\n width: 67px;\n height: 62px;\n border-radius: 4px;\n display: flex;\n flex-direction: column;\n background: ' + .concat( + e.palette['bg-primary'], + ";\n align-items: center;\n justify-content: center;\n margin-bottom: 8px;\n\n [data-phone='true'] & {\n margin-bottom: 0;\n height: 50px;\n border-radius: 0;\n }\n\n &,\n * {\n cursor: pointer;\n }\n\n &:hover {\n background: ", + ) + .concat( + e.palette['bg-primary-active'], + ";\n }\n\n &[aria-selected='true'] {\n background: ", + ) + .concat(e.palette['bg-primary-active'], ';\n\n * {\n color: ') + .concat(e.palette['accent-primary-active'], ';\n }\n }\n ') + ) + }), + iM = fe(Jb).withConfig({componentId: 'sc-qhd6ow-2'})([ + "margin-top:6px;font-size:11px;line-height:12px;[data-phone='true'] &{font-size:10px;}", + ]), + oM = + ((SI.defaultProps = {isSelected: !1, onClick: void 0, label: void 0}), l.exports.memo(SI)), + aM = ['color', 'size'], + lM = + ((bp = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, aM) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M41.2229 16.7653C41.3215 12.426 39.7436 8.284 36.6864 5.02956C33.6292 1.77513 29.4872 -2.09808e-05 25.0493 -2.09808e-05C20.6114 -2.09808e-05 16.3708 1.77513 13.3136 5.02956C10.2564 8.18538 8.6785 12.3274 8.77712 16.7653C3.45168 19.5266 0 25.1479 0 31.1637C0 37.2781 3.25444 42.6035 8.57988 45.4635C11.0454 46.7455 13.7081 47.4359 16.2722 47.4359C19.3294 47.4359 22.288 46.5483 24.9507 44.8718C29.9803 48.1262 36.0947 48.3234 41.4201 45.4635C46.7456 42.6035 50 37.2781 50 31.1637C50 25.0493 46.6469 19.5266 41.2229 16.7653ZM22.7811 43.0966C18.6391 45.3649 13.7081 45.3649 9.56607 42.998C5.22682 40.5325 2.66272 36.1933 2.66272 31.1637C2.66272 26.43 5.12821 22.0907 9.1716 19.6252C10.1578 24.359 13.3136 28.501 17.6529 30.6706C17.4556 35.4043 19.3294 39.8422 22.7811 43.0966ZM32.1499 27.8106C31.4596 24.5562 29.783 21.499 27.3176 19.2307C30.6706 17.357 34.8126 17.0611 38.4615 18.3432C37.7712 22.2879 35.503 25.7396 32.1499 27.8106ZM20.6114 28.1065C21.3018 25.2465 22.8797 22.6824 25.0493 20.8087C27.5148 22.8797 29.1913 25.8382 29.6844 28.9941C26.7258 30.0789 23.4714 30.0789 20.4142 28.9941C20.4142 28.6982 20.5128 28.4023 20.6114 28.1065ZM25.0493 17.4556C23.57 16.4694 21.8935 15.7791 20.1183 15.3846C19.428 15.1874 18.6391 15.6805 18.5404 16.3708C18.4418 16.7653 18.5404 17.0611 18.7377 17.357C18.9349 17.6528 19.2308 17.8501 19.5266 17.9487C20.7101 18.2446 21.7949 18.639 22.7811 19.2307C20.3156 21.499 18.6391 24.4576 17.9487 27.8106C14.5957 25.7396 12.2288 22.2879 11.6371 18.3432C11.9329 18.2446 12.1302 18.1459 12.426 18.0473C12.7219 17.9487 13.0178 17.7515 13.215 17.357C13.4122 17.0611 13.4122 16.6666 13.3136 16.3708C13.1164 15.6805 12.3274 15.286 11.6371 15.4832C11.5385 15.4832 11.5385 15.4832 11.4398 15.5818C11.8343 8.48124 17.7515 2.6627 25.0493 2.6627C32.3471 2.6627 38.2643 8.38262 38.6588 15.5818C34.0237 14.2012 28.9941 14.8915 25.0493 17.4556ZM29.783 31.7554C29.5858 35.5029 27.9093 39.0532 25.0493 41.5187C22.1893 39.0532 20.4142 35.6016 20.3156 31.7554C23.3728 32.7416 26.7258 32.7416 29.783 31.7554ZM32.4458 30.6706C36.785 28.4023 39.8422 24.359 40.927 19.6252C44.9704 22.0907 47.4359 26.43 47.4359 31.1637C47.4359 36.0947 44.8718 40.5325 40.5325 42.998C36.3905 45.3649 31.4596 45.3649 27.3176 43.0966C30.7692 39.8422 32.643 35.4043 32.4458 30.6706Z', + fill: n, + }), + he.createElement('path', { + d: 'M15.5819 14.8915C14.9901 14.9901 14.497 15.5818 14.497 16.1735C14.497 16.8639 15.0888 17.5542 15.8777 17.5542C16.6667 17.5542 17.2584 16.9625 17.2584 16.1735C17.2584 15.7791 17.0611 15.3846 16.7653 15.1874C16.3708 14.9901 15.9763 14.8915 15.5819 14.8915Z', + fill: n, + }), + ) + })), + ['color', 'size']), + sM = + ((kr = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, lM) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M0.5 0.5H3V2.375H2.375V3H0.5V0.5Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M0.5 21.125H3V21.2693H24.7308V43H24.875V45.5L0.5 45.5001V21.125ZM22.2308 43L3 43.0001V23.7693H22.2308V43Z', + fill: n, + }), + he.createElement('path', { + d: 'M43 45.5H45.5V43H43.625V43.625H43V45.5Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 3V0.5H43V2.375H43.625V3H45.5Z', + fill: n, + }), + he.createElement('path', { + d: 'M6.125 0.5V3H9.875V0.5H6.125Z', + fill: n, + }), + he.createElement('path', { + d: 'M13.625 0.5V3H17.375V0.5H13.625Z', + fill: n, + }), + he.createElement('path', { + d: 'M21.125 0.5V3H24.875V0.5H21.125Z', + fill: n, + }), + he.createElement('path', { + d: 'M28.625 0.5V3H32.375V0.5H28.625Z', + fill: n, + }), + he.createElement('path', { + d: 'M36.125 0.5V3H39.875V0.5H36.125Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 6.125H43V9.875H45.5V6.125Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 13.625H43V17.375H45.5V13.625Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 21.125H43V24.875H45.5V21.125Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 28.625H43V32.375H45.5V28.625Z', + fill: n, + }), + he.createElement('path', { + d: 'M45.5 36.125H43V39.875H45.5V36.125Z', + fill: n, + }), + he.createElement('path', { + d: 'M39.875 45.5V43H36.125V45.5H39.875Z', + fill: n, + }), + he.createElement('path', { + d: 'M32.375 45.5V43H28.625V45.5H32.375Z', + fill: n, + }), + he.createElement('path', { + d: 'M0.5 17.375H3V13.625H0.5V17.375Z', + fill: n, + }), + he.createElement('path', { + d: 'M0.5 9.875H3V6.125H0.5V9.875Z', + fill: n, + }), + he.createElement('path', { + d: 'M35.1391 9.23718L26.3209 17.8619C25.8274 18.3446 25.8186 19.136 26.3013 19.6295C26.784 20.1231 27.5754 20.1319 28.069 19.6492L37.1012 10.815V16.9907C37.1012 17.681 37.6609 18.2407 38.3512 18.2407C39.0416 18.2407 39.6012 17.681 39.6012 16.9907V7.98718C39.6012 7.29683 39.0416 6.73718 38.3512 6.73718L29.3477 6.73718C28.6574 6.73718 28.0977 7.29683 28.0977 7.98718C28.0977 8.67754 28.6574 9.23718 29.3477 9.23718L35.1391 9.23718Z', + fill: n, + }), + ) + })), + ['color', 'size']), + cM = + ((Pp = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, sM) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M42.1323 0.500031H2.73399C1.42693 0.500031 0.399963 1.527 0.399963 2.83406V43.166C0.399963 44.4731 1.42693 45.5 2.73399 45.5H42.1323C43.4394 45.5 44.4664 44.4731 44.4664 43.166V2.83406C44.4664 1.527 43.4394 0.500031 42.1323 0.500031ZM41.6655 3.30086V25.8942L36.624 21.693C36.1572 21.2262 35.4103 21.2262 34.8502 21.5996L28.595 26.2677L15.5244 11.2365C15.3377 10.9565 14.9643 10.7697 14.5908 10.7697C14.2174 10.7697 13.8439 10.9565 13.5639 11.1432L3.20079 21.693V3.30086H41.6655ZM3.20079 42.6992V39.8984C4.22776 40.3652 5.72154 40.832 7.58876 40.832C9.36262 40.832 10.483 40.2718 11.3232 39.805C12.0701 39.4316 12.5369 39.1515 13.3771 39.2448C14.3108 39.3382 14.8709 39.5249 15.4311 39.805C16.2713 40.0851 17.2049 40.4585 18.9788 40.4585V38.3112C17.6717 38.3112 17.0182 38.0312 16.178 37.7511C15.5244 37.471 14.6842 37.1909 13.5639 37.0975C12.0701 36.9108 11.1365 37.471 10.2962 37.8444C9.54934 38.2179 8.80245 38.5913 7.4954 38.5913C5.06801 38.5913 3.6676 37.7511 3.10743 37.2843V35.0436C4.1344 35.5104 5.62818 35.9772 7.4954 35.9772C9.26926 35.9772 10.3896 35.417 11.2298 34.9502C11.9767 34.5768 12.4435 34.2967 13.2838 34.3901C14.2174 34.4834 14.7776 34.6702 15.3377 34.9502C16.178 35.2303 17.1116 35.6038 18.8854 35.6038V33.4565C17.5784 33.4565 16.9249 33.1764 16.0846 32.8963C15.4311 32.6162 14.5908 32.3361 13.4705 32.2428C11.9767 32.056 11.0431 32.6162 10.2029 32.9897C9.45598 33.3631 8.70909 33.7365 7.40204 33.7365C4.97465 33.7365 3.57424 32.8963 3.01407 32.4295V30.1888C4.04104 30.6556 5.53482 31.1224 7.40204 31.1224C9.1759 31.1224 10.2962 30.5623 11.1365 30.0955C11.8834 29.722 12.3502 29.4419 13.1904 29.5353C14.124 29.6287 14.6842 29.8154 15.2444 30.0955C16.0846 30.3755 17.0182 30.749 18.7921 30.749V28.6017C17.485 28.6017 16.8315 28.3216 15.9912 28.0415C15.3377 27.7614 14.4975 27.4814 13.3771 27.388C11.8834 27.2013 10.9498 27.7614 10.1095 28.1349C9.36262 28.5083 8.61573 28.8818 7.30868 28.8818C4.88129 28.8818 3.48088 28.0415 2.92071 27.5747V25.7075L14.124 14.2241L27.1012 29.0685C27.568 29.6287 28.4083 29.722 28.9684 29.2552L35.4103 24.4004L41.3854 29.4419V42.6058H3.20079V42.6992Z', + fill: n, + }), + he.createElement('path', { + d: 'M32.7029 15.7179C35.4103 15.7179 37.651 13.4772 37.651 10.7697C37.651 8.06227 35.4103 5.82161 32.7029 5.82161C29.9954 5.82161 27.7547 8.06227 27.7547 10.7697C27.7547 13.4772 29.9954 15.7179 32.7029 15.7179ZM32.7029 8.15563C34.1966 8.15563 35.317 9.36933 35.317 10.7697C35.317 12.1702 34.1033 13.3838 32.7029 13.3838C31.3025 13.3838 30.0888 12.1702 30.0888 10.7697C30.0888 9.36933 31.2091 8.15563 32.7029 8.15563Z', + fill: n, + }), + ) + })), + ['color', 'size']), + uM = + ((a = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, cM) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M16.3679 7.50003C15.7995 10.005 13.5592 11.875 10.8823 11.875C8.20528 11.875 5.96506 10.005 5.39665 7.50003H1.5448C0.854444 7.50003 0.2948 6.94039 0.2948 6.25003C0.2948 5.55967 0.854444 5.00003 1.5448 5.00003H5.39665C5.96506 2.49504 8.20528 0.625031 10.8823 0.625031C13.5592 0.625031 15.7995 2.49504 16.3679 5.00003H48.4557C49.1461 5.00003 49.7057 5.55967 49.7057 6.25003C49.7057 6.94039 49.1461 7.50003 48.4557 7.50003H16.3679ZM14.0073 6.25003C14.0073 7.97592 12.6082 9.37503 10.8823 9.37503C9.15637 9.37503 7.75726 7.97592 7.75726 6.25003C7.75726 4.52414 9.15637 3.12503 10.8823 3.12503C12.6082 3.12503 14.0073 4.52414 14.0073 6.25003Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M34.5715 27.625C37.2485 27.625 39.4887 25.755 40.0571 23.25H48.4554C49.1458 23.25 49.7054 22.6904 49.7054 22C49.7054 21.3096 49.1458 20.75 48.4554 20.75H40.0571C39.4887 18.245 37.2485 16.375 34.5715 16.375C31.8946 16.375 29.6543 18.245 29.0859 20.75H1.5448C0.854444 20.75 0.2948 21.3096 0.2948 22C0.2948 22.6904 0.854444 23.25 1.5448 23.25H29.0859C29.6543 25.755 31.8946 27.625 34.5715 27.625ZM34.5715 25.125C36.2974 25.125 37.6965 23.7259 37.6965 22C37.6965 20.2741 36.2974 18.875 34.5715 18.875C32.8456 18.875 31.4465 20.2741 31.4465 22C31.4465 23.7259 32.8456 25.125 34.5715 25.125Z', + fill: n, + }), + he.createElement('path', { + fillRule: 'evenodd', + clipRule: 'evenodd', + d: 'M22.7702 39C22.2018 41.505 19.9615 43.375 17.2845 43.375C14.6076 43.375 12.3673 41.505 11.7989 39H1.5448C0.854444 39 0.2948 38.4403 0.2948 37.75C0.2948 37.0596 0.854444 36.5 1.5448 36.5H11.7989C12.3673 33.995 14.6076 32.125 17.2845 32.125C19.9615 32.125 22.2018 33.995 22.7702 36.5H48.4554C49.1458 36.5 49.7054 37.0596 49.7054 37.75C49.7054 38.4403 49.1458 39 48.4554 39H22.7702ZM20.4095 37.75C20.4095 39.4759 19.0104 40.875 17.2845 40.875C15.5587 40.875 14.1595 39.4759 14.1595 37.75C14.1595 36.0241 15.5587 34.625 17.2845 34.625C19.0104 34.625 20.4095 36.0241 20.4095 37.75Z', + fill: n, + }), + ) + })), + ['color', 'size']), + dM = + ((Zr = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, uM) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M46.1442 31.3785C45.4585 31.3785 44.8974 31.9424 44.8974 32.6316V43.7344C44.8974 45.802 43.2267 47.4812 41.157 47.4938H6.22156C4.16433 47.4938 2.49361 45.8146 2.48114 43.7344V11.1278C2.48114 9.06018 4.15186 7.38098 6.22156 7.36845H17.2807C17.9665 7.36845 18.5275 6.80454 18.5275 6.11532C18.5275 5.42609 17.9665 4.86218 17.2807 4.86218H6.22156C2.79284 4.87471 0 7.6692 0 11.1278V43.7344C0 47.193 2.79284 50 6.22156 50H41.157C44.5982 50 47.3786 47.193 47.3786 43.7469V32.6316C47.391 31.9424 46.83 31.3785 46.1442 31.3785Z', + fill: n, + }), + he.createElement('path', { + d: 'M46.8923 1.65414C44.698 -0.551378 41.157 -0.551378 38.9627 1.65414L16.7571 23.9724C16.6075 24.1228 16.4953 24.3108 16.4329 24.5238L13.5154 35.1253C13.3907 35.5639 13.5154 36.0276 13.8396 36.3409C14.1513 36.6541 14.6251 36.7794 15.049 36.6667L25.5969 33.7343C25.8089 33.6717 25.9959 33.5714 26.1455 33.4085L48.3636 11.0777C50.5455 8.87218 50.5455 5.31328 48.3636 3.10777L46.8923 1.65414ZM19.4751 24.787L37.6535 6.51629L43.5135 12.406L25.3351 30.6892L19.4751 24.787ZM18.3031 27.1554L22.9911 31.8672L16.5077 33.6717L18.3031 27.1554ZM46.5931 9.31078L45.2715 10.6391L39.4115 4.74937L40.7331 3.42105C41.9425 2.20551 43.9249 2.20551 45.1343 3.42105L46.5931 4.88722C47.815 6.11529 47.815 8.09524 46.5931 9.31078Z', + fill: n, + }), + ) + })), + ['color', 'size']), + fM = + ((WE = Vb(function (e, t) { + var n = void 0 === (n = e.color) ? 'currentColor' : n, + r = void 0 === (r = e.size) ? 14 : r + e = Yc(e, dM) + return he.createElement( + 'svg', + Ip( + { + ref: t, + width: r, + height: r, + viewBox: '0 0 50 50', + fill: 'none', + xmlns: 'http://www.w3.org/2000/svg', + }, + e, + ), + he.createElement('path', { + d: 'M43 3H31.75V0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V14.25H43V3Z', + fill: n, + }), + he.createElement('path', { + d: 'M3 14.25V3H14.25V0.5H3C1.61929 0.5 0.5 1.61929 0.5 3V14.25H3Z', + fill: n, + }), + he.createElement('path', { + d: 'M0.5 31.75V43C0.5 44.3807 1.61929 45.5 3 45.5H14.25V43H3V31.75H0.5Z', + fill: n, + }), + he.createElement('path', { + d: 'M43 31.75H45.5V43C45.5 44.3807 44.3807 45.5 43 45.5H31.75V43H43V31.75Z', + fill: n, + }), + ) + })), + [ + {id: Dv.ADJUST, labelKey: 'adjustTab', icon: WE}, + {id: Dv.FINETUNE, labelKey: 'finetuneTab', icon: a}, + { + id: Dv.FILTERS, + labelKey: 'filtersTab', + icon: bp, + hideFn: function (e) { + return e.useCloudimage + }, + }, + {id: Dv.WATERMARK, labelKey: 'watermarkTab', icon: Pp}, + { + id: Dv.ANNOTATE, + labelKey: 'annotateTab', + icon: Zr, + hideFn: function (e) { + return e.useCloudimage + }, + }, + {id: Dv.RESIZE, labelKey: 'resizeTab', icon: kr}, + ]), + hM = function (e) { + return ( + (e = e.children), + he.createElement(iw, {className: 'FIE_tool-options-wrapper', hasChildren: !!e}, e) + ) + }, + pM = + ((hM.defaultProps = {children: void 0}), n((Kb = {}), Yv, 'sad'), n(Kb, Xv, 'worried'), Kb), + gM = + ((hp = + ((_I.defaultProps = { + anchorOrigin: {horizontal: 'center', vertical: 'bottom'}, + }), + (function (e) { + for (var t = arguments.length, n = new Array(1 < t ? t - 1 : 0), r = 1; r < t; r++) + n[r - 1] = arguments[r] + var i = tf((e = Bd.apply(void 0, [e].concat(n)).join(''))) + return new Rd(i, [e, i, '@keyframes']) + })([ + '0%{transform:rotate(0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19);}50%{transform:rotate(900deg);animation-timing-function:cubic-bezier(0.215,0.61,0.355,1);}100%{transform:rotate(1800deg);}', + ]))), + fe.div.withConfig({componentId: 'sc-m42fbk-0'})([ + 'background:rgba(0,0,0,0.25);display:flex;align-items:center;justify-content:center;position:absolute;z-index:11111;top:0;bottom:0;right:0;left:0;flex-direction:column;user-select:none;label{color:#ffffff;}', + ])), + mM = fe.div.withConfig({componentId: 'sc-m42fbk-1'})( + [ + "display:inline-block;position:relative;width:80px;height:80px;:after{content:' ';display:block;border-radius:50%;width:64px;height:64px;margin:8px;box-sizing:border-box;border:4px solid #fff;border-color:#fff transparent #fff transparent;animation:", + ' 1.2s infinite;}', + ], + hp, + ), + vM = ((LI.defaultProps = {label: ''}), ['cropX2', 'cropY2', 'crop', 'watermark']) + + function yM(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function bM(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? yM(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : yM(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function wM(e, t) { + return ( + e && + t && + ((e instanceof HTMLImageElement && + e.src === t.src && + e.width === t.width && + e.height === t.height) || + ((null == e ? void 0 : e.src) || e) === t.src) + ) + } + + var CM = fe.div + .attrs(function (e) { + var t + return { + style: { + width: null != (t = (e = void 0 === (e = e.$size) ? {} : e).width) ? t : '100%', + height: null != (t = e.height) ? t : '100%', + }, + } + }) + .withConfig({componentId: 'sc-ugtqr7-0'})( + [ + 'display:flex;flex-direction:column;align-items:center;height:100%;max-height:100%;width:100%;max-width:100%;overflow:auto;position:relative;min-height:250px;min-width:300px;background:', + ';', + ], + function (e) { + return e.theme.palette['bg-secondary'] + }, + ), + xM = fe.div.withConfig({componentId: 'sc-ugtqr7-1'})([ + "display:flex;align-items:flex-start;width:100%;padding:12px;box-sizing:border-box;height:calc(100% - 95px);flex-grow:1;[data-phone='true'] &{padding:0;}", + ]), + EM = fe.div.withConfig({componentId: 'sc-ugtqr7-2'})([ + 'height:100%;width:calc(100% - 80px);flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;', + ]), + OM = fe.div.withConfig({componentId: 'sc-ugtqr7-3'})([ + 'width:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:flex-end;', + ]) + + function SM(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function kM(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? SM(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : SM(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function PM(e) { + var t = e.img, + n = e.source, + r = e.useCloudimage, + i = e.cloudimage + if (t) + throw new Error( + '`img` is renamed to `source` please consider renaming it from your configurations.', + ) + if (!n || ('string' != typeof n && !(n instanceof HTMLImageElement))) + throw new Error( + '`source` property is required either a string of image url or a HTMLImageElement for the image that will be edited.', + ) + if ( + !r || + null == i || + null == (t = i.imageSealing) || + !t.enable || + (null != i && null != (n = i.imageSealing) && n.salt) + ) + return ( + (r = QL(ny, e)), + he.createElement( + he.StrictMode, + null, + he.createElement( + _p, + {theme: r.theme}, + he.createElement(LM, null), + he.createElement(jM, null), + he.createElement(TM, null), + he.createElement(bw, {config: r}, he.createElement(_M, null)), + ), + ) + ) + throw new Error( + '`salt` property of imageSealing object is required in cloudimage mode as long as `imageSealing` is enabled.', + ) + } + + var _M = l.exports.memo(function () { + function t(e) { + return new Promise(function (t) { + var n, + r = (null == e ? void 0 : e.src) || e + D.current === r || (!r && d) || wM(r, d) + ? D.current || t() + : ((n = function () { + ;(D.current = null), t() + }), + (D.current = r), + 'string' == typeof e + ? ST(e, E).then(N).catch(H).finally(n) + : (e instanceof HTMLImageElement ? N(e) : H(h('invalidImageError')), n())) + }) + } + + function r(e) { + A.current && (e.preventDefault(), (e.returnValue = '')) + } + + function i() { + var e = + 0 < arguments.length && void 0 !== arguments[0] + ? arguments[0] + : function () { + return [] + } + u({type: Bb}), + Promise.all(e()).finally(function () { + setTimeout(() => { + u({type: ey}) + }) + }) + } + + function o() { + g && + 0 < Object.keys(g).length && + u({ + type: JL, + payload: kM( + kM({}, g), + {}, + { + finetunes: Sb(null == g ? void 0 : g.finetunes), + filter: xb(null == g ? void 0 : g.filter), + }, + ), + }) + } + + var a = (p = xw()).config, + s = p.isLoadingGlobally, + c = p.haveNotSavedChanges, + u = p.dispatch, + d = p.originalImage, + f = p.shownImageDimensions, + h = p.t, + p = void 0 === (p = p.feedback) ? {} : p, + g = a.loadableDesignState, + m = a.useCloudimage, + v = a.cloudimage, + y = a.source, + b = a.avoidChangesNotSavedAlertOnLeave, + w = a.useBackendTranslations, + C = a.translations, + x = a.language, + E = a.defaultSavedImageName, + O = a.observePluginContainerSize, + S = a.showCanvasOnly, + k = a.getCurrentImgDataFnRef, + P = a.updateStateFnRef, + _ = (a = jp(cC(), 2))[0], + L = a[1], + T = (a = jp(l.exports.useState({width: void 0, height: void 0}), 2))[0], + j = a[1], + I = ((a = uC()), l.exports.useRef(null)), + M = l.exports.useRef(!0), + R = l.exports.useRef(!1), + D = l.exports.useRef(null), + A = l.exports.useRef(c), + z = TC(), + N = l.exports.useCallback(function (e) { + u({type: IL, payload: {originalImage: e}}) + }, []), + H = l.exports.useCallback(function (e) { + u({ + type: Nb, + payload: {feedback: {message: e.message || e, duration: 0}}, + }) + }, []) + return ( + l.exports.useEffect( + function () { + M.current || + !y || + wM(y, d) || + ((R.current = !1), + i(function () { + return [t(y)] + })) + }, + [y], + ), + l.exports.useEffect( + function () { + var e + M.current || + ((e = null == g ? void 0 : g.imgSrc) && !wM(e, d) + ? i(function () { + return [t(e).then(o)] + }) + : o()) + }, + [g], + ), + l.exports.useEffect( + function () { + 0 < Object.keys(f || {}).length && + !Object.keys(f).some(function (e) { + return !f[e] + }) && + d && + m && + null != v && + v.loadableQuery && + !R.current && + (u({ + type: JL, + payload: (function (e, t, r) { + if (!e) return null + e = e.split('&') + var i = {}, + o = + ((e = + (e.forEach(function (e) { + var o = (function (e, t) { + var r, + i = + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}, + o = + 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : {} + switch (e) { + case 'wat_text': + return { + watermark: {text: t.replaceAll('+', ' ')}, + } + case 'wat_font': + return {watermark: {fontFamily: t}} + case 'wat_color': + return {watermark: {fill: '#'.concat(t)}} + case 'wat_fontsize': + return { + watermark: {fontSize: parseFloat(t)}, + } + case 'wat_opacity': + return { + watermark: {opacity: parseFloat(t)}, + } + case 'wat_pos': + var a = (l = jp(t.split(','), 2))[0], + l = l[1] + return { + watermark: { + x: (parseFloat(a) / 100) * i.width, + y: (parseFloat(l) / 100) * i.height, + }, + } + case 'wat_url': + return { + watermark: {image: decodeURIComponent(t)}, + } + case 'wat_scale': + return ( + (l = (a = jp(t.split(','), 2))[0]), + (a = a[1]), + { + watermark: { + width: (parseFloat(l) / 100) * (i.width || 0), + height: (parseFloat(a) / 100) * (i.height || 0), + }, + } + ) + case 'tl_px': + return ( + (a = (l = jp(t.split(','), 2))[0]), + (l = l[1]), + { + crop: { + x: aC(parseFloat(a), 0, o.width, 0, i.width), + y: aC(parseFloat(l), 0, o.height, 0, i.height), + }, + } + ) + case 'br_px': + return ( + (l = (a = jp(t.split(','), 2))[0]), + (a = a[1]), + { + cropX2: aC(parseFloat(l), 0, o.width, 0, i.width), + cropY2: aC(parseFloat(a), 0, o.height, 0, i.height), + } + ) + case 'round': + return {crop: {ratio: Vv}} + case 'w': + return {resize: {width: parseFloat(t)}} + case 'h': + return {resize: {height: parseFloat(t)}} + case 'r': + return { + adjustments: {rotation: -parseInt(t, 10)}, + } + case 'flip': + case 'mirror': + return { + adjustments: { + isFlippedX: t.includes('x') || t.includes('h'), + isFlippedY: t.includes('y') || t.includes('v'), + }, + } + default: + return ( + Object.keys(SC).forEach(function (t) { + SC[t].cloudimage.name === e.toLowerCase() && (r = t) + }), + r + ? ((a = (l = SC[r]).cloudimage), + (l = l.internal), + { + finetunes: [av.Filters[r]], + finetunesProps: n( + {}, + l.propName, + aC(parseFloat(t), a.min, a.max, l.min, l.max), + ), + }) + : null + ) + } + })((o = (e = jp(e.split('='), 2))[0]), (e = e[1]), t, r) + o && (i = QL(i, o, !0)) + }), + i)), + e.cropX2), + a = e.cropY2, + l = e.crop, + s = e.watermark + return bM( + bM( + bM({}, (e = Yc(e, vM))), + o && a && l + ? { + adjustments: bM( + bM({}, e.adjustments), + {}, + { + crop: bM( + bM({}, l), + {}, + { + width: (o || 0) - l.x, + height: (a || 0) - l.y, + }, + ), + }, + ), + } + : {}, + ), + {}, + { + annotations: bM( + {}, + s + ? n( + {}, + Mv, + bM( + bM({}, s), + {}, + { + x: ((null == l ? void 0 : l.x) || 0) + (s.x || 0), + y: ((null == l ? void 0 : l.y) || 0) + (s.y || 0), + id: Mv, + name: s.text ? Av.TEXT : Av.IMAGE, + }, + s.text + ? { + width: s.text.length * s.fontSize, + height: s.fontSize, + } + : {}, + ), + ) + : {}, + ), + }, + ) + })(v.loadableQuery, f, d), + }), + (R.current = !0)) + }, + [f, d, m, v], + ), + l.exports.useEffect( + function () { + var e = !1 + return ( + O && I.current + ? _(I.current.parentNode, function (e) { + var t = e.width + e = e.height + return j({width: t, height: e}) + }) + : T.width && T.height && !e && j({width: void 0, height: void 0}), + function () { + O && I.current && L(I.current), (e = !0) + } + ) + }, + [O], + ), + l.exports.useEffect(function () { + return ( + i(function () { + return [t((null == g ? void 0 : g.imgSrc) || y)].concat(Hh([])) + }), + (M.current = !1), + window && !b && window.addEventListener('beforeunload', r), + function () { + window && !b && window.removeEventListener('beforeunload', r) + } + ) + }, []), + l.exports.useEffect( + function () { + P && + 'object' === e(P) && + (P.current = function (e) { + u({type: JL, payload: e}) + }) + }, + [P, u], + ), + l.exports.useEffect( + function () { + k && 'object' === e(k) && (k.current = z) + }, + [z], + ), + l.exports.useEffect( + function () { + A.current = c + }, + [c], + ), + he.createElement( + CM, + {className: Lv, 'data-phone': a, ref: I, $size: T}, + s && he.createElement(LI, {label: h('loading')}), + !S && he.createElement(OI, null), + d && + 0 !== p.duration && + he.createElement( + xM, + {className: 'FIE_main-container'}, + !a && !S && he.createElement(kI, null), + he.createElement( + EM, + {className: 'FIE_editor-content'}, + he.createElement(mj, null), + !S && + (a + ? he.createElement( + OM, + {className: 'FIE_phone-tools-tabs-wrapper'}, + he.createElement(PI, null), + he.createElement(kI, null), + ) + : he.createElement(PI, null)), + ), + ), + he.createElement(_I, null), + ) + ) + }), + LM = uf( + ['.', '{font-family:', ';}.SfxModal-Wrapper *{font-family:', ';}'], + Lv, + function (e) { + return ( + (null == (e = (void 0 === (e = e.theme) ? {} : e).typography) ? void 0 : e.fontFamily) || + 'Arial' + ) + }, + function (e) { + return ( + (null == (e = (void 0 === (e = e.theme) ? {} : e).typography) ? void 0 : e.fontFamily) || + 'Arial' + ) + }, + ), + TM = uf( + [ + '.Menu-open{overflow:visible !important;}.', + ',#SfxPopper{box-sizing:border-box;.SfxPopper-root .SfxMenu-root{overflow:visible;width:max-content;.SfxMenuItem-prefix{margin-right:6px;}}}.', + ' *,#SfxPopper *{box-sizing:border-box;scrollbar-color:rgba(203,211,218,1) rgba(203,211,218,0.35);:disabled,[aria-disabled="true"]{cursor:not-allowed;}&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background:rgba(203,211,218,0.35);}&::-webkit-scrollbar-thumb{background:rgba(203,211,218,1);border-radius:10px;}}', + ], + Lv, + Lv, + ), + // jM = uf([':not(button) > svg:not([color]){color:', '}'], function (e) { + // return e.theme.palette['icons-primary'] + // }), + jM = uf([':not(button) > svg:not([color]){', '}'], function (e) { + return e.theme.palette['icons-primary'] + }), + IM = + ((PM.defaultProps = {useCloudimage: !1, cloudimage: {}, img: void 0}), l.exports.memo(PM)) + + function MM(e, t) { + var n, + r = Object.keys(e) + return ( + Object.getOwnPropertySymbols && + ((n = Object.getOwnPropertySymbols(e)), + t && + (n = n.filter(function (t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + })), + r.push.apply(r, n)), + r + ) + } + + function RM(e) { + for (var t, r = 1; r < arguments.length; r++) + (t = null == arguments[r] ? {} : arguments[r]), + r % 2 + ? MM(Object(t), !0).forEach(function (r) { + n(e, r, t[r]) + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : MM(Object(t)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n)) + }) + return e + } + + function DM(e, t, n) { + var r = e + if (t.has(r)) + throw new TypeError('Cannot initialize the same private elements twice on an object') + t.set(e, n) + } + + var AM = new WeakMap(), + zM = new WeakMap(), + NM = new WeakMap(), + HM = new WeakMap() + ;(rE = FM), + (sv = [ + { + key: 'render', + value: function (t) { + 'object' === e(t) && (this.config = this.config = QL(this.config || {}, t)), + (this.config = RM( + RM({}, this.config), + {}, + { + getCurrentImgDataFnRef: i(this, NM), + updateStateFnRef: i(this, HM), + }, + )), + i(this, AM).call(this, l.exports.createElement(IM, this.config), this.container) + }, + }, + { + key: 'terminate', + value: function () { + i(this, zM).call(this, this.container) + }, + }, + { + key: 'getCurrentImgData', + value: function (e, t, n) { + var r, o + return ( + (null == (r = i(this, NM)) || null == (o = r.current) ? void 0 : o.call(r, e, t, n)) || + {} + ) + }, + }, + { + key: 'updateState', + value: function (e) { + var t, n + null != (t = i(this, HM)) && null != (n = t.current) && n.call(t, e) + }, + }, + ]) && t(rE.prototype, sv), + Object.defineProperty(rE, 'prototype', {writable: !1}), + (_v = FM) + + function FM(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, + n = this, + r = FM + if (!(n instanceof r)) throw new TypeError('Cannot call a class as a function') + if ( + (DM(this, AM, {writable: !0, value: void 0}), + DM(this, zM, {writable: !0, value: void 0}), + DM(this, NM, {writable: !0, value: void 0}), + DM(this, HM, {writable: !0, value: void 0}), + (this.container = e), + (this.config = t), + !(e && e instanceof HTMLElement)) + ) + throw new Error('`container` (argument 0) is required to initialize the image editor plugin.') + o(this, AM, pe.exports.render), + o(this, zM, pe.exports.unmountComponentAtNode), + o(this, NM, {}), + o(this, HM, {}) + } + + return n(_v, 'TABS', Dv), n(_v, 'TOOLS', Av), (_v.TABS = Dv), (_v.TOOLS = Av), _v +}) +const FilerobotImageEditor = window.FilerobotImageEditor +if (!FilerobotImageEditor) { + console.warn('FilerobotImageEditor is not defined in the global scope') +} +export default FilerobotImageEditor; diff --git a/src/assets/styles/theme.scss b/src/assets/styles/theme.scss index d2be188..2f4828b 100644 --- a/src/assets/styles/theme.scss +++ b/src/assets/styles/theme.scss @@ -90,3 +90,7 @@ html { height: 100%; width: 100%; } + +//:not(button) > svg:not([color]) { +// color: var(--text-color) !important; +//} diff --git a/src/assets/svgs/stop.svg b/src/assets/svgs/stop.svg new file mode 100644 index 0000000..0a75617 --- /dev/null +++ b/src/assets/svgs/stop.svg @@ -0,0 +1 @@ + diff --git a/src/components/FilerobotImageEditor/FilerobotImageEditor.vue b/src/components/FilerobotImageEditor/FilerobotImageEditor.vue new file mode 100644 index 0000000..426de61 --- /dev/null +++ b/src/components/FilerobotImageEditor/FilerobotImageEditor.vue @@ -0,0 +1,74 @@ + + + + diff --git a/src/components/FilerobotImageEditor/lang/en.ts b/src/components/FilerobotImageEditor/lang/en.ts new file mode 100644 index 0000000..82083ff --- /dev/null +++ b/src/components/FilerobotImageEditor/lang/en.ts @@ -0,0 +1,96 @@ +export default { + name: 'Name', + save: 'Save', + saveAs: 'Save as', + back: 'Back', + loading: 'Loading...', + resetOperations: 'Reset/delete all operations', + changesLoseConfirmation: 'All changes will be lost', + changesLoseConfirmationHint: 'Are you sure you want to continue?', + cancel: 'Cancel', + continue: 'Continue', + undoTitle: 'Undo last operation', + redoTitle: 'Redo last operation', + showImageTitle: 'Show original image', + zoomInTitle: 'Zoom in', + zoomOutTitle: 'Zoom out', + toggleZoomMenuTitle: 'Toggle zoom menu', + adjustTab: 'Adjust', + finetuneTab: 'Finetune', + filtersTab: 'Filters', + watermarkTab: 'Watermark', + annotateTab: 'Draw', + resize: 'Resize', + resizeTab: 'Resize', + invalidImageError: 'Invalid image provided.', + uploadImageError: 'Error while uploading the image.', + areNotImages: 'are not images', + isNotImage: 'is not image', + toBeUploaded: 'to be uploaded', + cropTool: 'Crop', + original: 'Original', + custom: 'Custom', + square: 'Square', + landscape: 'Landscape', + portrait: 'Portrait', + ellipse: 'Ellipse', + classicTv: 'Classic TV', + cinemascope: 'Cinemascope', + arrowTool: 'Arrow', + blurTool: 'Blur', + brightnessTool: 'Brightness', + contrastTool: 'Contrast', + ellipseTool: 'Ellipse', + unFlipX: 'Un-Flip X', + flipX: 'Flip X', + unFlipY: 'Un-Flip Y', + flipY: 'Flip Y', + hsvTool: 'HSV', + hue: 'Hue', + saturation: 'Saturation', + value: 'Value', + imageTool: 'Image', + importing: 'Importing...', + addImage: '+ Add image', + lineTool: 'Line', + penTool: 'Pen', + polygonTool: 'Polygon', + sides: 'Sides', + rectangleTool: 'Rectangle', + cornerRadius: 'Corner Radius', + resizeWidthTitle: 'Width in pixels', + resizeHeightTitle: 'Height in pixels', + toggleRatioLockTitle: 'Toggle ratio lock', + reset: 'Reset', + resetSize: 'Reset to original image size', + rotateTool: 'Rotate', + textTool: 'Text', + textSpacings: 'Text spacings', + textAlignment: 'Text alignment', + fontFamily: 'Font family', + size: 'Size', + letterSpacing: 'Letter Spacing', + lineHeight: 'Line height', + warmthTool: 'Warmth', + addWatermark: '+ Add watermark', + addWatermarkTitle: 'Choose the watermark type', + uploadWatermark: 'Upload watermark', + addWatermarkAsText: 'Add as text', + padding: 'Padding', + shadow: 'Shadow', + horizontal: 'Horizontal', + vertical: 'Vertical', + blur: 'Blur', + opacity: 'Opacity', + position: 'Position', + stroke: 'Stroke', + saveAsModalLabel: 'Save the image as', + extension: 'Extension', + nameIsRequired: 'Name is required.', + quality: 'Quality', + imageDimensionsHoverTitle: 'Saved image size (width x height)', + cropSizeLowerThanResizedWarning: + 'Note, the selected crop area is lower than the applied resize which might cause quality decrease', + actualSize: 'Actual size (100%)', + fitSize: 'Fit size', +}; diff --git a/src/components/FilerobotImageEditor/lang/fr.ts b/src/components/FilerobotImageEditor/lang/fr.ts new file mode 100644 index 0000000..155d7dd --- /dev/null +++ b/src/components/FilerobotImageEditor/lang/fr.ts @@ -0,0 +1,96 @@ +export default { + name: 'Nom', + save: 'Enregistrer', + saveAs: 'Enregistrer sous', + back: 'Retour', + loading: 'Chargement...', + resetOperations: 'Réinitialiser/supprimer toutes les opérations', + changesLoseConfirmation: 'Tous les changements seront perdus', + changesLoseConfirmationHint: 'Êtes-vous sûr de vouloir continuer ?', + cancel: 'Annuler', + continue: 'Continuer', + undoTitle: 'Annuler la dernière opération', + redoTitle: 'Refaire la dernière opération', + showImageTitle: "Afficher l'image originale", + zoomInTitle: 'Zoom avant', + zoomOutTitle: 'Zoom arrière', + toggleZoomMenuTitle: 'Afficher/masquer le menu de zoom', + adjustTab: 'Ajuster', + finetuneTab: 'Affiner', + filtersTab: 'Filtres', + watermarkTab: 'Filigrane', + annotateTab: 'Dessiner', + resize: 'Rétréci', + resizeTab: 'Rétréci', + invalidImageError: 'Image non valide fournie.', + uploadImageError: "Erreur lors du téléchargement de l'image.", + areNotImages: 'ne sont pas des images', + isNotImage: "n'est pas une image", + toBeUploaded: 'à télécharger', + cropTool: 'Rogner', + original: 'Original', + custom: 'Personnalisé', + square: 'Carré', + landscape: 'Paysage', + portrait: 'Portrait', + ellipse: 'Ellipse', + classicTv: 'TV classique', + cinemascope: 'Cinémascope', + arrowTool: 'Flèche', + blurTool: 'Flou', + brightnessTool: 'Luminosité', + contrastTool: 'Contraste', + ellipseTool: 'Ellipse', + unFlipX: 'Annuler le retournement X', + flipX: 'Retourner X', + unFlipY: 'Annuler le retournement Y', + flipY: 'Retourner Y', + hsvTool: 'HSV', + hue: 'Teinte', + saturation: 'Saturation', + value: 'Valeur', + imageTool: 'Image', + importing: 'Importation...', + addImage: '+ Ajouter une image', + lineTool: 'Ligne', + penTool: 'Stylo', + polygonTool: 'Polygone', + sides: 'Côtés', + rectangleTool: 'Rectangle', + cornerRadius: 'Rayon des coins', + resizeWidthTitle: 'Largeur en pixels', + resizeHeightTitle: 'Hauteur en pixels', + toggleRatioLockTitle: 'Activer/désactiver le verrouillage des proportions', + reset: 'Réinitialiser', + resetSize: "Réinitialiser à la taille originale de l'image", + rotateTool: 'Pivoter', + textTool: 'Texte', + textSpacings: 'Espacement du texte', + textAlignment: 'Alignement du texte', + fontFamily: 'Famille de police', + size: 'Taille', + letterSpacing: 'Espacement des lettres', + lineHeight: 'Interligne', + warmthTool: 'Chaleur', + addWatermark: '+ Ajouter un filigrane', + addWatermarkTitle: 'Choisir le type de filigrane', + uploadWatermark: 'Télécharger un filigrane', + addWatermarkAsText: 'Ajouter en tant que texte', + padding: 'Marge intérieure', + shadow: 'Ombre', + horizontal: 'Horizontal', + vertical: 'Vertical', + blur: 'Flou', + opacity: 'Opacité', + position: 'Position', + stroke: 'Contour', + saveAsModalLabel: "Enregistrer l'image sous", + extension: 'Extension', + nameIsRequired: 'Le nom est requis.', + quality: 'Qualité', + imageDimensionsHoverTitle: "Taille de l'image sauvegardée (largeur x hauteur)", + cropSizeLowerThanResizedWarning: + 'Attention, la zone de recadrage sélectionnée est inférieure au redimensionnement appliqué, ce qui pourrait entraîner une perte de qualité.', + actualSize: 'Taille réelle (100%)', + fitSize: 'Adapter à la taille', +}; diff --git a/src/components/FilerobotImageEditor/lang/zh.ts b/src/components/FilerobotImageEditor/lang/zh.ts new file mode 100644 index 0000000..15fc0a4 --- /dev/null +++ b/src/components/FilerobotImageEditor/lang/zh.ts @@ -0,0 +1,95 @@ +export default { + name: '名称', + save: '保存', + saveAs: '另存为', + back: '返回', + loading: '加载中...', + resetOperations: '重置/删除所有操作', + changesLoseConfirmation: '所有更改将会丢失', + changesLoseConfirmationHint: '确定要继续吗?', + cancel: '取消', + continue: '继续', + undoTitle: '撤销上一步操作', + redoTitle: '重做上一步操作', + showImageTitle: '显示原始图片', + zoomInTitle: '放大', + zoomOutTitle: '缩小', + toggleZoomMenuTitle: '切换缩放菜单', + adjustTab: '基础调整', + finetuneTab: '精细调整', + filtersTab: '滤镜', + watermarkTab: '水印', + annotateTab: '标注', + resize: '调整尺寸', + resizeTab: '尺寸调整', + invalidImageError: '提供的图片无效', + uploadImageError: '图片上传时发生错误', + areNotImages: '不是图片文件', + isNotImage: '非图片文件', + toBeUploaded: '待上传', + cropTool: '裁剪工具', + original: '原始比例', + custom: '自定义', + square: '正方形', + landscape: '横屏比例', + portrait: '竖屏比例', + ellipse: '椭圆形', + classicTv: '经典电视比例', + cinemascope: '宽银幕比例', + arrowTool: '箭头工具', + blurTool: '模糊工具', + brightnessTool: '亮度', + contrastTool: '对比度', + ellipseTool: '椭圆工具', + unFlipX: '取消水平翻转', + flipX: '水平翻转', + unFlipY: '取消垂直翻转', + flipY: '垂直翻转', + hsvTool: 'HSV调整', + hue: '色相', + saturation: '饱和度', + value: '明度', + imageTool: '图片工具', + importing: '导入中...', + addImage: '+ 添加图片', + lineTool: '直线工具', + penTool: '画笔工具', + polygonTool: '多边形工具', + sides: '边数', + rectangleTool: '矩形工具', + cornerRadius: '圆角半径', + resizeWidthTitle: '宽度(像素)', + resizeHeightTitle: '高度(像素)', + toggleRatioLockTitle: '锁定宽高比', + reset: '重置', + resetSize: '恢复原始尺寸', + rotateTool: '旋转工具', + textTool: '文本工具', + textSpacings: '文字间距', + textAlignment: '文字对齐', + fontFamily: '字体', + size: '字号', + letterSpacing: '字间距', + lineHeight: '行高', + warmthTool: '色温调整', + addWatermark: '+ 添加水印', + addWatermarkTitle: '选择水印类型', + uploadWatermark: '上传水印图片', + addWatermarkAsText: '添加文字水印', + padding: '内边距', + shadow: '阴影', + horizontal: '水平', + vertical: '垂直', + blur: '模糊度', + opacity: '不透明度', + position: '位置', + stroke: '描边', + saveAsModalLabel: '将图片另存为', + extension: '扩展名', + nameIsRequired: '名称不能为空', + quality: '画质', + imageDimensionsHoverTitle: '保存图片尺寸(宽 x 高)', + cropSizeLowerThanResizedWarning: '注意:所选裁剪区域小于调整后的尺寸,可能会导致画质下降', + actualSize: '实际尺寸(100%)', + fitSize: '适应尺寸', +}; diff --git a/src/components/ImageEditor/ImageEditor.vue b/src/components/ImageEditor/ImageEditor.vue deleted file mode 100644 index 8f283c5..0000000 --- a/src/components/ImageEditor/ImageEditor.vue +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - diff --git a/src/components/ImageToolbar/ImageToolbar.vue b/src/components/ImageToolbar/ImageToolbar.vue index 6567c47..7942915 100644 --- a/src/components/ImageToolbar/ImageToolbar.vue +++ b/src/components/ImageToolbar/ImageToolbar.vue @@ -20,9 +20,36 @@ - 添加到 + + + 添加到 + - + @@ -34,12 +61,12 @@ 编辑 - - - 分享 - + + + + + + @@ -71,4 +130,161 @@ const imageStore = useStore().image; padding: 10px; gap: 15px; } + +.animate { + opacity: 0; + transform: translateX(-50px); + animation: fadeInRight 0.5s forwards; +} + +@for $i from 0 through 30 { // 假设最多有20张图片,你可以根据实际情况调整 + .animate-delay-#{$i} { + animation-delay: #{$i * 0.1}s; // 每张图片延迟0.1秒显示 + } +} + +@keyframes fadeInRight { + from { + opacity: 0; + transform: translateX(-50px); + } + to { + opacity: 1; + transform: translateX(0); + } +} + +.date-text { + position: relative; + font-size: 13px; + color: #666; + transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); + will-change: transform; + + /* 新增固定位置规则 */ + .has-selected & { + transform: translateX(28px) !important; + transition: none !important; + } +} + + +.group-container { + position: relative; + margin-bottom: 16px; + + // 有选中时的常显逻辑 + &.has-selected { + .custom-checkbox { + opacity: 1 !important; + transform: translateX(8px) scale(1) !important; + } + + // 保持日期位移效果 + &:hover .date-text { + transform: translateX(28px); + } + } + + // 无选中时的悬停逻辑 + &:not(.has-selected) { + .custom-checkbox { + opacity: 0; + transform: translateX(8px) scale(0); + + // 悬停显示 + &:hover { + opacity: 1; + transform: translateX(8px) scale(1); + } + } + + // 分组悬停时的日期位移 + &:hover { + .date-text { + transform: translateX(28px); + } + + .custom-checkbox { + opacity: 1; + transform: translateX(8px) scale(1); + } + } + } + +} + +@keyframes checkScale { + 0% { + transform: translateX(8px) scale(0); + } + 50% { + transform: translateX(8px) scale(1.2); + } + 100% { + transform: translateX(8px) scale(1); + } +} + +@keyframes pulse { + 0% { + transform: translateX(8px) scale(1); + } + 50% { + transform: translateX(8px) scale(1.1); + } + 100% { + transform: translateX(8px) scale(1); + } +} + +.date-header { + position: relative; + height: 24px; + margin: 8px 0; + padding-left: 10px; + display: flex; + align-items: center; +} + +.date-text { + position: relative; + font-size: 13px; + color: #666; + transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); + will-change: transform; +} + +.custom-checkbox { + position: absolute; + left: 0; + width: 24px; + height: 24px; + border: 1px solid #ffffff; + border-radius: 50%; + background: transparent; + opacity: 0; + transform: translateX(8px) scale(0); + transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), + transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 分开定义过渡属性 */ + cursor: pointer; + + &::after { + content: ""; + position: absolute; + top: 50%; + left: 50%; + width: 8px; + height: 8px; + background: #1890ff; + border-radius: 50%; + transform: translate(-50%, -50%) scale(0); + transition: transform 0.2s ease 0.1s; + } +} + +.date-checkbox:checked + .custom-checkbox::after { + transform: translate(-50%, -50%) scale(1); +} + diff --git a/src/layout/default/Header/Search.vue b/src/layout/default/Header/Search.vue index a4851a8..7af39cf 100644 --- a/src/layout/default/Header/Search.vue +++ b/src/layout/default/Header/Search.vue @@ -85,7 +85,7 @@ const borderRadius = ref('20px'); const boxShadow = ref('none'); const searchStore = useStore().search; const uploadStore = useStore().upload; - +const router = useRouter(); /** * 监听输入框聚焦事件 */ @@ -143,7 +143,9 @@ const onCalendarChange = (val: RangeValue) => { dates.value = val; }; - +/** + * 搜索事件 + */ async function search() { const params: any = { type: searchStore.searchOption[0], @@ -153,7 +155,15 @@ async function search() { input_image: "123" }; const res: any = await imageSearchApi(params); - console.log(res); + if (res && res.code === 200) { + searchStore.searchResult = res.data.records; + router.push({ + path: '/main/photo/search/list', query: { + type: searchStore.searchOption[0], + keyword: searchStore.searchValue, + } + }); + } } diff --git a/src/router/modules/main_router.ts b/src/router/modules/main_router.ts index 9245e04..19d6255 100644 --- a/src/router/modules/main_router.ts +++ b/src/router/modules/main_router.ts @@ -20,6 +20,15 @@ export default [ ...recycling_bin, ...share, ...upscale, + { + path: '/main/photo/search/list', + name: 'photo-search-list', + component: () => import('@/views/Photograph/SearchResult/SearchResult.vue'), + meta: { + requiresAuth: true, + title: '搜索结果' + } + } ] }, { path: '/main/share/list/:id', diff --git a/src/store/modules/imageStore.ts b/src/store/modules/imageStore.ts index 9130f1f..dd755d0 100644 --- a/src/store/modules/imageStore.ts +++ b/src/store/modules/imageStore.ts @@ -54,6 +54,8 @@ export const useImageStore = defineStore( // 图片编辑 const imageEditVisible = ref(false); + + /** * 获取人脸列表 */ diff --git a/src/store/modules/searchStore.ts b/src/store/modules/searchStore.ts index e7f02dd..6355a53 100644 --- a/src/store/modules/searchStore.ts +++ b/src/store/modules/searchStore.ts @@ -41,10 +41,14 @@ export const useSearchStore = defineStore( const option = options.find(option => option.value === value); return option ? option.icon : undefined; }; + + // 图片搜索结果 + const searchResult = ref([]); return { searchOption, options, searchValue, + searchResult, getIconByValue }; }, diff --git a/src/types/imageEditorConfig.ts b/src/types/imageEditorConfig.ts new file mode 100644 index 0000000..2ed357d --- /dev/null +++ b/src/types/imageEditorConfig.ts @@ -0,0 +1,329 @@ +import type {FunctionalComponent} from 'vue'; + +// Define constants +export const TABS = { + FINETUNE: 'Finetune', + FILTERS: 'Filters', + ADJUST: 'Adjust', + WATERMARK: 'Watermark', + ANNOTATE: 'Annotate', + RESIZE: 'Resize', +} as const; + +export const TOOLS = { + CROP: 'Crop', + ROTATE: 'Rotate', + FLIP_X: 'Flip_X', + FLIP_Y: 'Flip_Y', + BRIGHTNESS: 'Brightness', + CONTRAST: 'Contrast', + HSV: 'HueSaturationValue', + WARMTH: 'Warmth', + BLUR: 'Blur', + THRESHOLD: 'Threshold', + POSTERIZE: 'Posterize', + PIXELATE: 'Pixelate', + NOISE: 'Noise', + FILTERS: 'Filters', + RECT: 'Rect', + ELLIPSE: 'Ellipse', + POLYGON: 'Polygon', + TEXT: 'Text', + LINE: 'Line', + IMAGE: 'Image', + ARROW: 'Arrow', + WATERMARK: 'Watermark', + PEN: 'Pen', + RESIZE: 'Resize', +} as const; + +// Define types +type AvailableTabs = (typeof TABS)[keyof typeof TABS] +type AvailableTools = (typeof TOOLS)[keyof typeof TOOLS] +type LineCap = 'butt' | 'round' | 'square' + +type ClosingReasons = 'after-saving' | 'close-button-clicked' | 'back-button-clicked' | string + +type SavedImageData = { + name: string + extension: string + mimeType: string + fullName?: string + height?: number + width?: number + imageBase64?: string + imageCanvas?: HTMLCanvasElement + quality?: number + cloudimageUrl?: string +} + +type AnnotationsCommon = { + fill?: string + stroke?: string + strokeWidth?: number + shadowOffsetX?: number + shadowOffsetY?: number + shadowBlur?: number + shadowColor?: string + shadowOpacity?: number + opacity?: number +} + +// Define annotations types +type TextAnnotation = AnnotationsCommon & { + text?: string + fontFamily?: string + fontSize?: number + letterSpacing?: number + lineHeight?: number + align?: 'left' | 'center' | 'right' + fontStyle?: 'normal' | 'bold' | 'italic' | 'bold italic' +} + +type ImageAnnotation = AnnotationsCommon & { + disableUpload?: boolean + gallery?: { + originalUrl: string + previewUrl: string + }[] +} + +type RectAnnotation = AnnotationsCommon & { + cornerRadius?: number +} + +type PolygonAnnotation = AnnotationsCommon & { + sides?: number +} + +type PenAnnotation = AnnotationsCommon & { + tension?: number + lineCap?: LineCap + selectAnnotationAfterDrawing?: boolean +} + +type LineAnnotation = AnnotationsCommon & { + lineCap?: LineCap +} + +type ArrowAnnotation = AnnotationsCommon & { + lineCap?: LineCap + pointerLength?: number + pointerWidth?: number +} + +type RotateAnnotation = { + angle?: number + componentType?: 'slider' | 'buttons' +} + +// Crop Preset Types +type CropPresetItem = { + titleKey: string + width?: number + height?: number + ratio?: string | number + descriptionKey?: string + icon?: string | HTMLElement | FunctionalComponent + disableManualResize?: boolean + noEffect?: boolean +} + +type CropPresetGroup = { + titleKey: string + items: CropPresetItem[] +} + +type CropPresetFolder = { + titleKey: string + groups: CropPresetGroup[] + icon?: string | HTMLElement | FunctionalComponent +} + +export type onSaveFunction = ( + savedImageData: SavedImageData, + imageDesignState: ImageDesignState, +) => void | Promise + +type triggerSaveModalFn = (arg0: onSaveFunction) => void +type triggerSavingFn = (arg0: onSaveFunction) => void + +type SaveOption = { + label: string + icon: string | HTMLElement | FunctionalComponent + onClick: (arg0: triggerSaveModalFn, arg1: triggerSavingFn) => void +} + +// Image Design State +type ImageDesignState = { + imgSrc?: string + finetunes?: string[] + finetunesProps?: { + brightness?: number + contrast?: number + hue?: number + saturation?: number + value?: number + blurRadius?: number + warmth?: number + } + filter?: string + adjustments?: { + crop: { + ratio: string | number + width?: number + height?: number + x?: number + y?: number + ratioFolderKey?: string + ratioGroupKey?: string + ratioTitleKey?: string + } + isFlippedX?: boolean + isFlippedY?: boolean + rotation?: number + } + annotations?: { + [key: string]: AnnotationsCommon & + ( + | TextAnnotation + | RectAnnotation + | PolygonAnnotation + | PenAnnotation + | LineAnnotation + | ArrowAnnotation + ) & { + id: string + name: string + x: number + y: number + scaleX?: number + scaleY?: number + width?: number + height?: number + radius?: number + radiusX?: number + radiusY?: number + points?: number[] + image?: string | HTMLElement + } + } + resize?: { + width?: number + height?: number + manualChangeDisabled?: boolean + } + shownImageDimensions?: { + width: number + height: number + scaledBy: number + } +} + +export interface IFilerobotImageEditorConfig { + theme?: "light" + source: string | HTMLImageElement + annotationsCommon?: AnnotationsCommon + // [TOOLS_IDS.TEXT] + Text?: TextAnnotation & { + fonts?: (string | { label: string; value: string })[] + onFontChange?: (newFontFamily: string, reRenderCanvasFn: () => void) => void + } + // [TOOLS_IDS.IMAGE] + Image?: ImageAnnotation + // [TOOLS_IDS.ELLIPSE] + Ellipse?: AnnotationsCommon + // [TOOLS_IDS.RECT] + Rect?: RectAnnotation + // [TOOLS_IDS.POLYGON] + Polygon?: PolygonAnnotation + // [TOOLS_IDS.PEN] + Pen?: PenAnnotation + // [TOOLS_IDS.LINE]: { + Line?: LineAnnotation + // [TOOLS_IDS.ARROW]: { + Arrow?: ArrowAnnotation + // [TOOLS_IDS.ROTATE]: + Rotate?: RotateAnnotation + // [TOOLS_IDS.WATERMARK] + Watermark?: { + gallery?: string[] | { url: string; previewUrl: string }[] | [] + onUploadWatermarkImgClick?: ( + loadAndSetWatermarkImg: (imgUrl: string, revokeObjectUrl: boolean) => void, + ) => Promise<{ url: string; revokeObjectUrl?: boolean }> | void + textScalingRatio?: number + imageScalingRatio?: number + hideTextWatermark?: boolean + } + // [TOOLS_IDS.CROP] + Crop?: { + minWidth?: number + minHeight?: number + maxWidth?: null + maxHeight?: null + ratio?: 'original' | 'custom' | 'ellipse' | number + noPresets?: boolean + ratioTitleKey?: string + presetsItems?: CropPresetItem[] + presetsFolders?: CropPresetFolder[] + autoResize?: boolean + lockCropAreaAt?: + | 'top-left' + | 'top-center' + | 'top-right' + | 'center-left' + | 'center-center' + | 'center-right' + | 'bottom-left' + | 'bottom-center' + | 'bottom-right' + } + // TABS_IDS + tabsIds?: AvailableTabs[] | [] + defaultTabId?: AvailableTabs + defaultToolId?: AvailableTools + onBeforeSave?: (savedImageData: SavedImageData) => void | boolean + onSave?: onSaveFunction + onClose?: (closeReason: ClosingReasons, haveNotSavedChanges: boolean) => void + closeAfterSave?: boolean + defaultSavedImageName?: string + defaultSavedImageType?: 'png' | 'jpeg' | 'jpg' | 'webp' + defaultSavedImageQuality?: number + forceToPngInEllipticalCrop?: boolean + useBackendTranslations?: boolean + translations?: object + language?: 'en' | 'fr' | 'de' | 'it' | 'pt' | 'es' | 'nl' | 'pl' | 'ro' | string + avoidChangesNotSavedAlertOnLeave?: boolean + loadableDesignState?: ImageDesignState + showBackButton?: boolean + savingPixelRatio?: number + previewPixelRatio?: number + moreSaveOptions?: SaveOption[] + useCloudimage?: boolean + cloudimage?: { + token: string + dontPrefixUrl?: boolean + domain?: string + version?: string + secureProtocol?: boolean + loadableQuery?: string + imageSealing?: { + enable?: boolean + salt?: string + charCount?: number + includeParams?: string[] + } + } + observePluginContainerSize?: boolean + showCanvasOnly?: boolean + onModify?: (currentImageDesignState: ImageDesignState) => void + useZoomPresetsMenu?: boolean + disableZooming?: boolean + noCrossOrigin?: boolean + showSaveButton?: boolean + disableSaveIfNoChanges?: boolean + removeSaveButton?: boolean + resetOnImageSourceChange?: boolean + backgroundColor?: string + backgroundImage?: HTMLImageElement +} diff --git a/src/utils/imageUtils/downloadImagesAsZip.ts b/src/utils/imageUtils/downloadImagesAsZip.ts new file mode 100644 index 0000000..5c974d3 --- /dev/null +++ b/src/utils/imageUtils/downloadImagesAsZip.ts @@ -0,0 +1,65 @@ +import JSZip from 'jszip'; +interface ImageData { + blob: Blob; + url: string; + index: number; +} +/** + * 打包下载图片工具方法 + * @param urls 图片URL数组 + */ +export async function downloadImagesAsZip(urls: string[]): Promise { + const zip = new JSZip(); + + // 1. 并行获取所有图片资源(添加明确的类型声明) + const imagePromises = urls.map(async (url, index): Promise => { + try { + const response = await fetch(url); + if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); + const blob = await response.blob(); + return { blob, url, index }; + } catch (error) { + console.error(`Failed to download ${url}:`, error); + return null; + } + }); + + // 2. 使用类型守卫过滤null值 + const images = (await Promise.all(imagePromises)) + .filter((img): img is ImageData => img !== null); // 类型谓词 + + if (images.length === 0) { + throw new Error('No images were successfully downloaded'); + } + + // 3. 将图片添加到压缩包 + images.forEach(({ blob, url, index }) => { + const urlObj = new URL(url); + let filename = urlObj.pathname.split('/').pop() || ''; + + // 清理文件名中的查询参数 + filename = filename.split('?')[0]; + + // 处理空文件名或无效文件名 + if (!filename || !/\.[a-z0-9]+$/i.test(filename)) { + const extension = blob.type.split('/')[1] || 'bin'; + filename = `image-${index + 1}.${extension}`; + } + + zip.file(filename, blob); + }); + + // 4. 生成ZIP文件并触发下载 + const blob = await zip.generateAsync({ type: 'blob' }); + const downloadUrl = URL.createObjectURL(blob); + + const link = document.createElement('a'); + link.href = downloadUrl; + link.download = `images-${Date.now()}.zip`; + document.body.appendChild(link); + link.click(); + + // 5. 清理资源 + document.body.removeChild(link); + URL.revokeObjectURL(downloadUrl); +} diff --git a/src/utils/imageUtils/urlToBase64.ts b/src/utils/imageUtils/urlToBase64.ts new file mode 100644 index 0000000..d407814 --- /dev/null +++ b/src/utils/imageUtils/urlToBase64.ts @@ -0,0 +1,29 @@ +export async function urlToBase64(url: string): Promise { + try { + const response = await fetch(url, { + method: 'GET', + mode: 'no-cors', // 确保请求模式为cors + headers: { + 'Content-Type': 'image/*' // 根据实际情况调整类型 + } + }); + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + const blob = await response.blob(); + return new Promise((resolve, reject) => { + const reader = new FileReader(); + reader.onloadend = () => { + const base64data = reader.result?.toString(); + resolve(base64data || ''); + }; + reader.onerror = reject; + reader.readAsDataURL(blob); + }); + } catch (error) { + console.error('Error converting URL to Base64:', error); + return Promise.reject(error); + } +} diff --git a/src/utils/imageUtils/urlToBlob.ts b/src/utils/imageUtils/urlToBlob.ts new file mode 100644 index 0000000..681ac5a --- /dev/null +++ b/src/utils/imageUtils/urlToBlob.ts @@ -0,0 +1,13 @@ +export function urlToBlob(url: string): Promise { + return fetch(url) + .then(response => { + if (!response.ok) { + throw new Error(`Failed to fetch ${url}: ${response.status} ${response.statusText}`); + } + return response.blob(); + }) + .catch(error => { + console.error(error); + throw error; + }); +} diff --git a/src/views/Album/PeopleAlbum/PeopleAlbumList.vue b/src/views/Album/PeopleAlbum/PeopleAlbumList.vue index 80d9c24..d4618cf 100644 --- a/src/views/Album/PeopleAlbum/PeopleAlbumList.vue +++ b/src/views/Album/PeopleAlbum/PeopleAlbumList.vue @@ -51,6 +51,7 @@ :maxlength="10" @click.stop :placeholder="item.face_name" + autofocus class="people-album-add-input"> @@ -67,9 +67,11 @@ import more from "@/assets/svgs/more.svg"; import empty from "@/assets/svgs/empty.svg"; import useStore from "@/store"; import {message} from "ant-design-vue"; -import {deleteAlbumApi, renameAlbumApi} from "@/api/storage"; +import {deleteAlbumApi, downloadAlbumImagesApi, renameAlbumApi} from "@/api/storage"; +import {downloadImagesAsZip} from "@/utils/imageUtils/downloadImagesAsZip.ts"; const imageStore = useStore().image; +const uploadStore = useStore().upload; const isHovered = ref(null); const router = useRouter(); const route = useRoute(); @@ -118,6 +120,25 @@ async function deleteAlbum(id: number) { } } +/** + * 下载相册图片 + * @param id + */ +async function downloadAlbumImage(id: number) { + if (!id) { + return; + } + const res: any = await downloadAlbumImagesApi(id, uploadStore.storageSelected?.[0], uploadStore.storageSelected?.[1]); + if (res && res.code === 200) { + if (!res.data.records) { + message.warning("相册中没有图片"); + return; + } + await downloadImagesAsZip(res.data.records); + } + +} + diff --git a/src/views/RecyclingBin/RecyclingBin.vue b/src/views/RecyclingBin/RecyclingBin.vue index d0ad2c2..2f78b5f 100644 --- a/src/views/RecyclingBin/RecyclingBin.vue +++ b/src/views/RecyclingBin/RecyclingBin.vue @@ -4,6 +4,7 @@ 回收站 保存最近10天从云端删除的内容 +
@@ -13,10 +14,12 @@ import {getDeletedRecordApi} from "@/api/storage"; import useStore from "@/store"; import ImageWaterfallList from "@/components/ImageWaterfallList/ImageWaterfallList.vue"; +import ImageToolbar from "@/components/ImageToolbar/ImageToolbar.vue"; const imageList = ref([]); const upload = useStore().upload; const imageStore = useStore().image; + /** * 查询回收站 */ @@ -42,6 +45,7 @@ onMounted(() => { justify-content: flex-start; width: 100%; height: 100%; + gap: 10px; .recycling-bin-header { width: 100%; diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index e1517a6..5bcb0b4 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -27,4 +27,16 @@ declare module '*.svg' { export default content; } +import type {IFilerobotImageEditorConfig} from '@/types/imageEditorConfig.ts'; + +declare module '@/assets/lib/ImageEditor/filerobot-image-editor.min.js' { + export default class ImageEditor { + constructor(config: IFilerobotImageEditorConfig) + + render(): void + + terminate(): void + } +} +