From 048ea8a7786e15bb90e513c5cef5315046eaeb04 Mon Sep 17 00:00:00 2001 From: LiusCraft Date: Fri, 15 Mar 2024 09:57:37 +0800 Subject: [PATCH 1/3] fix: markdown load slow --- cmd/gopcomm/gop_autogen.go | 928 ++++++++++++++++--------------- cmd/gopcomm/yap/article_yap.html | 12 +- cmd/gopcomm/yap/layout_yap.html | 2 +- 3 files changed, 476 insertions(+), 466 deletions(-) diff --git a/cmd/gopcomm/gop_autogen.go b/cmd/gopcomm/gop_autogen.go index 70a57768..0fb1224a 100644 --- a/cmd/gopcomm/gop_autogen.go +++ b/cmd/gopcomm/gop_autogen.go @@ -122,1061 +122,1065 @@ func (this *community) MainEntry() { //line cmd/gopcomm/community_yap.gox:108:1 if err != nil { //line cmd/gopcomm/community_yap.gox:109:1 - uid = user.Id + xLog.Error("get user error:", err) +//line cmd/gopcomm/community_yap.gox:110:1 + return } +//line cmd/gopcomm/community_yap.gox:112:1 + uid = user.Id } -//line cmd/gopcomm/community_yap.gox:113:1 +//line cmd/gopcomm/community_yap.gox:115:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:114:1 +//line cmd/gopcomm/community_yap.gox:116:1 platform := ctx.Param("platform") -//line cmd/gopcomm/community_yap.gox:115:1 +//line cmd/gopcomm/community_yap.gox:117:1 ip := this.community.GetClientIP(ctx.Request) -//line cmd/gopcomm/community_yap.gox:116:1 +//line cmd/gopcomm/community_yap.gox:118:1 this.community.ArticleLView(todo, id, ip, uid, platform) -//line cmd/gopcomm/community_yap.gox:117:1 +//line cmd/gopcomm/community_yap.gox:119:1 article, err := this.community.Article(todo, id) -//line cmd/gopcomm/community_yap.gox:118:1 +//line cmd/gopcomm/community_yap.gox:120:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:119:1 +//line cmd/gopcomm/community_yap.gox:121:1 xLog.Error("get article error:", err) -//line cmd/gopcomm/community_yap.gox:120:1 +//line cmd/gopcomm/community_yap.gox:122:1 return } -//line cmd/gopcomm/community_yap.gox:122:1 +//line cmd/gopcomm/community_yap.gox:124:1 likeState, err := this.community.ArticleLikeState(todo, uid, id) -//line cmd/gopcomm/community_yap.gox:123:1 +//line cmd/gopcomm/community_yap.gox:125:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:124:1 +//line cmd/gopcomm/community_yap.gox:126:1 xLog.Error("article state err:", err) -//line cmd/gopcomm/community_yap.gox:125:1 +//line cmd/gopcomm/community_yap.gox:127:1 return } -//line cmd/gopcomm/community_yap.gox:128:1 +//line cmd/gopcomm/community_yap.gox:130:1 ctx.Yap__1("article", map[string]interface{}{"User": user, "Article": article, "LikeState": likeState}) }) -//line cmd/gopcomm/community_yap.gox:135:1 +//line cmd/gopcomm/community_yap.gox:137:1 this.Get("/add", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:136:1 +//line cmd/gopcomm/community_yap.gox:138:1 var user *core.User -//line cmd/gopcomm/community_yap.gox:137:1 +//line cmd/gopcomm/community_yap.gox:139:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:138:1 +//line cmd/gopcomm/community_yap.gox:140:1 if err == nil { -//line cmd/gopcomm/community_yap.gox:139:1 +//line cmd/gopcomm/community_yap.gox:141:1 user, _ = this.community.GetUser(token.Value) } -//line cmd/gopcomm/community_yap.gox:141:1 +//line cmd/gopcomm/community_yap.gox:143:1 ctx.Yap__1("edit", map[string]*core.User{"User": user}) }) -//line cmd/gopcomm/community_yap.gox:146:1 +//line cmd/gopcomm/community_yap.gox:148:1 this.Get("/edit/:id", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:147:1 +//line cmd/gopcomm/community_yap.gox:149:1 var user *core.User -//line cmd/gopcomm/community_yap.gox:148:1 +//line cmd/gopcomm/community_yap.gox:150:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:149:1 +//line cmd/gopcomm/community_yap.gox:151:1 if err == nil { -//line cmd/gopcomm/community_yap.gox:150:1 +//line cmd/gopcomm/community_yap.gox:152:1 user, _ = this.community.GetUser(token.Value) } -//line cmd/gopcomm/community_yap.gox:153:1 +//line cmd/gopcomm/community_yap.gox:155:1 uid := user.Id -//line cmd/gopcomm/community_yap.gox:154:1 +//line cmd/gopcomm/community_yap.gox:156:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:155:1 +//line cmd/gopcomm/community_yap.gox:157:1 if id != "" { -//line cmd/gopcomm/community_yap.gox:156:1 +//line cmd/gopcomm/community_yap.gox:158:1 editable, err := this.community.CanEditable(todo, uid, id) -//line cmd/gopcomm/community_yap.gox:157:1 +//line cmd/gopcomm/community_yap.gox:159:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:158:1 +//line cmd/gopcomm/community_yap.gox:160:1 xLog.Error("can editable error:", err) -//line cmd/gopcomm/community_yap.gox:159:1 +//line cmd/gopcomm/community_yap.gox:161:1 http.Redirect(ctx.ResponseWriter, ctx.Request, "/error", http.StatusTemporaryRedirect) } -//line cmd/gopcomm/community_yap.gox:161:1 +//line cmd/gopcomm/community_yap.gox:163:1 if !editable { -//line cmd/gopcomm/community_yap.gox:162:1 +//line cmd/gopcomm/community_yap.gox:164:1 xLog.Error("no permissions") -//line cmd/gopcomm/community_yap.gox:163:1 +//line cmd/gopcomm/community_yap.gox:165:1 http.Redirect(ctx.ResponseWriter, ctx.Request, "/error", http.StatusTemporaryRedirect) } -//line cmd/gopcomm/community_yap.gox:165:1 +//line cmd/gopcomm/community_yap.gox:167:1 article, err := this.community.Article(todo, id) -//line cmd/gopcomm/community_yap.gox:166:1 +//line cmd/gopcomm/community_yap.gox:168:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:167:1 +//line cmd/gopcomm/community_yap.gox:169:1 xLog.Error("get article error:", err) -//line cmd/gopcomm/community_yap.gox:168:1 +//line cmd/gopcomm/community_yap.gox:170:1 http.Redirect(ctx.ResponseWriter, ctx.Request, "/error", http.StatusTemporaryRedirect) } -//line cmd/gopcomm/community_yap.gox:171:1 +//line cmd/gopcomm/community_yap.gox:173:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:172:1 +//line cmd/gopcomm/community_yap.gox:174:1 xLog.Error("json marshal error:", err) -//line cmd/gopcomm/community_yap.gox:173:1 +//line cmd/gopcomm/community_yap.gox:175:1 http.Redirect(ctx.ResponseWriter, ctx.Request, "/error", http.StatusTemporaryRedirect) } -//line cmd/gopcomm/community_yap.gox:175:1 +//line cmd/gopcomm/community_yap.gox:177:1 ctx.Yap__1("edit", map[string]interface{}{"User": user, "Article": article}) } }) -//line cmd/gopcomm/community_yap.gox:182:1 +//line cmd/gopcomm/community_yap.gox:184:1 this.Get("/search", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:183:1 +//line cmd/gopcomm/community_yap.gox:185:1 searchValue := ctx.Param("value") -//line cmd/gopcomm/community_yap.gox:184:1 +//line cmd/gopcomm/community_yap.gox:186:1 label := ctx.Param("label") -//line cmd/gopcomm/community_yap.gox:185:1 +//line cmd/gopcomm/community_yap.gox:187:1 if label == "" { -//line cmd/gopcomm/community_yap.gox:186:1 +//line cmd/gopcomm/community_yap.gox:188:1 label = "article" } -//line cmd/gopcomm/community_yap.gox:189:1 +//line cmd/gopcomm/community_yap.gox:191:1 // todo middleware var user *core.User -//line cmd/gopcomm/community_yap.gox:191:1 +//line cmd/gopcomm/community_yap.gox:193:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:192:1 +//line cmd/gopcomm/community_yap.gox:194:1 if err == nil { -//line cmd/gopcomm/community_yap.gox:193:1 +//line cmd/gopcomm/community_yap.gox:195:1 user, _ = this.community.GetUser(token.Value) } -//line cmd/gopcomm/community_yap.gox:196:1 +//line cmd/gopcomm/community_yap.gox:198:1 articles, next, err := this.community.ListArticle(todo, core.MarkBegin, limitConst, searchValue, label) -//line cmd/gopcomm/community_yap.gox:197:1 +//line cmd/gopcomm/community_yap.gox:199:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:198:1 +//line cmd/gopcomm/community_yap.gox:200:1 xLog.Error("get article error:", err) } -//line cmd/gopcomm/community_yap.gox:201:1 +//line cmd/gopcomm/community_yap.gox:203:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:202:1 +//line cmd/gopcomm/community_yap.gox:204:1 xLog.Error("json marshal error:", err) } -//line cmd/gopcomm/community_yap.gox:204:1 +//line cmd/gopcomm/community_yap.gox:206:1 ctx.Yap__1("home", map[string]interface{}{"User": user, "Items": articles, "Value": searchValue, "Next": next, "Tab": label}) }) -//line cmd/gopcomm/community_yap.gox:216:1 +//line cmd/gopcomm/community_yap.gox:218:1 this.Get("/api/article/:id", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:217:1 +//line cmd/gopcomm/community_yap.gox:219:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:218:1 +//line cmd/gopcomm/community_yap.gox:220:1 article, err := this.community.Article(todo, id) -//line cmd/gopcomm/community_yap.gox:219:1 +//line cmd/gopcomm/community_yap.gox:221:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:220:1 +//line cmd/gopcomm/community_yap.gox:222:1 xLog.Error("get article error:", err) -//line cmd/gopcomm/community_yap.gox:221:1 +//line cmd/gopcomm/community_yap.gox:223:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": "get article failed"}) } -//line cmd/gopcomm/community_yap.gox:226:1 +//line cmd/gopcomm/community_yap.gox:228:1 ctx.Json__1(map[string]interface{}{"code": 200, "data": article}) }) -//line cmd/gopcomm/community_yap.gox:232:1 +//line cmd/gopcomm/community_yap.gox:234:1 this.Delete("/api/article/:id", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:233:1 +//line cmd/gopcomm/community_yap.gox:235:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:234:1 +//line cmd/gopcomm/community_yap.gox:236:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:235:1 +//line cmd/gopcomm/community_yap.gox:237:1 uid, err := this.community.ParseJwtToken(token.Value) -//line cmd/gopcomm/community_yap.gox:236:1 +//line cmd/gopcomm/community_yap.gox:238:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:237:1 +//line cmd/gopcomm/community_yap.gox:239:1 xLog.Error("token parse error") -//line cmd/gopcomm/community_yap.gox:238:1 +//line cmd/gopcomm/community_yap.gox:240:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:243:1 +//line cmd/gopcomm/community_yap.gox:245:1 err = this.community.DeleteArticle(todo, uid, id) -//line cmd/gopcomm/community_yap.gox:244:1 +//line cmd/gopcomm/community_yap.gox:246:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:245:1 +//line cmd/gopcomm/community_yap.gox:247:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": "delete failed"}) } else { -//line cmd/gopcomm/community_yap.gox:250:1 +//line cmd/gopcomm/community_yap.gox:252:1 ctx.Json__1(map[string]interface{}{"code": 200, "msg": "delete success"}) } }) -//line cmd/gopcomm/community_yap.gox:257:1 +//line cmd/gopcomm/community_yap.gox:259:1 this.Get("/api/articles", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:258:1 +//line cmd/gopcomm/community_yap.gox:260:1 from := ctx.Param("from") -//line cmd/gopcomm/community_yap.gox:259:1 +//line cmd/gopcomm/community_yap.gox:261:1 limit := ctx.Param("limit") -//line cmd/gopcomm/community_yap.gox:260:1 +//line cmd/gopcomm/community_yap.gox:262:1 searchValue := ctx.Param("value") -//line cmd/gopcomm/community_yap.gox:261:1 - label := ctx.Param("label") //line cmd/gopcomm/community_yap.gox:263:1 + label := ctx.Param("label") +//line cmd/gopcomm/community_yap.gox:265:1 limitInt, err := strconv.Atoi(limit) -//line cmd/gopcomm/community_yap.gox:264:1 +//line cmd/gopcomm/community_yap.gox:266:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:265:1 +//line cmd/gopcomm/community_yap.gox:267:1 limitInt = limitConst } -//line cmd/gopcomm/community_yap.gox:268:1 +//line cmd/gopcomm/community_yap.gox:270:1 articles, next, err := this.community.ListArticle(todo, from, limitInt, searchValue, label) -//line cmd/gopcomm/community_yap.gox:269:1 +//line cmd/gopcomm/community_yap.gox:271:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:270:1 +//line cmd/gopcomm/community_yap.gox:272:1 xLog.Error("get article error:", err) -//line cmd/gopcomm/community_yap.gox:271:1 +//line cmd/gopcomm/community_yap.gox:273:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": "get article failed"}) } -//line cmd/gopcomm/community_yap.gox:276:1 +//line cmd/gopcomm/community_yap.gox:278:1 ctx.Json__1(map[string]interface{}{"code": 200, "items": articles, "next": next, "value": searchValue}) }) -//line cmd/gopcomm/community_yap.gox:284:1 +//line cmd/gopcomm/community_yap.gox:286:1 this.Post("/api/article/commit", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:285:1 +//line cmd/gopcomm/community_yap.gox:287:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:286:1 +//line cmd/gopcomm/community_yap.gox:288:1 content := ctx.Param("content") -//line cmd/gopcomm/community_yap.gox:287:1 +//line cmd/gopcomm/community_yap.gox:289:1 title := ctx.Param("title") -//line cmd/gopcomm/community_yap.gox:288:1 +//line cmd/gopcomm/community_yap.gox:290:1 tags := ctx.Param("tags") -//line cmd/gopcomm/community_yap.gox:289:1 +//line cmd/gopcomm/community_yap.gox:291:1 abstract := ctx.Param("abstract") -//line cmd/gopcomm/community_yap.gox:290:1 +//line cmd/gopcomm/community_yap.gox:292:1 label := ctx.Param("label") -//line cmd/gopcomm/community_yap.gox:291:1 +//line cmd/gopcomm/community_yap.gox:293:1 trans, err := strconv.ParseBool(ctx.Param("trans")) -//line cmd/gopcomm/community_yap.gox:292:1 +//line cmd/gopcomm/community_yap.gox:294:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:293:1 +//line cmd/gopcomm/community_yap.gox:295:1 xLog.Error("parse bool error:", err) } -//line cmd/gopcomm/community_yap.gox:296:1 +//line cmd/gopcomm/community_yap.gox:298:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:297:1 +//line cmd/gopcomm/community_yap.gox:299:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:298:1 +//line cmd/gopcomm/community_yap.gox:300:1 xLog.Info("token", err) -//line cmd/gopcomm/community_yap.gox:299:1 +//line cmd/gopcomm/community_yap.gox:301:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": "no token"}) } -//line cmd/gopcomm/community_yap.gox:304:1 +//line cmd/gopcomm/community_yap.gox:306:1 uid, err := this.community.ParseJwtToken(token.Value) -//line cmd/gopcomm/community_yap.gox:305:1 +//line cmd/gopcomm/community_yap.gox:307:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:306:1 +//line cmd/gopcomm/community_yap.gox:308:1 xLog.Info("uid", err) -//line cmd/gopcomm/community_yap.gox:307:1 +//line cmd/gopcomm/community_yap.gox:309:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:312:1 +//line cmd/gopcomm/community_yap.gox:314:1 article := &core.Article{ArticleEntry: core.ArticleEntry{ID: id, Title: title, UId: uid, Cover: ctx.Param("cover"), Tags: tags, Abstract: abstract, Label: label}, Content: content, Trans: trans, VttId: ctx.Param("vtt_id")} -//line cmd/gopcomm/community_yap.gox:328:1 +//line cmd/gopcomm/community_yap.gox:330:1 if trans { -//line cmd/gopcomm/community_yap.gox:329:1 +//line cmd/gopcomm/community_yap.gox:331:1 article, _ = this.community.TranslateArticle(todo, article) } -//line cmd/gopcomm/community_yap.gox:332:1 +//line cmd/gopcomm/community_yap.gox:334:1 id, err = this.community.PutArticle(todo, uid, article) -//line cmd/gopcomm/community_yap.gox:333:1 +//line cmd/gopcomm/community_yap.gox:335:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:334:1 +//line cmd/gopcomm/community_yap.gox:336:1 xLog.Info(err) -//line cmd/gopcomm/community_yap.gox:335:1 +//line cmd/gopcomm/community_yap.gox:337:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": "add failed"}) } -//line cmd/gopcomm/community_yap.gox:340:1 +//line cmd/gopcomm/community_yap.gox:342:1 ctx.Json__1(map[string]interface{}{"code": 200, "data": id}) }) -//line cmd/gopcomm/community_yap.gox:349:1 +//line cmd/gopcomm/community_yap.gox:351:1 this.Get("/user/:id", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:350:1 - id := ctx.Param("id") //line cmd/gopcomm/community_yap.gox:352:1 + id := ctx.Param("id") +//line cmd/gopcomm/community_yap.gox:354:1 userClaim, err := this.community.GetUserClaim(id) -//line cmd/gopcomm/community_yap.gox:353:1 +//line cmd/gopcomm/community_yap.gox:355:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:354:1 +//line cmd/gopcomm/community_yap.gox:356:1 xLog.Error("get current user error:", err) } -//line cmd/gopcomm/community_yap.gox:356:1 +//line cmd/gopcomm/community_yap.gox:358:1 // get user by token var user *core.User -//line cmd/gopcomm/community_yap.gox:358:1 +//line cmd/gopcomm/community_yap.gox:360:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:359:1 +//line cmd/gopcomm/community_yap.gox:361:1 if err == nil { -//line cmd/gopcomm/community_yap.gox:360:1 +//line cmd/gopcomm/community_yap.gox:362:1 user, _ = this.community.GetUser(token.Value) } -//line cmd/gopcomm/community_yap.gox:363:1 +//line cmd/gopcomm/community_yap.gox:365:1 items, total, err := this.community.GetArticlesByUid(todo, id, firstConst, mediaLimitConst) -//line cmd/gopcomm/community_yap.gox:364:1 +//line cmd/gopcomm/community_yap.gox:366:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:365:1 +//line cmd/gopcomm/community_yap.gox:367:1 xLog.Error("get article list error:", err) } -//line cmd/gopcomm/community_yap.gox:368:1 +//line cmd/gopcomm/community_yap.gox:370:1 isAdmin, err := this.community.IsAdmin(id) -//line cmd/gopcomm/community_yap.gox:369:1 +//line cmd/gopcomm/community_yap.gox:371:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:370:1 +//line cmd/gopcomm/community_yap.gox:372:1 xLog.Error("check admin error:", err) } -//line cmd/gopcomm/community_yap.gox:372:1 +//line cmd/gopcomm/community_yap.gox:374:1 ctx.Yap__1("user", map[string]interface{}{"Id": id, "CurrentUser": userClaim, "User": user, "Items": items, "Total": total, "IsAdmin": isAdmin}) }) -//line cmd/gopcomm/community_yap.gox:382:1 +//line cmd/gopcomm/community_yap.gox:384:1 this.Get("/user/edit", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:383:1 +//line cmd/gopcomm/community_yap.gox:385:1 var user *core.User -//line cmd/gopcomm/community_yap.gox:384:1 +//line cmd/gopcomm/community_yap.gox:386:1 var uid string -//line cmd/gopcomm/community_yap.gox:385:1 +//line cmd/gopcomm/community_yap.gox:387:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:386:1 +//line cmd/gopcomm/community_yap.gox:388:1 if err == nil { -//line cmd/gopcomm/community_yap.gox:387:1 +//line cmd/gopcomm/community_yap.gox:389:1 user, err = this.community.GetUser(token.Value) -//line cmd/gopcomm/community_yap.gox:388:1 +//line cmd/gopcomm/community_yap.gox:390:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:389:1 +//line cmd/gopcomm/community_yap.gox:391:1 xLog.Error("get user error:", err) } -//line cmd/gopcomm/community_yap.gox:391:1 +//line cmd/gopcomm/community_yap.gox:393:1 uid = user.Id } -//line cmd/gopcomm/community_yap.gox:393:1 +//line cmd/gopcomm/community_yap.gox:395:1 userClaim, err := this.community.GetUserClaim(uid) -//line cmd/gopcomm/community_yap.gox:394:1 +//line cmd/gopcomm/community_yap.gox:396:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:395:1 +//line cmd/gopcomm/community_yap.gox:397:1 xLog.Error("get current user error:", err) } -//line cmd/gopcomm/community_yap.gox:397:1 +//line cmd/gopcomm/community_yap.gox:399:1 gac, err := gopaccountsdk.GetClient(token.Value) -//line cmd/gopcomm/community_yap.gox:398:1 +//line cmd/gopcomm/community_yap.gox:400:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:399:1 +//line cmd/gopcomm/community_yap.gox:401:1 xLog.Info("gac", err) -//line cmd/gopcomm/community_yap.gox:400:1 +//line cmd/gopcomm/community_yap.gox:402:1 http.Redirect(ctx.ResponseWriter, ctx.Request, "/error", http.StatusTemporaryRedirect) } -//line cmd/gopcomm/community_yap.gox:402:1 +//line cmd/gopcomm/community_yap.gox:404:1 appInfo, err := this.community.GetApplicationInfo() -//line cmd/gopcomm/community_yap.gox:403:1 +//line cmd/gopcomm/community_yap.gox:405:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:404:1 +//line cmd/gopcomm/community_yap.gox:406:1 xLog.Error("get application info error:", err) -//line cmd/gopcomm/community_yap.gox:405:1 +//line cmd/gopcomm/community_yap.gox:407:1 http.Redirect(ctx.ResponseWriter, ctx.Request, "/error", http.StatusTemporaryRedirect) } -//line cmd/gopcomm/community_yap.gox:407:1 - providers := gac.GetProviders() //line cmd/gopcomm/community_yap.gox:409:1 + providers := gac.GetProviders() +//line cmd/gopcomm/community_yap.gox:411:1 ctx.Yap__1("user_edit", map[string]interface{}{"User": user, "CurrentUser": userClaim, "Application": appInfo, "Binds": gac.GetProviderBindStatus(), "casdoorUrl": gopaccountsdk.GetCasdoorEndPoint(), "providers": providers}) }) -//line cmd/gopcomm/community_yap.gox:422:1 +//line cmd/gopcomm/community_yap.gox:424:1 this.Put("/api/user", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:423:1 +//line cmd/gopcomm/community_yap.gox:425:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:424:1 +//line cmd/gopcomm/community_yap.gox:426:1 uid, err := this.community.ParseJwtToken(token.Value) -//line cmd/gopcomm/community_yap.gox:425:1 +//line cmd/gopcomm/community_yap.gox:427:1 user := &core.UserInfo{Id: uid, Name: ctx.Param("name"), Birthday: ctx.Param("birthday"), Gender: ctx.Param("gender"), Phone: ctx.Param("phone"), Email: ctx.Param("email"), Avatar: ctx.Param("avatar"), Owner: ctx.Param("owner"), DisplayName: ctx.Param("displayName")} -//line cmd/gopcomm/community_yap.gox:437:1 +//line cmd/gopcomm/community_yap.gox:439:1 _, err = this.community.UpdateUser(user) -//line cmd/gopcomm/community_yap.gox:438:1 +//line cmd/gopcomm/community_yap.gox:440:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:439:1 +//line cmd/gopcomm/community_yap.gox:441:1 xLog.Info(err) -//line cmd/gopcomm/community_yap.gox:440:1 +//line cmd/gopcomm/community_yap.gox:442:1 ctx.Json__1(map[string]interface{}{"code": 0, "msg": "update failed"}) } -//line cmd/gopcomm/community_yap.gox:445:1 +//line cmd/gopcomm/community_yap.gox:447:1 ctx.Json__1(map[string]int{"code": 200}) }) -//line cmd/gopcomm/community_yap.gox:450:1 +//line cmd/gopcomm/community_yap.gox:452:1 this.Get("/api/users", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:451:1 +//line cmd/gopcomm/community_yap.gox:453:1 // get user by token var user *core.User -//line cmd/gopcomm/community_yap.gox:453:1 +//line cmd/gopcomm/community_yap.gox:455:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:454:1 +//line cmd/gopcomm/community_yap.gox:456:1 if err == nil { -//line cmd/gopcomm/community_yap.gox:455:1 +//line cmd/gopcomm/community_yap.gox:457:1 casdoorUser, _ := this.community.GetUser(token.Value) -//line cmd/gopcomm/community_yap.gox:456:1 +//line cmd/gopcomm/community_yap.gox:458:1 user = &core.User{Id: casdoorUser.Id} } else { -//line cmd/gopcomm/community_yap.gox:460:1 +//line cmd/gopcomm/community_yap.gox:462:1 xLog.Error("get token error:", err) -//line cmd/gopcomm/community_yap.gox:461:1 +//line cmd/gopcomm/community_yap.gox:463:1 ctx.Json__1(map[string]interface{}{"code": 0, "msg": "get token failed", "users": nil, "next": 1}) } -//line cmd/gopcomm/community_yap.gox:469:1 +//line cmd/gopcomm/community_yap.gox:471:1 from := ctx.Param("from") -//line cmd/gopcomm/community_yap.gox:470:1 +//line cmd/gopcomm/community_yap.gox:472:1 limit := ctx.Param("limit") -//line cmd/gopcomm/community_yap.gox:471:1 +//line cmd/gopcomm/community_yap.gox:473:1 fromInt, err := strconv.Atoi(from) -//line cmd/gopcomm/community_yap.gox:472:1 +//line cmd/gopcomm/community_yap.gox:474:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:473:1 +//line cmd/gopcomm/community_yap.gox:475:1 fromInt = 1 } -//line cmd/gopcomm/community_yap.gox:475:1 +//line cmd/gopcomm/community_yap.gox:477:1 limitInt, err := strconv.Atoi(limit) -//line cmd/gopcomm/community_yap.gox:476:1 +//line cmd/gopcomm/community_yap.gox:478:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:477:1 +//line cmd/gopcomm/community_yap.gox:479:1 limitInt = limitConst } -//line cmd/gopcomm/community_yap.gox:481:1 +//line cmd/gopcomm/community_yap.gox:483:1 userAuth, err := this.community.GetUserAuthById(user.Id) -//line cmd/gopcomm/community_yap.gox:482:1 +//line cmd/gopcomm/community_yap.gox:484:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:483:1 +//line cmd/gopcomm/community_yap.gox:485:1 xLog.Error("get current user auth error:", err) } -//line cmd/gopcomm/community_yap.gox:486:1 +//line cmd/gopcomm/community_yap.gox:488:1 if !userAuth.Status { -//line cmd/gopcomm/community_yap.gox:487:1 +//line cmd/gopcomm/community_yap.gox:489:1 ctx.Json__1(map[string]interface{}{"code": 0, "msg": "auth failed", "items": nil, "total": 10, "next": 1}) } -//line cmd/gopcomm/community_yap.gox:496:1 +//line cmd/gopcomm/community_yap.gox:498:1 users, next, err := this.community.ListPageUsers(fromInt, limitInt) -//line cmd/gopcomm/community_yap.gox:497:1 +//line cmd/gopcomm/community_yap.gox:499:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:498:1 +//line cmd/gopcomm/community_yap.gox:500:1 xLog.Error("get users error:", err) -//line cmd/gopcomm/community_yap.gox:499:1 +//line cmd/gopcomm/community_yap.gox:501:1 ctx.Json__1(map[string]interface{}{"code": 0, "msg": "get users failed", "items": nil, "total": 10, "next": 1}) } -//line cmd/gopcomm/community_yap.gox:508:1 +//line cmd/gopcomm/community_yap.gox:510:1 ctx.Json__1(map[string]interface{}{"code": 200, "msg": "ok", "items": users, "total": len(users), "next": next}) }) -//line cmd/gopcomm/community_yap.gox:517:1 +//line cmd/gopcomm/community_yap.gox:519:1 this.Put("/api/user/public", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:518:1 +//line cmd/gopcomm/community_yap.gox:520:1 // get user by token var user *core.User -//line cmd/gopcomm/community_yap.gox:520:1 +//line cmd/gopcomm/community_yap.gox:522:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:521:1 +//line cmd/gopcomm/community_yap.gox:523:1 if err == nil { -//line cmd/gopcomm/community_yap.gox:522:1 +//line cmd/gopcomm/community_yap.gox:524:1 casdoorUser, _ := this.community.GetUser(token.Value) -//line cmd/gopcomm/community_yap.gox:523:1 +//line cmd/gopcomm/community_yap.gox:525:1 user = &core.User{Id: casdoorUser.Id} } else { -//line cmd/gopcomm/community_yap.gox:527:1 +//line cmd/gopcomm/community_yap.gox:529:1 xLog.Error("get token error:", err) -//line cmd/gopcomm/community_yap.gox:528:1 +//line cmd/gopcomm/community_yap.gox:530:1 ctx.Json__1(map[string]interface{}{"code": 0, "msg": "get token failed", "users": nil, "next": 1}) } -//line cmd/gopcomm/community_yap.gox:537:1 +//line cmd/gopcomm/community_yap.gox:539:1 userAuth, err := this.community.GetUserAuthById(user.Id) -//line cmd/gopcomm/community_yap.gox:538:1 +//line cmd/gopcomm/community_yap.gox:540:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:539:1 +//line cmd/gopcomm/community_yap.gox:541:1 xLog.Error("get current user auth error:", err) } -//line cmd/gopcomm/community_yap.gox:542:1 +//line cmd/gopcomm/community_yap.gox:544:1 if !userAuth.Status { -//line cmd/gopcomm/community_yap.gox:543:1 +//line cmd/gopcomm/community_yap.gox:545:1 ctx.Json__1(map[string]interface{}{"code": 0, "msg": "auth failed", "items": nil, "total": 10, "next": 1}) } -//line cmd/gopcomm/community_yap.gox:552:1 +//line cmd/gopcomm/community_yap.gox:554:1 uid := ctx.Param("uid") -//line cmd/gopcomm/community_yap.gox:553:1 +//line cmd/gopcomm/community_yap.gox:555:1 isPublic := ctx.Param("is_public") -//line cmd/gopcomm/community_yap.gox:554:1 +//line cmd/gopcomm/community_yap.gox:556:1 isPublicBool, err := strconv.ParseBool(isPublic) -//line cmd/gopcomm/community_yap.gox:555:1 +//line cmd/gopcomm/community_yap.gox:557:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:556:1 +//line cmd/gopcomm/community_yap.gox:558:1 xLog.Error("parse bool error:", err) -//line cmd/gopcomm/community_yap.gox:557:1 +//line cmd/gopcomm/community_yap.gox:559:1 ctx.Json__1(map[string]interface{}{"code": 0, "msg": "parse bool failed"}) } -//line cmd/gopcomm/community_yap.gox:563:1 +//line cmd/gopcomm/community_yap.gox:565:1 res, err := this.community.UpdateUserPublicAuth(uid, isPublicBool) -//line cmd/gopcomm/community_yap.gox:564:1 +//line cmd/gopcomm/community_yap.gox:566:1 if err != nil || !res { -//line cmd/gopcomm/community_yap.gox:565:1 +//line cmd/gopcomm/community_yap.gox:567:1 xLog.Info(err) -//line cmd/gopcomm/community_yap.gox:566:1 +//line cmd/gopcomm/community_yap.gox:568:1 ctx.Json__1(map[string]interface{}{"code": 0, "msg": "update failed"}) } -//line cmd/gopcomm/community_yap.gox:572:1 +//line cmd/gopcomm/community_yap.gox:574:1 ctx.Json__1(map[string]int{"code": 200}) }) -//line cmd/gopcomm/community_yap.gox:577:1 +//line cmd/gopcomm/community_yap.gox:579:1 this.Get("/api/user/get-qrcode", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:578:1 +//line cmd/gopcomm/community_yap.gox:580:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:579:1 +//line cmd/gopcomm/community_yap.gox:581:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:580:1 +//line cmd/gopcomm/community_yap.gox:582:1 ctx.Json__1(map[string]int{"code": 500}) -//line cmd/gopcomm/community_yap.gox:583:1 +//line cmd/gopcomm/community_yap.gox:585:1 return } -//line cmd/gopcomm/community_yap.gox:585:1 +//line cmd/gopcomm/community_yap.gox:587:1 gac, err := gopaccountsdk.GetClient(token.Value) -//line cmd/gopcomm/community_yap.gox:586:1 +//line cmd/gopcomm/community_yap.gox:588:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:587:1 +//line cmd/gopcomm/community_yap.gox:589:1 ctx.Json__1(map[string]int{"code": 500}) -//line cmd/gopcomm/community_yap.gox:590:1 +//line cmd/gopcomm/community_yap.gox:592:1 return } -//line cmd/gopcomm/community_yap.gox:592:1 +//line cmd/gopcomm/community_yap.gox:594:1 qrData, ticket, err := gac.GetProviderWeChatQRCode("provider_wechat") -//line cmd/gopcomm/community_yap.gox:593:1 +//line cmd/gopcomm/community_yap.gox:595:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:594:1 +//line cmd/gopcomm/community_yap.gox:596:1 ctx.Json__1(map[string]int{"code": 500}) -//line cmd/gopcomm/community_yap.gox:597:1 +//line cmd/gopcomm/community_yap.gox:599:1 return } -//line cmd/gopcomm/community_yap.gox:599:1 +//line cmd/gopcomm/community_yap.gox:601:1 ctx.Json__1(map[string]interface{}{"data": qrData, "data2": ticket, "code": 200}) }) -//line cmd/gopcomm/community_yap.gox:605:1 +//line cmd/gopcomm/community_yap.gox:607:1 this.Get("/api/user/acoount/unlink", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:606:1 +//line cmd/gopcomm/community_yap.gox:608:1 pv := ctx.Param("pv") -//line cmd/gopcomm/community_yap.gox:607:1 +//line cmd/gopcomm/community_yap.gox:609:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:608:1 +//line cmd/gopcomm/community_yap.gox:610:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:609:1 +//line cmd/gopcomm/community_yap.gox:611:1 ctx.Json__1(map[string]int{"code": 200}) -//line cmd/gopcomm/community_yap.gox:612:1 +//line cmd/gopcomm/community_yap.gox:614:1 return } -//line cmd/gopcomm/community_yap.gox:614:1 +//line cmd/gopcomm/community_yap.gox:616:1 switch pv { -//line cmd/gopcomm/community_yap.gox:615:1 +//line cmd/gopcomm/community_yap.gox:617:1 case "Twitter": -//line cmd/gopcomm/community_yap.gox:616:1 +//line cmd/gopcomm/community_yap.gox:618:1 case "Facebook": -//line cmd/gopcomm/community_yap.gox:617:1 +//line cmd/gopcomm/community_yap.gox:619:1 case "Github": -//line cmd/gopcomm/community_yap.gox:618:1 +//line cmd/gopcomm/community_yap.gox:620:1 case "WeChat": -//line cmd/gopcomm/community_yap.gox:619:1 +//line cmd/gopcomm/community_yap.gox:621:1 default: -//line cmd/gopcomm/community_yap.gox:620:1 +//line cmd/gopcomm/community_yap.gox:622:1 pv = "" } -//line cmd/gopcomm/community_yap.gox:622:1 +//line cmd/gopcomm/community_yap.gox:624:1 gac, err := gopaccountsdk.GetClient(token.Value) -//line cmd/gopcomm/community_yap.gox:623:1 +//line cmd/gopcomm/community_yap.gox:625:1 if err == nil { -//line cmd/gopcomm/community_yap.gox:624:1 +//line cmd/gopcomm/community_yap.gox:626:1 gac.UnLink(pv) } -//line cmd/gopcomm/community_yap.gox:626:1 +//line cmd/gopcomm/community_yap.gox:628:1 ctx.Json__1(map[string]int{"code": 200}) }) -//line cmd/gopcomm/community_yap.gox:631:1 +//line cmd/gopcomm/community_yap.gox:633:1 this.Get("/api/user/:id/articles", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:632:1 +//line cmd/gopcomm/community_yap.gox:634:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:633:1 +//line cmd/gopcomm/community_yap.gox:635:1 page := ctx.Param("page") -//line cmd/gopcomm/community_yap.gox:634:1 - limit := ctx.Param("limit") //line cmd/gopcomm/community_yap.gox:636:1 + limit := ctx.Param("limit") +//line cmd/gopcomm/community_yap.gox:638:1 limitInt, err := strconv.Atoi(limit) -//line cmd/gopcomm/community_yap.gox:637:1 +//line cmd/gopcomm/community_yap.gox:639:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:638:1 +//line cmd/gopcomm/community_yap.gox:640:1 limitInt = mediaLimitConst } -//line cmd/gopcomm/community_yap.gox:640:1 +//line cmd/gopcomm/community_yap.gox:642:1 items, total, err := this.community.GetArticlesByUid(todo, id, page, limitInt) -//line cmd/gopcomm/community_yap.gox:641:1 +//line cmd/gopcomm/community_yap.gox:643:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:642:1 +//line cmd/gopcomm/community_yap.gox:644:1 xLog.Error("get article list error:", err) -//line cmd/gopcomm/community_yap.gox:643:1 +//line cmd/gopcomm/community_yap.gox:645:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": err.Error(), "total": 0}) } -//line cmd/gopcomm/community_yap.gox:649:1 +//line cmd/gopcomm/community_yap.gox:651:1 ctx.Json__1(map[string]interface{}{"code": 200, "items": items, "total": total}) }) -//line cmd/gopcomm/community_yap.gox:656:1 +//line cmd/gopcomm/community_yap.gox:658:1 this.Get("/api/user/:id/medias", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:657:1 +//line cmd/gopcomm/community_yap.gox:659:1 format := ctx.Param("format") -//line cmd/gopcomm/community_yap.gox:658:1 +//line cmd/gopcomm/community_yap.gox:660:1 uid := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:659:1 +//line cmd/gopcomm/community_yap.gox:661:1 page := ctx.Param("page") -//line cmd/gopcomm/community_yap.gox:660:1 - limit := ctx.Param("limit") //line cmd/gopcomm/community_yap.gox:662:1 + limit := ctx.Param("limit") +//line cmd/gopcomm/community_yap.gox:664:1 limitInt, err := strconv.Atoi(limit) -//line cmd/gopcomm/community_yap.gox:663:1 +//line cmd/gopcomm/community_yap.gox:665:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:664:1 +//line cmd/gopcomm/community_yap.gox:666:1 limitInt = mediaLimitConst } -//line cmd/gopcomm/community_yap.gox:666:1 +//line cmd/gopcomm/community_yap.gox:668:1 pageInt, err := strconv.Atoi(page) -//line cmd/gopcomm/community_yap.gox:667:1 +//line cmd/gopcomm/community_yap.gox:669:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:668:1 +//line cmd/gopcomm/community_yap.gox:670:1 ctx.Json__1(map[string]interface{}{"code": 400, "total": 0, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:674:1 +//line cmd/gopcomm/community_yap.gox:676:1 files, total, err := this.community.ListMediaByUserId(todo, uid, format, pageInt, limitInt) -//line cmd/gopcomm/community_yap.gox:675:1 +//line cmd/gopcomm/community_yap.gox:677:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:676:1 +//line cmd/gopcomm/community_yap.gox:678:1 ctx.Json__1(map[string]interface{}{"code": 0, "total": total, "err": err.Error()}) } else { -//line cmd/gopcomm/community_yap.gox:682:1 +//line cmd/gopcomm/community_yap.gox:684:1 ctx.Json__1(map[string]interface{}{"code": 200, "total": total, "items": files}) } }) -//line cmd/gopcomm/community_yap.gox:693:1 +//line cmd/gopcomm/community_yap.gox:695:1 this.Delete("/api/media/:id", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:694:1 +//line cmd/gopcomm/community_yap.gox:696:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:695:1 +//line cmd/gopcomm/community_yap.gox:697:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:696:1 +//line cmd/gopcomm/community_yap.gox:698:1 uid, err := this.community.ParseJwtToken(token.Value) -//line cmd/gopcomm/community_yap.gox:697:1 +//line cmd/gopcomm/community_yap.gox:699:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:698:1 +//line cmd/gopcomm/community_yap.gox:700:1 xLog.Error("token parse error") -//line cmd/gopcomm/community_yap.gox:699:1 +//line cmd/gopcomm/community_yap.gox:701:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:704:1 +//line cmd/gopcomm/community_yap.gox:706:1 err = this.community.DelMedia(todo, uid, id) -//line cmd/gopcomm/community_yap.gox:705:1 +//line cmd/gopcomm/community_yap.gox:707:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:706:1 +//line cmd/gopcomm/community_yap.gox:708:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": "delete failed"}) } else { -//line cmd/gopcomm/community_yap.gox:711:1 +//line cmd/gopcomm/community_yap.gox:713:1 ctx.Json__1(map[string]interface{}{"code": 200, "msg": "delete success"}) } }) -//line cmd/gopcomm/community_yap.gox:718:1 +//line cmd/gopcomm/community_yap.gox:720:1 this.Get("/api/translation/:id", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:719:1 +//line cmd/gopcomm/community_yap.gox:721:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:720:1 - article, err := this.community.GetTranslateArticle(todo, id) //line cmd/gopcomm/community_yap.gox:722:1 + article, err := this.community.GetTranslateArticle(todo, id) +//line cmd/gopcomm/community_yap.gox:724:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:723:1 +//line cmd/gopcomm/community_yap.gox:725:1 xLog.Info(err) -//line cmd/gopcomm/community_yap.gox:724:1 +//line cmd/gopcomm/community_yap.gox:726:1 ctx.Json__1(map[string]int{"code": 0}) } -//line cmd/gopcomm/community_yap.gox:728:1 +//line cmd/gopcomm/community_yap.gox:730:1 ctx.Json__1(map[string]interface{}{"code": 200, "content": article.Content, "tags": article.Tags, "title": article.Title}) }) -//line cmd/gopcomm/community_yap.gox:736:1 +//line cmd/gopcomm/community_yap.gox:738:1 this.Post("/api/translation", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:737:1 +//line cmd/gopcomm/community_yap.gox:739:1 mdData := ctx.Param("content") -//line cmd/gopcomm/community_yap.gox:738:1 +//line cmd/gopcomm/community_yap.gox:740:1 transData, err := this.community.TranslateMarkdownText(todo, mdData, "auto", language.English) -//line cmd/gopcomm/community_yap.gox:739:1 +//line cmd/gopcomm/community_yap.gox:741:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:740:1 +//line cmd/gopcomm/community_yap.gox:742:1 ctx.Json__1(map[string]interface{}{"code": 500, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:745:1 +//line cmd/gopcomm/community_yap.gox:747:1 ctx.Json__1(map[string]interface{}{"code": 200, "data": transData}) }) -//line cmd/gopcomm/community_yap.gox:751:1 +//line cmd/gopcomm/community_yap.gox:753:1 this.Get("/api/media/:id/url", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:752:1 +//line cmd/gopcomm/community_yap.gox:754:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:753:1 +//line cmd/gopcomm/community_yap.gox:755:1 fileKey, err := this.community.GetMediaUrl(todo, id) -//line cmd/gopcomm/community_yap.gox:754:1 +//line cmd/gopcomm/community_yap.gox:756:1 htmlUrl := fmt.Sprintf("%s%s", this.domain, fileKey) -//line cmd/gopcomm/community_yap.gox:755:1 +//line cmd/gopcomm/community_yap.gox:757:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:756:1 +//line cmd/gopcomm/community_yap.gox:758:1 ctx.Json__1(map[string]interface{}{"code": 500, "err": "have no html media"}) } -//line cmd/gopcomm/community_yap.gox:761:1 +//line cmd/gopcomm/community_yap.gox:763:1 ctx.Json__1(map[string]interface{}{"code": 200, "url": htmlUrl}) }) -//line cmd/gopcomm/community_yap.gox:767:1 +//line cmd/gopcomm/community_yap.gox:769:1 this.Get("/api/video/:id", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:768:1 +//line cmd/gopcomm/community_yap.gox:770:1 id := ctx.Param("id") -//line cmd/gopcomm/community_yap.gox:769:1 +//line cmd/gopcomm/community_yap.gox:771:1 fileKey, err := this.community.GetMediaUrl(todo, id) -//line cmd/gopcomm/community_yap.gox:770:1 +//line cmd/gopcomm/community_yap.gox:772:1 m := make(map[string]string, 4) -//line cmd/gopcomm/community_yap.gox:771:1 +//line cmd/gopcomm/community_yap.gox:773:1 format, err := this.community.GetMediaType(todo, id) -//line cmd/gopcomm/community_yap.gox:772:1 +//line cmd/gopcomm/community_yap.gox:774:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:773:1 +//line cmd/gopcomm/community_yap.gox:775:1 ctx.Json__1(map[string]interface{}{"code": 500, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:778:1 +//line cmd/gopcomm/community_yap.gox:780:1 htmlUrl := fmt.Sprintf("%s%s", this.domain, fileKey) -//line cmd/gopcomm/community_yap.gox:779:1 +//line cmd/gopcomm/community_yap.gox:781:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:780:1 +//line cmd/gopcomm/community_yap.gox:782:1 ctx.Json__1(map[string]interface{}{"code": 500, "err": "have no html media"}) } -//line cmd/gopcomm/community_yap.gox:785:1 +//line cmd/gopcomm/community_yap.gox:787:1 m["fileKey"] = htmlUrl -//line cmd/gopcomm/community_yap.gox:786:1 +//line cmd/gopcomm/community_yap.gox:788:1 m["type"] = format -//line cmd/gopcomm/community_yap.gox:787:1 +//line cmd/gopcomm/community_yap.gox:789:1 m["subtitle"] = this.domain + id -//line cmd/gopcomm/community_yap.gox:788:1 +//line cmd/gopcomm/community_yap.gox:790:1 m["status"] = "0" -//line cmd/gopcomm/community_yap.gox:789:1 +//line cmd/gopcomm/community_yap.gox:791:1 match, _ := regexp.MatchString("^video", format) -//line cmd/gopcomm/community_yap.gox:790:1 +//line cmd/gopcomm/community_yap.gox:792:1 if match { -//line cmd/gopcomm/community_yap.gox:791:1 +//line cmd/gopcomm/community_yap.gox:793:1 subtitle, status, err := this.community.GetVideoSubtitle(todo, id) -//line cmd/gopcomm/community_yap.gox:792:1 +//line cmd/gopcomm/community_yap.gox:794:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:793:1 +//line cmd/gopcomm/community_yap.gox:795:1 ctx.Json__1(map[string]interface{}{"code": 200, "url": m}) } -//line cmd/gopcomm/community_yap.gox:798:1 +//line cmd/gopcomm/community_yap.gox:800:1 if status == "1" { -//line cmd/gopcomm/community_yap.gox:799:1 +//line cmd/gopcomm/community_yap.gox:801:1 m["subtitle"] = this.domain + subtitle } -//line cmd/gopcomm/community_yap.gox:801:1 +//line cmd/gopcomm/community_yap.gox:803:1 m["status"] = status } -//line cmd/gopcomm/community_yap.gox:803:1 +//line cmd/gopcomm/community_yap.gox:805:1 ctx.Json__1(map[string]interface{}{"code": 200, "url": m}) }) -//line cmd/gopcomm/community_yap.gox:809:1 +//line cmd/gopcomm/community_yap.gox:811:1 this.Post("/api/media", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:810:1 +//line cmd/gopcomm/community_yap.gox:812:1 xLog := xlog.New("") -//line cmd/gopcomm/community_yap.gox:811:1 +//line cmd/gopcomm/community_yap.gox:813:1 file, header, err := ctx.FormFile("file") -//line cmd/gopcomm/community_yap.gox:812:1 +//line cmd/gopcomm/community_yap.gox:814:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:813:1 +//line cmd/gopcomm/community_yap.gox:815:1 xLog.Error("upload file error:", header) -//line cmd/gopcomm/community_yap.gox:814:1 +//line cmd/gopcomm/community_yap.gox:816:1 ctx.JSON(500, err.Error()) -//line cmd/gopcomm/community_yap.gox:815:1 +//line cmd/gopcomm/community_yap.gox:817:1 return } -//line cmd/gopcomm/community_yap.gox:817:1 +//line cmd/gopcomm/community_yap.gox:819:1 filename := header.Filename -//line cmd/gopcomm/community_yap.gox:818:1 +//line cmd/gopcomm/community_yap.gox:820:1 err = ctx.ParseMultipartForm(10 << 20) -//line cmd/gopcomm/community_yap.gox:819:1 +//line cmd/gopcomm/community_yap.gox:821:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:820:1 +//line cmd/gopcomm/community_yap.gox:822:1 xLog.Error("upload file error:", filename) -//line cmd/gopcomm/community_yap.gox:821:1 +//line cmd/gopcomm/community_yap.gox:823:1 ctx.JSON(500, err.Error()) -//line cmd/gopcomm/community_yap.gox:822:1 +//line cmd/gopcomm/community_yap.gox:824:1 return } -//line cmd/gopcomm/community_yap.gox:825:1 +//line cmd/gopcomm/community_yap.gox:827:1 dst, err := os.Create(filename) -//line cmd/gopcomm/community_yap.gox:826:1 +//line cmd/gopcomm/community_yap.gox:828:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:827:1 +//line cmd/gopcomm/community_yap.gox:829:1 xLog.Error("create file error:", file) -//line cmd/gopcomm/community_yap.gox:828:1 +//line cmd/gopcomm/community_yap.gox:830:1 ctx.JSON(500, err.Error()) -//line cmd/gopcomm/community_yap.gox:829:1 +//line cmd/gopcomm/community_yap.gox:831:1 return } -//line cmd/gopcomm/community_yap.gox:831:1 +//line cmd/gopcomm/community_yap.gox:833:1 defer func() { -//line cmd/gopcomm/community_yap.gox:832:1 +//line cmd/gopcomm/community_yap.gox:834:1 file.Close() -//line cmd/gopcomm/community_yap.gox:833:1 +//line cmd/gopcomm/community_yap.gox:835:1 dst.Close() -//line cmd/gopcomm/community_yap.gox:834:1 +//line cmd/gopcomm/community_yap.gox:836:1 err = os.Remove(filename) -//line cmd/gopcomm/community_yap.gox:835:1 +//line cmd/gopcomm/community_yap.gox:837:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:836:1 +//line cmd/gopcomm/community_yap.gox:838:1 xLog.Error("delete file error:", filename) -//line cmd/gopcomm/community_yap.gox:837:1 +//line cmd/gopcomm/community_yap.gox:839:1 return } }() -//line cmd/gopcomm/community_yap.gox:841:1 +//line cmd/gopcomm/community_yap.gox:843:1 _, err = io.Copy(dst, file) -//line cmd/gopcomm/community_yap.gox:842:1 +//line cmd/gopcomm/community_yap.gox:844:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:843:1 +//line cmd/gopcomm/community_yap.gox:845:1 xLog.Error("copy file errer:", filename) -//line cmd/gopcomm/community_yap.gox:844:1 +//line cmd/gopcomm/community_yap.gox:846:1 ctx.JSON(500, err.Error()) -//line cmd/gopcomm/community_yap.gox:845:1 +//line cmd/gopcomm/community_yap.gox:847:1 return } -//line cmd/gopcomm/community_yap.gox:848:1 +//line cmd/gopcomm/community_yap.gox:850:1 bytes, err := os.ReadFile(filename) -//line cmd/gopcomm/community_yap.gox:849:1 +//line cmd/gopcomm/community_yap.gox:851:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:850:1 +//line cmd/gopcomm/community_yap.gox:852:1 xLog.Error("read file errer:", filename) -//line cmd/gopcomm/community_yap.gox:851:1 +//line cmd/gopcomm/community_yap.gox:853:1 ctx.JSON(500, err.Error()) -//line cmd/gopcomm/community_yap.gox:852:1 +//line cmd/gopcomm/community_yap.gox:854:1 return } -//line cmd/gopcomm/community_yap.gox:855:1 +//line cmd/gopcomm/community_yap.gox:857:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:856:1 +//line cmd/gopcomm/community_yap.gox:858:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:857:1 +//line cmd/gopcomm/community_yap.gox:859:1 ctx.JSON(500, err.Error()) } -//line cmd/gopcomm/community_yap.gox:860:1 +//line cmd/gopcomm/community_yap.gox:862:1 uid, err := this.community.ParseJwtToken(token.Value) -//line cmd/gopcomm/community_yap.gox:861:1 +//line cmd/gopcomm/community_yap.gox:863:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:862:1 +//line cmd/gopcomm/community_yap.gox:864:1 ctx.JSON(500, err.Error()) } -//line cmd/gopcomm/community_yap.gox:864:1 +//line cmd/gopcomm/community_yap.gox:866:1 ext := mimetype.Detect(bytes).String() -//line cmd/gopcomm/community_yap.gox:865:1 +//line cmd/gopcomm/community_yap.gox:867:1 id, err := this.community.SaveMedia(context.Background(), uid, bytes, ext) -//line cmd/gopcomm/community_yap.gox:866:1 +//line cmd/gopcomm/community_yap.gox:868:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:867:1 +//line cmd/gopcomm/community_yap.gox:869:1 xLog.Error("save file", err.Error()) -//line cmd/gopcomm/community_yap.gox:868:1 +//line cmd/gopcomm/community_yap.gox:870:1 ctx.JSON(500, err.Error()) -//line cmd/gopcomm/community_yap.gox:869:1 +//line cmd/gopcomm/community_yap.gox:871:1 return } -//line cmd/gopcomm/community_yap.gox:873:1 - if strings.Contains(ext, "video") { //line cmd/gopcomm/community_yap.gox:875:1 + if strings.Contains(ext, "video") { +//line cmd/gopcomm/community_yap.gox:877:1 err := this.community.NewVideoTask(context.Background(), uid, strconv.FormatInt(id, 10)) -//line cmd/gopcomm/community_yap.gox:876:1 +//line cmd/gopcomm/community_yap.gox:878:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:877:1 +//line cmd/gopcomm/community_yap.gox:879:1 xLog.Error("start video task error:", err) } } -//line cmd/gopcomm/community_yap.gox:881:1 +//line cmd/gopcomm/community_yap.gox:883:1 ctx.JSON(200, id) }) -//line cmd/gopcomm/community_yap.gox:884:1 +//line cmd/gopcomm/community_yap.gox:886:1 this.Post("/api/caption/task", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:885:1 +//line cmd/gopcomm/community_yap.gox:887:1 uid := ctx.Param("uid") -//line cmd/gopcomm/community_yap.gox:886:1 - vid := ctx.Param("vid") //line cmd/gopcomm/community_yap.gox:888:1 + vid := ctx.Param("vid") +//line cmd/gopcomm/community_yap.gox:890:1 if uid == "" || vid == "" { -//line cmd/gopcomm/community_yap.gox:889:1 +//line cmd/gopcomm/community_yap.gox:891:1 ctx.Json__1(map[string]interface{}{"code": 200, "msg": "Invalid param"}) } -//line cmd/gopcomm/community_yap.gox:895:1 +//line cmd/gopcomm/community_yap.gox:897:1 if -//line cmd/gopcomm/community_yap.gox:895:1 +//line cmd/gopcomm/community_yap.gox:897:1 err := this.community.RetryCaptionGenerate(todo, uid, vid); err != nil { -//line cmd/gopcomm/community_yap.gox:896:1 +//line cmd/gopcomm/community_yap.gox:898:1 ctx.Json__1(map[string]interface{}{"code": 200, "msg": "Request task error"}) } -//line cmd/gopcomm/community_yap.gox:902:1 +//line cmd/gopcomm/community_yap.gox:904:1 ctx.Json__1(map[string]interface{}{"code": 200, "msg": "Ok"}) }) -//line cmd/gopcomm/community_yap.gox:911:1 +//line cmd/gopcomm/community_yap.gox:913:1 this.Get("/login", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:916:1 +//line cmd/gopcomm/community_yap.gox:918:1 refererURL, err := url.Parse(ctx.Request.Referer()) -//line cmd/gopcomm/community_yap.gox:917:1 +//line cmd/gopcomm/community_yap.gox:919:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:918:1 +//line cmd/gopcomm/community_yap.gox:920:1 xLog.Infof("Error parsing Referer: %#v", err) -//line cmd/gopcomm/community_yap.gox:919:1 +//line cmd/gopcomm/community_yap.gox:921:1 return } -//line cmd/gopcomm/community_yap.gox:922:1 +//line cmd/gopcomm/community_yap.gox:924:1 refererPath := refererURL.Path -//line cmd/gopcomm/community_yap.gox:923:1 +//line cmd/gopcomm/community_yap.gox:925:1 if refererURL.RawQuery != "" { -//line cmd/gopcomm/community_yap.gox:924:1 +//line cmd/gopcomm/community_yap.gox:926:1 refererPath = fmt.Sprintf("%s?%s", refererURL.Path, refererURL.RawQuery) } -//line cmd/gopcomm/community_yap.gox:927:1 - redirectURL := fmt.Sprintf("%s://%s/%s?origin_path=%s", refererURL.Scheme, refererURL.Host, "login/callback", url.QueryEscape(refererPath)) //line cmd/gopcomm/community_yap.gox:929:1 + redirectURL := fmt.Sprintf("%s://%s/%s?origin_path=%s", refererURL.Scheme, refererURL.Host, "login/callback", url.QueryEscape(refererPath)) +//line cmd/gopcomm/community_yap.gox:931:1 loginURL := this.community.RedirectToCasdoor(redirectURL) -//line cmd/gopcomm/community_yap.gox:930:1 +//line cmd/gopcomm/community_yap.gox:932:1 ctx.Redirect(loginURL, http.StatusFound) }) -//line cmd/gopcomm/community_yap.gox:933:1 +//line cmd/gopcomm/community_yap.gox:935:1 this.Get("/logout", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:934:1 +//line cmd/gopcomm/community_yap.gox:936:1 tokenCookie, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:935:1 +//line cmd/gopcomm/community_yap.gox:937:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:936:1 +//line cmd/gopcomm/community_yap.gox:938:1 xLog.Error("remove token error:", err) -//line cmd/gopcomm/community_yap.gox:937:1 +//line cmd/gopcomm/community_yap.gox:939:1 return } -//line cmd/gopcomm/community_yap.gox:940:1 +//line cmd/gopcomm/community_yap.gox:942:1 tokenCookie.MaxAge = -1 -//line cmd/gopcomm/community_yap.gox:941:1 - http.SetCookie(ctx.ResponseWriter, tokenCookie) //line cmd/gopcomm/community_yap.gox:943:1 + http.SetCookie(ctx.ResponseWriter, tokenCookie) +//line cmd/gopcomm/community_yap.gox:945:1 refererURL, err := url.Parse(ctx.Request.Referer()) -//line cmd/gopcomm/community_yap.gox:944:1 +//line cmd/gopcomm/community_yap.gox:946:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:945:1 +//line cmd/gopcomm/community_yap.gox:947:1 xLog.Infof("Error parsing Referer: %#v", err) -//line cmd/gopcomm/community_yap.gox:946:1 +//line cmd/gopcomm/community_yap.gox:948:1 return } -//line cmd/gopcomm/community_yap.gox:949:1 +//line cmd/gopcomm/community_yap.gox:951:1 refererPath := refererURL.Path -//line cmd/gopcomm/community_yap.gox:950:1 +//line cmd/gopcomm/community_yap.gox:952:1 if refererURL.RawQuery != "" { -//line cmd/gopcomm/community_yap.gox:951:1 +//line cmd/gopcomm/community_yap.gox:953:1 refererPath = fmt.Sprintf("%s?%s", refererURL.Path, refererURL.RawQuery) } -//line cmd/gopcomm/community_yap.gox:954:1 +//line cmd/gopcomm/community_yap.gox:956:1 http.Redirect(ctx.ResponseWriter, ctx.Request, refererPath, http.StatusFound) }) -//line cmd/gopcomm/community_yap.gox:957:1 +//line cmd/gopcomm/community_yap.gox:959:1 this.Get("/login/callback", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:958:1 +//line cmd/gopcomm/community_yap.gox:960:1 code := ctx.URL.Query().Get("code") -//line cmd/gopcomm/community_yap.gox:959:1 +//line cmd/gopcomm/community_yap.gox:961:1 state := ctx.URL.Query().Get("state") -//line cmd/gopcomm/community_yap.gox:960:1 +//line cmd/gopcomm/community_yap.gox:962:1 token, err := this.community.GetOAuthToken(code, state) -//line cmd/gopcomm/community_yap.gox:961:1 +//line cmd/gopcomm/community_yap.gox:963:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:962:1 +//line cmd/gopcomm/community_yap.gox:964:1 xLog.Error("set token error:", err) } -//line cmd/gopcomm/community_yap.gox:964:1 +//line cmd/gopcomm/community_yap.gox:966:1 cookie := http.Cookie{Name: "token", Value: token.AccessToken, Path: "/", MaxAge: 168 * 60 * 60, HttpOnly: true} -//line cmd/gopcomm/community_yap.gox:971:1 - http.SetCookie(ctx.ResponseWriter, &cookie) //line cmd/gopcomm/community_yap.gox:973:1 + http.SetCookie(ctx.ResponseWriter, &cookie) +//line cmd/gopcomm/community_yap.gox:975:1 origin_path := ctx.URL.Query().Get("origin_path") -//line cmd/gopcomm/community_yap.gox:974:1 +//line cmd/gopcomm/community_yap.gox:976:1 unurl, err := url.QueryUnescape(origin_path) -//line cmd/gopcomm/community_yap.gox:975:1 +//line cmd/gopcomm/community_yap.gox:977:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:976:1 +//line cmd/gopcomm/community_yap.gox:978:1 xLog.Info("Unurl error", err) -//line cmd/gopcomm/community_yap.gox:977:1 +//line cmd/gopcomm/community_yap.gox:979:1 unurl = "/" } -//line cmd/gopcomm/community_yap.gox:980:1 +//line cmd/gopcomm/community_yap.gox:982:1 http.Redirect(ctx.ResponseWriter, ctx.Request, unurl, http.StatusFound) }) -//line cmd/gopcomm/community_yap.gox:983:1 +//line cmd/gopcomm/community_yap.gox:985:1 this.Post("/api/article/like", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:984:1 +//line cmd/gopcomm/community_yap.gox:986:1 articleId := ctx.Param("articleId") -//line cmd/gopcomm/community_yap.gox:985:1 +//line cmd/gopcomm/community_yap.gox:987:1 articleIdInt, err := strconv.Atoi(articleId) -//line cmd/gopcomm/community_yap.gox:986:1 +//line cmd/gopcomm/community_yap.gox:988:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:987:1 +//line cmd/gopcomm/community_yap.gox:989:1 ctx.Json__1(map[string]interface{}{"code": 500, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:992:1 +//line cmd/gopcomm/community_yap.gox:994:1 token, err := ctx.Request.Cookie("token") -//line cmd/gopcomm/community_yap.gox:993:1 +//line cmd/gopcomm/community_yap.gox:995:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:994:1 +//line cmd/gopcomm/community_yap.gox:996:1 xLog.Info("token", err) -//line cmd/gopcomm/community_yap.gox:995:1 +//line cmd/gopcomm/community_yap.gox:997:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": "no token"}) } -//line cmd/gopcomm/community_yap.gox:1000:1 +//line cmd/gopcomm/community_yap.gox:1002:1 uid, err := this.community.ParseJwtToken(token.Value) -//line cmd/gopcomm/community_yap.gox:1001:1 +//line cmd/gopcomm/community_yap.gox:1003:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:1002:1 +//line cmd/gopcomm/community_yap.gox:1004:1 ctx.Json__1(map[string]interface{}{"code": 0, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:1007:1 +//line cmd/gopcomm/community_yap.gox:1009:1 res, err := this.community.ArticleLike(todo, articleIdInt, uid) -//line cmd/gopcomm/community_yap.gox:1008:1 +//line cmd/gopcomm/community_yap.gox:1010:1 if err != nil { -//line cmd/gopcomm/community_yap.gox:1009:1 +//line cmd/gopcomm/community_yap.gox:1011:1 ctx.Json__1(map[string]interface{}{"code": 500, "err": err.Error()}) } -//line cmd/gopcomm/community_yap.gox:1014:1 +//line cmd/gopcomm/community_yap.gox:1016:1 ctx.Json__1(map[string]interface{}{"code": 200, "data": res}) }) -//line cmd/gopcomm/community_yap.gox:1021:1 +//line cmd/gopcomm/community_yap.gox:1023:1 this.Handle("/", func(ctx *yap.Context) { -//line cmd/gopcomm/community_yap.gox:1022:1 +//line cmd/gopcomm/community_yap.gox:1024:1 ctx.Yap__1("4xx", map[string]interface{}{}) }) -//line cmd/gopcomm/community_yap.gox:1025:1 +//line cmd/gopcomm/community_yap.gox:1027:1 configFile := ".env" -//line cmd/gopcomm/community_yap.gox:1026:1 +//line cmd/gopcomm/community_yap.gox:1028:1 flag.StringVar(&configFile, "config", ".env", "Path to the config file") -//line cmd/gopcomm/community_yap.gox:1027:1 +//line cmd/gopcomm/community_yap.gox:1029:1 flag.Parse() -//line cmd/gopcomm/community_yap.gox:1028:1 +//line cmd/gopcomm/community_yap.gox:1030:1 if -//line cmd/gopcomm/community_yap.gox:1028:1 +//line cmd/gopcomm/community_yap.gox:1030:1 err := godotenv.Load(configFile); err != nil { -//line cmd/gopcomm/community_yap.gox:1029:1 +//line cmd/gopcomm/community_yap.gox:1031:1 xLog.Error(err) } -//line cmd/gopcomm/community_yap.gox:1032:1 +//line cmd/gopcomm/community_yap.gox:1034:1 conf := core.NewConfigFromEnv() -//line cmd/gopcomm/community_yap.gox:1033:1 +//line cmd/gopcomm/community_yap.gox:1035:1 this.community, _ = core.New(todo, conf) -//line cmd/gopcomm/community_yap.gox:1034:1 +//line cmd/gopcomm/community_yap.gox:1036:1 this.domain = conf.QiNiuConfig.Domain -//line cmd/gopcomm/community_yap.gox:1035:1 - endpoint := conf.AppConfig.EndPoint //line cmd/gopcomm/community_yap.gox:1037:1 + endpoint := conf.AppConfig.EndPoint +//line cmd/gopcomm/community_yap.gox:1039:1 xLog.Info("Started in endpoint: ", endpoint) -//line cmd/gopcomm/community_yap.gox:1040:1 - this.Run(endpoint, func(h http.Handler) http.Handler { //line cmd/gopcomm/community_yap.gox:1042:1 + this.Run(endpoint, func(h http.Handler) http.Handler { +//line cmd/gopcomm/community_yap.gox:1044:1 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { -//line cmd/gopcomm/community_yap.gox:1043:1 - defer func() { //line cmd/gopcomm/community_yap.gox:1045:1 + defer func() { +//line cmd/gopcomm/community_yap.gox:1047:1 if -//line cmd/gopcomm/community_yap.gox:1045:1 +//line cmd/gopcomm/community_yap.gox:1047:1 err := recover(); err != nil { -//line cmd/gopcomm/community_yap.gox:1046:1 +//line cmd/gopcomm/community_yap.gox:1048:1 xLog.Error(err) -//line cmd/gopcomm/community_yap.gox:1047:1 +//line cmd/gopcomm/community_yap.gox:1049:1 http.Redirect(w, r, "/failed", http.StatusFound) } }() -//line cmd/gopcomm/community_yap.gox:1051:1 +//line cmd/gopcomm/community_yap.gox:1053:1 h.ServeHTTP(w, r) }) }) diff --git a/cmd/gopcomm/yap/article_yap.html b/cmd/gopcomm/yap/article_yap.html index 0696f49e..3e2badac 100644 --- a/cmd/gopcomm/yap/article_yap.html +++ b/cmd/gopcomm/yap/article_yap.html @@ -230,8 +230,7 @@


- - + @@ -428,8 +427,8 @@


+ - @@ -478,6 +477,7 @@

const likeState = {{.LikeState}} const user = {{.User}} const article = ref({{.Article}}); + article.value.Content = "" /*======= translate related =======*/ const showFailedTrans = ref(false); @@ -497,6 +497,9 @@

} ]; const isOrigin = ref(true) + function handleResize() { + console.log("????????????????") + } function selectDropdown(key) { if (key === 'original' && !isOrigin.value) { console.log("origin") @@ -629,11 +632,13 @@

shareToTwitter, selectDropdown, likeArticle, + handleResize }, components: { MarkdownViewer: window.GoplusMarkdown.MarkdownViewer }, mounted() { + article.value.Content = originArticle.Content // every video must new plyr const video = document.querySelectorAll('video'); for (var i = 0; i < video.length; i++) { @@ -643,6 +648,7 @@

// get article toc getArticleToc(); + }, watch: { // automatically close notification after 3 seconds diff --git a/cmd/gopcomm/yap/layout_yap.html b/cmd/gopcomm/yap/layout_yap.html index 004d998c..7632201d 100644 --- a/cmd/gopcomm/yap/layout_yap.html +++ b/cmd/gopcomm/yap/layout_yap.html @@ -23,7 +23,7 @@ - + "); @@ -23663,165 +23699,165 @@ var u3n = function(r) { return { mathStyle: this.getStyleFromSheets("mjx-container"), echartStyle: "", cherryStyle: this.getStyleFromSheets("cherry") }; } }, { key: "toggleLoading", value: function() { this.isLoading ? document.querySelector(".icon-loading").outerHTML = '') : document.querySelector(".ch-icon-copy").outerHTML = '
', this.isLoading = !this.isLoading; - } }, { key: "onClick", value: function(h) { + } }, { key: "onClick", value: function(u) { var g = this; this.toggleLoading(); var d = document.querySelector(".cherry").getAttribute("data-inline-code-theme"), b = document.querySelector(".cherry").getAttribute("data-code-block-theme"), y = this.computeStyle(), k = y.mathStyle, C = y.echartStyle, B = y.cherryStyle, L = this.previewer.isPreviewerHidden() ? this.previewer.options.previewerCache.html : this.previewer.getValue(); this.adaptWechat(L).then(function(M) { var P, X, W; - a_t(tt(P = tt(X = tt(W = "".concat(k + C + B, ` + l_t(tt(P = tt(X = tt(W = "".concat(k + C + B, `
`)).call(P, M, `
`)), g.toggleLoading(); }); } }]), l; }(); -function h3n(r, i, o) { - return new oNe(function(l) { - var h = document.createElement("CANVAS"), g = h.getContext("2d"), d = new Image(); +function g3n(r, i, o) { + return new Gee(function(l) { + var u = document.createElement("CANVAS"), g = u.getContext("2d"), d = new Image(); d.crossOrigin = "Anonymous", d.onload = function() { - h.height = d.height, h.width = d.width, g.drawImage(d, 0, 0); - var b = h.toDataURL(o || "image/png"); - l(b), h = null; + u.height = d.height, u.width = d.width, g.drawImage(d, 0, 0); + var b = u.toDataURL(o || "image/png"); + l(b), u = null; }, d.src = r; }); } -function f3n(r) { +function p3n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -var u_t = function(r) { - aa(o, Os); - var i = f3n(o); +var A_t = function(r) { + ta(o, _s); + var i = p3n(o); function o(l) { - var h, g, d, b, y, k; - return Gr(this, o), (k = i.call(this, l)).setName("panel", "tips"), k.panelRule = VOe().reg, k.subMenuConfig = [{ iconName: "tips", name: "tips", onclick: Ga(h = k.bindSubClick).call(h, rs(k), "primary") }, { iconName: "info", name: "info", onclick: Ga(g = k.bindSubClick).call(g, rs(k), "info") }, { iconName: "warning", name: "warning", onclick: Ga(d = k.bindSubClick).call(d, rs(k), "warning") }, { iconName: "danger", name: "danger", onclick: Ga(b = k.bindSubClick).call(b, rs(k), "danger") }, { iconName: "success", name: "success", onclick: Ga(y = k.bindSubClick).call(y, rs(k), "success") }], k; + var u, g, d, b, y, k; + return Xr(this, o), (k = i.call(this, l)).setName("panel", "tips"), k.panelRule = YOe().reg, k.subMenuConfig = [{ iconName: "tips", name: "tips", onclick: za(u = k.bindSubClick).call(u, es(k), "primary") }, { iconName: "info", name: "info", onclick: za(g = k.bindSubClick).call(g, es(k), "info") }, { iconName: "warning", name: "warning", onclick: za(d = k.bindSubClick).call(d, es(k), "warning") }, { iconName: "danger", name: "danger", onclick: za(b = k.bindSubClick).call(b, es(k), "danger") }, { iconName: "success", name: "success", onclick: za(y = k.bindSubClick).call(y, es(k), "success") }], k; } - return Vr(o, [{ key: "$getNameFromStr", value: function(l) { - var h = !1; + return Gr(o, [{ key: "$getNameFromStr", value: function(l) { + var u = !1; return this.panelRule.lastIndex = 0, l.replace(this.panelRule, function(g, d, b, y) { - var k = /\s/.test(fo(b).call(b)) ? fo(b).call(b).replace(/\s.*$/, "") : b; - return h = k ? fo(k).call(k).toLowerCase() : "", g; - }), h; + var k = /\s/.test(uo(b).call(b)) ? uo(b).call(b).replace(/\s.*$/, "") : b; + return u = k ? uo(k).call(k).toLowerCase() : "", g; + }), u; } }, { key: "$getTitle", value: function(l) { - return this.panelRule.lastIndex = 0, l.replace(this.panelRule, function(h, g, d, b) { - var y = fo(d).call(d); + return this.panelRule.lastIndex = 0, l.replace(this.panelRule, function(u, g, d, b) { + var y = uo(d).call(d); return /\s/.test(y) ? y.replace(/[^\s]+\s/, "") : ""; }), ""; } }, { key: "onClick", value: function(l) { - var h, g, d = this, b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", y = $p(this.editor.editor, l, "line", !0) || "内容", k = this.$getNameFromStr(y), C = this.$getTitle(y); + var u, g, d = this, b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", y = $p(this.editor.editor, l, "line", !0) || "内容", k = this.$getNameFromStr(y), C = this.$getTitle(y); return k === !1 && this.getMoreSelection("::: ", ` `, function() { var B = d.editor.editor.getSelection(), L = d.$getNameFromStr(B); return L !== !1 && (y = B, k = L, C = d.$getTitle(B)), L !== !1; }), k !== !1 ? k === b ? (this.panelRule.lastIndex = 0, y.replace(this.panelRule, function(B, L, M, P) { - var X, W = fo(M).call(M), N = /\s/.test(W) ? W.replace(/[^\s]+\s/, "") : ""; + var X, W = uo(M).call(M), N = /\s/.test(W) ? W.replace(/[^\s]+\s/, "") : ""; return tt(X = "".concat(N, ` `)).call(X, P); })) : (this.registerAfterClickCb(function() { d.setLessSelection("::: ", ` `); }), this.panelRule.lastIndex = 0, y.replace(this.panelRule, function(B, L, M, P) { - var X, W, N = fo(M).call(M), z = /\s/.test(N) ? N.replace(/[^\s]+\s/, "") : ""; + var X, W, N = uo(M).call(M), z = /\s/.test(N) ? N.replace(/[^\s]+\s/, "") : ""; return tt(X = tt(W = "::: ".concat(b, " ")).call(W, z, ` `)).call(X, P.replace(/\n+$/, ""), ` :::`); })) : (this.registerAfterClickCb(function() { d.setLessSelection("::: ", ` `); - }), y = y.replace(/^\n+/, ""), /\n/.test(y) ? C || (C = y.replace(/\n[\w\W]+$/, ""), y = y.replace(/^[^\n]+\n/, "")) : C = C || "标题", tt(h = tt(g = "::: ".concat(b, " ")).call(g, C, ` -`)).call(h, y, ` + }), y = y.replace(/^\n+/, ""), /\n/.test(y) ? C || (C = y.replace(/\n[\w\W]+$/, ""), y = y.replace(/^[^\n]+\n/, "")) : C = C || "标题", tt(u = tt(g = "::: ".concat(b, " ")).call(g, C, ` +`)).call(u, y, ` :::`).replace(/\n{2,}:::/g, ` :::`)); } }]), o; }(); -function d3n(r) { +function m3n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -var A3n = function(r) { - aa(o, u_t); - var i = d3n(o); +var b3n = function(r) { + ta(o, A_t); + var i = m3n(o); function o(l) { - var h, g, d, b, y, k, C; - Gr(this, o), (C = i.call(this, l)).setName("justify", "justify"), C.panelRule = VOe().reg; + var u, g, d, b, y, k, C; + Xr(this, o), (C = i.call(this, l)).setName("justify", "justify"), C.panelRule = YOe().reg; var B = C.$cherry.locale; - return C.subMenuConfig = [{ iconName: "justifyLeft", name: (h = B == null ? void 0 : B.justifyLeft) !== null && h !== void 0 ? h : "左对齐", onclick: Ga(g = C.bindSubClick).call(g, rs(C), "left") }, { iconName: "justifyCenter", name: (d = B == null ? void 0 : B.justifyCenter) !== null && d !== void 0 ? d : "居中", onclick: Ga(b = C.bindSubClick).call(b, rs(C), "center") }, { iconName: "justifyRight", name: (y = B == null ? void 0 : B.justifyRight) !== null && y !== void 0 ? y : "右对齐", onclick: Ga(k = C.bindSubClick).call(k, rs(C), "right") }], C; + return C.subMenuConfig = [{ iconName: "justifyLeft", name: (u = B == null ? void 0 : B.justifyLeft) !== null && u !== void 0 ? u : "左对齐", onclick: za(g = C.bindSubClick).call(g, es(C), "left") }, { iconName: "justifyCenter", name: (d = B == null ? void 0 : B.justifyCenter) !== null && d !== void 0 ? d : "居中", onclick: za(b = C.bindSubClick).call(b, es(C), "center") }, { iconName: "justifyRight", name: (y = B == null ? void 0 : B.justifyRight) !== null && y !== void 0 ? y : "右对齐", onclick: za(k = C.bindSubClick).call(k, es(C), "right") }], C; } - return Vr(o, [{ key: "$getTitle", value: function() { + return Gr(o, [{ key: "$getTitle", value: function() { return " "; } }]), o; }(); -function g3n(r) { +function y3n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -var p3n = function(r) { - aa(o, Os); - var i = g3n(o); +var w3n = function(r) { + ta(o, _s); + var i = y3n(o); function o(l) { - var h; - return Gr(this, o), (h = i.call(this, l)).setName("detail", "insertFlow"), h.detailRule = CEt().reg, h; + var u; + return Xr(this, o), (u = i.call(this, l)).setName("detail", "insertFlow"), u.detailRule = BEt().reg, u; } - return Vr(o, [{ key: "onClick", value: function(l) { - var h, g = this, d = $p(this.editor.editor, l, "line", !0) || `点击展开更多 + return Gr(o, [{ key: "onClick", value: function(l) { + var u, g = this, d = $p(this.editor.editor, l, "line", !0) || `点击展开更多 内容 ++- 默认展开 内容 @@ -23837,8 +23873,8 @@ var p3n = function(r) { var L; return tt(L = "".concat(C, ` `)).call(L, B); - })) : (d = d.replace(/^\s+/, ""), /\n/.test(d) || (d = tt(h = "".concat(d, ` -`)).call(h, d)), this.registerAfterClickCb(function() { + })) : (d = d.replace(/^\s+/, ""), /\n/.test(d) || (d = tt(u = "".concat(d, ` +`)).call(u, d)), this.registerAfterClickCb(function() { g.setLessSelection("+++ ", ` `); }), "+++ ".concat(d, ` @@ -23846,88 +23882,274 @@ var p3n = function(r) { +++`)); } }]), o; }(); -function m3n(r) { +function v3n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -var b3n = function(r) { - aa(o, Os); - var i = m3n(o); +var k3n = function(r) { + ta(o, _s); + var i = v3n(o); function o(l) { - var h; - return Gr(this, o), (h = i.call(this, l)).setName("draw.io", "draw.io"), h.noIcon = !0, h.drawioIframeUrl = l.options.drawioIframeUrl, h; + var u; + return Xr(this, o), (u = i.call(this, l)).setName("draw.io", "draw.io"), u.noIcon = !0, u.drawioIframeUrl = l.options.drawioIframeUrl, u; } - return Vr(o, [{ key: "onClick", value: function(l) { - var h = this; + return Gr(o, [{ key: "onClick", value: function(l) { + var u = this; if (!this.drawioIframeUrl) return l; if (this.hasCacheOnce()) { var g, d = this.getAndCleanCacheOnce(), b = d.xmlData, y = d.base64, k = tt(g = "](".concat(y, "){data-type=drawio data-xml=")).call(g, encodeURI(b), "}"); return this.registerAfterClickCb(function() { - h.setLessSelection("![", k); + u.setLessSelection("![", k); }), "".concat("![", "在预览区点击图片重新编辑draw.io").concat(k); } - return o_t(this.drawioIframeUrl, "", function(C) { - h.setCacheOnce(C), h.fire(null); + return u_t(this.drawioIframeUrl, "", function(C) { + u.setCacheOnce(C), u.fire(null); }), this.updateMarkdown = !1, l; } }]), o; -}(), _kt = { bold: mwn, italic: ywn, "|": vwn, strikethrough: xwn, sub: Twn, sup: Bwn, header: Iwn, insert: Own, list: Qwn, ol: Rwn, ul: Hwn, checklist: jwn, graph: Gwn, size: Wwn, h1: Ywn, h2: Zwn, h3: tvn, color: Swn, quote: rvn, quickTable: avn, togglePreview: svn, code: gvn, codeTheme: mvn, export: yvn, settings: vvn, fullScreen: lvn, mobilePreview: c3n, copy: u3n, undo: hvn, redo: dvn, underline: xvn, switchModel: Tvn, image: Bvn, audio: Svn, video: Mvn, br: Fvn, hr: Ovn, formula: Pvn, link: Uvn, table: $vn, toc: Kvn, lineTable: Xvn, barTable: Vvn, pdf: qvn, word: e3n, ruby: n3n, theme: i3n, file: Jvn, panel: u_t, justify: A3n, detail: p3n, drawIo: b3n, wordCount: o3n }, y3n = function() { +}(); +MEt("Set", function(r) { + return function() { + return r(this, arguments.length ? arguments[0] : void 0); + }; +}, FEt); +var x3n = zc.Set; +function C3n(r, i, o) { + return new Gee(function(l) { + var u = document.createElement("CANVAS"), g = u.getContext("2d"), d = new Image(); + d.crossOrigin = "Anonymous", d.onload = function() { + u.height = d.height, u.width = d.width, g.drawImage(d, 0, 0); + var b = u.toDataURL(o || "image/png"); + l(b), u = null; + }, d.src = r; + }); +} +var T3n = function() { + var r = Xee(_6.mark(function i(o) { + var l, u, g, d, b; + return _6.wrap(function(y) { + for (; ; ) + switch (y.prev = y.next) { + case 0: + return l = /(
.*?<\/figure>)/g, u = o.replace(l, function(k, C, B, L) { + var M, P; + return tt(M = tt(P = "".concat(C, "p")).call(P, B, "p")).call(M, L); + }), g = /()/g, d = [], u.replace(g, function(k, C, B) { + return d.push(C3n(B)), k; + }), y.next = 7, Gee.all(d); + case 7: + return b = y.sent, u = (u = u.replace(/(]+)href="[^"]*"/g, "$1")).replace(/(]+style="[^">]*width:\s*)[^";]+(;[^>]*>)/g, "$1100%$2"), y.abrupt("return", u.replace(g, function(k, C, B, L) { + return C + b.shift() + L; + })); + case 11: + case "end": + return y.stop(); + } + }, i); + })); + return function(i) { + return r.apply(this, arguments); + }; +}(), E3n = function() { + var r = Xee(_6.mark(function i(o, l) { + return _6.wrap(function(u) { + for (; ; ) + switch (u.prev = u.next) { + case 0: + if (typeof o == "string" && o) { + u.next = 2; + break; + } + return u.abrupt("return", ""); + case 2: + u.t0 = l, u.next = u.t0 === "wechat" ? 5 : 6; + break; + case 5: + return u.abrupt("return", T3n(o)); + case 6: + throw new Error("platform not support"); + case 7: + case "end": + return u.stop(); + } + }, i); + })); + return function(i, o) { + return r.apply(this, arguments); + }; +}(), B3n = E3n; +function Lkt(r, i) { + var o = iu(r); + if (s1) { + var l = s1(r); + i && (l = Ph(l).call(l, function(u) { + return $1(r, u).enumerable; + })), o.push.apply(o, l); + } + return o; +} +function _3n(r) { + for (var i = 1; i < arguments.length; i++) { + var o, l, u = arguments[i] != null ? arguments[i] : {}; + i % 2 ? fa(o = Lkt(Object(u), !0)).call(o, function(g) { + Ai(r, g, u[g]); + }) : H1 ? r4(r, H1(u)) : fa(l = Lkt(Object(u))).call(l, function(g) { + Ob(r, g, $1(u, g)); + }); + } + return r; +} +function S3n(r) { + var i = function() { + if (typeof Reflect > "u" || !ot || ot.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { + })), !0; + } catch { + return !1; + } + }(); + return function() { + var o, l = mn(r); + if (i) { + var u = mn(this).constructor; + o = ot(l, arguments, u); + } else + o = l.apply(this, arguments); + return Gi(this, o); + }; +} +var TMe = ["wechat"], L3n = function(r) { + ta(o, _s); + var i = S3n(o); + function o(l) { + var u, g, d, b; + Xr(this, o), (b = i.call(this, l)).previewer = l.previewer, b.updateMarkdown = !1, b.setName("publish", "copy"); + var y = (l == null || (u = l.options) === null || u === void 0 || (g = u.toolbars) === null || g === void 0 || (d = g.config) === null || d === void 0 ? void 0 : d.publish) || [], k = Wo(y).call(y, function(C) { + if (!Object.prototype.hasOwnProperty.call(C, "key")) + throw new Error("publish config must have key"); + if (!nee(TMe).call(TMe, C.key)) + throw new Error("publish config key must be one of ".concat(TMe.join(","))); + return C.key; + }); + if (new x3n(k).size !== k.length) + throw new Error("publish config key must be unique"); + return b.subMenuConfig = Wo(y).call(y, function(C) { + var B; + return { name: C.name, iconName: C.iconName, icon: C.icon, onclick: za(B = b.bindSubClick).call(B, es(b), C) }; + }), b; + } + return Gr(o, [{ key: "onClick", value: function(l, u) { + var g, d, b = this; + if (nv()) { + var y = this.$cherry.previewer.options.previewerDom, k = (g = y == null || (d = y.querySelector("h1")) === null || d === void 0 ? void 0 : d.innerText) !== null && g !== void 0 ? g : "", C = u.key, B = u.serviceUrl, L = u.injectPayload, M = function() { + var P = Xee(_6.mark(function X() { + var W, N, z, oe, V, ae, re; + return _6.wrap(function(fe) { + for (; ; ) + switch (fe.prev = fe.next) { + case 0: + if (N = {}, typeof L != "function") { + fe.next = 7; + break; + } + return fe.next = 4, L(); + case 4: + N = fe.sent, fe.next = 8; + break; + case 7: + Xc(L) === "object" && L !== null && (N = L); + case 8: + return z = b.getAllStyleSheets(), fe.next = 11, B3n((W = y == null ? void 0 : y.outerHTML) !== null && W !== void 0 ? W : "", C); + case 11: + return oe = fe.sent, fe.next = 14, fetch("".concat(B, "/publish"), { method: "POST", headers: { "Content-Type": "application/json" }, body: Nge({ target: C, contentType: "html", needInlineStyle: !0, articles: [_3n({ title: k, content: oe + z }, N)] }) }); + case 14: + return V = fe.sent, fe.next = 17, V.json(); + case 17: + ((ae = fe.sent) == null ? void 0 : ae.code) === 0 ? alert("发布成功") : alert(tt(re = "错误码:".concat(ae == null ? void 0 : ae.code, " 错误信息:")).call(re, ae == null ? void 0 : ae.msg)); + case 19: + case "end": + return fe.stop(); + } + }, X); + })); + return function() { + return P.apply(this, arguments); + }; + }(); + M(); + } + } }, { key: "getAllStyleSheets", value: function() { + var l, u = Ph(l = ll(document.styleSheets)).call(l, function(g) { + return g.cssRules[0]; + }); + return Wo(u).call(u, function(g) { + var d; + return ""); + }).join(""); + } }]), o; +}(), Mkt = { bold: vwn, italic: xwn, "|": Twn, strikethrough: Bwn, sub: Swn, sup: Mwn, header: Nwn, insert: Rwn, list: Hwn, ol: jwn, ul: zwn, checklist: Gwn, graph: Ywn, size: Zwn, h1: tvn, h2: rvn, h3: avn, color: Fwn, quote: svn, quickTable: lvn, togglePreview: hvn, code: yvn, codeTheme: vvn, export: xvn, settings: Tvn, fullScreen: dvn, mobilePreview: f3n, copy: A3n, undo: gvn, redo: mvn, underline: Bvn, switchModel: Svn, image: Mvn, audio: Fvn, video: Ovn, br: Qvn, hr: Rvn, formula: $vn, link: Kvn, table: Xvn, toc: Vvn, lineTable: qvn, barTable: Jvn, pdf: e3n, word: i3n, ruby: o3n, theme: c3n, file: n3n, panel: A_t, justify: b3n, detail: w3n, drawIo: k3n, wordCount: u3n, publish: L3n }, M3n = function() { function r(i) { - Gr(this, r), this.toolbar = i, this.hooks = {}, this.allMenusName = [], this.level1MenusName = [], this.level2MenusName = {}, this.init(); + Xr(this, r), this.toolbar = i, this.hooks = {}, this.allMenusName = [], this.level1MenusName = [], this.level2MenusName = {}, this.init(); } - return Vr(r, [{ key: "$newMenu", value: function(i) { + return Gr(r, [{ key: "$newMenu", value: function(i) { if (!this.hooks[i]) { - var o = this.toolbar.options, l = o.$cherry, h = o.customMenu; - _kt[i] ? (this.allMenusName.push(i), this.hooks[i] = new _kt[i](l)) : h != null && h[i] && (this.allMenusName.push(i), this.hooks[i] = new h[i](l)); + var o = this.toolbar.options, l = o.$cherry, u = o.customMenu; + Mkt[i] ? (this.allMenusName.push(i), this.hooks[i] = new Mkt[i](l)) : u != null && u[i] && (this.allMenusName.push(i), this.hooks[i] = new u[i](l)); } } }, { key: "init", value: function() { var i = this, o = this.toolbar.options.buttonConfig; - xa(o).call(o, function(l) { + fa(o).call(o, function(l) { if (typeof l == "string") i.level1MenusName.push(l), i.$newMenu(l); - else if (Zc(l) === "object") { - var h = yu(l); - if (h.length === 1) { - var g, d = bu(h, 1)[0]; - i.level1MenusName.push(d), i.$newMenu(d), i.level2MenusName[d] = l[d], xa(g = l[d]).call(g, function(b) { + else if (Xc(l) === "object") { + var u = iu(l); + if (u.length === 1) { + var g, d = yu(u, 1)[0]; + i.level1MenusName.push(d), i.$newMenu(d), i.level2MenusName[d] = l[d], fa(g = l[d]).call(g, function(b) { i.$newMenu(b); }); } } }); } }]), r; -}(), zee = function() { +}(), Vee = function() { function r(i) { - Gr(this, r), gi(this, "toolbarHandlers", {}), this.menus = {}, this.shortcutKeyMap = {}, this.subMenus = {}, this.options = { dom: document.createElement("div"), buttonConfig: ["bold"], customMenu: [] }, wB(this.options, i), this.$cherry = this.options.$cherry, this.instanceId = this.$cherry.instanceId, this.menus = new y3n(this), this.drawMenus(), this.collectShortcutKey(), this.collectToolbarHandler(), this.init(); + Xr(this, r), Ai(this, "toolbarHandlers", {}), this.menus = {}, this.shortcutKeyMap = {}, this.subMenus = {}, this.options = { dom: document.createElement("div"), buttonConfig: ["bold"], customMenu: [] }, vB(this.options, i), this.$cherry = this.options.$cherry, this.instanceId = this.$cherry.instanceId, this.menus = new M3n(this), this.drawMenus(), this.collectShortcutKey(), this.collectToolbarHandler(), this.init(); } - return Vr(r, [{ key: "init", value: function() { + return Gr(r, [{ key: "init", value: function() { var i = this; - Ds.on(this.instanceId, Ds.Events.cleanAllSubMenus, function() { + Os.on(this.instanceId, Os.Events.cleanAllSubMenus, function() { return i.hideAllSubMenu(); }); } }, { key: "previewOnly", value: function() { - this.options.dom.classList.add("preview-only"), this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"), Ds.emit(this.instanceId, Ds.Events.toolbarHide); + this.options.dom.classList.add("preview-only"), this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"), Os.emit(this.instanceId, Os.Events.toolbarHide); } }, { key: "showToolbar", value: function() { - this.options.dom.classList.remove("preview-only"), this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"), Ds.emit(this.instanceId, Ds.Events.toolbarShow); + this.options.dom.classList.remove("preview-only"), this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"), Os.emit(this.instanceId, Os.Events.toolbarShow); } }, { key: "isHasLevel2Menu", value: function(i) { return this.menus.level2MenusName[i]; } }, { key: "isHasConfigMenu", value: function(i) { @@ -23936,27 +24158,27 @@ var b3n = function(r) { return !!(this.isHasLevel2Menu(i) || this.isHasConfigMenu(i).length > 0); } }, { key: "drawMenus", value: function() { var i, o = this, l = document.createDocumentFragment(); - xa(i = this.menus.level1MenusName).call(i, function(h) { - var g = o.menus.hooks[h].createBtn(); - (typeof window > "u" ? "undefined" : Zc(window)) === "object" && "onpointerup" in window ? (g.addEventListener("pointerdown", function() { + fa(i = this.menus.level1MenusName).call(i, function(u) { + var g = o.menus.hooks[u].createBtn(); + (typeof window > "u" ? "undefined" : Xc(window)) === "object" && "onpointerup" in window ? (g.addEventListener("pointerdown", function() { o.isPointerDown = !0; }, !1), g.addEventListener("pointerup", function(d) { - o.isPointerDown && o.onClick(d, h), o.isPointerDown = !1; + o.isPointerDown && o.onClick(d, u), o.isPointerDown = !1; }, !1)) : g.addEventListener("click", function(d) { - o.onClick(d, h); - }, !1), o.isHasSubMenu(h) && g.classList.add("cherry-toolbar-dropdown"), l.appendChild(g); + o.onClick(d, u); + }, !1), o.isHasSubMenu(u) && g.classList.add("cherry-toolbar-dropdown"), l.appendChild(g); }), this.appendMenusToDom(l); } }, { key: "appendMenusToDom", value: function(i) { - var o = nu("div", "toolbar-left"); + var o = jl("div", "toolbar-left"); o.appendChild(i), this.options.dom.appendChild(o); } }, { key: "setSubMenuPosition", value: function(i, o) { var l = i.getMenuPosition(); o.style.left = "".concat(l.left + l.width / 2, "px"), o.style.top = "".concat(l.top + l.height, "px"), o.style.position = i.positionModel; } }, { key: "drawSubMenus", value: function(i) { var o = this; - this.subMenus[i] = nu("div", "cherry-dropdown", { name: i }), this.setSubMenuPosition(this.menus.hooks[i], this.subMenus[i]); + this.subMenus[i] = jl("div", "cherry-dropdown", { name: i }), this.setSubMenuPosition(this.menus.hooks[i], this.subMenus[i]); var l = this.isHasLevel2Menu(i); - l && xa(l).call(l, function(g) { + l && fa(l).call(l, function(g) { var d = o.menus.hooks[g]; if (d !== void 0 && typeof d.createBtn == "function") { var b = d.createBtn(!0); @@ -23965,41 +24187,41 @@ var b3n = function(r) { }, !1), o.subMenus[i].appendChild(b); } }); - var h = this.isHasConfigMenu(i); - h.length > 0 && xa(h).call(h, function(g) { + var u = this.isHasConfigMenu(i); + u.length > 0 && fa(u).call(u, function(g) { var d = o.menus.hooks[i].createSubBtnByConfig(g); d.addEventListener("click", function() { return o.hideAllSubMenu(); }, !1), o.subMenus[i].appendChild(d); }), this.$cherry.wrapperDom.appendChild(this.subMenus[i]); } }, { key: "onClick", value: function(i, o) { - var l = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], h = this.menus.hooks[o]; - h && (this.isHasSubMenu(o) && !l ? this.toggleSubMenu(o) : (this.hideAllSubMenu(), h.fire(i, o))); + var l = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], u = this.menus.hooks[o]; + u && (this.isHasSubMenu(o) && !l ? this.toggleSubMenu(o) : (this.hideAllSubMenu(), u.fire(i, o))); } }, { key: "toggleSubMenu", value: function(i) { if (!this.subMenus[i]) return this.hideAllSubMenu(), this.drawSubMenus(i), void (this.subMenus[i].style.display = "block"); this.subMenus[i].style.display === "none" ? (this.hideAllSubMenu(), this.subMenus[i].style.display = "block", this.setSubMenuPosition(this.menus.hooks[i], this.subMenus[i])) : this.subMenus[i].style.display = "none"; } }, { key: "hideAllSubMenu", value: function() { var i; - xa(i = this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(i, function(o) { + fa(i = this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(i, function(o) { o.style.display = "none"; }); } }, { key: "collectMenuInfo", value: function(i) { - this.toolbarHandlers = wB({}, this.toolbarHandlers, i.toolbarHandlers), this.menus.hooks = wB({}, i.menus.hooks, this.menus.hooks), (!this.options.shortcutKey || yu(this.options.shortcutKey).length <= 0) && (this.shortcutKeyMap = wB({}, this.shortcutKeyMap, i.shortcutKeyMap)); + this.toolbarHandlers = vB({}, this.toolbarHandlers, i.toolbarHandlers), this.menus.hooks = vB({}, i.menus.hooks, this.menus.hooks), (!this.options.shortcutKey || iu(this.options.shortcutKey).length <= 0) && (this.shortcutKeyMap = vB({}, this.shortcutKeyMap, i.shortcutKeyMap)); } }, { key: "collectShortcutKey", value: function() { var i, o = this; - this.options.shortcutKey && yu(this.options.shortcutKey).length > 0 ? this.shortcutKeyMap = this.options.shortcutKey : xa(i = this.menus.allMenusName).call(i, function(l) { - var h; - (h = o.menus.hooks[l].shortcutKeys) === null || h === void 0 || xa(h).call(h, function(g) { + this.options.shortcutKey && iu(this.options.shortcutKey).length > 0 ? this.shortcutKeyMap = this.options.shortcutKey : fa(i = this.menus.allMenusName).call(i, function(l) { + var u; + (u = o.menus.hooks[l].shortcutKeys) === null || u === void 0 || fa(u).call(u, function(g) { o.shortcutKeyMap[g] = l; }); }); } }, { key: "collectToolbarHandler", value: function() { var i, o = this; - this.toolbarHandlers = QB(i = this.menus.allMenusName).call(i, function(l, h) { - var g = o.menus.hooks[h]; - return g && (l[h] = function(d, b) { - typeof b == "function" && J2.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."), g.fire.call(g, void 0, d); + this.toolbarHandlers = PB(i = this.menus.allMenusName).call(i, function(l, u) { + var g = o.menus.hooks[u]; + return g && (l[u] = function(d, b) { + typeof b == "function" && Z2.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."), g.fire.call(g, void 0, d); }), l; }, {}); } }, { key: "matchShortcutKey", value: function(i) { @@ -24009,44 +24231,44 @@ var b3n = function(r) { (o = this.menus.hooks[this.shortcutKeyMap[l]]) === null || o === void 0 || o.fire(i, l); } }, { key: "getCurrentKey", value: function(i) { var o = ""; - return i.ctrlKey && (o += "Ctrl-"), i.altKey && (o += "Alt-"), i.metaKey && Awn && (o += "Ctrl-"), i.shiftKey && (o += "Shift-"), i.key && i.key.toLowerCase() !== "shift" && (o += i.key.toLowerCase()), o; + return i.ctrlKey && (o += "Ctrl-"), i.altKey && (o += "Alt-"), i.metaKey && bwn && (o += "Ctrl-"), i.shiftKey && (o += "Shift-"), i.key && i.key.toLowerCase() !== "shift" && (o += i.key.toLowerCase()), o; } }]), r; }(); -function w3n(r) { +function I3n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -var h_t = function(r) { - aa(o, zee); - var i = w3n(o); +var g_t = function(r) { + ta(o, Vee); + var i = I3n(o); function o() { - return Gr(this, o), i.apply(this, arguments); + return Xr(this, o), i.apply(this, arguments); } - return Vr(o, [{ key: "visible", get: function() { + return Gr(o, [{ key: "visible", get: function() { var l = window.getComputedStyle(this.bubbleDom); return l.display !== "none" && l.visibility !== "hidden"; }, set: function(l) { - var h = window.getComputedStyle(this.bubbleDom); - l ? h.display === "none" && (this.bubbleDom.style.display = o.displayType) : h.display !== "none" && (this.bubbleDom.style.display = "none"); + var u = window.getComputedStyle(this.bubbleDom); + l ? u.display === "none" && (this.bubbleDom.style.display = o.displayType) : u.display !== "none" && (this.bubbleDom.style.display = "none"); } }, { key: "init", value: function() { this.options.editor = this.$cherry.editor, this.addSelectionChangeListener(), this.bubbleDom = this.options.dom, this.editorDom = this.options.editor.getEditorDom(), this.initBubbleDom(), this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom); } }, { key: "appendMenusToDom", value: function(l) { @@ -24055,12 +24277,12 @@ var h_t = function(r) { return this.options.editor.editor.getScrollInfo().top; } }, { key: "updatePositionWhenScroll", value: function() { this.bubbleDom.style.display === o.displayType && (this.bubbleDom.style.marginTop = "".concat(Qp(this.bubbleDom.dataset.scrollTop) - this.getScrollTop(), "px")); - } }, { key: "showBubble", value: function(l, h) { + } }, { key: "showBubble", value: function(l, u) { this.visible || (this.visible = !0, this.bubbleDom.style.marginTop = "0", this.bubbleDom.dataset.scrollTop = String(this.getScrollTop())); var g = this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(), d = this.editorDom.getBoundingClientRect(), b = g.left - d.left, y = g.width + b, k = l; k < 2 * this.bubbleDom.offsetHeight ? (k += this.bubbleDom.offsetHeight - this.bubbleTop.getBoundingClientRect().height, this.bubbleTop.style.display = "block", this.bubbleBottom.style.display = "none") : (k -= this.bubbleDom.offsetHeight + 2 * this.bubbleBottom.getBoundingClientRect().height, this.bubbleTop.style.display = "none", this.bubbleBottom.style.display = "block"), this.bubbleDom.style.top = "".concat(k, "px"); - var C = h - this.bubbleDom.offsetWidth / 2; - C < b ? (C = b, this.$setBubbleCursorPosition("".concat(h - b, "px"))) : C + this.bubbleDom.offsetWidth > y ? (C = y - this.bubbleDom.offsetWidth, this.$setBubbleCursorPosition("".concat(h - C, "px"))) : this.$setBubbleCursorPosition("50%"), this.bubbleDom.style.left = "".concat(Math.max(20, C), "px"); + var C = u - this.bubbleDom.offsetWidth / 2; + C < b ? (C = b, this.$setBubbleCursorPosition("".concat(u - b, "px"))) : C + this.bubbleDom.offsetWidth > y ? (C = y - this.bubbleDom.offsetWidth, this.$setBubbleCursorPosition("".concat(u - C, "px"))) : this.$setBubbleCursorPosition("50%"), this.bubbleDom.style.left = "".concat(Math.max(20, C), "px"); } }, { key: "hideBubble", value: function() { this.visible = !1; } }, { key: "$setBubbleCursorPosition", value: function() { @@ -24068,34 +24290,34 @@ var h_t = function(r) { if (l === "50%") this.bubbleTop.style.left = "50%", this.bubbleBottom.style.left = "50%"; else { - var h = Qp(l) < 10 ? "10px" : l; - this.bubbleTop.style.left = h, this.bubbleBottom.style.left = h; + var u = Qp(l) < 10 ? "10px" : l; + this.bubbleTop.style.left = u, this.bubbleBottom.style.left = u; } } }, { key: "initBubbleDom", value: function() { var l = document.createElement("div"); l.className = "cherry-bubble-top"; - var h = document.createElement("div"); - h.className = "cherry-bubble-bottom", this.bubbleTop = l, this.bubbleBottom = h, this.bubbleDom.appendChild(l), this.bubbleDom.appendChild(h), this.visible = !1; + var u = document.createElement("div"); + u.className = "cherry-bubble-bottom", this.bubbleTop = l, this.bubbleBottom = u, this.bubbleDom.appendChild(l), this.bubbleDom.appendChild(u), this.visible = !1; } }, { key: "getBubbleDom", value: function() { return this.bubbleDom; } }, { key: "addSelectionChangeListener", value: function() { var l = this; - this.options.editor.addListener("change", function(h) { + this.options.editor.addListener("change", function(u) { l.hideBubble(); - }), this.options.editor.addListener("refresh", function(h) { + }), this.options.editor.addListener("refresh", function(u) { l.hideBubble(); - }), this.options.editor.addListener("scroll", function(h) { + }), this.options.editor.addListener("scroll", function(u) { l.updatePositionWhenScroll(); - }), this.options.editor.addListener("beforeSelectionChange", function(h, g) { + }), this.options.editor.addListener("beforeSelectionChange", function(u, g) { if (g.origin !== "*mouse" && (g.origin !== null || g.origin === void 0) || !g.ranges[0]) return !0; var d = 1e6 * g.ranges[0].anchor.line + g.ranges[0].anchor.ch, b = 1e6 * g.ranges[0].head.line + g.ranges[0].head.ch, y = "asc"; d > b && (y = "desc"), ag(function() { - if (h.getSelections().join("").length <= 0) + if (u.getSelections().join("").length <= 0) l.hideBubble(); else { - var k = h.getWrapperElement().getElementsByClassName("CodeMirror-selected"), C = l.editorDom.getBoundingClientRect(), B = 0, L = 0; - if (Zc(k) !== "object" || k.length <= 0) + var k = u.getWrapperElement().getElementsByClassName("CodeMirror-selected"), C = l.editorDom.getBoundingClientRect(), B = 0, L = 0; + if (Xc(k) !== "object" || k.length <= 0) l.hideBubble(); else { for (var M = 0; M < k.length; M++) { @@ -24109,112 +24331,112 @@ var h_t = function(r) { }); } }]), o; }(); -function v3n(r) { +function F3n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -gi(h_t, "displayType", "flex"); -var k3n = function(r) { - aa(o, zee); - var i = v3n(o); +Ai(g_t, "displayType", "flex"); +var D3n = function(r) { + ta(o, Vee); + var i = F3n(o); function o() { - return Gr(this, o), i.apply(this, arguments); + return Xr(this, o), i.apply(this, arguments); } - return Vr(o, [{ key: "init", value: function() { + return Gr(o, [{ key: "init", value: function() { this.editor = this.$cherry.editor, this.editorDom = this.editor.getEditorDom(), this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom), this.initAction(); } }, { key: "appendMenusToDom", value: function(l) { this.options.dom.appendChild(l); } }, { key: "initAction", value: function() { var l = this; - this.editor.addListener("cursorActivity", function(h, g) { - l.cursorActivity(g, h); - }), this.editor.addListener("update", function(h, g) { - l.cursorActivity(g, h); - }), this.editor.addListener("refresh", function(h, g) { + this.editor.addListener("cursorActivity", function(u, g) { + l.cursorActivity(g, u); + }), this.editor.addListener("update", function(u, g) { + l.cursorActivity(g, u); + }), this.editor.addListener("refresh", function(u, g) { ag(function() { - l.cursorActivity(g, h); + l.cursorActivity(g, u); }, 0); }); - } }, { key: "update", value: function(l, h) { - var g = h.getCursor(); - if (this.isHidden(g.line, h)) + } }, { key: "update", value: function(l, u) { + var g = u.getCursor(); + if (this.isHidden(g.line, u)) return this.options.dom.style.display = "none", !1; this.options.dom.style.display = "inline-block"; - } }, { key: "cursorActivity", value: function(l, h) { - var g = h.getCursor(), d = document.querySelector(".cherry-editor .CodeMirror-lines"); + } }, { key: "cursorActivity", value: function(l, u) { + var g = u.getCursor(), d = document.querySelector(".cherry-editor .CodeMirror-lines"); if (!d) return !1; var b = getComputedStyle(d), y = Qp(b.paddingLeft), k = Qp(b.paddingTop); - if (this.isHidden(g.line, h)) + if (this.isHidden(g.line, u)) return this.options.dom.style.display = "none", !1; - this.options.dom.style.display = "inline-block", this.options.dom.style.left = "".concat(y, "px"), this.options.dom.style.top = "".concat(this.getLineHeight(g.line, h) + k, "px"); - } }, { key: "isHidden", value: function(l, h) { - return h.getSelections().length > 1 || h.getSelection().length > 0 || !!h.getLine(l); - } }, { key: "getLineHeight", value: function(l, h) { + this.options.dom.style.display = "inline-block", this.options.dom.style.left = "".concat(y, "px"), this.options.dom.style.top = "".concat(this.getLineHeight(g.line, u) + k, "px"); + } }, { key: "isHidden", value: function(l, u) { + return u.getSelections().length > 1 || u.getSelection().length > 0 || !!u.getLine(l); + } }, { key: "getLineHeight", value: function(l, u) { var g = 0; - return h.getDoc().eachLine(0, l, function(d) { + return u.getDoc().eachLine(0, l, function(d) { g += d.height; }), g; } }]), o; }(); -function x3n(r) { +function O3n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -var C3n = function(r) { - aa(o, zee); - var i = x3n(o); +var N3n = function(r) { + ta(o, Vee); + var i = O3n(o); function o() { - return Gr(this, o), i.apply(this, arguments); + return Xr(this, o), i.apply(this, arguments); } - return Vr(o, [{ key: "appendMenusToDom", value: function(l) { - var h = nu("div", "toolbar-right"); - h.appendChild(l), this.options.dom.appendChild(h); + return Gr(o, [{ key: "appendMenusToDom", value: function(l) { + var u = jl("div", "toolbar-right"); + u.appendChild(l), this.options.dom.appendChild(u); } }]), o; -}(), T3n = function() { +}(), Q3n = function() { function r(i) { var o, l; - Gr(this, r), this.$cherry = i.$cherry, this.editor = i.$cherry.editor.editor, this.tocStr = "", this.updateLocationHash = (o = i.updateLocationHash) === null || o === void 0 || o, this.defaultModel = (l = i.defaultModel) !== null && l !== void 0 ? l : "full", this.init(); + Xr(this, r), this.$cherry = i.$cherry, this.editor = i.$cherry.editor.editor, this.tocStr = "", this.updateLocationHash = (o = i.updateLocationHash) === null || o === void 0 || o, this.defaultModel = (l = i.defaultModel) !== null && l !== void 0 ? l : "full", this.init(); } - return Vr(r, [{ key: "init", value: function() { + return Gr(r, [{ key: "init", value: function() { var i = this; this.drawDom(), this.timer = ag(function() { i.updateTocList(); @@ -24228,18 +24450,18 @@ var C3n = function(r) { } }, { key: "setModelToLocalStorage", value: function(i) { typeof localStorage < "u" && localStorage.setItem("cherry-toc-model", i); } }, { key: "drawDom", value: function() { - var i = nu("div", "cherry-flex-toc cherry-flex-toc__pure"), o = nu("div", "cherry-toc-head"), l = nu("span", "cherry-toc-title"); + var i = jl("div", "cherry-flex-toc cherry-flex-toc__pure"), o = jl("div", "cherry-toc-head"), l = jl("span", "cherry-toc-title"); l.append(this.$cherry.locale.toc); - var h = nu("i", "ch-icon ch-icon-chevronsRight"), g = nu("i", "ch-icon ch-icon-chevronsLeft"); - this.tocClose = h, this.tocOpen = g, o.appendChild(l), o.appendChild(h), o.appendChild(g), i.appendChild(o); - var d = nu("div", "cherry-toc-list"); + var u = jl("i", "ch-icon ch-icon-chevronsRight"), g = jl("i", "ch-icon ch-icon-chevronsLeft"); + this.tocClose = u, this.tocOpen = g, o.appendChild(l), o.appendChild(u), o.appendChild(g), i.appendChild(o); + var d = jl("div", "cherry-toc-list"); this.tocListDom = d, i.appendChild(d), this.tocDom = i, this.$cherry.wrapperDom.appendChild(i), this.bindClickEvent(); } }, { key: "bindClickEvent", value: function() { var i = this; this.tocDom.addEventListener("click", function(o) { var l = i.$getClosestNode(o.target, "A"); if (l !== !1 && /cherry-toc-one-a/.test(l.className)) { - var h = l.dataset, g = h.id, d = h.index; + var u = l.dataset, g = u.id, d = u.index; if (i.$cherry.status.previewer === "hide") { for (var b = i.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g), y = 0; y <= d; y++) b.findNext(); @@ -24272,354 +24494,354 @@ var C3n = function(r) { this.tocDom.classList.contains(o) || (this.tocDom.classList.remove("cherry-flex-toc__pure"), this.tocDom.classList.remove("cherry-flex-toc__full"), this.tocDom.classList.add(o)); var l = this.tocListDom.querySelectorAll(".cherry-toc-one-a"); if (l.length > 0) { - var h = 28; + var u = 28; if (i === "pure") { var g = this.tocListDom.getBoundingClientRect().height, d = Math.floor((g - 3 * l.length) / l.length); - h = d < 3 ? 3 : d > 10 ? 10 : d; + u = d < 3 ? 3 : d > 10 ? 10 : d; } for (var b = 0; b < l.length; b++) - l[b].style.height !== "".concat(h, "px") && (l[b].style.height = "".concat(h, "px")); + l[b].style.height !== "".concat(u, "px") && (l[b].style.height = "".concat(u, "px")); } } }, { key: "$getClosestNode", value: function(i, o) { return i.tagName === o ? i : i.parentNode.tagName !== "BODY" && this.$getClosestNode(i.parentNode, o); } }, { key: "updateTocList", value: function() { if ((arguments.length > 0 && arguments[0] !== void 0 && arguments[0]) !== !0) { var i = this.$cherry.getToc(), o = ""; - if (us(i).call(i, function(k) { + if (Wo(i).call(i, function(k) { return o += k.text, k; - }), o = YOe(o), this.tocStr !== o) { + }), o = eNe(o), this.tocStr !== o) { this.tocStr = o; - var l = "", h = 0; - us(i).call(i, function(k) { + var l = "", u = 0; + Wo(i).call(i, function(k) { var C, B, L, M, P = k.text.replace(//g, ""), X = P.replace(/<[^>]+?>/g, ""); return l += tt(C = tt(B = tt(L = tt(M = '`)).call(C, P, ""), h += 1, k; + >`)).call(C, P, ""), u += 1, k; }), this.tocListDom.innerHTML = l; } } if (this.$cherry.status.previewer !== "hide") { for (var g, d = this.$cherry.previewer.getDomContainer().getBoundingClientRect().y, b = this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"), y = 0; y < b.length && !(b[y].getBoundingClientRect().y > d + 20); y++) ; - y = y > 0 ? y - 1 : y, xa(g = this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(g, function(k, C) { + y = y > 0 ? y - 1 : y, fa(g = this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(g, function(k, C) { C === y ? k.classList.add("current") : k.classList.remove("current"); }); } } }]), r; }(); -function E3n(r) { +function P3n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -var B3n = function(r) { - aa(o, zee); - var i = E3n(o); +var R3n = function(r) { + ta(o, Vee); + var i = P3n(o); function o() { - return Gr(this, o), i.apply(this, arguments); + return Xr(this, o), i.apply(this, arguments); } - return Vr(o, [{ key: "appendMenusToDom", value: function(l) { + return Gr(o, [{ key: "appendMenusToDom", value: function(l) { this.options.dom.appendChild(l); } }]), o; -}(), Z7 = -1, o8 = 1, Yw = 0; -function lee(r, i, o, l) { +}(), e9 = -1, s8 = 1, Yw = 0; +function uee(r, i, o, l) { if (r === i) return r ? [[Yw, r]] : []; if (o != null) { - var h = function(k, C, B) { + var u = function(k, C, B) { var L = typeof B == "number" ? { index: B, length: 0 } : B.oldRange, M = typeof B == "number" ? null : B.newRange, P = k.length, X = C.length; if (L.length === 0 && (M === null || M.length === 0)) { var W = L.index, N = k.slice(0, W), z = k.slice(W), oe = M ? M.index : null, V = W + X - P; if ((oe === null || oe === V) && !(V < 0 || V > X)) { var ae = C.slice(0, V); if ((pe = C.slice(V)) === z) { - var ie = Math.min(W, V); - if ((we = N.slice(0, ie)) === (ee = ae.slice(0, ie))) - return xMe(we, N.slice(ie), ae.slice(ie), z); + var re = Math.min(W, V); + if ((we = N.slice(0, re)) === (ee = ae.slice(0, re))) + return EMe(we, N.slice(re), ae.slice(re), z); } } if (oe === null || oe === W) { - var de = W, pe = (ae = C.slice(0, de), C.slice(de)); + var fe = W, pe = (ae = C.slice(0, fe), C.slice(fe)); if (ae === N) { - var ce = Math.min(P - de, X - de); + var ce = Math.min(P - fe, X - fe); if ((me = z.slice(z.length - ce)) === (ve = pe.slice(pe.length - ce))) - return xMe(N, z.slice(0, z.length - ce), pe.slice(0, pe.length - ce), me); + return EMe(N, z.slice(0, z.length - ce), pe.slice(0, pe.length - ce), me); } } } if (L.length > 0 && M && M.length === 0) { var we = k.slice(0, L.index), me = k.slice(L.index + L.length); - if (!(X < (ie = we.length) + (ce = me.length))) { - var ee = C.slice(0, ie), ve = C.slice(X - ce); + if (!(X < (re = we.length) + (ce = me.length))) { + var ee = C.slice(0, re), ve = C.slice(X - ce); if (we === ee && me === ve) - return xMe(we, k.slice(ie, P - ce), C.slice(ie, X - ce), me); + return EMe(we, k.slice(re, P - ce), C.slice(re, X - ce), me); } } return null; }(r, i, o); - if (h) - return h; + if (u) + return u; } - var g = RFe(r, i), d = r.substring(0, g); - g = UFe(r = r.substring(g), i = i.substring(g)); + var g = jFe(r, i), d = r.substring(0, g); + g = KFe(r = r.substring(g), i = i.substring(g)); var b = r.substring(r.length - g), y = function(k, C) { var B; if (!k) - return [[o8, C]]; + return [[s8, C]]; if (!C) - return [[Z7, k]]; + return [[e9, k]]; var L = k.length > C.length ? k : C, M = k.length > C.length ? C : k, P = L.indexOf(M); if (P !== -1) - return B = [[o8, L.substring(0, P)], [Yw, M], [o8, L.substring(P + M.length)]], k.length > C.length && (B[0][0] = B[2][0] = Z7), B; + return B = [[s8, L.substring(0, P)], [Yw, M], [s8, L.substring(P + M.length)]], k.length > C.length && (B[0][0] = B[2][0] = e9), B; if (M.length === 1) - return [[Z7, k], [o8, C]]; - var X = function(de, pe) { - var ce = de.length > pe.length ? de : pe, we = de.length > pe.length ? pe : de; + return [[e9, k], [s8, C]]; + var X = function(fe, pe) { + var ce = fe.length > pe.length ? fe : pe, we = fe.length > pe.length ? pe : fe; if (ce.length < 4 || 2 * we.length < ce.length) return null; - function me(ct, ot, Pe) { - for (var Le, lt, Ut, Lt, Dn = ct.substring(Pe, Pe + Math.floor(ct.length / 4)), yt = -1, on = ""; (yt = ot.indexOf(Dn, yt + 1)) !== -1; ) { - var Xt = RFe(ct.substring(Pe), ot.substring(yt)), Vt = UFe(ct.substring(0, Pe), ot.substring(0, yt)); - on.length < Vt + Xt && (on = ot.substring(yt - Vt, yt) + ot.substring(yt, yt + Xt), Le = ct.substring(0, Pe - Vt), lt = ct.substring(Pe + Xt), Ut = ot.substring(0, yt - Vt), Lt = ot.substring(yt + Xt)); + function me(ct, st, Pe) { + for (var Le, lt, Ut, Lt, Dn = ct.substring(Pe, Pe + Math.floor(ct.length / 4)), yt = -1, on = ""; (yt = st.indexOf(Dn, yt + 1)) !== -1; ) { + var Xt = jFe(ct.substring(Pe), st.substring(yt)), Vt = KFe(ct.substring(0, Pe), st.substring(0, yt)); + on.length < Vt + Xt && (on = st.substring(yt - Vt, yt) + st.substring(yt, yt + Xt), Le = ct.substring(0, Pe - Vt), lt = ct.substring(Pe + Xt), Ut = st.substring(0, yt - Vt), Lt = st.substring(yt + Xt)); } return 2 * on.length >= ct.length ? [Le, lt, Ut, Lt, on] : null; } - var ee, ve, Y, Te, fe, ue = me(ce, we, Math.ceil(ce.length / 4)), $e = me(ce, we, Math.ceil(ce.length / 2)); + var ee, ve, Y, Te, de, ue = me(ce, we, Math.ceil(ce.length / 4)), $e = me(ce, we, Math.ceil(ce.length / 2)); if (!ue && !$e) return null; - ee = $e ? ue && ue[4].length > $e[4].length ? ue : $e : ue, de.length > pe.length ? (ve = ee[0], Y = ee[1], Te = ee[2], fe = ee[3]) : (Te = ee[0], fe = ee[1], ve = ee[2], Y = ee[3]); + ee = $e ? ue && ue[4].length > $e[4].length ? ue : $e : ue, fe.length > pe.length ? (ve = ee[0], Y = ee[1], Te = ee[2], de = ee[3]) : (Te = ee[0], de = ee[1], ve = ee[2], Y = ee[3]); var qe = ee[4]; - return [ve, Y, Te, fe, qe]; + return [ve, Y, Te, de, qe]; }(k, C); if (X) { - var W = X[0], N = X[1], z = X[2], oe = X[3], V = X[4], ae = lee(W, z), ie = lee(N, oe); - return ae.concat([[Yw, V]], ie); + var W = X[0], N = X[1], z = X[2], oe = X[3], V = X[4], ae = uee(W, z), re = uee(N, oe); + return ae.concat([[Yw, V]], re); } - return function(de, pe) { - for (var ce = de.length, we = pe.length, me = Math.ceil((ce + we) / 2), ee = me, ve = 2 * me, Y = new Array(ve), Te = new Array(ve), fe = 0; fe < ve; fe++) - Y[fe] = -1, Te[fe] = -1; + return function(fe, pe) { + for (var ce = fe.length, we = pe.length, me = Math.ceil((ce + we) / 2), ee = me, ve = 2 * me, Y = new Array(ve), Te = new Array(ve), de = 0; de < ve; de++) + Y[de] = -1, Te[de] = -1; Y[ee + 1] = 0, Te[ee + 1] = 0; - for (var ue = ce - we, $e = ue % 2 != 0, qe = 0, ct = 0, ot = 0, Pe = 0, Le = 0; Le < me; Le++) { + for (var ue = ce - we, $e = ue % 2 != 0, qe = 0, ct = 0, st = 0, Pe = 0, Le = 0; Le < me; Le++) { for (var lt = -Le + qe; lt <= Le - ct; lt += 2) { - for (var Ut = ee + lt, Lt = (Vt = lt === -Le || lt !== Le && Y[Ut - 1] < Y[Ut + 1] ? Y[Ut + 1] : Y[Ut - 1] + 1) - lt; Vt < ce && Lt < we && de.charAt(Vt) === pe.charAt(Lt); ) + for (var Ut = ee + lt, Lt = (Vt = lt === -Le || lt !== Le && Y[Ut - 1] < Y[Ut + 1] ? Y[Ut + 1] : Y[Ut - 1] + 1) - lt; Vt < ce && Lt < we && fe.charAt(Vt) === pe.charAt(Lt); ) Vt++, Lt++; if (Y[Ut] = Vt, Vt > ce) ct += 2; else if (Lt > we) qe += 2; else if ($e && (on = ee + ue - lt) >= 0 && on < ve && Te[on] !== -1 && Vt >= (yt = ce - Te[on])) - return Skt(de, pe, Vt, Lt); + return Ikt(fe, pe, Vt, Lt); } - for (var Dn = -Le + ot; Dn <= Le - Pe; Dn += 2) { - for (var yt, on = ee + Dn, Xt = (yt = Dn === -Le || Dn !== Le && Te[on - 1] < Te[on + 1] ? Te[on + 1] : Te[on - 1] + 1) - Dn; yt < ce && Xt < we && de.charAt(ce - yt - 1) === pe.charAt(we - Xt - 1); ) + for (var Dn = -Le + st; Dn <= Le - Pe; Dn += 2) { + for (var yt, on = ee + Dn, Xt = (yt = Dn === -Le || Dn !== Le && Te[on - 1] < Te[on + 1] ? Te[on + 1] : Te[on - 1] + 1) - Dn; yt < ce && Xt < we && fe.charAt(ce - yt - 1) === pe.charAt(we - Xt - 1); ) yt++, Xt++; if (Te[on] = yt, yt > ce) Pe += 2; else if (Xt > we) - ot += 2; + st += 2; else if (!$e && (Ut = ee + ue - Dn) >= 0 && Ut < ve && Y[Ut] !== -1) { var Vt; if (Lt = ee + (Vt = Y[Ut]) - Ut, Vt >= (yt = ce - yt)) - return Skt(de, pe, Vt, Lt); + return Ikt(fe, pe, Vt, Lt); } } } - return [[Z7, de], [o8, pe]]; + return [[e9, fe], [s8, pe]]; }(k, C); }(r = r.substring(0, r.length - g), i = i.substring(0, i.length - g)); - return d && y.unshift([Yw, d]), b && y.push([Yw, b]), f_t(y, l), y; + return d && y.unshift([Yw, d]), b && y.push([Yw, b]), p_t(y, l), y; } -function Skt(r, i, o, l) { - var h = r.substring(0, o), g = i.substring(0, l), d = r.substring(o), b = i.substring(l), y = lee(h, g), k = lee(d, b); +function Ikt(r, i, o, l) { + var u = r.substring(0, o), g = i.substring(0, l), d = r.substring(o), b = i.substring(l), y = uee(u, g), k = uee(d, b); return y.concat(k); } -function RFe(r, i) { +function jFe(r, i) { if (!r || !i || r.charAt(0) !== i.charAt(0)) return 0; - for (var o = 0, l = Math.min(r.length, i.length), h = l, g = 0; o < h; ) - r.substring(g, h) == i.substring(g, h) ? g = o = h : l = h, h = Math.floor((l - o) / 2 + o); - return d_t(r.charCodeAt(h - 1)) && h--, h; + for (var o = 0, l = Math.min(r.length, i.length), u = l, g = 0; o < u; ) + r.substring(g, u) == i.substring(g, u) ? g = o = u : l = u, u = Math.floor((l - o) / 2 + o); + return m_t(r.charCodeAt(u - 1)) && u--, u; } -function UFe(r, i) { +function KFe(r, i) { if (!r || !i || r.slice(-1) !== i.slice(-1)) return 0; - for (var o = 0, l = Math.min(r.length, i.length), h = l, g = 0; o < h; ) - r.substring(r.length - h, r.length - g) == i.substring(i.length - h, i.length - g) ? g = o = h : l = h, h = Math.floor((l - o) / 2 + o); - return A_t(r.charCodeAt(r.length - h)) && h--, h; + for (var o = 0, l = Math.min(r.length, i.length), u = l, g = 0; o < u; ) + r.substring(r.length - u, r.length - g) == i.substring(i.length - u, i.length - g) ? g = o = u : l = u, u = Math.floor((l - o) / 2 + o); + return b_t(r.charCodeAt(r.length - u)) && u--, u; } -function f_t(r, i) { +function p_t(r, i) { r.push([Yw, ""]); - for (var o, l = 0, h = 0, g = 0, d = "", b = ""; l < r.length; ) + for (var o, l = 0, u = 0, g = 0, d = "", b = ""; l < r.length; ) if (l < r.length - 1 && !r[l][1]) r.splice(l, 1); else switch (r[l][0]) { - case o8: + case s8: g++, b += r[l][1], l++; break; - case Z7: - h++, d += r[l][1], l++; + case e9: + u++, d += r[l][1], l++; break; case Yw: - var y = l - g - h - 1; + var y = l - g - u - 1; if (i) { - if (y >= 0 && p_t(r[y][1])) { + if (y >= 0 && w_t(r[y][1])) { var k = r[y][1].slice(-1); if (r[y][1] = r[y][1].slice(0, -1), d = k + d, b = k + b, !r[y][1]) { r.splice(y, 1), l--; var C = y - 1; - r[C] && r[C][0] === o8 && (g++, b = r[C][1] + b, C--), r[C] && r[C][0] === Z7 && (h++, d = r[C][1] + d, C--), y = C; + r[C] && r[C][0] === s8 && (g++, b = r[C][1] + b, C--), r[C] && r[C][0] === e9 && (u++, d = r[C][1] + d, C--), y = C; } } - g_t(r[l][1]) && (k = r[l][1].charAt(0), r[l][1] = r[l][1].slice(1), d += k, b += k); + y_t(r[l][1]) && (k = r[l][1].charAt(0), r[l][1] = r[l][1].slice(1), d += k, b += k); } if (l < r.length - 1 && !r[l][1]) { r.splice(l, 1); break; } if (d.length > 0 || b.length > 0) { - d.length > 0 && b.length > 0 && ((o = RFe(b, d)) !== 0 && (y >= 0 ? r[y][1] += b.substring(0, o) : (r.splice(0, 0, [Yw, b.substring(0, o)]), l++), b = b.substring(o), d = d.substring(o)), (o = UFe(b, d)) !== 0 && (r[l][1] = b.substring(b.length - o) + r[l][1], b = b.substring(0, b.length - o), d = d.substring(0, d.length - o))); - var B = g + h; - d.length === 0 && b.length === 0 ? (r.splice(l - B, B), l -= B) : d.length === 0 ? (r.splice(l - B, B, [o8, b]), l = l - B + 1) : b.length === 0 ? (r.splice(l - B, B, [Z7, d]), l = l - B + 1) : (r.splice(l - B, B, [Z7, d], [o8, b]), l = l - B + 2); + d.length > 0 && b.length > 0 && ((o = jFe(b, d)) !== 0 && (y >= 0 ? r[y][1] += b.substring(0, o) : (r.splice(0, 0, [Yw, b.substring(0, o)]), l++), b = b.substring(o), d = d.substring(o)), (o = KFe(b, d)) !== 0 && (r[l][1] = b.substring(b.length - o) + r[l][1], b = b.substring(0, b.length - o), d = d.substring(0, d.length - o))); + var B = g + u; + d.length === 0 && b.length === 0 ? (r.splice(l - B, B), l -= B) : d.length === 0 ? (r.splice(l - B, B, [s8, b]), l = l - B + 1) : b.length === 0 ? (r.splice(l - B, B, [e9, d]), l = l - B + 1) : (r.splice(l - B, B, [e9, d], [s8, b]), l = l - B + 2); } - l !== 0 && r[l - 1][0] === Yw ? (r[l - 1][1] += r[l][1], r.splice(l, 1)) : l++, g = 0, h = 0, d = "", b = ""; + l !== 0 && r[l - 1][0] === Yw ? (r[l - 1][1] += r[l][1], r.splice(l, 1)) : l++, g = 0, u = 0, d = "", b = ""; } r[r.length - 1][1] === "" && r.pop(); var L = !1; for (l = 1; l < r.length - 1; ) r[l - 1][0] === Yw && r[l + 1][0] === Yw && (r[l][1].substring(r[l][1].length - r[l - 1][1].length) === r[l - 1][1] ? (r[l][1] = r[l - 1][1] + r[l][1].substring(0, r[l][1].length - r[l - 1][1].length), r[l + 1][1] = r[l - 1][1] + r[l + 1][1], r.splice(l - 1, 1), L = !0) : r[l][1].substring(0, r[l + 1][1].length) == r[l + 1][1] && (r[l - 1][1] += r[l + 1][1], r[l][1] = r[l][1].substring(r[l + 1][1].length) + r[l + 1][1], r.splice(l + 1, 1), L = !0)), l++; - L && f_t(r, i); + L && p_t(r, i); } -function d_t(r) { +function m_t(r) { return r >= 55296 && r <= 56319; } -function A_t(r) { +function b_t(r) { return r >= 56320 && r <= 57343; } -function g_t(r) { - return A_t(r.charCodeAt(0)); +function y_t(r) { + return b_t(r.charCodeAt(0)); } -function p_t(r) { - return d_t(r.charCodeAt(r.length - 1)); +function w_t(r) { + return m_t(r.charCodeAt(r.length - 1)); } -function xMe(r, i, o, l) { - return p_t(r) || g_t(l) ? null : function(h) { - for (var g = [], d = 0; d < h.length; d++) - h[d][1].length > 0 && g.push(h[d]); +function EMe(r, i, o, l) { + return w_t(r) || y_t(l) ? null : function(u) { + for (var g = [], d = 0; d < u.length; d++) + u[d][1].length > 0 && g.push(u[d]); return g; - }([[Yw, r], [Z7, i], [o8, o], [Yw, l]]); + }([[Yw, r], [e9, i], [s8, o], [Yw, l]]); } -function wAe(r, i, o) { - return lee(r, i, o, !0); +function xAe(r, i, o) { + return uee(r, i, o, !0); } -wAe.INSERT = o8, wAe.DELETE = Z7, wAe.EQUAL = Yw; -var Lde = wAe, _3n = function(r, i) { +xAe.INSERT = s8, xAe.DELETE = e9, xAe.EQUAL = Yw; +var Fde = xAe, U3n = function(r, i) { for (var o = -1, l = r == null ? 0 : r.length; ++o < l && i(r[o], o, r) !== !1; ) ; return r; -}, S3n = GTt(Object.keys, Object), L3n = Object.prototype.hasOwnProperty, M3n = function(r) { - if (!POe(r)) - return S3n(r); +}, H3n = qTt(Object.keys, Object), $3n = Object.prototype.hasOwnProperty, j3n = function(r) { + if (!$Oe(r)) + return H3n(r); var i = []; for (var o in Object(r)) - L3n.call(r, o) && o != "constructor" && i.push(o); + $3n.call(r, o) && o != "constructor" && i.push(o); return i; -}, sNe = function(r) { - return Fge(r) ? tEt(r) : M3n(r); -}, I3n = function(r, i) { - return r && Uee(i, sNe(i), r); -}, F3n = function(r, i) { - return r && Uee(i, Hee(i), r); -}, D3n = function(r, i) { - for (var o = -1, l = r == null ? 0 : r.length, h = 0, g = []; ++o < l; ) { +}, lNe = function(r) { + return Oge(r) ? iEt(r) : j3n(r); +}, K3n = function(r, i) { + return r && Hee(i, lNe(i), r); +}, z3n = function(r, i) { + return r && Hee(i, $ee(i), r); +}, X3n = function(r, i) { + for (var o = -1, l = r == null ? 0 : r.length, u = 0, g = []; ++o < l; ) { var d = r[o]; - i(d, o, r) && (g[h++] = d); + i(d, o, r) && (g[u++] = d); } return g; -}, m_t = function() { +}, v_t = function() { return []; -}, O3n = Object.prototype.propertyIsEnumerable, Lkt = Object.getOwnPropertySymbols, N3n = Lkt ? function(r) { - return r == null ? [] : (r = Object(r), D3n(Lkt(r), function(i) { - return O3n.call(r, i); +}, G3n = Object.prototype.propertyIsEnumerable, Fkt = Object.getOwnPropertySymbols, V3n = Fkt ? function(r) { + return r == null ? [] : (r = Object(r), X3n(Fkt(r), function(i) { + return G3n.call(r, i); })); -} : m_t, cNe = N3n, Q3n = function(r, i) { - return Uee(r, cNe(r), i); -}, b_t = function(r, i) { - for (var o = -1, l = i.length, h = r.length; ++o < l; ) - r[h + o] = i[o]; +} : v_t, uNe = V3n, W3n = function(r, i) { + return Hee(r, uNe(r), i); +}, k_t = function(r, i) { + for (var o = -1, l = i.length, u = r.length; ++o < l; ) + r[u + o] = i[o]; return r; -}, P3n = Object.getOwnPropertySymbols ? function(r) { +}, q3n = Object.getOwnPropertySymbols ? function(r) { for (var i = []; r; ) - b_t(i, cNe(r)), r = QOe(r); + k_t(i, uNe(r)), r = HOe(r); return i; -} : m_t, y_t = P3n, R3n = function(r, i) { - return Uee(r, y_t(r), i); -}, w_t = function(r, i, o) { +} : v_t, x_t = q3n, Y3n = function(r, i) { + return Hee(r, x_t(r), i); +}, C_t = function(r, i, o) { var l = i(r); - return G$(r) ? l : b_t(l, o(r)); -}, U3n = function(r) { - return w_t(r, sNe, cNe); -}, H3n = function(r) { - return w_t(r, Hee, y_t); -}, HFe = uQ(b8, "DataView"), $Fe = uQ(b8, "Promise"), jFe = uQ(b8, "Set"), KFe = uQ(b8, "WeakMap"), Mkt = "[object Map]", Ikt = "[object Promise]", Fkt = "[object Set]", Dkt = "[object WeakMap]", Okt = "[object DataView]", $3n = lQ(HFe), j3n = lQ(qZ), K3n = lQ($Fe), z3n = lQ(jFe), X3n = lQ(KFe), kN = cQ; -(HFe && kN(new HFe(new ArrayBuffer(1))) != Okt || qZ && kN(new qZ()) != Mkt || $Fe && kN($Fe.resolve()) != Ikt || jFe && kN(new jFe()) != Fkt || KFe && kN(new KFe()) != Dkt) && (kN = function(r) { - var i = cQ(r), o = i == "[object Object]" ? r.constructor : void 0, l = o ? lQ(o) : ""; + return V$(r) ? l : k_t(l, o(r)); +}, J3n = function(r) { + return C_t(r, lNe, uNe); +}, Z3n = function(r) { + return C_t(r, $ee, x_t); +}, zFe = hQ(y8, "DataView"), XFe = hQ(y8, "Promise"), GFe = hQ(y8, "Set"), VFe = hQ(y8, "WeakMap"), Dkt = "[object Map]", Okt = "[object Promise]", Nkt = "[object Set]", Qkt = "[object WeakMap]", Pkt = "[object DataView]", e4n = uQ(zFe), t4n = uQ(qZ), n4n = uQ(XFe), r4n = uQ(GFe), i4n = uQ(VFe), xN = lQ; +(zFe && xN(new zFe(new ArrayBuffer(1))) != Pkt || qZ && xN(new qZ()) != Dkt || XFe && xN(XFe.resolve()) != Okt || GFe && xN(new GFe()) != Nkt || VFe && xN(new VFe()) != Qkt) && (xN = function(r) { + var i = lQ(r), o = i == "[object Object]" ? r.constructor : void 0, l = o ? uQ(o) : ""; if (l) switch (l) { - case $3n: - return Okt; - case j3n: - return Mkt; - case K3n: - return Ikt; - case z3n: - return Fkt; - case X3n: + case e4n: + return Pkt; + case t4n: return Dkt; + case n4n: + return Okt; + case r4n: + return Nkt; + case i4n: + return Qkt; } return i; }); -var lNe = kN, G3n = Object.prototype.hasOwnProperty, V3n = function(r) { +var hNe = xN, a4n = Object.prototype.hasOwnProperty, o4n = function(r) { var i = r.length, o = new r.constructor(i); - return i && typeof r[0] == "string" && G3n.call(r, "index") && (o.index = r.index, o.input = r.input), o; -}, W3n = function(r, i) { - var o = i ? NOe(r.buffer) : r.buffer; + return i && typeof r[0] == "string" && a4n.call(r, "index") && (o.index = r.index, o.input = r.input), o; +}, s4n = function(r, i) { + var o = i ? UOe(r.buffer) : r.buffer; return new r.constructor(o, r.byteOffset, r.byteLength); -}, q3n = /\w*$/, Y3n = function(r) { - var i = new r.constructor(r.source, q3n.exec(r)); +}, c4n = /\w*$/, l4n = function(r) { + var i = new r.constructor(r.source, c4n.exec(r)); return i.lastIndex = r.lastIndex, i; -}, Nkt = VM ? VM.prototype : void 0, Qkt = Nkt ? Nkt.valueOf : void 0, J3n = function(r) { - return Qkt ? Object(Qkt.call(r)) : {}; -}, Z3n = function(r, i, o) { +}, Rkt = WM ? WM.prototype : void 0, Ukt = Rkt ? Rkt.valueOf : void 0, u4n = function(r) { + return Ukt ? Object(Ukt.call(r)) : {}; +}, h4n = function(r, i, o) { var l = r.constructor; switch (i) { case "[object ArrayBuffer]": - return NOe(r); + return UOe(r); case "[object Boolean]": case "[object Date]": return new l(+r); case "[object DataView]": - return W3n(r, o); + return s4n(r, o); case "[object Float32Array]": case "[object Float64Array]": case "[object Int8Array]": @@ -24629,7 +24851,7 @@ var lNe = kN, G3n = Object.prototype.hasOwnProperty, V3n = function(r) { case "[object Uint8ClampedArray]": case "[object Uint16Array]": case "[object Uint32Array]": - return zTt(r, o); + return VTt(r, o); case "[object Map]": case "[object Set]": return new l(); @@ -24637,55 +24859,55 @@ var lNe = kN, G3n = Object.prototype.hasOwnProperty, V3n = function(r) { case "[object String]": return new l(r); case "[object RegExp]": - return Y3n(r); + return l4n(r); case "[object Symbol]": - return J3n(r); - } -}, e4n = function(r) { - return aI(r) && lNe(r) == "[object Map]"; -}, Pkt = V$ && V$.isMap, t4n = Pkt ? UOe(Pkt) : e4n, n4n = function(r) { - return aI(r) && lNe(r) == "[object Set]"; -}, Rkt = V$ && V$.isSet, r4n = Rkt ? UOe(Rkt) : n4n, v_t = "[object Arguments]", k_t = "[object Function]", x_t = "[object Object]", P1 = {}; -P1[v_t] = P1["[object Array]"] = P1["[object ArrayBuffer]"] = P1["[object DataView]"] = P1["[object Boolean]"] = P1["[object Date]"] = P1["[object Float32Array]"] = P1["[object Float64Array]"] = P1["[object Int8Array]"] = P1["[object Int16Array]"] = P1["[object Int32Array]"] = P1["[object Map]"] = P1["[object Number]"] = P1[x_t] = P1["[object RegExp]"] = P1["[object Set]"] = P1["[object String]"] = P1["[object Symbol]"] = P1["[object Uint8Array]"] = P1["[object Uint8ClampedArray]"] = P1["[object Uint16Array]"] = P1["[object Uint32Array]"] = !0, P1["[object Error]"] = P1[k_t] = P1["[object WeakMap]"] = !1; -var i4n = function r(i, o, l, h, g, d) { + return u4n(r); + } +}, f4n = function(r) { + return oI(r) && hNe(r) == "[object Map]"; +}, Hkt = W$ && W$.isMap, d4n = Hkt ? KOe(Hkt) : f4n, A4n = function(r) { + return oI(r) && hNe(r) == "[object Set]"; +}, $kt = W$ && W$.isSet, g4n = $kt ? KOe($kt) : A4n, T_t = "[object Arguments]", E_t = "[object Function]", B_t = "[object Object]", R1 = {}; +R1[T_t] = R1["[object Array]"] = R1["[object ArrayBuffer]"] = R1["[object DataView]"] = R1["[object Boolean]"] = R1["[object Date]"] = R1["[object Float32Array]"] = R1["[object Float64Array]"] = R1["[object Int8Array]"] = R1["[object Int16Array]"] = R1["[object Int32Array]"] = R1["[object Map]"] = R1["[object Number]"] = R1[B_t] = R1["[object RegExp]"] = R1["[object Set]"] = R1["[object String]"] = R1["[object Symbol]"] = R1["[object Uint8Array]"] = R1["[object Uint8ClampedArray]"] = R1["[object Uint16Array]"] = R1["[object Uint32Array]"] = !0, R1["[object Error]"] = R1[E_t] = R1["[object WeakMap]"] = !1; +var p4n = function r(i, o, l, u, g, d) { var b, y = 1 & o, k = 2 & o, C = 4 & o; - if (l && (b = g ? l(i, h, g, d) : l(i)), b !== void 0) + if (l && (b = g ? l(i, u, g, d) : l(i)), b !== void 0) return b; - if (!p8(i)) + if (!m8(i)) return i; - var B = G$(i); + var B = V$(i); if (B) { - if (b = V3n(i), !y) - return XTt(i, b); + if (b = o4n(i), !y) + return WTt(i, b); } else { - var L = lNe(i), M = L == k_t || L == "[object GeneratorFunction]"; - if (ROe(i)) - return KTt(i, y); - if (L == x_t || L == v_t || M && !g) { - if (b = k || M ? {} : VTt(i), !y) - return k ? R3n(i, F3n(b, i)) : Q3n(i, I3n(b, i)); + var L = hNe(i), M = L == E_t || L == "[object GeneratorFunction]"; + if (jOe(i)) + return GTt(i, y); + if (L == B_t || L == T_t || M && !g) { + if (b = k || M ? {} : YTt(i), !y) + return k ? Y3n(i, z3n(b, i)) : W3n(i, K3n(b, i)); } else { - if (!P1[L]) + if (!R1[L]) return g ? i : {}; - b = Z3n(i, L, y); + b = h4n(i, L, y); } } - d || (d = new jTt()); + d || (d = new XTt()); var P = d.get(i); if (P) return P; - d.set(i, b), r4n(i) ? i.forEach(function(W) { + d.set(i, b), g4n(i) ? i.forEach(function(W) { b.add(r(W, o, l, W, i, d)); - }) : t4n(i) && i.forEach(function(W, N) { + }) : d4n(i) && i.forEach(function(W, N) { b.set(N, r(W, o, l, N, i, d)); }); - var X = B ? void 0 : (C ? k ? H3n : U3n : k ? Hee : sNe)(i); - return _3n(X || i, function(W, N) { - X && (W = i[N = W]), ZTt(b, N, r(W, o, l, N, i, d)); + var X = B ? void 0 : (C ? k ? Z3n : J3n : k ? $ee : lNe)(i); + return U3n(X || i, function(W, N) { + X && (W = i[N = W]), nEt(b, N, r(W, o, l, N, i, d)); }), b; -}, C_t = function(r) { - return i4n(r, 5); -}, CM = { urlProcessor: function(r, i) { +}, __t = function(r) { + return p4n(r, 5); +}, TM = { urlProcessor: function(r, i) { return r; }, fileUpload: function(r, i) { if (/video/i.test(r.type)) @@ -24693,8 +24915,8 @@ var i4n = function r(i, o, l, h, g, d) { else if (/image/i.test(r.type)) { var o = new FileReader(); o.onload = function(l) { - var h = l.target.result; - i(h, { name: "".concat(r.name.replace(/\.[^.]+$/, "")), isShadow: !0, width: "60%", height: "auto" }); + var u = l.target.result; + i(u, { name: "".concat(r.name.replace(/\.[^.]+$/, "")), isShadow: !0, width: "60%", height: "auto" }); }, o.readAsDataURL(r); } else i("images/demo-dog.png"); @@ -24707,199 +24929,202 @@ var i4n = function r(i, o, l, h, g, d) { return i; }, changeString2Pinyin: function(r) { return r; -} }, a4n = C_t({ externals: {}, openai: { apiKey: "", ignoreError: !1 }, engine: { global: { classicBr: !1, urlProcessor: CM.urlProcessor, htmlWhiteList: "" }, syntax: { link: { target: "", rel: "" }, autoLink: { target: "", rel: "", enableShortLink: !0, shortLinkLength: 20 }, list: { listNested: !1, indentSpace: 2 }, table: { enableChart: !1 }, inlineCode: { theme: "red" }, codeBlock: { theme: "dark", wrap: !0, lineNumber: !0, copyCode: !0, editCode: !0, changeLang: !0, customRenderer: {}, mermaid: { svg2img: !1 }, indentedCodeBlock: !0 }, emoji: { useUnicode: !0 }, fontEmphasis: { allowWhitespace: !1 }, strikethrough: { needWhitespace: !1 }, mathBlock: { engine: "MathJax", src: "", plugins: !0 }, inlineMath: { engine: "MathJax", src: "" }, toc: { allowMultiToc: !1 }, header: { anchorStyle: "default" } } }, editor: { id: "code", name: "code", autoSave2Textarea: !1, theme: "default", height: "100%", defaultModel: "edit&preview", convertWhenPaste: !0, codemirror: { autofocus: !0 }, writingStyle: "normal", keepDocumentScrollAfterInit: !1 }, toolbars: { theme: "dark", showToolbar: !0, toolbar: ["bold", "italic", "strikethrough", "|", "color", "header", "ruby", "|", "list", "panel", "detail", { insert: ["image", "audio", "video", "link", "hr", "br", "code", "formula", "toc", "table", "line-table", "bar-table", "pdf", "word"] }, "graph", "settings"], toolbarRight: [], sidebar: [], bubble: ["bold", "italic", "underline", "strikethrough", "sub", "sup", "quote", "|", "size", "color"], float: ["h1", "h2", "h3", "|", "checklist", "quote", "table", "code"], toc: !1, shortcutKey: {}, config: { formula: { showLatexLive: !0, templateConfig: !1 } } }, drawioIframeUrl: "", fileUpload: CM.fileUpload, fileTypeLimitMap: { video: "video/*", audio: "audio/*", image: "image/*", word: ".doc,.docx", pdf: ".pdf", file: "*" }, callback: { afterChange: CM.afterChange, afterInit: CM.afterInit, beforeImageMounted: CM.beforeImageMounted, onClickPreview: CM.onClickPreview, onCopyCode: CM.onCopyCode, changeString2Pinyin: CM.changeString2Pinyin }, previewer: { dom: !1, className: "cherry-markdown", enablePreviewerBubble: !0, lazyLoadImg: { loadingImgPath: "", maxNumPerTime: 2, noLoadImgNum: 5, autoLoadImgNum: 5, maxTryTimesPerSrc: 2, beforeLoadOneImgCallback: function(r) { +} }, m4n = __t({ externals: {}, openai: { apiKey: "", ignoreError: !1 }, engine: { global: { classicBr: !1, urlProcessor: TM.urlProcessor, htmlWhiteList: "", flowSessionContext: !0 }, syntax: { link: { target: "", rel: "" }, autoLink: { target: "", rel: "", enableShortLink: !0, shortLinkLength: 20 }, list: { listNested: !1, indentSpace: 2 }, table: { enableChart: !1 }, inlineCode: { theme: "red" }, codeBlock: { theme: "dark", wrap: !0, lineNumber: !0, copyCode: !0, editCode: !0, changeLang: !0, selfClosing: !0, customRenderer: {}, mermaid: { svg2img: !1 }, indentedCodeBlock: !0 }, emoji: { useUnicode: !0 }, fontEmphasis: { allowWhitespace: !1 }, strikethrough: { needWhitespace: !1 }, mathBlock: { engine: "MathJax", src: "", plugins: !0 }, inlineMath: { engine: "MathJax", src: "" }, toc: { allowMultiToc: !1 }, header: { anchorStyle: "default" } } }, editor: { id: "code", name: "code", autoSave2Textarea: !1, theme: "default", height: "100%", defaultModel: "edit&preview", convertWhenPaste: !0, codemirror: { autofocus: !0 }, writingStyle: "normal", keepDocumentScrollAfterInit: !1 }, toolbars: { theme: "dark", showToolbar: !0, toolbar: ["bold", "italic", "strikethrough", "|", "color", "header", "ruby", "|", "list", "panel", "detail", { insert: ["image", "audio", "video", "link", "hr", "br", "code", "formula", "toc", "table", "line-table", "bar-table", "pdf", "word"] }, "graph", "settings"], toolbarRight: [], sidebar: [], bubble: ["bold", "italic", "underline", "strikethrough", "sub", "sup", "quote", "|", "size", "color"], float: ["h1", "h2", "h3", "|", "checklist", "quote", "table", "code"], toc: !1, shortcutKey: {}, config: { formula: { showLatexLive: !0, templateConfig: !1 } } }, drawioIframeUrl: "", fileUpload: TM.fileUpload, fileTypeLimitMap: { video: "video/*", audio: "audio/*", image: "image/*", word: ".doc,.docx", pdf: ".pdf", file: "*" }, callback: { afterChange: TM.afterChange, afterInit: TM.afterInit, beforeImageMounted: TM.beforeImageMounted, onClickPreview: TM.onClickPreview, onCopyCode: TM.onCopyCode, changeString2Pinyin: TM.changeString2Pinyin }, previewer: { dom: !1, className: "cherry-markdown", enablePreviewerBubble: !0, lazyLoadImg: { loadingImgPath: "", maxNumPerTime: 2, noLoadImgNum: 5, autoLoadImgNum: 5, maxTryTimesPerSrc: 2, beforeLoadOneImgCallback: function(r) { return !0; }, failLoadOneImgCallback: function(r) { }, afterLoadOneImgCallback: function(r) { }, afterLoadAllImgCallback: function() { -} } }, theme: [{ className: "default", label: "默认" }, { className: "dark", label: "暗黑" }, { className: "light", label: "明亮" }, { className: "green", label: "清新" }, { className: "red", label: "热情" }, { className: "violet", label: "淡雅" }, { className: "blue", label: "清幽" }], isPreviewOnly: !1, autoScrollByCursor: !0, forceAppend: !0, locale: "zh_CN", autoScrollByHashAfterInit: !1 }), o4n = { zh_CN: { bold: "加粗", code: "代码", graph: "画图", h1: "一级标题", h2: "二级标题", h3: "三级标题", h4: "四级标题", h5: "五级标题", header: "标题", insert: "插入", italic: "斜体", list: "列表", quickTable: "表格", quote: "引用", size: "大小", color: "文字颜色&背景", strikethrough: "删除线", sub: "下标", sup: "上标", togglePreview: "预览", fullScreen: "全屏", image: "图片", audio: "音频", video: "视频", link: "超链接", hr: "分隔线", br: "换行", toc: "目录", pdf: "pdf", word: "word", table: "表格", "line-table": "折线表格", "bar-table": "柱状表格", formula: "公式", insertFormula: "公式", insertFlow: "流程图", insertSeq: "时序图", insertState: "状态图", insertClass: "类图", insertPie: "饼图", insertGantt: "甘特图", checklist: "清单", ol: "有序列表", ul: "无序列表", undo: "撤销", redo: "恢复", previewClose: "关闭预览", codeTheme: "代码主题", switchModel: "模式切换", switchPreview: "预览", switchEdit: "返回编辑", classicBr: "经典换行", normalBr: "常规换行", settings: "设置", mobilePreview: "移动端预览", copy: "复制内容", export: "导出", underline: "下划线", pinyin: "拼音", file: "文件", pastePlain: "粘贴为纯文本格式", pasteMarkdown: "粘贴为markdown格式", hide: "隐藏(ctrl+0)", exportToPdf: "导出PDF", exportScreenshot: "导出长图", exportMarkdownFile: "导出markdown", exportHTMLFile: "导出html", theme: "主题", panel: "面板", detail: "手风琴", "H1 Heading": "H1 一级标题", "H2 Heading": "H2 二级标题", "H3 Heading": "H3 三级标题", complement: "续写", summary: "总结", justify: "对齐方式", justifyLeft: "左对齐", justifyCenter: "居中", justifyRight: "右对齐", wordCount: "字数" }, en_US: { bold: "Bold", code: "Code", graph: "Graph", h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", h4: "Heading 4", h5: "Heading 5", header: "Header", insert: "Insert", italic: "Italic", list: "List", quickTable: "Quick Table", quote: "Quote", size: "Size", color: "Text Color & Background", strikethrough: "Strikethrough", sub: "Sub", sup: "Sup", togglePreview: "Toggle Preview", fullScreen: "Full Screen", image: "Image", audio: "Audio", video: "Video", link: "Link", hr: "Horizontal Rule", br: "New Line", toc: "Table Of Content", pdf: "PDF", word: "Word", table: "Table", "line-table": "Line Table", "bar-table": "Bar Table", formula: "Formula", insertFormula: "Insert Formula", insertFlow: "Insert Flow", insertSeq: "Insert Seq", insertState: "Insert State", insertClass: "Insert Class", insertPie: "Insert Pie", insertGantt: "Insert Gantt", checklist: "Checklist", ol: "Ordered List", ul: "Unordered List", undo: "Undo", redo: "Redo", previewClose: "Preview Close", codeTheme: "Code Theme", switchModel: "Switch Model", switchPreview: "Switch Preview", switchEdit: "Switch Edit", classicBr: "Classic New Line", normalBr: "Normal New Line", settings: "Settings", mobilePreview: "Mobile Preview", copy: "Copy", export: "Export", underline: "Underline", pinyin: "Pinyin", pastePlain: "Paste as Plain Text", pasteMarkdown: "Paste as Markdown", hide: "Hide (ctrl+0)", exportToPdf: "Export to PDF", exportScreenshot: "Screenshot", exportMarkdownFile: "Export Markdown File", exportHTMLFile: "Export preview HTML File", "H1 Heading": "H1 Heading", "H2 Heading": "H1 Heading", "H3 Heading": "H1 Heading", complement: "Complement", summary: "Summary", justify: "justify", justifyLeft: "Left", justifyCenter: "Center", justifyRight: "Right", wordCount: "Word Count" } }; -function Ukt(r) { +} } }, theme: [{ className: "default", label: "默认" }, { className: "dark", label: "暗黑" }, { className: "light", label: "明亮" }, { className: "green", label: "清新" }, { className: "red", label: "热情" }, { className: "violet", label: "淡雅" }, { className: "blue", label: "清幽" }], themeNameSpace: "cherry", isPreviewOnly: !1, autoScrollByCursor: !0, forceAppend: !0, locale: "zh_CN", autoScrollByHashAfterInit: !1 }), b4n = { zh_CN: { bold: "加粗", code: "代码", graph: "画图", h1: "一级标题", h2: "二级标题", h3: "三级标题", h4: "四级标题", h5: "五级标题", header: "标题", insert: "插入", italic: "斜体", list: "列表", quickTable: "表格", quote: "引用", size: "大小", color: "文字颜色&背景", strikethrough: "删除线", sub: "下标", sup: "上标", togglePreview: "预览", fullScreen: "全屏", image: "图片", audio: "音频", video: "视频", link: "超链接", hr: "分隔线", br: "换行", toc: "目录", pdf: "pdf", word: "word", table: "表格", "line-table": "折线表格", "bar-table": "柱状表格", formula: "公式", insertFormula: "公式", insertFlow: "流程图", insertSeq: "时序图", insertState: "状态图", insertClass: "类图", insertPie: "饼图", insertGantt: "甘特图", checklist: "清单", ol: "有序列表", ul: "无序列表", undo: "撤销", redo: "恢复", previewClose: "关闭预览", codeTheme: "代码主题", switchModel: "模式切换", switchPreview: "预览", switchEdit: "返回编辑", classicBr: "经典换行", normalBr: "常规换行", settings: "设置", mobilePreview: "移动端预览", copy: "复制内容", export: "导出", underline: "下划线", pinyin: "拼音", file: "文件", pastePlain: "粘贴为纯文本格式", pasteMarkdown: "粘贴为markdown格式", hide: "隐藏(ctrl+0)", exportToPdf: "导出PDF", exportScreenshot: "导出长图", exportMarkdownFile: "导出markdown", exportHTMLFile: "导出html", theme: "主题", panel: "面板", detail: "手风琴", "H1 Heading": "H1 一级标题", "H2 Heading": "H2 二级标题", "H3 Heading": "H3 三级标题", complement: "续写", summary: "总结", justify: "对齐方式", justifyLeft: "左对齐", justifyCenter: "居中", justifyRight: "右对齐", publish: "发布", wordCount: "字数" }, en_US: { bold: "Bold", code: "Code", graph: "Graph", h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", h4: "Heading 4", h5: "Heading 5", header: "Header", insert: "Insert", italic: "Italic", list: "List", quickTable: "Quick Table", quote: "Quote", size: "Size", color: "Text Color & Background", strikethrough: "Strikethrough", sub: "Sub", sup: "Sup", togglePreview: "Toggle Preview", fullScreen: "Full Screen", image: "Image", audio: "Audio", video: "Video", link: "Link", hr: "Horizontal Rule", br: "New Line", toc: "Table Of Content", pdf: "PDF", word: "Word", table: "Table", "line-table": "Line Table", "bar-table": "Bar Table", formula: "Formula", insertFormula: "Insert Formula", insertFlow: "Insert Flow", insertSeq: "Insert Seq", insertState: "Insert State", insertClass: "Insert Class", insertPie: "Insert Pie", insertGantt: "Insert Gantt", checklist: "Checklist", ol: "Ordered List", ul: "Unordered List", undo: "Undo", redo: "Redo", previewClose: "Preview Close", codeTheme: "Code Theme", switchModel: "Switch Model", switchPreview: "Switch Preview", switchEdit: "Switch Edit", classicBr: "Classic New Line", normalBr: "Normal New Line", settings: "Settings", mobilePreview: "Mobile Preview", copy: "Copy", export: "Export", underline: "Underline", pinyin: "Pinyin", pastePlain: "Paste as Plain Text", pasteMarkdown: "Paste as Markdown", hide: "Hide (ctrl+0)", exportToPdf: "Export to PDF", exportScreenshot: "Screenshot", exportMarkdownFile: "Export Markdown File", exportHTMLFile: "Export preview HTML File", "H1 Heading": "H1 Heading", "H2 Heading": "H1 Heading", "H3 Heading": "H1 Heading", complement: "Complement", summary: "Summary", justify: "justify", justifyLeft: "Left", justifyCenter: "Center", justifyRight: "Right", publish: "Publish", wordCount: "Word Count" } }; +function jkt(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -function Hkt(r, i, o) { - var l, h = {}; - return xa(l = yu(r)).call(l, function(g) { - Bl(i).call(i, g) !== -1 && (Zc(o) === "object" ? typeof o[g] == "string" ? Zc(r[g]) === o[g] && (h[g] = r[g]) : r[g] instanceof o[g] && (h[g] = r[g]) : typeof o == "string" && Zc(r[g]) === o && (h[g] = r[g])); - }), h; +function Kkt(r, i, o) { + var l, u = {}; + return fa(l = iu(r)).call(l, function(g) { + Bl(i).call(i, g) !== -1 && (Xc(o) === "object" ? typeof o[g] == "string" ? Xc(r[g]) === o[g] && (u[g] = r[g]) : r[g] instanceof o[g] && (u[g] = r[g]) : typeof o == "string" && Xc(r[g]) === o && (u[g] = r[g])); + }), u; } -var s4n = { HOOKS_TYPE_LIST: Y$ }, $kt = []; -Y3() || xa($kt).call($kt, function(r) { +var y4n = { HOOKS_TYPE_LIST: J$ }, zkt = []; +nv() || fa(zkt).call(zkt, function(r) { }); var oZ = function() { function r() { - Gr(this, r); + Xr(this, r); } - return Vr(r, null, [{ key: "usePlugin", value: function(i) { + return Gr(r, null, [{ key: "usePlugin", value: function(i) { var o; if (this === r) throw new Error("`usePlugin` is not allowed to called through CherryStatic class."); if (this.initialized) throw new Error("The function `usePlugin` should be called before Cherry is instantiated."); if (i.$cherry$mounted !== !0) { - for (var l = arguments.length, h = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++) - h[g - 1] = arguments[g]; - i.install.apply(i, tt(o = [this.config.defaults]).call(o, h)), i.$cherry$mounted = !0; + for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++) + u[g - 1] = arguments[g]; + i.install.apply(i, tt(o = [this.config.defaults]).call(o, u)), i.$cherry$mounted = !0; } } }]), r; }(); -function jkt(r, i) { - var o = yu(r); - if (U1) { - var l = U1(r); - i && (l = o1(l).call(l, function(h) { - return Od(r, h).enumerable; +function Xkt(r, i) { + var o = iu(r); + if (s1) { + var l = s1(r); + i && (l = Ph(l).call(l, function(u) { + return $1(r, u).enumerable; })), o.push.apply(o, l); } return o; } -function c4n(r) { +function w4n(r) { var i = function() { - if (typeof Reflect > "u" || !st || st.sham) + if (typeof Reflect > "u" || !ot || ot.sham) return !1; if (typeof Proxy == "function") return !0; try { - return Boolean.prototype.valueOf.call(st(Boolean, [], function() { + return Boolean.prototype.valueOf.call(ot(Boolean, [], function() { })), !0; } catch { return !1; } }(); return function() { - var o, l = bn(r); + var o, l = mn(r); if (i) { - var h = bn(this).constructor; - o = st(l, arguments, h); + var u = mn(this).constructor; + o = ot(l, arguments, u); } else o = l.apply(this, arguments); - return Wi(this, o); + return Gi(this, o); }; } -gi(oZ, "createSyntaxHook", function(r, i, o) { - var l, h = i === Y$.PAR ? Id : jA, g = Hkt(o, ["beforeMakeHtml", "makeHtml", "afterMakeHtml", "rule", "test"], "function"), d = { needCache: o.needCache, defaultCache: o.defaultCache }; +Ai(oZ, "createSyntaxHook", function(r, i, o) { + var l, u = i === J$.PAR ? Dd : jA, g = Kkt(o, ["beforeMakeHtml", "makeHtml", "afterMakeHtml", "rule", "test"], "function"), d = { needCache: o.needCache, defaultCache: o.defaultCache }; return l = function(b) { - aa(k, b); - var y = Ukt(k); + ta(k, b); + var y = jkt(k); function k() { var C, B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - return Gr(this, k), (C = i === Y$.PAR ? y.call(this, { needCache: !!d.needCache, defaultCache: d.defaultCache }) : y.call(this)).config = B.config, Wi(C); + return Xr(this, k), (C = i === J$.PAR ? y.call(this, { needCache: !!d.needCache, defaultCache: d.defaultCache }) : y.call(this)).config = B.config, Gi(C); } - return Vr(k, [{ key: "beforeMakeHtml", value: function() { + return Gr(k, [{ key: "beforeMakeHtml", value: function() { for (var C, B, L = arguments.length, M = new Array(L), P = 0; P < L; P++) M[P] = arguments[P]; - return g.beforeMakeHtml ? g.beforeMakeHtml.apply(this, M) : (C = W7(bn(k.prototype), "beforeMakeHtml", this)).call.apply(C, tt(B = [this]).call(B, M)); + return g.beforeMakeHtml ? g.beforeMakeHtml.apply(this, M) : (C = q7(mn(k.prototype), "beforeMakeHtml", this)).call.apply(C, tt(B = [this]).call(B, M)); } }, { key: "makeHtml", value: function() { for (var C, B, L = arguments.length, M = new Array(L), P = 0; P < L; P++) M[P] = arguments[P]; - return g.makeHtml ? g.makeHtml.apply(this, M) : (C = W7(bn(k.prototype), "makeHtml", this)).call.apply(C, tt(B = [this]).call(B, M)); + return g.makeHtml ? g.makeHtml.apply(this, M) : (C = q7(mn(k.prototype), "makeHtml", this)).call.apply(C, tt(B = [this]).call(B, M)); } }, { key: "afterMakeHtml", value: function() { for (var C, B, L = arguments.length, M = new Array(L), P = 0; P < L; P++) M[P] = arguments[P]; - return g.afterMakeHtml ? g.afterMakeHtml.apply(this, M) : (C = W7(bn(k.prototype), "afterMakeHtml", this)).call.apply(C, tt(B = [this]).call(B, M)); + return g.afterMakeHtml ? g.afterMakeHtml.apply(this, M) : (C = q7(mn(k.prototype), "afterMakeHtml", this)).call.apply(C, tt(B = [this]).call(B, M)); } }, { key: "test", value: function() { for (var C, B, L = arguments.length, M = new Array(L), P = 0; P < L; P++) M[P] = arguments[P]; - return g.test ? g.test.apply(this, M) : (C = W7(bn(k.prototype), "test", this)).call.apply(C, tt(B = [this]).call(B, M)); + return g.test ? g.test.apply(this, M) : (C = q7(mn(k.prototype), "test", this)).call.apply(C, tt(B = [this]).call(B, M)); } }, { key: "rule", value: function() { for (var C, B, L = arguments.length, M = new Array(L), P = 0; P < L; P++) M[P] = arguments[P]; - return g.rule ? g.rule.apply(this, M) : (C = W7(bn(k.prototype), "rule", this)).call.apply(C, tt(B = [this]).call(B, M)); + return g.rule ? g.rule.apply(this, M) : (C = q7(mn(k.prototype), "rule", this)).call.apply(C, tt(B = [this]).call(B, M)); } }]), k; - }(h), gi(l, "HOOK_NAME", r), l; -}), gi(oZ, "createMenuHook", function(r, i) { - var o = Hkt(i, ["subMenuConfig", "onClick", "shortcutKeys", "iconName"], { subMenuConfig: Array, onClick: "function", shortcutKeys: Array, iconName: "string" }); + }(u), Ai(l, "HOOK_NAME", r), l; +}), Ai(oZ, "createMenuHook", function(r, i) { + var o = Kkt(i, ["subMenuConfig", "onClick", "shortcutKeys", "iconName"], { subMenuConfig: Array, onClick: "function", shortcutKeys: Array, iconName: "string" }); return function(l) { - aa(g, Os); - var h = Ukt(g); + ta(g, _s); + var u = jkt(g); function g(d) { var b; - return Gr(this, g), b = h.call(this, d), o.iconName || (b.noIcon = !0), b.setName(r, o.iconName), b.subMenuConfig = o.subMenuConfig || [], b; + return Xr(this, g), b = u.call(this, d), o.iconName || (b.noIcon = !0), b.setName(r, o.iconName), b.subMenuConfig = o.subMenuConfig || [], b; } - return Vr(g, [{ key: "onClick", value: function() { + return Gr(g, [{ key: "onClick", value: function() { for (var d, b, y = arguments.length, k = new Array(y), C = 0; C < y; C++) k[C] = arguments[C]; - return o.onClick ? o.onClick.apply(this, k) : (d = W7(bn(g.prototype), "onClick", this)).call.apply(d, tt(b = [this]).call(b, k)); + return o.onClick ? o.onClick.apply(this, k) : (d = q7(mn(g.prototype), "onClick", this)).call.apply(d, tt(b = [this]).call(b, k)); } }, { key: "shortcutKeys", get: function() { return o.shortcutKeys ? o.shortcutKeys : []; } }]), g; }(); -}), gi(oZ, "constants", s4n), gi(oZ, "VERSION", "0.8.34"); -var vAe = function(r) { - aa(o, oZ); - var i = c4n(o); +}), Ai(oZ, "constants", y4n), Ai(oZ, "VERSION", "0.8.39"); +var CAe = function(r) { + ta(o, oZ); + var i = w4n(o); function o(l) { - var h, g; - Gr(this, o), g = i.call(this), o.initialized = !0; - var d, b = C_t(o.config.defaults); - return g.defaultToolbar = b.toolbars.toolbar, SN(l, Object), g.options = HOe({}, b, l, Mpn), g.locale = o4n[g.options.locale], typeof g.options.engine.global.urlProcessor == "function" && (g.options.engine.global.urlProcessor = (d = g.options.engine.global.urlProcessor, function(y, k) { - if (SB.isInnerLink(y)) { - var C = d(SB.get(y), k); - return SB.replace(y, C); + var u, g; + Xr(this, o), g = i.call(this), o.initialized = !0; + var d, b = __t(o.config.defaults); + return g.defaultToolbar = b.toolbars.toolbar, LN(l, Object), g.options = zOe({}, b, l, Npn), g.locale = b4n[g.options.locale], typeof g.options.engine.global.urlProcessor == "function" && (g.options.engine.global.urlProcessor = (d = g.options.engine.global.urlProcessor, function(y, k) { + if (LB.isInnerLink(y)) { + var C = d(LB.get(y), k); + return LB.replace(y, C); } return d(y, k); - })), g.status = { toolbar: "show", previewer: "show", editor: "show" }, (g.options.isPreviewOnly || g.options.editor.defaultModel === "previewOnly") && (g.options.toolbars.showToolbar = !1, g.options.editor.defaultModel = "previewOnly", g.status.editor = "hide", g.status.toolbar = "hide"), g.instanceId = tt(h = "cherry-".concat((/* @__PURE__ */ new Date()).getTime())).call(h, Math.random()), g.options.instanceId = g.instanceId, g.engine = new Tbn(g.options, rs(g)), g.init(), g; + })), g.status = { toolbar: "show", previewer: "show", editor: "show" }, (g.options.isPreviewOnly || g.options.editor.defaultModel === "previewOnly") && (g.options.toolbars.showToolbar = !1, g.options.editor.defaultModel = "previewOnly", g.status.editor = "hide", g.status.toolbar = "hide"), g.instanceId = tt(u = "cherry-".concat((/* @__PURE__ */ new Date()).getTime())).call(u, Math.random()), g.options.instanceId = g.instanceId, g.engine = new Sbn(g.options, es(g)), g.init(), g; } - return Vr(o, [{ key: "init", value: function() { - var l, h = this, g = this.options.id ? document.getElementById(this.options.id) : this.options.el; + return Gr(o, [{ key: "init", value: function() { + var l, u = this, g = this.options.id ? document.getElementById(this.options.id) : this.options.el; if (!g) { if (!this.options.forceAppend) return !1; - (g = document.createElement("div")).id = this.options.id || "cherry-markdown", document.body.appendChild(g); + this.noMountEl = !0, (g = document.createElement("div")).id = this.options.id || "cherry-markdown", document.body.appendChild(g); } g.style.height || (g.style.height = this.options.editor.height), this.cherryDom = g; var d = this.createWrapper(), b = this.createEditor(), y = this.createPreviewer(); - this.options.toolbars.showToolbar !== !1 && this.options.toolbars.toolbar !== !1 || (d.classList.add("cherry--no-toolbar"), this.options.toolbars.toolbar = this.defaultToolbar), SN(this.options.toolbars.toolbar, Array), this.createToolbar(), this.createToolbarRight(); + this.options.toolbars.showToolbar !== !1 && this.options.toolbars.toolbar !== !1 || (d.classList.add("cherry--no-toolbar"), this.options.toolbars.toolbar = this.options.toolbars.toolbar ? this.options.toolbars.toolbar : this.defaultToolbar), LN(this.options.toolbars.toolbar, Array), this.createToolbar(), this.createToolbarRight(); var k, C = document.createDocumentFragment(); - C.appendChild(this.toolbar.options.dom), C.appendChild(b.options.editorDom), this.createSidebar(C), this.options.previewer.dom || C.appendChild(y.options.previewerDom), C.appendChild(y.options.virtualDragLineDom), C.appendChild(y.options.editorMaskDom), C.appendChild(y.options.previewerMaskDom), d.appendChild(C), g.appendChild(d), b.init(y), this.createBubble(), this.createFloatMenu(), y.init(b), y.registerAfterUpdate(Ga(l = this.engine.mounted).call(l, this.engine)), this.initText(b.editor), Ds.on(this.instanceId, Ds.Events.toolbarHide, function() { - h.status.toolbar = "hide"; - }), Ds.on(this.instanceId, Ds.Events.toolbarShow, function() { - h.status.toolbar = "show"; - }), Ds.on(this.instanceId, Ds.Events.previewerClose, function() { - h.status.previewer = "hide"; - }), Ds.on(this.instanceId, Ds.Events.previewerOpen, function() { - h.status.previewer = "show"; - }), Ds.on(this.instanceId, Ds.Events.editorClose, function() { - h.status.editor = "hide", h.previewer.highlightLine(0); - }), Ds.on(this.instanceId, Ds.Events.editorOpen, function() { - h.status.editor = "show"; - }), this.switchModel(this.options.editor.defaultModel), this.options.autoScrollByHashAfterInit && ag(Ga(k = this.scrollByHash).call(k, this)), this.editText(null, this.editor.editor), this.options.toolbars.toc !== !1 && this.createToc(); + C.appendChild(this.toolbar.options.dom), C.appendChild(b.options.editorDom), this.options.previewer.dom || C.appendChild(y.options.previewerDom), C.appendChild(y.options.virtualDragLineDom), C.appendChild(y.options.editorMaskDom), C.appendChild(y.options.previewerMaskDom), d.appendChild(C), this.wrapperDom = d, this.createSidebar(), g.appendChild(d), b.init(y), this.createBubble(), this.createFloatMenu(), y.init(b), y.registerAfterUpdate(za(l = this.engine.mounted).call(l, this.engine)), this.initText(b.editor), Os.on(this.instanceId, Os.Events.toolbarHide, function() { + u.status.toolbar = "hide"; + }), Os.on(this.instanceId, Os.Events.toolbarShow, function() { + u.status.toolbar = "show"; + }), Os.on(this.instanceId, Os.Events.previewerClose, function() { + u.status.previewer = "hide"; + }), Os.on(this.instanceId, Os.Events.previewerOpen, function() { + u.status.previewer = "show"; + }), Os.on(this.instanceId, Os.Events.editorClose, function() { + u.status.editor = "hide", u.previewer.highlightLine(0); + }), Os.on(this.instanceId, Os.Events.editorOpen, function() { + u.status.editor = "show"; + }), this.switchModel(this.options.editor.defaultModel, this.options.toolbars.showToolbar), this.options.autoScrollByHashAfterInit && ag(za(k = this.scrollByHash).call(k, this)), this.editText(null, this.editor.editor), this.options.toolbars.toc !== !1 && this.createToc(); + } }, { key: "destroy", value: function() { + this.noMountEl ? this.cherryDom.remove() : this.wrapperDom.remove(); } }, { key: "createToc", value: function() { - var l, h; - this.toc = new T3n({ $cherry: this, updateLocationHash: (l = this.options.toolbars.toc.updateLocationHash) === null || l === void 0 || l, defaultModel: (h = this.options.toolbars.toc.defaultModel) !== null && h !== void 0 ? h : "pure" }); + var l, u; + this.toc = new Q3n({ $cherry: this, updateLocationHash: (l = this.options.toolbars.toc.updateLocationHash) === null || l === void 0 || l, defaultModel: (u = this.options.toolbars.toc.defaultModel) !== null && u !== void 0 ? u : "pure" }); } }, { key: "scrollByHash", value: function() { if (location.hash) try { - var l = location.hash, h = document.getElementById(l.replace("#", "")); - h && this.previewer.getDomContainer().contains(h) && (location.hash = "", location.hash = l); + var l = location.hash, u = document.getElementById(l.replace("#", "")); + u && this.previewer.getDomContainer().contains(u) && (location.hash = "", location.hash = l); } catch { } } }, { key: "switchModel", value: function() { + var l = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1]; switch (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "edit&preview") { case "edit&preview": - this.previewer && (this.previewer.editOnly(!0), this.previewer.recoverPreviewer()), this.toolbar && this.toolbar.showToolbar(), this.wrapperDom.classList.remove("cherry--no-toolbar"); + this.previewer && (this.previewer.editOnly(!0), this.previewer.recoverPreviewer()), this.toolbar && l && this.toolbar.showToolbar(), l ? this.wrapperDom.classList.remove("cherry--no-toolbar") : this.wrapperDom.classList.add("cherry--no-toolbar"); break; case "editOnly": - this.previewer.isPreviewerHidden() || this.previewer.editOnly(!0), this.toolbar && this.toolbar.showToolbar(), this.wrapperDom.classList.remove("cherry--no-toolbar"); + this.previewer.isPreviewerHidden() || this.previewer.editOnly(!0), this.toolbar && l && this.toolbar.showToolbar(), l ? this.wrapperDom.classList.remove("cherry--no-toolbar") : this.wrapperDom.classList.add("cherry--no-toolbar"); break; case "previewOnly": this.previewer.previewOnly(), this.toolbar && this.toolbar.previewOnly(), this.wrapperDom.classList.add("cherry--no-toolbar"); @@ -24920,32 +25145,32 @@ var vAe = function(r) { } }, { key: "getPreviewer", value: function() { return this.previewer; } }, { key: "getToc", value: function() { - var l = this.getHtml(), h = []; + var l = this.getHtml(), u = []; return l.replace(/(.+?)<\/h[0-6]>/g, function(g, d, b, y) { - return h.push({ level: +d, id: b, text: y.replace(//, "") }), g; - }), h; + return u.push({ level: +d, id: b, text: y.replace(//, "") }), g; + }), u; } }, { key: "setValue", value: function(l) { - var h = arguments.length > 1 && arguments[1] !== void 0 && arguments[1]; - if (this.editor.storeDocumentScroll(), h === !1) + var u = arguments.length > 1 && arguments[1] !== void 0 && arguments[1]; + if (this.editor.storeDocumentScroll(), u === !1) return this.editor.editor.setValue(l); var g = this.editor.editor, d = this.getValue(), b = function(k, C, B) { - for (var L = Lde(C, B), M = k, P = k, X = 0; X < L.length; X++) { + for (var L = Fde(C, B), M = k, P = k, X = 0; X < L.length; X++) { var W = L[X]; if (P <= 0) return M; var N = W[0], z = W[1].length; switch (N) { - case Lde.EQUAL: + case Fde.EQUAL: if (P <= z) return M; P -= z; break; - case Lde.DELETE: + case Fde.DELETE: if (P <= z) return M - z + P; P -= z, M -= z; break; - case Lde.INSERT: + case Fde.INSERT: M += z; } } @@ -24953,147 +25178,166 @@ var vAe = function(r) { }(g.getDoc().indexFromPos(g.getCursor()), d, l); g.setValue(l); var y = g.getDoc().posFromIndex(b); - g.setCursor(y); + g.setCursor(y), this.editor.dealSpecialWords(); } }, { key: "insert", value: function(l) { - var h = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], d = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3]; - g && this.editor.editor.setSelection({ line: g[0], ch: g[1] }, { line: g[0], ch: g[1] }), this.editor.editor.replaceSelection(l, h ? "around" : "end"), d && this.editor.editor.focus(); + var u = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], d = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3]; + g && this.editor.editor.setSelection({ line: g[0], ch: g[1] }, { line: g[0], ch: g[1] }), this.editor.editor.replaceSelection(l, u ? "around" : "end"), d && this.editor.editor.focus(); } }, { key: "insertValue", value: function(l) { - var h = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], d = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3]; - return this.insert(l, h, g, d); + var u = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], d = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3]; + return this.insert(l, u, g, d); } }, { key: "refreshPreviewer", value: function() { try { - var l = this.getValue(), h = this.engine.makeHtml(l); - this.previewer.refresh(h); + var l = this.getValue(), u = this.engine.makeHtml(l); + this.previewer.refresh(u); } catch (g) { - throw new dAe(g); + throw new pAe(g); } } }, { key: "setMarkdown", value: function(l) { - var h = arguments.length > 1 && arguments[1] !== void 0 && arguments[1]; - return this.setValue(l, h); + var u = arguments.length > 1 && arguments[1] !== void 0 && arguments[1]; + return this.setValue(l, u); } }, { key: "createWrapper", value: function() { - var l = this.options.toolbars.theme === "dark" ? "dark" : "", h = this.options.engine.syntax.inlineCode.theme, g = this.options.engine.syntax.codeBlock.theme; + var l = this.options.toolbars.theme === "dark" ? "dark" : "", u = this.options.engine.syntax.inlineCode.theme, g = this.options.engine.syntax.codeBlock.theme; g === "dark" ? g = "tomorrow-night" : g === "light" && (g = "solarized-light"); - var d = nu("div", ["cherry", "clearfix", mFe(!0)].join(" "), { "data-toolbarTheme": l, "data-inlineCodeTheme": h, "data-codeBlockTheme": g }); + var d = jl("div", ["cherry", "clearfix", wFe(!0, this.options.themeNameSpace)].join(" "), { "data-toolbarTheme": l, "data-inlineCodeTheme": u, "data-codeBlockTheme": g }); return this.wrapperDom = d, d; } }, { key: "createToolbar", value: function() { - var l = nu("div", "cherry-toolbar"); - return this.toolbarContainer = l, this.toolbar = new zee({ dom: l, $cherry: this, buttonConfig: this.options.toolbars.toolbar, customMenu: this.options.toolbars.customMenu, shortcutKey: this.options.toolbars.shortcutKey }), this.toolbar; + if (!this.toolbarContainer) { + var l = jl("div", "cherry-toolbar"); + this.toolbarContainer = l; + } + return this.toolbar = new Vee({ dom: this.toolbarContainer, $cherry: this, buttonConfig: this.options.toolbars.toolbar, customMenu: this.options.toolbars.customMenu, shortcutKey: this.options.toolbars.shortcutKey }), this.toolbar; + } }, { key: "resetToolbar", value: function(l, u) { + var g; + return (!!/(toolbar|toolbarRight|sidebar|bubble|float)/.test(l) && l) !== !1 && (this.toolbarContainer && (this.toolbarContainer.innerHTML = ""), this.toolbarFloatContainer && (this.toolbarFloatContainer.innerHTML = ""), this.toolbarBubbleContainer && (this.toolbarBubbleContainer.innerHTML = ""), this.sidebarDom && (this.sidebarDom.innerHTML = ""), fa(g = this.cherryDom.querySelectorAll(".cherry-dropdown")).call(g, function(d) { + d.remove(); + }), this.options.toolbars[l] = u, this.createToolbar(), this.createToolbarRight(), this.createBubble(), this.createFloatMenu(), this.createSidebar(), !0); } }, { key: "createToolbarRight", value: function() { - return this.toolbarRight = new C3n({ dom: this.toolbarContainer, $cherry: this, buttonConfig: this.options.toolbars.toolbarRight, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.toolbarRight), this.toolbarRight; - } }, { key: "createSidebar", value: function(l) { + return this.toolbarRight = new N3n({ dom: this.toolbarContainer, $cherry: this, buttonConfig: this.options.toolbars.toolbarRight, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.toolbarRight), this.toolbarRight; + } }, { key: "createSidebar", value: function() { if (this.options.toolbars.sidebar) { - SN(this.options.toolbars.sidebar, Array); - var h = this.options.toolbars.theme === "dark" ? "dark" : "", g = nu("div", "cherry-sidebar ".concat(h)); - this.sidebar = new B3n({ dom: g, $cherry: this, buttonConfig: this.options.toolbars.sidebar, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.sidebar), l.appendChild(this.sidebar.options.dom); + LN(this.options.toolbars.sidebar, Array); + var l = !1; + if (!this.sidebarDom) { + l = !0; + var u = this.options.toolbars.theme === "dark" ? "dark" : "", g = jl("div", "cherry-sidebar ".concat(u)); + this.sidebarDom = g; + } + this.sidebar = new R3n({ dom: this.sidebarDom, $cherry: this, buttonConfig: this.options.toolbars.sidebar, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.sidebar), l === !0 && this.wrapperDom.appendChild(this.sidebarDom); } } }, { key: "createFloatMenu", value: function() { if (this.options.toolbars.float) { - var l = nu("div", "cherry-floatmenu"); - SN(this.options.toolbars.float, Array), this.floatMenu = new k3n({ dom: l, $cherry: this, buttonConfig: this.options.toolbars.float, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.floatMenu); + if (!this.toolbarFloatContainer) { + var l = jl("div", "cherry-floatmenu"); + this.toolbarFloatContainer = l; + } + LN(this.options.toolbars.float, Array), this.floatMenu = new D3n({ dom: this.toolbarFloatContainer, $cherry: this, buttonConfig: this.options.toolbars.float, customMenu: this.options.toolbars.customMenu }), this.toolbar.collectMenuInfo(this.floatMenu); } } }, { key: "createBubble", value: function() { if (this.options.toolbars.bubble) { - var l = nu("div", "cherry-bubble"); - SN(this.options.toolbars.bubble, Array), this.bubble = new h_t({ dom: l, $cherry: this, buttonConfig: this.options.toolbars.bubble, customMenu: this.options.toolbars.customMenu, engine: this.engine }), this.toolbar.collectMenuInfo(this.bubble); + if (!this.toolbarBubbleContainer) { + var l = jl("div", "cherry-bubble"); + this.toolbarBubbleContainer = l; + } + LN(this.options.toolbars.bubble, Array), this.bubble = new g_t({ dom: this.toolbarBubbleContainer, $cherry: this, buttonConfig: this.options.toolbars.bubble, customMenu: this.options.toolbars.customMenu, engine: this.engine }), this.toolbar.collectMenuInfo(this.bubble); } } }, { key: "createEditor", value: function() { - var l, h, g, d, b = nu("textarea", "", { id: (l = this.options.editor.id) !== null && l !== void 0 ? l : "code", name: (h = this.options.editor.name) !== null && h !== void 0 ? h : "code" }); + var l, u, g, d, b = jl("textarea", "", { id: (l = this.options.editor.id) !== null && l !== void 0 ? l : "code", name: (u = this.options.editor.name) !== null && u !== void 0 ? u : "code" }); b.textContent = this.options.value; - var y = nu("div", "cherry-editor"); - return y.appendChild(b), this.editor = new wpn(function(k) { + var y = jl("div", "cherry-editor"); + return y.appendChild(b), this.editor = new Tpn(function(k) { for (var C = 1; C < arguments.length; C++) { var B, L, M = arguments[C] != null ? arguments[C] : {}; - C % 2 ? xa(B = jkt(Object(M), !0)).call(B, function(P) { - gi(k, P, M[P]); - }) : Fd ? S6(k, Fd(M)) : xa(L = jkt(Object(M))).call(L, function(P) { - ey(k, P, Od(M, P)); + C % 2 ? fa(B = Xkt(Object(M), !0)).call(B, function(P) { + Ai(k, P, M[P]); + }) : H1 ? r4(k, H1(M)) : fa(L = Xkt(Object(M))).call(L, function(P) { + Ob(k, P, $1(M, P)); }); } return k; - }({ $cherry: this, editorDom: y, wrapperDom: this.wrapperDom, value: this.options.value, onKeydown: Ga(g = this.fireShortcutKey).call(g, this), onChange: Ga(d = this.editText).call(d, this), toolbars: this.options.toolbars, fileUpload: this.options.fileUpload, autoScrollByCursor: this.options.autoScrollByCursor }, this.options.editor)), this.editor; + }({ $cherry: this, editorDom: y, wrapperDom: this.wrapperDom, value: this.options.value, onKeydown: za(g = this.fireShortcutKey).call(g, this), onChange: za(d = this.editText).call(d, this), toolbars: this.options.toolbars, fileUpload: this.options.fileUpload, autoScrollByCursor: this.options.autoScrollByCursor }, this.options.editor)), this.editor; } }, { key: "createPreviewer", value: function() { - var l, h = (this.options.engine.syntax.header && this.options.engine.syntax.header.anchorStyle || "default") === "autonumber" ? " head-num" : "", g = this.options.previewer, d = g.className, b = g.dom, y = g.enablePreviewerBubble, k = ["cherry-previewer cherry-markdown", d || "", h, mFe(!0)].join(" "); - b ? (l = b).className += " ".concat(k) : l = nu("div", k); - var C = nu("div", "cherry-drag"), B = nu("div", "cherry-editor-mask"), L = nu("div", "cherry-previewer-mask"); - return this.previewer = new hwn({ $cherry: this, virtualDragLineDom: C, editorMaskDom: B, previewerMaskDom: L, previewerDom: l, value: this.options.value, isPreviewOnly: this.options.isPreviewOnly, enablePreviewerBubble: y, lazyLoadImg: this.options.previewer.lazyLoadImg }), this.previewer; + var l, u = (this.options.engine.syntax.header && this.options.engine.syntax.header.anchorStyle || "default") === "autonumber" ? " head-num" : "", g = this.options.previewer, d = g.className, b = g.dom, y = g.enablePreviewerBubble, k = ["cherry-previewer cherry-markdown", d || "", u, wFe(!0, this.options.themeNameSpace)].join(" "); + b ? (l = b).className += " ".concat(k) : l = jl("div", k); + var C = jl("div", "cherry-drag"), B = jl("div", "cherry-editor-mask"), L = jl("div", "cherry-previewer-mask"); + return this.previewer = new gwn({ $cherry: this, virtualDragLineDom: C, editorMaskDom: B, previewerMaskDom: L, previewerDom: l, value: this.options.value, isPreviewOnly: this.options.isPreviewOnly, enablePreviewerBubble: y, lazyLoadImg: this.options.previewer.lazyLoadImg }), this.previewer; } }, { key: "initText", value: function(l) { try { - var h = l.getValue(), g = this.engine.makeHtml(h); - this.previewer.update(g), this.options.callback.afterInit && this.options.callback.afterInit(h, g); + var u = l.getValue(), g = this.engine.makeHtml(u); + this.previewer.update(g), this.options.callback.afterInit && this.options.callback.afterInit(u, g); } catch (d) { - throw new dAe(d); + throw new pAe(d); } - } }, { key: "editText", value: function(l, h) { + } }, { key: "editText", value: function(l, u) { var g = this; try { this.timer && (clearTimeout(this.timer), this.timer = null), this.timer = ag(function() { - var d = h.getValue(), b = g.engine.makeHtml(d); - g.previewer.update(b), g.options.callback.afterChange && g.options.callback.afterChange(d, b), h.scrollIntoView(null), g.editor.restoreDocumentScroll(); + var d = u.getValue(), b = g.engine.makeHtml(d); + g.previewer.update(b), g.options.callback.afterChange && g.options.callback.afterChange(d, b), u.scrollIntoView(null), g.editor.restoreDocumentScroll(); }, 50); } catch (d) { - throw new dAe(d); + throw new pAe(d); } } }, { key: "onChange", value: function(l) { - this.editor.editor.on("change", function(h) { - l({ markdown: h.getValue() }); + this.editor.editor.on("change", function(u) { + l({ markdown: u.getValue() }); }); } }, { key: "fireShortcutKey", value: function(l) { - var h = this.editor.editor.getCursor(), g = this.editor.editor.getLine(h.line); - if (!l.shiftKey && l.key === "Tab" && xEt.test(g) && (h.ch === 0 || h.ch === g.length || h.ch === g.length + 1)) { - l.preventDefault(), this.editor.editor.setSelection({ line: h.line, ch: 0 }, { line: h.line, ch: g.length }), this.editor.editor.replaceSelection(" ".concat(g), "around"); + var u = this.editor.editor.getCursor(), g = this.editor.editor.getLine(u.line); + if (!l.shiftKey && l.key === "Tab" && EEt.test(g) && (u.ch === 0 || u.ch === g.length || u.ch === g.length + 1)) { + l.preventDefault(), this.editor.editor.setSelection({ line: u.line, ch: 0 }, { line: u.line, ch: g.length }), this.editor.editor.replaceSelection(" ".concat(g), "around"); var d = this.editor.editor.getCursor(); this.editor.editor.setSelection(d, d); } this.toolbar.matchShortcutKey(l) && (l.preventDefault(), this.toolbar.fireShortcutKey(l)); } }, { key: "export", value: function() { - var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pdf", h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; - this.previewer.export(l, h); + var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pdf", u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; + this.previewer.export(l, u); } }, { key: "setTheme", value: function() { - TEt(this, arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "default"); + _Et(this, arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "default"); } }, { key: "setWritingStyle", value: function(l) { this.editor.setWritingStyle(l); } }]), o; }(); -gi(vAe, "initialized", !1), gi(vAe, "config", { defaults: a4n }), window && (window.Cherry = vAe); -var MN = vAe; -function Kkt(r, i) { - var o = yu(r); - if (U1) { - var l = U1(r); - i && (l = o1(l).call(l, function(h) { - return Od(r, h).enumerable; +Ai(CAe, "initialized", !1), Ai(CAe, "config", { defaults: m4n }), window && (window.Cherry = CAe); +var IN = CAe; +function Gkt(r, i) { + var o = iu(r); + if (s1) { + var l = s1(r); + i && (l = Ph(l).call(l, function(u) { + return $1(r, u).enumerable; })), o.push.apply(o, l); } return o; } -function zkt(r) { +function Vkt(r) { for (var i = 1; i < arguments.length; i++) { - var o, l, h = arguments[i] != null ? arguments[i] : {}; - i % 2 ? xa(o = Kkt(Object(h), !0)).call(o, function(g) { - gi(r, g, h[g]); - }) : Fd ? S6(r, Fd(h)) : xa(l = Kkt(Object(h))).call(l, function(g) { - ey(r, g, Od(h, g)); + var o, l, u = arguments[i] != null ? arguments[i] : {}; + i % 2 ? fa(o = Gkt(Object(u), !0)).call(o, function(g) { + Ai(r, g, u[g]); + }) : H1 ? r4(r, H1(u)) : fa(l = Gkt(Object(u))).call(l, function(g) { + Ob(r, g, $1(u, g)); }); } return r; } -var Xkt = { theme: "default", altFontFamily: "sans-serif", fontFamily: "sans-serif", themeCSS: ".label foreignObject { font-size: 90%; overflow: visible; } .label { font-family: sans-serif; }", flowchart: { useMaxWidth: !1 }, sequence: { useMaxWidth: !1 }, startOnLoad: !1, logLevel: 5 }, T_t = function() { +var Wkt = { theme: "default", altFontFamily: "sans-serif", fontFamily: "sans-serif", themeCSS: ".label foreignObject { font-size: 90%; overflow: visible; } .label { font-family: sans-serif; }", flowchart: { useMaxWidth: !1 }, sequence: { useMaxWidth: !1 }, startOnLoad: !1, logLevel: 5 }, S_t = function() { function r() { var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - Gr(this, r), gi(this, "mermaidAPIRefs", null), gi(this, "options", Xkt), gi(this, "dom", null), gi(this, "mermaidCanvas", null); + Xr(this, r), Ai(this, "mermaidAPIRefs", null), Ai(this, "options", Wkt), Ai(this, "dom", null), Ai(this, "mermaidCanvas", null); var o = i.mermaid, l = i.mermaidAPI; if (!(l || window.mermaidAPI || o && o.mermaidAPI || window.mermaid && window.mermaid.mermaidAPI)) throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found."); - this.options = zkt(zkt({}, Xkt), i || {}), this.mermaidAPIRefs = l || window.mermaidAPI || o.mermaidAPI || window.mermaid.mermaidAPI, delete this.options.mermaid, delete this.options.mermaidAPI, this.mermaidAPIRefs.initialize(this.options); + this.options = Vkt(Vkt({}, Wkt), i || {}), this.mermaidAPIRefs = l || window.mermaidAPI || o.mermaidAPI || window.mermaid.mermaidAPI, delete this.options.mermaid, delete this.options.mermaidAPI, this.mermaidAPIRefs.initialize(this.options); } - return Vr(r, [{ key: "mountMermaidCanvas", value: function(i) { + return Gr(r, [{ key: "mountMermaidCanvas", value: function(i) { this.mermaidCanvas && document.body.contains(this.mermaidCanvas) || (this.mermaidCanvas = document.createElement("div"), this.mermaidCanvas.style = "width:1024px;opacity:0;position:fixed;top:100%;", (i.$cherry.wrapperDom || document.body).appendChild(this.mermaidCanvas)); } }, { key: "convertMermaidSvgToImg", value: function(i, o) { - var l, h = new DOMParser(), g = function(L) { + var l, u = new DOMParser(), g = function(L) { return L.replace(" 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = o; + var u, g, d, b = this, y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = o; k || (k = Math.round(1e8 * Math.random())), this.mountMermaidCanvas(l); - var C = tt(h = "mermaid-".concat(k, "-")).call(h, (/* @__PURE__ */ new Date()).getTime()); + var C = tt(u = "mermaid-".concat(k, "-")).call(u, (/* @__PURE__ */ new Date()).getTime()); this.svg2img = (g = y == null ? void 0 : y.svg2img) !== null && g !== void 0 && g; try { this.mermaidAPIRefs.render(C, i, function(B) { @@ -25122,60 +25366,60 @@ var Xkt = { theme: "default", altFontFamily: "sans-serif", fontFamily: "sans-ser } return d; } }], [{ key: "install", value: function(i) { - for (var o = arguments.length, l = new Array(o > 1 ? o - 1 : 0), h = 1; h < o; h++) - l[h - 1] = arguments[h]; - HOe(i, { engine: { syntax: { codeBlock: { customRenderer: { mermaid: T0e(r, l) } } } } }); + for (var o = arguments.length, l = new Array(o > 1 ? o - 1 : 0), u = 1; u < o; u++) + l[u - 1] = arguments[u]; + zOe(i, { engine: { syntax: { codeBlock: { customRenderer: { mermaid: _0e(r, l) } } } } }); } }]), r; }(); -gi(T_t, "TYPE", "figure"); -var l4n = function() { - var r, i, o, l, h, g, d, b, y, k, C, B, L, M, P, X, W, N, z, oe, V, ae, ie, de, pe, ce, we, me, ee, ve, Y, Te, fe, ue, $e, qe, ct, ot, Pe, Le, lt, Ut, Lt, Dn, yt, on, Xt, Vt, Wt, wt, Sn, it, ii, Ze, Jn, Ht = 32768, Mr = 0, xr = 1, ci = 2, tr = 8192, _r = 2 * Ht, Xn = 3, Cr = 258, tn = 8192, ai = tn, Yr = 8192, Qi = Yr - 1, fa = Ht - 1, xo = 0, Cc = 4096, Fi = Cr + Xn + 1, Na = Ht - Fi, vr = 1, Lr = 15, ti = 7, Er = 29, oa = 256, On = 256, Wo = oa + 1 + Er, ar = 30, Ja = 19, Io = 16, ta = 17, Ba = 18, Ao = 2 * Wo + 1, yo = Fb((13 + Xn - 1) / Xn), Fo = null; - function Zo() { +Ai(S_t, "TYPE", "figure"); +var v4n = function() { + var r, i, o, l, u, g, d, b, y, k, C, B, L, M, P, X, W, N, z, oe, V, ae, re, fe, pe, ce, we, me, ee, ve, Y, Te, de, ue, $e, qe, ct, st, Pe, Le, lt, Ut, Lt, Dn, yt, on, Xt, Vt, Wt, wt, Sn, it, ii, Ze, Jn, Ht = 32768, Mr = 0, xr = 1, ci = 2, tr = 8192, _r = 2 * Ht, Xn = 3, Cr = 258, tn = 8192, ai = tn, Yr = 8192, Qi = Yr - 1, da = Ht - 1, xo = 0, Cc = 4096, Fi = Cr + Xn + 1, Na = Ht - Fi, vr = 1, Lr = 15, ti = 7, Er = 29, oa = 256, On = 256, qo = oa + 1 + Er, ar = 30, Ja = 19, Io = 16, na = 17, Ba = 18, Ao = 2 * qo + 1, yo = Fb((13 + Xn - 1) / Xn), Fo = null; + function ts() { this.fc = 0, this.dl = 0; } function hs() { this.dyn_tree = null, this.static_tree = null, this.extra_bits = null, this.extra_base = 0, this.elems = 0, this.max_length = 0, this.max_code = 0; } - function da(Nn, Fr, Kr, Dr) { + function Aa(Nn, Fr, Kr, Dr) { this.good_length = Nn, this.max_lazy = Fr, this.nice_length = Kr, this.max_chain = Dr; } - function ef() { + function tf() { this.next = null, this.len = 0, this.ptr = new Array(tr), this.off = 0; } - var tc = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], au = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], _a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], nc = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], pf = [new da(0, 0, 0, 0), new da(4, 4, 8, 4), new da(4, 5, 16, 8), new da(4, 6, 32, 32), new da(4, 4, 16, 16), new da(8, 16, 32, 32), new da(8, 16, 128, 128), new da(8, 32, 128, 256), new da(32, 128, 258, 1024), new da(32, 258, 258, 4096)]; - function jl(Nn) { + var tc = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], ou = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], _a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], nc = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], mf = [new Aa(0, 0, 0, 0), new Aa(4, 4, 8, 4), new Aa(4, 5, 16, 8), new Aa(4, 6, 32, 32), new Aa(4, 4, 16, 16), new Aa(8, 16, 32, 32), new Aa(8, 16, 128, 128), new Aa(8, 32, 128, 256), new Aa(32, 128, 258, 1024), new Aa(32, 258, 258, 4096)]; + function Kl(Nn) { Nn.next = r, r = Nn; } - function ou(Nn) { + function su(Nn) { return C[Ht + Nn]; } - function Rh(Nn, Fr) { + function Uh(Nn, Fr) { return C[Ht + Nn] = Fr; } function el(Nn) { - Fo[g + h++] = Nn, g + h == tr && function() { - if (h != 0) { + Fo[g + u++] = Nn, g + u == tr && function() { + if (u != 0) { var Fr, Kr; - for (r != null ? (Dr = r, r = r.next) : Dr = new ef(), Dr.next = null, Dr.len = Dr.off = 0, Fr = Dr, i == null ? i = o = Fr : o = o.next = Fr, Fr.len = h - g, Kr = 0; Kr < Fr.len; Kr++) + for (r != null ? (Dr = r, r = r.next) : Dr = new tf(), Dr.next = null, Dr.len = Dr.off = 0, Fr = Dr, i == null ? i = o = Fr : o = o.next = Fr, Fr.len = u - g, Kr = 0; Kr < Fr.len; Kr++) Fr.ptr[Kr] = Fo[g + Kr]; - h = g = 0; + u = g = 0; } var Dr; }(); } function _l(Nn) { - Nn &= 65535, g + h < tr - 2 ? (Fo[g + h++] = 255 & Nn, Fo[g + h++] = Nn >>> 8) : (el(255 & Nn), el(Nn >>> 8)); + Nn &= 65535, g + u < tr - 2 ? (Fo[g + u++] = 255 & Nn, Fo[g + u++] = Nn >>> 8) : (el(255 & Nn), el(Nn >>> 8)); } function Oc() { - P = (P << yo ^ 255 & b[V + Xn - 1]) & Qi, X = ou(P), C[V & fa] = X, Rh(P, V); + P = (P << yo ^ 255 & b[V + Xn - 1]) & Qi, X = su(P), C[V & da] = X, Uh(P, V); } - function Kl(Nn, Fr) { + function zl(Nn, Fr) { rc(Fr[Nn].fc, Fr[Nn].dl); } function ks(Nn) { return 255 & (Nn < 256 ? Lt[Nn] : Lt[256 + (Nn >> 7)]); } - function su(Nn, Fr, Kr) { + function cu(Nn, Fr, Kr) { return Nn[Fr].fc < Nn[Kr].fc || Nn[Fr].fc == Nn[Kr].fc && lt[Fr] <= lt[Kr]; } function Ns(Nn, Fr, Kr) { @@ -25184,51 +25428,51 @@ var l4n = function() { Nn[Fr + Dr] = 255 & Ze.charCodeAt(Jn++); return Dr; } - function _s(Nn) { - var Fr, Kr, Dr = pe, Ki = V, sa = oe, Ha = V > Na ? V - Na : xo, es = V + Cr, to = b[Ki + sa - 1], Nc = b[Ki + sa]; + function Ss(Nn) { + var Fr, Kr, Dr = pe, Ki = V, sa = oe, Ha = V > Na ? V - Na : xo, ns = V + Cr, to = b[Ki + sa - 1], Nc = b[Ki + sa]; oe >= me && (Dr >>= 2); do if (b[(Fr = Nn) + sa] == Nc && b[Fr + sa - 1] == to && b[Fr] == b[Ki] && b[++Fr] == b[Ki + 1]) { Ki += 2, Fr++; do ; - while (b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && Ki < es); - if (Kr = Cr - (es - Ki), Ki = es - Cr, Kr > sa) { + while (b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && b[++Ki] == b[++Fr] && Ki < ns); + if (Kr = Cr - (ns - Ki), Ki = ns - Cr, Kr > sa) { if (ae = Nn, sa = Kr, Kr >= Cr) break; to = b[Ki + sa - 1], Nc = b[Ki + sa]; } } - while ((Nn = C[Nn & fa]) > Ha && --Dr != 0); + while ((Nn = C[Nn & da]) > Ha && --Dr != 0); return sa; } function Ci() { - var Nn, Fr, Kr = _r - de - V; + var Nn, Fr, Kr = _r - fe - V; if (Kr == -1) Kr--; else if (V >= Ht + Na) { for (Nn = 0; Nn < Ht; Nn++) b[Nn] = b[Nn + Ht]; for (ae -= Ht, V -= Ht, M -= Ht, Nn = 0; Nn < Yr; Nn++) - Rh(Nn, (Fr = ou(Nn)) >= Ht ? Fr - Ht : xo); + Uh(Nn, (Fr = su(Nn)) >= Ht ? Fr - Ht : xo); for (Nn = 0; Nn < Ht; Nn++) Fr = C[Nn], C[Nn] = Fr >= Ht ? Fr - Ht : xo; Kr += Ht; } - ie || ((Nn = Ns(b, V + de, Kr)) <= 0 ? ie = !0 : de += Nn); + re || ((Nn = Ns(b, V + fe, Kr)) <= 0 ? re = !0 : fe += Nn); } - function Uh() { - ie || (B = 0, L = 0, function() { + function Hh() { + re || (B = 0, L = 0, function() { var Nn, Fr, Kr, Dr, Ki; if (Te[0].dl == 0) { - for (ue.dyn_tree = ee, ue.static_tree = Y, ue.extra_bits = tc, ue.extra_base = oa + 1, ue.elems = Wo, ue.max_length = Lr, ue.max_code = 0, $e.dyn_tree = ve, $e.static_tree = Te, $e.extra_bits = au, $e.extra_base = 0, $e.elems = ar, $e.max_length = Lr, $e.max_code = 0, qe.dyn_tree = fe, qe.static_tree = null, qe.extra_bits = _a, qe.extra_base = 0, qe.elems = Ja, qe.max_length = ti, qe.max_code = 0, Kr = 0, Dr = 0; Dr < Er - 1; Dr++) + for (ue.dyn_tree = ee, ue.static_tree = Y, ue.extra_bits = tc, ue.extra_base = oa + 1, ue.elems = qo, ue.max_length = Lr, ue.max_code = 0, $e.dyn_tree = ve, $e.static_tree = Te, $e.extra_bits = ou, $e.extra_base = 0, $e.elems = ar, $e.max_length = Lr, $e.max_code = 0, qe.dyn_tree = de, qe.static_tree = null, qe.extra_bits = _a, qe.extra_base = 0, qe.elems = Ja, qe.max_length = ti, qe.max_code = 0, Kr = 0, Dr = 0; Dr < Er - 1; Dr++) for (Dn[Dr] = Kr, Nn = 0; Nn < 1 << tc[Dr]; Nn++) Ut[Kr++] = Dr; for (Ut[Kr - 1] = Dr, Ki = 0, Dr = 0; Dr < 16; Dr++) - for (yt[Dr] = Ki, Nn = 0; Nn < 1 << au[Dr]; Nn++) + for (yt[Dr] = Ki, Nn = 0; Nn < 1 << ou[Dr]; Nn++) Lt[Ki++] = Dr; for (Ki >>= 7; Dr < ar; Dr++) - for (yt[Dr] = Ki << 7, Nn = 0; Nn < 1 << au[Dr] - 7; Nn++) + for (yt[Dr] = Ki << 7, Nn = 0; Nn < 1 << ou[Dr] - 7; Nn++) Lt[256 + Ki++] = Dr; for (Fr = 0; Fr <= Lr; Fr++) ct[Fr] = 0; @@ -25240,29 +25484,29 @@ var l4n = function() { Y[Nn++].dl = 7, ct[7]++; for (; Nn <= 287; ) Y[Nn++].dl = 8, ct[8]++; - for ($i(Y, Wo + 1), Nn = 0; Nn < ar; Nn++) - Te[Nn].dl = 5, Te[Nn].fc = uo(Nn, 5); + for ($i(Y, qo + 1), Nn = 0; Nn < ar; Nn++) + Te[Nn].dl = 5, Te[Nn].fc = ho(Nn, 5); $s(); } }(), function() { var Nn; for (Nn = 0; Nn < Yr; Nn++) C[Ht + Nn] = 0; - if (ce = pf[we].max_lazy, me = pf[we].good_length, pe = pf[we].max_chain, V = 0, M = 0, (de = Ns(b, 0, 2 * Ht)) <= 0) - return ie = !0, void (de = 0); - for (ie = !1; de < Fi && !ie; ) + if (ce = mf[we].max_lazy, me = mf[we].good_length, pe = mf[we].max_chain, V = 0, M = 0, (fe = Ns(b, 0, 2 * Ht)) <= 0) + return re = !0, void (fe = 0); + for (re = !1; fe < Fi && !re; ) Ci(); for (P = 0, Nn = 0; Nn < Xn - 1; Nn++) P = (P << yo ^ 255 & b[Nn]) & Qi; - }(), i = null, h = 0, g = 0, we <= 3 ? (oe = Xn - 1, z = 0) : (z = Xn - 1, N = 0), d = !1); + }(), i = null, u = 0, g = 0, we <= 3 ? (oe = Xn - 1, z = 0) : (z = Xn - 1, N = 0), d = !1); } - function cu(Nn, Fr, Kr) { + function lu(Nn, Fr, Kr) { var Dr; - return l || (Uh(), l = !0, de != 0) ? (Dr = Hh(Nn, Fr, Kr)) == Kr ? Kr : d ? Dr : (we <= 3 ? function() { - for (; de != 0 && i == null; ) { + return l || (Hh(), l = !0, fe != 0) ? (Dr = $h(Nn, Fr, Kr)) == Kr ? Kr : d ? Dr : (we <= 3 ? function() { + for (; fe != 0 && i == null; ) { var Ki; - if (Oc(), X != xo && V - X <= Na && (z = _s(X)) > de && (z = de), z >= Xn) - if (Ki = Gt(V - ae, z - Xn), de -= z, z <= ce) { + if (Oc(), X != xo && V - X <= Na && (z = Ss(X)) > fe && (z = fe), z >= Xn) + if (Ki = Gt(V - ae, z - Xn), fe -= z, z <= ce) { z--; do V++, Oc(); @@ -25271,57 +25515,57 @@ var l4n = function() { } else V += z, z = 0, P = ((P = 255 & b[V]) << yo ^ 255 & b[V + 1]) & Qi; else - Ki = Gt(0, 255 & b[V]), de--, V++; - for (Ki && (wo(0), M = V); de < Fi && !ie; ) + Ki = Gt(0, 255 & b[V]), fe--, V++; + for (Ki && (wo(0), M = V); fe < Fi && !re; ) Ci(); } }() : function() { - for (; de != 0 && i == null; ) { - if (Oc(), oe = z, W = ae, z = Xn - 1, X != xo && oe < ce && V - X <= Na && ((z = _s(X)) > de && (z = de), z == Xn && V - ae > Cc && z--), oe >= Xn && z <= oe) { + for (; fe != 0 && i == null; ) { + if (Oc(), oe = z, W = ae, z = Xn - 1, X != xo && oe < ce && V - X <= Na && ((z = Ss(X)) > fe && (z = fe), z == Xn && V - ae > Cc && z--), oe >= Xn && z <= oe) { var Ki; - Ki = Gt(V - 1 - W, oe - Xn), de -= oe - 1, oe -= 2; + Ki = Gt(V - 1 - W, oe - Xn), fe -= oe - 1, oe -= 2; do V++, Oc(); while (--oe != 0); N = 0, z = Xn - 1, V++, Ki && (wo(0), M = V); } else - N != 0 ? (Gt(0, 255 & b[V - 1]) && (wo(0), M = V), V++, de--) : (N = 1, V++, de--); - for (; de < Fi && !ie; ) + N != 0 ? (Gt(0, 255 & b[V - 1]) && (wo(0), M = V), V++, fe--) : (N = 1, V++, fe--); + for (; fe < Fi && !re; ) Ci(); } - }(), de == 0 && (N != 0 && Gt(0, 255 & b[V - 1]), wo(1), d = !0), Dr + Hh(Nn, Dr + Fr, Kr - Dr)) : (d = !0, 0); + }(), fe == 0 && (N != 0 && Gt(0, 255 & b[V - 1]), wo(1), d = !0), Dr + $h(Nn, Dr + Fr, Kr - Dr)) : (d = !0, 0); } - function Hh(Nn, Fr, Kr) { + function $h(Nn, Fr, Kr) { var Dr, Ki, sa; for (Dr = 0; i != null && Dr < Kr; ) { for ((Ki = Kr - Dr) > i.len && (Ki = i.len), sa = 0; sa < Ki; sa++) Nn[Fr + Dr + sa] = i.ptr[i.off + sa]; var Ha; - i.off += Ki, i.len -= Ki, Dr += Ki, i.len == 0 && (Ha = i, i = i.next, jl(Ha)); + i.off += Ki, i.len -= Ki, Dr += Ki, i.len == 0 && (Ha = i, i = i.next, Kl(Ha)); } if (Dr == Kr) return Dr; - if (g < h) { - for ((Ki = Kr - Dr) > h - g && (Ki = h - g), sa = 0; sa < Ki; sa++) + if (g < u) { + for ((Ki = Kr - Dr) > u - g && (Ki = u - g), sa = 0; sa < Ki; sa++) Nn[Fr + Dr + sa] = Fo[g + sa]; - Dr += Ki, h == (g += Ki) && (h = g = 0); + Dr += Ki, u == (g += Ki) && (u = g = 0); } return Dr; } function $s() { var Nn; - for (Nn = 0; Nn < Wo; Nn++) + for (Nn = 0; Nn < qo; Nn++) ee[Nn].fc = 0; for (Nn = 0; Nn < ar; Nn++) ve[Nn].fc = 0; for (Nn = 0; Nn < Ja; Nn++) - fe[Nn].fc = 0; + de[Nn].fc = 0; ee[On].fc = 1, it = ii = 0, Xt = Vt = Wt = 0, wt = 0, Sn = 1; } function Xu(Nn, Fr) { - for (var Kr = ot[Fr], Dr = Fr << 1; Dr <= Pe && (Dr < Pe && su(Nn, ot[Dr + 1], ot[Dr]) && Dr++, !su(Nn, Kr, ot[Dr])); ) - ot[Fr] = ot[Dr], Fr = Dr, Dr <<= 1; - ot[Fr] = Kr; + for (var Kr = st[Fr], Dr = Fr << 1; Dr <= Pe && (Dr < Pe && cu(Nn, st[Dr + 1], st[Dr]) && Dr++, !cu(Nn, Kr, st[Dr])); ) + st[Fr] = st[Dr], Fr = Dr, Dr <<= 1; + st[Fr] = Kr; } function $i(Nn, Fr) { var Kr, Dr, Ki = new Array(Lr + 1), sa = 0; @@ -25329,128 +25573,128 @@ var l4n = function() { sa = sa + ct[Kr - 1] << 1, Ki[Kr] = sa; for (Dr = 0; Dr <= Fr; Dr++) { var Ha = Nn[Dr].dl; - Ha != 0 && (Nn[Dr].fc = uo(Ki[Ha]++, Ha)); + Ha != 0 && (Nn[Dr].fc = ho(Ki[Ha]++, Ha)); } } - function is(Nn) { - var Fr, Kr, Dr = Nn.dyn_tree, Ki = Nn.static_tree, sa = Nn.elems, Ha = -1, es = sa; + function as(Nn) { + var Fr, Kr, Dr = Nn.dyn_tree, Ki = Nn.static_tree, sa = Nn.elems, Ha = -1, ns = sa; for (Pe = 0, Le = Ao, Fr = 0; Fr < sa; Fr++) - Dr[Fr].fc != 0 ? (ot[++Pe] = Ha = Fr, lt[Fr] = 0) : Dr[Fr].dl = 0; + Dr[Fr].fc != 0 ? (st[++Pe] = Ha = Fr, lt[Fr] = 0) : Dr[Fr].dl = 0; for (; Pe < 2; ) { - var to = ot[++Pe] = Ha < 2 ? ++Ha : 0; + var to = st[++Pe] = Ha < 2 ? ++Ha : 0; Dr[to].fc = 1, lt[to] = 0, it--, Ki != null && (ii -= Ki[to].dl); } for (Nn.max_code = Ha, Fr = Pe >> 1; Fr >= 1; Fr--) Xu(Dr, Fr); do - Fr = ot[vr], ot[vr] = ot[Pe--], Xu(Dr, vr), Kr = ot[vr], ot[--Le] = Fr, ot[--Le] = Kr, Dr[es].fc = Dr[Fr].fc + Dr[Kr].fc, lt[Fr] > lt[Kr] + 1 ? lt[es] = lt[Fr] : lt[es] = lt[Kr] + 1, Dr[Fr].dl = Dr[Kr].dl = es, ot[vr] = es++, Xu(Dr, vr); + Fr = st[vr], st[vr] = st[Pe--], Xu(Dr, vr), Kr = st[vr], st[--Le] = Fr, st[--Le] = Kr, Dr[ns].fc = Dr[Fr].fc + Dr[Kr].fc, lt[Fr] > lt[Kr] + 1 ? lt[ns] = lt[Fr] : lt[ns] = lt[Kr] + 1, Dr[Fr].dl = Dr[Kr].dl = ns, st[vr] = ns++, Xu(Dr, vr); while (Pe >= 2); - ot[--Le] = ot[vr], function(Nc) { - var Gu, yl, k1, Tc, s1, wl, Qc = Nc.dyn_tree, ic = Nc.extra_bits, Rm = Nc.extra_base, mf = Nc.max_code, Vu = Nc.max_length, lg = Nc.static_tree, c1 = 0; + st[--Le] = st[vr], function(Nc) { + var Gu, wl, x1, Tc, c1, vl, Qc = Nc.dyn_tree, ic = Nc.extra_bits, Rm = Nc.extra_base, bf = Nc.max_code, Vu = Nc.max_length, lg = Nc.static_tree, l1 = 0; for (Tc = 0; Tc <= Lr; Tc++) ct[Tc] = 0; - for (Qc[ot[Le]].dl = 0, Gu = Le + 1; Gu < Ao; Gu++) - (Tc = Qc[Qc[yl = ot[Gu]].dl].dl + 1) > Vu && (Tc = Vu, c1++), Qc[yl].dl = Tc, yl > mf || (ct[Tc]++, s1 = 0, yl >= Rm && (s1 = ic[yl - Rm]), wl = Qc[yl].fc, it += wl * (Tc + s1), lg != null && (ii += wl * (lg[yl].dl + s1))); - if (c1 != 0) { + for (Qc[st[Le]].dl = 0, Gu = Le + 1; Gu < Ao; Gu++) + (Tc = Qc[Qc[wl = st[Gu]].dl].dl + 1) > Vu && (Tc = Vu, l1++), Qc[wl].dl = Tc, wl > bf || (ct[Tc]++, c1 = 0, wl >= Rm && (c1 = ic[wl - Rm]), vl = Qc[wl].fc, it += vl * (Tc + c1), lg != null && (ii += vl * (lg[wl].dl + c1))); + if (l1 != 0) { do { for (Tc = Vu - 1; ct[Tc] == 0; ) Tc--; - ct[Tc]--, ct[Tc + 1] += 2, ct[Vu]--, c1 -= 2; - } while (c1 > 0); + ct[Tc]--, ct[Tc + 1] += 2, ct[Vu]--, l1 -= 2; + } while (l1 > 0); for (Tc = Vu; Tc != 0; Tc--) - for (yl = ct[Tc]; yl != 0; ) - (k1 = ot[--Gu]) > mf || (Qc[k1].dl != Tc && (it += (Tc - Qc[k1].dl) * Qc[k1].fc, Qc[k1].fc = Tc), yl--); + for (wl = ct[Tc]; wl != 0; ) + (x1 = st[--Gu]) > bf || (Qc[x1].dl != Tc && (it += (Tc - Qc[x1].dl) * Qc[x1].fc, Qc[x1].fc = Tc), wl--); } }(Nn), $i(Dr, Ha); } function Zn(Nn, Fr) { - var Kr, Dr, Ki = -1, sa = Nn[0].dl, Ha = 0, es = 7, to = 4; - for (sa == 0 && (es = 138, to = 3), Nn[Fr + 1].dl = 65535, Kr = 0; Kr <= Fr; Kr++) - Dr = sa, sa = Nn[Kr + 1].dl, ++Ha < es && Dr == sa || (Ha < to ? fe[Dr].fc += Ha : Dr != 0 ? (Dr != Ki && fe[Dr].fc++, fe[Io].fc++) : Ha <= 10 ? fe[ta].fc++ : fe[Ba].fc++, Ha = 0, Ki = Dr, sa == 0 ? (es = 138, to = 3) : Dr == sa ? (es = 6, to = 3) : (es = 7, to = 4)); + var Kr, Dr, Ki = -1, sa = Nn[0].dl, Ha = 0, ns = 7, to = 4; + for (sa == 0 && (ns = 138, to = 3), Nn[Fr + 1].dl = 65535, Kr = 0; Kr <= Fr; Kr++) + Dr = sa, sa = Nn[Kr + 1].dl, ++Ha < ns && Dr == sa || (Ha < to ? de[Dr].fc += Ha : Dr != 0 ? (Dr != Ki && de[Dr].fc++, de[Io].fc++) : Ha <= 10 ? de[na].fc++ : de[Ba].fc++, Ha = 0, Ki = Dr, sa == 0 ? (ns = 138, to = 3) : Dr == sa ? (ns = 6, to = 3) : (ns = 7, to = 4)); } function wr(Nn, Fr) { - var Kr, Dr, Ki = -1, sa = Nn[0].dl, Ha = 0, es = 7, to = 4; - for (sa == 0 && (es = 138, to = 3), Kr = 0; Kr <= Fr; Kr++) - if (Dr = sa, sa = Nn[Kr + 1].dl, !(++Ha < es && Dr == sa)) { + var Kr, Dr, Ki = -1, sa = Nn[0].dl, Ha = 0, ns = 7, to = 4; + for (sa == 0 && (ns = 138, to = 3), Kr = 0; Kr <= Fr; Kr++) + if (Dr = sa, sa = Nn[Kr + 1].dl, !(++Ha < ns && Dr == sa)) { if (Ha < to) do - Kl(Dr, fe); + zl(Dr, de); while (--Ha != 0); else - Dr != 0 ? (Dr != Ki && (Kl(Dr, fe), Ha--), Kl(Io, fe), rc(Ha - 3, 2)) : Ha <= 10 ? (Kl(ta, fe), rc(Ha - 3, 3)) : (Kl(Ba, fe), rc(Ha - 11, 7)); - Ha = 0, Ki = Dr, sa == 0 ? (es = 138, to = 3) : Dr == sa ? (es = 6, to = 3) : (es = 7, to = 4); + Dr != 0 ? (Dr != Ki && (zl(Dr, de), Ha--), zl(Io, de), rc(Ha - 3, 2)) : Ha <= 10 ? (zl(na, de), rc(Ha - 3, 3)) : (zl(Ba, de), rc(Ha - 11, 7)); + Ha = 0, Ki = Dr, sa == 0 ? (ns = 138, to = 3) : Dr == sa ? (ns = 6, to = 3) : (ns = 7, to = 4); } } function wo(Nn) { var Fr, Kr, Dr, Ki, sa; - if (Ki = V - M, on[Wt] = wt, is(ue), is($e), Dr = function() { + if (Ki = V - M, on[Wt] = wt, as(ue), as($e), Dr = function() { var Ha; - for (Zn(ee, ue.max_code), Zn(ve, $e.max_code), is(qe), Ha = Ja - 1; Ha >= 3 && fe[nc[Ha]].dl == 0; Ha--) + for (Zn(ee, ue.max_code), Zn(ve, $e.max_code), as(qe), Ha = Ja - 1; Ha >= 3 && de[nc[Ha]].dl == 0; Ha--) ; return it += 3 * (Ha + 1) + 5 + 5 + 4, Ha; }(), (Kr = ii + 3 + 7 >> 3) <= (Fr = it + 3 + 7 >> 3) && (Fr = Kr), Ki + 4 <= Fr && M >= 0) - for (rc((Mr << 1) + Nn, 3), v1(), _l(Ki), _l(~Ki), sa = 0; sa < Ki; sa++) + for (rc((Mr << 1) + Nn, 3), k1(), _l(Ki), _l(~Ki), sa = 0; sa < Ki; sa++) el(b[M + sa]); else - Kr == Fr ? (rc((xr << 1) + Nn, 3), $h(Y, Te)) : (rc((ci << 1) + Nn, 3), function(Ha, es, to) { + Kr == Fr ? (rc((xr << 1) + Nn, 3), jh(Y, Te)) : (rc((ci << 1) + Nn, 3), function(Ha, ns, to) { var Nc; - for (rc(Ha - 257, 5), rc(es - 1, 5), rc(to - 4, 4), Nc = 0; Nc < to; Nc++) - rc(fe[nc[Nc]].dl, 3); - wr(ee, Ha - 1), wr(ve, es - 1); - }(ue.max_code + 1, $e.max_code + 1, Dr + 1), $h(ee, ve)); - $s(), Nn != 0 && v1(); + for (rc(Ha - 257, 5), rc(ns - 1, 5), rc(to - 4, 4), Nc = 0; Nc < to; Nc++) + rc(de[nc[Nc]].dl, 3); + wr(ee, Ha - 1), wr(ve, ns - 1); + }(ue.max_code + 1, $e.max_code + 1, Dr + 1), jh(ee, ve)); + $s(), Nn != 0 && k1(); } function Gt(Nn, Fr) { if (k[Xt++] = Fr, Nn == 0 ? ee[Fr].fc++ : (Nn--, ee[Ut[Fr] + oa + 1].fc++, ve[ks(Nn)].fc++, y[Vt++] = Nn, wt |= Sn), Sn <<= 1, !(7 & Xt) && (on[Wt++] = wt, wt = 0, Sn = 1), we > 2 && (4095 & Xt) == 0) { var Kr, Dr = 8 * Xt, Ki = V - M; for (Kr = 0; Kr < ar; Kr++) - Dr += ve[Kr].fc * (5 + au[Kr]); + Dr += ve[Kr].fc * (5 + ou[Kr]); if (Dr >>= 3, Vt < Fb(Xt / 2) && Dr < Fb(Ki / 2)) return !0; } return Xt == tn - 1 || Vt == ai; } - function $h(Nn, Fr) { - var Kr, Dr, Ki, sa, Ha = 0, es = 0, to = 0, Nc = 0; + function jh(Nn, Fr) { + var Kr, Dr, Ki, sa, Ha = 0, ns = 0, to = 0, Nc = 0; if (Xt != 0) do - !(7 & Ha) && (Nc = on[to++]), Dr = 255 & k[Ha++], 1 & Nc ? (Kl((Ki = Ut[Dr]) + oa + 1, Nn), (sa = tc[Ki]) != 0 && rc(Dr -= Dn[Ki], sa), Kl(Ki = ks(Kr = y[es++]), Fr), (sa = au[Ki]) != 0 && rc(Kr -= yt[Ki], sa)) : Kl(Dr, Nn), Nc >>= 1; + !(7 & Ha) && (Nc = on[to++]), Dr = 255 & k[Ha++], 1 & Nc ? (zl((Ki = Ut[Dr]) + oa + 1, Nn), (sa = tc[Ki]) != 0 && rc(Dr -= Dn[Ki], sa), zl(Ki = ks(Kr = y[ns++]), Fr), (sa = ou[Ki]) != 0 && rc(Kr -= yt[Ki], sa)) : zl(Dr, Nn), Nc >>= 1; while (Ha < Xt); - Kl(On, Nn); + zl(On, Nn); } var gn = 16; function rc(Nn, Fr) { L > gn - Fr ? (_l(B |= Nn << L), B = Nn >> gn - L, L += Fr - gn) : (B |= Nn << L, L += Fr); } - function uo(Nn, Fr) { + function ho(Nn, Fr) { var Kr = 0; do Kr |= 1 & Nn, Nn >>= 1, Kr <<= 1; while (--Fr > 0); return Kr >> 1; } - function v1() { + function k1() { L > 8 ? _l(B) : L > 0 && el(B), B = 0, L = 0; } return function(Nn, Fr) { var Kr, Dr; - Ze = Nn, Jn = 0, Fr === void 0 && (Fr = 6), function(es) { + Ze = Nn, Jn = 0, Fr === void 0 && (Fr = 6), function(ns) { var to; - if (es ? es < 1 ? es = 1 : es > 9 && (es = 9) : es = 6, we = es, l = !1, ie = !1, Fo == null) { + if (ns ? ns < 1 ? ns = 1 : ns > 9 && (ns = 9) : ns = 6, we = ns, l = !1, re = !1, Fo == null) { for (r = i = o = null, Fo = new Array(tr), b = new Array(_r), y = new Array(ai), k = new Array(32832), C = new Array(65536), ee = new Array(Ao), to = 0; to < Ao; to++) - ee[to] = new Zo(); + ee[to] = new ts(); for (ve = new Array(2 * ar + 1), to = 0; to < 2 * ar + 1; to++) - ve[to] = new Zo(); - for (Y = new Array(Wo + 2), to = 0; to < Wo + 2; to++) - Y[to] = new Zo(); + ve[to] = new ts(); + for (Y = new Array(qo + 2), to = 0; to < qo + 2; to++) + Y[to] = new ts(); for (Te = new Array(ar), to = 0; to < ar; to++) - Te[to] = new Zo(); - for (fe = new Array(2 * Ja + 1), to = 0; to < 2 * Ja + 1; to++) - fe[to] = new Zo(); - ue = new hs(), $e = new hs(), qe = new hs(), ct = new Array(Lr + 1), ot = new Array(2 * Wo + 1), lt = new Array(2 * Wo + 1), Ut = new Array(Cr - Xn + 1), Lt = new Array(512), Dn = new Array(Er), yt = new Array(ar), on = new Array(Fb(tn / 8)); + Te[to] = new ts(); + for (de = new Array(2 * Ja + 1), to = 0; to < 2 * Ja + 1; to++) + de[to] = new ts(); + ue = new hs(), $e = new hs(), qe = new hs(), ct = new Array(Lr + 1), st = new Array(2 * qo + 1), lt = new Array(2 * qo + 1), Ut = new Array(Cr - Xn + 1), Lt = new Array(512), Dn = new Array(Er), yt = new Array(ar), on = new Array(Fb(tn / 8)); } }(Fr); - for (var Ki = new Array(1024), sa = []; (Kr = cu(Ki, 0, Ki.length)) > 0; ) { + for (var Ki = new Array(1024), sa = []; (Kr = lu(Ki, 0, Ki.length)) > 0; ) { var Ha = new Array(Kr); for (Dr = 0; Dr < Kr; Dr++) Ha[Dr] = String.fromCharCode(Ki[Dr]); @@ -25458,74 +25702,74 @@ var l4n = function() { } return Ze = null, sa.join(""); }; -}(), u4n = l4n; -function Gkt(r, i) { - var o = yu(r); - if (U1) { - var l = U1(r); - i && (l = o1(l).call(l, function(h) { - return Od(r, h).enumerable; +}(), k4n = v4n; +function qkt(r, i) { + var o = iu(r); + if (s1) { + var l = s1(r); + i && (l = Ph(l).call(l, function(u) { + return $1(r, u).enumerable; })), o.push.apply(o, l); } return o; } -function Vkt(r) { +function Ykt(r) { for (var i = 1; i < arguments.length; i++) { - var o, l, h = arguments[i] != null ? arguments[i] : {}; - i % 2 ? xa(o = Gkt(Object(h), !0)).call(o, function(g) { - gi(r, g, h[g]); - }) : Fd ? S6(r, Fd(h)) : xa(l = Gkt(Object(h))).call(l, function(g) { - ey(r, g, Od(h, g)); + var o, l, u = arguments[i] != null ? arguments[i] : {}; + i % 2 ? fa(o = qkt(Object(u), !0)).call(o, function(g) { + Ai(r, g, u[g]); + }) : H1 ? r4(r, H1(u)) : fa(l = qkt(Object(u))).call(l, function(g) { + Ob(r, g, $1(u, g)); }); } return r; } -function CMe(r, i, o) { - var l = (3 & r) << 4 | i >> 4, h = (15 & i) << 2 | o >> 6, g = 63 & o, d = ""; - return d += Mde(63 & r >> 2), d += Mde(63 & l), d += Mde(63 & h), d += Mde(63 & g); +function BMe(r, i, o) { + var l = (3 & r) << 4 | i >> 4, u = (15 & i) << 2 | o >> 6, g = 63 & o, d = ""; + return d += Dde(63 & r >> 2), d += Dde(63 & l), d += Dde(63 & u), d += Dde(63 & g); } -function Mde(r) { +function Dde(r) { var i = r; return i < 10 ? String.fromCharCode(48 + i) : (i -= 10) < 26 ? String.fromCharCode(65 + i) : (i -= 26) < 26 ? String.fromCharCode(97 + i) : (i -= 26) === 0 ? "-" : i === 1 ? "_" : "?"; } -function h4n(r, i) { +function x4n(r, i) { var o, l = unescape(encodeURIComponent(r)); - return tt(o = "".concat(i, "/svg/")).call(o, function(h) { - for (var g = "", d = 0; d < h.length; d += 3) - d + 2 === h.length ? g += CMe(h.charCodeAt(d), h.charCodeAt(d + 1), 0) : d + 1 === h.length ? g += CMe(h.charCodeAt(d), 0, 0) : g += CMe(h.charCodeAt(d), h.charCodeAt(d + 1), h.charCodeAt(d + 2)); + return tt(o = "".concat(i, "/svg/")).call(o, function(u) { + for (var g = "", d = 0; d < u.length; d += 3) + d + 2 === u.length ? g += BMe(u.charCodeAt(d), u.charCodeAt(d + 1), 0) : d + 1 === u.length ? g += BMe(u.charCodeAt(d), 0, 0) : g += BMe(u.charCodeAt(d), u.charCodeAt(d + 1), u.charCodeAt(d + 2)); return g; - }(u4n(l, 9))); + }(k4n(l, 9))); } -var f4n = function() { +var C4n = function() { function r() { var i, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - Gr(this, r), this.baseUrl = (i = o.baseUrl) !== null && i !== void 0 ? i : "http://www.plantuml.com/plantuml"; + Xr(this, r), this.baseUrl = (i = o.baseUrl) !== null && i !== void 0 ? i : "http://www.plantuml.com/plantuml"; } - return Vr(r, [{ key: "render", value: function(i, o) { - var l, h, g = o; + return Gr(r, [{ key: "render", value: function(i, o) { + var l, u, g = o; g || (g = Math.round(1e8 * Math.random())); var d = tt(l = "plantuml-".concat(g, "-")).call(l, (/* @__PURE__ */ new Date()).getTime()); - return tt(h = ''); + return tt(u = ''); } }], [{ key: "install", value: function(i, o) { var l; - HOe(i, { engine: { syntax: { codeBlock: { customRenderer: { plantuml: new r(Vkt(Vkt({}, o), (l = i.engine.syntax.plantuml) !== null && l !== void 0 ? l : {})) } } } } }); + zOe(i, { engine: { syntax: { codeBlock: { customRenderer: { plantuml: new r(Ykt(Ykt({}, o), (l = i.engine.syntax.plantuml) !== null && l !== void 0 ? l : {})) } } } } }); } }]), r; }(); -function E_t(r) { +function L_t(r) { for (var i = [], o = 1; o < arguments.length; o++) i[o - 1] = arguments[o]; var l = Array.from(typeof r == "string" ? [r] : r); l[l.length - 1] = l[l.length - 1].replace(/\r?\n([\t ]*)$/, ""); - var h = l.reduce(function(b, y) { + var u = l.reduce(function(b, y) { var k = y.match(/\n([\t ]+|(?!\s).)/g); return k ? b.concat(k.map(function(C) { var B, L; return (L = (B = C.match(/[\t ]/g)) === null || B === void 0 ? void 0 : B.length) !== null && L !== void 0 ? L : 0; })) : b; }, []); - if (h.length) { + if (u.length) { var g = new RegExp(` -[ ]{` + Math.min.apply(Math, h) + "}", "g"); +[ ]{` + Math.min.apply(Math, u) + "}", "g"); l = l.map(function(b) { return b.replace(g, ` `); @@ -25543,54 +25787,54 @@ function E_t(r) { `)), d += B + l[y + 1]; }), d; } -var nv = ll(function(r, i) { +var tv = ul(function(r, i) { r.exports = function() { - var o = 1e3, l = 6e4, h = 36e5, g = "millisecond", d = "second", b = "minute", y = "hour", k = "day", C = "week", B = "month", L = "quarter", M = "year", P = "date", X = "Invalid Date", W = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, N = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, z = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(ve) { + var o = 1e3, l = 6e4, u = 36e5, g = "millisecond", d = "second", b = "minute", y = "hour", k = "day", C = "week", B = "month", L = "quarter", M = "year", P = "date", X = "Invalid Date", W = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, N = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, z = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(ve) { var Y = ["th", "st", "nd", "rd"], Te = ve % 100; return "[" + ve + (Y[(Te - 20) % 10] || Y[Te] || Y[0]) + "]"; } }, oe = function(ve, Y, Te) { - var fe = String(ve); - return !fe || fe.length >= Y ? ve : "" + Array(Y + 1 - fe.length).join(Te) + ve; + var de = String(ve); + return !de || de.length >= Y ? ve : "" + Array(Y + 1 - de.length).join(Te) + ve; }, V = { s: oe, z: function(ve) { - var Y = -ve.utcOffset(), Te = Math.abs(Y), fe = Math.floor(Te / 60), ue = Te % 60; - return (Y <= 0 ? "+" : "-") + oe(fe, 2, "0") + ":" + oe(ue, 2, "0"); + var Y = -ve.utcOffset(), Te = Math.abs(Y), de = Math.floor(Te / 60), ue = Te % 60; + return (Y <= 0 ? "+" : "-") + oe(de, 2, "0") + ":" + oe(ue, 2, "0"); }, m: function ve(Y, Te) { if (Y.date() < Te.date()) return -ve(Te, Y); - var fe = 12 * (Te.year() - Y.year()) + (Te.month() - Y.month()), ue = Y.clone().add(fe, B), $e = Te - ue < 0, qe = Y.clone().add(fe + ($e ? -1 : 1), B); - return +(-(fe + (Te - ue) / ($e ? ue - qe : qe - ue)) || 0); + var de = 12 * (Te.year() - Y.year()) + (Te.month() - Y.month()), ue = Y.clone().add(de, B), $e = Te - ue < 0, qe = Y.clone().add(de + ($e ? -1 : 1), B); + return +(-(de + (Te - ue) / ($e ? ue - qe : qe - ue)) || 0); }, a: function(ve) { return ve < 0 ? Math.ceil(ve) || 0 : Math.floor(ve); }, p: function(ve) { return { M: B, y: M, w: C, d: k, D: P, h: y, m: b, s: d, ms: g, Q: L }[ve] || String(ve || "").toLowerCase().replace(/s$/, ""); }, u: function(ve) { return ve === void 0; - } }, ae = "en", ie = {}; - ie[ae] = z; - var de = function(ve) { + } }, ae = "en", re = {}; + re[ae] = z; + var fe = function(ve) { return ve instanceof me; - }, pe = function ve(Y, Te, fe) { + }, pe = function ve(Y, Te, de) { var ue; if (!Y) return ae; if (typeof Y == "string") { var $e = Y.toLowerCase(); - ie[$e] && (ue = $e), Te && (ie[$e] = Te, ue = $e); + re[$e] && (ue = $e), Te && (re[$e] = Te, ue = $e); var qe = Y.split("-"); if (!ue && qe.length > 1) return ve(qe[0]); } else { var ct = Y.name; - ie[ct] = Y, ue = ct; + re[ct] = Y, ue = ct; } - return !fe && ue && (ae = ue), ue || !fe && ae; + return !de && ue && (ae = ue), ue || !de && ae; }, ce = function(ve, Y) { - if (de(ve)) + if (fe(ve)) return ve.clone(); var Te = typeof Y == "object" ? Y : {}; return Te.date = ve, Te.args = arguments, new me(Te); }, we = V; - we.l = pe, we.i = de, we.w = function(ve, Y) { + we.l = pe, we.i = fe, we.w = function(ve, Y) { return ce(ve, { locale: Y.$L, utc: Y.$u, x: Y.$x, $offset: Y.$offset }); }; var me = function() { @@ -25599,8 +25843,8 @@ var nv = ll(function(r, i) { } var Y = ve.prototype; return Y.parse = function(Te) { - this.$d = function(fe) { - var ue = fe.date, $e = fe.utc; + this.$d = function(de) { + var ue = de.date, $e = de.utc; if (ue === null) return /* @__PURE__ */ new Date(NaN); if (we.u(ue)) @@ -25610,8 +25854,8 @@ var nv = ll(function(r, i) { if (typeof ue == "string" && !/Z$/i.test(ue)) { var qe = ue.match(W); if (qe) { - var ct = qe[2] - 1 || 0, ot = (qe[7] || "0").substring(0, 3); - return $e ? new Date(Date.UTC(qe[1], ct, qe[3] || 1, qe[4] || 0, qe[5] || 0, qe[6] || 0, ot)) : new Date(qe[1], ct, qe[3] || 1, qe[4] || 0, qe[5] || 0, qe[6] || 0, ot); + var ct = qe[2] - 1 || 0, st = (qe[7] || "0").substring(0, 3); + return $e ? new Date(Date.UTC(qe[1], ct, qe[3] || 1, qe[4] || 0, qe[5] || 0, qe[6] || 0, st)) : new Date(qe[1], ct, qe[3] || 1, qe[4] || 0, qe[5] || 0, qe[6] || 0, st); } } return new Date(ue); @@ -25623,24 +25867,24 @@ var nv = ll(function(r, i) { return we; }, Y.isValid = function() { return this.$d.toString() !== X; - }, Y.isSame = function(Te, fe) { + }, Y.isSame = function(Te, de) { var ue = ce(Te); - return this.startOf(fe) <= ue && ue <= this.endOf(fe); - }, Y.isAfter = function(Te, fe) { - return ce(Te) < this.startOf(fe); - }, Y.isBefore = function(Te, fe) { - return this.endOf(fe) < ce(Te); - }, Y.$g = function(Te, fe, ue) { - return we.u(Te) ? this[fe] : this.set(ue, Te); + return this.startOf(de) <= ue && ue <= this.endOf(de); + }, Y.isAfter = function(Te, de) { + return ce(Te) < this.startOf(de); + }, Y.isBefore = function(Te, de) { + return this.endOf(de) < ce(Te); + }, Y.$g = function(Te, de, ue) { + return we.u(Te) ? this[de] : this.set(ue, Te); }, Y.unix = function() { return Math.floor(this.valueOf() / 1e3); }, Y.valueOf = function() { return this.$d.getTime(); - }, Y.startOf = function(Te, fe) { - var ue = this, $e = !!we.u(fe) || fe, qe = we.p(Te), ct = function(yt, on) { + }, Y.startOf = function(Te, de) { + var ue = this, $e = !!we.u(de) || de, qe = we.p(Te), ct = function(yt, on) { var Xt = we.w(ue.$u ? Date.UTC(ue.$y, on, yt) : new Date(ue.$y, on, yt), ue); return $e ? Xt : Xt.endOf(k); - }, ot = function(yt, on) { + }, st = function(yt, on) { return we.w(ue.toDate()[yt].apply(ue.toDate("s"), ($e ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(on)), ue); }, Pe = this.$W, Le = this.$M, lt = this.$D, Ut = "set" + (this.$u ? "UTC" : ""); switch (qe) { @@ -25653,34 +25897,34 @@ var nv = ll(function(r, i) { return ct($e ? lt - Dn : lt + (6 - Dn), Le); case k: case P: - return ot(Ut + "Hours", 0); + return st(Ut + "Hours", 0); case y: - return ot(Ut + "Minutes", 1); + return st(Ut + "Minutes", 1); case b: - return ot(Ut + "Seconds", 2); + return st(Ut + "Seconds", 2); case d: - return ot(Ut + "Milliseconds", 3); + return st(Ut + "Milliseconds", 3); default: return this.clone(); } }, Y.endOf = function(Te) { return this.startOf(Te, !1); - }, Y.$set = function(Te, fe) { - var ue, $e = we.p(Te), qe = "set" + (this.$u ? "UTC" : ""), ct = (ue = {}, ue[k] = qe + "Date", ue[P] = qe + "Date", ue[B] = qe + "Month", ue[M] = qe + "FullYear", ue[y] = qe + "Hours", ue[b] = qe + "Minutes", ue[d] = qe + "Seconds", ue[g] = qe + "Milliseconds", ue)[$e], ot = $e === k ? this.$D + (fe - this.$W) : fe; + }, Y.$set = function(Te, de) { + var ue, $e = we.p(Te), qe = "set" + (this.$u ? "UTC" : ""), ct = (ue = {}, ue[k] = qe + "Date", ue[P] = qe + "Date", ue[B] = qe + "Month", ue[M] = qe + "FullYear", ue[y] = qe + "Hours", ue[b] = qe + "Minutes", ue[d] = qe + "Seconds", ue[g] = qe + "Milliseconds", ue)[$e], st = $e === k ? this.$D + (de - this.$W) : de; if ($e === B || $e === M) { var Pe = this.clone().set(P, 1); - Pe.$d[ct](ot), Pe.init(), this.$d = Pe.set(P, Math.min(this.$D, Pe.daysInMonth())).$d; + Pe.$d[ct](st), Pe.init(), this.$d = Pe.set(P, Math.min(this.$D, Pe.daysInMonth())).$d; } else - ct && this.$d[ct](ot); + ct && this.$d[ct](st); return this.init(), this; - }, Y.set = function(Te, fe) { - return this.clone().$set(Te, fe); + }, Y.set = function(Te, de) { + return this.clone().$set(Te, de); }, Y.get = function(Te) { return this[we.p(Te)](); - }, Y.add = function(Te, fe) { + }, Y.add = function(Te, de) { var ue, $e = this; Te = Number(Te); - var qe = we.p(fe), ct = function(Le) { + var qe = we.p(de), ct = function(Le) { var lt = ce($e); return we.w(lt.date(lt.date() + Math.round(Le * Te)), $e); }; @@ -25692,16 +25936,16 @@ var nv = ll(function(r, i) { return ct(1); if (qe === C) return ct(7); - var ot = (ue = {}, ue[b] = l, ue[y] = h, ue[d] = o, ue)[qe] || 1, Pe = this.$d.getTime() + Te * ot; + var st = (ue = {}, ue[b] = l, ue[y] = u, ue[d] = o, ue)[qe] || 1, Pe = this.$d.getTime() + Te * st; return we.w(Pe, this); - }, Y.subtract = function(Te, fe) { - return this.add(-1 * Te, fe); + }, Y.subtract = function(Te, de) { + return this.add(-1 * Te, de); }, Y.format = function(Te) { - var fe = this, ue = this.$locale(); + var de = this, ue = this.$locale(); if (!this.isValid()) return ue.invalidDate || X; - var $e = Te || "YYYY-MM-DDTHH:mm:ssZ", qe = we.z(this), ct = this.$H, ot = this.$m, Pe = this.$M, Le = ue.weekdays, lt = ue.months, Ut = ue.meridiem, Lt = function(on, Xt, Vt, Wt) { - return on && (on[Xt] || on(fe, $e)) || Vt[Xt].slice(0, Wt); + var $e = Te || "YYYY-MM-DDTHH:mm:ssZ", qe = we.z(this), ct = this.$H, st = this.$m, Pe = this.$M, Le = ue.weekdays, lt = ue.months, Ut = ue.meridiem, Lt = function(on, Xt, Vt, Wt) { + return on && (on[Xt] || on(de, $e)) || Vt[Xt].slice(0, Wt); }, Dn = function(on) { return we.s(ct % 12 || 12, on, "0"); }, yt = Ut || function(on, Xt, Vt) { @@ -25712,9 +25956,9 @@ var nv = ll(function(r, i) { return Xt || function(Vt) { switch (Vt) { case "YY": - return String(fe.$y).slice(-2); + return String(de.$y).slice(-2); case "YYYY": - return we.s(fe.$y, 4, "0"); + return we.s(de.$y, 4, "0"); case "M": return Pe + 1; case "MM": @@ -25724,17 +25968,17 @@ var nv = ll(function(r, i) { case "MMMM": return Lt(lt, Pe); case "D": - return fe.$D; + return de.$D; case "DD": - return we.s(fe.$D, 2, "0"); + return we.s(de.$D, 2, "0"); case "d": - return String(fe.$W); + return String(de.$W); case "dd": - return Lt(ue.weekdaysMin, fe.$W, Le, 2); + return Lt(ue.weekdaysMin, de.$W, Le, 2); case "ddd": - return Lt(ue.weekdaysShort, fe.$W, Le, 3); + return Lt(ue.weekdaysShort, de.$W, Le, 3); case "dddd": - return Le[fe.$W]; + return Le[de.$W]; case "H": return String(ct); case "HH": @@ -25744,19 +25988,19 @@ var nv = ll(function(r, i) { case "hh": return Dn(2); case "a": - return yt(ct, ot, !0); + return yt(ct, st, !0); case "A": - return yt(ct, ot, !1); + return yt(ct, st, !1); case "m": - return String(ot); + return String(st); case "mm": - return we.s(ot, 2, "0"); + return we.s(st, 2, "0"); case "s": - return String(fe.$s); + return String(de.$s); case "ss": - return we.s(fe.$s, 2, "0"); + return we.s(de.$s, 2, "0"); case "SSS": - return we.s(fe.$ms, 3, "0"); + return we.s(de.$ms, 3, "0"); case "Z": return qe; } @@ -25765,9 +26009,9 @@ var nv = ll(function(r, i) { }); }, Y.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); - }, Y.diff = function(Te, fe, ue) { - var $e, qe = this, ct = we.p(fe), ot = ce(Te), Pe = (ot.utcOffset() - this.utcOffset()) * l, Le = this - ot, lt = function() { - return we.m(qe, ot); + }, Y.diff = function(Te, de, ue) { + var $e, qe = this, ct = we.p(de), st = ce(Te), Pe = (st.utcOffset() - this.utcOffset()) * l, Le = this - st, lt = function() { + return we.m(qe, st); }; switch (ct) { case M: @@ -25786,7 +26030,7 @@ var nv = ll(function(r, i) { $e = (Le - Pe) / 864e5; break; case y: - $e = Le / h; + $e = Le / u; break; case b: $e = Le / l; @@ -25801,11 +26045,11 @@ var nv = ll(function(r, i) { }, Y.daysInMonth = function() { return this.endOf(B).$D; }, Y.$locale = function() { - return ie[this.$L]; - }, Y.locale = function(Te, fe) { + return re[this.$L]; + }, Y.locale = function(Te, de) { if (!Te) return this.$L; - var ue = this.clone(), $e = pe(Te, fe, !0); + var ue = this.clone(), $e = pe(Te, de, !0); return $e && (ue.$L = $e), ue; }, Y.clone = function() { return we.w(this.$d, this); @@ -25825,19 +26069,19 @@ var nv = ll(function(r, i) { }; }), ce.extend = function(ve, Y) { return ve.$i || (ve(Y, me, ce), ve.$i = !0), ce; - }, ce.locale = pe, ce.isDayjs = de, ce.unix = function(ve) { + }, ce.locale = pe, ce.isDayjs = fe, ce.unix = function(ve) { return ce(1e3 * ve); - }, ce.en = ie[ae], ce.Ls = ie, ce.p = {}, ce; + }, ce.en = re[ae], ce.Ls = re, ce.p = {}, ce; }(); -}), B_t = ll(function(r, i) { +}), M_t = ul(function(r, i) { Object.defineProperty(i, "__esModule", { value: !0 }), i.sanitizeUrl = void 0; - var o = /^([^\w]*)(javascript|data|vbscript)/im, l = /&#(\w+)(^\w|;)?/g, h = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, g = /^([^:]+):/gm, d = [".", "/"]; + var o = /^([^\w]*)(javascript|data|vbscript)/im, l = /&#(\w+)(^\w|;)?/g, u = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, g = /^([^:]+):/gm, d = [".", "/"]; i.sanitizeUrl = function(b) { var y = function(B) { return B.replace(l, function(L, M) { return String.fromCharCode(M); }); - }(b || "").replace(h, "").trim(); + }(b || "").replace(u, "").trim(); if (!y) return "about:blank"; if (function(B) { @@ -25851,17 +26095,17 @@ var nv = ll(function(r, i) { return o.test(C) ? "about:blank" : y; }; }); -sQ(B_t); -var YN = B_t.sanitizeUrl; -function kAe(r, i) { +cQ(M_t); +var JN = M_t.sanitizeUrl; +function TAe(r, i) { return r == null || i == null ? NaN : r < i ? -1 : r > i ? 1 : r >= i ? 0 : NaN; } -function d4n(r, i) { +function T4n(r, i) { return r == null || i == null ? NaN : i < r ? -1 : i > r ? 1 : i >= r ? 0 : NaN; } -function uNe(r) { +function fNe(r) { var i, o, l; - function h(g, d) { + function u(g, d) { var b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : g.length; if (b < y) { if (i(d, d) !== 0) @@ -25873,12 +26117,12 @@ function uNe(r) { } return b; } - return r.length !== 2 ? (i = kAe, o = function(g, d) { - return kAe(r(g), d); + return r.length !== 2 ? (i = TAe, o = function(g, d) { + return TAe(r(g), d); }, l = function(g, d) { return r(g) - d; - }) : (i = r === kAe || r === d4n ? r : A4n, o = r, l = r), { left: h, center: function(g, d) { - var b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, y = h(g, d, b, (arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : g.length) - 1); + }) : (i = r === TAe || r === T4n ? r : E4n, o = r, l = r), { left: u, center: function(g, d) { + var b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, y = u(g, d, b, (arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : g.length) - 1); return y > b && l(g[y - 1], d) > -l(g[y], d) ? y - 1 : y; }, right: function(g, d) { var b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : g.length; @@ -25893,59 +26137,59 @@ function uNe(r) { return b; } }; } -function A4n() { +function E4n() { return 0; } -var g4n = uNe(kAe).right; -uNe(function(r) { +var B4n = fNe(TAe).right; +fNe(function(r) { return r === null ? NaN : +r; }).center; -var p4n = g4n; -class Wkt extends Map { - constructor(i, o = m4n) { +var _4n = B4n; +class Jkt extends Map { + constructor(i, o = S4n) { if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: o } }), i != null) - for (const [l, h] of i) - this.set(l, h); + for (const [l, u] of i) + this.set(l, u); } get(i) { - return super.get(qkt(this, i)); + return super.get(Zkt(this, i)); } has(i) { - return super.has(qkt(this, i)); + return super.has(Zkt(this, i)); } set(i, o) { - return super.set(function({ _intern: l, _key: h }, g) { - const d = h(g); + return super.set(function({ _intern: l, _key: u }, g) { + const d = u(g); return l.has(d) ? l.get(d) : (l.set(d, g), g); }(this, i), o); } delete(i) { - return super.delete(function({ _intern: o, _key: l }, h) { - const g = l(h); - return o.has(g) && (h = o.get(g), o.delete(g)), h; + return super.delete(function({ _intern: o, _key: l }, u) { + const g = l(u); + return o.has(g) && (u = o.get(g), o.delete(g)), u; }(this, i)); } } -function qkt({ _intern: r, _key: i }, o) { +function Zkt({ _intern: r, _key: i }, o) { const l = i(o); return r.has(l) ? r.get(l) : o; } -function m4n(r) { +function S4n(r) { return r !== null && typeof r == "object" ? r.valueOf() : r; } -var Ykt = i9.match(/firefox\/(\d+)/i), Jkt = !!Ykt && +Ykt[1], b4n = /MSIE|Trident/.test(i9), Zkt = i9.match(/AppleWebKit\/(\d+)\./), ext = !!Zkt && +Zkt[1], UM = [], txt = eo(UM.sort), y4n = eo(UM.push), w4n = iu(function() { - UM.sort(void 0); -}), v4n = iu(function() { - UM.sort(null); -}), k4n = xj("sort"), nxt = !iu(function() { - if (s9) - return s9 < 70; - if (!(Jkt && Jkt > 3)) { - if (b4n) +var ext = a9.match(/firefox\/(\d+)/i), txt = !!ext && +ext[1], L4n = /MSIE|Trident/.test(a9), nxt = a9.match(/AppleWebKit\/(\d+)\./), rxt = !!nxt && +nxt[1], HM = [], ixt = eo(HM.sort), M4n = eo(HM.push), I4n = au(function() { + HM.sort(void 0); +}), F4n = au(function() { + HM.sort(null); +}), D4n = xj("sort"), axt = !au(function() { + if (c9) + return c9 < 70; + if (!(txt && txt > 3)) { + if (L4n) return !0; - if (ext) - return ext < 603; - var r, i, o, l, h = ""; + if (rxt) + return rxt < 603; + var r, i, o, l, u = ""; for (r = 65; r < 76; r++) { switch (i = String.fromCharCode(r), r) { case 66: @@ -25962,76 +26206,76 @@ var Ykt = i9.match(/firefox\/(\d+)/i), Jkt = !!Ykt && +Ykt[1], b4n = /MSIE|Tride o = 2; } for (l = 0; l < 47; l++) - UM.push({ k: i + l, v: o }); + HM.push({ k: i + l, v: o }); } - for (UM.sort(function(g, d) { + for (HM.sort(function(g, d) { return d.v - g.v; - }), l = 0; l < UM.length; l++) - i = UM[l].k.charAt(0), h.charAt(h.length - 1) !== i && (h += i); - return h !== "DGBEFHACIJK"; + }), l = 0; l < HM.length; l++) + i = HM[l].k.charAt(0), u.charAt(u.length - 1) !== i && (u += i); + return u !== "DGBEFHACIJK"; } }); -ba({ target: "Array", proto: !0, forced: w4n || !v4n || !k4n || !nxt }, { sort: function(r) { +ya({ target: "Array", proto: !0, forced: I4n || !F4n || !D4n || !axt }, { sort: function(r) { r !== void 0 && Fu(r); var i = iv(this); - if (nxt) - return r === void 0 ? txt(i) : txt(i, r); - var o, l, h = [], g = n4(i); + if (axt) + return r === void 0 ? ixt(i) : ixt(i, r); + var o, l, u = [], g = n4(i); for (l = 0; l < g; l++) - l in i && y4n(h, i[l]); - for (EBt(h, /* @__PURE__ */ function(d) { + l in i && M4n(u, i[l]); + for (MBt(u, /* @__PURE__ */ function(d) { return function(b, y) { return y === void 0 ? -1 : b === void 0 ? 1 : d !== void 0 ? +d(b, y) || 0 : ru(b) > ru(y) ? 1 : -1; }; - }(r)), o = h.length, l = 0; l < o; ) - i[l] = h[l++]; + }(r)), o = u.length, l = 0; l < o; ) + i[l] = u[l++]; for (; l < g; ) delete i[l++]; return i; } }); -var x4n = Dd("Array").sort, TMe = Array.prototype, uee = function(r) { +var O4n = Od("Array").sort, _Me = Array.prototype, hee = function(r) { var i = r.sort; - return r === TMe || gf(TMe, r) && i === TMe.sort ? x4n : i; -}, C4n = Math.log, T4n = Math.LOG10E, E4n = Math.log10 || function(r) { - return C4n(r) * T4n; + return r === _Me || pf(_Me, r) && i === _Me.sort ? O4n : i; +}, N4n = Math.log, Q4n = Math.LOG10E, P4n = Math.log10 || function(r) { + return N4n(r) * Q4n; }; -ba({ target: "Math", stat: !0 }, { log10: E4n }); -var B4n = Jc.Math.log10, _4n = Math.sqrt(50), S4n = Math.sqrt(10), L4n = Math.sqrt(2); -function D0e(r, i, o) { - var l, h, g, d = (i - r) / Math.max(0, o), b = Math.floor(B4n(d)), y = d / Math.pow(10, b), k = y >= _4n ? 10 : y >= S4n ? 5 : y >= L4n ? 2 : 1; - return b < 0 ? (g = Math.pow(10, -b) / k, (l = Math.round(r * g)) / g < r && ++l, (h = Math.round(i * g)) / g > i && --h, g = -g) : (g = Math.pow(10, b) * k, (l = Math.round(r / g)) * g < r && ++l, (h = Math.round(i / g)) * g > i && --h), h < l && 0.5 <= o && o < 2 ? D0e(r, i, 2 * o) : [l, h, g]; +ya({ target: "Math", stat: !0 }, { log10: P4n }); +var R4n = zc.Math.log10, U4n = Math.sqrt(50), H4n = Math.sqrt(10), $4n = Math.sqrt(2); +function N0e(r, i, o) { + var l, u, g, d = (i - r) / Math.max(0, o), b = Math.floor(R4n(d)), y = d / Math.pow(10, b), k = y >= U4n ? 10 : y >= H4n ? 5 : y >= $4n ? 2 : 1; + return b < 0 ? (g = Math.pow(10, -b) / k, (l = Math.round(r * g)) / g < r && ++l, (u = Math.round(i * g)) / g > i && --u, g = -g) : (g = Math.pow(10, b) * k, (l = Math.round(r / g)) * g < r && ++l, (u = Math.round(i / g)) * g > i && --u), u < l && 0.5 <= o && o < 2 ? N0e(r, i, 2 * o) : [l, u, g]; } -function zFe(r, i, o) { - return D0e(r = +r, i = +i, o = +o)[2]; +function WFe(r, i, o) { + return N0e(r = +r, i = +i, o = +o)[2]; } -function XFe(r, i, o) { +function qFe(r, i, o) { o = +o; - var l = (i = +i) < (r = +r), h = l ? zFe(i, r, o) : zFe(r, i, o); - return (l ? -1 : 1) * (h < 0 ? 1 / -h : h); + var l = (i = +i) < (r = +r), u = l ? WFe(i, r, o) : WFe(r, i, o); + return (l ? -1 : 1) * (u < 0 ? 1 / -u : u); } -function rxt(r, i) { - var o = Ej !== void 0 && oI(r) || r["@@iterator"]; +function oxt(r, i) { + var o = Ej !== void 0 && sI(r) || r["@@iterator"]; if (!o) { if (e4(r) || (o = function(y, k) { var C; if (y) { if (typeof y == "string") - return ixt(y, k); + return sxt(y, k); var B = Zi(C = Object.prototype.toString.call(y)).call(C, 8, -1); if (B === "Object" && y.constructor && (B = y.constructor.name), B === "Map" || B === "Set") - return El(y); + return ll(y); if (B === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)) - return ixt(y, k); + return sxt(y, k); } }(r)) || i && r && typeof r.length == "number") { o && (r = o); - var l = 0, h = function() { + var l = 0, u = function() { }; - return { s: h, n: function() { + return { s: u, n: function() { return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; }, e: function(y) { throw y; - }, f: h }; + }, f: u }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); @@ -26053,28 +26297,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function ixt(r, i) { +function sxt(r, i) { (i == null || i > r.length) && (i = r.length); for (var o = 0, l = new Array(i); o < i; o++) l[o] = r[o]; return l; } -function M4n(r, i) { +function j4n(r, i) { var o; if (i === void 0) { - var l, h = rxt(r); + var l, u = oxt(r); try { - for (h.s(); !(l = h.n()).done; ) { + for (u.s(); !(l = u.n()).done; ) { var g = l.value; g != null && (o < g || o === void 0 && g >= g) && (o = g); } } catch (C) { - h.e(C); + u.e(C); } finally { - h.f(); + u.f(); } } else { - var d, b = -1, y = rxt(r); + var d, b = -1, y = oxt(r); try { for (y.s(); !(d = y.n()).done; ) { var k = d.value; @@ -26088,29 +26332,29 @@ function M4n(r, i) { } return o; } -function axt(r, i) { - var o = Ej !== void 0 && oI(r) || r["@@iterator"]; +function cxt(r, i) { + var o = Ej !== void 0 && sI(r) || r["@@iterator"]; if (!o) { if (e4(r) || (o = function(y, k) { var C; if (y) { if (typeof y == "string") - return oxt(y, k); + return lxt(y, k); var B = Zi(C = Object.prototype.toString.call(y)).call(C, 8, -1); if (B === "Object" && y.constructor && (B = y.constructor.name), B === "Map" || B === "Set") - return El(y); + return ll(y); if (B === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)) - return oxt(y, k); + return lxt(y, k); } }(r)) || i && r && typeof r.length == "number") { o && (r = o); - var l = 0, h = function() { + var l = 0, u = function() { }; - return { s: h, n: function() { + return { s: u, n: function() { return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; }, e: function(y) { throw y; - }, f: h }; + }, f: u }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); @@ -26132,28 +26376,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function oxt(r, i) { +function lxt(r, i) { (i == null || i > r.length) && (i = r.length); for (var o = 0, l = new Array(i); o < i; o++) l[o] = r[o]; return l; } -function I4n(r, i) { +function K4n(r, i) { var o; if (i === void 0) { - var l, h = axt(r); + var l, u = cxt(r); try { - for (h.s(); !(l = h.n()).done; ) { + for (u.s(); !(l = u.n()).done; ) { var g = l.value; g != null && (o > g || o === void 0 && g >= g) && (o = g); } } catch (C) { - h.e(C); + u.e(C); } finally { - h.f(); + u.f(); } } else { - var d, b = -1, y = axt(r); + var d, b = -1, y = cxt(r); try { for (y.s(); !(d = y.n()).done; ) { var k = d.value; @@ -26167,55 +26411,55 @@ function I4n(r, i) { } return o; } -var RB = r_t; -function F4n(r) { +var UB = s_t; +function z4n(r) { return r; } -var xAe = 1, EMe = 2, GFe = 3, Ide = 4, sxt = 1e-6; -function D4n(r) { +var EAe = 1, SMe = 2, YFe = 3, Ode = 4, uxt = 1e-6; +function X4n(r) { return "translate(" + r + ",0)"; } -function O4n(r) { +function G4n(r) { return "translate(0," + r + ")"; } -function N4n(r) { +function V4n(r) { return function(i) { return +r(i); }; } -function Q4n(r, i) { +function W4n(r, i) { return i = Math.max(0, r.bandwidth() - 2 * i) / 2, r.round() && (i = Math.round(i)), function(o) { return +r(o) + i; }; } -function P4n() { +function q4n() { return !this.__axis; } -function cxt(r, i) { - var o = [], l = null, h = null, g = 6, d = 6, b = 3, y = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, k = r === xAe || r === Ide ? -1 : 1, C = r === Ide || r === EMe ? "x" : "y", B = r === xAe || r === GFe ? D4n : O4n; +function hxt(r, i) { + var o = [], l = null, u = null, g = 6, d = 6, b = 3, y = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, k = r === EAe || r === Ode ? -1 : 1, C = r === Ode || r === SMe ? "x" : "y", B = r === EAe || r === YFe ? X4n : G4n; function L(M) { - var P = l ?? (i.ticks ? i.ticks.apply(i, o) : i.domain()), X = h ?? (i.tickFormat ? i.tickFormat.apply(i, o) : F4n), W = Math.max(g, 0) + b, N = i.range(), z = +N[0] + y, oe = +N[N.length - 1] + y, V = (i.bandwidth ? Q4n : N4n)(i.copy(), y), ae = M.selection ? M.selection() : M, ie = ae.selectAll(".domain").data([null]), de = ae.selectAll(".tick").data(P, i).order(), pe = de.exit(), ce = de.enter().append("g").attr("class", "tick"), we = de.select("line"), me = de.select("text"); - ie = ie.merge(ie.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), de = de.merge(ce), we = we.merge(ce.append("line").attr("stroke", "currentColor").attr(C + "2", k * g)), me = me.merge(ce.append("text").attr("fill", "currentColor").attr(C, k * W).attr("dy", r === xAe ? "0em" : r === GFe ? "0.71em" : "0.32em")), M !== ae && (ie = ie.transition(M), de = de.transition(M), we = we.transition(M), me = me.transition(M), pe = pe.transition(M).attr("opacity", sxt).attr("transform", function(ee) { + var P = l ?? (i.ticks ? i.ticks.apply(i, o) : i.domain()), X = u ?? (i.tickFormat ? i.tickFormat.apply(i, o) : z4n), W = Math.max(g, 0) + b, N = i.range(), z = +N[0] + y, oe = +N[N.length - 1] + y, V = (i.bandwidth ? W4n : V4n)(i.copy(), y), ae = M.selection ? M.selection() : M, re = ae.selectAll(".domain").data([null]), fe = ae.selectAll(".tick").data(P, i).order(), pe = fe.exit(), ce = fe.enter().append("g").attr("class", "tick"), we = fe.select("line"), me = fe.select("text"); + re = re.merge(re.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), fe = fe.merge(ce), we = we.merge(ce.append("line").attr("stroke", "currentColor").attr(C + "2", k * g)), me = me.merge(ce.append("text").attr("fill", "currentColor").attr(C, k * W).attr("dy", r === EAe ? "0em" : r === YFe ? "0.71em" : "0.32em")), M !== ae && (re = re.transition(M), fe = fe.transition(M), we = we.transition(M), me = me.transition(M), pe = pe.transition(M).attr("opacity", uxt).attr("transform", function(ee) { return isFinite(ee = V(ee)) ? B(ee + y) : this.getAttribute("transform"); - }), ce.attr("opacity", sxt).attr("transform", function(ee) { + }), ce.attr("opacity", uxt).attr("transform", function(ee) { var ve = this.parentNode.__axis; return B((ve && isFinite(ve = ve(ee)) ? ve : V(ee)) + y); - })), pe.remove(), ie.attr("d", r === Ide || r === EMe ? d ? "M" + k * d + "," + z + "H" + y + "V" + oe + "H" + k * d : "M" + y + "," + z + "V" + oe : d ? "M" + z + "," + k * d + "V" + y + "H" + oe + "V" + k * d : "M" + z + "," + y + "H" + oe), de.attr("opacity", 1).attr("transform", function(ee) { + })), pe.remove(), re.attr("d", r === Ode || r === SMe ? d ? "M" + k * d + "," + z + "H" + y + "V" + oe + "H" + k * d : "M" + y + "," + z + "V" + oe : d ? "M" + z + "," + k * d + "V" + y + "H" + oe + "V" + k * d : "M" + z + "," + y + "H" + oe), fe.attr("opacity", 1).attr("transform", function(ee) { return B(V(ee) + y); - }), we.attr(C + "2", k * g), me.attr(C, k * W).text(X), o1(ae).call(ae, P4n).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", r === EMe ? "start" : r === Ide ? "end" : "middle"), ae.each(function() { + }), we.attr(C + "2", k * g), me.attr(C, k * W).text(X), Ph(ae).call(ae, q4n).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", r === SMe ? "start" : r === Ode ? "end" : "middle"), ae.each(function() { this.__axis = V; }); } return L.scale = function(M) { return arguments.length ? (i = M, L) : i; }, L.ticks = function() { - return o = El(arguments), L; + return o = ll(arguments), L; }, L.tickArguments = function(M) { - return arguments.length ? (o = M == null ? [] : El(M), L) : Zi(o).call(o); + return arguments.length ? (o = M == null ? [] : ll(M), L) : Zi(o).call(o); }, L.tickValues = function(M) { - return arguments.length ? (l = M == null ? null : El(M), L) : l && Zi(l).call(l); + return arguments.length ? (l = M == null ? null : ll(M), L) : l && Zi(l).call(l); }, L.tickFormat = function(M) { - return arguments.length ? (h = M, L) : h; + return arguments.length ? (u = M, L) : u; }, L.tickSize = function(M) { return arguments.length ? (g = d = +M, L) : g; }, L.tickSizeInner = function(M) { @@ -26228,56 +26472,56 @@ function cxt(r, i) { return arguments.length ? (y = +M, L) : y; }, L; } -var R4n = { value: function() { +var Y4n = { value: function() { } }; -function __t() { +function I_t() { for (var r, i = 0, o = arguments.length, l = {}; i < o; ++i) { if (!(r = arguments[i] + "") || r in l || /[\s.]/.test(r)) throw new Error("illegal type: " + r); l[r] = []; } - return new CAe(l); + return new BAe(l); } -function CAe(r) { +function BAe(r) { this._ = r; } -function U4n(r, i) { - for (var o, l = 0, h = r.length; l < h; ++l) +function J4n(r, i) { + for (var o, l = 0, u = r.length; l < u; ++l) if ((o = r[l]).name === i) return o.value; } -function lxt(r, i, o) { - for (var l = 0, h = r.length; l < h; ++l) +function fxt(r, i, o) { + for (var l = 0, u = r.length; l < u; ++l) if (r[l].name === i) { var g; - r[l] = R4n, r = tt(g = Zi(r).call(r, 0, l)).call(g, Zi(r).call(r, l + 1)); + r[l] = Y4n, r = tt(g = Zi(r).call(r, 0, l)).call(g, Zi(r).call(r, l + 1)); break; } return o != null && r.push({ name: i, value: o }), r; } -CAe.prototype = __t.prototype = { constructor: CAe, on: function(r, i) { - var o, l = this._, h = function(b, y) { +BAe.prototype = I_t.prototype = { constructor: BAe, on: function(r, i) { + var o, l = this._, u = function(b, y) { var k; - return us(k = fo(b).call(b).split(/^|\s+/)).call(k, function(C) { + return Wo(k = uo(b).call(b).split(/^|\s+/)).call(k, function(C) { var B = "", L = Bl(C).call(C, "."); if (L >= 0 && (B = Zi(C).call(C, L + 1), C = Zi(C).call(C, 0, L)), C && !y.hasOwnProperty(C)) throw new Error("unknown type: " + C); return { type: C, name: B }; }); - }(r + "", l), g = -1, d = h.length; + }(r + "", l), g = -1, d = u.length; if (!(arguments.length < 2)) { if (i != null && typeof i != "function") throw new Error("invalid callback: " + i); for (; ++g < d; ) - if (o = (r = h[g]).type) - l[o] = lxt(l[o], r.name, i); + if (o = (r = u[g]).type) + l[o] = fxt(l[o], r.name, i); else if (i == null) for (o in l) - l[o] = lxt(l[o], r.name, null); + l[o] = fxt(l[o], r.name, null); return this; } for (; ++g < d; ) - if ((o = (r = h[g]).type) && (o = U4n(l[o], r.name))) + if ((o = (r = u[g]).type) && (o = J4n(l[o], r.name))) return o; }, copy: function() { var r = {}, i = this._; @@ -26285,132 +26529,132 @@ CAe.prototype = __t.prototype = { constructor: CAe, on: function(r, i) { var l; r[o] = Zi(l = i[o]).call(l); } - return new CAe(r); + return new BAe(r); }, call: function(r, i) { if ((o = arguments.length - 2) > 0) - for (var o, l, h = new Array(o), g = 0; g < o; ++g) - h[g] = arguments[g + 2]; + for (var o, l, u = new Array(o), g = 0; g < o; ++g) + u[g] = arguments[g + 2]; if (!this._.hasOwnProperty(r)) throw new Error("unknown type: " + r); for (g = 0, o = (l = this._[r]).length; g < o; ++g) - l[g].value.apply(i, h); + l[g].value.apply(i, u); }, apply: function(r, i, o) { if (!this._.hasOwnProperty(r)) throw new Error("unknown type: " + r); - for (var l = this._[r], h = 0, g = l.length; h < g; ++h) - l[h].value.apply(i, o); + for (var l = this._[r], u = 0, g = l.length; u < g; ++u) + l[u].value.apply(i, o); } }; -var VFe = "http://www.w3.org/1999/xhtml", uxt = { svg: "http://www.w3.org/2000/svg", xhtml: VFe, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" }; -function O0e(r) { +var JFe = "http://www.w3.org/1999/xhtml", dxt = { svg: "http://www.w3.org/2000/svg", xhtml: JFe, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" }; +function Q0e(r) { var i = r += "", o = Bl(i).call(i, ":"); - return o >= 0 && (i = Zi(r).call(r, 0, o)) !== "xmlns" && (r = Zi(r).call(r, o + 1)), uxt.hasOwnProperty(i) ? { space: uxt[i], local: r } : r; + return o >= 0 && (i = Zi(r).call(r, 0, o)) !== "xmlns" && (r = Zi(r).call(r, o + 1)), dxt.hasOwnProperty(i) ? { space: dxt[i], local: r } : r; } -function H4n(r) { +function Z4n(r) { return function() { var i = this.ownerDocument, o = this.namespaceURI; - return o === VFe && i.documentElement.namespaceURI === VFe ? i.createElement(r) : i.createElementNS(o, r); + return o === JFe && i.documentElement.namespaceURI === JFe ? i.createElement(r) : i.createElementNS(o, r); }; } -function $4n(r) { +function e5n(r) { return function() { return this.ownerDocument.createElementNS(r.space, r.local); }; } -function hxt(r) { - var i = O0e(r); - return (i.local ? $4n : H4n)(i); +function Axt(r) { + var i = Q0e(r); + return (i.local ? e5n : Z4n)(i); } -var S_t = NTt; -function j4n() { +var F_t = PTt; +function t5n() { } -function WFe(r) { - return r == null ? j4n : function() { +function ZFe(r) { + return r == null ? t5n : function() { return this.querySelector(r); }; } -function L_t(r) { - return r == null ? [] : e4(r) ? r : El(r); +function D_t(r) { + return r == null ? [] : e4(r) ? r : ll(r); } -function K4n() { +function n5n() { return []; } -function M_t(r) { - return r == null ? K4n : function() { +function O_t(r) { + return r == null ? n5n : function() { return this.querySelectorAll(r); }; } -function I_t(r) { +function N_t(r) { return function() { return this.matches(r); }; } -function fxt(r) { +function gxt(r) { return function(i) { return i.matches(r); }; } -var z4n = ZZ(Array.prototype); -function X4n() { +var r5n = ZZ(Array.prototype); +function i5n() { return this.firstElementChild; } -var G4n = o1(Array.prototype); -function V4n() { - return El(this.children); +var a5n = Ph(Array.prototype); +function o5n() { + return ll(this.children); } -var F_t = SEt; -function dxt(r) { +var Q_t = DEt; +function pxt(r) { return new Array(r.length); } -function N0e(r, i) { +function P0e(r, i) { this.ownerDocument = r.ownerDocument, this.namespaceURI = r.namespaceURI, this._next = null, this._parent = r, this.__data__ = i; } -function W4n(r, i, o, l, h, g) { +function s5n(r, i, o, l, u, g) { for (var d, b = 0, y = i.length, k = g.length; b < k; ++b) - (d = i[b]) ? (d.__data__ = g[b], l[b] = d) : o[b] = new N0e(r, g[b]); + (d = i[b]) ? (d.__data__ = g[b], l[b] = d) : o[b] = new P0e(r, g[b]); for (; b < y; ++b) - (d = i[b]) && (h[b] = d); + (d = i[b]) && (u[b] = d); } -function q4n(r, i, o, l, h, g, d) { - var b, y, k, C = new F_t(), B = i.length, L = g.length, M = new Array(B); +function c5n(r, i, o, l, u, g, d) { + var b, y, k, C = new Q_t(), B = i.length, L = g.length, M = new Array(B); for (b = 0; b < B; ++b) - (y = i[b]) && (M[b] = k = d.call(y, y.__data__, b, i) + "", C.has(k) ? h[b] = y : C.set(k, y)); + (y = i[b]) && (M[b] = k = d.call(y, y.__data__, b, i) + "", C.has(k) ? u[b] = y : C.set(k, y)); for (b = 0; b < L; ++b) - k = d.call(r, g[b], b, g) + "", (y = C.get(k)) ? (l[b] = y, y.__data__ = g[b], C.delete(k)) : o[b] = new N0e(r, g[b]); + k = d.call(r, g[b], b, g) + "", (y = C.get(k)) ? (l[b] = y, y.__data__ = g[b], C.delete(k)) : o[b] = new P0e(r, g[b]); for (b = 0; b < B; ++b) - (y = i[b]) && C.get(M[b]) === y && (h[b] = y); + (y = i[b]) && C.get(M[b]) === y && (u[b] = y); } -function Y4n(r) { +function l5n(r) { return r.__data__; } -function J4n(r) { - return Zc(r) === "object" && "length" in r ? r : El(r); +function u5n(r) { + return Xc(r) === "object" && "length" in r ? r : ll(r); } -function Z4n(r, i) { +function h5n(r, i) { return r < i ? -1 : r > i ? 1 : r >= i ? 0 : NaN; } -function e5n(r, i) { - var o = Ej !== void 0 && oI(r) || r["@@iterator"]; +function f5n(r, i) { + var o = Ej !== void 0 && sI(r) || r["@@iterator"]; if (!o) { if (e4(r) || (o = function(y, k) { var C; if (y) { if (typeof y == "string") - return Axt(y, k); + return mxt(y, k); var B = Zi(C = Object.prototype.toString.call(y)).call(C, 8, -1); if (B === "Object" && y.constructor && (B = y.constructor.name), B === "Map" || B === "Set") - return El(y); + return ll(y); if (B === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)) - return Axt(y, k); + return mxt(y, k); } }(r)) || i && r && typeof r.length == "number") { o && (r = o); - var l = 0, h = function() { + var l = 0, u = function() { }; - return { s: h, n: function() { + return { s: u, n: function() { return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; }, e: function(y) { throw y; - }, f: h }; + }, f: u }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); @@ -26432,203 +26676,203 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function Axt(r, i) { +function mxt(r, i) { (i == null || i > r.length) && (i = r.length); for (var o = 0, l = new Array(i); o < i; o++) l[o] = r[o]; return l; } -function t5n(r) { +function d5n(r) { return function() { this.removeAttribute(r); }; } -function n5n(r) { +function A5n(r) { return function() { this.removeAttributeNS(r.space, r.local); }; } -function r5n(r, i) { +function g5n(r, i) { return function() { this.setAttribute(r, i); }; } -function i5n(r, i) { +function p5n(r, i) { return function() { this.setAttributeNS(r.space, r.local, i); }; } -function a5n(r, i) { +function m5n(r, i) { return function() { var o = i.apply(this, arguments); o == null ? this.removeAttribute(r) : this.setAttribute(r, o); }; } -function o5n(r, i) { +function b5n(r, i) { return function() { var o = i.apply(this, arguments); o == null ? this.removeAttributeNS(r.space, r.local) : this.setAttributeNS(r.space, r.local, o); }; } -function D_t(r) { +function P_t(r) { return r.ownerDocument && r.ownerDocument.defaultView || r.document && r || r.defaultView; } -function s5n(r) { +function y5n(r) { return function() { this.style.removeProperty(r); }; } -function c5n(r, i, o) { +function w5n(r, i, o) { return function() { this.style.setProperty(r, i, o); }; } -function l5n(r, i, o) { +function v5n(r, i, o) { return function() { var l = i.apply(this, arguments); l == null ? this.style.removeProperty(r) : this.style.setProperty(r, l, o); }; } -function g$(r, i) { - return r.style.getPropertyValue(i) || D_t(r).getComputedStyle(r, null).getPropertyValue(i); +function p$(r, i) { + return r.style.getPropertyValue(i) || P_t(r).getComputedStyle(r, null).getPropertyValue(i); } -function u5n(r) { +function k5n(r) { return function() { delete this[r]; }; } -function h5n(r, i) { +function x5n(r, i) { return function() { this[r] = i; }; } -function f5n(r, i) { +function C5n(r, i) { return function() { var o = i.apply(this, arguments); o == null ? delete this[r] : this[r] = o; }; } -function O_t(r) { - return fo(r).call(r).split(/^|\s+/); +function R_t(r) { + return uo(r).call(r).split(/^|\s+/); } -function hNe(r) { - return r.classList || new N_t(r); +function dNe(r) { + return r.classList || new U_t(r); } -function N_t(r) { - this._node = r, this._names = O_t(r.getAttribute("class") || ""); +function U_t(r) { + this._node = r, this._names = R_t(r.getAttribute("class") || ""); } -function Q_t(r, i) { - for (var o = hNe(r), l = -1, h = i.length; ++l < h; ) +function H_t(r, i) { + for (var o = dNe(r), l = -1, u = i.length; ++l < u; ) o.add(i[l]); } -function P_t(r, i) { - for (var o = hNe(r), l = -1, h = i.length; ++l < h; ) +function $_t(r, i) { + for (var o = dNe(r), l = -1, u = i.length; ++l < u; ) o.remove(i[l]); } -function d5n(r) { +function T5n(r) { return function() { - Q_t(this, r); + H_t(this, r); }; } -function A5n(r) { +function E5n(r) { return function() { - P_t(this, r); + $_t(this, r); }; } -function g5n(r, i) { +function B5n(r, i) { return function() { - (i.apply(this, arguments) ? Q_t : P_t)(this, r); + (i.apply(this, arguments) ? H_t : $_t)(this, r); }; } -function p5n() { +function _5n() { this.textContent = ""; } -function m5n(r) { +function S5n(r) { return function() { this.textContent = r; }; } -function b5n(r) { +function L5n(r) { return function() { var i = r.apply(this, arguments); this.textContent = i ?? ""; }; } -function y5n() { +function M5n() { this.innerHTML = ""; } -function w5n(r) { +function I5n(r) { return function() { this.innerHTML = r; }; } -function v5n(r) { +function F5n(r) { return function() { var i = r.apply(this, arguments); this.innerHTML = i ?? ""; }; } -function k5n() { +function D5n() { this.nextSibling && this.parentNode.appendChild(this); } -function x5n() { +function O5n() { this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); } -function C5n() { +function N5n() { return null; } -function T5n() { +function Q5n() { var r = this.parentNode; r && r.removeChild(this); } -function E5n() { +function P5n() { var r = this.cloneNode(!1), i = this.parentNode; return i ? i.insertBefore(r, this.nextSibling) : r; } -function B5n() { +function R5n() { var r = this.cloneNode(!0), i = this.parentNode; return i ? i.insertBefore(r, this.nextSibling) : r; } -function _5n(r) { +function U5n(r) { return function() { var i = this.__on; if (i) { - for (var o, l = 0, h = -1, g = i.length; l < g; ++l) - o = i[l], r.type && o.type !== r.type || o.name !== r.name ? i[++h] = o : this.removeEventListener(o.type, o.listener, o.options); - ++h ? i.length = h : delete this.__on; + for (var o, l = 0, u = -1, g = i.length; l < g; ++l) + o = i[l], r.type && o.type !== r.type || o.name !== r.name ? i[++u] = o : this.removeEventListener(o.type, o.listener, o.options); + ++u ? i.length = u : delete this.__on; } }; } -function S5n(r, i, o) { +function H5n(r, i, o) { return function() { - var l, h = this.__on, g = /* @__PURE__ */ function(y) { + var l, u = this.__on, g = /* @__PURE__ */ function(y) { return function(k) { y.call(this, k, this.__data__); }; }(i); - if (h) { - for (var d = 0, b = h.length; d < b; ++d) - if ((l = h[d]).type === r.type && l.name === r.name) + if (u) { + for (var d = 0, b = u.length; d < b; ++d) + if ((l = u[d]).type === r.type && l.name === r.name) return this.removeEventListener(l.type, l.listener, l.options), this.addEventListener(l.type, l.listener = g, l.options = o), void (l.value = i); } - this.addEventListener(r.type, g, o), l = { type: r.type, name: r.name, value: i, listener: g, options: o }, h ? h.push(l) : this.__on = [l]; + this.addEventListener(r.type, g, o), l = { type: r.type, name: r.name, value: i, listener: g, options: o }, u ? u.push(l) : this.__on = [l]; }; } -function R_t(r, i, o) { - var l = D_t(r), h = l.CustomEvent; - typeof h == "function" ? h = new h(i, o) : (h = l.document.createEvent("Event"), o ? (h.initEvent(i, o.bubbles, o.cancelable), h.detail = o.detail) : h.initEvent(i, !1, !1)), r.dispatchEvent(h); +function j_t(r, i, o) { + var l = P_t(r), u = l.CustomEvent; + typeof u == "function" ? u = new u(i, o) : (u = l.document.createEvent("Event"), o ? (u.initEvent(i, o.bubbles, o.cancelable), u.detail = o.detail) : u.initEvent(i, !1, !1)), r.dispatchEvent(u); } -function L5n(r, i) { +function $5n(r, i) { return function() { - return R_t(this, r, i); + return j_t(this, r, i); }; } -function M5n(r, i) { +function j5n(r, i) { return function() { - return R_t(this, r, i.apply(this, arguments)); + return j_t(this, r, i.apply(this, arguments)); }; } -N0e.prototype = { constructor: N0e, appendChild: function(r) { +P0e.prototype = { constructor: P0e, appendChild: function(r) { return this._parent.insertBefore(r, this._next); }, insertBefore: function(r, i) { return this._parent.insertBefore(r, i); @@ -26636,7 +26880,7 @@ N0e.prototype = { constructor: N0e, appendChild: function(r) { return this._parent.querySelector(r); }, querySelectorAll: function(r) { return this._parent.querySelectorAll(r); -} }, N_t.prototype = { add: function(r) { +} }, U_t.prototype = { add: function(r) { var i; Bl(i = this._names).call(i, r) < 0 && (this._names.push(r), this._node.setAttribute("class", this._names.join(" "))); }, remove: function(r) { @@ -26646,10 +26890,10 @@ N0e.prototype = { constructor: N0e, appendChild: function(r) { var i; return Bl(i = this._names).call(i, r) >= 0; } }; -var I5n = nj.mark(U_t); -function U_t() { - var r, i, o, l, h, g, d; - return nj.wrap(function(b) { +var K5n = _6.mark(K_t); +function K_t() { + var r, i, o, l, u, g, d; + return _6.wrap(function(b) { for (; ; ) switch (b.prev = b.next) { case 0: @@ -26659,19 +26903,19 @@ function U_t() { b.next = 13; break; } - l = r[i], h = 0, g = l.length; + l = r[i], u = 0, g = l.length; case 3: - if (!(h < g)) { + if (!(u < g)) { b.next = 10; break; } - if (!(d = l[h])) { + if (!(d = l[u])) { b.next = 7; break; } return b.next = 7, d; case 7: - ++h, b.next = 3; + ++u, b.next = 3; break; case 10: ++i, b.next = 1; @@ -26680,77 +26924,77 @@ function U_t() { case "end": return b.stop(); } - }, I5n, this); + }, K5n, this); } -var gxt, pxt, mxt, bxt, yxt, wxt, vxt, kxt, xxt, fNe = [null]; -function q2(r, i) { +var bxt, yxt, wxt, vxt, kxt, xxt, Cxt, Txt, Ext, ANe = [null]; +function Y2(r, i) { this._groups = r, this._parents = i; } -function hee() { - return new q2([[document.documentElement]], fNe); +function fee() { + return new Y2([[document.documentElement]], ANe); } function Ea(r) { - return typeof r == "string" ? new q2([[document.querySelector(r)]], [document.documentElement]) : new q2([[r]], fNe); + return typeof r == "string" ? new Y2([[document.querySelector(r)]], [document.documentElement]) : new Y2([[r]], ANe); } -function H_t(r) { - return typeof r == "string" ? new q2([document.querySelectorAll(r)], [document.documentElement]) : new q2([L_t(r)], fNe); +function z_t(r) { + return typeof r == "string" ? new Y2([document.querySelectorAll(r)], [document.documentElement]) : new Y2([D_t(r)], ANe); } function _Z(r, i, o) { r.prototype = i.prototype = o, o.constructor = r; } -function Q0e(r, i) { +function R0e(r, i) { var o = eee(r.prototype); for (var l in i) o[l] = i[l]; return o; } -function $N() { +function jN() { } -q2.prototype = hee.prototype = gi({ constructor: q2, select: function(r) { - typeof r != "function" && (r = WFe(r)); - for (var i = this._groups, o = i.length, l = new Array(o), h = 0; h < o; ++h) - for (var g, d, b = i[h], y = b.length, k = l[h] = new Array(y), C = 0; C < y; ++C) +Y2.prototype = fee.prototype = Ai({ constructor: Y2, select: function(r) { + typeof r != "function" && (r = ZFe(r)); + for (var i = this._groups, o = i.length, l = new Array(o), u = 0; u < o; ++u) + for (var g, d, b = i[u], y = b.length, k = l[u] = new Array(y), C = 0; C < y; ++C) (g = b[C]) && (d = r.call(g, g.__data__, C, b)) && ("__data__" in g && (d.__data__ = g.__data__), k[C] = d); - return new q2(l, this._parents); + return new Y2(l, this._parents); }, selectAll: function(r) { r = typeof r == "function" ? /* @__PURE__ */ function(C) { return function() { - return L_t(C.apply(this, arguments)); + return D_t(C.apply(this, arguments)); }; - }(r) : M_t(r); - for (var i = this._groups, o = i.length, l = [], h = [], g = 0; g < o; ++g) + }(r) : O_t(r); + for (var i = this._groups, o = i.length, l = [], u = [], g = 0; g < o; ++g) for (var d, b = i[g], y = b.length, k = 0; k < y; ++k) - (d = b[k]) && (l.push(r.call(d, d.__data__, k, b)), h.push(d)); - return new q2(l, h); + (d = b[k]) && (l.push(r.call(d, d.__data__, k, b)), u.push(d)); + return new Y2(l, u); }, selectChild: function(r) { - return this.select(r == null ? X4n : /* @__PURE__ */ function(i) { + return this.select(r == null ? i5n : /* @__PURE__ */ function(i) { return function() { - return z4n.call(this.children, i); + return r5n.call(this.children, i); }; - }(typeof r == "function" ? r : fxt(r))); + }(typeof r == "function" ? r : gxt(r))); }, selectChildren: function(r) { - return this.selectAll(r == null ? V4n : /* @__PURE__ */ function(i) { + return this.selectAll(r == null ? o5n : /* @__PURE__ */ function(i) { return function() { - return G4n.call(this.children, i); + return a5n.call(this.children, i); }; - }(typeof r == "function" ? r : fxt(r))); + }(typeof r == "function" ? r : gxt(r))); }, filter: function(r) { - typeof r != "function" && (r = I_t(r)); - for (var i = this._groups, o = i.length, l = new Array(o), h = 0; h < o; ++h) - for (var g, d = i[h], b = d.length, y = l[h] = [], k = 0; k < b; ++k) + typeof r != "function" && (r = N_t(r)); + for (var i = this._groups, o = i.length, l = new Array(o), u = 0; u < o; ++u) + for (var g, d = i[u], b = d.length, y = l[u] = [], k = 0; k < b; ++k) (g = d[k]) && r.call(g, g.__data__, k, d) && y.push(g); - return new q2(l, this._parents); + return new Y2(l, this._parents); }, data: function(r, i) { if (!arguments.length) - return El(this, Y4n); - var o = i ? q4n : W4n, l = this._parents, h = this._groups; + return ll(this, l5n); + var o = i ? c5n : s5n, l = this._parents, u = this._groups; typeof r != "function" && (r = /* @__PURE__ */ function(ae) { return function() { return ae; }; }(r)); - for (var g = h.length, d = new Array(g), b = new Array(g), y = new Array(g), k = 0; k < g; ++k) { - var C = l[k], B = h[k], L = B.length, M = J4n(r.call(C, C && C.__data__, k, l)), P = M.length, X = b[k] = new Array(P), W = d[k] = new Array(P); + for (var g = u.length, d = new Array(g), b = new Array(g), y = new Array(g), k = 0; k < g; ++k) { + var C = l[k], B = u[k], L = B.length, M = u5n(r.call(C, C && C.__data__, k, l)), P = M.length, X = b[k] = new Array(P), W = d[k] = new Array(P); o(C, B, X, W, y[k] = new Array(L), M, i); for (var N, z, oe = 0, V = 0; oe < P; ++oe) if (N = X[oe]) { @@ -26759,56 +27003,56 @@ q2.prototype = hee.prototype = gi({ constructor: q2, select: function(r) { N._next = z || null; } } - return (d = new q2(d, l))._enter = b, d._exit = y, d; + return (d = new Y2(d, l))._enter = b, d._exit = y, d; }, enter: function() { var r; - return new q2(this._enter || us(r = this._groups).call(r, dxt), this._parents); + return new Y2(this._enter || Wo(r = this._groups).call(r, pxt), this._parents); }, exit: function() { var r; - return new q2(this._exit || us(r = this._groups).call(r, dxt), this._parents); + return new Y2(this._exit || Wo(r = this._groups).call(r, pxt), this._parents); }, join: function(r, i, o) { - var l = this.enter(), h = this, g = this.exit(); - return typeof r == "function" ? (l = r(l)) && (l = l.selection()) : l = l.append(r + ""), i != null && (h = i(h)) && (h = h.selection()), o == null ? g.remove() : o(g), l && h ? l.merge(h).order() : h; + var l = this.enter(), u = this, g = this.exit(); + return typeof r == "function" ? (l = r(l)) && (l = l.selection()) : l = l.append(r + ""), i != null && (u = i(u)) && (u = u.selection()), o == null ? g.remove() : o(g), l && u ? l.merge(u).order() : u; }, merge: function(r) { - for (var i = r.selection ? r.selection() : r, o = this._groups, l = i._groups, h = o.length, g = l.length, d = Math.min(h, g), b = new Array(h), y = 0; y < d; ++y) + for (var i = r.selection ? r.selection() : r, o = this._groups, l = i._groups, u = o.length, g = l.length, d = Math.min(u, g), b = new Array(u), y = 0; y < d; ++y) for (var k, C = o[y], B = l[y], L = C.length, M = b[y] = new Array(L), P = 0; P < L; ++P) (k = C[P] || B[P]) && (M[P] = k); - for (; y < h; ++y) + for (; y < u; ++y) b[y] = o[y]; - return new q2(b, this._parents); + return new Y2(b, this._parents); }, selection: function() { return this; }, order: function() { for (var r = this._groups, i = -1, o = r.length; ++i < o; ) - for (var l, h = r[i], g = h.length - 1, d = h[g]; --g >= 0; ) - (l = h[g]) && (d && 4 ^ l.compareDocumentPosition(d) && d.parentNode.insertBefore(l, d), d = l); + for (var l, u = r[i], g = u.length - 1, d = u[g]; --g >= 0; ) + (l = u[g]) && (d && 4 ^ l.compareDocumentPosition(d) && d.parentNode.insertBefore(l, d), d = l); return this; }, sort: function(r) { function i(B, L) { return B && L ? r(B.__data__, L.__data__) : !B - !L; } - r || (r = Z4n); - for (var o = this._groups, l = o.length, h = new Array(l), g = 0; g < l; ++g) { - for (var d, b = o[g], y = b.length, k = h[g] = new Array(y), C = 0; C < y; ++C) + r || (r = h5n); + for (var o = this._groups, l = o.length, u = new Array(l), g = 0; g < l; ++g) { + for (var d, b = o[g], y = b.length, k = u[g] = new Array(y), C = 0; C < y; ++C) (d = b[C]) && (k[C] = d); - uee(k).call(k, i); + hee(k).call(k, i); } - return new q2(h, this._parents).order(); + return new Y2(u, this._parents).order(); }, call: function() { var r = arguments[0]; return arguments[0] = this, r.apply(null, arguments), this; }, nodes: function() { - return El(this); + return ll(this); }, node: function() { for (var r = this._groups, i = 0, o = r.length; i < o; ++i) - for (var l = r[i], h = 0, g = l.length; h < g; ++h) { - var d = l[h]; + for (var l = r[i], u = 0, g = l.length; u < g; ++u) { + var d = l[u]; if (d) return d; } return null; }, size: function() { - var r, i = 0, o = e5n(this); + var r, i = 0, o = f5n(this); try { for (o.s(); !(r = o.n()).done; ) r.value, ++i; @@ -26822,63 +27066,63 @@ q2.prototype = hee.prototype = gi({ constructor: q2, select: function(r) { return !this.node(); }, each: function(r) { for (var i = this._groups, o = 0, l = i.length; o < l; ++o) - for (var h, g = i[o], d = 0, b = g.length; d < b; ++d) - (h = g[d]) && r.call(h, h.__data__, d, g); + for (var u, g = i[o], d = 0, b = g.length; d < b; ++d) + (u = g[d]) && r.call(u, u.__data__, d, g); return this; }, attr: function(r, i) { - var o = O0e(r); + var o = Q0e(r); if (arguments.length < 2) { var l = this.node(); return o.local ? l.getAttributeNS(o.space, o.local) : l.getAttribute(o); } - return this.each((i == null ? o.local ? n5n : t5n : typeof i == "function" ? o.local ? o5n : a5n : o.local ? i5n : r5n)(o, i)); + return this.each((i == null ? o.local ? A5n : d5n : typeof i == "function" ? o.local ? b5n : m5n : o.local ? p5n : g5n)(o, i)); }, style: function(r, i, o) { - return arguments.length > 1 ? this.each((i == null ? s5n : typeof i == "function" ? l5n : c5n)(r, i, o ?? "")) : g$(this.node(), r); + return arguments.length > 1 ? this.each((i == null ? y5n : typeof i == "function" ? v5n : w5n)(r, i, o ?? "")) : p$(this.node(), r); }, property: function(r, i) { - return arguments.length > 1 ? this.each((i == null ? u5n : typeof i == "function" ? f5n : h5n)(r, i)) : this.node()[r]; + return arguments.length > 1 ? this.each((i == null ? k5n : typeof i == "function" ? C5n : x5n)(r, i)) : this.node()[r]; }, classed: function(r, i) { - var o = O_t(r + ""); + var o = R_t(r + ""); if (arguments.length < 2) { - for (var l = hNe(this.node()), h = -1, g = o.length; ++h < g; ) - if (!l.contains(o[h])) + for (var l = dNe(this.node()), u = -1, g = o.length; ++u < g; ) + if (!l.contains(o[u])) return !1; return !0; } - return this.each((typeof i == "function" ? g5n : i ? d5n : A5n)(o, i)); + return this.each((typeof i == "function" ? B5n : i ? T5n : E5n)(o, i)); }, text: function(r) { - return arguments.length ? this.each(r == null ? p5n : (typeof r == "function" ? b5n : m5n)(r)) : this.node().textContent; + return arguments.length ? this.each(r == null ? _5n : (typeof r == "function" ? L5n : S5n)(r)) : this.node().textContent; }, html: function(r) { - return arguments.length ? this.each(r == null ? y5n : (typeof r == "function" ? v5n : w5n)(r)) : this.node().innerHTML; + return arguments.length ? this.each(r == null ? M5n : (typeof r == "function" ? F5n : I5n)(r)) : this.node().innerHTML; }, raise: function() { - return this.each(k5n); + return this.each(D5n); }, lower: function() { - return this.each(x5n); + return this.each(O5n); }, append: function(r) { - var i = typeof r == "function" ? r : hxt(r); + var i = typeof r == "function" ? r : Axt(r); return this.select(function() { return this.appendChild(i.apply(this, arguments)); }); }, insert: function(r, i) { - var o = typeof r == "function" ? r : hxt(r), l = i == null ? C5n : typeof i == "function" ? i : WFe(i); + var o = typeof r == "function" ? r : Axt(r), l = i == null ? N5n : typeof i == "function" ? i : ZFe(i); return this.select(function() { return this.insertBefore(o.apply(this, arguments), l.apply(this, arguments) || null); }); }, remove: function() { - return this.each(T5n); + return this.each(Q5n); }, clone: function(r) { - return this.select(r ? B5n : E5n); + return this.select(r ? R5n : P5n); }, datum: function(r) { return arguments.length ? this.property("__data__", r) : this.node().__data__; }, on: function(r, i, o) { - var l, h, g = function(B) { + var l, u, g = function(B) { var L; - return us(L = fo(B).call(B).split(/^|\s+/)).call(L, function(M) { + return Wo(L = uo(B).call(B).split(/^|\s+/)).call(L, function(M) { var P = "", X = Bl(M).call(M, "."); return X >= 0 && (P = Zi(M).call(M, X + 1), M = Zi(M).call(M, 0, X)), { type: M, name: P }; }); }(r + ""), d = g.length; if (!(arguments.length < 2)) { - for (b = i ? S5n : _5n, l = 0; l < d; ++l) + for (b = i ? H5n : U5n, l = 0; l < d; ++l) this.each(b(g[l], i, o)); return this; } @@ -26886,259 +27130,259 @@ q2.prototype = hee.prototype = gi({ constructor: q2, select: function(r) { if (b) { for (var y, k = 0, C = b.length; k < C; ++k) for (l = 0, y = b[k]; l < d; ++l) - if ((h = g[l]).type === y.type && h.name === y.name) + if ((u = g[l]).type === y.type && u.name === y.name) return y.value; } }, dispatch: function(r, i) { - return this.each((typeof i == "function" ? M5n : L5n)(r, i)); -} }, S_t, U_t); -var sZ = 0.7, Fde = 1 / sZ, D$ = "\\s*([+-]?\\d+)\\s*", fee = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", a9 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", F5n = /^#([0-9a-f]{3,8})$/, D5n = new RegExp(tt(gxt = "^rgb\\(".concat(D$, ",").concat(D$, ",")).call(gxt, D$, "\\)$")), O5n = new RegExp(tt(pxt = "^rgb\\(".concat(a9, ",").concat(a9, ",")).call(pxt, a9, "\\)$")), N5n = new RegExp(tt(mxt = tt(bxt = "^rgba\\(".concat(D$, ",").concat(D$, ",")).call(bxt, D$, ",")).call(mxt, fee, "\\)$")), Q5n = new RegExp(tt(yxt = tt(wxt = "^rgba\\(".concat(a9, ",").concat(a9, ",")).call(wxt, a9, ",")).call(yxt, fee, "\\)$")), P5n = new RegExp(tt(vxt = "^hsl\\(".concat(fee, ",").concat(a9, ",")).call(vxt, a9, "\\)$")), R5n = new RegExp(tt(kxt = tt(xxt = "^hsla\\(".concat(fee, ",").concat(a9, ",")).call(xxt, a9, ",")).call(kxt, fee, "\\)$")), Cxt = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, aquamarine: 8388564, azure: 15794175, beige: 16119260, bisque: 16770244, black: 0, blanchedalmond: 16772045, blue: 255, blueviolet: 9055202, brown: 10824234, burlywood: 14596231, cadetblue: 6266528, chartreuse: 8388352, chocolate: 13789470, coral: 16744272, cornflowerblue: 6591981, cornsilk: 16775388, crimson: 14423100, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 12092939, darkgray: 11119017, darkgreen: 25600, darkgrey: 11119017, darkkhaki: 12433259, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 16747520, darkorchid: 10040012, darkred: 9109504, darksalmon: 15308410, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 16716947, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 11674146, floralwhite: 16775920, forestgreen: 2263842, fuchsia: 16711935, gainsboro: 14474460, ghostwhite: 16316671, gold: 16766720, goldenrod: 14329120, gray: 8421504, green: 32768, greenyellow: 11403055, grey: 8421504, honeydew: 15794160, hotpink: 16738740, indianred: 13458524, indigo: 4915330, ivory: 16777200, khaki: 15787660, lavender: 15132410, lavenderblush: 16773365, lawngreen: 8190976, lemonchiffon: 16775885, lightblue: 11393254, lightcoral: 15761536, lightcyan: 14745599, lightgoldenrodyellow: 16448210, lightgray: 13882323, lightgreen: 9498256, lightgrey: 13882323, lightpink: 16758465, lightsalmon: 16752762, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 11584734, lightyellow: 16777184, lime: 65280, limegreen: 3329330, linen: 16445670, magenta: 16711935, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 12211667, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 13047173, midnightblue: 1644912, mintcream: 16121850, mistyrose: 16770273, moccasin: 16770229, navajowhite: 16768685, navy: 128, oldlace: 16643558, olive: 8421376, olivedrab: 7048739, orange: 16753920, orangered: 16729344, orchid: 14315734, palegoldenrod: 15657130, palegreen: 10025880, paleturquoise: 11529966, palevioletred: 14381203, papayawhip: 16773077, peachpuff: 16767673, peru: 13468991, pink: 16761035, plum: 14524637, powderblue: 11591910, purple: 8388736, rebeccapurple: 6697881, red: 16711680, rosybrown: 12357519, royalblue: 4286945, saddlebrown: 9127187, salmon: 16416882, sandybrown: 16032864, seagreen: 3050327, seashell: 16774638, sienna: 10506797, silver: 12632256, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 16775930, springgreen: 65407, steelblue: 4620980, tan: 13808780, teal: 32896, thistle: 14204888, tomato: 16737095, turquoise: 4251856, violet: 15631086, wheat: 16113331, white: 16777215, whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 }; -function Txt() { + return this.each((typeof i == "function" ? j5n : $5n)(r, i)); +} }, F_t, K_t); +var sZ = 0.7, Nde = 1 / sZ, O$ = "\\s*([+-]?\\d+)\\s*", dee = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", o9 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", z5n = /^#([0-9a-f]{3,8})$/, X5n = new RegExp(tt(bxt = "^rgb\\(".concat(O$, ",").concat(O$, ",")).call(bxt, O$, "\\)$")), G5n = new RegExp(tt(yxt = "^rgb\\(".concat(o9, ",").concat(o9, ",")).call(yxt, o9, "\\)$")), V5n = new RegExp(tt(wxt = tt(vxt = "^rgba\\(".concat(O$, ",").concat(O$, ",")).call(vxt, O$, ",")).call(wxt, dee, "\\)$")), W5n = new RegExp(tt(kxt = tt(xxt = "^rgba\\(".concat(o9, ",").concat(o9, ",")).call(xxt, o9, ",")).call(kxt, dee, "\\)$")), q5n = new RegExp(tt(Cxt = "^hsl\\(".concat(dee, ",").concat(o9, ",")).call(Cxt, o9, "\\)$")), Y5n = new RegExp(tt(Txt = tt(Ext = "^hsla\\(".concat(dee, ",").concat(o9, ",")).call(Ext, o9, ",")).call(Txt, dee, "\\)$")), Bxt = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, aquamarine: 8388564, azure: 15794175, beige: 16119260, bisque: 16770244, black: 0, blanchedalmond: 16772045, blue: 255, blueviolet: 9055202, brown: 10824234, burlywood: 14596231, cadetblue: 6266528, chartreuse: 8388352, chocolate: 13789470, coral: 16744272, cornflowerblue: 6591981, cornsilk: 16775388, crimson: 14423100, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 12092939, darkgray: 11119017, darkgreen: 25600, darkgrey: 11119017, darkkhaki: 12433259, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 16747520, darkorchid: 10040012, darkred: 9109504, darksalmon: 15308410, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 16716947, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 11674146, floralwhite: 16775920, forestgreen: 2263842, fuchsia: 16711935, gainsboro: 14474460, ghostwhite: 16316671, gold: 16766720, goldenrod: 14329120, gray: 8421504, green: 32768, greenyellow: 11403055, grey: 8421504, honeydew: 15794160, hotpink: 16738740, indianred: 13458524, indigo: 4915330, ivory: 16777200, khaki: 15787660, lavender: 15132410, lavenderblush: 16773365, lawngreen: 8190976, lemonchiffon: 16775885, lightblue: 11393254, lightcoral: 15761536, lightcyan: 14745599, lightgoldenrodyellow: 16448210, lightgray: 13882323, lightgreen: 9498256, lightgrey: 13882323, lightpink: 16758465, lightsalmon: 16752762, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 11584734, lightyellow: 16777184, lime: 65280, limegreen: 3329330, linen: 16445670, magenta: 16711935, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 12211667, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 13047173, midnightblue: 1644912, mintcream: 16121850, mistyrose: 16770273, moccasin: 16770229, navajowhite: 16768685, navy: 128, oldlace: 16643558, olive: 8421376, olivedrab: 7048739, orange: 16753920, orangered: 16729344, orchid: 14315734, palegoldenrod: 15657130, palegreen: 10025880, paleturquoise: 11529966, palevioletred: 14381203, papayawhip: 16773077, peachpuff: 16767673, peru: 13468991, pink: 16761035, plum: 14524637, powderblue: 11591910, purple: 8388736, rebeccapurple: 6697881, red: 16711680, rosybrown: 12357519, royalblue: 4286945, saddlebrown: 9127187, salmon: 16416882, sandybrown: 16032864, seagreen: 3050327, seashell: 16774638, sienna: 10506797, silver: 12632256, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 16775930, springgreen: 65407, steelblue: 4620980, tan: 13808780, teal: 32896, thistle: 14204888, tomato: 16737095, turquoise: 4251856, violet: 15631086, wheat: 16113331, white: 16777215, whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 }; +function _xt() { return this.rgb().formatHex(); } -function Ext() { +function Sxt() { return this.rgb().formatRgb(); } -function JN(r) { +function ZN(r) { var i, o, l; - return r = fo(i = r + "").call(i).toLowerCase(), (o = F5n.exec(r)) ? (l = o[1].length, o = Fb(o[1], 16), l === 6 ? Bxt(o) : l === 3 ? new Mb(o >> 8 & 15 | o >> 4 & 240, o >> 4 & 15 | 240 & o, (15 & o) << 4 | 15 & o, 1) : l === 8 ? Dde(o >> 24 & 255, o >> 16 & 255, o >> 8 & 255, (255 & o) / 255) : l === 4 ? Dde(o >> 12 & 15 | o >> 8 & 240, o >> 8 & 15 | o >> 4 & 240, o >> 4 & 15 | 240 & o, ((15 & o) << 4 | 15 & o) / 255) : null) : (o = D5n.exec(r)) ? new Mb(o[1], o[2], o[3], 1) : (o = O5n.exec(r)) ? new Mb(255 * o[1] / 100, 255 * o[2] / 100, 255 * o[3] / 100, 1) : (o = N5n.exec(r)) ? Dde(o[1], o[2], o[3], o[4]) : (o = Q5n.exec(r)) ? Dde(255 * o[1] / 100, 255 * o[2] / 100, 255 * o[3] / 100, o[4]) : (o = P5n.exec(r)) ? Lxt(o[1], o[2] / 100, o[3] / 100, 1) : (o = R5n.exec(r)) ? Lxt(o[1], o[2] / 100, o[3] / 100, o[4]) : Cxt.hasOwnProperty(r) ? Bxt(Cxt[r]) : r === "transparent" ? new Mb(NaN, NaN, NaN, 0) : null; + return r = uo(i = r + "").call(i).toLowerCase(), (o = z5n.exec(r)) ? (l = o[1].length, o = Fb(o[1], 16), l === 6 ? Lxt(o) : l === 3 ? new Mb(o >> 8 & 15 | o >> 4 & 240, o >> 4 & 15 | 240 & o, (15 & o) << 4 | 15 & o, 1) : l === 8 ? Qde(o >> 24 & 255, o >> 16 & 255, o >> 8 & 255, (255 & o) / 255) : l === 4 ? Qde(o >> 12 & 15 | o >> 8 & 240, o >> 8 & 15 | o >> 4 & 240, o >> 4 & 15 | 240 & o, ((15 & o) << 4 | 15 & o) / 255) : null) : (o = X5n.exec(r)) ? new Mb(o[1], o[2], o[3], 1) : (o = G5n.exec(r)) ? new Mb(255 * o[1] / 100, 255 * o[2] / 100, 255 * o[3] / 100, 1) : (o = V5n.exec(r)) ? Qde(o[1], o[2], o[3], o[4]) : (o = W5n.exec(r)) ? Qde(255 * o[1] / 100, 255 * o[2] / 100, 255 * o[3] / 100, o[4]) : (o = q5n.exec(r)) ? Fxt(o[1], o[2] / 100, o[3] / 100, 1) : (o = Y5n.exec(r)) ? Fxt(o[1], o[2] / 100, o[3] / 100, o[4]) : Bxt.hasOwnProperty(r) ? Lxt(Bxt[r]) : r === "transparent" ? new Mb(NaN, NaN, NaN, 0) : null; } -function Bxt(r) { +function Lxt(r) { return new Mb(r >> 16 & 255, r >> 8 & 255, 255 & r, 1); } -function Dde(r, i, o, l) { +function Qde(r, i, o, l) { return l <= 0 && (r = i = o = NaN), new Mb(r, i, o, l); } -function $_t(r) { - return r instanceof $N || (r = JN(r)), r ? new Mb((r = r.rgb()).r, r.g, r.b, r.opacity) : new Mb(); +function X_t(r) { + return r instanceof jN || (r = ZN(r)), r ? new Mb((r = r.rgb()).r, r.g, r.b, r.opacity) : new Mb(); } -function qFe(r, i, o, l) { - return arguments.length === 1 ? $_t(r) : new Mb(r, i, o, l ?? 1); +function eDe(r, i, o, l) { + return arguments.length === 1 ? X_t(r) : new Mb(r, i, o, l ?? 1); } function Mb(r, i, o, l) { this.r = +r, this.g = +i, this.b = +o, this.opacity = +l; } -function _xt() { +function Mxt() { var r, i; - return tt(r = tt(i = "#".concat(QN(this.r))).call(i, QN(this.g))).call(r, QN(this.b)); + return tt(r = tt(i = "#".concat(PN(this.r))).call(i, PN(this.g))).call(r, PN(this.b)); } -function Sxt() { - var r, i, o, l, h = TAe(this.opacity); - return tt(r = tt(i = tt(o = tt(l = "".concat(h === 1 ? "rgb(" : "rgba(")).call(l, jN(this.r), ", ")).call(o, jN(this.g), ", ")).call(i, jN(this.b))).call(r, h === 1 ? ")" : ", ".concat(h, ")")); +function Ixt() { + var r, i, o, l, u = _Ae(this.opacity); + return tt(r = tt(i = tt(o = tt(l = "".concat(u === 1 ? "rgb(" : "rgba(")).call(l, KN(this.r), ", ")).call(o, KN(this.g), ", ")).call(i, KN(this.b))).call(r, u === 1 ? ")" : ", ".concat(u, ")")); } -function TAe(r) { +function _Ae(r) { return isNaN(r) ? 1 : Math.max(0, Math.min(1, r)); } -function jN(r) { +function KN(r) { return Math.max(0, Math.min(255, Math.round(r) || 0)); } -function QN(r) { - return ((r = jN(r)) < 16 ? "0" : "") + r.toString(16); +function PN(r) { + return ((r = KN(r)) < 16 ? "0" : "") + r.toString(16); } -function Lxt(r, i, o, l) { - return l <= 0 ? r = i = o = NaN : o <= 0 || o >= 1 ? r = i = NaN : i <= 0 && (r = NaN), new s8(r, i, o, l); +function Fxt(r, i, o, l) { + return l <= 0 ? r = i = o = NaN : o <= 0 || o >= 1 ? r = i = NaN : i <= 0 && (r = NaN), new c8(r, i, o, l); } -function Mxt(r) { - if (r instanceof s8) - return new s8(r.h, r.s, r.l, r.opacity); - if (r instanceof $N || (r = JN(r)), !r) - return new s8(); - if (r instanceof s8) +function Dxt(r) { + if (r instanceof c8) + return new c8(r.h, r.s, r.l, r.opacity); + if (r instanceof jN || (r = ZN(r)), !r) + return new c8(); + if (r instanceof c8) return r; - var i = (r = r.rgb()).r / 255, o = r.g / 255, l = r.b / 255, h = Math.min(i, o, l), g = Math.max(i, o, l), d = NaN, b = g - h, y = (g + h) / 2; - return b ? (d = i === g ? (o - l) / b + 6 * (o < l) : o === g ? (l - i) / b + 2 : (i - o) / b + 4, b /= y < 0.5 ? g + h : 2 - g - h, d *= 60) : b = y > 0 && y < 1 ? 0 : d, new s8(d, b, y, r.opacity); + var i = (r = r.rgb()).r / 255, o = r.g / 255, l = r.b / 255, u = Math.min(i, o, l), g = Math.max(i, o, l), d = NaN, b = g - u, y = (g + u) / 2; + return b ? (d = i === g ? (o - l) / b + 6 * (o < l) : o === g ? (l - i) / b + 2 : (i - o) / b + 4, b /= y < 0.5 ? g + u : 2 - g - u, d *= 60) : b = y > 0 && y < 1 ? 0 : d, new c8(d, b, y, r.opacity); } -function s8(r, i, o, l) { +function c8(r, i, o, l) { this.h = +r, this.s = +i, this.l = +o, this.opacity = +l; } -function Ixt(r) { +function Oxt(r) { return (r = (r || 0) % 360) < 0 ? r + 360 : r; } -function Ode(r) { +function Pde(r) { return Math.max(0, Math.min(1, r || 0)); } -function BMe(r, i, o) { +function LMe(r, i, o) { return 255 * (r < 60 ? i + (o - i) * r / 60 : r < 180 ? o : r < 240 ? i + (o - i) * (240 - r) / 60 : i); } -_Z($N, JN, { copy: function(r) { - return wB(new this.constructor(), this, r); +_Z(jN, ZN, { copy: function(r) { + return vB(new this.constructor(), this, r); }, displayable: function() { return this.rgb().displayable(); -}, hex: Txt, formatHex: Txt, formatHex8: function() { +}, hex: _xt, formatHex: _xt, formatHex8: function() { return this.rgb().formatHex8(); }, formatHsl: function() { - return Mxt(this).formatHsl(); -}, formatRgb: Ext, toString: Ext }), _Z(Mb, qFe, Q0e($N, { brighter: function(r) { - return r = r == null ? Fde : Math.pow(Fde, r), new Mb(this.r * r, this.g * r, this.b * r, this.opacity); + return Dxt(this).formatHsl(); +}, formatRgb: Sxt, toString: Sxt }), _Z(Mb, eDe, R0e(jN, { brighter: function(r) { + return r = r == null ? Nde : Math.pow(Nde, r), new Mb(this.r * r, this.g * r, this.b * r, this.opacity); }, darker: function(r) { return r = r == null ? sZ : Math.pow(sZ, r), new Mb(this.r * r, this.g * r, this.b * r, this.opacity); }, rgb: function() { return this; }, clamp: function() { - return new Mb(jN(this.r), jN(this.g), jN(this.b), TAe(this.opacity)); + return new Mb(KN(this.r), KN(this.g), KN(this.b), _Ae(this.opacity)); }, displayable: function() { return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1; -}, hex: _xt, formatHex: _xt, formatHex8: function() { +}, hex: Mxt, formatHex: Mxt, formatHex8: function() { var r, i, o; - return tt(r = tt(i = tt(o = "#".concat(QN(this.r))).call(o, QN(this.g))).call(i, QN(this.b))).call(r, QN(255 * (isNaN(this.opacity) ? 1 : this.opacity))); -}, formatRgb: Sxt, toString: Sxt })), _Z(s8, function(r, i, o, l) { - return arguments.length === 1 ? Mxt(r) : new s8(r, i, o, l ?? 1); -}, Q0e($N, { brighter: function(r) { - return r = r == null ? Fde : Math.pow(Fde, r), new s8(this.h, this.s, this.l * r, this.opacity); + return tt(r = tt(i = tt(o = "#".concat(PN(this.r))).call(o, PN(this.g))).call(i, PN(this.b))).call(r, PN(255 * (isNaN(this.opacity) ? 1 : this.opacity))); +}, formatRgb: Ixt, toString: Ixt })), _Z(c8, function(r, i, o, l) { + return arguments.length === 1 ? Dxt(r) : new c8(r, i, o, l ?? 1); +}, R0e(jN, { brighter: function(r) { + return r = r == null ? Nde : Math.pow(Nde, r), new c8(this.h, this.s, this.l * r, this.opacity); }, darker: function(r) { - return r = r == null ? sZ : Math.pow(sZ, r), new s8(this.h, this.s, this.l * r, this.opacity); + return r = r == null ? sZ : Math.pow(sZ, r), new c8(this.h, this.s, this.l * r, this.opacity); }, rgb: function() { - var r = this.h % 360 + 360 * (this.h < 0), i = isNaN(r) || isNaN(this.s) ? 0 : this.s, o = this.l, l = o + (o < 0.5 ? o : 1 - o) * i, h = 2 * o - l; - return new Mb(BMe(r >= 240 ? r - 240 : r + 120, h, l), BMe(r, h, l), BMe(r < 120 ? r + 240 : r - 120, h, l), this.opacity); + var r = this.h % 360 + 360 * (this.h < 0), i = isNaN(r) || isNaN(this.s) ? 0 : this.s, o = this.l, l = o + (o < 0.5 ? o : 1 - o) * i, u = 2 * o - l; + return new Mb(LMe(r >= 240 ? r - 240 : r + 120, u, l), LMe(r, u, l), LMe(r < 120 ? r + 240 : r - 120, u, l), this.opacity); }, clamp: function() { - return new s8(Ixt(this.h), Ode(this.s), Ode(this.l), TAe(this.opacity)); + return new c8(Oxt(this.h), Pde(this.s), Pde(this.l), _Ae(this.opacity)); }, displayable: function() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1; }, formatHsl: function() { - var r, i, o, l, h = TAe(this.opacity); - return tt(r = tt(i = tt(o = tt(l = "".concat(h === 1 ? "hsl(" : "hsla(")).call(l, Ixt(this.h), ", ")).call(o, 100 * Ode(this.s), "%, ")).call(i, 100 * Ode(this.l), "%")).call(r, h === 1 ? ")" : ", ".concat(h, ")")); + var r, i, o, l, u = _Ae(this.opacity); + return tt(r = tt(i = tt(o = tt(l = "".concat(u === 1 ? "hsl(" : "hsla(")).call(l, Oxt(this.h), ", ")).call(o, 100 * Pde(this.s), "%, ")).call(i, 100 * Pde(this.l), "%")).call(r, u === 1 ? ")" : ", ".concat(u, ")")); } })); -var U5n = Math.PI / 180, H5n = 180 / Math.PI, j_t = 0.96422, K_t = 1, z_t = 0.82521, X_t = 4 / 29, O$ = 6 / 29, G_t = 3 * O$ * O$, $5n = O$ * O$ * O$; -function V_t(r) { - if (r instanceof e9) - return new e9(r.l, r.a, r.b, r.opacity); - if (r instanceof AB) - return W_t(r); - r instanceof Mb || (r = $_t(r)); - var i, o, l = MMe(r.r), h = MMe(r.g), g = MMe(r.b), d = _Me((0.2225045 * l + 0.7168786 * h + 0.0606169 * g) / K_t); - return l === h && h === g ? i = o = d : (i = _Me((0.4360747 * l + 0.3850649 * h + 0.1430804 * g) / j_t), o = _Me((0.0139322 * l + 0.0971045 * h + 0.7141733 * g) / z_t)), new e9(116 * d - 16, 500 * (i - d), 200 * (d - o), r.opacity); -} -function e9(r, i, o, l) { +var J5n = Math.PI / 180, Z5n = 180 / Math.PI, G_t = 0.96422, V_t = 1, W_t = 0.82521, q_t = 4 / 29, N$ = 6 / 29, Y_t = 3 * N$ * N$, e6n = N$ * N$ * N$; +function J_t(r) { + if (r instanceof t9) + return new t9(r.l, r.a, r.b, r.opacity); + if (r instanceof gB) + return Z_t(r); + r instanceof Mb || (r = X_t(r)); + var i, o, l = DMe(r.r), u = DMe(r.g), g = DMe(r.b), d = MMe((0.2225045 * l + 0.7168786 * u + 0.0606169 * g) / V_t); + return l === u && u === g ? i = o = d : (i = MMe((0.4360747 * l + 0.3850649 * u + 0.1430804 * g) / G_t), o = MMe((0.0139322 * l + 0.0971045 * u + 0.7141733 * g) / W_t)), new t9(116 * d - 16, 500 * (i - d), 200 * (d - o), r.opacity); +} +function t9(r, i, o, l) { this.l = +r, this.a = +i, this.b = +o, this.opacity = +l; } -function _Me(r) { - return r > $5n ? Math.pow(r, 1 / 3) : r / G_t + X_t; +function MMe(r) { + return r > e6n ? Math.pow(r, 1 / 3) : r / Y_t + q_t; } -function SMe(r) { - return r > O$ ? r * r * r : G_t * (r - X_t); +function IMe(r) { + return r > N$ ? r * r * r : Y_t * (r - q_t); } -function LMe(r) { +function FMe(r) { return 255 * (r <= 31308e-7 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - 0.055); } -function MMe(r) { +function DMe(r) { return (r /= 255) <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4); } -function YFe(r, i, o, l) { - return arguments.length === 1 ? function(h) { - if (h instanceof AB) - return new AB(h.h, h.c, h.l, h.opacity); - if (h instanceof e9 || (h = V_t(h)), h.a === 0 && h.b === 0) - return new AB(NaN, 0 < h.l && h.l < 100 ? 0 : NaN, h.l, h.opacity); - var g = Math.atan2(h.b, h.a) * H5n; - return new AB(g < 0 ? g + 360 : g, Math.sqrt(h.a * h.a + h.b * h.b), h.l, h.opacity); - }(r) : new AB(r, i, o, l ?? 1); -} -function AB(r, i, o, l) { +function tDe(r, i, o, l) { + return arguments.length === 1 ? function(u) { + if (u instanceof gB) + return new gB(u.h, u.c, u.l, u.opacity); + if (u instanceof t9 || (u = J_t(u)), u.a === 0 && u.b === 0) + return new gB(NaN, 0 < u.l && u.l < 100 ? 0 : NaN, u.l, u.opacity); + var g = Math.atan2(u.b, u.a) * Z5n; + return new gB(g < 0 ? g + 360 : g, Math.sqrt(u.a * u.a + u.b * u.b), u.l, u.opacity); + }(r) : new gB(r, i, o, l ?? 1); +} +function gB(r, i, o, l) { this.h = +r, this.c = +i, this.l = +o, this.opacity = +l; } -function W_t(r) { +function Z_t(r) { if (isNaN(r.h)) - return new e9(r.l, 0, 0, r.opacity); - var i = r.h * U5n; - return new e9(r.l, Math.cos(i) * r.c, Math.sin(i) * r.c, r.opacity); -} -_Z(e9, function(r, i, o, l) { - return arguments.length === 1 ? V_t(r) : new e9(r, i, o, l ?? 1); -}, Q0e($N, { brighter: function(r) { - return new e9(this.l + 18 * (r ?? 1), this.a, this.b, this.opacity); + return new t9(r.l, 0, 0, r.opacity); + var i = r.h * J5n; + return new t9(r.l, Math.cos(i) * r.c, Math.sin(i) * r.c, r.opacity); +} +_Z(t9, function(r, i, o, l) { + return arguments.length === 1 ? J_t(r) : new t9(r, i, o, l ?? 1); +}, R0e(jN, { brighter: function(r) { + return new t9(this.l + 18 * (r ?? 1), this.a, this.b, this.opacity); }, darker: function(r) { - return new e9(this.l - 18 * (r ?? 1), this.a, this.b, this.opacity); + return new t9(this.l - 18 * (r ?? 1), this.a, this.b, this.opacity); }, rgb: function() { var r = (this.l + 16) / 116, i = isNaN(this.a) ? r : r + this.a / 500, o = isNaN(this.b) ? r : r - this.b / 200; - return new Mb(LMe(3.1338561 * (i = j_t * SMe(i)) - 1.6168667 * (r = K_t * SMe(r)) - 0.4906146 * (o = z_t * SMe(o))), LMe(-0.9787684 * i + 1.9161415 * r + 0.033454 * o), LMe(0.0719453 * i - 0.2289914 * r + 1.4052427 * o), this.opacity); -} })), _Z(AB, YFe, Q0e($N, { brighter: function(r) { - return new AB(this.h, this.c, this.l + 18 * (r ?? 1), this.opacity); + return new Mb(FMe(3.1338561 * (i = G_t * IMe(i)) - 1.6168667 * (r = V_t * IMe(r)) - 0.4906146 * (o = W_t * IMe(o))), FMe(-0.9787684 * i + 1.9161415 * r + 0.033454 * o), FMe(0.0719453 * i - 0.2289914 * r + 1.4052427 * o), this.opacity); +} })), _Z(gB, tDe, R0e(jN, { brighter: function(r) { + return new gB(this.h, this.c, this.l + 18 * (r ?? 1), this.opacity); }, darker: function(r) { - return new AB(this.h, this.c, this.l - 18 * (r ?? 1), this.opacity); + return new gB(this.h, this.c, this.l - 18 * (r ?? 1), this.opacity); }, rgb: function() { - return W_t(this).rgb(); + return Z_t(this).rgb(); } })); -var Uge = function(r) { +var $ge = function(r) { return function() { return r; }; }; -function q_t(r, i) { +function eSt(r, i) { return function(o) { return r + o * i; }; } -function j5n(r) { +function t6n(r) { return (r = +r) == 1 ? SZ : function(i, o) { - return o - i ? function(l, h, g) { - return l = Math.pow(l, g), h = Math.pow(h, g) - l, g = 1 / g, function(d) { - return Math.pow(l + d * h, g); + return o - i ? function(l, u, g) { + return l = Math.pow(l, g), u = Math.pow(u, g) - l, g = 1 / g, function(d) { + return Math.pow(l + d * u, g); }; - }(i, o, r) : Uge(isNaN(i) ? o : i); + }(i, o, r) : $ge(isNaN(i) ? o : i); }; } function SZ(r, i) { var o = i - r; - return o ? q_t(r, o) : Uge(isNaN(r) ? i : r); + return o ? eSt(r, o) : $ge(isNaN(r) ? i : r); } -var P0e = function r(i) { - var o = j5n(i); - function l(h, g) { - var d = o((h = qFe(h)).r, (g = qFe(g)).r), b = o(h.g, g.g), y = o(h.b, g.b), k = SZ(h.opacity, g.opacity); +var U0e = function r(i) { + var o = t6n(i); + function l(u, g) { + var d = o((u = eDe(u)).r, (g = eDe(g)).r), b = o(u.g, g.g), y = o(u.b, g.b), k = SZ(u.opacity, g.opacity); return function(C) { - return h.r = d(C), h.g = b(C), h.b = y(C), h.opacity = k(C), h + ""; + return u.r = d(C), u.g = b(C), u.b = y(C), u.opacity = k(C), u + ""; }; } return l.gamma = r, l; }(1); -function K5n(r, i) { +function n6n(r, i) { i || (i = []); - var o, l = r ? Math.min(i.length, r.length) : 0, h = Zi(i).call(i); + var o, l = r ? Math.min(i.length, r.length) : 0, u = Zi(i).call(i); return function(g) { for (o = 0; o < l; ++o) - h[o] = r[o] * (1 - g) + i[o] * g; - return h; + u[o] = r[o] * (1 - g) + i[o] * g; + return u; }; } -function z5n(r, i) { - var o, l = i ? i.length : 0, h = r ? Math.min(l, r.length) : 0, g = new Array(h), d = new Array(l); - for (o = 0; o < h; ++o) - g[o] = dNe(r[o], i[o]); +function r6n(r, i) { + var o, l = i ? i.length : 0, u = r ? Math.min(l, r.length) : 0, g = new Array(u), d = new Array(l); + for (o = 0; o < u; ++o) + g[o] = gNe(r[o], i[o]); for (; o < l; ++o) d[o] = i[o]; return function(b) { - for (o = 0; o < h; ++o) + for (o = 0; o < u; ++o) d[o] = g[o](b); return d; }; } -function X5n(r, i) { +function i6n(r, i) { var o = /* @__PURE__ */ new Date(); return r = +r, i = +i, function(l) { return o.setTime(r * (1 - l) + i * l), o; }; } -function i8(r, i) { +function a8(r, i) { return r = +r, i = +i, function(o) { return r * (1 - o) + i * o; }; } -function G5n(r, i) { - var o, l = {}, h = {}; - for (o in r !== null && Zc(r) === "object" || (r = {}), i !== null && Zc(i) === "object" || (i = {}), i) - o in r ? l[o] = dNe(r[o], i[o]) : h[o] = i[o]; +function a6n(r, i) { + var o, l = {}, u = {}; + for (o in r !== null && Xc(r) === "object" || (r = {}), i !== null && Xc(i) === "object" || (i = {}), i) + o in r ? l[o] = gNe(r[o], i[o]) : u[o] = i[o]; return function(g) { for (o in l) - h[o] = l[o](g); - return h; + u[o] = l[o](g); + return u; }; } -var JFe = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, IMe = new RegExp(JFe.source, "g"); -function Y_t(r, i) { - var o, l, h, g = JFe.lastIndex = IMe.lastIndex = 0, d = -1, b = [], y = []; - for (r += "", i += ""; (o = JFe.exec(r)) && (l = IMe.exec(i)); ) - (h = l.index) > g && (h = Zi(i).call(i, g, h), b[d] ? b[d] += h : b[++d] = h), (o = o[0]) === (l = l[0]) ? b[d] ? b[d] += l : b[++d] = l : (b[++d] = null, y.push({ i: d, x: i8(o, l) })), g = IMe.lastIndex; - return g < i.length && (h = Zi(i).call(i, g), b[d] ? b[d] += h : b[++d] = h), b.length < 2 ? y[0] ? /* @__PURE__ */ function(k) { +var nDe = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, OMe = new RegExp(nDe.source, "g"); +function tSt(r, i) { + var o, l, u, g = nDe.lastIndex = OMe.lastIndex = 0, d = -1, b = [], y = []; + for (r += "", i += ""; (o = nDe.exec(r)) && (l = OMe.exec(i)); ) + (u = l.index) > g && (u = Zi(i).call(i, g, u), b[d] ? b[d] += u : b[++d] = u), (o = o[0]) === (l = l[0]) ? b[d] ? b[d] += l : b[++d] = l : (b[++d] = null, y.push({ i: d, x: a8(o, l) })), g = OMe.lastIndex; + return g < i.length && (u = Zi(i).call(i, g), b[d] ? b[d] += u : b[++d] = u), b.length < 2 ? y[0] ? /* @__PURE__ */ function(k) { return function(C) { return k(C) + ""; }; @@ -27152,24 +27396,24 @@ function Y_t(r, i) { return b.join(""); }); } -function dNe(r, i) { - var o, l = Zc(i); - return i == null || l === "boolean" ? Uge(i) : (l === "number" ? i8 : l === "string" ? (o = JN(i)) ? (i = o, P0e) : Y_t : i instanceof JN ? P0e : i instanceof Date ? X5n : function(h) { - return ArrayBuffer.isView(h) && !(h instanceof DataView); - }(i) ? K5n : e4(i) ? z5n : typeof i.valueOf != "function" && typeof i.toString != "function" || isNaN(i) ? G5n : i8)(r, i); +function gNe(r, i) { + var o, l = Xc(i); + return i == null || l === "boolean" ? $ge(i) : (l === "number" ? a8 : l === "string" ? (o = ZN(i)) ? (i = o, U0e) : tSt : i instanceof ZN ? U0e : i instanceof Date ? i6n : function(u) { + return ArrayBuffer.isView(u) && !(u instanceof DataView); + }(i) ? n6n : e4(i) ? r6n : typeof i.valueOf != "function" && typeof i.toString != "function" || isNaN(i) ? a6n : a8)(r, i); } -function V5n(r, i) { +function o6n(r, i) { return r = +r, i = +i, function(o) { return Math.round(r * (1 - o) + i * o); }; } -var Nde, Fxt = 180 / Math.PI, ZFe = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 }; -function J_t(r, i, o, l, h, g) { +var Rde, Nxt = 180 / Math.PI, rDe = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 }; +function nSt(r, i, o, l, u, g) { var d, b, y; - return (d = Math.sqrt(r * r + i * i)) && (r /= d, i /= d), (y = r * o + i * l) && (o -= r * y, l -= i * y), (b = Math.sqrt(o * o + l * l)) && (o /= b, l /= b, y /= b), r * l < i * o && (r = -r, i = -i, y = -y, d = -d), { translateX: h, translateY: g, rotate: Math.atan2(i, r) * Fxt, skewX: Math.atan(y) * Fxt, scaleX: d, scaleY: b }; + return (d = Math.sqrt(r * r + i * i)) && (r /= d, i /= d), (y = r * o + i * l) && (o -= r * y, l -= i * y), (b = Math.sqrt(o * o + l * l)) && (o /= b, l /= b, y /= b), r * l < i * o && (r = -r, i = -i, y = -y, d = -d), { translateX: u, translateY: g, rotate: Math.atan2(i, r) * Nxt, skewX: Math.atan(y) * Nxt, scaleX: d, scaleY: b }; } -function Z_t(r, i, o, l) { - function h(g) { +function rSt(r, i, o, l) { + function u(g) { return g.length ? g.pop() + " " : ""; } return function(g, d) { @@ -27177,19 +27421,19 @@ function Z_t(r, i, o, l) { return g = r(g), d = r(d), function(k, C, B, L, M, P) { if (k !== B || C !== L) { var X = M.push("translate(", null, i, null, o); - P.push({ i: X - 4, x: i8(k, B) }, { i: X - 2, x: i8(C, L) }); + P.push({ i: X - 4, x: a8(k, B) }, { i: X - 2, x: a8(C, L) }); } else (B || L) && M.push("translate(" + B + i + L + o); }(g.translateX, g.translateY, d.translateX, d.translateY, b, y), function(k, C, B, L) { - k !== C ? (k - C > 180 ? C += 360 : C - k > 180 && (k += 360), L.push({ i: B.push(h(B) + "rotate(", null, l) - 2, x: i8(k, C) })) : C && B.push(h(B) + "rotate(" + C + l); + k !== C ? (k - C > 180 ? C += 360 : C - k > 180 && (k += 360), L.push({ i: B.push(u(B) + "rotate(", null, l) - 2, x: a8(k, C) })) : C && B.push(u(B) + "rotate(" + C + l); }(g.rotate, d.rotate, b, y), function(k, C, B, L) { - k !== C ? L.push({ i: B.push(h(B) + "skewX(", null, l) - 2, x: i8(k, C) }) : C && B.push(h(B) + "skewX(" + C + l); + k !== C ? L.push({ i: B.push(u(B) + "skewX(", null, l) - 2, x: a8(k, C) }) : C && B.push(u(B) + "skewX(" + C + l); }(g.skewX, d.skewX, b, y), function(k, C, B, L, M, P) { if (k !== B || C !== L) { - var X = M.push(h(M) + "scale(", null, ",", null, ")"); - P.push({ i: X - 4, x: i8(k, B) }, { i: X - 2, x: i8(C, L) }); + var X = M.push(u(M) + "scale(", null, ",", null, ")"); + P.push({ i: X - 4, x: a8(k, B) }, { i: X - 2, x: a8(C, L) }); } else - B === 1 && L === 1 || M.push(h(M) + "scale(" + B + "," + L + ")"); + B === 1 && L === 1 || M.push(u(M) + "scale(" + B + "," + L + ")"); }(g.scaleX, g.scaleY, d.scaleX, d.scaleY, b, y), g = d = null, function(k) { for (var C, B = -1, L = y.length; ++B < L; ) b[(C = y[B]).i] = C.x(k); @@ -27197,76 +27441,76 @@ function Z_t(r, i, o, l) { }; }; } -var W5n = Z_t(function(r) { +var s6n = rSt(function(r) { var i = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(r + ""); - return i.isIdentity ? ZFe : J_t(i.a, i.b, i.c, i.d, i.e, i.f); -}, "px, ", "px)", "deg)"), q5n = Z_t(function(r) { - return r == null ? ZFe : (Nde || (Nde = document.createElementNS("http://www.w3.org/2000/svg", "g")), Nde.setAttribute("transform", r), (r = Nde.transform.baseVal.consolidate()) ? J_t((r = r.matrix).a, r.b, r.c, r.d, r.e, r.f) : ZFe); -}, ", ", ")", ")"), Dxt, EAe, cZ, Y5n = /* @__PURE__ */ function(r) { + return i.isIdentity ? rDe : nSt(i.a, i.b, i.c, i.d, i.e, i.f); +}, "px, ", "px)", "deg)"), c6n = rSt(function(r) { + return r == null ? rDe : (Rde || (Rde = document.createElementNS("http://www.w3.org/2000/svg", "g")), Rde.setAttribute("transform", r), (r = Rde.transform.baseVal.consolidate()) ? nSt((r = r.matrix).a, r.b, r.c, r.d, r.e, r.f) : rDe); +}, ", ", ")", ")"), Qxt, SAe, cZ, l6n = /* @__PURE__ */ function(r) { return function(i, o) { - var l = r((i = YFe(i)).h, (o = YFe(o)).h), h = SZ(i.c, o.c), g = SZ(i.l, o.l), d = SZ(i.opacity, o.opacity); + var l = r((i = tDe(i)).h, (o = tDe(o)).h), u = SZ(i.c, o.c), g = SZ(i.l, o.l), d = SZ(i.opacity, o.opacity); return function(b) { - return i.h = l(b), i.c = h(b), i.l = g(b), i.opacity = d(b), i + ""; + return i.h = l(b), i.c = u(b), i.l = g(b), i.opacity = d(b), i + ""; }; }; }(function(r, i) { var o = i - r; - return o ? q_t(r, o > 180 || o < -180 ? o - 360 * Math.round(o / 360) : o) : Uge(isNaN(r) ? i : r); -}), k$ = 0, lZ = 0, IJ = 0, eSt = 1e3, R0e = 0, KN = 0, Hge = 0, dee = (typeof performance > "u" ? "undefined" : Zc(performance)) === "object" && performance.now ? performance : Date, tSt = (typeof window > "u" ? "undefined" : Zc(window)) === "object" && window.requestAnimationFrame ? Ga(Dxt = window.requestAnimationFrame).call(Dxt, window) : function(r) { + return o ? eSt(r, o > 180 || o < -180 ? o - 360 * Math.round(o / 360) : o) : $ge(isNaN(r) ? i : r); +}), x$ = 0, lZ = 0, IJ = 0, iSt = 1e3, H0e = 0, zN = 0, jge = 0, Aee = (typeof performance > "u" ? "undefined" : Xc(performance)) === "object" && performance.now ? performance : Date, aSt = (typeof window > "u" ? "undefined" : Xc(window)) === "object" && window.requestAnimationFrame ? za(Qxt = window.requestAnimationFrame).call(Qxt, window) : function(r) { ag(r, 17); }; -function ANe() { - return KN || (tSt(J5n), KN = dee.now() + Hge); +function pNe() { + return zN || (aSt(u6n), zN = Aee.now() + jge); } -function J5n() { - KN = 0; +function u6n() { + zN = 0; } -function U0e() { +function $0e() { this._call = this._time = this._next = null; } -function nSt(r, i, o) { - var l = new U0e(); +function oSt(r, i, o) { + var l = new $0e(); return l.restart(r, i, o), l; } -function Oxt() { - KN = (R0e = dee.now()) + Hge, k$ = lZ = 0; +function Pxt() { + zN = (H0e = Aee.now()) + jge, x$ = lZ = 0; try { (function() { - ANe(), ++k$; - for (var r, i = EAe; i; ) - (r = KN - i._time) >= 0 && i._call.call(void 0, r), i = i._next; - --k$; + pNe(), ++x$; + for (var r, i = SAe; i; ) + (r = zN - i._time) >= 0 && i._call.call(void 0, r), i = i._next; + --x$; })(); } finally { - k$ = 0, function() { - for (var r, i, o = EAe, l = 1 / 0; o; ) - o._call ? (l > o._time && (l = o._time), r = o, o = o._next) : (i = o._next, o._next = null, o = r ? r._next = i : EAe = i); - cZ = r, eDe(l); - }(), KN = 0; + x$ = 0, function() { + for (var r, i, o = SAe, l = 1 / 0; o; ) + o._call ? (l > o._time && (l = o._time), r = o, o = o._next) : (i = o._next, o._next = null, o = r ? r._next = i : SAe = i); + cZ = r, iDe(l); + }(), zN = 0; } } -function Z5n() { - var r = dee.now(), i = r - R0e; - i > eSt && (Hge -= i, R0e = r); +function h6n() { + var r = Aee.now(), i = r - H0e; + i > iSt && (jge -= i, H0e = r); } -function eDe(r) { - k$ || (lZ && (lZ = clearTimeout(lZ)), r - KN > 24 ? (r < 1 / 0 && (lZ = ag(Oxt, r - dee.now() - Hge)), IJ && (IJ = clearInterval(IJ))) : (IJ || (R0e = dee.now(), IJ = s_t(Z5n, eSt)), k$ = 1, tSt(Oxt))); +function iDe(r) { + x$ || (lZ && (lZ = clearTimeout(lZ)), r - zN > 24 ? (r < 1 / 0 && (lZ = ag(Pxt, r - Aee.now() - jge)), IJ && (IJ = clearInterval(IJ))) : (IJ || (H0e = Aee.now(), IJ = h_t(h6n, iSt)), x$ = 1, aSt(Pxt))); } -function Nxt(r, i, o) { - var l = new U0e(); - return i = i == null ? 0 : +i, l.restart(function(h) { - l.stop(), r(h + i); +function Rxt(r, i, o) { + var l = new $0e(); + return i = i == null ? 0 : +i, l.restart(function(u) { + l.stop(), r(u + i); }, i, o), l; } -U0e.prototype = nSt.prototype = { constructor: U0e, restart: function(r, i, o) { +$0e.prototype = oSt.prototype = { constructor: $0e, restart: function(r, i, o) { if (typeof r != "function") throw new TypeError("callback is not a function"); - o = (o == null ? ANe() : +o) + (i == null ? 0 : +i), this._next || cZ === this || (cZ ? cZ._next = this : EAe = this, cZ = this), this._call = r, this._time = o, eDe(); + o = (o == null ? pNe() : +o) + (i == null ? 0 : +i), this._next || cZ === this || (cZ ? cZ._next = this : SAe = this, cZ = this), this._call = r, this._time = o, iDe(); }, stop: function() { - this._call && (this._call = null, this._time = 1 / 0, eDe()); + this._call && (this._call = null, this._time = 1 / 0, iDe()); } }; -var e6n = __t("start", "end", "cancel", "interrupt"), t6n = [], rSt = 0, Qxt = 1, tDe = 2, BAe = 3, Pxt = 4, nDe = 5, _Ae = 6; -function SAe(r, i, o, l, h, g) { +var f6n = I_t("start", "end", "cancel", "interrupt"), d6n = [], sSt = 0, Uxt = 1, aDe = 2, LAe = 3, Hxt = 4, oDe = 5, MAe = 6; +function IAe(r, i, o, l, u, g) { var d = r.__transition; if (d) { if (o in d) @@ -27276,61 +27520,61 @@ function SAe(r, i, o, l, h, g) { (function(b, y, k) { var C, B = b.__transition; function L(W) { - k.state = Qxt, k.timer.restart(M, k.delay, k.time), k.delay <= W && M(W - k.delay); + k.state = Uxt, k.timer.restart(M, k.delay, k.time), k.delay <= W && M(W - k.delay); } function M(W) { var N, z, oe, V; - if (k.state !== Qxt) + if (k.state !== Uxt) return X(); for (N in B) if ((V = B[N]).name === k.name) { - if (V.state === BAe) - return Nxt(M); - V.state === Pxt ? (V.state = _Ae, V.timer.stop(), V.on.call("interrupt", b, b.__data__, V.index, V.group), delete B[N]) : +N < y && (V.state = _Ae, V.timer.stop(), V.on.call("cancel", b, b.__data__, V.index, V.group), delete B[N]); - } - if (Nxt(function() { - k.state === BAe && (k.state = Pxt, k.timer.restart(P, k.delay, k.time), P(W)); - }), k.state = tDe, k.on.call("start", b, b.__data__, k.index, k.group), k.state === tDe) { - for (k.state = BAe, C = new Array(oe = k.tween.length), N = 0, z = -1; N < oe; ++N) + if (V.state === LAe) + return Rxt(M); + V.state === Hxt ? (V.state = MAe, V.timer.stop(), V.on.call("interrupt", b, b.__data__, V.index, V.group), delete B[N]) : +N < y && (V.state = MAe, V.timer.stop(), V.on.call("cancel", b, b.__data__, V.index, V.group), delete B[N]); + } + if (Rxt(function() { + k.state === LAe && (k.state = Hxt, k.timer.restart(P, k.delay, k.time), P(W)); + }), k.state = aDe, k.on.call("start", b, b.__data__, k.index, k.group), k.state === aDe) { + for (k.state = LAe, C = new Array(oe = k.tween.length), N = 0, z = -1; N < oe; ++N) (V = k.tween[N].value.call(b, b.__data__, k.index, k.group)) && (C[++z] = V); C.length = z + 1; } } function P(W) { - for (var N = W < k.duration ? k.ease.call(null, W / k.duration) : (k.timer.restart(X), k.state = nDe, 1), z = -1, oe = C.length; ++z < oe; ) + for (var N = W < k.duration ? k.ease.call(null, W / k.duration) : (k.timer.restart(X), k.state = oDe, 1), z = -1, oe = C.length; ++z < oe; ) C[z].call(b, N); - k.state === nDe && (k.on.call("end", b, b.__data__, k.index, k.group), X()); + k.state === oDe && (k.on.call("end", b, b.__data__, k.index, k.group), X()); } function X() { - for (var W in k.state = _Ae, k.timer.stop(), delete B[y], B) + for (var W in k.state = MAe, k.timer.stop(), delete B[y], B) return; delete b.__transition; } - B[y] = k, k.timer = nSt(L, 0, k.time); - })(r, o, { name: i, index: l, group: h, on: e6n, tween: t6n, time: g.time, delay: g.delay, duration: g.duration, ease: g.ease, timer: null, state: rSt }); + B[y] = k, k.timer = oSt(L, 0, k.time); + })(r, o, { name: i, index: l, group: u, on: f6n, tween: d6n, time: g.time, delay: g.delay, duration: g.duration, ease: g.ease, timer: null, state: sSt }); } -function gNe(r, i) { - var o = r8(r, i); - if (o.state > rSt) +function mNe(r, i) { + var o = i8(r, i); + if (o.state > sSt) throw new Error("too late; already scheduled"); return o; } -function t9(r, i) { - var o = r8(r, i); - if (o.state > BAe) +function n9(r, i) { + var o = i8(r, i); + if (o.state > LAe) throw new Error("too late; already running"); return o; } -function r8(r, i) { +function i8(r, i) { var o = r.__transition; if (!o || !(o = o[i])) throw new Error("transition not found"); return o; } -function n6n(r, i) { +function A6n(r, i) { var o, l; return function() { - var h = t9(this, r), g = h.tween; + var u = n9(this, r), g = u.tween; if (g !== o) { for (var d = 0, b = (l = o = g).length; d < b; ++d) if (l[d].name === i) { @@ -27338,86 +27582,86 @@ function n6n(r, i) { break; } } - h.tween = l; + u.tween = l; }; } -function r6n(r, i, o) { - var l, h; +function g6n(r, i, o) { + var l, u; if (typeof o != "function") throw new Error(); return function() { - var g = t9(this, r), d = g.tween; + var g = n9(this, r), d = g.tween; if (d !== l) { var b; - h = Zi(b = l = d).call(b); - for (var y = { name: i, value: o }, k = 0, C = h.length; k < C; ++k) - if (h[k].name === i) { - h[k] = y; + u = Zi(b = l = d).call(b); + for (var y = { name: i, value: o }, k = 0, C = u.length; k < C; ++k) + if (u[k].name === i) { + u[k] = y; break; } - k === C && h.push(y); + k === C && u.push(y); } - g.tween = h; + g.tween = u; }; } -function FMe(r, i, o) { +function NMe(r, i, o) { var l = r._id; return r.each(function() { - var h = t9(this, l); - (h.value || (h.value = {}))[i] = o.apply(this, arguments); - }), function(h) { - return r8(h, l).value[i]; + var u = n9(this, l); + (u.value || (u.value = {}))[i] = o.apply(this, arguments); + }), function(u) { + return i8(u, l).value[i]; }; } -function Rxt(r, i) { +function $xt(r, i) { var o; - return (typeof i == "number" ? i8 : i instanceof JN ? P0e : (o = JN(i)) ? (i = o, P0e) : Y_t)(r, i); + return (typeof i == "number" ? a8 : i instanceof ZN ? U0e : (o = ZN(i)) ? (i = o, U0e) : tSt)(r, i); } -function i6n(r) { +function p6n(r) { return function() { this.removeAttribute(r); }; } -function a6n(r) { +function m6n(r) { return function() { this.removeAttributeNS(r.space, r.local); }; } -function o6n(r, i, o) { - var l, h, g = o + ""; +function b6n(r, i, o) { + var l, u, g = o + ""; return function() { var d = this.getAttribute(r); - return d === g ? null : d === l ? h : h = i(l = d, o); + return d === g ? null : d === l ? u : u = i(l = d, o); }; } -function s6n(r, i, o) { - var l, h, g = o + ""; +function y6n(r, i, o) { + var l, u, g = o + ""; return function() { var d = this.getAttributeNS(r.space, r.local); - return d === g ? null : d === l ? h : h = i(l = d, o); + return d === g ? null : d === l ? u : u = i(l = d, o); }; } -function c6n(r, i, o) { - var l, h, g; +function w6n(r, i, o) { + var l, u, g; return function() { var d, b, y = o(this); if (y != null) - return (d = this.getAttribute(r)) === (b = y + "") ? null : d === l && b === h ? g : (h = b, g = i(l = d, y)); + return (d = this.getAttribute(r)) === (b = y + "") ? null : d === l && b === u ? g : (u = b, g = i(l = d, y)); this.removeAttribute(r); }; } -function l6n(r, i, o) { - var l, h, g; +function v6n(r, i, o) { + var l, u, g; return function() { var d, b, y = o(this); if (y != null) - return (d = this.getAttributeNS(r.space, r.local)) === (b = y + "") ? null : d === l && b === h ? g : (h = b, g = i(l = d, y)); + return (d = this.getAttributeNS(r.space, r.local)) === (b = y + "") ? null : d === l && b === u ? g : (u = b, g = i(l = d, y)); this.removeAttributeNS(r.space, r.local); }; } -function u6n(r, i) { +function k6n(r, i) { var o, l; - function h() { + function u() { var g = i.apply(this, arguments); return g !== l && (o = (l = g) && /* @__PURE__ */ function(d, b) { return function(y) { @@ -27425,11 +27669,11 @@ function u6n(r, i) { }; }(r, g)), o; } - return h._value = i, h; + return u._value = i, u; } -function h6n(r, i) { +function x6n(r, i) { var o, l; - function h() { + function u() { var g = i.apply(this, arguments); return g !== l && (o = (l = g) && /* @__PURE__ */ function(d, b) { return function(y) { @@ -27437,104 +27681,104 @@ function h6n(r, i) { }; }(r, g)), o; } - return h._value = i, h; + return u._value = i, u; } -function f6n(r, i) { +function C6n(r, i) { return function() { - gNe(this, r).delay = +i.apply(this, arguments); + mNe(this, r).delay = +i.apply(this, arguments); }; } -function d6n(r, i) { +function T6n(r, i) { return i = +i, function() { - gNe(this, r).delay = i; + mNe(this, r).delay = i; }; } -function A6n(r, i) { +function E6n(r, i) { return function() { - t9(this, r).duration = +i.apply(this, arguments); + n9(this, r).duration = +i.apply(this, arguments); }; } -function g6n(r, i) { +function B6n(r, i) { return i = +i, function() { - t9(this, r).duration = i; + n9(this, r).duration = i; }; } -function p6n(r, i, o) { - var l, h, g = function(d) { +function _6n(r, i, o) { + var l, u, g = function(d) { var b, y; - return I$(b = fo(y = d + "").call(y).split(/^|\s+/)).call(b, function(k) { + return F$(b = uo(y = d + "").call(y).split(/^|\s+/)).call(b, function(k) { var C = Bl(k).call(k, "."); return C >= 0 && (k = Zi(k).call(k, 0, C)), !k || k === "start"; }); - }(i) ? gNe : t9; + }(i) ? mNe : n9; return function() { var d = g(this, r), b = d.on; - b !== l && (h = (l = b).copy()).on(i, o), d.on = h; + b !== l && (u = (l = b).copy()).on(i, o), d.on = u; }; } -var m6n = hee.prototype.constructor; -function Uxt(r) { +var S6n = fee.prototype.constructor; +function jxt(r) { return function() { this.style.removeProperty(r); }; } -var b6n = 0; -function lB(r, i, o, l) { +var L6n = 0; +function uB(r, i, o, l) { this._groups = r, this._parents = i, this._name = o, this._id = l; } -function iSt() { - return ++b6n; +function cSt() { + return ++L6n; } -var nB = hee.prototype; -lB.prototype = gi({ constructor: lB, select: function(r) { +var rB = fee.prototype; +uB.prototype = Ai({ constructor: uB, select: function(r) { var i = this._name, o = this._id; - typeof r != "function" && (r = WFe(r)); - for (var l = this._groups, h = l.length, g = new Array(h), d = 0; d < h; ++d) + typeof r != "function" && (r = ZFe(r)); + for (var l = this._groups, u = l.length, g = new Array(u), d = 0; d < u; ++d) for (var b, y, k = l[d], C = k.length, B = g[d] = new Array(C), L = 0; L < C; ++L) - (b = k[L]) && (y = r.call(b, b.__data__, L, k)) && ("__data__" in b && (y.__data__ = b.__data__), B[L] = y, SAe(B[L], i, o, L, B, r8(b, o))); - return new lB(g, this._parents, i, o); + (b = k[L]) && (y = r.call(b, b.__data__, L, k)) && ("__data__" in b && (y.__data__ = b.__data__), B[L] = y, IAe(B[L], i, o, L, B, i8(b, o))); + return new uB(g, this._parents, i, o); }, selectAll: function(r) { var i = this._name, o = this._id; - typeof r != "function" && (r = M_t(r)); - for (var l = this._groups, h = l.length, g = [], d = [], b = 0; b < h; ++b) + typeof r != "function" && (r = O_t(r)); + for (var l = this._groups, u = l.length, g = [], d = [], b = 0; b < u; ++b) for (var y, k = l[b], C = k.length, B = 0; B < C; ++B) if (y = k[B]) { - for (var L, M = r.call(y, y.__data__, B, k), P = r8(y, o), X = 0, W = M.length; X < W; ++X) - (L = M[X]) && SAe(L, i, o, X, M, P); + for (var L, M = r.call(y, y.__data__, B, k), P = i8(y, o), X = 0, W = M.length; X < W; ++X) + (L = M[X]) && IAe(L, i, o, X, M, P); g.push(M), d.push(y); } - return new lB(g, d, i, o); -}, selectChild: nB.selectChild, selectChildren: nB.selectChildren, filter: function(r) { - typeof r != "function" && (r = I_t(r)); - for (var i = this._groups, o = i.length, l = new Array(o), h = 0; h < o; ++h) - for (var g, d = i[h], b = d.length, y = l[h] = [], k = 0; k < b; ++k) + return new uB(g, d, i, o); +}, selectChild: rB.selectChild, selectChildren: rB.selectChildren, filter: function(r) { + typeof r != "function" && (r = N_t(r)); + for (var i = this._groups, o = i.length, l = new Array(o), u = 0; u < o; ++u) + for (var g, d = i[u], b = d.length, y = l[u] = [], k = 0; k < b; ++k) (g = d[k]) && r.call(g, g.__data__, k, d) && y.push(g); - return new lB(l, this._parents, this._name, this._id); + return new uB(l, this._parents, this._name, this._id); }, merge: function(r) { if (r._id !== this._id) throw new Error(); - for (var i = this._groups, o = r._groups, l = i.length, h = o.length, g = Math.min(l, h), d = new Array(l), b = 0; b < g; ++b) + for (var i = this._groups, o = r._groups, l = i.length, u = o.length, g = Math.min(l, u), d = new Array(l), b = 0; b < g; ++b) for (var y, k = i[b], C = o[b], B = k.length, L = d[b] = new Array(B), M = 0; M < B; ++M) (y = k[M] || C[M]) && (L[M] = y); for (; b < l; ++b) d[b] = i[b]; - return new lB(d, this._parents, this._name, this._id); + return new uB(d, this._parents, this._name, this._id); }, selection: function() { - return new m6n(this._groups, this._parents); + return new S6n(this._groups, this._parents); }, transition: function() { - for (var r = this._name, i = this._id, o = iSt(), l = this._groups, h = l.length, g = 0; g < h; ++g) + for (var r = this._name, i = this._id, o = cSt(), l = this._groups, u = l.length, g = 0; g < u; ++g) for (var d, b = l[g], y = b.length, k = 0; k < y; ++k) if (d = b[k]) { - var C = r8(d, i); - SAe(d, r, o, k, b, { time: C.time + C.delay + C.duration, delay: 0, duration: C.duration, ease: C.ease }); + var C = i8(d, i); + IAe(d, r, o, k, b, { time: C.time + C.delay + C.duration, delay: 0, duration: C.duration, ease: C.ease }); } - return new lB(l, this._parents, r, o); -}, call: nB.call, nodes: nB.nodes, node: nB.node, size: nB.size, empty: nB.empty, each: nB.each, on: function(r, i) { + return new uB(l, this._parents, r, o); +}, call: rB.call, nodes: rB.nodes, node: rB.node, size: rB.size, empty: rB.empty, each: rB.each, on: function(r, i) { var o = this._id; - return arguments.length < 2 ? r8(this.node(), o).on.on(r) : this.each(p6n(o, r, i)); + return arguments.length < 2 ? i8(this.node(), o).on.on(r) : this.each(_6n(o, r, i)); }, attr: function(r, i) { - var o = O0e(r), l = o === "transform" ? q5n : Rxt; - return this.attrTween(r, typeof i == "function" ? (o.local ? l6n : c6n)(o, l, FMe(this, "attr." + r, i)) : i == null ? (o.local ? a6n : i6n)(o) : (o.local ? s6n : o6n)(o, l, i)); + var o = Q0e(r), l = o === "transform" ? c6n : $xt; + return this.attrTween(r, typeof i == "function" ? (o.local ? v6n : w6n)(o, l, NMe(this, "attr." + r, i)) : i == null ? (o.local ? m6n : p6n)(o) : (o.local ? y6n : b6n)(o, l, i)); }, attrTween: function(r, i) { var o = "attr." + r; if (arguments.length < 2) @@ -27543,32 +27787,32 @@ lB.prototype = gi({ constructor: lB, select: function(r) { return this.tween(o, null); if (typeof i != "function") throw new Error(); - var l = O0e(r); - return this.tween(o, (l.local ? u6n : h6n)(l, i)); + var l = Q0e(r); + return this.tween(o, (l.local ? k6n : x6n)(l, i)); }, style: function(r, i, o) { - var l = (r += "") == "transform" ? W5n : Rxt; - return i == null ? this.styleTween(r, /* @__PURE__ */ function(h, g) { + var l = (r += "") == "transform" ? s6n : $xt; + return i == null ? this.styleTween(r, /* @__PURE__ */ function(u, g) { var d, b, y; return function() { - var k = g$(this, h), C = (this.style.removeProperty(h), g$(this, h)); + var k = p$(this, u), C = (this.style.removeProperty(u), p$(this, u)); return k === C ? null : k === d && C === b ? y : y = g(d = k, b = C); }; - }(r, l)).on("end.style." + r, Uxt(r)) : typeof i == "function" ? this.styleTween(r, /* @__PURE__ */ function(h, g, d) { + }(r, l)).on("end.style." + r, jxt(r)) : typeof i == "function" ? this.styleTween(r, /* @__PURE__ */ function(u, g, d) { var b, y, k; return function() { - var C = g$(this, h), B = d(this), L = B + ""; - return B == null && (this.style.removeProperty(h), L = B = g$(this, h)), C === L ? null : C === b && L === y ? k : (y = L, k = g(b = C, B)); + var C = p$(this, u), B = d(this), L = B + ""; + return B == null && (this.style.removeProperty(u), L = B = p$(this, u)), C === L ? null : C === b && L === y ? k : (y = L, k = g(b = C, B)); }; - }(r, l, FMe(this, "style." + r, i))).each(function(h, g) { + }(r, l, NMe(this, "style." + r, i))).each(function(u, g) { var d, b, y, k, C = "style." + g, B = "end." + C; return function() { - var L = t9(this, h), M = L.on, P = L.value[C] == null ? k || (k = Uxt(g)) : void 0; + var L = n9(this, u), M = L.on, P = L.value[C] == null ? k || (k = jxt(g)) : void 0; M === d && y === P || (b = (d = M).copy()).on(B, y = P), L.on = b; }; - }(this._id, r)) : this.styleTween(r, function(h, g, d) { + }(this._id, r)) : this.styleTween(r, function(u, g, d) { var b, y, k = d + ""; return function() { - var C = g$(this, h); + var C = p$(this, u); return C === k ? null : C === b ? y : y = g(b = C, d); }; }(r, l, i), o).on("end.style." + r, null); @@ -27580,7 +27824,7 @@ lB.prototype = gi({ constructor: lB, select: function(r) { return this.tween(l, null); if (typeof i != "function") throw new Error(); - return this.tween(l, function(h, g, d) { + return this.tween(l, function(u, g, d) { var b, y; function k() { var C = g.apply(this, arguments); @@ -27588,7 +27832,7 @@ lB.prototype = gi({ constructor: lB, select: function(r) { return function(P) { this.style.setProperty(B, L.call(this, P), M); }; - }(h, C, d)), b; + }(u, C, d)), b; } return k._value = g, k; }(r, i, o ?? "")); @@ -27598,7 +27842,7 @@ lB.prototype = gi({ constructor: lB, select: function(r) { var o = i(this); this.textContent = o ?? ""; }; - }(FMe(this, "text", r)) : /* @__PURE__ */ function(i) { + }(NMe(this, "text", r)) : /* @__PURE__ */ function(i) { return function() { this.textContent = i; }; @@ -27612,10 +27856,10 @@ lB.prototype = gi({ constructor: lB, select: function(r) { if (typeof r != "function") throw new Error(); return this.tween(i, function(o) { - var l, h; + var l, u; function g() { var d = o.apply(this, arguments); - return d !== h && (l = (h = d) && /* @__PURE__ */ function(b) { + return d !== u && (l = (u = d) && /* @__PURE__ */ function(b) { return function(y) { this.textContent = b.call(this, y); }; @@ -27636,27 +27880,27 @@ lB.prototype = gi({ constructor: lB, select: function(r) { }, tween: function(r, i) { var o = this._id; if (r += "", arguments.length < 2) { - for (var l, h = r8(this.node(), o).tween, g = 0, d = h.length; g < d; ++g) - if ((l = h[g]).name === r) + for (var l, u = i8(this.node(), o).tween, g = 0, d = u.length; g < d; ++g) + if ((l = u[g]).name === r) return l.value; return null; } - return this.each((i == null ? n6n : r6n)(o, r, i)); + return this.each((i == null ? A6n : g6n)(o, r, i)); }, delay: function(r) { var i = this._id; - return arguments.length ? this.each((typeof r == "function" ? f6n : d6n)(i, r)) : r8(this.node(), i).delay; + return arguments.length ? this.each((typeof r == "function" ? C6n : T6n)(i, r)) : i8(this.node(), i).delay; }, duration: function(r) { var i = this._id; - return arguments.length ? this.each((typeof r == "function" ? A6n : g6n)(i, r)) : r8(this.node(), i).duration; + return arguments.length ? this.each((typeof r == "function" ? E6n : B6n)(i, r)) : i8(this.node(), i).duration; }, ease: function(r) { var i = this._id; return arguments.length ? this.each(function(o, l) { if (typeof l != "function") throw new Error(); return function() { - t9(this, o).ease = l; + n9(this, o).ease = l; }; - }(i, r)) : r8(this.node(), i).ease; + }(i, r)) : i8(this.node(), i).ease; }, easeVarying: function(r) { if (typeof r != "function") throw new Error(); @@ -27665,60 +27909,60 @@ lB.prototype = gi({ constructor: lB, select: function(r) { var l = o.apply(this, arguments); if (typeof l != "function") throw new Error(); - t9(this, i).ease = l; + n9(this, i).ease = l; }; }(this._id, r)); }, end: function() { - var r, i, o = this, l = o._id, h = o.size(); - return new oNe(function(g, d) { + var r, i, o = this, l = o._id, u = o.size(); + return new Gee(function(g, d) { var b = { value: d }, y = { value: function() { - --h == 0 && g(); + --u == 0 && g(); } }; o.each(function() { - var k = t9(this, l), C = k.on; + var k = n9(this, l), C = k.on; C !== r && ((i = (r = C).copy())._.cancel.push(b), i._.interrupt.push(b), i._.end.push(y)), k.on = i; - }), h === 0 && g(); + }), u === 0 && g(); }); -} }, S_t, oI(nB)); -var Hxt, $xt, jxt, y6n = { time: null, delay: 0, duration: 250, ease: function(r) { +} }, F_t, sI(rB)); +var Kxt, zxt, Xxt, M6n = { time: null, delay: 0, duration: 250, ease: function(r) { return ((r *= 2) <= 1 ? r * r * r : (r -= 2) * r * r + 2) / 2; } }; -function w6n(r, i) { +function I6n(r, i) { for (var o; !(o = r.__transition) || !(o = o[i]); ) if (!(r = r.parentNode)) throw new Error("transition ".concat(i, " not found")); return o; } -function DMe(r) { +function QMe(r) { return { type: r }; } -hee.prototype.interrupt = function(r) { +fee.prototype.interrupt = function(r) { return this.each(function() { (function(i, o) { - var l, h, g, d = i.__transition, b = !0; + var l, u, g, d = i.__transition, b = !0; if (d) { for (g in o = o == null ? null : o + "", d) - (l = d[g]).name === o ? (h = l.state > tDe && l.state < nDe, l.state = _Ae, l.timer.stop(), l.on.call(h ? "interrupt" : "cancel", i, i.__data__, l.index, l.group), delete d[g]) : b = !1; + (l = d[g]).name === o ? (u = l.state > aDe && l.state < oDe, l.state = MAe, l.timer.stop(), l.on.call(u ? "interrupt" : "cancel", i, i.__data__, l.index, l.group), delete d[g]) : b = !1; b && delete i.__transition; } })(this, r); }); -}, hee.prototype.transition = function(r) { +}, fee.prototype.transition = function(r) { var i, o; - r instanceof lB ? (i = r._id, r = r._name) : (i = iSt(), (o = y6n).time = ANe(), r = r == null ? null : r + ""); - for (var l = this._groups, h = l.length, g = 0; g < h; ++g) + r instanceof uB ? (i = r._id, r = r._name) : (i = cSt(), (o = M6n).time = pNe(), r = r == null ? null : r + ""); + for (var l = this._groups, u = l.length, g = 0; g < u; ++g) for (var d, b = l[g], y = b.length, k = 0; k < y; ++k) - (d = b[k]) && SAe(d, r, i, k, b, o || w6n(d, i)); - return new lB(l, this._parents, r, i); -}, us(Hxt = ["w", "e"]).call(Hxt, DMe), us($xt = ["n", "s"]).call($xt, DMe), us(jxt = ["n", "w", "e", "s", "nw", "ne", "sw", "se"]).call(jxt, DMe); -var rDe = Math.PI, iDe = 2 * rDe, xN = 1e-6, v6n = iDe - xN; -function aDe() { + (d = b[k]) && IAe(d, r, i, k, b, o || I6n(d, i)); + return new uB(l, this._parents, r, i); +}, Wo(Kxt = ["w", "e"]).call(Kxt, QMe), Wo(zxt = ["n", "s"]).call(zxt, QMe), Wo(Xxt = ["n", "w", "e", "s", "nw", "ne", "sw", "se"]).call(Xxt, QMe); +var sDe = Math.PI, cDe = 2 * sDe, CN = 1e-6, F6n = cDe - CN; +function lDe() { this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; } -function pNe() { - return new aDe(); +function bNe() { + return new lDe(); } -aDe.prototype = pNe.prototype = { constructor: aDe, moveTo: function(r, i) { +lDe.prototype = bNe.prototype = { constructor: lDe, moveTo: function(r, i) { this._ += "M" + (this._x0 = this._x1 = +r) + "," + (this._y0 = this._y1 = +i); }, closePath: function() { this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z"); @@ -27726,69 +27970,69 @@ aDe.prototype = pNe.prototype = { constructor: aDe, moveTo: function(r, i) { this._ += "L" + (this._x1 = +r) + "," + (this._y1 = +i); }, quadraticCurveTo: function(r, i, o, l) { this._ += "Q" + +r + "," + +i + "," + (this._x1 = +o) + "," + (this._y1 = +l); -}, bezierCurveTo: function(r, i, o, l, h, g) { - this._ += "C" + +r + "," + +i + "," + +o + "," + +l + "," + (this._x1 = +h) + "," + (this._y1 = +g); -}, arcTo: function(r, i, o, l, h) { - r = +r, i = +i, o = +o, l = +l, h = +h; +}, bezierCurveTo: function(r, i, o, l, u, g) { + this._ += "C" + +r + "," + +i + "," + +o + "," + +l + "," + (this._x1 = +u) + "," + (this._y1 = +g); +}, arcTo: function(r, i, o, l, u) { + r = +r, i = +i, o = +o, l = +l, u = +u; var g = this._x1, d = this._y1, b = o - r, y = l - i, k = g - r, C = d - i, B = k * k + C * C; - if (h < 0) - throw new Error("negative radius: " + h); + if (u < 0) + throw new Error("negative radius: " + u); if (this._x1 === null) this._ += "M" + (this._x1 = r) + "," + (this._y1 = i); - else if (B > xN) - if (Math.abs(C * b - y * k) > xN && h) { - var L = o - g, M = l - d, P = b * b + y * y, X = L * L + M * M, W = Math.sqrt(P), N = Math.sqrt(B), z = h * Math.tan((rDe - Math.acos((P + B - X) / (2 * W * N))) / 2), oe = z / N, V = z / W; - Math.abs(oe - 1) > xN && (this._ += "L" + (r + oe * k) + "," + (i + oe * C)), this._ += "A" + h + "," + h + ",0,0," + +(C * L > k * M) + "," + (this._x1 = r + V * b) + "," + (this._y1 = i + V * y); + else if (B > CN) + if (Math.abs(C * b - y * k) > CN && u) { + var L = o - g, M = l - d, P = b * b + y * y, X = L * L + M * M, W = Math.sqrt(P), N = Math.sqrt(B), z = u * Math.tan((sDe - Math.acos((P + B - X) / (2 * W * N))) / 2), oe = z / N, V = z / W; + Math.abs(oe - 1) > CN && (this._ += "L" + (r + oe * k) + "," + (i + oe * C)), this._ += "A" + u + "," + u + ",0,0," + +(C * L > k * M) + "," + (this._x1 = r + V * b) + "," + (this._y1 = i + V * y); } else this._ += "L" + (this._x1 = r) + "," + (this._y1 = i); -}, arc: function(r, i, o, l, h, g) { +}, arc: function(r, i, o, l, u, g) { r = +r, i = +i, g = !!g; - var d = (o = +o) * Math.cos(l), b = o * Math.sin(l), y = r + d, k = i + b, C = 1 ^ g, B = g ? l - h : h - l; + var d = (o = +o) * Math.cos(l), b = o * Math.sin(l), y = r + d, k = i + b, C = 1 ^ g, B = g ? l - u : u - l; if (o < 0) throw new Error("negative radius: " + o); - this._x1 === null ? this._ += "M" + y + "," + k : (Math.abs(this._x1 - y) > xN || Math.abs(this._y1 - k) > xN) && (this._ += "L" + y + "," + k), o && (B < 0 && (B = B % iDe + iDe), B > v6n ? this._ += "A" + o + "," + o + ",0,1," + C + "," + (r - d) + "," + (i - b) + "A" + o + "," + o + ",0,1," + C + "," + (this._x1 = y) + "," + (this._y1 = k) : B > xN && (this._ += "A" + o + "," + o + ",0," + +(B >= rDe) + "," + C + "," + (this._x1 = r + o * Math.cos(h)) + "," + (this._y1 = i + o * Math.sin(h)))); + this._x1 === null ? this._ += "M" + y + "," + k : (Math.abs(this._x1 - y) > CN || Math.abs(this._y1 - k) > CN) && (this._ += "L" + y + "," + k), o && (B < 0 && (B = B % cDe + cDe), B > F6n ? this._ += "A" + o + "," + o + ",0,1," + C + "," + (r - d) + "," + (i - b) + "A" + o + "," + o + ",0,1," + C + "," + (this._x1 = y) + "," + (this._y1 = k) : B > CN && (this._ += "A" + o + "," + o + ",0," + +(B >= sDe) + "," + C + "," + (this._x1 = r + o * Math.cos(u)) + "," + (this._y1 = i + o * Math.sin(u)))); }, rect: function(r, i, o, l) { this._ += "M" + (this._x0 = this._x1 = +r) + "," + (this._y0 = this._y1 = +i) + "h" + +o + "v" + +l + "h" + -o + "Z"; }, toString: function() { return this._; } }; -var Kxt = Math.hypot, k6n = Math.abs, x6n = Math.sqrt, C6n = !!Kxt && Kxt(1 / 0, NaN) !== 1 / 0; -ba({ target: "Math", stat: !0, arity: 2, forced: C6n }, { hypot: function(r, i) { - for (var o, l, h = 0, g = 0, d = arguments.length, b = 0; g < d; ) - b < (o = k6n(arguments[g++])) ? (h = h * (l = b / o) * l + 1, b = o) : h += o > 0 ? (l = o / b) * l : o; - return b === 1 / 0 ? 1 / 0 : b * x6n(h); -} }), Jc.Math.hypot; -function H0e(r, i) { +var Gxt = Math.hypot, D6n = Math.abs, O6n = Math.sqrt, N6n = !!Gxt && Gxt(1 / 0, NaN) !== 1 / 0; +ya({ target: "Math", stat: !0, arity: 2, forced: N6n }, { hypot: function(r, i) { + for (var o, l, u = 0, g = 0, d = arguments.length, b = 0; g < d; ) + b < (o = D6n(arguments[g++])) ? (u = u * (l = b / o) * l + 1, b = o) : u += o > 0 ? (l = o / b) * l : o; + return b === 1 / 0 ? 1 / 0 : b * O6n(u); +} }), zc.Math.hypot; +function j0e(r, i) { var o; if ((l = Bl(o = r = i ? r.toExponential(i - 1) : r.toExponential()).call(o, "e")) < 0) return null; - var l, h = Zi(r).call(r, 0, l); - return [h.length > 1 ? h[0] + Zi(h).call(h, 2) : h, +Zi(r).call(r, l + 1)]; + var l, u = Zi(r).call(r, 0, l); + return [u.length > 1 ? u[0] + Zi(u).call(u, 2) : u, +Zi(r).call(r, l + 1)]; } -function p$(r) { - return (r = H0e(Math.abs(r))) ? r[1] : NaN; +function m$(r) { + return (r = j0e(Math.abs(r))) ? r[1] : NaN; } -var aSt, T6n = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; -function $0e(r) { +var lSt, Q6n = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; +function K0e(r) { var i, o; - if (!(o = T6n.exec(r))) + if (!(o = Q6n.exec(r))) throw new Error("invalid format: " + r); - return new oDe({ fill: o[1], align: o[2], sign: o[3], symbol: o[4], zero: o[5], width: o[6], comma: o[7], precision: o[8] && Zi(i = o[8]).call(i, 1), trim: o[9], type: o[10] }); + return new uDe({ fill: o[1], align: o[2], sign: o[3], symbol: o[4], zero: o[5], width: o[6], comma: o[7], precision: o[8] && Zi(i = o[8]).call(i, 1), trim: o[9], type: o[10] }); } -function oDe(r) { - this.fill = Z$(r) === void 0 ? " " : Z$(r) + "", this.align = r.align === void 0 ? ">" : r.align + "", this.sign = r.sign === void 0 ? "-" : r.sign + "", this.symbol = r.symbol === void 0 ? "" : r.symbol + "", this.zero = !!r.zero, this.width = r.width === void 0 ? void 0 : +r.width, this.comma = !!r.comma, this.precision = r.precision === void 0 ? void 0 : +r.precision, this.trim = !!fo(r), this.type = r.type === void 0 ? "" : r.type + ""; +function uDe(r) { + this.fill = ej(r) === void 0 ? " " : ej(r) + "", this.align = r.align === void 0 ? ">" : r.align + "", this.sign = r.sign === void 0 ? "-" : r.sign + "", this.symbol = r.symbol === void 0 ? "" : r.symbol + "", this.zero = !!r.zero, this.width = r.width === void 0 ? void 0 : +r.width, this.comma = !!r.comma, this.precision = r.precision === void 0 ? void 0 : +r.precision, this.trim = !!uo(r), this.type = r.type === void 0 ? "" : r.type + ""; } -function zxt(r, i) { - var o = H0e(r, i); +function Vxt(r, i) { + var o = j0e(r, i); if (!o) return r + ""; - var l = o[0], h = o[1]; - return h < 0 ? "0." + new Array(-h).join("0") + l : l.length > h + 1 ? Zi(l).call(l, 0, h + 1) + "." + Zi(l).call(l, h + 1) : l + new Array(h - l.length + 2).join("0"); + var l = o[0], u = o[1]; + return u < 0 ? "0." + new Array(-u).join("0") + l : l.length > u + 1 ? Zi(l).call(l, 0, u + 1) + "." + Zi(l).call(l, u + 1) : l + new Array(u - l.length + 2).join("0"); } -$0e.prototype = oDe.prototype, oDe.prototype.toString = function() { - return Z$(this) + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, 0 | this.width)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, 0 | this.precision)) + (fo(this) ? "~" : "") + this.type; +K0e.prototype = uDe.prototype, uDe.prototype.toString = function() { + return ej(this) + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, 0 | this.width)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, 0 | this.precision)) + (uo(this) ? "~" : "") + this.type; }; -var Xxt = { "%": function(r, i) { +var Wxt = { "%": function(r, i) { return (100 * r).toFixed(i); }, b: function(r) { return Math.round(r).toString(2); @@ -27805,49 +28049,49 @@ var Xxt = { "%": function(r, i) { }, o: function(r) { return Math.round(r).toString(8); }, p: function(r, i) { - return zxt(100 * r, i); -}, r: zxt, s: function(r, i) { - var o = H0e(r, i); + return Vxt(100 * r, i); +}, r: Vxt, s: function(r, i) { + var o = j0e(r, i); if (!o) return r + ""; - var l = o[0], h = o[1], g = h - (aSt = 3 * Math.max(-8, Math.min(8, Math.floor(h / 3)))) + 1, d = l.length; - return g === d ? l : g > d ? l + new Array(g - d + 1).join("0") : g > 0 ? Zi(l).call(l, 0, g) + "." + Zi(l).call(l, g) : "0." + new Array(1 - g).join("0") + H0e(r, Math.max(0, i + g - 1))[0]; + var l = o[0], u = o[1], g = u - (lSt = 3 * Math.max(-8, Math.min(8, Math.floor(u / 3)))) + 1, d = l.length; + return g === d ? l : g > d ? l + new Array(g - d + 1).join("0") : g > 0 ? Zi(l).call(l, 0, g) + "." + Zi(l).call(l, g) : "0." + new Array(1 - g).join("0") + j0e(r, Math.max(0, i + g - 1))[0]; }, X: function(r) { return Math.round(r).toString(16).toUpperCase(); }, x: function(r) { return Math.round(r).toString(16); } }; -function Gxt(r) { +function qxt(r) { return r; } -var OMe, oSt, sSt, Vxt = us(Array.prototype), Wxt = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; -function E6n(r) { - var i, o, l = r.grouping === void 0 || r.thousands === void 0 ? Gxt : (i = Vxt.call(r.grouping, Number), o = r.thousands + "", function(L, M) { +var PMe, uSt, hSt, Yxt = Wo(Array.prototype), Jxt = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; +function P6n(r) { + var i, o, l = r.grouping === void 0 || r.thousands === void 0 ? qxt : (i = Yxt.call(r.grouping, Number), o = r.thousands + "", function(L, M) { for (var P = L.length, X = [], W = 0, N = i[0], z = 0; P > 0 && N > 0 && (z + N + 1 > M && (N = Math.max(1, M - z)), X.push(L.substring(P -= N, P + N)), !((z += N + 1) > M)); ) N = i[W = (W + 1) % i.length]; - return RB(X).call(X).join(o); - }), h = r.currency === void 0 ? "" : r.currency[0] + "", g = r.currency === void 0 ? "" : r.currency[1] + "", d = r.decimal === void 0 ? "." : r.decimal + "", b = r.numerals === void 0 ? Gxt : /* @__PURE__ */ function(L) { + return UB(X).call(X).join(o); + }), u = r.currency === void 0 ? "" : r.currency[0] + "", g = r.currency === void 0 ? "" : r.currency[1] + "", d = r.decimal === void 0 ? "." : r.decimal + "", b = r.numerals === void 0 ? qxt : /* @__PURE__ */ function(L) { return function(M) { return M.replace(/[0-9]/g, function(P) { return L[+P]; }); }; - }(Vxt.call(r.numerals, String)), y = r.percent === void 0 ? "%" : r.percent + "", k = r.minus === void 0 ? "−" : r.minus + "", C = r.nan === void 0 ? "NaN" : r.nan + ""; + }(Yxt.call(r.numerals, String)), y = r.percent === void 0 ? "%" : r.percent + "", k = r.minus === void 0 ? "−" : r.minus + "", C = r.nan === void 0 ? "NaN" : r.nan + ""; function B(L) { - L = $0e(L); - var M = Z$(L), P = L.align, X = L.sign, W = L.symbol, N = L.zero, z = L.width, oe = L.comma, V = L.precision, ae = fo(L), ie = L.type; - ie === "n" ? (oe = !0, ie = "g") : Xxt[ie] || (V === void 0 && (V = 12), ae = !0, ie = "g"), (N || M === "0" && P === "=") && (N = !0, M = "0", P = "="); - var de = W === "$" ? h : W === "#" && /[boxX]/.test(ie) ? "0" + ie.toLowerCase() : "", pe = W === "$" ? g : /[%p]/.test(ie) ? y : "", ce = Xxt[ie], we = /[defgprs%]/.test(ie); + L = K0e(L); + var M = ej(L), P = L.align, X = L.sign, W = L.symbol, N = L.zero, z = L.width, oe = L.comma, V = L.precision, ae = uo(L), re = L.type; + re === "n" ? (oe = !0, re = "g") : Wxt[re] || (V === void 0 && (V = 12), ae = !0, re = "g"), (N || M === "0" && P === "=") && (N = !0, M = "0", P = "="); + var fe = W === "$" ? u : W === "#" && /[boxX]/.test(re) ? "0" + re.toLowerCase() : "", pe = W === "$" ? g : /[%p]/.test(re) ? y : "", ce = Wxt[re], we = /[defgprs%]/.test(re); function me(ee) { - var ve, Y, Te, fe = de, ue = pe; - if (ie === "c") + var ve, Y, Te, de = fe, ue = pe; + if (re === "c") ue = ce(ee) + ue, ee = ""; else { var $e = (ee = +ee) < 0 || 1 / ee < 0; - if (ee = isNaN(ee) ? C : ce(Math.abs(ee), V), ae && (ee = function(ot) { + if (ee = isNaN(ee) ? C : ce(Math.abs(ee), V), ae && (ee = function(st) { e: - for (var Pe, Le = ot.length, lt = 1, Ut = -1; lt < Le; ++lt) - switch (ot[lt]) { + for (var Pe, Le = st.length, lt = 1, Ut = -1; lt < Le; ++lt) + switch (st[lt]) { case ".": Ut = Pe = lt; break; @@ -27855,12 +28099,12 @@ function E6n(r) { Ut === 0 && (Ut = lt), Pe = lt; break; default: - if (!+ot[lt]) + if (!+st[lt]) break e; Ut > 0 && (Ut = 0); } - return Ut > 0 ? Zi(ot).call(ot, 0, Ut) + Zi(ot).call(ot, Pe + 1) : ot; - }(ee)), $e && +ee == 0 && X !== "+" && ($e = !1), fe = ($e ? X === "(" ? X : k : X === "-" || X === "(" ? "" : X) + fe, ue = (ie === "s" ? Wxt[8 + aSt / 3] : "") + ue + ($e && X === "(" ? ")" : ""), we) { + return Ut > 0 ? Zi(st).call(st, 0, Ut) + Zi(st).call(st, Pe + 1) : st; + }(ee)), $e && +ee == 0 && X !== "+" && ($e = !1), de = ($e ? X === "(" ? X : k : X === "-" || X === "(" ? "" : X) + de, ue = (re === "s" ? Jxt[8 + lSt / 3] : "") + ue + ($e && X === "(" ? ")" : ""), we) { for (ve = -1, Y = ee.length; ++ve < Y; ) if (48 > (Te = ee.charCodeAt(ve)) || Te > 57) { ue = (Te === 46 ? d + Zi(ee).call(ee, ve + 1) : Zi(ee).call(ee, ve)) + ue, ee = Zi(ee).call(ee, 0, ve); @@ -27869,34 +28113,34 @@ function E6n(r) { } } oe && !N && (ee = l(ee, 1 / 0)); - var qe = fe.length + ee.length + ue.length, ct = qe < z ? new Array(z - qe + 1).join(M) : ""; + var qe = de.length + ee.length + ue.length, ct = qe < z ? new Array(z - qe + 1).join(M) : ""; switch (oe && N && (ee = l(ct + ee, ct.length ? z - ue.length : 1 / 0), ct = ""), P) { case "<": - ee = fe + ee + ue + ct; + ee = de + ee + ue + ct; break; case "=": - ee = fe + ct + ee + ue; + ee = de + ct + ee + ue; break; case "^": - ee = Zi(ct).call(ct, 0, qe = ct.length >> 1) + fe + ee + ue + Zi(ct).call(ct, qe); + ee = Zi(ct).call(ct, 0, qe = ct.length >> 1) + de + ee + ue + Zi(ct).call(ct, qe); break; default: - ee = ct + fe + ee + ue; + ee = ct + de + ee + ue; } return b(ee); } - return V = V === void 0 ? 6 : /[gprs]/.test(ie) ? Math.max(1, Math.min(21, V)) : Math.max(0, Math.min(20, V)), me.toString = function() { + return V = V === void 0 ? 6 : /[gprs]/.test(re) ? Math.max(1, Math.min(21, V)) : Math.max(0, Math.min(20, V)), me.toString = function() { return L + ""; }, me; } return { format: B, formatPrefix: function(L, M) { - var P = B(((L = $0e(L)).type = "f", L)), X = 3 * Math.max(-8, Math.min(8, Math.floor(p$(M) / 3))), W = Math.pow(10, -X), N = Wxt[8 + X / 3]; + var P = B(((L = K0e(L)).type = "f", L)), X = 3 * Math.max(-8, Math.min(8, Math.floor(m$(M) / 3))), W = Math.pow(10, -X), N = Jxt[8 + X / 3]; return function(z) { return P(W * z) + N; }; } }; } -function mNe(r, i) { +function yNe(r, i) { switch (arguments.length) { case 0: break; @@ -27908,29 +28152,29 @@ function mNe(r, i) { } return this; } -function B6n(r, i) { - var o = Ej !== void 0 && oI(r) || r["@@iterator"]; +function R6n(r, i) { + var o = Ej !== void 0 && sI(r) || r["@@iterator"]; if (!o) { if (e4(r) || (o = function(y, k) { var C; if (y) { if (typeof y == "string") - return qxt(y, k); + return Zxt(y, k); var B = Zi(C = Object.prototype.toString.call(y)).call(C, 8, -1); if (B === "Object" && y.constructor && (B = y.constructor.name), B === "Map" || B === "Set") - return El(y); + return ll(y); if (B === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)) - return qxt(y, k); + return Zxt(y, k); } }(r)) || i && r && typeof r.length == "number") { o && (r = o); - var l = 0, h = function() { + var l = 0, u = function() { }; - return { s: h, n: function() { + return { s: u, n: function() { return l >= r.length ? { done: !0 } : { done: !1, value: r[l++] }; }, e: function(y) { throw y; - }, f: h }; + }, f: u }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); @@ -27952,30 +28196,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function qxt(r, i) { +function Zxt(r, i) { (i == null || i > r.length) && (i = r.length); for (var o = 0, l = new Array(i); o < i; o++) l[o] = r[o]; return l; } -OMe = E6n({ thousands: ",", grouping: [3], currency: ["$", ""] }), oSt = OMe.format, sSt = OMe.formatPrefix; -var Yxt = Ej("implicit"); -function cSt() { - var r = new Wkt(), i = [], o = [], l = Yxt; - function h(g) { +PMe = P6n({ thousands: ",", grouping: [3], currency: ["$", ""] }), uSt = PMe.format, hSt = PMe.formatPrefix; +var e8t = Ej("implicit"); +function fSt() { + var r = new Jkt(), i = [], o = [], l = e8t; + function u(g) { var d = r.get(g); if (d === void 0) { - if (l !== Yxt) + if (l !== e8t) return l; r.set(g, d = i.push(g) - 1); } return o[d % o.length]; } - return h.domain = function(g) { + return u.domain = function(g) { if (!arguments.length) return Zi(i).call(i); - i = [], r = new Wkt(); - var d, b = B6n(g); + i = [], r = new Jkt(); + var d, b = R6n(g); try { for (b.s(); !(d = b.n()).done; ) { var y = d.value; @@ -27986,23 +28230,23 @@ function cSt() { } finally { b.f(); } - return h; - }, h.range = function(g) { - return arguments.length ? (o = El(g), h) : Zi(o).call(o); - }, h.unknown = function(g) { - return arguments.length ? (l = g, h) : l; - }, h.copy = function() { - return cSt(i, o).unknown(l); - }, mNe.apply(h, arguments), h; + return u; + }, u.range = function(g) { + return arguments.length ? (o = ll(g), u) : Zi(o).call(o); + }, u.unknown = function(g) { + return arguments.length ? (l = g, u) : l; + }, u.copy = function() { + return fSt(i, o).unknown(l); + }, yNe.apply(u, arguments), u; } -function _6n(r) { +function U6n(r) { return +r; } -var Jxt = [0, 1]; -function x$(r) { +var t8t = [0, 1]; +function C$(r) { return r; } -function sDe(r, i) { +function hDe(r, i) { return (i -= r = +r) ? function(o) { return (o - r) / i; } : /* @__PURE__ */ function(o) { @@ -28011,45 +28255,45 @@ function sDe(r, i) { }; }(isNaN(i) ? NaN : 0.5); } -function S6n(r, i, o) { - var l = r[0], h = r[1], g = i[0], d = i[1]; - return h < l ? (l = sDe(h, l), g = o(d, g)) : (l = sDe(l, h), g = o(g, d)), function(b) { +function H6n(r, i, o) { + var l = r[0], u = r[1], g = i[0], d = i[1]; + return u < l ? (l = hDe(u, l), g = o(d, g)) : (l = hDe(l, u), g = o(g, d)), function(b) { return g(l(b)); }; } -function L6n(r, i, o) { - var l, h, g = Math.min(r.length, i.length) - 1, d = new Array(g), b = new Array(g), y = -1; - for (r[g] < r[0] && (r = RB(l = Zi(r).call(r)).call(l), i = RB(h = Zi(i).call(i)).call(h)); ++y < g; ) - d[y] = sDe(r[y], r[y + 1]), b[y] = o(i[y], i[y + 1]); +function $6n(r, i, o) { + var l, u, g = Math.min(r.length, i.length) - 1, d = new Array(g), b = new Array(g), y = -1; + for (r[g] < r[0] && (r = UB(l = Zi(r).call(r)).call(l), i = UB(u = Zi(i).call(i)).call(u)); ++y < g; ) + d[y] = hDe(r[y], r[y + 1]), b[y] = o(i[y], i[y + 1]); return function(k) { - var C = p4n(r, k, 1, g) - 1; + var C = _4n(r, k, 1, g) - 1; return b[C](d[C](k)); }; } -function lSt(r, i) { +function dSt(r, i) { return i.domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown()); } -function M6n() { - var r, i, o, l, h, g, d = Jxt, b = Jxt, y = dNe, k = x$; +function j6n() { + var r, i, o, l, u, g, d = t8t, b = t8t, y = gNe, k = C$; function C() { var L, M, P, X = Math.min(d.length, b.length); - return k !== x$ && (L = d[0], M = d[X - 1], L > M && (P = L, L = M, M = P), k = function(W) { + return k !== C$ && (L = d[0], M = d[X - 1], L > M && (P = L, L = M, M = P), k = function(W) { return Math.max(L, Math.min(M, W)); - }), l = X > 2 ? L6n : S6n, h = g = null, B; + }), l = X > 2 ? $6n : H6n, u = g = null, B; } function B(L) { - return L == null || isNaN(L = +L) ? o : (h || (h = l(us(d).call(d, r), b, y)))(r(k(L))); + return L == null || isNaN(L = +L) ? o : (u || (u = l(Wo(d).call(d, r), b, y)))(r(k(L))); } return B.invert = function(L) { - return k(i((g || (g = l(b, us(d).call(d, r), i8)))(L))); + return k(i((g || (g = l(b, Wo(d).call(d, r), a8)))(L))); }, B.domain = function(L) { - return arguments.length ? (d = El(L, _6n), C()) : Zi(d).call(d); + return arguments.length ? (d = ll(L, U6n), C()) : Zi(d).call(d); }, B.range = function(L) { - return arguments.length ? (b = El(L), C()) : Zi(b).call(b); + return arguments.length ? (b = ll(L), C()) : Zi(b).call(b); }, B.rangeRound = function(L) { - return b = El(L), y = V5n, C(); + return b = ll(L), y = o6n, C(); }, B.clamp = function(L) { - return arguments.length ? (k = !!L || x$, C()) : k !== x$; + return arguments.length ? (k = !!L || C$, C()) : k !== C$; }, B.interpolate = function(L) { return arguments.length ? (y = L, C()) : y; }, B.unknown = function(L) { @@ -28058,44 +28302,44 @@ function M6n() { return r = L, i = M, C(); }; } -function uSt() { - return M6n()(x$, x$); +function ASt() { + return j6n()(C$, C$); } -function I6n(r, i, o, l) { - var h, g = XFe(r, i, o); - switch ((l = $0e(l ?? ",f")).type) { +function K6n(r, i, o, l) { + var u, g = qFe(r, i, o); + switch ((l = K0e(l ?? ",f")).type) { case "s": var d = Math.max(Math.abs(r), Math.abs(i)); - return l.precision != null || isNaN(h = function(b, y) { - return Math.max(0, 3 * Math.max(-8, Math.min(8, Math.floor(p$(y) / 3))) - p$(Math.abs(b))); - }(g, d)) || (l.precision = h), sSt(l, d); + return l.precision != null || isNaN(u = function(b, y) { + return Math.max(0, 3 * Math.max(-8, Math.min(8, Math.floor(m$(y) / 3))) - m$(Math.abs(b))); + }(g, d)) || (l.precision = u), hSt(l, d); case "": case "e": case "g": case "p": case "r": - l.precision != null || isNaN(h = function(b, y) { - return b = Math.abs(b), y = Math.abs(y) - b, Math.max(0, p$(y) - p$(b)) + 1; - }(g, Math.max(Math.abs(r), Math.abs(i)))) || (l.precision = h - (l.type === "e")); + l.precision != null || isNaN(u = function(b, y) { + return b = Math.abs(b), y = Math.abs(y) - b, Math.max(0, m$(y) - m$(b)) + 1; + }(g, Math.max(Math.abs(r), Math.abs(i)))) || (l.precision = u - (l.type === "e")); break; case "f": case "%": - l.precision != null || isNaN(h = function(b) { - return Math.max(0, -p$(Math.abs(b))); - }(g)) || (l.precision = h - 2 * (l.type === "%")); + l.precision != null || isNaN(u = function(b) { + return Math.max(0, -m$(Math.abs(b))); + }(g)) || (l.precision = u - 2 * (l.type === "%")); } - return oSt(l); + return uSt(l); } -function F6n(r) { +function z6n(r) { var i = r.domain; return r.ticks = function(o) { var l = i(); - return function(h, g, d) { + return function(u, g, d) { if (!((d = +d) > 0)) return []; - if ((h = +h) == (g = +g)) - return [h]; - var b = g < h, y = bu(b ? D0e(g, h, d) : D0e(h, g, d), 3), k = y[0], C = y[1], B = y[2]; + if ((u = +u) == (g = +g)) + return [u]; + var b = g < u, y = yu(b ? N0e(g, u, d) : N0e(u, g, d), 3), k = y[0], C = y[1], B = y[2]; if (!(C >= k)) return []; var L = C - k + 1, M = new Array(L); @@ -28115,55 +28359,55 @@ function F6n(r) { return M; }(l[0], l[l.length - 1], o ?? 10); }, r.tickFormat = function(o, l) { - var h = i(); - return I6n(h[0], h[h.length - 1], o ?? 10, l); + var u = i(); + return K6n(u[0], u[u.length - 1], o ?? 10, l); }, r.nice = function(o) { o == null && (o = 10); - var l, h, g = i(), d = 0, b = g.length - 1, y = g[d], k = g[b], C = 10; - for (k < y && (h = y, y = k, k = h, h = d, d = b, b = h); C-- > 0; ) { - if ((h = zFe(y, k, o)) === l) + var l, u, g = i(), d = 0, b = g.length - 1, y = g[d], k = g[b], C = 10; + for (k < y && (u = y, y = k, k = u, u = d, d = b, b = u); C-- > 0; ) { + if ((u = WFe(y, k, o)) === l) return g[d] = y, g[b] = k, i(g); - if (h > 0) - y = Math.floor(y / h) * h, k = Math.ceil(k / h) * h; + if (u > 0) + y = Math.floor(y / u) * u, k = Math.ceil(k / u) * u; else { - if (!(h < 0)) + if (!(u < 0)) break; - y = Math.ceil(y * h) / h, k = Math.floor(k * h) / h; + y = Math.ceil(y * u) / u, k = Math.floor(k * u) / u; } - l = h; + l = u; } return r; }, r; } -function hSt() { - var r = uSt(); +function gSt() { + var r = ASt(); return r.copy = function() { - return lSt(r, hSt()); - }, mNe.apply(r, arguments), F6n(r); + return dSt(r, gSt()); + }, yNe.apply(r, arguments), z6n(r); } -var NMe = /* @__PURE__ */ new Date(), QMe = /* @__PURE__ */ new Date(); +var RMe = /* @__PURE__ */ new Date(), UMe = /* @__PURE__ */ new Date(); function jp(r, i, o, l) { - function h(g) { + function u(g) { return r(g = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+g)), g; } - return h.floor = function(g) { + return u.floor = function(g) { return r(g = /* @__PURE__ */ new Date(+g)), g; - }, h.ceil = function(g) { + }, u.ceil = function(g) { return r(g = new Date(g - 1)), i(g, 1), r(g), g; - }, h.round = function(g) { - var d = h(g), b = h.ceil(g); + }, u.round = function(g) { + var d = u(g), b = u.ceil(g); return g - d < b - g ? d : b; - }, h.offset = function(g, d) { + }, u.offset = function(g, d) { return i(g = /* @__PURE__ */ new Date(+g), d == null ? 1 : Math.floor(d)), g; - }, h.range = function(g, d, b) { + }, u.range = function(g, d, b) { var y, k = []; - if (g = h.ceil(g), b = b == null ? 1 : Math.floor(b), !(g < d && b > 0)) + if (g = u.ceil(g), b = b == null ? 1 : Math.floor(b), !(g < d && b > 0)) return k; do k.push(y = /* @__PURE__ */ new Date(+g)), i(g, b), r(g); while (y < g && g < d); return k; - }, h.filter = function(g) { + }, u.filter = function(g) { return jp(function(d) { if (d >= d) for (; r(d), !g(d); ) @@ -28179,85 +28423,85 @@ function jp(r, i, o, l) { for (; i(d, 1), !g(d); ) ; }); - }, o && (h.count = function(g, d) { - return NMe.setTime(+g), QMe.setTime(+d), r(NMe), r(QMe), Math.floor(o(NMe, QMe)); - }, h.every = function(g) { - return g = Math.floor(g), isFinite(g) && g > 0 ? g > 1 ? o1(h).call(h, l ? function(d) { + }, o && (u.count = function(g, d) { + return RMe.setTime(+g), UMe.setTime(+d), r(RMe), r(UMe), Math.floor(o(RMe, UMe)); + }, u.every = function(g) { + return g = Math.floor(g), isFinite(g) && g > 0 ? g > 1 ? Ph(u).call(u, l ? function(d) { return l(d) % g == 0; } : function(d) { - return h.count(0, d) % g == 0; - }) : h : null; - }), h; + return u.count(0, d) % g == 0; + }) : u : null; + }), u; } -var j0e = jp(function() { +var z0e = jp(function() { }, function(r, i) { r.setTime(+r + i); }, function(r, i) { return i - r; }); -j0e.every = function(r) { +z0e.every = function(r) { return r = Math.floor(r), isFinite(r) && r > 0 ? r > 1 ? jp(function(i) { i.setTime(Math.floor(i / r) * r); }, function(i, o) { i.setTime(+i + o * r); }, function(i, o) { return (o - i) / r; - }) : j0e : null; + }) : z0e : null; }; -var Zxt = j0e; -j0e.range; -var Aee = 1e3, YM = 6e4, gee = 36e5, bNe = 864e5, yNe = 6048e5, D6n = 2592e6, PMe = 31536e6, fSt = jp(function(r) { +var n8t = z0e; +z0e.range; +var gee = 1e3, JM = 6e4, pee = 36e5, wNe = 864e5, vNe = 6048e5, X6n = 2592e6, HMe = 31536e6, pSt = jp(function(r) { r.setTime(r - r.getMilliseconds()); }, function(r, i) { - r.setTime(+r + i * Aee); + r.setTime(+r + i * gee); }, function(r, i) { - return (i - r) / Aee; + return (i - r) / gee; }, function(r) { return r.getUTCSeconds(); -}), uZ = fSt; -fSt.range; -var dSt = jp(function(r) { - r.setTime(r - r.getMilliseconds() - r.getSeconds() * Aee); +}), uZ = pSt; +pSt.range; +var mSt = jp(function(r) { + r.setTime(r - r.getMilliseconds() - r.getSeconds() * gee); }, function(r, i) { - r.setTime(+r + i * YM); + r.setTime(+r + i * JM); }, function(r, i) { - return (i - r) / YM; + return (i - r) / JM; }, function(r) { return r.getMinutes(); -}), LAe = dSt; -dSt.range; -var ASt = jp(function(r) { - r.setTime(r - r.getMilliseconds() - r.getSeconds() * Aee - r.getMinutes() * YM); +}), FAe = mSt; +mSt.range; +var bSt = jp(function(r) { + r.setTime(r - r.getMilliseconds() - r.getSeconds() * gee - r.getMinutes() * JM); }, function(r, i) { - r.setTime(+r + i * gee); + r.setTime(+r + i * pee); }, function(r, i) { - return (i - r) / gee; + return (i - r) / pee; }, function(r) { return r.getHours(); -}), MAe = ASt; -ASt.range; -var gSt = jp(function(r) { +}), DAe = bSt; +bSt.range; +var ySt = jp(function(r) { return r.setHours(0, 0, 0, 0); }, function(r, i) { return r.setDate(r.getDate() + i); }, function(r, i) { - return (i - r - (i.getTimezoneOffset() - r.getTimezoneOffset()) * YM) / bNe; + return (i - r - (i.getTimezoneOffset() - r.getTimezoneOffset()) * JM) / wNe; }, function(r) { return r.getDate() - 1; -}), N$ = gSt; -function hQ(r) { +}), Q$ = ySt; +function fQ(r) { return jp(function(i) { i.setDate(i.getDate() - (i.getDay() + 7 - r) % 7), i.setHours(0, 0, 0, 0); }, function(i, o) { i.setDate(i.getDate() + 7 * o); }, function(i, o) { - return (o - i - (o.getTimezoneOffset() - i.getTimezoneOffset()) * YM) / yNe; + return (o - i - (o.getTimezoneOffset() - i.getTimezoneOffset()) * JM) / vNe; }); } -gSt.range; -var Q$ = hQ(0), K0e = hQ(1), O6n = hQ(2), N6n = hQ(3), rj = hQ(4), Q6n = hQ(5), P6n = hQ(6); -Q$.range, K0e.range, O6n.range, N6n.range, rj.range, Q6n.range, P6n.range; -var pSt = jp(function(r) { +ySt.range; +var P$ = fQ(0), X0e = fQ(1), G6n = fQ(2), V6n = fQ(3), rj = fQ(4), W6n = fQ(5), q6n = fQ(6); +P$.range, X0e.range, G6n.range, V6n.range, rj.range, W6n.range, q6n.range; +var wSt = jp(function(r) { r.setDate(1), r.setHours(0, 0, 0, 0); }, function(r, i) { r.setMonth(r.getMonth() + i); @@ -28265,9 +28509,9 @@ var pSt = jp(function(r) { return i.getMonth() - r.getMonth() + 12 * (i.getFullYear() - r.getFullYear()); }, function(r) { return r.getMonth(); -}), IAe = pSt; -pSt.range; -var wNe = jp(function(r) { +}), OAe = wSt; +wSt.range; +var kNe = jp(function(r) { r.setMonth(0, 1), r.setHours(0, 0, 0, 0); }, function(r, i) { r.setFullYear(r.getFullYear() + i); @@ -28276,57 +28520,57 @@ var wNe = jp(function(r) { }, function(r) { return r.getFullYear(); }); -wNe.every = function(r) { +kNe.every = function(r) { return isFinite(r = Math.floor(r)) && r > 0 ? jp(function(i) { i.setFullYear(Math.floor(i.getFullYear() / r) * r), i.setMonth(0, 1), i.setHours(0, 0, 0, 0); }, function(i, o) { i.setFullYear(i.getFullYear() + o * r); }) : null; }; -var ZN = wNe; -wNe.range; -var mSt = jp(function(r) { +var eQ = kNe; +kNe.range; +var vSt = jp(function(r) { r.setUTCSeconds(0, 0); }, function(r, i) { - r.setTime(+r + i * YM); + r.setTime(+r + i * JM); }, function(r, i) { - return (i - r) / YM; + return (i - r) / JM; }, function(r) { return r.getUTCMinutes(); -}), R6n = mSt; -mSt.range; -var bSt = jp(function(r) { +}), Y6n = vSt; +vSt.range; +var kSt = jp(function(r) { r.setUTCMinutes(0, 0, 0); }, function(r, i) { - r.setTime(+r + i * gee); + r.setTime(+r + i * pee); }, function(r, i) { - return (i - r) / gee; + return (i - r) / pee; }, function(r) { return r.getUTCHours(); -}), U6n = bSt; -bSt.range; -var ySt = jp(function(r) { +}), J6n = kSt; +kSt.range; +var xSt = jp(function(r) { r.setUTCHours(0, 0, 0, 0); }, function(r, i) { r.setUTCDate(r.getUTCDate() + i); }, function(r, i) { - return (i - r) / bNe; + return (i - r) / wNe; }, function(r) { return r.getUTCDate() - 1; -}), vNe = ySt; -function fQ(r) { +}), xNe = xSt; +function dQ(r) { return jp(function(i) { i.setUTCDate(i.getUTCDate() - (i.getUTCDay() + 7 - r) % 7), i.setUTCHours(0, 0, 0, 0); }, function(i, o) { i.setUTCDate(i.getUTCDate() + 7 * o); }, function(i, o) { - return (o - i) / yNe; + return (o - i) / vNe; }); } -ySt.range; -var kNe = fQ(0), z0e = fQ(1), H6n = fQ(2), $6n = fQ(3), ij = fQ(4), j6n = fQ(5), K6n = fQ(6); -kNe.range, z0e.range, H6n.range, $6n.range, ij.range, j6n.range, K6n.range; -var wSt = jp(function(r) { +xSt.range; +var CNe = dQ(0), G0e = dQ(1), Z6n = dQ(2), ekn = dQ(3), ij = dQ(4), tkn = dQ(5), nkn = dQ(6); +CNe.range, G0e.range, Z6n.range, ekn.range, ij.range, tkn.range, nkn.range; +var CSt = jp(function(r) { r.setUTCDate(1), r.setUTCHours(0, 0, 0, 0); }, function(r, i) { r.setUTCMonth(r.getUTCMonth() + i); @@ -28334,9 +28578,9 @@ var wSt = jp(function(r) { return i.getUTCMonth() - r.getUTCMonth() + 12 * (i.getUTCFullYear() - r.getUTCFullYear()); }, function(r) { return r.getUTCMonth(); -}), z6n = wSt; -wSt.range; -var xNe = jp(function(r) { +}), rkn = CSt; +CSt.range; +var TNe = jp(function(r) { r.setUTCMonth(0, 1), r.setUTCHours(0, 0, 0, 0); }, function(r, i) { r.setUTCFullYear(r.getUTCFullYear() + i); @@ -28345,26 +28589,26 @@ var xNe = jp(function(r) { }, function(r) { return r.getUTCFullYear(); }); -xNe.every = function(r) { +TNe.every = function(r) { return isFinite(r = Math.floor(r)) && r > 0 ? jp(function(i) { i.setUTCFullYear(Math.floor(i.getUTCFullYear() / r) * r), i.setUTCMonth(0, 1), i.setUTCHours(0, 0, 0, 0); }, function(i, o) { i.setUTCFullYear(i.getUTCFullYear() + o * r); }) : null; }; -var aj = xNe; -function vSt(r, i, o, l, h, g) { - var d = [[uZ, 1, Aee], [uZ, 5, 5e3], [uZ, 15, 15e3], [uZ, 30, 3e4], [g, 1, YM], [g, 5, 3e5], [g, 15, 9e5], [g, 30, 18e5], [h, 1, gee], [h, 3, 108e5], [h, 6, 216e5], [h, 12, 432e5], [l, 1, bNe], [l, 2, 1728e5], [o, 1, yNe], [i, 1, D6n], [i, 3, 7776e6], [r, 1, PMe]]; +var aj = TNe; +function TSt(r, i, o, l, u, g) { + var d = [[uZ, 1, gee], [uZ, 5, 5e3], [uZ, 15, 15e3], [uZ, 30, 3e4], [g, 1, JM], [g, 5, 3e5], [g, 15, 9e5], [g, 30, 18e5], [u, 1, pee], [u, 3, 108e5], [u, 6, 216e5], [u, 12, 432e5], [l, 1, wNe], [l, 2, 1728e5], [o, 1, vNe], [i, 1, X6n], [i, 3, 7776e6], [r, 1, HMe]]; function b(y, k, C) { - var B = Math.abs(k - y) / C, L = uNe(function(W) { - return bu(W, 3)[2]; + var B = Math.abs(k - y) / C, L = fNe(function(W) { + return yu(W, 3)[2]; }).right(d, B); if (L === d.length) - return I$(r).call(r, XFe(y / PMe, k / PMe, C)); + return F$(r).call(r, qFe(y / HMe, k / HMe, C)); if (L === 0) - return I$(Zxt).call(Zxt, Math.max(XFe(y, k, C), 1)); - var M = bu(d[B / d[L - 1][2] < d[L][2] / B ? L - 1 : L], 2), P = M[0], X = M[1]; - return I$(P).call(P, X); + return F$(n8t).call(n8t, Math.max(qFe(y, k, C), 1)); + var M = yu(d[B / d[L - 1][2] < d[L][2] / B ? L - 1 : L], 2), P = M[0], X = M[1]; + return F$(P).call(P, X); } return [function(y, k, C) { var B = k < y; @@ -28373,21 +28617,21 @@ function vSt(r, i, o, l, h, g) { y = L[0], k = L[1]; } var M = C && typeof C.range == "function" ? C : b(y, k, C), P = M ? M.range(y, +k + 1) : []; - return B ? RB(P).call(P) : P; + return B ? UB(P).call(P) : P; }, b]; } -xNe.range; -var e8t = bu(vSt(aj, z6n, kNe, vNe, U6n, R6n), 2); -e8t[0], e8t[1]; -var kSt = bu(vSt(ZN, IAe, Q$, N$, MAe, LAe), 2), X6n = kSt[0], G6n = kSt[1]; -function RMe(r) { +TNe.range; +var r8t = yu(TSt(aj, rkn, CNe, xNe, J6n, Y6n), 2); +r8t[0], r8t[1]; +var ESt = yu(TSt(eQ, OAe, P$, Q$, DAe, FAe), 2), ikn = ESt[0], akn = ESt[1]; +function $Me(r) { if (0 <= r.y && r.y < 100) { var i = new Date(-1, r.m, r.d, r.H, r.M, r.S, r.L); return i.setFullYear(r.y), i; } return new Date(r.y, r.m, r.d, r.H, r.M, r.S, r.L); } -function UMe(r) { +function jMe(r) { if (0 <= r.y && r.y < 100) { var i = new Date(Date.UTC(-1, r.m, r.d, r.H, r.M, r.S, r.L)); return i.setUTCFullYear(r.y), i; @@ -28397,267 +28641,267 @@ function UMe(r) { function FJ(r, i, o) { return { y: r, m: i, d: o, H: 0, M: 0, S: 0, L: 0 }; } -var DJ, FAe, t8t = { "-": "", _: " ", 0: "0" }, Kp = /^\s*\d+/, V6n = /^%/, W6n = /[\\^$*+?|[\]().{}]/g; -function Ph(r, i, o) { - var l = r < 0 ? "-" : "", h = (l ? -r : r) + "", g = h.length; - return l + (g < o ? new Array(o - g + 1).join(i) + h : h); +var DJ, NAe, i8t = { "-": "", _: " ", 0: "0" }, Kp = /^\s*\d+/, okn = /^%/, skn = /[\\^$*+?|[\]().{}]/g; +function Rh(r, i, o) { + var l = r < 0 ? "-" : "", u = (l ? -r : r) + "", g = u.length; + return l + (g < o ? new Array(o - g + 1).join(i) + u : u); } -function q6n(r) { - return r.replace(W6n, "\\$&"); +function ckn(r) { + return r.replace(skn, "\\$&"); } function OJ(r) { - return new RegExp("^(?:" + us(r).call(r, q6n).join("|") + ")", "i"); + return new RegExp("^(?:" + Wo(r).call(r, ckn).join("|") + ")", "i"); } function NJ(r) { - return new F_t(us(r).call(r, function(i, o) { + return new Q_t(Wo(r).call(r, function(i, o) { return [i.toLowerCase(), o]; })); } -function Y6n(r, i, o) { +function lkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 1)); return l ? (r.w = +l[0], o + l[0].length) : -1; } -function J6n(r, i, o) { +function ukn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 1)); return l ? (r.u = +l[0], o + l[0].length) : -1; } -function Z6n(r, i, o) { +function hkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.U = +l[0], o + l[0].length) : -1; } -function ekn(r, i, o) { +function fkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.V = +l[0], o + l[0].length) : -1; } -function tkn(r, i, o) { +function dkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.W = +l[0], o + l[0].length) : -1; } -function n8t(r, i, o) { +function a8t(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 4)); return l ? (r.y = +l[0], o + l[0].length) : -1; } -function r8t(r, i, o) { +function o8t(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.y = +l[0] + (+l[0] > 68 ? 1900 : 2e3), o + l[0].length) : -1; } -function nkn(r, i, o) { +function Akn(r, i, o) { var l = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Zi(i).call(i, o, o + 6)); return l ? (r.Z = l[1] ? 0 : -(l[2] + (l[3] || "00")), o + l[0].length) : -1; } -function rkn(r, i, o) { +function gkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 1)); return l ? (r.q = 3 * l[0] - 3, o + l[0].length) : -1; } -function ikn(r, i, o) { +function pkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.m = l[0] - 1, o + l[0].length) : -1; } -function i8t(r, i, o) { +function s8t(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.d = +l[0], o + l[0].length) : -1; } -function akn(r, i, o) { +function mkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 3)); return l ? (r.m = 0, r.d = +l[0], o + l[0].length) : -1; } -function a8t(r, i, o) { +function c8t(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.H = +l[0], o + l[0].length) : -1; } -function okn(r, i, o) { +function bkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.M = +l[0], o + l[0].length) : -1; } -function skn(r, i, o) { +function ykn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 2)); return l ? (r.S = +l[0], o + l[0].length) : -1; } -function ckn(r, i, o) { +function wkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 3)); return l ? (r.L = +l[0], o + l[0].length) : -1; } -function lkn(r, i, o) { +function vkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o, o + 6)); return l ? (r.L = Math.floor(l[0] / 1e3), o + l[0].length) : -1; } -function ukn(r, i, o) { - var l = V6n.exec(Zi(i).call(i, o, o + 1)); +function kkn(r, i, o) { + var l = okn.exec(Zi(i).call(i, o, o + 1)); return l ? o + l[0].length : -1; } -function hkn(r, i, o) { +function xkn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o)); return l ? (r.Q = +l[0], o + l[0].length) : -1; } -function fkn(r, i, o) { +function Ckn(r, i, o) { var l = Kp.exec(Zi(i).call(i, o)); return l ? (r.s = +l[0], o + l[0].length) : -1; } -function o8t(r, i) { - return Ph(r.getDate(), i, 2); +function l8t(r, i) { + return Rh(r.getDate(), i, 2); } -function dkn(r, i) { - return Ph(r.getHours(), i, 2); +function Tkn(r, i) { + return Rh(r.getHours(), i, 2); } -function Akn(r, i) { - return Ph(r.getHours() % 12 || 12, i, 2); +function Ekn(r, i) { + return Rh(r.getHours() % 12 || 12, i, 2); } -function gkn(r, i) { - return Ph(1 + N$.count(ZN(r), r), i, 3); +function Bkn(r, i) { + return Rh(1 + Q$.count(eQ(r), r), i, 3); } -function xSt(r, i) { - return Ph(r.getMilliseconds(), i, 3); +function BSt(r, i) { + return Rh(r.getMilliseconds(), i, 3); } -function pkn(r, i) { - return xSt(r, i) + "000"; +function _kn(r, i) { + return BSt(r, i) + "000"; } -function mkn(r, i) { - return Ph(r.getMonth() + 1, i, 2); +function Skn(r, i) { + return Rh(r.getMonth() + 1, i, 2); } -function bkn(r, i) { - return Ph(r.getMinutes(), i, 2); +function Lkn(r, i) { + return Rh(r.getMinutes(), i, 2); } -function ykn(r, i) { - return Ph(r.getSeconds(), i, 2); +function Mkn(r, i) { + return Rh(r.getSeconds(), i, 2); } -function wkn(r) { +function Ikn(r) { var i = r.getDay(); return i === 0 ? 7 : i; } -function vkn(r, i) { - return Ph(Q$.count(ZN(r) - 1, r), i, 2); +function Fkn(r, i) { + return Rh(P$.count(eQ(r) - 1, r), i, 2); } -function CSt(r) { +function _St(r) { var i = r.getDay(); return i >= 4 || i === 0 ? rj(r) : rj.ceil(r); } -function kkn(r, i) { - return r = CSt(r), Ph(rj.count(ZN(r), r) + (ZN(r).getDay() === 4), i, 2); +function Dkn(r, i) { + return r = _St(r), Rh(rj.count(eQ(r), r) + (eQ(r).getDay() === 4), i, 2); } -function xkn(r) { +function Okn(r) { return r.getDay(); } -function Ckn(r, i) { - return Ph(K0e.count(ZN(r) - 1, r), i, 2); +function Nkn(r, i) { + return Rh(X0e.count(eQ(r) - 1, r), i, 2); } -function Tkn(r, i) { - return Ph(r.getFullYear() % 100, i, 2); +function Qkn(r, i) { + return Rh(r.getFullYear() % 100, i, 2); } -function Ekn(r, i) { - return Ph((r = CSt(r)).getFullYear() % 100, i, 2); +function Pkn(r, i) { + return Rh((r = _St(r)).getFullYear() % 100, i, 2); } -function Bkn(r, i) { - return Ph(r.getFullYear() % 1e4, i, 4); +function Rkn(r, i) { + return Rh(r.getFullYear() % 1e4, i, 4); } -function _kn(r, i) { +function Ukn(r, i) { var o = r.getDay(); - return Ph((r = o >= 4 || o === 0 ? rj(r) : rj.ceil(r)).getFullYear() % 1e4, i, 4); + return Rh((r = o >= 4 || o === 0 ? rj(r) : rj.ceil(r)).getFullYear() % 1e4, i, 4); } -function Skn(r) { +function Hkn(r) { var i = r.getTimezoneOffset(); - return (i > 0 ? "-" : (i *= -1, "+")) + Ph(i / 60 | 0, "0", 2) + Ph(i % 60, "0", 2); + return (i > 0 ? "-" : (i *= -1, "+")) + Rh(i / 60 | 0, "0", 2) + Rh(i % 60, "0", 2); } -function s8t(r, i) { - return Ph(r.getUTCDate(), i, 2); +function u8t(r, i) { + return Rh(r.getUTCDate(), i, 2); } -function Lkn(r, i) { - return Ph(r.getUTCHours(), i, 2); +function $kn(r, i) { + return Rh(r.getUTCHours(), i, 2); } -function Mkn(r, i) { - return Ph(r.getUTCHours() % 12 || 12, i, 2); +function jkn(r, i) { + return Rh(r.getUTCHours() % 12 || 12, i, 2); } -function Ikn(r, i) { - return Ph(1 + vNe.count(aj(r), r), i, 3); +function Kkn(r, i) { + return Rh(1 + xNe.count(aj(r), r), i, 3); } -function TSt(r, i) { - return Ph(r.getUTCMilliseconds(), i, 3); +function SSt(r, i) { + return Rh(r.getUTCMilliseconds(), i, 3); } -function Fkn(r, i) { - return TSt(r, i) + "000"; +function zkn(r, i) { + return SSt(r, i) + "000"; } -function Dkn(r, i) { - return Ph(r.getUTCMonth() + 1, i, 2); +function Xkn(r, i) { + return Rh(r.getUTCMonth() + 1, i, 2); } -function Okn(r, i) { - return Ph(r.getUTCMinutes(), i, 2); +function Gkn(r, i) { + return Rh(r.getUTCMinutes(), i, 2); } -function Nkn(r, i) { - return Ph(r.getUTCSeconds(), i, 2); +function Vkn(r, i) { + return Rh(r.getUTCSeconds(), i, 2); } -function Qkn(r) { +function Wkn(r) { var i = r.getUTCDay(); return i === 0 ? 7 : i; } -function Pkn(r, i) { - return Ph(kNe.count(aj(r) - 1, r), i, 2); +function qkn(r, i) { + return Rh(CNe.count(aj(r) - 1, r), i, 2); } -function ESt(r) { +function LSt(r) { var i = r.getUTCDay(); return i >= 4 || i === 0 ? ij(r) : ij.ceil(r); } -function Rkn(r, i) { - return r = ESt(r), Ph(ij.count(aj(r), r) + (aj(r).getUTCDay() === 4), i, 2); +function Ykn(r, i) { + return r = LSt(r), Rh(ij.count(aj(r), r) + (aj(r).getUTCDay() === 4), i, 2); } -function Ukn(r) { +function Jkn(r) { return r.getUTCDay(); } -function Hkn(r, i) { - return Ph(z0e.count(aj(r) - 1, r), i, 2); +function Zkn(r, i) { + return Rh(G0e.count(aj(r) - 1, r), i, 2); } -function $kn(r, i) { - return Ph(r.getUTCFullYear() % 100, i, 2); +function exn(r, i) { + return Rh(r.getUTCFullYear() % 100, i, 2); } -function jkn(r, i) { - return Ph((r = ESt(r)).getUTCFullYear() % 100, i, 2); +function txn(r, i) { + return Rh((r = LSt(r)).getUTCFullYear() % 100, i, 2); } -function Kkn(r, i) { - return Ph(r.getUTCFullYear() % 1e4, i, 4); +function nxn(r, i) { + return Rh(r.getUTCFullYear() % 1e4, i, 4); } -function zkn(r, i) { +function rxn(r, i) { var o = r.getUTCDay(); - return Ph((r = o >= 4 || o === 0 ? ij(r) : ij.ceil(r)).getUTCFullYear() % 1e4, i, 4); + return Rh((r = o >= 4 || o === 0 ? ij(r) : ij.ceil(r)).getUTCFullYear() % 1e4, i, 4); } -function Xkn() { +function ixn() { return "+0000"; } -function c8t() { +function h8t() { return "%"; } -function l8t(r) { +function f8t(r) { return +r; } -function u8t(r) { +function d8t(r) { return Math.floor(+r / 1e3); } -function Gkn(r) { +function axn(r) { return new Date(r); } -function Vkn(r) { +function oxn(r) { return r instanceof Date ? +r : +/* @__PURE__ */ new Date(+r); } -function BSt(r, i, o, l, h, g, d, b, y, k) { - var C = uSt(), B = C.invert, L = C.domain, M = k(".%L"), P = k(":%S"), X = k("%I:%M"), W = k("%I %p"), N = k("%a %d"), z = k("%b %d"), oe = k("%B"), V = k("%Y"); - function ae(ie) { - return (y(ie) < ie ? M : b(ie) < ie ? P : d(ie) < ie ? X : g(ie) < ie ? W : l(ie) < ie ? h(ie) < ie ? N : z : o(ie) < ie ? oe : V)(ie); - } - return C.invert = function(ie) { - return new Date(B(ie)); - }, C.domain = function(ie) { - var de; - return arguments.length ? L(El(ie, Vkn)) : us(de = L()).call(de, Gkn); - }, C.ticks = function(ie) { - var de = L(); - return r(de[0], de[de.length - 1], ie ?? 10); - }, C.tickFormat = function(ie, de) { - return de == null ? ae : k(de); - }, C.nice = function(ie) { - var de = L(); - return ie && typeof ie.range == "function" || (ie = i(de[0], de[de.length - 1], ie ?? 10)), ie ? L(function(pe, ce) { +function MSt(r, i, o, l, u, g, d, b, y, k) { + var C = ASt(), B = C.invert, L = C.domain, M = k(".%L"), P = k(":%S"), X = k("%I:%M"), W = k("%I %p"), N = k("%a %d"), z = k("%b %d"), oe = k("%B"), V = k("%Y"); + function ae(re) { + return (y(re) < re ? M : b(re) < re ? P : d(re) < re ? X : g(re) < re ? W : l(re) < re ? u(re) < re ? N : z : o(re) < re ? oe : V)(re); + } + return C.invert = function(re) { + return new Date(B(re)); + }, C.domain = function(re) { + var fe; + return arguments.length ? L(ll(re, oxn)) : Wo(fe = L()).call(fe, axn); + }, C.ticks = function(re) { + var fe = L(); + return r(fe[0], fe[fe.length - 1], re ?? 10); + }, C.tickFormat = function(re, fe) { + return fe == null ? ae : k(fe); + }, C.nice = function(re) { + var fe = L(); + return re && typeof re.range == "function" || (re = i(fe[0], fe[fe.length - 1], re ?? 10)), re ? L(function(pe, ce) { var we, me = 0, ee = (pe = Zi(pe).call(pe)).length - 1, ve = pe[me], Y = pe[ee]; return Y < ve && (we = me, me = ee, ee = we, we = ve, ve = Y, Y = we), pe[me] = ce.floor(ve), pe[ee] = ce.ceil(Y), pe; - }(de, ie)) : C; + }(fe, re)) : C; }, C.copy = function() { - return lSt(C, BSt(r, i, o, l, h, g, d, b, y, k)); + return dSt(C, MSt(r, i, o, l, u, g, d, b, y, k)); }, C; } function S0(r) { @@ -28667,7 +28911,7 @@ function S0(r) { } (function(r) { DJ = function(i) { - var o = i.dateTime, l = i.date, h = i.time, g = i.periods, d = i.days, b = i.shortDays, y = i.months, k = i.shortMonths, C = OJ(g), B = NJ(g), L = OJ(d), M = NJ(d), P = OJ(b), X = NJ(b), W = OJ(y), N = NJ(y), z = OJ(k), oe = NJ(k), V = { a: function(we) { + var o = i.dateTime, l = i.date, u = i.time, g = i.periods, d = i.days, b = i.shortDays, y = i.months, k = i.shortMonths, C = OJ(g), B = NJ(g), L = OJ(d), M = NJ(d), P = OJ(b), X = NJ(b), W = OJ(y), N = NJ(y), z = OJ(k), oe = NJ(k), V = { a: function(we) { return b[we.getDay()]; }, A: function(we) { return d[we.getDay()]; @@ -28675,11 +28919,11 @@ function S0(r) { return k[we.getMonth()]; }, B: function(we) { return y[we.getMonth()]; - }, c: null, d: o8t, e: o8t, f: pkn, g: Ekn, G: _kn, H: dkn, I: Akn, j: gkn, L: xSt, m: mkn, M: bkn, p: function(we) { + }, c: null, d: l8t, e: l8t, f: _kn, g: Pkn, G: Ukn, H: Tkn, I: Ekn, j: Bkn, L: BSt, m: Skn, M: Lkn, p: function(we) { return g[+(we.getHours() >= 12)]; }, q: function(we) { return 1 + ~~(we.getMonth() / 3); - }, Q: l8t, s: u8t, S: ykn, u: wkn, U: vkn, V: kkn, w: xkn, W: Ckn, x: null, X: null, y: Tkn, Y: Bkn, Z: Skn, "%": c8t }, ae = { a: function(we) { + }, Q: f8t, s: d8t, S: Mkn, u: Ikn, U: Fkn, V: Dkn, w: Okn, W: Nkn, x: null, X: null, y: Qkn, Y: Rkn, Z: Hkn, "%": h8t }, ae = { a: function(we) { return b[we.getUTCDay()]; }, A: function(we) { return d[we.getUTCDay()]; @@ -28687,11 +28931,11 @@ function S0(r) { return k[we.getUTCMonth()]; }, B: function(we) { return y[we.getUTCMonth()]; - }, c: null, d: s8t, e: s8t, f: Fkn, g: jkn, G: zkn, H: Lkn, I: Mkn, j: Ikn, L: TSt, m: Dkn, M: Okn, p: function(we) { + }, c: null, d: u8t, e: u8t, f: zkn, g: txn, G: rxn, H: $kn, I: jkn, j: Kkn, L: SSt, m: Xkn, M: Gkn, p: function(we) { return g[+(we.getUTCHours() >= 12)]; }, q: function(we) { return 1 + ~~(we.getUTCMonth() / 3); - }, Q: l8t, s: u8t, S: Nkn, u: Qkn, U: Pkn, V: Rkn, w: Ukn, W: Hkn, x: null, X: null, y: $kn, Y: Kkn, Z: Xkn, "%": c8t }, ie = { a: function(we, me, ee) { + }, Q: f8t, s: d8t, S: Vkn, u: Wkn, U: qkn, V: Ykn, w: Jkn, W: Zkn, x: null, X: null, y: exn, Y: nxn, Z: ixn, "%": h8t }, re = { a: function(we, me, ee) { var ve = P.exec(Zi(me).call(me, ee)); return ve ? (we.w = X.get(ve[0].toLowerCase()), ee + ve[0].length) : -1; }, A: function(we, me, ee) { @@ -28705,20 +28949,20 @@ function S0(r) { return ve ? (we.m = N.get(ve[0].toLowerCase()), ee + ve[0].length) : -1; }, c: function(we, me, ee) { return ce(we, o, me, ee); - }, d: i8t, e: i8t, f: lkn, g: r8t, G: n8t, H: a8t, I: a8t, j: akn, L: ckn, m: ikn, M: okn, p: function(we, me, ee) { + }, d: s8t, e: s8t, f: vkn, g: o8t, G: a8t, H: c8t, I: c8t, j: mkn, L: wkn, m: pkn, M: bkn, p: function(we, me, ee) { var ve = C.exec(Zi(me).call(me, ee)); return ve ? (we.p = B.get(ve[0].toLowerCase()), ee + ve[0].length) : -1; - }, q: rkn, Q: hkn, s: fkn, S: skn, u: J6n, U: Z6n, V: ekn, w: Y6n, W: tkn, x: function(we, me, ee) { + }, q: gkn, Q: xkn, s: Ckn, S: ykn, u: ukn, U: hkn, V: fkn, w: lkn, W: dkn, x: function(we, me, ee) { return ce(we, l, me, ee); }, X: function(we, me, ee) { - return ce(we, h, me, ee); - }, y: r8t, Y: n8t, Z: nkn, "%": ukn }; - function de(we, me) { + return ce(we, u, me, ee); + }, y: o8t, Y: a8t, Z: Akn, "%": kkn }; + function fe(we, me) { return function(ee) { - var ve, Y, Te, fe = [], ue = -1, $e = 0, qe = we.length; + var ve, Y, Te, de = [], ue = -1, $e = 0, qe = we.length; for (ee instanceof Date || (ee = /* @__PURE__ */ new Date(+ee)); ++ue < qe; ) - we.charCodeAt(ue) === 37 && (fe.push(Zi(we).call(we, $e, ue)), (Y = t8t[ve = we.charAt(++ue)]) != null ? ve = we.charAt(++ue) : Y = ve === "e" ? " " : "0", (Te = me[ve]) && (ve = Te(ee, Y)), fe.push(ve), $e = ue + 1); - return fe.push(Zi(we).call(we, $e, ue)), fe.join(""); + we.charCodeAt(ue) === 37 && (de.push(Zi(we).call(we, $e, ue)), (Y = i8t[ve = we.charAt(++ue)]) != null ? ve = we.charAt(++ue) : Y = ve === "e" ? " " : "0", (Te = me[ve]) && (ve = Te(ee, Y)), de.push(ve), $e = ue + 1); + return de.push(Zi(we).call(we, $e, ue)), de.join(""); }; } function pe(we, me) { @@ -28733,26 +28977,26 @@ function S0(r) { if (me && !("Z" in Te) && (Te.Z = 0), "p" in Te && (Te.H = Te.H % 12 + 12 * Te.p), Te.m === void 0 && (Te.m = "q" in Te ? Te.q : 0), "V" in Te) { if (Te.V < 1 || Te.V > 53) return null; - "w" in Te || (Te.w = 1), "Z" in Te ? (Y = (ve = UMe(FJ(Te.y, 0, 1))).getUTCDay(), ve = Y > 4 || Y === 0 ? z0e.ceil(ve) : z0e(ve), ve = vNe.offset(ve, 7 * (Te.V - 1)), Te.y = ve.getUTCFullYear(), Te.m = ve.getUTCMonth(), Te.d = ve.getUTCDate() + (Te.w + 6) % 7) : (Y = (ve = RMe(FJ(Te.y, 0, 1))).getDay(), ve = Y > 4 || Y === 0 ? K0e.ceil(ve) : K0e(ve), ve = N$.offset(ve, 7 * (Te.V - 1)), Te.y = ve.getFullYear(), Te.m = ve.getMonth(), Te.d = ve.getDate() + (Te.w + 6) % 7); + "w" in Te || (Te.w = 1), "Z" in Te ? (Y = (ve = jMe(FJ(Te.y, 0, 1))).getUTCDay(), ve = Y > 4 || Y === 0 ? G0e.ceil(ve) : G0e(ve), ve = xNe.offset(ve, 7 * (Te.V - 1)), Te.y = ve.getUTCFullYear(), Te.m = ve.getUTCMonth(), Te.d = ve.getUTCDate() + (Te.w + 6) % 7) : (Y = (ve = $Me(FJ(Te.y, 0, 1))).getDay(), ve = Y > 4 || Y === 0 ? X0e.ceil(ve) : X0e(ve), ve = Q$.offset(ve, 7 * (Te.V - 1)), Te.y = ve.getFullYear(), Te.m = ve.getMonth(), Te.d = ve.getDate() + (Te.w + 6) % 7); } else - ("W" in Te || "U" in Te) && ("w" in Te || (Te.w = "u" in Te ? Te.u % 7 : "W" in Te ? 1 : 0), Y = "Z" in Te ? UMe(FJ(Te.y, 0, 1)).getUTCDay() : RMe(FJ(Te.y, 0, 1)).getDay(), Te.m = 0, Te.d = "W" in Te ? (Te.w + 6) % 7 + 7 * Te.W - (Y + 5) % 7 : Te.w + 7 * Te.U - (Y + 6) % 7); - return "Z" in Te ? (Te.H += Te.Z / 100 | 0, Te.M += Te.Z % 100, UMe(Te)) : RMe(Te); + ("W" in Te || "U" in Te) && ("w" in Te || (Te.w = "u" in Te ? Te.u % 7 : "W" in Te ? 1 : 0), Y = "Z" in Te ? jMe(FJ(Te.y, 0, 1)).getUTCDay() : $Me(FJ(Te.y, 0, 1)).getDay(), Te.m = 0, Te.d = "W" in Te ? (Te.w + 6) % 7 + 7 * Te.W - (Y + 5) % 7 : Te.w + 7 * Te.U - (Y + 6) % 7); + return "Z" in Te ? (Te.H += Te.Z / 100 | 0, Te.M += Te.Z % 100, jMe(Te)) : $Me(Te); }; } function ce(we, me, ee, ve) { - for (var Y, Te, fe = 0, ue = me.length, $e = ee.length; fe < ue; ) { + for (var Y, Te, de = 0, ue = me.length, $e = ee.length; de < ue; ) { if (ve >= $e) return -1; - if ((Y = me.charCodeAt(fe++)) === 37) { - if (Y = me.charAt(fe++), !(Te = ie[Y in t8t ? me.charAt(fe++) : Y]) || (ve = Te(we, ee, ve)) < 0) + if ((Y = me.charCodeAt(de++)) === 37) { + if (Y = me.charAt(de++), !(Te = re[Y in i8t ? me.charAt(de++) : Y]) || (ve = Te(we, ee, ve)) < 0) return -1; } else if (Y != ee.charCodeAt(ve++)) return -1; } return ve; } - return V.x = de(l, V), V.X = de(h, V), V.c = de(o, V), ae.x = de(l, ae), ae.X = de(h, ae), ae.c = de(o, ae), { format: function(we) { - var me = de(we += "", V); + return V.x = fe(l, V), V.X = fe(u, V), V.c = fe(o, V), ae.x = fe(l, ae), ae.X = fe(u, ae), ae.c = fe(o, ae), { format: function(we) { + var me = fe(we += "", V); return me.toString = function() { return we; }, me; @@ -28762,7 +29006,7 @@ function S0(r) { return we; }, me; }, utcFormat: function(we) { - var me = de(we += "", ae); + var me = fe(we += "", ae); return me.toString = function() { return we; }, me; @@ -28772,59 +29016,59 @@ function S0(r) { return we; }, me; } }; - }(r), FAe = DJ.format, DJ.parse, DJ.utcFormat, DJ.utcParse; + }(r), NAe = DJ.format, DJ.parse, DJ.utcFormat, DJ.utcParse; })({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", periods: ["AM", "PM"], days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }); -var h8t = Math.abs, Tb = Math.atan2, pN = Math.cos, Wkn = Math.max, HMe = Math.min, $7 = Math.sin, C$ = Math.sqrt, Bb = 1e-12, LZ = Math.PI, X0e = LZ / 2, DAe = 2 * LZ; -function f8t(r) { - return r >= 1 ? X0e : r <= -1 ? -X0e : Math.asin(r); +var A8t = Math.abs, Tb = Math.atan2, mN = Math.cos, sxn = Math.max, KMe = Math.min, j7 = Math.sin, T$ = Math.sqrt, Bb = 1e-12, LZ = Math.PI, V0e = LZ / 2, QAe = 2 * LZ; +function g8t(r) { + return r >= 1 ? V0e : r <= -1 ? -V0e : Math.asin(r); } -function qkn(r) { +function cxn(r) { return r.innerRadius; } -function Ykn(r) { +function lxn(r) { return r.outerRadius; } -function Jkn(r) { +function uxn(r) { return r.startAngle; } -function Zkn(r) { +function hxn(r) { return r.endAngle; } -function exn(r) { +function fxn(r) { return r && r.padAngle; } -function Qde(r, i, o, l, h, g, d) { - var b = r - o, y = i - l, k = (d ? g : -g) / C$(b * b + y * y), C = k * y, B = -k * b, L = r + C, M = i + B, P = o + C, X = l + B, W = (L + P) / 2, N = (M + X) / 2, z = P - L, oe = X - M, V = z * z + oe * oe, ae = h - g, ie = L * X - P * M, de = (oe < 0 ? -1 : 1) * C$(Wkn(0, ae * ae * V - ie * ie)), pe = (ie * oe - z * de) / V, ce = (-ie * z - oe * de) / V, we = (ie * oe + z * de) / V, me = (-ie * z + oe * de) / V, ee = pe - W, ve = ce - N, Y = we - W, Te = me - N; - return ee * ee + ve * ve > Y * Y + Te * Te && (pe = we, ce = me), { cx: pe, cy: ce, x01: -C, y01: -B, x11: pe * (h / ae - 1), y11: ce * (h / ae - 1) }; +function Ude(r, i, o, l, u, g, d) { + var b = r - o, y = i - l, k = (d ? g : -g) / T$(b * b + y * y), C = k * y, B = -k * b, L = r + C, M = i + B, P = o + C, X = l + B, W = (L + P) / 2, N = (M + X) / 2, z = P - L, oe = X - M, V = z * z + oe * oe, ae = u - g, re = L * X - P * M, fe = (oe < 0 ? -1 : 1) * T$(sxn(0, ae * ae * V - re * re)), pe = (re * oe - z * fe) / V, ce = (-re * z - oe * fe) / V, we = (re * oe + z * fe) / V, me = (-re * z + oe * fe) / V, ee = pe - W, ve = ce - N, Y = we - W, Te = me - N; + return ee * ee + ve * ve > Y * Y + Te * Te && (pe = we, ce = me), { cx: pe, cy: ce, x01: -C, y01: -B, x11: pe * (u / ae - 1), y11: ce * (u / ae - 1) }; } -function cDe() { - var r = qkn, i = Ykn, o = S0(0), l = null, h = Jkn, g = Zkn, d = exn, b = null; +function fDe() { + var r = cxn, i = lxn, o = S0(0), l = null, u = uxn, g = hxn, d = fxn, b = null; function y() { - var k, C, B = +r.apply(this, arguments), L = +i.apply(this, arguments), M = h.apply(this, arguments) - X0e, P = g.apply(this, arguments) - X0e, X = h8t(P - M), W = P > M; - if (b || (b = k = pNe()), L < B && (C = L, L = B, B = C), L > Bb) - if (X > DAe - Bb) - b.moveTo(L * pN(M), L * $7(M)), b.arc(0, 0, L, M, P, !W), B > Bb && (b.moveTo(B * pN(P), B * $7(P)), b.arc(0, 0, B, P, M, W)); + var k, C, B = +r.apply(this, arguments), L = +i.apply(this, arguments), M = u.apply(this, arguments) - V0e, P = g.apply(this, arguments) - V0e, X = A8t(P - M), W = P > M; + if (b || (b = k = bNe()), L < B && (C = L, L = B, B = C), L > Bb) + if (X > QAe - Bb) + b.moveTo(L * mN(M), L * j7(M)), b.arc(0, 0, L, M, P, !W), B > Bb && (b.moveTo(B * mN(P), B * j7(P)), b.arc(0, 0, B, P, M, W)); else { - var N, z, oe = M, V = P, ae = M, ie = P, de = X, pe = X, ce = d.apply(this, arguments) / 2, we = ce > Bb && (l ? +l.apply(this, arguments) : C$(B * B + L * L)), me = HMe(h8t(L - B) / 2, +o.apply(this, arguments)), ee = me, ve = me; + var N, z, oe = M, V = P, ae = M, re = P, fe = X, pe = X, ce = d.apply(this, arguments) / 2, we = ce > Bb && (l ? +l.apply(this, arguments) : T$(B * B + L * L)), me = KMe(A8t(L - B) / 2, +o.apply(this, arguments)), ee = me, ve = me; if (we > Bb) { - var Y = f8t(we / B * $7(ce)), Te = f8t(we / L * $7(ce)); - (de -= 2 * Y) > Bb ? (ae += Y *= W ? 1 : -1, ie -= Y) : (de = 0, ae = ie = (M + P) / 2), (pe -= 2 * Te) > Bb ? (oe += Te *= W ? 1 : -1, V -= Te) : (pe = 0, oe = V = (M + P) / 2); + var Y = g8t(we / B * j7(ce)), Te = g8t(we / L * j7(ce)); + (fe -= 2 * Y) > Bb ? (ae += Y *= W ? 1 : -1, re -= Y) : (fe = 0, ae = re = (M + P) / 2), (pe -= 2 * Te) > Bb ? (oe += Te *= W ? 1 : -1, V -= Te) : (pe = 0, oe = V = (M + P) / 2); } - var fe = L * pN(oe), ue = L * $7(oe), $e = B * pN(ie), qe = B * $7(ie); + var de = L * mN(oe), ue = L * j7(oe), $e = B * mN(re), qe = B * j7(re); if (me > Bb) { - var ct, ot = L * pN(V), Pe = L * $7(V), Le = B * pN(ae), lt = B * $7(ae); + var ct, st = L * mN(V), Pe = L * j7(V), Le = B * mN(ae), lt = B * j7(ae); if (X < LZ && (ct = function(Vt, Wt, wt, Sn, it, ii, Ze, Jn) { var Ht = wt - Vt, Mr = Sn - Wt, xr = Ze - it, ci = Jn - ii, tr = ci * Ht - xr * Mr; if (!(tr * tr < Bb)) return [Vt + (tr = (xr * (Wt - ii) - ci * (Vt - it)) / tr) * Ht, Wt + tr * Mr]; - }(fe, ue, Le, lt, ot, Pe, $e, qe))) { - var Ut = fe - ct[0], Lt = ue - ct[1], Dn = ot - ct[0], yt = Pe - ct[1], on = 1 / $7(function(Vt) { + }(de, ue, Le, lt, st, Pe, $e, qe))) { + var Ut = de - ct[0], Lt = ue - ct[1], Dn = st - ct[0], yt = Pe - ct[1], on = 1 / j7(function(Vt) { return Vt > 1 ? 0 : Vt < -1 ? LZ : Math.acos(Vt); - }((Ut * Dn + Lt * yt) / (C$(Ut * Ut + Lt * Lt) * C$(Dn * Dn + yt * yt))) / 2), Xt = C$(ct[0] * ct[0] + ct[1] * ct[1]); - ee = HMe(me, (B - Xt) / (on - 1)), ve = HMe(me, (L - Xt) / (on + 1)); + }((Ut * Dn + Lt * yt) / (T$(Ut * Ut + Lt * Lt) * T$(Dn * Dn + yt * yt))) / 2), Xt = T$(ct[0] * ct[0] + ct[1] * ct[1]); + ee = KMe(me, (B - Xt) / (on - 1)), ve = KMe(me, (L - Xt) / (on + 1)); } } - pe > Bb ? ve > Bb ? (N = Qde(Le, lt, fe, ue, L, ve, W), z = Qde(ot, Pe, $e, qe, L, ve, W), b.moveTo(N.cx + N.x01, N.cy + N.y01), ve < me ? b.arc(N.cx, N.cy, ve, Tb(N.y01, N.x01), Tb(z.y01, z.x01), !W) : (b.arc(N.cx, N.cy, ve, Tb(N.y01, N.x01), Tb(N.y11, N.x11), !W), b.arc(0, 0, L, Tb(N.cy + N.y11, N.cx + N.x11), Tb(z.cy + z.y11, z.cx + z.x11), !W), b.arc(z.cx, z.cy, ve, Tb(z.y11, z.x11), Tb(z.y01, z.x01), !W))) : (b.moveTo(fe, ue), b.arc(0, 0, L, oe, V, !W)) : b.moveTo(fe, ue), B > Bb && de > Bb ? ee > Bb ? (N = Qde($e, qe, ot, Pe, B, -ee, W), z = Qde(fe, ue, Le, lt, B, -ee, W), b.lineTo(N.cx + N.x01, N.cy + N.y01), ee < me ? b.arc(N.cx, N.cy, ee, Tb(N.y01, N.x01), Tb(z.y01, z.x01), !W) : (b.arc(N.cx, N.cy, ee, Tb(N.y01, N.x01), Tb(N.y11, N.x11), !W), b.arc(0, 0, B, Tb(N.cy + N.y11, N.cx + N.x11), Tb(z.cy + z.y11, z.cx + z.x11), W), b.arc(z.cx, z.cy, ee, Tb(z.y11, z.x11), Tb(z.y01, z.x01), !W))) : b.arc(0, 0, B, ie, ae, W) : b.lineTo($e, qe); + pe > Bb ? ve > Bb ? (N = Ude(Le, lt, de, ue, L, ve, W), z = Ude(st, Pe, $e, qe, L, ve, W), b.moveTo(N.cx + N.x01, N.cy + N.y01), ve < me ? b.arc(N.cx, N.cy, ve, Tb(N.y01, N.x01), Tb(z.y01, z.x01), !W) : (b.arc(N.cx, N.cy, ve, Tb(N.y01, N.x01), Tb(N.y11, N.x11), !W), b.arc(0, 0, L, Tb(N.cy + N.y11, N.cx + N.x11), Tb(z.cy + z.y11, z.cx + z.x11), !W), b.arc(z.cx, z.cy, ve, Tb(z.y11, z.x11), Tb(z.y01, z.x01), !W))) : (b.moveTo(de, ue), b.arc(0, 0, L, oe, V, !W)) : b.moveTo(de, ue), B > Bb && fe > Bb ? ee > Bb ? (N = Ude($e, qe, st, Pe, B, -ee, W), z = Ude(de, ue, Le, lt, B, -ee, W), b.lineTo(N.cx + N.x01, N.cy + N.y01), ee < me ? b.arc(N.cx, N.cy, ee, Tb(N.y01, N.x01), Tb(z.y01, z.x01), !W) : (b.arc(N.cx, N.cy, ee, Tb(N.y01, N.x01), Tb(N.y11, N.x11), !W), b.arc(0, 0, B, Tb(N.cy + N.y11, N.cx + N.x11), Tb(z.cy + z.y11, z.cx + z.x11), W), b.arc(z.cx, z.cy, ee, Tb(z.y11, z.x11), Tb(z.y01, z.x01), !W))) : b.arc(0, 0, B, re, ae, W) : b.lineTo($e, qe); } else b.moveTo(0, 0); @@ -28832,8 +29076,8 @@ function cDe() { return b = null, k + "" || null; } return y.centroid = function() { - var k = (+r.apply(this, arguments) + +i.apply(this, arguments)) / 2, C = (+h.apply(this, arguments) + +g.apply(this, arguments)) / 2 - LZ / 2; - return [pN(C) * k, $7(C) * k]; + var k = (+r.apply(this, arguments) + +i.apply(this, arguments)) / 2, C = (+u.apply(this, arguments) + +g.apply(this, arguments)) / 2 - LZ / 2; + return [mN(C) * k, j7(C) * k]; }, y.innerRadius = function(k) { return arguments.length ? (r = typeof k == "function" ? k : S0(+k), y) : r; }, y.outerRadius = function(k) { @@ -28843,7 +29087,7 @@ function cDe() { }, y.padRadius = function(k) { return arguments.length ? (l = k == null ? null : typeof k == "function" ? k : S0(+k), y) : l; }, y.startAngle = function(k) { - return arguments.length ? (h = typeof k == "function" ? k : S0(+k), y) : h; + return arguments.length ? (u = typeof k == "function" ? k : S0(+k), y) : u; }, y.endAngle = function(k) { return arguments.length ? (g = typeof k == "function" ? k : S0(+k), y) : g; }, y.padAngle = function(k) { @@ -28852,49 +29096,49 @@ function cDe() { return arguments.length ? (b = k ?? null, y) : b; }, y; } -function _St(r) { - return Zc(r) === "object" && "length" in r ? r : El(r); +function ISt(r) { + return Xc(r) === "object" && "length" in r ? r : ll(r); } -function SSt(r) { +function FSt(r) { this._context = r; } -function V3(r) { - return new SSt(r); +function W3(r) { + return new FSt(r); } -function txn(r) { +function dxn(r) { return r[0]; } -function nxn(r) { +function Axn(r) { return r[1]; } function Sj(r, i) { - var o = S0(!0), l = null, h = V3, g = null; + var o = S0(!0), l = null, u = W3, g = null; function d(b) { - var y, k, C, B = (b = _St(b)).length, L = !1; - for (l == null && (g = h(C = pNe())), y = 0; y <= B; ++y) + var y, k, C, B = (b = ISt(b)).length, L = !1; + for (l == null && (g = u(C = bNe())), y = 0; y <= B; ++y) !(y < B && o(k = b[y], y, b)) === L && ((L = !L) ? g.lineStart() : g.lineEnd()), L && g.point(+r(k, y, b), +i(k, y, b)); if (C) return g = null, C + "" || null; } - return r = typeof r == "function" ? r : r === void 0 ? txn : S0(r), i = typeof i == "function" ? i : i === void 0 ? nxn : S0(i), d.x = function(b) { + return r = typeof r == "function" ? r : r === void 0 ? dxn : S0(r), i = typeof i == "function" ? i : i === void 0 ? Axn : S0(i), d.x = function(b) { return arguments.length ? (r = typeof b == "function" ? b : S0(+b), d) : r; }, d.y = function(b) { return arguments.length ? (i = typeof b == "function" ? b : S0(+b), d) : i; }, d.defined = function(b) { return arguments.length ? (o = typeof b == "function" ? b : S0(!!b), d) : o; }, d.curve = function(b) { - return arguments.length ? (h = b, l != null && (g = h(l)), d) : h; + return arguments.length ? (u = b, l != null && (g = u(l)), d) : u; }, d.context = function(b) { - return arguments.length ? (b == null ? l = g = null : g = h(l = b), d) : l; + return arguments.length ? (b == null ? l = g = null : g = u(l = b), d) : l; }, d; } -function rxn(r, i) { +function gxn(r, i) { return i < r ? -1 : i > r ? 1 : i >= r ? 0 : NaN; } -function ixn(r) { +function pxn(r) { return r; } -Zi(Array.prototype), SSt.prototype = { areaStart: function() { +Zi(Array.prototype), FSt.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -28913,11 +29157,11 @@ Zi(Array.prototype), SSt.prototype = { areaStart: function() { this._context.lineTo(r, i); } } }; -var d8t = function() { +var p8t = function() { function r(i, o) { - Gr(this, r), this._context = i, this._x = o; + Xr(this, r), this._context = i, this._x = o; } - return Vr(r, [{ key: "areaStart", value: function() { + return Gr(r, [{ key: "areaStart", value: function() { this._line = 0; } }, { key: "areaEnd", value: function() { this._line = NaN; @@ -28938,27 +29182,27 @@ var d8t = function() { this._x0 = i, this._y0 = o; } }]), r; }(); -function JM() { +function ZM() { } -function Pde(r, i, o) { +function Hde(r, i, o) { r._context.bezierCurveTo((2 * r._x0 + r._x1) / 3, (2 * r._y0 + r._y1) / 3, (r._x0 + 2 * r._x1) / 3, (r._y0 + 2 * r._y1) / 3, (r._x0 + 4 * r._x1 + i) / 6, (r._y0 + 4 * r._y1 + o) / 6); } -function $ge(r) { +function Kge(r) { this._context = r; } -function Xee(r) { - return new $ge(r); +function Wee(r) { + return new Kge(r); } -function LSt(r) { +function DSt(r) { this._context = r; } -function MSt(r) { +function OSt(r) { this._context = r; } -function ISt(r, i) { - this._basis = new $ge(r), this._beta = i; +function NSt(r, i) { + this._basis = new Kge(r), this._beta = i; } -$ge.prototype = { areaStart: function() { +Kge.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -28967,7 +29211,7 @@ $ge.prototype = { areaStart: function() { }, lineEnd: function() { switch (this._point) { case 3: - Pde(this, this._x1, this._y1); + Hde(this, this._x1, this._y1); case 2: this._context.lineTo(this._x1, this._y1); } @@ -28983,10 +29227,10 @@ $ge.prototype = { areaStart: function() { case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); default: - Pde(this, r, i); + Hde(this, r, i); } this._x0 = this._x1, this._x1 = r, this._y0 = this._y1, this._y1 = i; -} }, LSt.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { +} }, DSt.prototype = { areaStart: ZM, areaEnd: ZM, lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0; }, lineEnd: function() { switch (this._point) { @@ -29011,10 +29255,10 @@ $ge.prototype = { areaStart: function() { this._point = 3, this._x4 = r, this._y4 = i, this._context.moveTo((this._x0 + 4 * this._x1 + r) / 6, (this._y0 + 4 * this._y1 + i) / 6); break; default: - Pde(this, r, i); + Hde(this, r, i); } this._x0 = this._x1, this._x1 = r, this._y0 = this._y1, this._y1 = i; -} }, MSt.prototype = { areaStart: function() { +} }, OSt.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -29038,35 +29282,35 @@ $ge.prototype = { areaStart: function() { case 3: this._point = 4; default: - Pde(this, r, i); + Hde(this, r, i); } this._x0 = this._x1, this._x1 = r, this._y0 = this._y1, this._y1 = i; -} }, ISt.prototype = { lineStart: function() { +} }, NSt.prototype = { lineStart: function() { this._x = [], this._y = [], this._basis.lineStart(); }, lineEnd: function() { var r = this._x, i = this._y, o = r.length - 1; if (o > 0) - for (var l, h = r[0], g = i[0], d = r[o] - h, b = i[o] - g, y = -1; ++y <= o; ) - l = y / o, this._basis.point(this._beta * r[y] + (1 - this._beta) * (h + l * d), this._beta * i[y] + (1 - this._beta) * (g + l * b)); + for (var l, u = r[0], g = i[0], d = r[o] - u, b = i[o] - g, y = -1; ++y <= o; ) + l = y / o, this._basis.point(this._beta * r[y] + (1 - this._beta) * (u + l * d), this._beta * i[y] + (1 - this._beta) * (g + l * b)); this._x = this._y = null, this._basis.lineEnd(); }, point: function(r, i) { this._x.push(+r), this._y.push(+i); } }; -var axn = function r(i) { +var mxn = function r(i) { function o(l) { - return i === 1 ? new $ge(l) : new ISt(l, i); + return i === 1 ? new Kge(l) : new NSt(l, i); } return o.beta = function(l) { return r(+l); }, o; }(0.85); -function G0e(r, i, o) { +function W0e(r, i, o) { r._context.bezierCurveTo(r._x1 + r._k * (r._x2 - r._x0), r._y1 + r._k * (r._y2 - r._y0), r._x2 + r._k * (r._x1 - i), r._y2 + r._k * (r._y1 - o), r._x2, r._y2); } -function CNe(r, i) { +function ENe(r, i) { this._context = r, this._k = (1 - i) / 6; } -CNe.prototype = { areaStart: function() { +ENe.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -29078,7 +29322,7 @@ CNe.prototype = { areaStart: function() { this._context.lineTo(this._x2, this._y2); break; case 3: - G0e(this, this._x1, this._y1); + W0e(this, this._x1, this._y1); } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; }, point: function(r, i) { @@ -29092,22 +29336,22 @@ CNe.prototype = { areaStart: function() { case 2: this._point = 3; default: - G0e(this, r, i); + W0e(this, r, i); } this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; } }; -var oxn = function r(i) { +var bxn = function r(i) { function o(l) { - return new CNe(l, i); + return new ENe(l, i); } return o.tension = function(l) { return r(+l); }, o; }(0); -function TNe(r, i) { +function BNe(r, i) { this._context = r, this._k = (1 - i) / 6; } -TNe.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { +BNe.prototype = { areaStart: ZM, areaEnd: ZM, lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0; }, lineEnd: function() { switch (this._point) { @@ -29132,22 +29376,22 @@ TNe.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { this._point = 3, this._x5 = r, this._y5 = i; break; default: - G0e(this, r, i); + W0e(this, r, i); } this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; } }; -var sxn = function r(i) { +var yxn = function r(i) { function o(l) { - return new TNe(l, i); + return new BNe(l, i); } return o.tension = function(l) { return r(+l); }, o; }(0); -function ENe(r, i) { +function _Ne(r, i) { this._context = r, this._k = (1 - i) / 6; } -ENe.prototype = { areaStart: function() { +_Ne.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -29169,34 +29413,34 @@ ENe.prototype = { areaStart: function() { case 3: this._point = 4; default: - G0e(this, r, i); + W0e(this, r, i); } this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; } }; -var cxn = function r(i) { +var wxn = function r(i) { function o(l) { - return new ENe(l, i); + return new _Ne(l, i); } return o.tension = function(l) { return r(+l); }, o; }(0); -function BNe(r, i, o) { - var l = r._x1, h = r._y1, g = r._x2, d = r._y2; +function SNe(r, i, o) { + var l = r._x1, u = r._y1, g = r._x2, d = r._y2; if (r._l01_a > Bb) { var b = 2 * r._l01_2a + 3 * r._l01_a * r._l12_a + r._l12_2a, y = 3 * r._l01_a * (r._l01_a + r._l12_a); - l = (l * b - r._x0 * r._l12_2a + r._x2 * r._l01_2a) / y, h = (h * b - r._y0 * r._l12_2a + r._y2 * r._l01_2a) / y; + l = (l * b - r._x0 * r._l12_2a + r._x2 * r._l01_2a) / y, u = (u * b - r._y0 * r._l12_2a + r._y2 * r._l01_2a) / y; } if (r._l23_a > Bb) { var k = 2 * r._l23_2a + 3 * r._l23_a * r._l12_a + r._l12_2a, C = 3 * r._l23_a * (r._l23_a + r._l12_a); g = (g * k + r._x1 * r._l23_2a - i * r._l12_2a) / C, d = (d * k + r._y1 * r._l23_2a - o * r._l12_2a) / C; } - r._context.bezierCurveTo(l, h, g, d, r._x2, r._y2); + r._context.bezierCurveTo(l, u, g, d, r._x2, r._y2); } -function FSt(r, i) { +function QSt(r, i) { this._context = r, this._alpha = i; } -FSt.prototype = { areaStart: function() { +QSt.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -29226,22 +29470,22 @@ FSt.prototype = { areaStart: function() { case 2: this._point = 3; default: - BNe(this, r, i); + SNe(this, r, i); } this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; } }; -var lxn = function r(i) { +var vxn = function r(i) { function o(l) { - return i ? new FSt(l, i) : new CNe(l, 0); + return i ? new QSt(l, i) : new ENe(l, 0); } return o.alpha = function(l) { return r(+l); }, o; }(0.5); -function DSt(r, i) { +function PSt(r, i) { this._context = r, this._alpha = i; } -DSt.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { +PSt.prototype = { areaStart: ZM, areaEnd: ZM, lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { switch (this._point) { @@ -29270,22 +29514,22 @@ DSt.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { this._point = 3, this._x5 = r, this._y5 = i; break; default: - BNe(this, r, i); + SNe(this, r, i); } this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; } }; -var uxn = function r(i) { +var kxn = function r(i) { function o(l) { - return i ? new DSt(l, i) : new TNe(l, 0); + return i ? new PSt(l, i) : new BNe(l, 0); } return o.alpha = function(l) { return r(+l); }, o; }(0.5); -function OSt(r, i) { +function RSt(r, i) { this._context = r, this._alpha = i; } -OSt.prototype = { areaStart: function() { +RSt.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -29311,73 +29555,73 @@ OSt.prototype = { areaStart: function() { case 3: this._point = 4; default: - BNe(this, r, i); + SNe(this, r, i); } this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = r, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i; } }; -var hxn = function r(i) { +var xxn = function r(i) { function o(l) { - return i ? new OSt(l, i) : new ENe(l, 0); + return i ? new RSt(l, i) : new _Ne(l, 0); } return o.alpha = function(l) { return r(+l); }, o; }(0.5); -function NSt(r) { +function USt(r) { this._context = r; } -function A8t(r) { +function m8t(r) { return r < 0 ? -1 : 1; } -function g8t(r, i, o) { - var l = r._x1 - r._x0, h = i - r._x1, g = (r._y1 - r._y0) / (l || h < 0 && -0), d = (o - r._y1) / (h || l < 0 && -0), b = (g * h + d * l) / (l + h); - return (A8t(g) + A8t(d)) * Math.min(Math.abs(g), Math.abs(d), 0.5 * Math.abs(b)) || 0; +function b8t(r, i, o) { + var l = r._x1 - r._x0, u = i - r._x1, g = (r._y1 - r._y0) / (l || u < 0 && -0), d = (o - r._y1) / (u || l < 0 && -0), b = (g * u + d * l) / (l + u); + return (m8t(g) + m8t(d)) * Math.min(Math.abs(g), Math.abs(d), 0.5 * Math.abs(b)) || 0; } -function p8t(r, i) { +function y8t(r, i) { var o = r._x1 - r._x0; return o ? (3 * (r._y1 - r._y0) / o - i) / 2 : i; } -function $Me(r, i, o) { - var l = r._x0, h = r._y0, g = r._x1, d = r._y1, b = (g - l) / 3; - r._context.bezierCurveTo(l + b, h + b * i, g - b, d - b * o, g, d); +function zMe(r, i, o) { + var l = r._x0, u = r._y0, g = r._x1, d = r._y1, b = (g - l) / 3; + r._context.bezierCurveTo(l + b, u + b * i, g - b, d - b * o, g, d); } -function OAe(r) { +function PAe(r) { this._context = r; } -function QSt(r) { - this._context = new PSt(r); +function HSt(r) { + this._context = new $St(r); } -function PSt(r) { +function $St(r) { this._context = r; } -function RSt(r) { +function jSt(r) { this._context = r; } -function m8t(r) { - var i, o, l = r.length - 1, h = new Array(l), g = new Array(l), d = new Array(l); - for (h[0] = 0, g[0] = 2, d[0] = r[0] + 2 * r[1], i = 1; i < l - 1; ++i) - h[i] = 1, g[i] = 4, d[i] = 4 * r[i] + 2 * r[i + 1]; - for (h[l - 1] = 2, g[l - 1] = 7, d[l - 1] = 8 * r[l - 1] + r[l], i = 1; i < l; ++i) - o = h[i] / g[i - 1], g[i] -= o, d[i] -= o * d[i - 1]; - for (h[l - 1] = d[l - 1] / g[l - 1], i = l - 2; i >= 0; --i) - h[i] = (d[i] - h[i + 1]) / g[i]; - for (g[l - 1] = (r[l] + h[l - 1]) / 2, i = 0; i < l - 1; ++i) - g[i] = 2 * r[i + 1] - h[i + 1]; - return [h, g]; -} -function NAe(r, i) { +function w8t(r) { + var i, o, l = r.length - 1, u = new Array(l), g = new Array(l), d = new Array(l); + for (u[0] = 0, g[0] = 2, d[0] = r[0] + 2 * r[1], i = 1; i < l - 1; ++i) + u[i] = 1, g[i] = 4, d[i] = 4 * r[i] + 2 * r[i + 1]; + for (u[l - 1] = 2, g[l - 1] = 7, d[l - 1] = 8 * r[l - 1] + r[l], i = 1; i < l; ++i) + o = u[i] / g[i - 1], g[i] -= o, d[i] -= o * d[i - 1]; + for (u[l - 1] = d[l - 1] / g[l - 1], i = l - 2; i >= 0; --i) + u[i] = (d[i] - u[i + 1]) / g[i]; + for (g[l - 1] = (r[l] + u[l - 1]) / 2, i = 0; i < l - 1; ++i) + g[i] = 2 * r[i + 1] - u[i + 1]; + return [u, g]; +} +function RAe(r, i) { this._context = r, this._t = i; } function QJ(r, i, o) { this.k = r, this.x = i, this.y = o; } -NSt.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { +USt.prototype = { areaStart: ZM, areaEnd: ZM, lineStart: function() { this._point = 0; }, lineEnd: function() { this._point && this._context.closePath(); }, point: function(r, i) { r = +r, i = +i, this._point ? this._context.lineTo(r, i) : (this._point = 1, this._context.moveTo(r, i)); -} }, OAe.prototype = { areaStart: function() { +} }, PAe.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -29389,7 +29633,7 @@ NSt.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { this._context.lineTo(this._x1, this._y1); break; case 3: - $Me(this, this._t0, p8t(this, this._t0)); + zMe(this, this._t0, y8t(this, this._t0)); } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; }, point: function(r, i) { @@ -29403,24 +29647,24 @@ NSt.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { this._point = 2; break; case 2: - this._point = 3, $Me(this, p8t(this, o = g8t(this, r, i)), o); + this._point = 3, zMe(this, y8t(this, o = b8t(this, r, i)), o); break; default: - $Me(this, this._t0, o = g8t(this, r, i)); + zMe(this, this._t0, o = b8t(this, r, i)); } this._x0 = this._x1, this._x1 = r, this._y0 = this._y1, this._y1 = i, this._t0 = o; } -} }, (QSt.prototype = eee(OAe.prototype)).point = function(r, i) { - OAe.prototype.point.call(this, i, r); -}, PSt.prototype = { moveTo: function(r, i) { +} }, (HSt.prototype = eee(PAe.prototype)).point = function(r, i) { + PAe.prototype.point.call(this, i, r); +}, $St.prototype = { moveTo: function(r, i) { this._context.moveTo(i, r); }, closePath: function() { this._context.closePath(); }, lineTo: function(r, i) { this._context.lineTo(i, r); -}, bezierCurveTo: function(r, i, o, l, h, g) { - this._context.bezierCurveTo(i, r, l, o, g, h); -} }, RSt.prototype = { areaStart: function() { +}, bezierCurveTo: function(r, i, o, l, u, g) { + this._context.bezierCurveTo(i, r, l, o, g, u); +} }, jSt.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -29432,12 +29676,12 @@ NSt.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { if (this._line ? this._context.lineTo(r[0], i[0]) : this._context.moveTo(r[0], i[0]), o === 2) this._context.lineTo(r[1], i[1]); else - for (var l = m8t(r), h = m8t(i), g = 0, d = 1; d < o; ++g, ++d) - this._context.bezierCurveTo(l[0][g], h[0][g], l[1][g], h[1][g], r[d], i[d]); + for (var l = w8t(r), u = w8t(i), g = 0, d = 1; d < o; ++g, ++d) + this._context.bezierCurveTo(l[0][g], u[0][g], l[1][g], u[1][g], r[d], i[d]); (this._line || this._line !== 0 && o === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null; }, point: function(r, i) { this._x.push(+r), this._y.push(+i); -} }, NAe.prototype = { areaStart: function() { +} }, RAe.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; @@ -29479,14 +29723,14 @@ NSt.prototype = { areaStart: JM, areaEnd: JM, lineStart: function() { return (r - this.y) / this.k; }, rescaleX: function(r) { var i, o; - return r.copy().domain(us(i = us(o = r.range()).call(o, this.invertX, this)).call(i, r.invert, r)); + return r.copy().domain(Wo(i = Wo(o = r.range()).call(o, this.invertX, this)).call(i, r.invert, r)); }, rescaleY: function(r) { var i, o; - return r.copy().domain(us(i = us(o = r.range()).call(o, this.invertY, this)).call(i, r.invert, r)); + return r.copy().domain(Wo(i = Wo(o = r.range()).call(o, this.invertY, this)).call(i, r.invert, r)); }, toString: function() { return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")"; } }, QJ.prototype; -var pee = ll(function(r, i) { +var mee = ul(function(r, i) { r.exports = function() { function o(tn) { return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(ai) { @@ -29500,7 +29744,7 @@ var pee = ll(function(r, i) { return Yr.__proto__ = Qi, Yr; }, l(tn, ai); } - function h() { + function u() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -29513,9 +29757,9 @@ var pee = ll(function(r, i) { } } function g(tn, ai, Yr) { - return g = h() ? Reflect.construct : function(Qi, fa, xo) { + return g = u() ? Reflect.construct : function(Qi, da, xo) { var Cc = [null]; - Cc.push.apply(Cc, fa); + Cc.push.apply(Cc, da); var Fi = new (Function.bind.apply(Qi, Cc))(); return xo && l(Fi, xo.prototype), Fi; }, g.apply(null, arguments); @@ -29549,21 +29793,21 @@ var pee = ll(function(r, i) { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } - var L = Object.hasOwnProperty, M = Object.setPrototypeOf, P = Object.isFrozen, X = Object.getPrototypeOf, W = Object.getOwnPropertyDescriptor, N = Object.freeze, z = Object.seal, oe = Object.create, V = typeof Reflect < "u" && Reflect, ae = V.apply, ie = V.construct; + var L = Object.hasOwnProperty, M = Object.setPrototypeOf, P = Object.isFrozen, X = Object.getPrototypeOf, W = Object.getOwnPropertyDescriptor, N = Object.freeze, z = Object.seal, oe = Object.create, V = typeof Reflect < "u" && Reflect, ae = V.apply, re = V.construct; ae || (ae = function(tn, ai, Yr) { return tn.apply(ai, Yr); }), N || (N = function(tn) { return tn; }), z || (z = function(tn) { return tn; - }), ie || (ie = function(tn, ai) { + }), re || (re = function(tn, ai) { return g(tn, d(ai)); }); - var de = $e(Array.prototype.forEach), pe = $e(Array.prototype.pop), ce = $e(Array.prototype.push), we = $e(String.prototype.toLowerCase), me = $e(String.prototype.toString), ee = $e(String.prototype.match), ve = $e(String.prototype.replace), Y = $e(String.prototype.indexOf), Te = $e(String.prototype.trim), fe = $e(RegExp.prototype.test), ue = qe(TypeError); + var fe = $e(Array.prototype.forEach), pe = $e(Array.prototype.pop), ce = $e(Array.prototype.push), we = $e(String.prototype.toLowerCase), me = $e(String.prototype.toString), ee = $e(String.prototype.match), ve = $e(String.prototype.replace), Y = $e(String.prototype.indexOf), Te = $e(String.prototype.trim), de = $e(RegExp.prototype.test), ue = qe(TypeError); function $e(tn) { return function(ai) { - for (var Yr = arguments.length, Qi = new Array(Yr > 1 ? Yr - 1 : 0), fa = 1; fa < Yr; fa++) - Qi[fa - 1] = arguments[fa]; + for (var Yr = arguments.length, Qi = new Array(Yr > 1 ? Yr - 1 : 0), da = 1; da < Yr; da++) + Qi[da - 1] = arguments[da]; return ae(tn, ai, Qi); }; } @@ -29571,22 +29815,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return function() { for (var ai = arguments.length, Yr = new Array(ai), Qi = 0; Qi < ai; Qi++) Yr[Qi] = arguments[Qi]; - return ie(tn, Yr); + return re(tn, Yr); }; } function ct(tn, ai, Yr) { Yr = Yr || we, M && M(tn, null); for (var Qi = ai.length; Qi--; ) { - var fa = ai[Qi]; - if (typeof fa == "string") { - var xo = Yr(fa); - xo !== fa && (P(ai) || (ai[Qi] = xo), fa = xo); + var da = ai[Qi]; + if (typeof da == "string") { + var xo = Yr(da); + xo !== da && (P(ai) || (ai[Qi] = xo), da = xo); } - tn[fa] = !0; + tn[da] = !0; } return tn; } - function ot(tn) { + function st(tn) { var ai, Yr = oe(null); for (ai in tn) ae(L, tn, [ai]) === !0 && (Yr[ai] = tn[ai]); @@ -29603,8 +29847,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } tn = X(tn); } - function Qi(fa) { - return console.warn("fallback value for", fa), null; + function Qi(da) { + return console.warn("fallback value for", da), null; } return Qi; } @@ -29615,15 +29859,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return null; var Yr = null, Qi = "data-tt-policy-suffix"; ai.currentScript && ai.currentScript.hasAttribute(Qi) && (Yr = ai.currentScript.getAttribute(Qi)); - var fa = "dompurify" + (Yr ? "#" + Yr : ""); + var da = "dompurify" + (Yr ? "#" + Yr : ""); try { - return tn.createPolicy(fa, { createHTML: function(xo) { + return tn.createPolicy(da, { createHTML: function(xo) { return xo; }, createScriptURL: function(xo) { return xo; } }); } catch { - return console.warn("TrustedTypes policy " + fa + " could not be created."), null; + return console.warn("TrustedTypes policy " + da + " could not be created."), null; } }; function Xn() { @@ -29632,31 +29876,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; if (ai.version = "2.4.3", ai.removed = [], !tn || !tn.document || tn.document.nodeType !== 9) return ai.isSupported = !1, ai; - var Yr = tn.document, Qi = tn.document, fa = tn.DocumentFragment, xo = tn.HTMLTemplateElement, Cc = tn.Node, Fi = tn.Element, Na = tn.NodeFilter, vr = tn.NamedNodeMap, Lr = vr === void 0 ? tn.NamedNodeMap || tn.MozNamedAttrMap : vr, ti = tn.HTMLFormElement, Er = tn.DOMParser, oa = tn.trustedTypes, On = Fi.prototype, Wo = Pe(On, "cloneNode"), ar = Pe(On, "nextSibling"), Ja = Pe(On, "childNodes"), Io = Pe(On, "parentNode"); + var Yr = tn.document, Qi = tn.document, da = tn.DocumentFragment, xo = tn.HTMLTemplateElement, Cc = tn.Node, Fi = tn.Element, Na = tn.NodeFilter, vr = tn.NamedNodeMap, Lr = vr === void 0 ? tn.NamedNodeMap || tn.MozNamedAttrMap : vr, ti = tn.HTMLFormElement, Er = tn.DOMParser, oa = tn.trustedTypes, On = Fi.prototype, qo = Pe(On, "cloneNode"), ar = Pe(On, "nextSibling"), Ja = Pe(On, "childNodes"), Io = Pe(On, "parentNode"); if (typeof xo == "function") { - var ta = Qi.createElement("template"); - ta.content && ta.content.ownerDocument && (Qi = ta.content.ownerDocument); + var na = Qi.createElement("template"); + na.content && na.content.ownerDocument && (Qi = na.content.ownerDocument); } - var Ba = _r(oa, Yr), Ao = Ba ? Ba.createHTML("") : "", yo = Qi, Fo = yo.implementation, Zo = yo.createNodeIterator, hs = yo.createDocumentFragment, da = yo.getElementsByTagName, ef = Yr.importNode, tc = {}; + var Ba = _r(oa, Yr), Ao = Ba ? Ba.createHTML("") : "", yo = Qi, Fo = yo.implementation, ts = yo.createNodeIterator, hs = yo.createDocumentFragment, Aa = yo.getElementsByTagName, tf = Yr.importNode, tc = {}; try { - tc = ot(Qi).documentMode ? Qi.documentMode : {}; + tc = st(Qi).documentMode ? Qi.documentMode : {}; } catch { } - var au = {}; + var ou = {}; ai.isSupported = typeof Io == "function" && Fo && Fo.createHTMLDocument !== void 0 && tc !== 9; - var _a, nc, pf = Sn, jl = it, ou = ii, Rh = Ze, el = Jn, _l = Mr, Oc = xr, Kl = Ht, ks = null, su = ct({}, [].concat(d(Le), d(lt), d(Ut), d(Dn), d(on))), Ns = null, _s = ct({}, [].concat(d(Xt), d(Vt), d(Wt), d(wt))), Ci = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), Uh = null, cu = null, Hh = !0, $s = !0, Xu = !1, $i = !1, is = !1, Zn = !1, wr = !1, wo = !1, Gt = !1, $h = !1, gn = !0, rc = !1, uo = "user-content-", v1 = !0, Nn = !1, Fr = {}, Kr = null, Dr = ct({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ki = null, sa = ct({}, ["audio", "video", "img", "source", "image", "track"]), Ha = null, es = ct({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), to = "http://www.w3.org/1998/Math/MathML", Nc = "http://www.w3.org/2000/svg", Gu = "http://www.w3.org/1999/xhtml", yl = Gu, k1 = !1, Tc = null, s1 = ct({}, [to, Nc, Gu], me), wl = ["application/xhtml+xml", "text/html"], Qc = "text/html", ic = null, Rm = Qi.createElement("form"), mf = function(Zt) { + var _a, nc, mf = Sn, Kl = it, su = ii, Uh = Ze, el = Jn, _l = Mr, Oc = xr, zl = Ht, ks = null, cu = ct({}, [].concat(d(Le), d(lt), d(Ut), d(Dn), d(on))), Ns = null, Ss = ct({}, [].concat(d(Xt), d(Vt), d(Wt), d(wt))), Ci = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), Hh = null, lu = null, $h = !0, $s = !0, Xu = !1, $i = !1, as = !1, Zn = !1, wr = !1, wo = !1, Gt = !1, jh = !1, gn = !0, rc = !1, ho = "user-content-", k1 = !0, Nn = !1, Fr = {}, Kr = null, Dr = ct({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ki = null, sa = ct({}, ["audio", "video", "img", "source", "image", "track"]), Ha = null, ns = ct({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), to = "http://www.w3.org/1998/Math/MathML", Nc = "http://www.w3.org/2000/svg", Gu = "http://www.w3.org/1999/xhtml", wl = Gu, x1 = !1, Tc = null, c1 = ct({}, [to, Nc, Gu], me), vl = ["application/xhtml+xml", "text/html"], Qc = "text/html", ic = null, Rm = Qi.createElement("form"), bf = function(Zt) { return Zt instanceof RegExp || Zt instanceof Function; }, Vu = function(Zt) { - ic && ic === Zt || (Zt && o(Zt) === "object" || (Zt = {}), Zt = ot(Zt), _a = _a = wl.indexOf(Zt.PARSER_MEDIA_TYPE) === -1 ? Qc : Zt.PARSER_MEDIA_TYPE, nc = _a === "application/xhtml+xml" ? me : we, ks = "ALLOWED_TAGS" in Zt ? ct({}, Zt.ALLOWED_TAGS, nc) : su, Ns = "ALLOWED_ATTR" in Zt ? ct({}, Zt.ALLOWED_ATTR, nc) : _s, Tc = "ALLOWED_NAMESPACES" in Zt ? ct({}, Zt.ALLOWED_NAMESPACES, me) : s1, Ha = "ADD_URI_SAFE_ATTR" in Zt ? ct(ot(es), Zt.ADD_URI_SAFE_ATTR, nc) : es, Ki = "ADD_DATA_URI_TAGS" in Zt ? ct(ot(sa), Zt.ADD_DATA_URI_TAGS, nc) : sa, Kr = "FORBID_CONTENTS" in Zt ? ct({}, Zt.FORBID_CONTENTS, nc) : Dr, Uh = "FORBID_TAGS" in Zt ? ct({}, Zt.FORBID_TAGS, nc) : {}, cu = "FORBID_ATTR" in Zt ? ct({}, Zt.FORBID_ATTR, nc) : {}, Fr = "USE_PROFILES" in Zt && Zt.USE_PROFILES, Hh = Zt.ALLOW_ARIA_ATTR !== !1, $s = Zt.ALLOW_DATA_ATTR !== !1, Xu = Zt.ALLOW_UNKNOWN_PROTOCOLS || !1, $i = Zt.SAFE_FOR_TEMPLATES || !1, is = Zt.WHOLE_DOCUMENT || !1, wo = Zt.RETURN_DOM || !1, Gt = Zt.RETURN_DOM_FRAGMENT || !1, $h = Zt.RETURN_TRUSTED_TYPE || !1, wr = Zt.FORCE_BODY || !1, gn = Zt.SANITIZE_DOM !== !1, rc = Zt.SANITIZE_NAMED_PROPS || !1, v1 = Zt.KEEP_CONTENT !== !1, Nn = Zt.IN_PLACE || !1, Kl = Zt.ALLOWED_URI_REGEXP || Kl, yl = Zt.NAMESPACE || Gu, Zt.CUSTOM_ELEMENT_HANDLING && mf(Zt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ci.tagNameCheck = Zt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Zt.CUSTOM_ELEMENT_HANDLING && mf(Zt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ci.attributeNameCheck = Zt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Zt.CUSTOM_ELEMENT_HANDLING && typeof Zt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ci.allowCustomizedBuiltInElements = Zt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $i && ($s = !1), Gt && (wo = !0), Fr && (ks = ct({}, d(on)), Ns = [], Fr.html === !0 && (ct(ks, Le), ct(Ns, Xt)), Fr.svg === !0 && (ct(ks, lt), ct(Ns, Vt), ct(Ns, wt)), Fr.svgFilters === !0 && (ct(ks, Ut), ct(Ns, Vt), ct(Ns, wt)), Fr.mathMl === !0 && (ct(ks, Dn), ct(Ns, Wt), ct(Ns, wt))), Zt.ADD_TAGS && (ks === su && (ks = ot(ks)), ct(ks, Zt.ADD_TAGS, nc)), Zt.ADD_ATTR && (Ns === _s && (Ns = ot(Ns)), ct(Ns, Zt.ADD_ATTR, nc)), Zt.ADD_URI_SAFE_ATTR && ct(Ha, Zt.ADD_URI_SAFE_ATTR, nc), Zt.FORBID_CONTENTS && (Kr === Dr && (Kr = ot(Kr)), ct(Kr, Zt.FORBID_CONTENTS, nc)), v1 && (ks["#text"] = !0), is && ct(ks, ["html", "head", "body"]), ks.table && (ct(ks, ["tbody"]), delete Uh.tbody), N && N(Zt), ic = Zt); - }, lg = ct({}, ["mi", "mo", "mn", "ms", "mtext"]), c1 = ct({}, ["foreignobject", "desc", "title", "annotation-xml"]), Ob = ct({}, ["title", "style", "font", "a", "script"]), vh = ct({}, lt); + ic && ic === Zt || (Zt && o(Zt) === "object" || (Zt = {}), Zt = st(Zt), _a = _a = vl.indexOf(Zt.PARSER_MEDIA_TYPE) === -1 ? Qc : Zt.PARSER_MEDIA_TYPE, nc = _a === "application/xhtml+xml" ? me : we, ks = "ALLOWED_TAGS" in Zt ? ct({}, Zt.ALLOWED_TAGS, nc) : cu, Ns = "ALLOWED_ATTR" in Zt ? ct({}, Zt.ALLOWED_ATTR, nc) : Ss, Tc = "ALLOWED_NAMESPACES" in Zt ? ct({}, Zt.ALLOWED_NAMESPACES, me) : c1, Ha = "ADD_URI_SAFE_ATTR" in Zt ? ct(st(ns), Zt.ADD_URI_SAFE_ATTR, nc) : ns, Ki = "ADD_DATA_URI_TAGS" in Zt ? ct(st(sa), Zt.ADD_DATA_URI_TAGS, nc) : sa, Kr = "FORBID_CONTENTS" in Zt ? ct({}, Zt.FORBID_CONTENTS, nc) : Dr, Hh = "FORBID_TAGS" in Zt ? ct({}, Zt.FORBID_TAGS, nc) : {}, lu = "FORBID_ATTR" in Zt ? ct({}, Zt.FORBID_ATTR, nc) : {}, Fr = "USE_PROFILES" in Zt && Zt.USE_PROFILES, $h = Zt.ALLOW_ARIA_ATTR !== !1, $s = Zt.ALLOW_DATA_ATTR !== !1, Xu = Zt.ALLOW_UNKNOWN_PROTOCOLS || !1, $i = Zt.SAFE_FOR_TEMPLATES || !1, as = Zt.WHOLE_DOCUMENT || !1, wo = Zt.RETURN_DOM || !1, Gt = Zt.RETURN_DOM_FRAGMENT || !1, jh = Zt.RETURN_TRUSTED_TYPE || !1, wr = Zt.FORCE_BODY || !1, gn = Zt.SANITIZE_DOM !== !1, rc = Zt.SANITIZE_NAMED_PROPS || !1, k1 = Zt.KEEP_CONTENT !== !1, Nn = Zt.IN_PLACE || !1, zl = Zt.ALLOWED_URI_REGEXP || zl, wl = Zt.NAMESPACE || Gu, Zt.CUSTOM_ELEMENT_HANDLING && bf(Zt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ci.tagNameCheck = Zt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Zt.CUSTOM_ELEMENT_HANDLING && bf(Zt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ci.attributeNameCheck = Zt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Zt.CUSTOM_ELEMENT_HANDLING && typeof Zt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ci.allowCustomizedBuiltInElements = Zt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $i && ($s = !1), Gt && (wo = !0), Fr && (ks = ct({}, d(on)), Ns = [], Fr.html === !0 && (ct(ks, Le), ct(Ns, Xt)), Fr.svg === !0 && (ct(ks, lt), ct(Ns, Vt), ct(Ns, wt)), Fr.svgFilters === !0 && (ct(ks, Ut), ct(Ns, Vt), ct(Ns, wt)), Fr.mathMl === !0 && (ct(ks, Dn), ct(Ns, Wt), ct(Ns, wt))), Zt.ADD_TAGS && (ks === cu && (ks = st(ks)), ct(ks, Zt.ADD_TAGS, nc)), Zt.ADD_ATTR && (Ns === Ss && (Ns = st(Ns)), ct(Ns, Zt.ADD_ATTR, nc)), Zt.ADD_URI_SAFE_ATTR && ct(Ha, Zt.ADD_URI_SAFE_ATTR, nc), Zt.FORBID_CONTENTS && (Kr === Dr && (Kr = st(Kr)), ct(Kr, Zt.FORBID_CONTENTS, nc)), k1 && (ks["#text"] = !0), as && ct(ks, ["html", "head", "body"]), ks.table && (ct(ks, ["tbody"]), delete Hh.tbody), N && N(Zt), ic = Zt); + }, lg = ct({}, ["mi", "mo", "mn", "ms", "mtext"]), l1 = ct({}, ["foreignobject", "desc", "title", "annotation-xml"]), Nb = ct({}, ["title", "style", "font", "a", "script"]), vh = ct({}, lt); ct(vh, Ut), ct(vh, Lt); - var ad = ct({}, Dn); - ct(ad, yt); + var sd = ct({}, Dn); + ct(sd, yt); var zp = function(Zt) { var zi = Io(Zt); - zi && zi.tagName || (zi = { namespaceURI: yl, tagName: "template" }); + zi && zi.tagName || (zi = { namespaceURI: wl, tagName: "template" }); var La = we(Zt.tagName), nl = we(zi.tagName); - return !!Tc[Zt.namespaceURI] && (Zt.namespaceURI === Nc ? zi.namespaceURI === Gu ? La === "svg" : zi.namespaceURI === to ? La === "svg" && (nl === "annotation-xml" || lg[nl]) : !!vh[La] : Zt.namespaceURI === to ? zi.namespaceURI === Gu ? La === "math" : zi.namespaceURI === Nc ? La === "math" && c1[nl] : !!ad[La] : Zt.namespaceURI === Gu ? !(zi.namespaceURI === Nc && !c1[nl]) && !(zi.namespaceURI === to && !lg[nl]) && !ad[La] && (Ob[La] || !vh[La]) : !(_a !== "application/xhtml+xml" || !Tc[Zt.namespaceURI])); + return !!Tc[Zt.namespaceURI] && (Zt.namespaceURI === Nc ? zi.namespaceURI === Gu ? La === "svg" : zi.namespaceURI === to ? La === "svg" && (nl === "annotation-xml" || lg[nl]) : !!vh[La] : Zt.namespaceURI === to ? zi.namespaceURI === Gu ? La === "math" : zi.namespaceURI === Nc ? La === "math" && l1[nl] : !!sd[La] : Zt.namespaceURI === Gu ? !(zi.namespaceURI === Nc && !l1[nl]) && !(zi.namespaceURI === to && !lg[nl]) && !sd[La] && (Nb[La] || !vh[La]) : !(_a !== "application/xhtml+xml" || !Tc[Zt.namespaceURI])); }, KA = function(Zt) { ce(ai.removed, { element: Zt }); try { @@ -29693,62 +29937,62 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var nl = ee(Zt, /^[\r\n\t ]+/); La = nl && nl[0]; } - _a === "application/xhtml+xml" && yl === Gu && (Zt = '' + Zt + ""); - var zl = Ba ? Ba.createHTML(Zt) : Zt; - if (yl === Gu) + _a === "application/xhtml+xml" && wl === Gu && (Zt = '' + Zt + ""); + var Xl = Ba ? Ba.createHTML(Zt) : Zt; + if (wl === Gu) try { - zi = new Er().parseFromString(zl, _a); + zi = new Er().parseFromString(Xl, _a); } catch { } if (!zi || !zi.documentElement) { - zi = Fo.createDocument(yl, "template", null); + zi = Fo.createDocument(wl, "template", null); try { - zi.documentElement.innerHTML = k1 ? Ao : zl; + zi.documentElement.innerHTML = x1 ? Ao : Xl; } catch { } } var kh = zi.body || zi.documentElement; - return Zt && La && kh.insertBefore(Qi.createTextNode(La), kh.childNodes[0] || null), yl === Gu ? da.call(zi, is ? "html" : "body")[0] : is ? zi.documentElement : kh; - }, Aa = function(Zt) { - return Zo.call(Zt.ownerDocument || Zt, Zt, Na.SHOW_ELEMENT | Na.SHOW_COMMENT | Na.SHOW_TEXT, null, !1); + return Zt && La && kh.insertBefore(Qi.createTextNode(La), kh.childNodes[0] || null), wl === Gu ? Aa.call(zi, as ? "html" : "body")[0] : as ? zi.documentElement : kh; + }, ga = function(Zt) { + return ts.call(Zt.ownerDocument || Zt, Zt, Na.SHOW_ELEMENT | Na.SHOW_COMMENT | Na.SHOW_TEXT, null, !1); }, js = function(Zt) { return Zt instanceof ti && (typeof Zt.nodeName != "string" || typeof Zt.textContent != "string" || typeof Zt.removeChild != "function" || !(Zt.attributes instanceof Lr) || typeof Zt.removeAttribute != "function" || typeof Zt.setAttribute != "function" || typeof Zt.namespaceURI != "string" || typeof Zt.insertBefore != "function" || typeof Zt.hasChildNodes != "function"); }, dc = function(Zt) { return o(Cc) === "object" ? Zt instanceof Cc : Zt && o(Zt) === "object" && typeof Zt.nodeType == "number" && typeof Zt.nodeName == "string"; }, tl = function(Zt, zi, La) { - au[Zt] && de(au[Zt], function(nl) { + ou[Zt] && fe(ou[Zt], function(nl) { nl.call(ai, zi, La, ic); }); - }, Pf = function(Zt) { + }, Rf = function(Zt) { var zi; - if (tl("beforeSanitizeElements", Zt, null), js(Zt) || fe(/[\u0080-\uFFFF]/, Zt.nodeName)) + if (tl("beforeSanitizeElements", Zt, null), js(Zt) || de(/[\u0080-\uFFFF]/, Zt.nodeName)) return KA(Zt), !0; var La = nc(Zt.nodeName); - if (tl("uponSanitizeElement", Zt, { tagName: La, allowedTags: ks }), Zt.hasChildNodes() && !dc(Zt.firstElementChild) && (!dc(Zt.content) || !dc(Zt.content.firstElementChild)) && fe(/<[/\w]/g, Zt.innerHTML) && fe(/<[/\w]/g, Zt.textContent) || La === "select" && fe(/